@syscore/ui-library 1.5.2 → 1.6.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/client/components/icons/AlphaIcon.tsx +81 -0
- package/client/components/icons/StandardLogo.tsx +8 -2
- package/client/components/ui/navigation.tsx +617 -967
- package/client/global.css +327 -3
- package/client/ui/Navigation.stories.tsx +515 -38
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +30 -3
- package/dist/index.es.js +1964 -2236
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -26,9 +26,9 @@ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
|
26
26
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
27
27
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
28
28
|
import { DayPicker } from "react-day-picker";
|
|
29
|
-
import { AnimatePresence, motion } from "motion/react";
|
|
30
29
|
import { Command as Command$1 } from "cmdk";
|
|
31
30
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
31
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
32
32
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
33
33
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
34
34
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
@@ -2041,1269 +2041,317 @@ function Calendar({
|
|
|
2041
2041
|
);
|
|
2042
2042
|
}
|
|
2043
2043
|
Calendar.displayName = "Calendar";
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2044
|
+
function Dialog({
|
|
2045
|
+
...props
|
|
2046
|
+
}) {
|
|
2047
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
2048
|
+
}
|
|
2049
|
+
function DialogTrigger({
|
|
2050
|
+
...props
|
|
2051
|
+
}) {
|
|
2052
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
2053
|
+
}
|
|
2054
|
+
function DialogPortal({
|
|
2055
|
+
...props
|
|
2056
|
+
}) {
|
|
2057
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
2058
|
+
}
|
|
2059
|
+
function DialogClose({
|
|
2060
|
+
...props
|
|
2061
|
+
}) {
|
|
2062
|
+
return /* @__PURE__ */ jsx(SheetPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
2063
|
+
}
|
|
2064
|
+
function DialogOverlay({
|
|
2065
|
+
className,
|
|
2066
|
+
...props
|
|
2067
|
+
}) {
|
|
2068
|
+
return /* @__PURE__ */ jsx(
|
|
2069
|
+
SheetPrimitive.Overlay,
|
|
2047
2070
|
{
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
viewBox: "0 0 64 16",
|
|
2052
|
-
fill: "none",
|
|
2053
|
-
className: cn(dark ? "text-gray-700" : "text-white"),
|
|
2054
|
-
children: [
|
|
2055
|
-
/* @__PURE__ */ jsx(
|
|
2056
|
-
"path",
|
|
2057
|
-
{
|
|
2058
|
-
d: "M53.5868 0H55.0485C55.6026 0 56.0325 0.404706 56.0325 0.969412V12.8941H63.016C63.5701 12.8941 64 13.2988 64 13.8447V15.0306C64 15.5765 63.5701 16 63.016 16H53.5868C53.0327 16 52.6028 15.5765 52.6028 15.0306V0.969412C52.6028 0.404706 53.0423 0 53.5868 0Z",
|
|
2059
|
-
fill: "currentColor"
|
|
2060
|
-
}
|
|
2061
|
-
),
|
|
2062
|
-
/* @__PURE__ */ jsx(
|
|
2063
|
-
"path",
|
|
2064
|
-
{
|
|
2065
|
-
d: "M39.9826 0H41.4442C41.9983 0 42.4282 0.404706 42.4282 0.969412V12.8941H49.4118C49.9659 12.8941 50.3958 13.2988 50.3958 13.8447V15.0306C50.3958 15.5765 49.9659 16 49.4118 16H39.9826C39.4285 16 38.9986 15.5765 38.9986 15.0306V0.969412C38.9986 0.404706 39.4285 0 39.9826 0Z",
|
|
2066
|
-
fill: "currentColor"
|
|
2067
|
-
}
|
|
2068
|
-
),
|
|
2069
|
-
/* @__PURE__ */ jsx(
|
|
2070
|
-
"path",
|
|
2071
|
-
{
|
|
2072
|
-
d: "M25.4615 0H35.5212C36.0944 0 36.5052 0.404706 36.5052 0.969412V2.15529C36.5052 2.70118 36.0944 3.12471 35.5212 3.12471H27.9072V6.37176H34.222C34.7761 6.37176 35.206 6.77647 35.206 7.32235V8.50824C35.206 9.07294 34.7761 9.47765 34.222 9.47765H27.9072V12.8941H35.6359C36.2091 12.8941 36.6199 13.2988 36.6199 13.8447V15.0306C36.6199 15.5765 36.2091 16 35.6359 16H25.4615C24.9074 16 24.4775 15.5765 24.4775 15.0306V0.969412C24.4775 0.404706 24.9074 0 25.4615 0Z",
|
|
2073
|
-
fill: "currentColor"
|
|
2074
|
-
}
|
|
2075
|
-
),
|
|
2076
|
-
/* @__PURE__ */ jsx(
|
|
2077
|
-
"path",
|
|
2078
|
-
{
|
|
2079
|
-
d: "M2.26579 0C2.81989 0 3.37399 0.376471 3.53639 0.922353L6.56483 10.4941L9.51684 0.856471C9.66014 0.357647 10.1665 0 10.6728 0H11.6855C12.2109 0 12.7172 0.357647 12.8605 0.856471L15.8412 10.5035L18.8314 0.922353C18.9747 0.376471 19.5288 0 20.102 0H21.6401C22.1942 0 22.4808 0.404706 22.2898 0.922353L17.4653 15.1435C17.2933 15.6141 16.7965 16 16.2616 16H15.2489C14.7426 16 14.2362 15.6424 14.0929 15.1435L11.1887 5.92L8.25578 15.1435C8.11248 15.6424 7.60615 16 7.08071 16H6.08716C5.58083 16 5.0745 15.6235 4.91209 15.1435L0.0589489 0.922353C-0.13212 0.404706 0.154483 0 0.727688 0H2.26579Z",
|
|
2080
|
-
fill: "currentColor"
|
|
2081
|
-
}
|
|
2082
|
-
)
|
|
2083
|
-
]
|
|
2071
|
+
"data-slot": "dialog-overlay",
|
|
2072
|
+
className: cn("dialog-overlay", className),
|
|
2073
|
+
...props
|
|
2084
2074
|
}
|
|
2085
2075
|
);
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2076
|
+
}
|
|
2077
|
+
function DialogContent({
|
|
2078
|
+
className,
|
|
2079
|
+
children,
|
|
2080
|
+
showCloseButton = true,
|
|
2081
|
+
...props
|
|
2082
|
+
}) {
|
|
2083
|
+
return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
2084
|
+
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
2085
|
+
/* @__PURE__ */ jsxs(
|
|
2086
|
+
SheetPrimitive.Content,
|
|
2087
|
+
{
|
|
2088
|
+
"data-slot": "dialog-content",
|
|
2089
|
+
className: cn("dialog-content", className),
|
|
2090
|
+
...props,
|
|
2091
|
+
children: [
|
|
2092
|
+
/* @__PURE__ */ jsx("div", { className: "dialog-content-inner", children }),
|
|
2093
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
2094
|
+
SheetPrimitive.Close,
|
|
2095
|
+
{
|
|
2096
|
+
"data-slot": "dialog-close",
|
|
2097
|
+
className: "dialog-close",
|
|
2098
|
+
children: [
|
|
2099
|
+
/* @__PURE__ */ jsx(XIcon, {}),
|
|
2100
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
2101
|
+
]
|
|
2102
|
+
}
|
|
2103
|
+
)
|
|
2104
|
+
]
|
|
2105
|
+
}
|
|
2106
|
+
)
|
|
2107
|
+
] });
|
|
2108
|
+
}
|
|
2109
|
+
function DialogHeader({ className, ...props }) {
|
|
2110
|
+
return /* @__PURE__ */ jsx(
|
|
2111
|
+
"div",
|
|
2090
2112
|
{
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
fill: "none",
|
|
2095
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2096
|
-
className: cn(
|
|
2097
|
-
"transition-colors duration-300 text-bronze-500",
|
|
2098
|
-
className
|
|
2099
|
-
),
|
|
2100
|
-
children: [
|
|
2101
|
-
/* @__PURE__ */ jsx(
|
|
2102
|
-
"path",
|
|
2103
|
-
{
|
|
2104
|
-
d: "M16.0001 14.5C18.2093 14.5 20.0001 12.7091 20.0001 10.5C20.0001 8.29086 18.2093 6.5 16.0001 6.5C13.791 6.5 12.0001 8.29086 12.0001 10.5C12.0001 12.7091 13.791 14.5 16.0001 14.5Z",
|
|
2105
|
-
fill: "currentColor"
|
|
2106
|
-
}
|
|
2107
|
-
),
|
|
2108
|
-
/* @__PURE__ */ jsx(
|
|
2109
|
-
"path",
|
|
2110
|
-
{
|
|
2111
|
-
d: "M6.90759 23.3314C8.48801 19.8899 11.9649 17.5 16 17.5C20.0351 17.5 23.5121 19.89 25.0924 23.3316C22.8919 25.8841 19.6347 27.5 16.0001 27.5C12.3654 27.5 9.10818 25.8841 6.90759 23.3314Z",
|
|
2112
|
-
fill: "currentColor"
|
|
2113
|
-
}
|
|
2114
|
-
)
|
|
2115
|
-
]
|
|
2113
|
+
"data-slot": "dialog-header",
|
|
2114
|
+
className: cn("dialog-header", className),
|
|
2115
|
+
...props
|
|
2116
2116
|
}
|
|
2117
2117
|
);
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2118
|
+
}
|
|
2119
|
+
function DialogFooter({ className, ...props }) {
|
|
2120
2120
|
return /* @__PURE__ */ jsx(
|
|
2121
|
-
"
|
|
2121
|
+
"div",
|
|
2122
2122
|
{
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
viewBox: "0 0 8 9",
|
|
2127
|
-
fill: "none",
|
|
2128
|
-
children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4.5", r: "3.5", fill: color, stroke: "#F3E7D8" })
|
|
2123
|
+
"data-slot": "dialog-footer",
|
|
2124
|
+
className: cn("dialog-footer", className),
|
|
2125
|
+
...props
|
|
2129
2126
|
}
|
|
2130
2127
|
);
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
className
|
|
2134
|
-
|
|
2128
|
+
}
|
|
2129
|
+
function DialogTitle({
|
|
2130
|
+
className,
|
|
2131
|
+
...props
|
|
2132
|
+
}) {
|
|
2135
2133
|
return /* @__PURE__ */ jsx(
|
|
2136
|
-
|
|
2134
|
+
SheetPrimitive.Title,
|
|
2137
2135
|
{
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
{
|
|
2155
|
-
d: "M6.65039 12.65L0.650391 6.65L6.65039 0.65",
|
|
2156
|
-
stroke: "currentColor",
|
|
2157
|
-
strokeWidth: "1.3",
|
|
2158
|
-
strokeLinecap: "round",
|
|
2159
|
-
strokeLinejoin: "round"
|
|
2160
|
-
}
|
|
2161
|
-
),
|
|
2162
|
-
/* @__PURE__ */ jsx(
|
|
2163
|
-
"path",
|
|
2164
|
-
{
|
|
2165
|
-
d: "M12.6504 6.65H0.650391",
|
|
2166
|
-
stroke: "currentColor",
|
|
2167
|
-
strokeWidth: "1.3",
|
|
2168
|
-
strokeLinecap: "round",
|
|
2169
|
-
strokeLinejoin: "round"
|
|
2170
|
-
}
|
|
2171
|
-
)
|
|
2172
|
-
]
|
|
2173
|
-
}
|
|
2174
|
-
)
|
|
2136
|
+
"data-slot": "dialog-title",
|
|
2137
|
+
className: cn("dialog-title heading-xxsmall", className),
|
|
2138
|
+
...props
|
|
2139
|
+
}
|
|
2140
|
+
);
|
|
2141
|
+
}
|
|
2142
|
+
function DialogDescription({
|
|
2143
|
+
className,
|
|
2144
|
+
...props
|
|
2145
|
+
}) {
|
|
2146
|
+
return /* @__PURE__ */ jsx(
|
|
2147
|
+
SheetPrimitive.Description,
|
|
2148
|
+
{
|
|
2149
|
+
"data-slot": "dialog-description",
|
|
2150
|
+
className: cn("dialog-description", className),
|
|
2151
|
+
...props
|
|
2175
2152
|
}
|
|
2176
2153
|
);
|
|
2154
|
+
}
|
|
2155
|
+
const Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command$1, { ref, className: cn("command", className), ...props }));
|
|
2156
|
+
Command.displayName = Command$1.displayName;
|
|
2157
|
+
const CommandDialog = ({ children, ...props }) => {
|
|
2158
|
+
return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "command-dialog-content", children: /* @__PURE__ */ jsx(Command, { children }) }) });
|
|
2177
2159
|
};
|
|
2178
|
-
const
|
|
2179
|
-
|
|
2180
|
-
|
|
2160
|
+
const CommandInput = React.forwardRef(({ className, icon: Icon = Search, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: cn("command-input-wrapper", className), "cmdk-input-wrapper": "", children: [
|
|
2161
|
+
/* @__PURE__ */ jsx(Icon, { className: "icon-4 icon-shrink-0" }),
|
|
2162
|
+
/* @__PURE__ */ jsx(
|
|
2163
|
+
Command$1.Input,
|
|
2181
2164
|
{
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
fill: "none",
|
|
2186
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2187
|
-
className: cn("text-gray-700", className),
|
|
2188
|
-
children: [
|
|
2189
|
-
/* @__PURE__ */ jsx(
|
|
2190
|
-
"path",
|
|
2191
|
-
{
|
|
2192
|
-
d: "M87.4833 17.1541C84.5265 17.1541 82.2737 14.8309 82.2737 11.7333C82.2737 8.63573 84.5265 6.31253 87.4833 6.31253C89.4779 6.31253 91.1675 7.36853 92.0358 9.0112V0.281599C92.0358 0.117333 92.1531 0 92.3174 0H92.599C92.7633 0 92.8806 0.117333 92.8806 0.281599V16.7317C92.8806 16.896 92.7633 17.0133 92.599 17.0133H92.3174C92.1531 17.0133 92.0358 16.896 92.0358 16.7317V14.4555C91.1675 16.0981 89.4779 17.1541 87.4833 17.1541ZM87.5771 7.1808C85.0662 7.1808 83.1419 9.12853 83.1419 11.7333C83.1419 14.3381 85.0662 16.3093 87.5771 16.3093C90.0881 16.3093 91.9889 14.3381 91.9889 11.7333C91.9889 9.12853 90.0881 7.1808 87.5771 7.1808Z",
|
|
2193
|
-
fill: "currentColor"
|
|
2194
|
-
}
|
|
2195
|
-
),
|
|
2196
|
-
/* @__PURE__ */ jsx(
|
|
2197
|
-
"path",
|
|
2198
|
-
{
|
|
2199
|
-
d: "M75.8349 17.0133C75.6706 17.0133 75.5298 16.896 75.5298 16.7317V6.73493C75.5298 6.57067 75.6706 6.45333 75.8349 6.45333H76.1165C76.2807 6.45333 76.3981 6.57067 76.3981 6.73493V8.63573C76.8674 7.8144 78.0642 6.4064 80.7629 6.31253C80.9037 6.31253 81.0445 6.42987 81.0445 6.59413V6.94613C81.0445 7.1104 80.9271 7.20427 80.7629 7.20427C80.6925 7.1808 80.6455 7.1808 80.5751 7.1808C78.2285 7.1808 76.3981 8.77653 76.3981 10.8885V16.7317C76.3981 16.896 76.2807 17.0133 76.1165 17.0133H75.8349Z",
|
|
2200
|
-
fill: "currentColor"
|
|
2201
|
-
}
|
|
2202
|
-
),
|
|
2203
|
-
/* @__PURE__ */ jsx(
|
|
2204
|
-
"path",
|
|
2205
|
-
{
|
|
2206
|
-
d: "M66.4457 17.1541C63.4889 17.1541 61.2361 14.8309 61.2361 11.7333C61.2361 8.63573 63.4889 6.31253 66.4457 6.31253C68.4403 6.31253 70.13 7.36853 70.9982 9.0112V6.73493C70.9982 6.57067 71.1156 6.45333 71.2798 6.45333H71.5849C71.7257 6.45333 71.8665 6.57067 71.8665 6.73493V16.7317C71.8665 16.896 71.7257 17.0133 71.5849 17.0133H71.2798C71.1156 17.0133 70.9982 16.896 70.9982 16.7317V14.4555C70.13 16.0981 68.4403 17.1541 66.4457 17.1541ZM66.5396 7.1808C64.0286 7.1808 62.1044 9.12853 62.1044 11.7333C62.1044 14.3381 64.0286 16.3093 66.5396 16.3093C69.0505 16.3093 70.9513 14.3381 70.9513 11.7333C70.9513 9.12853 69.0505 7.1808 66.5396 7.1808Z",
|
|
2207
|
-
fill: "currentColor"
|
|
2208
|
-
}
|
|
2209
|
-
),
|
|
2210
|
-
/* @__PURE__ */ jsx(
|
|
2211
|
-
"path",
|
|
2212
|
-
{
|
|
2213
|
-
d: "M52.8561 17.1541C49.8993 17.1541 47.6465 14.8309 47.6465 11.7333C47.6465 8.63573 49.8993 6.31253 52.8561 6.31253C54.8507 6.31253 56.5404 7.36853 57.4086 9.0112V0.281599C57.4086 0.117333 57.526 0 57.6902 0H57.9718C58.1361 0 58.2534 0.117333 58.2534 0.281599V16.7317C58.2534 16.896 58.1361 17.0133 57.9718 17.0133H57.6902C57.526 17.0133 57.4086 16.896 57.4086 16.7317V14.4555C56.5404 16.0981 54.8507 17.1541 52.8561 17.1541ZM52.95 7.1808C50.439 7.1808 48.5148 9.12853 48.5148 11.7333C48.5148 14.3381 50.439 16.3093 52.95 16.3093C55.4609 16.3093 57.3617 14.3381 57.3617 11.7333C57.3617 9.12853 55.4609 7.1808 52.95 7.1808Z",
|
|
2214
|
-
fill: "currentColor"
|
|
2215
|
-
}
|
|
2216
|
-
),
|
|
2217
|
-
/* @__PURE__ */ jsx(
|
|
2218
|
-
"path",
|
|
2219
|
-
{
|
|
2220
|
-
d: "M35.5473 17.0133C35.383 17.0133 35.2422 16.896 35.2422 16.7317V6.73493C35.2422 6.57067 35.383 6.45333 35.5473 6.45333H35.8289C35.9931 6.45333 36.1105 6.57067 36.1105 6.73493V8.75307C36.5329 7.90827 37.7297 6.31253 40.4518 6.31253C42.9393 6.31253 44.7697 8.14293 44.7697 10.6304V16.7317C44.7697 16.896 44.6523 17.0133 44.4881 17.0133H44.2065C44.0422 17.0133 43.9249 16.896 43.9249 16.7317V10.7712C43.9249 8.70613 42.3526 7.13387 40.2875 7.13387C37.9409 7.13387 36.1105 8.75307 36.1105 10.8416V16.7317C36.1105 16.896 35.9931 17.0133 35.8289 17.0133H35.5473Z",
|
|
2221
|
-
fill: "currentColor"
|
|
2222
|
-
}
|
|
2223
|
-
),
|
|
2224
|
-
/* @__PURE__ */ jsx(
|
|
2225
|
-
"path",
|
|
2226
|
-
{
|
|
2227
|
-
d: "M26.1583 17.1541C23.2015 17.1541 20.9487 14.8309 20.9487 11.7333C20.9487 8.63573 23.2015 6.31253 26.1583 6.31253C28.153 6.31253 29.8426 7.36853 30.7109 9.0112V6.73493C30.7109 6.57067 30.8282 6.45333 30.9925 6.45333H31.2975C31.4383 6.45333 31.5791 6.57067 31.5791 6.73493V16.7317C31.5791 16.896 31.4383 17.0133 31.2975 17.0133H30.9925C30.8282 17.0133 30.7109 16.896 30.7109 16.7317V14.4555C29.8426 16.0981 28.153 17.1541 26.1583 17.1541ZM26.2522 7.1808C23.7413 7.1808 21.817 9.12853 21.817 11.7333C21.817 14.3381 23.7413 16.3093 26.2522 16.3093C28.7631 16.3093 30.6639 14.3381 30.6639 11.7333C30.6639 9.12853 28.7631 7.1808 26.2522 7.1808Z",
|
|
2228
|
-
fill: "currentColor"
|
|
2229
|
-
}
|
|
2230
|
-
),
|
|
2231
|
-
/* @__PURE__ */ jsx(
|
|
2232
|
-
"path",
|
|
2233
|
-
{
|
|
2234
|
-
d: "M13.285 7.2512C13.1208 7.2512 13.0034 7.13387 13.0034 6.9696V6.73493C13.0034 6.57067 13.1208 6.45333 13.285 6.45333H14.9277V4.41173C14.9277 4.24747 15.045 4.13013 15.2093 4.13013H15.4909C15.6552 4.13013 15.7725 4.24747 15.7725 4.41173V6.45333H18.7997C18.964 6.45333 19.0813 6.57067 19.0813 6.73493V6.9696C19.0813 7.13387 18.964 7.2512 18.7997 7.2512H15.7725V14.08C15.7725 15.2768 16.5234 16.1685 17.5325 16.1685H18.7762C18.9405 16.1685 19.0578 16.2859 19.0578 16.4501V16.7317C19.0578 16.896 18.9405 17.0133 18.7762 17.0133H17.4856C16.0306 17.0133 14.9277 15.7696 14.9277 14.1504V7.2512H13.285Z",
|
|
2235
|
-
fill: "currentColor"
|
|
2236
|
-
}
|
|
2237
|
-
),
|
|
2238
|
-
/* @__PURE__ */ jsx(
|
|
2239
|
-
"path",
|
|
2240
|
-
{
|
|
2241
|
-
d: "M9.84461 4.576C9.46915 3.0272 7.73262 1.9008 5.55022 1.9008C3.10968 1.9008 1.25581 3.28533 1.25581 5.2096C1.25581 7.29813 3.46168 7.90827 5.83182 8.47147C8.38968 9.0112 11.1587 9.83253 11.1587 12.6955C11.1587 15.3237 8.78862 17.1776 5.59715 17.1776C2.73422 17.1776 0.551815 15.6992 0.0120816 13.6576C-0.0348519 13.5168 0.0590148 13.376 0.223281 13.3291L0.598748 13.1883C0.622215 13.1883 0.645682 13.1883 0.645682 13.1883C0.763015 13.1883 0.856881 13.2587 0.903815 13.376C1.32621 15.0656 3.18008 16.2859 5.59715 16.2859C8.24888 16.2859 10.2435 14.8075 10.2435 12.7424C10.2435 10.6069 8.08462 9.90294 5.64408 9.38667C3.20355 8.82347 0.364081 8.07253 0.364081 5.23307C0.364081 2.7456 2.54648 1.03253 5.52675 1.03253C8.17848 1.03253 10.2201 2.3936 10.7598 4.2944C10.8067 4.4352 10.7129 4.576 10.5486 4.62294L10.1497 4.76373C10.0323 4.7872 9.91501 4.7168 9.84461 4.576Z",
|
|
2242
|
-
fill: "currentColor"
|
|
2243
|
-
}
|
|
2244
|
-
)
|
|
2245
|
-
]
|
|
2165
|
+
ref,
|
|
2166
|
+
className: cn("command-input", className),
|
|
2167
|
+
...props
|
|
2246
2168
|
}
|
|
2247
|
-
)
|
|
2169
|
+
)
|
|
2170
|
+
] }));
|
|
2171
|
+
CommandInput.displayName = Command$1.Input.displayName;
|
|
2172
|
+
const CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2173
|
+
Command$1.List,
|
|
2174
|
+
{
|
|
2175
|
+
ref,
|
|
2176
|
+
className: cn("command-list", className),
|
|
2177
|
+
...props
|
|
2178
|
+
}
|
|
2179
|
+
));
|
|
2180
|
+
CommandList.displayName = Command$1.List.displayName;
|
|
2181
|
+
const CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command$1.Empty, { ref, className: "command-empty", ...props }));
|
|
2182
|
+
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
2183
|
+
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2184
|
+
Command$1.Group,
|
|
2185
|
+
{
|
|
2186
|
+
ref,
|
|
2187
|
+
className: cn("command-group", className),
|
|
2188
|
+
...props
|
|
2189
|
+
}
|
|
2190
|
+
));
|
|
2191
|
+
CommandGroup.displayName = Command$1.Group.displayName;
|
|
2192
|
+
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2193
|
+
Command$1.Separator,
|
|
2194
|
+
{
|
|
2195
|
+
ref,
|
|
2196
|
+
className: cn("command-separator", className),
|
|
2197
|
+
...props
|
|
2198
|
+
}
|
|
2199
|
+
));
|
|
2200
|
+
CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
2201
|
+
const CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2202
|
+
Command$1.Item,
|
|
2203
|
+
{
|
|
2204
|
+
ref,
|
|
2205
|
+
className: cn("command-item", className),
|
|
2206
|
+
...props
|
|
2207
|
+
}
|
|
2208
|
+
));
|
|
2209
|
+
CommandItem.displayName = Command$1.Item.displayName;
|
|
2210
|
+
const CommandShortcut = ({
|
|
2211
|
+
className,
|
|
2212
|
+
...props
|
|
2213
|
+
}) => {
|
|
2214
|
+
return /* @__PURE__ */ jsx("span", { className: cn("command-shortcut", className), ...props });
|
|
2248
2215
|
};
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2216
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
2217
|
+
const SearchField = ({
|
|
2218
|
+
options,
|
|
2219
|
+
placeholder,
|
|
2220
|
+
emptyMessage,
|
|
2221
|
+
value,
|
|
2222
|
+
onValueChange,
|
|
2223
|
+
disabled,
|
|
2224
|
+
isLoading = false
|
|
2225
|
+
}) => {
|
|
2226
|
+
const inputRef = useRef(null);
|
|
2227
|
+
const [isOpen, setOpen] = useState(false);
|
|
2228
|
+
const [selected, setSelected] = useState(value);
|
|
2229
|
+
const [inputValue, setInputValue] = useState((value == null ? void 0 : value.label) || "");
|
|
2230
|
+
const handleKeyDown = useCallback(
|
|
2231
|
+
(event) => {
|
|
2232
|
+
const input = inputRef.current;
|
|
2233
|
+
if (!input) {
|
|
2234
|
+
return;
|
|
2235
|
+
}
|
|
2236
|
+
if (!isOpen) {
|
|
2237
|
+
setOpen(true);
|
|
2238
|
+
}
|
|
2239
|
+
if (event.key === "Enter" && input.value !== "") {
|
|
2240
|
+
const optionToSelect = options.find(
|
|
2241
|
+
(option) => option.label === input.value
|
|
2242
|
+
);
|
|
2243
|
+
if (optionToSelect) {
|
|
2244
|
+
setSelected(optionToSelect);
|
|
2245
|
+
onValueChange == null ? void 0 : onValueChange(optionToSelect);
|
|
2259
2246
|
}
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2247
|
+
}
|
|
2248
|
+
if (event.key === "Escape") {
|
|
2249
|
+
input.blur();
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
[isOpen, options, onValueChange]
|
|
2253
|
+
);
|
|
2254
|
+
const handleBlur = useCallback(() => {
|
|
2255
|
+
setOpen(false);
|
|
2256
|
+
setInputValue(selected == null ? void 0 : selected.label);
|
|
2257
|
+
}, [selected]);
|
|
2258
|
+
const handleSelectOption = useCallback(
|
|
2259
|
+
(selectedOption) => {
|
|
2260
|
+
setInputValue(selectedOption.label);
|
|
2261
|
+
setSelected(selectedOption);
|
|
2262
|
+
onValueChange == null ? void 0 : onValueChange(selectedOption);
|
|
2263
|
+
setTimeout(() => {
|
|
2264
|
+
var _a;
|
|
2265
|
+
(_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.blur();
|
|
2266
|
+
}, 0);
|
|
2267
|
+
},
|
|
2268
|
+
[onValueChange]
|
|
2269
|
+
);
|
|
2270
|
+
return /* @__PURE__ */ jsxs(Command$1, { onKeyDown: handleKeyDown, children: [
|
|
2271
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
2272
|
+
CommandInput,
|
|
2273
|
+
{
|
|
2274
|
+
ref: inputRef,
|
|
2275
|
+
value: inputValue,
|
|
2276
|
+
onValueChange: isLoading ? void 0 : setInputValue,
|
|
2277
|
+
onBlur: handleBlur,
|
|
2278
|
+
onFocus: () => setOpen(true),
|
|
2279
|
+
placeholder,
|
|
2280
|
+
disabled,
|
|
2281
|
+
className: cn(
|
|
2282
|
+
"search-field-input--focused",
|
|
2283
|
+
isOpen && "search-field-input--open"
|
|
2284
|
+
)
|
|
2285
|
+
}
|
|
2286
|
+
) }),
|
|
2287
|
+
/* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
|
|
2288
|
+
"div",
|
|
2289
|
+
{
|
|
2290
|
+
className: cn("search-field-dropdown", isOpen ? "block" : "hidden"),
|
|
2291
|
+
children: /* @__PURE__ */ jsxs(CommandList, { className: "search-field-list", children: [
|
|
2292
|
+
(options == null ? void 0 : options.length) > 0 && !isLoading ? /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
|
|
2293
|
+
const isSelected = (selected == null ? void 0 : selected.value) === option.value;
|
|
2294
|
+
return /* @__PURE__ */ jsxs(
|
|
2295
|
+
CommandItem,
|
|
2296
|
+
{
|
|
2297
|
+
value: option.label,
|
|
2298
|
+
onMouseDown: (event) => {
|
|
2299
|
+
event.preventDefault();
|
|
2300
|
+
event.stopPropagation();
|
|
2301
|
+
},
|
|
2302
|
+
onSelect: () => handleSelectOption(option),
|
|
2303
|
+
children: [
|
|
2304
|
+
isSelected ? /* @__PURE__ */ jsx(Check, { className: "icon-4" }) : null,
|
|
2305
|
+
option.label
|
|
2306
|
+
]
|
|
2307
|
+
},
|
|
2308
|
+
option.value
|
|
2309
|
+
);
|
|
2310
|
+
}) }) : null,
|
|
2311
|
+
!isLoading ? /* @__PURE__ */ jsx(CommandEmpty, { className: "search-field-empty", children: emptyMessage }) : null
|
|
2312
|
+
] })
|
|
2313
|
+
}
|
|
2314
|
+
) })
|
|
2315
|
+
] });
|
|
2316
|
+
};
|
|
2317
|
+
const getStatusClass = (status, variant2 = "light") => {
|
|
2318
|
+
return `status-tag tag--${variant2}-${status}`;
|
|
2319
|
+
};
|
|
2320
|
+
const Tag = React.forwardRef(
|
|
2321
|
+
({
|
|
2322
|
+
children,
|
|
2323
|
+
active = false,
|
|
2324
|
+
status,
|
|
2325
|
+
variant: variant2 = "light",
|
|
2326
|
+
className,
|
|
2327
|
+
onClick,
|
|
2328
|
+
...props
|
|
2329
|
+
}, ref) => {
|
|
2330
|
+
if (status) {
|
|
2331
|
+
const statusClass = getStatusClass(status, variant2);
|
|
2263
2332
|
return /* @__PURE__ */ jsx(
|
|
2264
|
-
"
|
|
2333
|
+
"button",
|
|
2265
2334
|
{
|
|
2266
2335
|
ref,
|
|
2267
|
-
|
|
2336
|
+
onClick,
|
|
2337
|
+
className: cn(statusClass, className),
|
|
2268
2338
|
...props,
|
|
2269
|
-
|
|
2270
|
-
e.preventDefault();
|
|
2271
|
-
onLinkClick(href);
|
|
2272
|
-
},
|
|
2273
|
-
children
|
|
2339
|
+
children: /* @__PURE__ */ jsx("span", { className: "overline-medium", children })
|
|
2274
2340
|
}
|
|
2275
2341
|
);
|
|
2276
2342
|
}
|
|
2277
|
-
return /* @__PURE__ */ jsx("a", { ref, href, ...props, children });
|
|
2278
|
-
}
|
|
2279
|
-
);
|
|
2280
|
-
NavLink.displayName = "NavLink";
|
|
2281
|
-
const ALPHA_PATH$1 = "M5.3387 0.0229882C5.37971 0.0229882 5.45295 0.0199228 5.5584 0.0137925C5.66386 0.00459714 5.74442 0 5.80007 0C6.72867 0 7.49908 0.269732 8.11131 0.809196C8.72354 1.34559 9.14097 2.09195 9.3636 3.04828C9.44855 3.47433 9.49835 3.96628 9.513 4.52414V5.16782C10.2014 4.07663 10.7287 2.85517 11.0948 1.50345C11.1505 1.29808 11.1959 1.17701 11.2311 1.14023C11.2662 1.10345 11.3761 1.08506 11.5606 1.08506C11.8535 1.08506 12 1.13563 12 1.23678C12 1.25211 11.9722 1.37778 11.9165 1.61379C11.5093 3.24751 10.7931 4.77701 9.76785 6.2023L9.53497 6.51034L9.55694 7.04368C9.59795 8.23295 9.72391 8.9318 9.93482 9.14023C9.97583 9.16782 10.0388 9.18161 10.1238 9.18161C10.32 9.15402 10.5031 9.06973 10.673 8.92874C10.8429 8.78774 10.963 8.62222 11.0333 8.43218C11.0597 8.32797 11.0948 8.26513 11.1388 8.24368C11.1798 8.22222 11.2852 8.21149 11.4551 8.21149C11.7364 8.21149 11.877 8.27739 11.877 8.40919C11.877 8.49808 11.8345 8.63142 11.7495 8.8092C11.5943 9.13103 11.3687 9.4069 11.0729 9.63678C10.777 9.8636 10.4475 9.97701 10.0842 9.97701H9.93482C8.97986 9.97701 8.3398 9.44674 8.01465 8.38621L7.95313 8.23448C7.20615 8.74942 6.79165 9.02835 6.70963 9.07126C5.66679 9.69042 4.61809 10 3.56353 10C2.56756 10 1.76346 9.70575 1.15123 9.11724C0.538997 8.52874 0.162578 7.75632 0.02197 6.8C0.0073233 6.71111 0 6.54866 0 6.31264C0 5.9295 0.02197 5.62146 0.0659099 5.38851C0.276822 4.06437 0.887587 2.8751 1.89821 1.82069C2.91175 0.769348 4.05859 0.170115 5.3387 0.0229882ZM1.83669 7.10805C1.83669 7.73946 1.9978 8.24368 2.32003 8.62069C2.64518 8.99464 3.09484 9.18161 3.66899 9.18161C4.03515 9.18161 4.44379 9.12337 4.89491 9.0069C5.6829 8.80153 6.44892 8.4046 7.19297 7.81609C7.29257 7.74253 7.38777 7.66437 7.47858 7.58161C7.56939 7.50192 7.64262 7.43295 7.69828 7.37471L7.78176 7.28276L7.76419 7.08506C7.76419 6.95326 7.75979 6.75862 7.75101 6.50115C7.74515 6.24368 7.74222 5.98927 7.74222 5.73793C7.72757 5.18008 7.71732 4.74636 7.71146 4.43678C7.70267 4.1272 7.67338 3.74866 7.62358 3.30115C7.57671 2.85364 7.5108 2.50728 7.42585 2.26207C7.3409 2.01992 7.22519 1.77471 7.07873 1.52644C6.92933 1.2751 6.73892 1.09425 6.50751 0.983908C6.27609 0.873563 6.00513 0.81839 5.69462 0.81839C4.72501 0.81839 3.87404 1.35479 3.14171 2.42759C2.79019 2.97318 2.49579 3.71647 2.25851 4.65747C1.9773 5.73333 1.83669 6.55019 1.83669 7.10805Z";
|
|
2282
|
-
const PATH_LENGTH$1 = 60;
|
|
2283
|
-
const AlphaIcon$1 = ({ dark }) => {
|
|
2284
|
-
if (dark) {
|
|
2285
2343
|
return /* @__PURE__ */ jsx(
|
|
2286
|
-
"
|
|
2344
|
+
"button",
|
|
2287
2345
|
{
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
);
|
|
2298
|
-
}
|
|
2299
|
-
return /* @__PURE__ */ jsxs(
|
|
2300
|
-
"svg",
|
|
2301
|
-
{
|
|
2302
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2303
|
-
width: "12",
|
|
2304
|
-
height: "10",
|
|
2305
|
-
viewBox: "0 0 12 10",
|
|
2306
|
-
fill: "none",
|
|
2307
|
-
className: "mt-1.5",
|
|
2308
|
-
style: { overflow: "visible" },
|
|
2309
|
-
children: [
|
|
2310
|
-
/* @__PURE__ */ jsx(
|
|
2311
|
-
"path",
|
|
2312
|
-
{
|
|
2313
|
-
d: ALPHA_PATH$1,
|
|
2314
|
-
fill: "url(#paint0_linear_10081_30848)",
|
|
2315
|
-
opacity: "0.4"
|
|
2316
|
-
}
|
|
2317
|
-
),
|
|
2318
|
-
/* @__PURE__ */ jsx(
|
|
2319
|
-
motion.path,
|
|
2320
|
-
{
|
|
2321
|
-
d: ALPHA_PATH$1,
|
|
2322
|
-
fill: "none",
|
|
2323
|
-
stroke: "url(#stroke_gradient)",
|
|
2324
|
-
strokeWidth: "0.4",
|
|
2325
|
-
strokeLinecap: "round",
|
|
2326
|
-
strokeLinejoin: "round",
|
|
2327
|
-
initial: { strokeDashoffset: PATH_LENGTH$1 },
|
|
2328
|
-
animate: { strokeDashoffset: -PATH_LENGTH$1 },
|
|
2329
|
-
style: { strokeDasharray: `8 ${PATH_LENGTH$1 - 8}` },
|
|
2330
|
-
transition: {
|
|
2331
|
-
duration: 2,
|
|
2332
|
-
repeat: Infinity,
|
|
2333
|
-
repeatDelay: 8,
|
|
2334
|
-
ease: "linear"
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
),
|
|
2338
|
-
/* @__PURE__ */ jsxs("defs", { children: [
|
|
2339
|
-
/* @__PURE__ */ jsxs(
|
|
2340
|
-
"linearGradient",
|
|
2341
|
-
{
|
|
2342
|
-
id: "paint0_linear_10081_30848",
|
|
2343
|
-
x1: "-3.27254",
|
|
2344
|
-
y1: "4.99923",
|
|
2345
|
-
x2: "6.36738",
|
|
2346
|
-
y2: "-2.36962",
|
|
2347
|
-
gradientUnits: "userSpaceOnUse",
|
|
2348
|
-
children: [
|
|
2349
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "#8AEFDB" }),
|
|
2350
|
-
/* @__PURE__ */ jsx("stop", { offset: "0.5", stopColor: "#D4BACE" }),
|
|
2351
|
-
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#CBE0F1" })
|
|
2352
|
-
]
|
|
2353
|
-
}
|
|
2354
|
-
),
|
|
2355
|
-
/* @__PURE__ */ jsxs(
|
|
2356
|
-
"linearGradient",
|
|
2357
|
-
{
|
|
2358
|
-
id: "stroke_gradient",
|
|
2359
|
-
x1: "0",
|
|
2360
|
-
y1: "0",
|
|
2361
|
-
x2: "12",
|
|
2362
|
-
y2: "10",
|
|
2363
|
-
gradientUnits: "userSpaceOnUse",
|
|
2364
|
-
children: [
|
|
2365
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "#8AEFDB" }),
|
|
2366
|
-
/* @__PURE__ */ jsx("stop", { offset: "0.5", stopColor: "#D4BACE" }),
|
|
2367
|
-
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#CBE0F1" })
|
|
2368
|
-
]
|
|
2369
|
-
}
|
|
2370
|
-
)
|
|
2371
|
-
] })
|
|
2372
|
-
]
|
|
2373
|
-
}
|
|
2374
|
-
);
|
|
2375
|
-
};
|
|
2376
|
-
const Navigation = ({
|
|
2377
|
-
navItems,
|
|
2378
|
-
isStrategy = false,
|
|
2379
|
-
Link: LinkComponent,
|
|
2380
|
-
onLinkClick,
|
|
2381
|
-
onClose,
|
|
2382
|
-
pathname
|
|
2383
|
-
}) => {
|
|
2384
|
-
const [isOpen, setIsOpen] = React.useState(false);
|
|
2385
|
-
const [activeItem, setActiveItem] = React.useState(null);
|
|
2386
|
-
const containerRef = React.useRef(null);
|
|
2387
|
-
const menuRef = React.useRef(null);
|
|
2388
|
-
const menuItemsRef = React.useRef(null);
|
|
2389
|
-
const overlayRef = React.useRef(null);
|
|
2390
|
-
const isHomepage = pathname === "/";
|
|
2391
|
-
const handleMouseLeave = () => {
|
|
2392
|
-
setIsOpen(false);
|
|
2393
|
-
setActiveItem(null);
|
|
2394
|
-
};
|
|
2395
|
-
const handleNavItemMouseEnter = (index) => {
|
|
2396
|
-
setIsOpen(true);
|
|
2397
|
-
setActiveItem(index + 1);
|
|
2398
|
-
};
|
|
2399
|
-
const NavLink2 = ({ href, className, "aria-label": ariaLabel, children }) => {
|
|
2400
|
-
if (LinkComponent) {
|
|
2401
|
-
return /* @__PURE__ */ jsx(LinkComponent, { href, className, "aria-label": ariaLabel, children });
|
|
2402
|
-
}
|
|
2403
|
-
if (onLinkClick) {
|
|
2404
|
-
return /* @__PURE__ */ jsx(
|
|
2405
|
-
"a",
|
|
2406
|
-
{
|
|
2407
|
-
href,
|
|
2408
|
-
className,
|
|
2409
|
-
"aria-label": ariaLabel,
|
|
2410
|
-
onClick: (e) => {
|
|
2411
|
-
e.preventDefault();
|
|
2412
|
-
onLinkClick(href);
|
|
2413
|
-
},
|
|
2414
|
-
children
|
|
2415
|
-
}
|
|
2416
|
-
);
|
|
2417
|
-
}
|
|
2418
|
-
return /* @__PURE__ */ jsx("a", { href, className, "aria-label": ariaLabel, children });
|
|
2419
|
-
};
|
|
2420
|
-
return /* @__PURE__ */ jsxs(
|
|
2421
|
-
"nav",
|
|
2422
|
-
{
|
|
2423
|
-
ref: containerRef,
|
|
2424
|
-
className: cn("navigation", isStrategy && "navigation--strategy"),
|
|
2425
|
-
"data-strategy": isStrategy,
|
|
2426
|
-
onMouseLeave: handleMouseLeave,
|
|
2427
|
-
children: [
|
|
2428
|
-
!isStrategy && /* @__PURE__ */ jsx(
|
|
2429
|
-
"div",
|
|
2430
|
-
{
|
|
2431
|
-
ref: overlayRef,
|
|
2432
|
-
className: "navigation-overlay",
|
|
2433
|
-
"data-open": isOpen
|
|
2434
|
-
}
|
|
2435
|
-
),
|
|
2436
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-container", children: [
|
|
2437
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-logo-container", children: [
|
|
2438
|
-
/* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", children: !isHomepage && /* @__PURE__ */ jsx(
|
|
2439
|
-
motion.div,
|
|
2440
|
-
{
|
|
2441
|
-
layout: true,
|
|
2442
|
-
initial: { opacity: 0, scale: 0.8 },
|
|
2443
|
-
animate: { opacity: 1, scale: 1 },
|
|
2444
|
-
exit: { opacity: 0, scale: 0.8 },
|
|
2445
|
-
transition: { duration: 0.2, ease: "easeOut" },
|
|
2446
|
-
style: { willChange: "transform, opacity" },
|
|
2447
|
-
children: /* @__PURE__ */ jsx(
|
|
2448
|
-
Button,
|
|
2449
|
-
{
|
|
2450
|
-
size: "icon",
|
|
2451
|
-
className: " mr-6",
|
|
2452
|
-
onClick: () => onClose == null ? void 0 : onClose(),
|
|
2453
|
-
children: /* @__PURE__ */ jsx(UtilityClearRegular, {})
|
|
2454
|
-
}
|
|
2455
|
-
)
|
|
2456
|
-
}
|
|
2457
|
-
) }),
|
|
2458
|
-
/* @__PURE__ */ jsx(
|
|
2459
|
-
motion.div,
|
|
2460
|
-
{
|
|
2461
|
-
layout: true,
|
|
2462
|
-
transition: { duration: 0.2, ease: "easeOut" },
|
|
2463
|
-
children: /* @__PURE__ */ jsxs(
|
|
2464
|
-
NavLink2,
|
|
2465
|
-
{
|
|
2466
|
-
href: "/",
|
|
2467
|
-
className: cn("navigation-logo-link"),
|
|
2468
|
-
"data-strategy": isStrategy,
|
|
2469
|
-
"aria-label": "Home",
|
|
2470
|
-
children: [
|
|
2471
|
-
/* @__PURE__ */ jsx(NavLogo, { dark: isStrategy }),
|
|
2472
|
-
/* @__PURE__ */ jsx(StandardLogo, { className: cn(!isStrategy ? "text-white" : "text-black") }),
|
|
2473
|
-
/* @__PURE__ */ jsx(AlphaIcon$1, { dark: isStrategy })
|
|
2474
|
-
]
|
|
2475
|
-
}
|
|
2476
|
-
)
|
|
2477
|
-
}
|
|
2478
|
-
)
|
|
2479
|
-
] }),
|
|
2480
|
-
!isStrategy ? /* @__PURE__ */ jsx("div", { className: "navigation-nav-container", children: /* @__PURE__ */ jsx("ul", { className: "navigation-nav-list", children: navItems ? navItems.map((item, index) => /* @__PURE__ */ jsxs(
|
|
2481
|
-
"li",
|
|
2482
|
-
{
|
|
2483
|
-
className: "navigation-nav-item",
|
|
2484
|
-
onMouseEnter: () => handleNavItemMouseEnter(index),
|
|
2485
|
-
children: [
|
|
2486
|
-
/* @__PURE__ */ jsx("span", { className: "navigation-nav-link", children: item.label }),
|
|
2487
|
-
activeItem === index + 1 && /* @__PURE__ */ jsx(
|
|
2488
|
-
motion.div,
|
|
2489
|
-
{
|
|
2490
|
-
id: "underline",
|
|
2491
|
-
className: "navigation-underline",
|
|
2492
|
-
layoutId: "underline",
|
|
2493
|
-
transition: { duration: 0.2, ease: "easeOut" },
|
|
2494
|
-
children: /* @__PURE__ */ jsx(
|
|
2495
|
-
"div",
|
|
2496
|
-
{
|
|
2497
|
-
className: "navigation-underline-circle navigation-underline-circle--gradient",
|
|
2498
|
-
style: {
|
|
2499
|
-
width: "10px",
|
|
2500
|
-
height: "5px",
|
|
2501
|
-
borderBottomLeftRadius: "100px",
|
|
2502
|
-
borderBottomRightRadius: "100px",
|
|
2503
|
-
borderBottom: "0",
|
|
2504
|
-
boxSizing: "border-box"
|
|
2505
|
-
}
|
|
2506
|
-
}
|
|
2507
|
-
)
|
|
2508
|
-
}
|
|
2509
|
-
),
|
|
2510
|
-
index === 0 && /* @__PURE__ */ jsx(
|
|
2511
|
-
"div",
|
|
2512
|
-
{
|
|
2513
|
-
className: "navigation-underline navigation-underline--static",
|
|
2514
|
-
style: { transition: "all 0.2s ease-out" },
|
|
2515
|
-
children: /* @__PURE__ */ jsx(
|
|
2516
|
-
"div",
|
|
2517
|
-
{
|
|
2518
|
-
className: "navigation-underline-circle navigation-underline-circle--white",
|
|
2519
|
-
style: {
|
|
2520
|
-
width: "10px",
|
|
2521
|
-
height: "5px",
|
|
2522
|
-
borderTopLeftRadius: "100px",
|
|
2523
|
-
borderTopRightRadius: "100px",
|
|
2524
|
-
borderBottom: "0",
|
|
2525
|
-
boxSizing: "border-box"
|
|
2526
|
-
}
|
|
2527
|
-
}
|
|
2528
|
-
)
|
|
2529
|
-
}
|
|
2530
|
-
)
|
|
2531
|
-
]
|
|
2532
|
-
},
|
|
2533
|
-
index + 1
|
|
2534
|
-
)) : null }) }) : null,
|
|
2535
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-actions", children: /* @__PURE__ */ jsx(
|
|
2536
|
-
NavLink2,
|
|
2537
|
-
{
|
|
2538
|
-
href: "/",
|
|
2539
|
-
"aria-label": "Account link",
|
|
2540
|
-
className: cn("navigation-account-link", isStrategy && "navigation-account-link--strategy"),
|
|
2541
|
-
"data-open": isOpen,
|
|
2542
|
-
"data-strategy": isStrategy,
|
|
2543
|
-
children: /* @__PURE__ */ jsx(
|
|
2544
|
-
NavAccount,
|
|
2545
|
-
{
|
|
2546
|
-
className: cn(
|
|
2547
|
-
"navigation-account-icon",
|
|
2548
|
-
isStrategy ? "navigation-account-icon--strategy" : "navigation-account-icon--default"
|
|
2549
|
-
)
|
|
2550
|
-
}
|
|
2551
|
-
)
|
|
2552
|
-
}
|
|
2553
|
-
) })
|
|
2554
|
-
] }),
|
|
2555
|
-
isOpen && /* @__PURE__ */ jsx("div", { className: "navigation-divider" }),
|
|
2556
|
-
/* @__PURE__ */ jsx("div", { ref: menuRef, className: "navigation-tray", "data-open": isOpen, children: /* @__PURE__ */ jsx("div", { className: "navigation-tray-content", children: /* @__PURE__ */ jsx("div", { ref: menuItemsRef, className: "navigation-tray-grid", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxs(
|
|
2557
|
-
motion.div,
|
|
2558
|
-
{
|
|
2559
|
-
initial: { y: 10, opacity: 0 },
|
|
2560
|
-
animate: { y: 0, opacity: 1 },
|
|
2561
|
-
exit: { y: -10, opacity: 0 },
|
|
2562
|
-
transition: { duration: 0.2 },
|
|
2563
|
-
children: [
|
|
2564
|
-
activeItem === 1 && /* @__PURE__ */ jsxs("div", { className: "navigation-tray-section", children: [
|
|
2565
|
-
/* @__PURE__ */ jsx(
|
|
2566
|
-
"h2",
|
|
2567
|
-
{
|
|
2568
|
-
className: "navigation-tray-heading",
|
|
2569
|
-
style: {
|
|
2570
|
-
background: "linear-gradient(90deg, #41D5F6 0%, #3EECD1 25%, #66FCD9 50%, #66FCD9 75%, #3EECD1 100%)",
|
|
2571
|
-
WebkitBackgroundClip: "text",
|
|
2572
|
-
WebkitTextFillColor: "transparent",
|
|
2573
|
-
backgroundClip: "text"
|
|
2574
|
-
},
|
|
2575
|
-
children: "WELL sets the standard for people-first places"
|
|
2576
|
-
}
|
|
2577
|
-
),
|
|
2578
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-columns", children: [
|
|
2579
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2580
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Everything" }),
|
|
2581
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list navigation-tray-column-list--spacing-5", children: [
|
|
2582
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Explore WELL" }) }),
|
|
2583
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Enroll in WELL" }) }),
|
|
2584
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "What's new" }) })
|
|
2585
|
-
] })
|
|
2586
|
-
] }),
|
|
2587
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2588
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "WHY WELL" }),
|
|
2589
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list navigation-tray-column-list--spacing-5", children: [
|
|
2590
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Performance" }) }),
|
|
2591
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "ROI" }) }),
|
|
2592
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Impact" }) })
|
|
2593
|
-
] })
|
|
2594
|
-
] }),
|
|
2595
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2596
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Standard" }),
|
|
2597
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list navigation-tray-column-list--spacing-5", children: [
|
|
2598
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Strategies" }) }),
|
|
2599
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Themes" }) }),
|
|
2600
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Milestones" }) })
|
|
2601
|
-
] })
|
|
2602
|
-
] }),
|
|
2603
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2604
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Network" }),
|
|
2605
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list navigation-tray-column-list--spacing-5", children: [
|
|
2606
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Organizations" }) }),
|
|
2607
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "People" }) })
|
|
2608
|
-
] })
|
|
2609
|
-
] }),
|
|
2610
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2611
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Solutions" }),
|
|
2612
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list navigation-tray-column-list--spacing-5", children: [
|
|
2613
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Products" }) }),
|
|
2614
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Services" }) })
|
|
2615
|
-
] })
|
|
2616
|
-
] }),
|
|
2617
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2618
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Places" }),
|
|
2619
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list navigation-tray-column-list--spacing-5", children: [
|
|
2620
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Locations" }) }),
|
|
2621
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Portfolios" }) })
|
|
2622
|
-
] })
|
|
2623
|
-
] })
|
|
2624
|
-
] })
|
|
2625
|
-
] }),
|
|
2626
|
-
activeItem === 2 && /* @__PURE__ */ jsxs("div", { className: "navigation-tray-section", children: [
|
|
2627
|
-
/* @__PURE__ */ jsx(
|
|
2628
|
-
"h2",
|
|
2629
|
-
{
|
|
2630
|
-
className: "navigation-tray-heading",
|
|
2631
|
-
style: {
|
|
2632
|
-
background: "linear-gradient(99deg, #41D5F6 3.39%, #3EECD1 57.86%, #66FCD9 112.32%)",
|
|
2633
|
-
backgroundClip: "text",
|
|
2634
|
-
WebkitBackgroundClip: "text",
|
|
2635
|
-
WebkitTextFillColor: "transparent"
|
|
2636
|
-
},
|
|
2637
|
-
children: "WELL works everywhere, at any scale"
|
|
2638
|
-
}
|
|
2639
|
-
),
|
|
2640
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-columns", children: [
|
|
2641
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2642
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "SUBSCRIBE" }),
|
|
2643
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2644
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "WELL at scale" }) }),
|
|
2645
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2646
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2647
|
-
/* @__PURE__ */ jsx(NavLink2, { href: "/", children: /* @__PURE__ */ jsx("span", { className: "navigation-tray-link-small", children: "Pricing" }) })
|
|
2648
|
-
] }) }),
|
|
2649
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2650
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2651
|
-
/* @__PURE__ */ jsx(NavLink2, { href: "/", children: /* @__PURE__ */ jsx("span", { className: "navigation-tray-link-small", children: "Leaderboard" }) })
|
|
2652
|
-
] }) })
|
|
2653
|
-
] })
|
|
2654
|
-
] }),
|
|
2655
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2656
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Certify" }),
|
|
2657
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2658
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "WELL Certification" }) }),
|
|
2659
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
|
|
2660
|
-
NavLink2,
|
|
2661
|
-
{
|
|
2662
|
-
href: "/",
|
|
2663
|
-
className: "navigation-tray-link navigation-tray-link--with-badge",
|
|
2664
|
-
children: [
|
|
2665
|
-
"WELL Residence",
|
|
2666
|
-
/* @__PURE__ */ jsx("span", { className: "navigation-tray-badge", children: "PILOT" })
|
|
2667
|
-
]
|
|
2668
|
-
}
|
|
2669
|
-
) })
|
|
2670
|
-
] })
|
|
2671
|
-
] }),
|
|
2672
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2673
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Get rated" }),
|
|
2674
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2675
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "WELL Ratings" }) }),
|
|
2676
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2677
|
-
/* @__PURE__ */ jsx(NavBullet, { color: "#F3E7D8" }),
|
|
2678
|
-
/* @__PURE__ */ jsx(
|
|
2679
|
-
NavLink2,
|
|
2680
|
-
{
|
|
2681
|
-
href: "/",
|
|
2682
|
-
className: "navigation-tray-link-small",
|
|
2683
|
-
children: "Health-Safety Rating"
|
|
2684
|
-
}
|
|
2685
|
-
)
|
|
2686
|
-
] }) }),
|
|
2687
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2688
|
-
/* @__PURE__ */ jsx(NavBullet, { color: "#0F748A" }),
|
|
2689
|
-
/* @__PURE__ */ jsx(
|
|
2690
|
-
NavLink2,
|
|
2691
|
-
{
|
|
2692
|
-
href: "/",
|
|
2693
|
-
className: "navigation-tray-link-small",
|
|
2694
|
-
children: "Performance Rating"
|
|
2695
|
-
}
|
|
2696
|
-
)
|
|
2697
|
-
] }) }),
|
|
2698
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2699
|
-
/* @__PURE__ */ jsx(NavBullet, { color: "#17AA8D" }),
|
|
2700
|
-
/* @__PURE__ */ jsx(
|
|
2701
|
-
NavLink2,
|
|
2702
|
-
{
|
|
2703
|
-
href: "/",
|
|
2704
|
-
className: "navigation-tray-link-small",
|
|
2705
|
-
children: "Equity Rating"
|
|
2706
|
-
}
|
|
2707
|
-
)
|
|
2708
|
-
] }) })
|
|
2709
|
-
] })
|
|
2710
|
-
] })
|
|
2711
|
-
] })
|
|
2712
|
-
] }),
|
|
2713
|
-
activeItem === 3 && /* @__PURE__ */ jsxs("div", { className: "navigation-tray-section", children: [
|
|
2714
|
-
/* @__PURE__ */ jsx(
|
|
2715
|
-
"h2",
|
|
2716
|
-
{
|
|
2717
|
-
className: "navigation-tray-heading",
|
|
2718
|
-
style: {
|
|
2719
|
-
background: "linear-gradient(90deg, #41D5F6 0%, #3EECD1 25%, #66FCD9 50%, #66FCD9 75%, #3EECD1 100%)",
|
|
2720
|
-
WebkitBackgroundClip: "text",
|
|
2721
|
-
WebkitTextFillColor: "transparent"
|
|
2722
|
-
},
|
|
2723
|
-
children: "Our network drives our movement"
|
|
2724
|
-
}
|
|
2725
|
-
),
|
|
2726
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-columns", children: [
|
|
2727
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2728
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "JOIN" }),
|
|
2729
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2730
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Membership" }) }),
|
|
2731
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Works with WELL" }) }),
|
|
2732
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2733
|
-
/* @__PURE__ */ jsx(NavBullet, { color: "#2E74AD" }),
|
|
2734
|
-
/* @__PURE__ */ jsx(
|
|
2735
|
-
NavLink2,
|
|
2736
|
-
{
|
|
2737
|
-
href: "/",
|
|
2738
|
-
className: "navigation-tray-link-small",
|
|
2739
|
-
children: "Enterprise Provider"
|
|
2740
|
-
}
|
|
2741
|
-
)
|
|
2742
|
-
] }) }),
|
|
2743
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2744
|
-
/* @__PURE__ */ jsx(NavBullet, { color: "#149EBD" }),
|
|
2745
|
-
/* @__PURE__ */ jsx(
|
|
2746
|
-
NavLink2,
|
|
2747
|
-
{
|
|
2748
|
-
href: "/",
|
|
2749
|
-
className: "navigation-tray-link-small",
|
|
2750
|
-
children: "Product Provider"
|
|
2751
|
-
}
|
|
2752
|
-
)
|
|
2753
|
-
] }) }),
|
|
2754
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2755
|
-
/* @__PURE__ */ jsx(NavBullet, { color: "#ED896F" }),
|
|
2756
|
-
/* @__PURE__ */ jsx(
|
|
2757
|
-
NavLink2,
|
|
2758
|
-
{
|
|
2759
|
-
href: "/",
|
|
2760
|
-
className: "navigation-tray-link-small",
|
|
2761
|
-
children: "Performance Testing Provider"
|
|
2762
|
-
}
|
|
2763
|
-
)
|
|
2764
|
-
] }) })
|
|
2765
|
-
] })
|
|
2766
|
-
] }),
|
|
2767
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2768
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "EARN" }),
|
|
2769
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2770
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "WELL AP" }) }),
|
|
2771
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "WELL Faculty" }) })
|
|
2772
|
-
] })
|
|
2773
|
-
] })
|
|
2774
|
-
] })
|
|
2775
|
-
] }),
|
|
2776
|
-
activeItem === 4 && /* @__PURE__ */ jsxs("div", { className: "navigation-tray-section", children: [
|
|
2777
|
-
/* @__PURE__ */ jsx(
|
|
2778
|
-
"h2",
|
|
2779
|
-
{
|
|
2780
|
-
className: "navigation-tray-heading",
|
|
2781
|
-
style: {
|
|
2782
|
-
background: "linear-gradient(90deg, #41D5F6 0%, #3EECD1 25%, #66FCD9 50%, #66FCD9 75%, #3EECD1 100%)",
|
|
2783
|
-
WebkitBackgroundClip: "text",
|
|
2784
|
-
WebkitTextFillColor: "transparent"
|
|
2785
|
-
},
|
|
2786
|
-
children: "Learn from the experts on health"
|
|
2787
|
-
}
|
|
2788
|
-
),
|
|
2789
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-columns", children: [
|
|
2790
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2791
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "LEARN" }),
|
|
2792
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2793
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "WELL Forum" }) }),
|
|
2794
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2795
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2796
|
-
/* @__PURE__ */ jsx(
|
|
2797
|
-
NavLink2,
|
|
2798
|
-
{
|
|
2799
|
-
href: "/",
|
|
2800
|
-
className: "navigation-tray-link-small",
|
|
2801
|
-
children: "Threads"
|
|
2802
|
-
}
|
|
2803
|
-
)
|
|
2804
|
-
] }) }),
|
|
2805
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2806
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2807
|
-
/* @__PURE__ */ jsx(
|
|
2808
|
-
NavLink2,
|
|
2809
|
-
{
|
|
2810
|
-
href: "/",
|
|
2811
|
-
className: "navigation-tray-link-small",
|
|
2812
|
-
children: "Webcasts"
|
|
2813
|
-
}
|
|
2814
|
-
)
|
|
2815
|
-
] }) }),
|
|
2816
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2817
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2818
|
-
/* @__PURE__ */ jsx(
|
|
2819
|
-
NavLink2,
|
|
2820
|
-
{
|
|
2821
|
-
href: "/",
|
|
2822
|
-
className: "navigation-tray-link-small",
|
|
2823
|
-
children: "Trainings"
|
|
2824
|
-
}
|
|
2825
|
-
)
|
|
2826
|
-
] }) })
|
|
2827
|
-
] })
|
|
2828
|
-
] }),
|
|
2829
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2830
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "ATTEND" }),
|
|
2831
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2832
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "WELL 2025" }) }),
|
|
2833
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2834
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2835
|
-
/* @__PURE__ */ jsx(
|
|
2836
|
-
NavLink2,
|
|
2837
|
-
{
|
|
2838
|
-
href: "/",
|
|
2839
|
-
className: "navigation-tray-link-small",
|
|
2840
|
-
children: "Flagship events"
|
|
2841
|
-
}
|
|
2842
|
-
)
|
|
2843
|
-
] }) }),
|
|
2844
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2845
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2846
|
-
/* @__PURE__ */ jsx(
|
|
2847
|
-
NavLink2,
|
|
2848
|
-
{
|
|
2849
|
-
href: "/",
|
|
2850
|
-
className: "navigation-tray-link-small",
|
|
2851
|
-
children: "Thematic summits"
|
|
2852
|
-
}
|
|
2853
|
-
)
|
|
2854
|
-
] }) }),
|
|
2855
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2856
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2857
|
-
/* @__PURE__ */ jsx(
|
|
2858
|
-
NavLink2,
|
|
2859
|
-
{
|
|
2860
|
-
href: "/",
|
|
2861
|
-
className: "navigation-tray-link-small",
|
|
2862
|
-
children: "Regional summits"
|
|
2863
|
-
}
|
|
2864
|
-
)
|
|
2865
|
-
] }) })
|
|
2866
|
-
] })
|
|
2867
|
-
] }),
|
|
2868
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2869
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "GUIDANCE" }),
|
|
2870
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2871
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Knowledge base" }) }),
|
|
2872
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2873
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2874
|
-
/* @__PURE__ */ jsx(
|
|
2875
|
-
NavLink2,
|
|
2876
|
-
{
|
|
2877
|
-
href: "/",
|
|
2878
|
-
className: "navigation-tray-link-small",
|
|
2879
|
-
children: "Tutorials"
|
|
2880
|
-
}
|
|
2881
|
-
)
|
|
2882
|
-
] }) }),
|
|
2883
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2884
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2885
|
-
/* @__PURE__ */ jsx(
|
|
2886
|
-
NavLink2,
|
|
2887
|
-
{
|
|
2888
|
-
href: "/",
|
|
2889
|
-
className: "navigation-tray-link-small",
|
|
2890
|
-
children: "Guides"
|
|
2891
|
-
}
|
|
2892
|
-
)
|
|
2893
|
-
] }) }),
|
|
2894
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2895
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2896
|
-
/* @__PURE__ */ jsx(
|
|
2897
|
-
NavLink2,
|
|
2898
|
-
{
|
|
2899
|
-
href: "/",
|
|
2900
|
-
className: "navigation-tray-link-small",
|
|
2901
|
-
children: "FAQs"
|
|
2902
|
-
}
|
|
2903
|
-
)
|
|
2904
|
-
] }) })
|
|
2905
|
-
] })
|
|
2906
|
-
] }),
|
|
2907
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2908
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Resources" }),
|
|
2909
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2910
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Resource library" }) }),
|
|
2911
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2912
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2913
|
-
/* @__PURE__ */ jsx(
|
|
2914
|
-
NavLink2,
|
|
2915
|
-
{
|
|
2916
|
-
href: "/",
|
|
2917
|
-
className: "navigation-tray-link-small",
|
|
2918
|
-
children: "Technical tools"
|
|
2919
|
-
}
|
|
2920
|
-
)
|
|
2921
|
-
] }) }),
|
|
2922
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2923
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2924
|
-
/* @__PURE__ */ jsx(
|
|
2925
|
-
NavLink2,
|
|
2926
|
-
{
|
|
2927
|
-
href: "/",
|
|
2928
|
-
className: "navigation-tray-link-small",
|
|
2929
|
-
children: "Sales tools"
|
|
2930
|
-
}
|
|
2931
|
-
)
|
|
2932
|
-
] }) }),
|
|
2933
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
2934
|
-
/* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
2935
|
-
/* @__PURE__ */ jsx(
|
|
2936
|
-
NavLink2,
|
|
2937
|
-
{
|
|
2938
|
-
href: "/",
|
|
2939
|
-
className: "navigation-tray-link-small",
|
|
2940
|
-
children: "Media"
|
|
2941
|
-
}
|
|
2942
|
-
)
|
|
2943
|
-
] }) })
|
|
2944
|
-
] })
|
|
2945
|
-
] })
|
|
2946
|
-
] })
|
|
2947
|
-
] }),
|
|
2948
|
-
activeItem === 5 && /* @__PURE__ */ jsxs("div", { className: "navigation-tray-section", children: [
|
|
2949
|
-
/* @__PURE__ */ jsx(
|
|
2950
|
-
"h2",
|
|
2951
|
-
{
|
|
2952
|
-
className: "navigation-tray-heading",
|
|
2953
|
-
style: {
|
|
2954
|
-
background: "linear-gradient(90deg, #41D5F6 0%, #3EECD1 25%, #66FCD9 50%, #66FCD9 75%, #3EECD1 100%)",
|
|
2955
|
-
WebkitBackgroundClip: "text",
|
|
2956
|
-
WebkitTextFillColor: "transparent"
|
|
2957
|
-
},
|
|
2958
|
-
children: "The International WELL Building Institute (IWBI)"
|
|
2959
|
-
}
|
|
2960
|
-
),
|
|
2961
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-columns", children: [
|
|
2962
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2963
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "About" }),
|
|
2964
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2965
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "IWBI" }) }),
|
|
2966
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Research" }) }),
|
|
2967
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Advocacy" }) })
|
|
2968
|
-
] })
|
|
2969
|
-
] }),
|
|
2970
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2971
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Meet" }),
|
|
2972
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2973
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Team" }) }),
|
|
2974
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Advisories" }) }),
|
|
2975
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Governance Council" }) })
|
|
2976
|
-
] })
|
|
2977
|
-
] }),
|
|
2978
|
-
/* @__PURE__ */ jsxs("div", { className: "navigation-tray-column", children: [
|
|
2979
|
-
/* @__PURE__ */ jsx("h3", { className: "navigation-tray-column-title", children: "Explore" }),
|
|
2980
|
-
/* @__PURE__ */ jsxs("ul", { className: "navigation-tray-column-list", children: [
|
|
2981
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Newsroom" }) }),
|
|
2982
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Jobs" }) }),
|
|
2983
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(NavLink2, { href: "/", className: "navigation-tray-link", children: "Blog" }) })
|
|
2984
|
-
] })
|
|
2985
|
-
] })
|
|
2986
|
-
] })
|
|
2987
|
-
] })
|
|
2988
|
-
]
|
|
2989
|
-
},
|
|
2990
|
-
activeItem ? activeItem + 1 : "empty"
|
|
2991
|
-
) }) }) }) })
|
|
2992
|
-
]
|
|
2993
|
-
}
|
|
2994
|
-
);
|
|
2995
|
-
};
|
|
2996
|
-
function Dialog({
|
|
2997
|
-
...props
|
|
2998
|
-
}) {
|
|
2999
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
3000
|
-
}
|
|
3001
|
-
function DialogTrigger({
|
|
3002
|
-
...props
|
|
3003
|
-
}) {
|
|
3004
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
|
|
3005
|
-
}
|
|
3006
|
-
function DialogPortal({
|
|
3007
|
-
...props
|
|
3008
|
-
}) {
|
|
3009
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
|
|
3010
|
-
}
|
|
3011
|
-
function DialogClose({
|
|
3012
|
-
...props
|
|
3013
|
-
}) {
|
|
3014
|
-
return /* @__PURE__ */ jsx(SheetPrimitive.Close, { "data-slot": "dialog-close", ...props });
|
|
3015
|
-
}
|
|
3016
|
-
function DialogOverlay({
|
|
3017
|
-
className,
|
|
3018
|
-
...props
|
|
3019
|
-
}) {
|
|
3020
|
-
return /* @__PURE__ */ jsx(
|
|
3021
|
-
SheetPrimitive.Overlay,
|
|
3022
|
-
{
|
|
3023
|
-
"data-slot": "dialog-overlay",
|
|
3024
|
-
className: cn("dialog-overlay", className),
|
|
3025
|
-
...props
|
|
3026
|
-
}
|
|
3027
|
-
);
|
|
3028
|
-
}
|
|
3029
|
-
function DialogContent({
|
|
3030
|
-
className,
|
|
3031
|
-
children,
|
|
3032
|
-
showCloseButton = true,
|
|
3033
|
-
...props
|
|
3034
|
-
}) {
|
|
3035
|
-
return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
3036
|
-
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
3037
|
-
/* @__PURE__ */ jsxs(
|
|
3038
|
-
SheetPrimitive.Content,
|
|
3039
|
-
{
|
|
3040
|
-
"data-slot": "dialog-content",
|
|
3041
|
-
className: cn("dialog-content", className),
|
|
3042
|
-
...props,
|
|
3043
|
-
children: [
|
|
3044
|
-
/* @__PURE__ */ jsx("div", { className: "dialog-content-inner", children }),
|
|
3045
|
-
showCloseButton && /* @__PURE__ */ jsxs(
|
|
3046
|
-
SheetPrimitive.Close,
|
|
3047
|
-
{
|
|
3048
|
-
"data-slot": "dialog-close",
|
|
3049
|
-
className: "dialog-close",
|
|
3050
|
-
children: [
|
|
3051
|
-
/* @__PURE__ */ jsx(XIcon, {}),
|
|
3052
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
3053
|
-
]
|
|
3054
|
-
}
|
|
3055
|
-
)
|
|
3056
|
-
]
|
|
3057
|
-
}
|
|
3058
|
-
)
|
|
3059
|
-
] });
|
|
3060
|
-
}
|
|
3061
|
-
function DialogHeader({ className, ...props }) {
|
|
3062
|
-
return /* @__PURE__ */ jsx(
|
|
3063
|
-
"div",
|
|
3064
|
-
{
|
|
3065
|
-
"data-slot": "dialog-header",
|
|
3066
|
-
className: cn("dialog-header", className),
|
|
3067
|
-
...props
|
|
3068
|
-
}
|
|
3069
|
-
);
|
|
3070
|
-
}
|
|
3071
|
-
function DialogFooter({ className, ...props }) {
|
|
3072
|
-
return /* @__PURE__ */ jsx(
|
|
3073
|
-
"div",
|
|
3074
|
-
{
|
|
3075
|
-
"data-slot": "dialog-footer",
|
|
3076
|
-
className: cn("dialog-footer", className),
|
|
3077
|
-
...props
|
|
3078
|
-
}
|
|
3079
|
-
);
|
|
3080
|
-
}
|
|
3081
|
-
function DialogTitle({
|
|
3082
|
-
className,
|
|
3083
|
-
...props
|
|
3084
|
-
}) {
|
|
3085
|
-
return /* @__PURE__ */ jsx(
|
|
3086
|
-
SheetPrimitive.Title,
|
|
3087
|
-
{
|
|
3088
|
-
"data-slot": "dialog-title",
|
|
3089
|
-
className: cn("dialog-title heading-xxsmall", className),
|
|
3090
|
-
...props
|
|
3091
|
-
}
|
|
3092
|
-
);
|
|
3093
|
-
}
|
|
3094
|
-
function DialogDescription({
|
|
3095
|
-
className,
|
|
3096
|
-
...props
|
|
3097
|
-
}) {
|
|
3098
|
-
return /* @__PURE__ */ jsx(
|
|
3099
|
-
SheetPrimitive.Description,
|
|
3100
|
-
{
|
|
3101
|
-
"data-slot": "dialog-description",
|
|
3102
|
-
className: cn("dialog-description", className),
|
|
3103
|
-
...props
|
|
3104
|
-
}
|
|
3105
|
-
);
|
|
3106
|
-
}
|
|
3107
|
-
const Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Command$1, { ref, className: cn("command", className), ...props }));
|
|
3108
|
-
Command.displayName = Command$1.displayName;
|
|
3109
|
-
const CommandDialog = ({ children, ...props }) => {
|
|
3110
|
-
return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "command-dialog-content", children: /* @__PURE__ */ jsx(Command, { children }) }) });
|
|
3111
|
-
};
|
|
3112
|
-
const CommandInput = React.forwardRef(({ className, icon: Icon = Search, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: cn("command-input-wrapper", className), "cmdk-input-wrapper": "", children: [
|
|
3113
|
-
/* @__PURE__ */ jsx(Icon, { className: "icon-4 icon-shrink-0" }),
|
|
3114
|
-
/* @__PURE__ */ jsx(
|
|
3115
|
-
Command$1.Input,
|
|
3116
|
-
{
|
|
3117
|
-
ref,
|
|
3118
|
-
className: cn("command-input", className),
|
|
3119
|
-
...props
|
|
3120
|
-
}
|
|
3121
|
-
)
|
|
3122
|
-
] }));
|
|
3123
|
-
CommandInput.displayName = Command$1.Input.displayName;
|
|
3124
|
-
const CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3125
|
-
Command$1.List,
|
|
3126
|
-
{
|
|
3127
|
-
ref,
|
|
3128
|
-
className: cn("command-list", className),
|
|
3129
|
-
...props
|
|
3130
|
-
}
|
|
3131
|
-
));
|
|
3132
|
-
CommandList.displayName = Command$1.List.displayName;
|
|
3133
|
-
const CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(Command$1.Empty, { ref, className: "command-empty", ...props }));
|
|
3134
|
-
CommandEmpty.displayName = Command$1.Empty.displayName;
|
|
3135
|
-
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3136
|
-
Command$1.Group,
|
|
3137
|
-
{
|
|
3138
|
-
ref,
|
|
3139
|
-
className: cn("command-group", className),
|
|
3140
|
-
...props
|
|
3141
|
-
}
|
|
3142
|
-
));
|
|
3143
|
-
CommandGroup.displayName = Command$1.Group.displayName;
|
|
3144
|
-
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3145
|
-
Command$1.Separator,
|
|
3146
|
-
{
|
|
3147
|
-
ref,
|
|
3148
|
-
className: cn("command-separator", className),
|
|
3149
|
-
...props
|
|
3150
|
-
}
|
|
3151
|
-
));
|
|
3152
|
-
CommandSeparator.displayName = Command$1.Separator.displayName;
|
|
3153
|
-
const CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3154
|
-
Command$1.Item,
|
|
3155
|
-
{
|
|
3156
|
-
ref,
|
|
3157
|
-
className: cn("command-item", className),
|
|
3158
|
-
...props
|
|
3159
|
-
}
|
|
3160
|
-
));
|
|
3161
|
-
CommandItem.displayName = Command$1.Item.displayName;
|
|
3162
|
-
const CommandShortcut = ({
|
|
3163
|
-
className,
|
|
3164
|
-
...props
|
|
3165
|
-
}) => {
|
|
3166
|
-
return /* @__PURE__ */ jsx("span", { className: cn("command-shortcut", className), ...props });
|
|
3167
|
-
};
|
|
3168
|
-
CommandShortcut.displayName = "CommandShortcut";
|
|
3169
|
-
const SearchField = ({
|
|
3170
|
-
options,
|
|
3171
|
-
placeholder,
|
|
3172
|
-
emptyMessage,
|
|
3173
|
-
value,
|
|
3174
|
-
onValueChange,
|
|
3175
|
-
disabled,
|
|
3176
|
-
isLoading = false
|
|
3177
|
-
}) => {
|
|
3178
|
-
const inputRef = useRef(null);
|
|
3179
|
-
const [isOpen, setOpen] = useState(false);
|
|
3180
|
-
const [selected, setSelected] = useState(value);
|
|
3181
|
-
const [inputValue, setInputValue] = useState((value == null ? void 0 : value.label) || "");
|
|
3182
|
-
const handleKeyDown = useCallback(
|
|
3183
|
-
(event) => {
|
|
3184
|
-
const input = inputRef.current;
|
|
3185
|
-
if (!input) {
|
|
3186
|
-
return;
|
|
3187
|
-
}
|
|
3188
|
-
if (!isOpen) {
|
|
3189
|
-
setOpen(true);
|
|
3190
|
-
}
|
|
3191
|
-
if (event.key === "Enter" && input.value !== "") {
|
|
3192
|
-
const optionToSelect = options.find(
|
|
3193
|
-
(option) => option.label === input.value
|
|
3194
|
-
);
|
|
3195
|
-
if (optionToSelect) {
|
|
3196
|
-
setSelected(optionToSelect);
|
|
3197
|
-
onValueChange == null ? void 0 : onValueChange(optionToSelect);
|
|
3198
|
-
}
|
|
3199
|
-
}
|
|
3200
|
-
if (event.key === "Escape") {
|
|
3201
|
-
input.blur();
|
|
3202
|
-
}
|
|
3203
|
-
},
|
|
3204
|
-
[isOpen, options, onValueChange]
|
|
3205
|
-
);
|
|
3206
|
-
const handleBlur = useCallback(() => {
|
|
3207
|
-
setOpen(false);
|
|
3208
|
-
setInputValue(selected == null ? void 0 : selected.label);
|
|
3209
|
-
}, [selected]);
|
|
3210
|
-
const handleSelectOption = useCallback(
|
|
3211
|
-
(selectedOption) => {
|
|
3212
|
-
setInputValue(selectedOption.label);
|
|
3213
|
-
setSelected(selectedOption);
|
|
3214
|
-
onValueChange == null ? void 0 : onValueChange(selectedOption);
|
|
3215
|
-
setTimeout(() => {
|
|
3216
|
-
var _a;
|
|
3217
|
-
(_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.blur();
|
|
3218
|
-
}, 0);
|
|
3219
|
-
},
|
|
3220
|
-
[onValueChange]
|
|
3221
|
-
);
|
|
3222
|
-
return /* @__PURE__ */ jsxs(Command$1, { onKeyDown: handleKeyDown, children: [
|
|
3223
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
3224
|
-
CommandInput,
|
|
3225
|
-
{
|
|
3226
|
-
ref: inputRef,
|
|
3227
|
-
value: inputValue,
|
|
3228
|
-
onValueChange: isLoading ? void 0 : setInputValue,
|
|
3229
|
-
onBlur: handleBlur,
|
|
3230
|
-
onFocus: () => setOpen(true),
|
|
3231
|
-
placeholder,
|
|
3232
|
-
disabled,
|
|
3233
|
-
className: cn(
|
|
3234
|
-
"search-field-input--focused",
|
|
3235
|
-
isOpen && "search-field-input--open"
|
|
3236
|
-
)
|
|
3237
|
-
}
|
|
3238
|
-
) }),
|
|
3239
|
-
/* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
|
|
3240
|
-
"div",
|
|
3241
|
-
{
|
|
3242
|
-
className: cn("search-field-dropdown", isOpen ? "block" : "hidden"),
|
|
3243
|
-
children: /* @__PURE__ */ jsxs(CommandList, { className: "search-field-list", children: [
|
|
3244
|
-
(options == null ? void 0 : options.length) > 0 && !isLoading ? /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
|
|
3245
|
-
const isSelected = (selected == null ? void 0 : selected.value) === option.value;
|
|
3246
|
-
return /* @__PURE__ */ jsxs(
|
|
3247
|
-
CommandItem,
|
|
3248
|
-
{
|
|
3249
|
-
value: option.label,
|
|
3250
|
-
onMouseDown: (event) => {
|
|
3251
|
-
event.preventDefault();
|
|
3252
|
-
event.stopPropagation();
|
|
3253
|
-
},
|
|
3254
|
-
onSelect: () => handleSelectOption(option),
|
|
3255
|
-
children: [
|
|
3256
|
-
isSelected ? /* @__PURE__ */ jsx(Check, { className: "icon-4" }) : null,
|
|
3257
|
-
option.label
|
|
3258
|
-
]
|
|
3259
|
-
},
|
|
3260
|
-
option.value
|
|
3261
|
-
);
|
|
3262
|
-
}) }) : null,
|
|
3263
|
-
!isLoading ? /* @__PURE__ */ jsx(CommandEmpty, { className: "search-field-empty", children: emptyMessage }) : null
|
|
3264
|
-
] })
|
|
3265
|
-
}
|
|
3266
|
-
) })
|
|
3267
|
-
] });
|
|
3268
|
-
};
|
|
3269
|
-
const getStatusClass = (status, variant2 = "light") => {
|
|
3270
|
-
return `status-tag tag--${variant2}-${status}`;
|
|
3271
|
-
};
|
|
3272
|
-
const Tag = React.forwardRef(
|
|
3273
|
-
({
|
|
3274
|
-
children,
|
|
3275
|
-
active = false,
|
|
3276
|
-
status,
|
|
3277
|
-
variant: variant2 = "light",
|
|
3278
|
-
className,
|
|
3279
|
-
onClick,
|
|
3280
|
-
...props
|
|
3281
|
-
}, ref) => {
|
|
3282
|
-
if (status) {
|
|
3283
|
-
const statusClass = getStatusClass(status, variant2);
|
|
3284
|
-
return /* @__PURE__ */ jsx(
|
|
3285
|
-
"button",
|
|
3286
|
-
{
|
|
3287
|
-
ref,
|
|
3288
|
-
onClick,
|
|
3289
|
-
className: cn(statusClass, className),
|
|
3290
|
-
...props,
|
|
3291
|
-
children: /* @__PURE__ */ jsx("span", { className: "overline-medium", children })
|
|
3292
|
-
}
|
|
3293
|
-
);
|
|
3294
|
-
}
|
|
3295
|
-
return /* @__PURE__ */ jsx(
|
|
3296
|
-
"button",
|
|
3297
|
-
{
|
|
3298
|
-
ref,
|
|
3299
|
-
onClick,
|
|
3300
|
-
className: cn(
|
|
3301
|
-
"tag-general",
|
|
3302
|
-
active ? "tag-general--active" : "tag-general--inactive",
|
|
3303
|
-
className
|
|
3304
|
-
),
|
|
3305
|
-
...props,
|
|
3306
|
-
children: /* @__PURE__ */ jsx("span", { className: "body-small font-semibold", children })
|
|
2346
|
+
ref,
|
|
2347
|
+
onClick,
|
|
2348
|
+
className: cn(
|
|
2349
|
+
"tag-general",
|
|
2350
|
+
active ? "tag-general--active" : "tag-general--inactive",
|
|
2351
|
+
className
|
|
2352
|
+
),
|
|
2353
|
+
...props,
|
|
2354
|
+
children: /* @__PURE__ */ jsx("span", { className: "body-small font-semibold", children })
|
|
3307
2355
|
}
|
|
3308
2356
|
);
|
|
3309
2357
|
}
|
|
@@ -3454,7 +2502,7 @@ const PaginationEllipsis = ({
|
|
|
3454
2502
|
}
|
|
3455
2503
|
);
|
|
3456
2504
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
3457
|
-
const NavigationMenu = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2505
|
+
const NavigationMenu$1 = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3458
2506
|
NavigationMenuPrimitive.Root,
|
|
3459
2507
|
{
|
|
3460
2508
|
ref,
|
|
@@ -3466,7 +2514,7 @@ const NavigationMenu = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
3466
2514
|
]
|
|
3467
2515
|
}
|
|
3468
2516
|
));
|
|
3469
|
-
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2517
|
+
NavigationMenu$1.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
3470
2518
|
const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3471
2519
|
NavigationMenuPrimitive.List,
|
|
3472
2520
|
{
|
|
@@ -3838,1157 +2886,1665 @@ const DrawerFooter = ({
|
|
|
3838
2886
|
className: cn("drawer-footer", className),
|
|
3839
2887
|
...props
|
|
3840
2888
|
}
|
|
3841
|
-
);
|
|
3842
|
-
DrawerFooter.displayName = "DrawerFooter";
|
|
3843
|
-
const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3844
|
-
Drawer$1.Title,
|
|
2889
|
+
);
|
|
2890
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
2891
|
+
const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2892
|
+
Drawer$1.Title,
|
|
2893
|
+
{
|
|
2894
|
+
ref,
|
|
2895
|
+
className: cn("drawer-title", className),
|
|
2896
|
+
...props
|
|
2897
|
+
}
|
|
2898
|
+
));
|
|
2899
|
+
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
2900
|
+
const DrawerDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2901
|
+
Drawer$1.Description,
|
|
2902
|
+
{
|
|
2903
|
+
ref,
|
|
2904
|
+
className: cn("drawer-description", className),
|
|
2905
|
+
...props
|
|
2906
|
+
}
|
|
2907
|
+
));
|
|
2908
|
+
DrawerDescription.displayName = Drawer$1.Description.displayName;
|
|
2909
|
+
const Popover = PopoverPrimitive.Root;
|
|
2910
|
+
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2911
|
+
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2912
|
+
PopoverPrimitive.Content,
|
|
2913
|
+
{
|
|
2914
|
+
ref,
|
|
2915
|
+
align,
|
|
2916
|
+
sideOffset,
|
|
2917
|
+
className: cn("popover-content", className),
|
|
2918
|
+
...props
|
|
2919
|
+
}
|
|
2920
|
+
) }));
|
|
2921
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
2922
|
+
const HoverCard = HoverCardPrimitive.Root;
|
|
2923
|
+
const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2924
|
+
const HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2925
|
+
HoverCardPrimitive.Content,
|
|
2926
|
+
{
|
|
2927
|
+
ref,
|
|
2928
|
+
align,
|
|
2929
|
+
sideOffset,
|
|
2930
|
+
className: cn("hover-card-content", className),
|
|
2931
|
+
...props
|
|
2932
|
+
}
|
|
2933
|
+
));
|
|
2934
|
+
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
2935
|
+
const ContextMenu = ContextMenuPrimitive.Root;
|
|
2936
|
+
const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
2937
|
+
const ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
2938
|
+
const ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
2939
|
+
const ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
2940
|
+
const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
2941
|
+
const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2942
|
+
ContextMenuPrimitive.SubTrigger,
|
|
2943
|
+
{
|
|
2944
|
+
ref,
|
|
2945
|
+
className: cn(
|
|
2946
|
+
"context-menu-sub-trigger",
|
|
2947
|
+
inset && "context-menu-sub-trigger--inset",
|
|
2948
|
+
className
|
|
2949
|
+
),
|
|
2950
|
+
...props,
|
|
2951
|
+
children: [
|
|
2952
|
+
children,
|
|
2953
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "icon-4" })
|
|
2954
|
+
]
|
|
2955
|
+
}
|
|
2956
|
+
));
|
|
2957
|
+
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
2958
|
+
const ContextMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2959
|
+
ContextMenuPrimitive.SubContent,
|
|
2960
|
+
{
|
|
2961
|
+
ref,
|
|
2962
|
+
className: cn("context-menu-sub-content", className),
|
|
2963
|
+
...props
|
|
2964
|
+
}
|
|
2965
|
+
));
|
|
2966
|
+
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
2967
|
+
const ContextMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2968
|
+
ContextMenuPrimitive.Content,
|
|
2969
|
+
{
|
|
2970
|
+
ref,
|
|
2971
|
+
className: cn("context-menu-content", className),
|
|
2972
|
+
...props
|
|
2973
|
+
}
|
|
2974
|
+
) }));
|
|
2975
|
+
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
2976
|
+
const ContextMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2977
|
+
ContextMenuPrimitive.Item,
|
|
2978
|
+
{
|
|
2979
|
+
ref,
|
|
2980
|
+
className: cn(
|
|
2981
|
+
"context-menu-item",
|
|
2982
|
+
inset && "context-menu-item--inset",
|
|
2983
|
+
className
|
|
2984
|
+
),
|
|
2985
|
+
...props
|
|
2986
|
+
}
|
|
2987
|
+
));
|
|
2988
|
+
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
2989
|
+
const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
2990
|
+
ContextMenuPrimitive.CheckboxItem,
|
|
2991
|
+
{
|
|
2992
|
+
ref,
|
|
2993
|
+
className: cn("context-menu-checkbox-item", className),
|
|
2994
|
+
checked,
|
|
2995
|
+
...props,
|
|
2996
|
+
children: [
|
|
2997
|
+
/* @__PURE__ */ jsx("span", { className: "context-menu-item-indicator", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "icon-4" }) }) }),
|
|
2998
|
+
children
|
|
2999
|
+
]
|
|
3000
|
+
}
|
|
3001
|
+
));
|
|
3002
|
+
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
3003
|
+
const ContextMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3004
|
+
ContextMenuPrimitive.RadioItem,
|
|
3845
3005
|
{
|
|
3846
3006
|
ref,
|
|
3847
|
-
className: cn("
|
|
3848
|
-
...props
|
|
3007
|
+
className: cn("context-menu-radio-item", className),
|
|
3008
|
+
...props,
|
|
3009
|
+
children: [
|
|
3010
|
+
/* @__PURE__ */ jsx("span", { className: "context-menu-item-indicator", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "icon-2 fill-current" }) }) }),
|
|
3011
|
+
children
|
|
3012
|
+
]
|
|
3849
3013
|
}
|
|
3850
3014
|
));
|
|
3851
|
-
|
|
3852
|
-
const
|
|
3853
|
-
|
|
3015
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
3016
|
+
const ContextMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3017
|
+
ContextMenuPrimitive.Label,
|
|
3854
3018
|
{
|
|
3855
3019
|
ref,
|
|
3856
|
-
className: cn(
|
|
3020
|
+
className: cn(
|
|
3021
|
+
"context-menu-label",
|
|
3022
|
+
inset && "context-menu-label--inset",
|
|
3023
|
+
className
|
|
3024
|
+
),
|
|
3857
3025
|
...props
|
|
3858
3026
|
}
|
|
3859
3027
|
));
|
|
3860
|
-
|
|
3861
|
-
const
|
|
3862
|
-
|
|
3863
|
-
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
3864
|
-
PopoverPrimitive.Content,
|
|
3028
|
+
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
3029
|
+
const ContextMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3030
|
+
ContextMenuPrimitive.Separator,
|
|
3865
3031
|
{
|
|
3866
3032
|
ref,
|
|
3867
|
-
|
|
3868
|
-
sideOffset,
|
|
3869
|
-
className: cn("popover-content", className),
|
|
3033
|
+
className: cn("context-menu-separator", className),
|
|
3870
3034
|
...props
|
|
3871
3035
|
}
|
|
3872
|
-
)
|
|
3873
|
-
|
|
3874
|
-
const
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3036
|
+
));
|
|
3037
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
3038
|
+
const ContextMenuShortcut = ({
|
|
3039
|
+
className,
|
|
3040
|
+
...props
|
|
3041
|
+
}) => {
|
|
3042
|
+
return /* @__PURE__ */ jsx(
|
|
3043
|
+
"span",
|
|
3044
|
+
{
|
|
3045
|
+
className: cn("context-menu-shortcut", className),
|
|
3046
|
+
...props
|
|
3047
|
+
}
|
|
3048
|
+
);
|
|
3049
|
+
};
|
|
3050
|
+
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
3051
|
+
const CarouselContext = React.createContext(null);
|
|
3052
|
+
function useCarousel() {
|
|
3053
|
+
const context = React.useContext(CarouselContext);
|
|
3054
|
+
if (!context) {
|
|
3055
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
3056
|
+
}
|
|
3057
|
+
return context;
|
|
3058
|
+
}
|
|
3059
|
+
const Carousel = React.forwardRef(
|
|
3060
|
+
({
|
|
3061
|
+
orientation = "horizontal",
|
|
3062
|
+
opts,
|
|
3063
|
+
setApi,
|
|
3064
|
+
plugins,
|
|
3065
|
+
className,
|
|
3066
|
+
children,
|
|
3883
3067
|
...props
|
|
3068
|
+
}, ref) => {
|
|
3069
|
+
const [carouselRef, api] = useEmblaCarousel(
|
|
3070
|
+
{
|
|
3071
|
+
...opts,
|
|
3072
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
3073
|
+
},
|
|
3074
|
+
plugins
|
|
3075
|
+
);
|
|
3076
|
+
const [canScrollPrev, setCanScrollPrev] = React.useState(false);
|
|
3077
|
+
const [canScrollNext, setCanScrollNext] = React.useState(false);
|
|
3078
|
+
const onSelect = React.useCallback((api2) => {
|
|
3079
|
+
if (!api2) {
|
|
3080
|
+
return;
|
|
3081
|
+
}
|
|
3082
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
3083
|
+
setCanScrollNext(api2.canScrollNext());
|
|
3084
|
+
}, []);
|
|
3085
|
+
const scrollPrev = React.useCallback(() => {
|
|
3086
|
+
api == null ? void 0 : api.scrollPrev();
|
|
3087
|
+
}, [api]);
|
|
3088
|
+
const scrollNext = React.useCallback(() => {
|
|
3089
|
+
api == null ? void 0 : api.scrollNext();
|
|
3090
|
+
}, [api]);
|
|
3091
|
+
const handleKeyDown = React.useCallback(
|
|
3092
|
+
(event) => {
|
|
3093
|
+
if (event.key === "ArrowLeft") {
|
|
3094
|
+
event.preventDefault();
|
|
3095
|
+
scrollPrev();
|
|
3096
|
+
} else if (event.key === "ArrowRight") {
|
|
3097
|
+
event.preventDefault();
|
|
3098
|
+
scrollNext();
|
|
3099
|
+
}
|
|
3100
|
+
},
|
|
3101
|
+
[scrollPrev, scrollNext]
|
|
3102
|
+
);
|
|
3103
|
+
React.useEffect(() => {
|
|
3104
|
+
if (!api || !setApi) {
|
|
3105
|
+
return;
|
|
3106
|
+
}
|
|
3107
|
+
setApi(api);
|
|
3108
|
+
}, [api, setApi]);
|
|
3109
|
+
React.useEffect(() => {
|
|
3110
|
+
if (!api) {
|
|
3111
|
+
return;
|
|
3112
|
+
}
|
|
3113
|
+
onSelect(api);
|
|
3114
|
+
api.on("reInit", onSelect);
|
|
3115
|
+
api.on("select", onSelect);
|
|
3116
|
+
return () => {
|
|
3117
|
+
api == null ? void 0 : api.off("select", onSelect);
|
|
3118
|
+
};
|
|
3119
|
+
}, [api, onSelect]);
|
|
3120
|
+
return /* @__PURE__ */ jsx(
|
|
3121
|
+
CarouselContext.Provider,
|
|
3122
|
+
{
|
|
3123
|
+
value: {
|
|
3124
|
+
carouselRef,
|
|
3125
|
+
api,
|
|
3126
|
+
opts,
|
|
3127
|
+
orientation: orientation || ((opts == null ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
|
|
3128
|
+
scrollPrev,
|
|
3129
|
+
scrollNext,
|
|
3130
|
+
canScrollPrev,
|
|
3131
|
+
canScrollNext
|
|
3132
|
+
},
|
|
3133
|
+
children: /* @__PURE__ */ jsx(
|
|
3134
|
+
"div",
|
|
3135
|
+
{
|
|
3136
|
+
ref,
|
|
3137
|
+
onKeyDownCapture: handleKeyDown,
|
|
3138
|
+
className: cn("carousel", className),
|
|
3139
|
+
role: "region",
|
|
3140
|
+
"aria-roledescription": "carousel",
|
|
3141
|
+
...props,
|
|
3142
|
+
children
|
|
3143
|
+
}
|
|
3144
|
+
)
|
|
3145
|
+
}
|
|
3146
|
+
);
|
|
3884
3147
|
}
|
|
3885
|
-
)
|
|
3886
|
-
|
|
3887
|
-
const
|
|
3888
|
-
const
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3148
|
+
);
|
|
3149
|
+
Carousel.displayName = "Carousel";
|
|
3150
|
+
const CarouselContent = React.forwardRef(({ className, ...props }, ref) => {
|
|
3151
|
+
const { carouselRef, orientation } = useCarousel();
|
|
3152
|
+
return /* @__PURE__ */ jsx("div", { ref: carouselRef, className: "carousel-viewport", children: /* @__PURE__ */ jsx(
|
|
3153
|
+
"div",
|
|
3154
|
+
{
|
|
3155
|
+
ref,
|
|
3156
|
+
className: cn(
|
|
3157
|
+
"carousel-content",
|
|
3158
|
+
orientation === "horizontal" ? "carousel-content--horizontal" : "carousel-content--vertical",
|
|
3159
|
+
className
|
|
3160
|
+
),
|
|
3161
|
+
...props
|
|
3162
|
+
}
|
|
3163
|
+
) });
|
|
3164
|
+
});
|
|
3165
|
+
CarouselContent.displayName = "CarouselContent";
|
|
3166
|
+
const CarouselItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
3167
|
+
const { orientation } = useCarousel();
|
|
3168
|
+
return /* @__PURE__ */ jsx(
|
|
3169
|
+
"div",
|
|
3170
|
+
{
|
|
3171
|
+
ref,
|
|
3172
|
+
role: "group",
|
|
3173
|
+
"aria-roledescription": "slide",
|
|
3174
|
+
className: cn(
|
|
3175
|
+
"carousel-item",
|
|
3176
|
+
orientation === "horizontal" ? "carousel-item--horizontal" : "carousel-item--vertical",
|
|
3177
|
+
className
|
|
3178
|
+
),
|
|
3179
|
+
...props
|
|
3180
|
+
}
|
|
3181
|
+
);
|
|
3182
|
+
});
|
|
3183
|
+
CarouselItem.displayName = "CarouselItem";
|
|
3184
|
+
const CarouselPrevious = React.forwardRef(
|
|
3185
|
+
({ className, variant: variant2 = "general-secondary", size = "icon", ...props }, ref) => {
|
|
3186
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
3187
|
+
return /* @__PURE__ */ jsxs(
|
|
3188
|
+
Button,
|
|
3189
|
+
{
|
|
3190
|
+
ref,
|
|
3191
|
+
variant: variant2,
|
|
3192
|
+
size,
|
|
3193
|
+
className: cn(
|
|
3194
|
+
"carousel-button carousel-button--previous",
|
|
3195
|
+
orientation === "horizontal" ? "carousel-button--horizontal" : "carousel-button--vertical",
|
|
3196
|
+
className
|
|
3197
|
+
),
|
|
3198
|
+
disabled: !canScrollPrev,
|
|
3199
|
+
onClick: scrollPrev,
|
|
3200
|
+
...props,
|
|
3201
|
+
children: [
|
|
3202
|
+
/* @__PURE__ */ jsx(ArrowLeft, { className: "icon-4" }),
|
|
3203
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
3204
|
+
]
|
|
3205
|
+
}
|
|
3206
|
+
);
|
|
3207
|
+
}
|
|
3208
|
+
);
|
|
3209
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
3210
|
+
const CarouselNext = React.forwardRef(
|
|
3211
|
+
({ className, variant: variant2 = "general-secondary", size = "icon", ...props }, ref) => {
|
|
3212
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
3213
|
+
return /* @__PURE__ */ jsxs(
|
|
3214
|
+
Button,
|
|
3215
|
+
{
|
|
3216
|
+
ref,
|
|
3217
|
+
variant: variant2,
|
|
3218
|
+
size,
|
|
3219
|
+
className: cn(
|
|
3220
|
+
"carousel-button carousel-button--next",
|
|
3221
|
+
orientation === "horizontal" ? "carousel-button--horizontal" : "carousel-button--vertical",
|
|
3222
|
+
className
|
|
3223
|
+
),
|
|
3224
|
+
disabled: !canScrollNext,
|
|
3225
|
+
onClick: scrollNext,
|
|
3226
|
+
...props,
|
|
3227
|
+
children: [
|
|
3228
|
+
/* @__PURE__ */ jsx(ArrowRight, { className: "icon-4" }),
|
|
3229
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
|
|
3230
|
+
]
|
|
3231
|
+
}
|
|
3232
|
+
);
|
|
3907
3233
|
}
|
|
3908
|
-
)
|
|
3909
|
-
|
|
3910
|
-
const
|
|
3911
|
-
|
|
3234
|
+
);
|
|
3235
|
+
CarouselNext.displayName = "CarouselNext";
|
|
3236
|
+
const Collapsible = CollapsiblePrimitive.Root;
|
|
3237
|
+
const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
|
|
3238
|
+
const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
|
|
3239
|
+
const ToastProvider = ToastPrimitives.Provider;
|
|
3240
|
+
const ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3241
|
+
ToastPrimitives.Viewport,
|
|
3912
3242
|
{
|
|
3913
3243
|
ref,
|
|
3914
|
-
className: cn("
|
|
3244
|
+
className: cn("toast-viewport", className),
|
|
3915
3245
|
...props
|
|
3916
3246
|
}
|
|
3917
3247
|
));
|
|
3918
|
-
|
|
3919
|
-
const
|
|
3920
|
-
|
|
3248
|
+
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
3249
|
+
const toastVariants = cva(
|
|
3250
|
+
"toast",
|
|
3921
3251
|
{
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3252
|
+
variants: {
|
|
3253
|
+
variant: {
|
|
3254
|
+
default: "toast--default",
|
|
3255
|
+
destructive: "toast--destructive"
|
|
3256
|
+
}
|
|
3257
|
+
},
|
|
3258
|
+
defaultVariants: {
|
|
3259
|
+
variant: "default"
|
|
3260
|
+
}
|
|
3925
3261
|
}
|
|
3926
|
-
)
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3262
|
+
);
|
|
3263
|
+
const Toast = React.forwardRef(({ className, variant: variant2, ...props }, ref) => {
|
|
3264
|
+
return /* @__PURE__ */ jsx(
|
|
3265
|
+
ToastPrimitives.Root,
|
|
3266
|
+
{
|
|
3267
|
+
ref,
|
|
3268
|
+
className: cn(toastVariants({ variant: variant2 }), className),
|
|
3269
|
+
...props
|
|
3270
|
+
}
|
|
3271
|
+
);
|
|
3272
|
+
});
|
|
3273
|
+
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
3274
|
+
const ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3275
|
+
ToastPrimitives.Action,
|
|
3930
3276
|
{
|
|
3931
3277
|
ref,
|
|
3932
|
-
className: cn(
|
|
3933
|
-
"context-menu-item",
|
|
3934
|
-
inset && "context-menu-item--inset",
|
|
3935
|
-
className
|
|
3936
|
-
),
|
|
3278
|
+
className: cn("toast-action", className),
|
|
3937
3279
|
...props
|
|
3938
3280
|
}
|
|
3939
3281
|
));
|
|
3940
|
-
|
|
3941
|
-
const
|
|
3942
|
-
|
|
3282
|
+
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
3283
|
+
const ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3284
|
+
ToastPrimitives.Close,
|
|
3943
3285
|
{
|
|
3944
3286
|
ref,
|
|
3945
|
-
className: cn("
|
|
3946
|
-
|
|
3287
|
+
className: cn("toast-close", className),
|
|
3288
|
+
"toast-close": "",
|
|
3947
3289
|
...props,
|
|
3948
|
-
children:
|
|
3949
|
-
/* @__PURE__ */ jsx("span", { className: "context-menu-item-indicator", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "icon-4" }) }) }),
|
|
3950
|
-
children
|
|
3951
|
-
]
|
|
3290
|
+
children: /* @__PURE__ */ jsx(X$1, { className: "icon-4" })
|
|
3952
3291
|
}
|
|
3953
3292
|
));
|
|
3954
|
-
|
|
3955
|
-
const
|
|
3956
|
-
|
|
3293
|
+
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
3294
|
+
const ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3295
|
+
ToastPrimitives.Title,
|
|
3957
3296
|
{
|
|
3958
3297
|
ref,
|
|
3959
|
-
className: cn("
|
|
3960
|
-
...props
|
|
3961
|
-
children: [
|
|
3962
|
-
/* @__PURE__ */ jsx("span", { className: "context-menu-item-indicator", children: /* @__PURE__ */ jsx(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "icon-2 fill-current" }) }) }),
|
|
3963
|
-
children
|
|
3964
|
-
]
|
|
3298
|
+
className: cn("toast-title", className),
|
|
3299
|
+
...props
|
|
3965
3300
|
}
|
|
3966
3301
|
));
|
|
3967
|
-
|
|
3968
|
-
const
|
|
3969
|
-
|
|
3302
|
+
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
3303
|
+
const ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
3304
|
+
ToastPrimitives.Description,
|
|
3970
3305
|
{
|
|
3971
3306
|
ref,
|
|
3972
|
-
className: cn(
|
|
3973
|
-
"context-menu-label",
|
|
3974
|
-
inset && "context-menu-label--inset",
|
|
3975
|
-
className
|
|
3976
|
-
),
|
|
3307
|
+
className: cn("toast-description", className),
|
|
3977
3308
|
...props
|
|
3978
3309
|
}
|
|
3979
3310
|
));
|
|
3980
|
-
|
|
3981
|
-
const
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3311
|
+
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
3312
|
+
const TOAST_LIMIT = 1;
|
|
3313
|
+
const TOAST_REMOVE_DELAY = 1e6;
|
|
3314
|
+
let count = 0;
|
|
3315
|
+
function genId() {
|
|
3316
|
+
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
3317
|
+
return count.toString();
|
|
3318
|
+
}
|
|
3319
|
+
const toastTimeouts = /* @__PURE__ */ new Map();
|
|
3320
|
+
const addToRemoveQueue = (toastId) => {
|
|
3321
|
+
if (toastTimeouts.has(toastId)) {
|
|
3322
|
+
return;
|
|
3323
|
+
}
|
|
3324
|
+
const timeout = setTimeout(() => {
|
|
3325
|
+
toastTimeouts.delete(toastId);
|
|
3326
|
+
dispatch({
|
|
3327
|
+
type: "REMOVE_TOAST",
|
|
3328
|
+
toastId
|
|
3329
|
+
});
|
|
3330
|
+
}, TOAST_REMOVE_DELAY);
|
|
3331
|
+
toastTimeouts.set(toastId, timeout);
|
|
3332
|
+
};
|
|
3333
|
+
const reducer = (state2, action) => {
|
|
3334
|
+
switch (action.type) {
|
|
3335
|
+
case "ADD_TOAST":
|
|
3336
|
+
return {
|
|
3337
|
+
...state2,
|
|
3338
|
+
toasts: [action.toast, ...state2.toasts].slice(0, TOAST_LIMIT)
|
|
3339
|
+
};
|
|
3340
|
+
case "UPDATE_TOAST":
|
|
3341
|
+
return {
|
|
3342
|
+
...state2,
|
|
3343
|
+
toasts: state2.toasts.map(
|
|
3344
|
+
(t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
|
|
3345
|
+
)
|
|
3346
|
+
};
|
|
3347
|
+
case "DISMISS_TOAST": {
|
|
3348
|
+
const { toastId } = action;
|
|
3349
|
+
if (toastId) {
|
|
3350
|
+
addToRemoveQueue(toastId);
|
|
3351
|
+
} else {
|
|
3352
|
+
state2.toasts.forEach((toast2) => {
|
|
3353
|
+
addToRemoveQueue(toast2.id);
|
|
3354
|
+
});
|
|
3355
|
+
}
|
|
3356
|
+
return {
|
|
3357
|
+
...state2,
|
|
3358
|
+
toasts: state2.toasts.map(
|
|
3359
|
+
(t) => t.id === toastId || toastId === void 0 ? {
|
|
3360
|
+
...t,
|
|
3361
|
+
open: false
|
|
3362
|
+
} : t
|
|
3363
|
+
)
|
|
3364
|
+
};
|
|
3365
|
+
}
|
|
3366
|
+
case "REMOVE_TOAST":
|
|
3367
|
+
if (action.toastId === void 0) {
|
|
3368
|
+
return {
|
|
3369
|
+
...state2,
|
|
3370
|
+
toasts: []
|
|
3371
|
+
};
|
|
3372
|
+
}
|
|
3373
|
+
return {
|
|
3374
|
+
...state2,
|
|
3375
|
+
toasts: state2.toasts.filter((t) => t.id !== action.toastId)
|
|
3376
|
+
};
|
|
3377
|
+
}
|
|
3378
|
+
};
|
|
3379
|
+
const listeners = [];
|
|
3380
|
+
let memoryState = { toasts: [] };
|
|
3381
|
+
function dispatch(action) {
|
|
3382
|
+
memoryState = reducer(memoryState, action);
|
|
3383
|
+
listeners.forEach((listener) => {
|
|
3384
|
+
listener(memoryState);
|
|
3385
|
+
});
|
|
3386
|
+
}
|
|
3387
|
+
function toast({ ...props }) {
|
|
3388
|
+
const id = genId();
|
|
3389
|
+
const update = (props2) => dispatch({
|
|
3390
|
+
type: "UPDATE_TOAST",
|
|
3391
|
+
toast: { ...props2, id }
|
|
3392
|
+
});
|
|
3393
|
+
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
|
|
3394
|
+
dispatch({
|
|
3395
|
+
type: "ADD_TOAST",
|
|
3396
|
+
toast: {
|
|
3397
|
+
...props,
|
|
3398
|
+
id,
|
|
3399
|
+
open: true,
|
|
3400
|
+
onOpenChange: (open) => {
|
|
3401
|
+
if (!open) dismiss();
|
|
3402
|
+
}
|
|
3403
|
+
}
|
|
3404
|
+
});
|
|
3405
|
+
return {
|
|
3406
|
+
id,
|
|
3407
|
+
dismiss,
|
|
3408
|
+
update
|
|
3409
|
+
};
|
|
3410
|
+
}
|
|
3411
|
+
function useToast() {
|
|
3412
|
+
const [state2, setState] = React.useState(memoryState);
|
|
3413
|
+
React.useEffect(() => {
|
|
3414
|
+
listeners.push(setState);
|
|
3415
|
+
return () => {
|
|
3416
|
+
const index = listeners.indexOf(setState);
|
|
3417
|
+
if (index > -1) {
|
|
3418
|
+
listeners.splice(index, 1);
|
|
3419
|
+
}
|
|
3420
|
+
};
|
|
3421
|
+
}, [state2]);
|
|
3422
|
+
return {
|
|
3423
|
+
...state2,
|
|
3424
|
+
toast,
|
|
3425
|
+
dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
|
|
3426
|
+
};
|
|
3427
|
+
}
|
|
3428
|
+
function Toaster$1() {
|
|
3429
|
+
const { toasts } = useToast();
|
|
3430
|
+
return /* @__PURE__ */ jsxs(ToastProvider, { children: [
|
|
3431
|
+
toasts.map(function({ id, title, description, action, ...props }) {
|
|
3432
|
+
return /* @__PURE__ */ jsxs(Toast, { ...props, children: [
|
|
3433
|
+
/* @__PURE__ */ jsxs("div", { className: "toast-content", children: [
|
|
3434
|
+
title && /* @__PURE__ */ jsx(ToastTitle, { children: title }),
|
|
3435
|
+
description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
|
|
3436
|
+
] }),
|
|
3437
|
+
action,
|
|
3438
|
+
/* @__PURE__ */ jsx(ToastClose, {})
|
|
3439
|
+
] }, id);
|
|
3440
|
+
}),
|
|
3441
|
+
/* @__PURE__ */ jsx(ToastViewport, {})
|
|
3442
|
+
] });
|
|
3443
|
+
}
|
|
3444
|
+
const THEMES = { light: "", dark: ".dark" };
|
|
3445
|
+
const ChartContext = React.createContext(null);
|
|
3446
|
+
function useChart() {
|
|
3447
|
+
const context = React.useContext(ChartContext);
|
|
3448
|
+
if (!context) {
|
|
3449
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
3450
|
+
}
|
|
3451
|
+
return context;
|
|
3452
|
+
}
|
|
3453
|
+
const ChartContainer = React.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
3454
|
+
const uniqueId = React.useId();
|
|
3455
|
+
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
3456
|
+
return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
|
|
3457
|
+
"div",
|
|
3458
|
+
{
|
|
3459
|
+
"data-chart": chartId,
|
|
3460
|
+
ref,
|
|
3461
|
+
className: cn(
|
|
3462
|
+
"chart-container",
|
|
3463
|
+
className
|
|
3464
|
+
),
|
|
3465
|
+
...props,
|
|
3466
|
+
children: [
|
|
3467
|
+
/* @__PURE__ */ jsx(ChartStyle, { id: chartId, config }),
|
|
3468
|
+
/* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, { children })
|
|
3469
|
+
]
|
|
3470
|
+
}
|
|
3471
|
+
) });
|
|
3472
|
+
});
|
|
3473
|
+
ChartContainer.displayName = "Chart";
|
|
3474
|
+
const ChartStyle = ({ id, config }) => {
|
|
3475
|
+
const colorConfig = Object.entries(config).filter(
|
|
3476
|
+
([_, config2]) => config2.theme || config2.color
|
|
3477
|
+
);
|
|
3478
|
+
if (!colorConfig.length) {
|
|
3479
|
+
return null;
|
|
3987
3480
|
}
|
|
3988
|
-
));
|
|
3989
|
-
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
3990
|
-
const ContextMenuShortcut = ({
|
|
3991
|
-
className,
|
|
3992
|
-
...props
|
|
3993
|
-
}) => {
|
|
3994
3481
|
return /* @__PURE__ */ jsx(
|
|
3995
|
-
"
|
|
3482
|
+
"style",
|
|
3996
3483
|
{
|
|
3997
|
-
|
|
3998
|
-
|
|
3484
|
+
dangerouslySetInnerHTML: {
|
|
3485
|
+
__html: Object.entries(THEMES).map(
|
|
3486
|
+
([theme, prefix]) => `
|
|
3487
|
+
${prefix} [data-chart=${id}] {
|
|
3488
|
+
${colorConfig.map(([key, itemConfig]) => {
|
|
3489
|
+
var _a;
|
|
3490
|
+
const color = ((_a = itemConfig.theme) == null ? void 0 : _a[theme]) || itemConfig.color;
|
|
3491
|
+
return color ? ` --color-${key}: ${color};` : null;
|
|
3492
|
+
}).join("\n")}
|
|
3493
|
+
}
|
|
3494
|
+
`
|
|
3495
|
+
).join("\n")
|
|
3496
|
+
}
|
|
3999
3497
|
}
|
|
4000
3498
|
);
|
|
4001
3499
|
};
|
|
4002
|
-
|
|
4003
|
-
const
|
|
4004
|
-
function useCarousel() {
|
|
4005
|
-
const context = React.useContext(CarouselContext);
|
|
4006
|
-
if (!context) {
|
|
4007
|
-
throw new Error("useCarousel must be used within a <Carousel />");
|
|
4008
|
-
}
|
|
4009
|
-
return context;
|
|
4010
|
-
}
|
|
4011
|
-
const Carousel = React.forwardRef(
|
|
3500
|
+
const ChartTooltip = RechartsPrimitive.Tooltip;
|
|
3501
|
+
const ChartTooltipContent = React.forwardRef(
|
|
4012
3502
|
({
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
setApi,
|
|
4016
|
-
plugins,
|
|
3503
|
+
active,
|
|
3504
|
+
payload,
|
|
4017
3505
|
className,
|
|
4018
|
-
|
|
4019
|
-
|
|
3506
|
+
indicator = "dot",
|
|
3507
|
+
hideLabel = false,
|
|
3508
|
+
hideIndicator = false,
|
|
3509
|
+
label,
|
|
3510
|
+
labelFormatter,
|
|
3511
|
+
labelClassName,
|
|
3512
|
+
formatter,
|
|
3513
|
+
color,
|
|
3514
|
+
nameKey,
|
|
3515
|
+
labelKey
|
|
4020
3516
|
}, ref) => {
|
|
4021
|
-
const
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
plugins
|
|
4027
|
-
);
|
|
4028
|
-
const [canScrollPrev, setCanScrollPrev] = React.useState(false);
|
|
4029
|
-
const [canScrollNext, setCanScrollNext] = React.useState(false);
|
|
4030
|
-
const onSelect = React.useCallback((api2) => {
|
|
4031
|
-
if (!api2) {
|
|
4032
|
-
return;
|
|
3517
|
+
const { config } = useChart();
|
|
3518
|
+
const tooltipLabel = React.useMemo(() => {
|
|
3519
|
+
var _a;
|
|
3520
|
+
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
3521
|
+
return null;
|
|
4033
3522
|
}
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
const scrollNext = React.useCallback(() => {
|
|
4041
|
-
api == null ? void 0 : api.scrollNext();
|
|
4042
|
-
}, [api]);
|
|
4043
|
-
const handleKeyDown = React.useCallback(
|
|
4044
|
-
(event) => {
|
|
4045
|
-
if (event.key === "ArrowLeft") {
|
|
4046
|
-
event.preventDefault();
|
|
4047
|
-
scrollPrev();
|
|
4048
|
-
} else if (event.key === "ArrowRight") {
|
|
4049
|
-
event.preventDefault();
|
|
4050
|
-
scrollNext();
|
|
4051
|
-
}
|
|
4052
|
-
},
|
|
4053
|
-
[scrollPrev, scrollNext]
|
|
4054
|
-
);
|
|
4055
|
-
React.useEffect(() => {
|
|
4056
|
-
if (!api || !setApi) {
|
|
4057
|
-
return;
|
|
3523
|
+
const [item] = payload;
|
|
3524
|
+
const key = `${labelKey || item.dataKey || item.name || "value"}`;
|
|
3525
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3526
|
+
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
3527
|
+
if (labelFormatter) {
|
|
3528
|
+
return /* @__PURE__ */ jsx("div", { className: cn("chart-tooltip-label", labelClassName), children: labelFormatter(value, payload) });
|
|
4058
3529
|
}
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
React.useEffect(() => {
|
|
4062
|
-
if (!api) {
|
|
4063
|
-
return;
|
|
3530
|
+
if (!value) {
|
|
3531
|
+
return null;
|
|
4064
3532
|
}
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
3533
|
+
return /* @__PURE__ */ jsx("div", { className: cn("chart-tooltip-label", labelClassName), children: value });
|
|
3534
|
+
}, [
|
|
3535
|
+
label,
|
|
3536
|
+
labelFormatter,
|
|
3537
|
+
payload,
|
|
3538
|
+
hideLabel,
|
|
3539
|
+
labelClassName,
|
|
3540
|
+
config,
|
|
3541
|
+
labelKey
|
|
3542
|
+
]);
|
|
3543
|
+
if (!active || !(payload == null ? void 0 : payload.length)) {
|
|
3544
|
+
return null;
|
|
3545
|
+
}
|
|
3546
|
+
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
3547
|
+
return /* @__PURE__ */ jsxs(
|
|
3548
|
+
"div",
|
|
3549
|
+
{
|
|
3550
|
+
ref,
|
|
3551
|
+
className: cn(
|
|
3552
|
+
"chart-tooltip",
|
|
3553
|
+
className
|
|
3554
|
+
),
|
|
3555
|
+
children: [
|
|
3556
|
+
!nestLabel ? tooltipLabel : null,
|
|
3557
|
+
/* @__PURE__ */ jsx("div", { className: "chart-tooltip-content", children: payload.map((item, index) => {
|
|
3558
|
+
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
3559
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3560
|
+
const indicatorColor = color || item.payload.fill || item.color;
|
|
3561
|
+
return /* @__PURE__ */ jsx(
|
|
3562
|
+
"div",
|
|
3563
|
+
{
|
|
3564
|
+
className: cn(
|
|
3565
|
+
"chart-tooltip-item",
|
|
3566
|
+
indicator === "dot" && "chart-tooltip-item--dot"
|
|
3567
|
+
),
|
|
3568
|
+
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3569
|
+
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx(
|
|
3570
|
+
"div",
|
|
3571
|
+
{
|
|
3572
|
+
className: cn(
|
|
3573
|
+
"chart-tooltip-indicator",
|
|
3574
|
+
{
|
|
3575
|
+
"chart-tooltip-indicator--dot": indicator === "dot",
|
|
3576
|
+
"chart-tooltip-indicator--line": indicator === "line",
|
|
3577
|
+
"chart-tooltip-indicator--dashed": indicator === "dashed",
|
|
3578
|
+
"chart-tooltip-indicator--dashed-nested": nestLabel && indicator === "dashed"
|
|
3579
|
+
}
|
|
3580
|
+
),
|
|
3581
|
+
style: {
|
|
3582
|
+
"--color-bg": indicatorColor,
|
|
3583
|
+
"--color-border": indicatorColor
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
),
|
|
3587
|
+
/* @__PURE__ */ jsxs(
|
|
3588
|
+
"div",
|
|
3589
|
+
{
|
|
3590
|
+
className: cn(
|
|
3591
|
+
"chart-tooltip-item-content",
|
|
3592
|
+
nestLabel ? "chart-tooltip-item-content--nested" : ""
|
|
3593
|
+
),
|
|
3594
|
+
children: [
|
|
3595
|
+
/* @__PURE__ */ jsxs("div", { className: "chart-tooltip-item-details", children: [
|
|
3596
|
+
nestLabel ? tooltipLabel : null,
|
|
3597
|
+
/* @__PURE__ */ jsx("span", { className: "chart-tooltip-item-label", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
3598
|
+
] }),
|
|
3599
|
+
item.value && /* @__PURE__ */ jsx("span", { className: "chart-tooltip-item-value", children: item.value.toLocaleString() })
|
|
3600
|
+
]
|
|
3601
|
+
}
|
|
3602
|
+
)
|
|
3603
|
+
] })
|
|
3604
|
+
},
|
|
3605
|
+
item.dataKey
|
|
3606
|
+
);
|
|
3607
|
+
}) })
|
|
3608
|
+
]
|
|
3609
|
+
}
|
|
3610
|
+
);
|
|
3611
|
+
}
|
|
3612
|
+
);
|
|
3613
|
+
ChartTooltipContent.displayName = "ChartTooltip";
|
|
3614
|
+
const ChartLegend = RechartsPrimitive.Legend;
|
|
3615
|
+
const ChartLegendContent = React.forwardRef(
|
|
3616
|
+
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
3617
|
+
const { config } = useChart();
|
|
3618
|
+
if (!(payload == null ? void 0 : payload.length)) {
|
|
3619
|
+
return null;
|
|
3620
|
+
}
|
|
4072
3621
|
return /* @__PURE__ */ jsx(
|
|
4073
|
-
|
|
3622
|
+
"div",
|
|
4074
3623
|
{
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
3624
|
+
ref,
|
|
3625
|
+
className: cn(
|
|
3626
|
+
"chart-legend",
|
|
3627
|
+
verticalAlign === "top" ? "chart-legend--top" : "chart-legend--bottom",
|
|
3628
|
+
className
|
|
3629
|
+
),
|
|
3630
|
+
children: payload.map((item) => {
|
|
3631
|
+
const key = `${nameKey || item.dataKey || "value"}`;
|
|
3632
|
+
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
3633
|
+
return /* @__PURE__ */ jsxs(
|
|
3634
|
+
"div",
|
|
3635
|
+
{
|
|
3636
|
+
className: "chart-legend-item",
|
|
3637
|
+
children: [
|
|
3638
|
+
(itemConfig == null ? void 0 : itemConfig.icon) && !hideIcon ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : /* @__PURE__ */ jsx(
|
|
3639
|
+
"div",
|
|
3640
|
+
{
|
|
3641
|
+
className: "chart-legend-indicator",
|
|
3642
|
+
style: {
|
|
3643
|
+
backgroundColor: item.color
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
),
|
|
3647
|
+
itemConfig == null ? void 0 : itemConfig.label
|
|
3648
|
+
]
|
|
3649
|
+
},
|
|
3650
|
+
item.value
|
|
3651
|
+
);
|
|
3652
|
+
})
|
|
4097
3653
|
}
|
|
4098
3654
|
);
|
|
4099
3655
|
}
|
|
4100
3656
|
);
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
3657
|
+
ChartLegendContent.displayName = "ChartLegend";
|
|
3658
|
+
function getPayloadConfigFromPayload(config, payload, key) {
|
|
3659
|
+
if (typeof payload !== "object" || payload === null) {
|
|
3660
|
+
return void 0;
|
|
3661
|
+
}
|
|
3662
|
+
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
3663
|
+
let configLabelKey = key;
|
|
3664
|
+
if (key in payload && typeof payload[key] === "string") {
|
|
3665
|
+
configLabelKey = payload[key];
|
|
3666
|
+
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
3667
|
+
configLabelKey = payloadPayload[key];
|
|
3668
|
+
}
|
|
3669
|
+
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
3670
|
+
}
|
|
3671
|
+
const CodeBadge = ({ code, className, style }) => {
|
|
3672
|
+
return /* @__PURE__ */ jsx(
|
|
3673
|
+
"div",
|
|
3674
|
+
{
|
|
3675
|
+
className: cn("code-badge", className),
|
|
3676
|
+
style: {
|
|
3677
|
+
...style
|
|
3678
|
+
},
|
|
3679
|
+
children: /* @__PURE__ */ jsx("span", { className: "number-small font-semibold", style: { color: "inherit" }, children: code })
|
|
3680
|
+
}
|
|
3681
|
+
);
|
|
3682
|
+
};
|
|
3683
|
+
const PageHeader = React.forwardRef(
|
|
3684
|
+
({ children, className, ...props }, ref) => {
|
|
3685
|
+
return /* @__PURE__ */ jsx("header", { ref, className: cn("page-header", className), ...props, children });
|
|
3686
|
+
}
|
|
3687
|
+
);
|
|
3688
|
+
PageHeader.displayName = "PageHeader";
|
|
3689
|
+
const PageHeaderTopSection = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
3690
|
+
return /* @__PURE__ */ jsx(
|
|
4105
3691
|
"div",
|
|
4106
3692
|
{
|
|
4107
3693
|
ref,
|
|
4108
|
-
className: cn(
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
className
|
|
4112
|
-
),
|
|
4113
|
-
...props
|
|
3694
|
+
className: cn("page-header-top-section", className),
|
|
3695
|
+
...props,
|
|
3696
|
+
children
|
|
4114
3697
|
}
|
|
4115
|
-
)
|
|
3698
|
+
);
|
|
4116
3699
|
});
|
|
4117
|
-
|
|
4118
|
-
const
|
|
4119
|
-
const { orientation } = useCarousel();
|
|
3700
|
+
PageHeaderTopSection.displayName = "PageHeaderTopSection";
|
|
3701
|
+
const PageHeaderLeftContent = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
4120
3702
|
return /* @__PURE__ */ jsx(
|
|
4121
3703
|
"div",
|
|
4122
3704
|
{
|
|
4123
3705
|
ref,
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
"carousel-item",
|
|
4128
|
-
orientation === "horizontal" ? "carousel-item--horizontal" : "carousel-item--vertical",
|
|
4129
|
-
className
|
|
4130
|
-
),
|
|
4131
|
-
...props
|
|
3706
|
+
className: cn("page-header-left-content", className),
|
|
3707
|
+
...props,
|
|
3708
|
+
children
|
|
4132
3709
|
}
|
|
4133
3710
|
);
|
|
4134
3711
|
});
|
|
4135
|
-
|
|
4136
|
-
const
|
|
4137
|
-
({
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
/* @__PURE__ */ jsx(ArrowLeft, { className: "icon-4" }),
|
|
4155
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
4156
|
-
]
|
|
4157
|
-
}
|
|
4158
|
-
);
|
|
3712
|
+
PageHeaderLeftContent.displayName = "PageHeaderLeftContent";
|
|
3713
|
+
const PageHeaderBadge = React.forwardRef(
|
|
3714
|
+
({ children, animated = false, show = true, className, style, ...props }, ref) => {
|
|
3715
|
+
if (animated) {
|
|
3716
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: show && /* @__PURE__ */ jsx(
|
|
3717
|
+
motion.div,
|
|
3718
|
+
{
|
|
3719
|
+
initial: { opacity: 0, scale: 0.8 },
|
|
3720
|
+
animate: { opacity: 1, scale: 1 },
|
|
3721
|
+
exit: { opacity: 0, scale: 0.8 },
|
|
3722
|
+
transition: { duration: 0.2 },
|
|
3723
|
+
className,
|
|
3724
|
+
style,
|
|
3725
|
+
children
|
|
3726
|
+
}
|
|
3727
|
+
) });
|
|
3728
|
+
}
|
|
3729
|
+
if (!show) return null;
|
|
3730
|
+
return /* @__PURE__ */ jsx("div", { ref, className, style, ...props, children });
|
|
4159
3731
|
}
|
|
4160
3732
|
);
|
|
4161
|
-
|
|
4162
|
-
const
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
3733
|
+
PageHeaderBadge.displayName = "PageHeaderBadge";
|
|
3734
|
+
const PageHeaderTitle = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
3735
|
+
return /* @__PURE__ */ jsx("h1", { ref, className: cn("page-header-title", className), ...props, children });
|
|
3736
|
+
});
|
|
3737
|
+
PageHeaderTitle.displayName = "PageHeaderTitle";
|
|
3738
|
+
const PageHeaderDescription = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
3739
|
+
return /* @__PURE__ */ jsx(
|
|
3740
|
+
"p",
|
|
3741
|
+
{
|
|
3742
|
+
ref,
|
|
3743
|
+
className: cn("page-header-description", className),
|
|
3744
|
+
...props,
|
|
3745
|
+
children
|
|
3746
|
+
}
|
|
3747
|
+
);
|
|
3748
|
+
});
|
|
3749
|
+
PageHeaderDescription.displayName = "PageHeaderDescription";
|
|
3750
|
+
const StandardTableContext = React.createContext(null);
|
|
3751
|
+
const StandardTableRowContext = React.createContext(null);
|
|
3752
|
+
function useStandardTable() {
|
|
3753
|
+
const context = React.useContext(StandardTableContext);
|
|
3754
|
+
if (!context) {
|
|
3755
|
+
throw new Error(
|
|
3756
|
+
"StandardTable components must be used within <StandardTable>"
|
|
3757
|
+
);
|
|
3758
|
+
}
|
|
3759
|
+
return context;
|
|
3760
|
+
}
|
|
3761
|
+
function useStandardTableRow() {
|
|
3762
|
+
const context = React.useContext(StandardTableRowContext);
|
|
3763
|
+
if (!context) {
|
|
3764
|
+
throw new Error(
|
|
3765
|
+
"StandardTableTrigger and StandardTableContent must be used within <StandardTableRow>"
|
|
3766
|
+
);
|
|
3767
|
+
}
|
|
3768
|
+
return context;
|
|
3769
|
+
}
|
|
3770
|
+
const StandardTable = React.forwardRef(
|
|
3771
|
+
({
|
|
3772
|
+
allowMultiple = false,
|
|
3773
|
+
defaultExpanded,
|
|
3774
|
+
expandedValues: controlledExpandedValues,
|
|
3775
|
+
onExpandedChange,
|
|
3776
|
+
children,
|
|
3777
|
+
className,
|
|
3778
|
+
...props
|
|
3779
|
+
}, ref) => {
|
|
3780
|
+
const getInitialExpanded = () => {
|
|
3781
|
+
if (!defaultExpanded) return /* @__PURE__ */ new Set();
|
|
3782
|
+
if (Array.isArray(defaultExpanded)) return new Set(defaultExpanded);
|
|
3783
|
+
return /* @__PURE__ */ new Set([defaultExpanded]);
|
|
3784
|
+
};
|
|
3785
|
+
const [uncontrolledExpandedValues, setUncontrolledExpandedValues] = React.useState(getInitialExpanded);
|
|
3786
|
+
const [isAllExpanded, setIsAllExpanded] = React.useState(false);
|
|
3787
|
+
const isControlled = controlledExpandedValues !== void 0;
|
|
3788
|
+
const expandedValues = isControlled ? controlledExpandedValues : uncontrolledExpandedValues;
|
|
3789
|
+
const hasAnyExpanded = React.useMemo(
|
|
3790
|
+
() => isAllExpanded || expandedValues.size > 0,
|
|
3791
|
+
[isAllExpanded, expandedValues]
|
|
3792
|
+
);
|
|
3793
|
+
const isExpanded = React.useCallback(
|
|
3794
|
+
(value) => isAllExpanded || expandedValues.has(value),
|
|
3795
|
+
[isAllExpanded, expandedValues]
|
|
3796
|
+
);
|
|
3797
|
+
const toggle = React.useCallback(
|
|
3798
|
+
(value) => {
|
|
3799
|
+
const newValues = new Set(expandedValues);
|
|
3800
|
+
if (newValues.has(value)) {
|
|
3801
|
+
newValues.delete(value);
|
|
3802
|
+
} else {
|
|
3803
|
+
if (!allowMultiple) {
|
|
3804
|
+
newValues.clear();
|
|
3805
|
+
}
|
|
3806
|
+
newValues.add(value);
|
|
3807
|
+
}
|
|
3808
|
+
if (!isControlled) {
|
|
3809
|
+
setUncontrolledExpandedValues(newValues);
|
|
3810
|
+
}
|
|
3811
|
+
onExpandedChange == null ? void 0 : onExpandedChange(newValues);
|
|
3812
|
+
setIsAllExpanded(false);
|
|
3813
|
+
},
|
|
3814
|
+
[allowMultiple, expandedValues, isControlled, onExpandedChange]
|
|
3815
|
+
);
|
|
3816
|
+
const expandAll = React.useCallback(() => {
|
|
3817
|
+
setIsAllExpanded(true);
|
|
3818
|
+
const emptySet = /* @__PURE__ */ new Set();
|
|
3819
|
+
if (!isControlled) {
|
|
3820
|
+
setUncontrolledExpandedValues(emptySet);
|
|
3821
|
+
}
|
|
3822
|
+
onExpandedChange == null ? void 0 : onExpandedChange(emptySet);
|
|
3823
|
+
}, [isControlled, onExpandedChange]);
|
|
3824
|
+
const collapseAll = React.useCallback(() => {
|
|
3825
|
+
setIsAllExpanded(false);
|
|
3826
|
+
const emptySet = /* @__PURE__ */ new Set();
|
|
3827
|
+
if (!isControlled) {
|
|
3828
|
+
setUncontrolledExpandedValues(emptySet);
|
|
3829
|
+
}
|
|
3830
|
+
onExpandedChange == null ? void 0 : onExpandedChange(emptySet);
|
|
3831
|
+
}, [isControlled, onExpandedChange]);
|
|
3832
|
+
const contextValue = React.useMemo(
|
|
3833
|
+
() => ({
|
|
3834
|
+
expandedValues,
|
|
3835
|
+
isExpanded,
|
|
3836
|
+
toggle,
|
|
3837
|
+
expandAll,
|
|
3838
|
+
collapseAll,
|
|
3839
|
+
hasAnyExpanded,
|
|
3840
|
+
allowMultiple
|
|
3841
|
+
}),
|
|
3842
|
+
[
|
|
3843
|
+
expandedValues,
|
|
3844
|
+
isExpanded,
|
|
3845
|
+
toggle,
|
|
3846
|
+
expandAll,
|
|
3847
|
+
collapseAll,
|
|
3848
|
+
hasAnyExpanded,
|
|
3849
|
+
allowMultiple
|
|
3850
|
+
]
|
|
3851
|
+
);
|
|
3852
|
+
return /* @__PURE__ */ jsx(StandardTableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
3853
|
+
"div",
|
|
4167
3854
|
{
|
|
4168
3855
|
ref,
|
|
4169
|
-
variant: variant2,
|
|
4170
|
-
size,
|
|
4171
3856
|
className: cn(
|
|
4172
|
-
"
|
|
4173
|
-
orientation === "horizontal" ? "carousel-button--horizontal" : "carousel-button--vertical",
|
|
3857
|
+
"border border-blue-200 rounded-xl overflow-hidden",
|
|
4174
3858
|
className
|
|
4175
3859
|
),
|
|
4176
|
-
disabled: !canScrollNext,
|
|
4177
|
-
onClick: scrollNext,
|
|
4178
3860
|
...props,
|
|
4179
|
-
children
|
|
4180
|
-
/* @__PURE__ */ jsx(ArrowRight, { className: "icon-4" }),
|
|
4181
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
|
|
4182
|
-
]
|
|
3861
|
+
children
|
|
4183
3862
|
}
|
|
4184
|
-
);
|
|
3863
|
+
) });
|
|
4185
3864
|
}
|
|
4186
3865
|
);
|
|
4187
|
-
|
|
4188
|
-
const
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
}
|
|
4199
|
-
));
|
|
4200
|
-
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
4201
|
-
const toastVariants = cva(
|
|
4202
|
-
"toast",
|
|
4203
|
-
{
|
|
4204
|
-
variants: {
|
|
4205
|
-
variant: {
|
|
4206
|
-
default: "toast--default",
|
|
4207
|
-
destructive: "toast--destructive"
|
|
3866
|
+
StandardTable.displayName = "StandardTable";
|
|
3867
|
+
const StandardTableHeader = React.forwardRef(({ title, hasExpanded, onToggleAll, className }, ref) => {
|
|
3868
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("standard-table-header", className), children: [
|
|
3869
|
+
/* @__PURE__ */ jsx("h2", { className: "standard-table-header__title body-large", children: title }),
|
|
3870
|
+
onToggleAll && /* @__PURE__ */ jsx(
|
|
3871
|
+
motion.div,
|
|
3872
|
+
{
|
|
3873
|
+
animate: { rotate: hasExpanded ? 180 : 0 },
|
|
3874
|
+
transition: { duration: 0.2 },
|
|
3875
|
+
className: "mx-6",
|
|
3876
|
+
children: /* @__PURE__ */ jsx(Button, { size: "icon", onClick: onToggleAll, children: /* @__PURE__ */ jsx(UtilityChevronDown, {}) })
|
|
4208
3877
|
}
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
variant: "default"
|
|
4212
|
-
}
|
|
4213
|
-
}
|
|
4214
|
-
);
|
|
4215
|
-
const Toast = React.forwardRef(({ className, variant: variant2, ...props }, ref) => {
|
|
4216
|
-
return /* @__PURE__ */ jsx(
|
|
4217
|
-
ToastPrimitives.Root,
|
|
4218
|
-
{
|
|
4219
|
-
ref,
|
|
4220
|
-
className: cn(toastVariants({ variant: variant2 }), className),
|
|
4221
|
-
...props
|
|
4222
|
-
}
|
|
4223
|
-
);
|
|
3878
|
+
)
|
|
3879
|
+
] });
|
|
4224
3880
|
});
|
|
4225
|
-
|
|
4226
|
-
const
|
|
4227
|
-
|
|
4228
|
-
{
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
));
|
|
4234
|
-
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
4235
|
-
const ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4236
|
-
ToastPrimitives.Close,
|
|
4237
|
-
{
|
|
4238
|
-
ref,
|
|
4239
|
-
className: cn("toast-close", className),
|
|
4240
|
-
"toast-close": "",
|
|
4241
|
-
...props,
|
|
4242
|
-
children: /* @__PURE__ */ jsx(X$1, { className: "icon-4" })
|
|
4243
|
-
}
|
|
4244
|
-
));
|
|
4245
|
-
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
4246
|
-
const ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4247
|
-
ToastPrimitives.Title,
|
|
4248
|
-
{
|
|
4249
|
-
ref,
|
|
4250
|
-
className: cn("toast-title", className),
|
|
4251
|
-
...props
|
|
4252
|
-
}
|
|
4253
|
-
));
|
|
4254
|
-
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
4255
|
-
const ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
4256
|
-
ToastPrimitives.Description,
|
|
4257
|
-
{
|
|
4258
|
-
ref,
|
|
4259
|
-
className: cn("toast-description", className),
|
|
4260
|
-
...props
|
|
4261
|
-
}
|
|
4262
|
-
));
|
|
4263
|
-
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
4264
|
-
const TOAST_LIMIT = 1;
|
|
4265
|
-
const TOAST_REMOVE_DELAY = 1e6;
|
|
4266
|
-
let count = 0;
|
|
4267
|
-
function genId() {
|
|
4268
|
-
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|
|
4269
|
-
return count.toString();
|
|
4270
|
-
}
|
|
4271
|
-
const toastTimeouts = /* @__PURE__ */ new Map();
|
|
4272
|
-
const addToRemoveQueue = (toastId) => {
|
|
4273
|
-
if (toastTimeouts.has(toastId)) {
|
|
4274
|
-
return;
|
|
4275
|
-
}
|
|
4276
|
-
const timeout = setTimeout(() => {
|
|
4277
|
-
toastTimeouts.delete(toastId);
|
|
4278
|
-
dispatch({
|
|
4279
|
-
type: "REMOVE_TOAST",
|
|
4280
|
-
toastId
|
|
4281
|
-
});
|
|
4282
|
-
}, TOAST_REMOVE_DELAY);
|
|
4283
|
-
toastTimeouts.set(toastId, timeout);
|
|
4284
|
-
};
|
|
4285
|
-
const reducer = (state2, action) => {
|
|
4286
|
-
switch (action.type) {
|
|
4287
|
-
case "ADD_TOAST":
|
|
4288
|
-
return {
|
|
4289
|
-
...state2,
|
|
4290
|
-
toasts: [action.toast, ...state2.toasts].slice(0, TOAST_LIMIT)
|
|
4291
|
-
};
|
|
4292
|
-
case "UPDATE_TOAST":
|
|
4293
|
-
return {
|
|
4294
|
-
...state2,
|
|
4295
|
-
toasts: state2.toasts.map(
|
|
4296
|
-
(t) => t.id === action.toast.id ? { ...t, ...action.toast } : t
|
|
4297
|
-
)
|
|
4298
|
-
};
|
|
4299
|
-
case "DISMISS_TOAST": {
|
|
4300
|
-
const { toastId } = action;
|
|
4301
|
-
if (toastId) {
|
|
4302
|
-
addToRemoveQueue(toastId);
|
|
4303
|
-
} else {
|
|
4304
|
-
state2.toasts.forEach((toast2) => {
|
|
4305
|
-
addToRemoveQueue(toast2.id);
|
|
4306
|
-
});
|
|
4307
|
-
}
|
|
4308
|
-
return {
|
|
4309
|
-
...state2,
|
|
4310
|
-
toasts: state2.toasts.map(
|
|
4311
|
-
(t) => t.id === toastId || toastId === void 0 ? {
|
|
4312
|
-
...t,
|
|
4313
|
-
open: false
|
|
4314
|
-
} : t
|
|
4315
|
-
)
|
|
4316
|
-
};
|
|
4317
|
-
}
|
|
4318
|
-
case "REMOVE_TOAST":
|
|
4319
|
-
if (action.toastId === void 0) {
|
|
4320
|
-
return {
|
|
4321
|
-
...state2,
|
|
4322
|
-
toasts: []
|
|
4323
|
-
};
|
|
4324
|
-
}
|
|
4325
|
-
return {
|
|
4326
|
-
...state2,
|
|
4327
|
-
toasts: state2.toasts.filter((t) => t.id !== action.toastId)
|
|
4328
|
-
};
|
|
4329
|
-
}
|
|
4330
|
-
};
|
|
4331
|
-
const listeners = [];
|
|
4332
|
-
let memoryState = { toasts: [] };
|
|
4333
|
-
function dispatch(action) {
|
|
4334
|
-
memoryState = reducer(memoryState, action);
|
|
4335
|
-
listeners.forEach((listener) => {
|
|
4336
|
-
listener(memoryState);
|
|
4337
|
-
});
|
|
4338
|
-
}
|
|
4339
|
-
function toast({ ...props }) {
|
|
4340
|
-
const id = genId();
|
|
4341
|
-
const update = (props2) => dispatch({
|
|
4342
|
-
type: "UPDATE_TOAST",
|
|
4343
|
-
toast: { ...props2, id }
|
|
4344
|
-
});
|
|
4345
|
-
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
|
|
4346
|
-
dispatch({
|
|
4347
|
-
type: "ADD_TOAST",
|
|
4348
|
-
toast: {
|
|
4349
|
-
...props,
|
|
4350
|
-
id,
|
|
4351
|
-
open: true,
|
|
4352
|
-
onOpenChange: (open) => {
|
|
4353
|
-
if (!open) dismiss();
|
|
4354
|
-
}
|
|
3881
|
+
StandardTableHeader.displayName = "StandardTableHeader";
|
|
3882
|
+
const StandardTableHeaderRow = React.forwardRef(({ title, className }, ref) => {
|
|
3883
|
+
const { hasAnyExpanded, expandAll, collapseAll } = useStandardTable();
|
|
3884
|
+
const handleToggleAll = React.useCallback(() => {
|
|
3885
|
+
if (hasAnyExpanded) {
|
|
3886
|
+
collapseAll();
|
|
3887
|
+
} else {
|
|
3888
|
+
expandAll();
|
|
4355
3889
|
}
|
|
4356
|
-
});
|
|
4357
|
-
return {
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
}
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
const index = listeners.indexOf(setState);
|
|
4369
|
-
if (index > -1) {
|
|
4370
|
-
listeners.splice(index, 1);
|
|
4371
|
-
}
|
|
4372
|
-
};
|
|
4373
|
-
}, [state2]);
|
|
4374
|
-
return {
|
|
4375
|
-
...state2,
|
|
4376
|
-
toast,
|
|
4377
|
-
dismiss: (toastId) => dispatch({ type: "DISMISS_TOAST", toastId })
|
|
4378
|
-
};
|
|
4379
|
-
}
|
|
4380
|
-
function Toaster$1() {
|
|
4381
|
-
const { toasts } = useToast();
|
|
4382
|
-
return /* @__PURE__ */ jsxs(ToastProvider, { children: [
|
|
4383
|
-
toasts.map(function({ id, title, description, action, ...props }) {
|
|
4384
|
-
return /* @__PURE__ */ jsxs(Toast, { ...props, children: [
|
|
4385
|
-
/* @__PURE__ */ jsxs("div", { className: "toast-content", children: [
|
|
4386
|
-
title && /* @__PURE__ */ jsx(ToastTitle, { children: title }),
|
|
4387
|
-
description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
|
|
4388
|
-
] }),
|
|
4389
|
-
action,
|
|
4390
|
-
/* @__PURE__ */ jsx(ToastClose, {})
|
|
4391
|
-
] }, id);
|
|
4392
|
-
}),
|
|
4393
|
-
/* @__PURE__ */ jsx(ToastViewport, {})
|
|
3890
|
+
}, [hasAnyExpanded, collapseAll, expandAll]);
|
|
3891
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("standard-table-header", className), children: [
|
|
3892
|
+
/* @__PURE__ */ jsx("h2", { className: "standard-table-header__title body-large", children: title }),
|
|
3893
|
+
/* @__PURE__ */ jsx(
|
|
3894
|
+
motion.div,
|
|
3895
|
+
{
|
|
3896
|
+
animate: { rotate: hasAnyExpanded ? 180 : 0 },
|
|
3897
|
+
transition: { duration: 0.2 },
|
|
3898
|
+
style: { willChange: "transform" },
|
|
3899
|
+
children: /* @__PURE__ */ jsx(Button, { size: "icon", onClick: handleToggleAll, children: /* @__PURE__ */ jsx(UtilityChevronDown, {}) })
|
|
3900
|
+
}
|
|
3901
|
+
)
|
|
4394
3902
|
] });
|
|
4395
|
-
}
|
|
4396
|
-
|
|
4397
|
-
const
|
|
4398
|
-
|
|
4399
|
-
const
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
}
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
return /* @__PURE__ */ jsx(
|
|
3903
|
+
});
|
|
3904
|
+
StandardTableHeaderRow.displayName = "StandardTableHeaderRow";
|
|
3905
|
+
const StandardTableRow = React.forwardRef(({ value, children, className, ...props }, ref) => {
|
|
3906
|
+
const { isExpanded: isExpandedFn } = useStandardTable();
|
|
3907
|
+
const isExpanded = isExpandedFn(value);
|
|
3908
|
+
const rowContextValue = React.useMemo(
|
|
3909
|
+
() => ({ value, isExpanded }),
|
|
3910
|
+
[value, isExpanded]
|
|
3911
|
+
);
|
|
3912
|
+
return /* @__PURE__ */ jsx(StandardTableRowContext.Provider, { value: rowContextValue, children: /* @__PURE__ */ jsx("div", { ref, className: cn("standard-table-row", className), ...props, children }) });
|
|
3913
|
+
});
|
|
3914
|
+
StandardTableRow.displayName = "StandardTableRow";
|
|
3915
|
+
const StandardTableRowHeader = React.forwardRef(({ children, className, onClick, ...props }, ref) => {
|
|
3916
|
+
return /* @__PURE__ */ jsx(
|
|
4409
3917
|
"div",
|
|
4410
3918
|
{
|
|
4411
|
-
"data-chart": chartId,
|
|
4412
3919
|
ref,
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
className
|
|
4416
|
-
),
|
|
3920
|
+
onClick,
|
|
3921
|
+
className: cn("standard-table-row-header", className),
|
|
4417
3922
|
...props,
|
|
4418
|
-
children
|
|
4419
|
-
/* @__PURE__ */ jsx(ChartStyle, { id: chartId, config }),
|
|
4420
|
-
/* @__PURE__ */ jsx(RechartsPrimitive.ResponsiveContainer, { children })
|
|
4421
|
-
]
|
|
3923
|
+
children
|
|
4422
3924
|
}
|
|
4423
|
-
)
|
|
3925
|
+
);
|
|
4424
3926
|
});
|
|
4425
|
-
|
|
4426
|
-
const
|
|
4427
|
-
const
|
|
4428
|
-
|
|
3927
|
+
StandardTableRowHeader.displayName = "StandardTableRowHeader";
|
|
3928
|
+
const StandardTableTrigger = React.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
3929
|
+
const { toggle } = useStandardTable();
|
|
3930
|
+
const { value, isExpanded } = useStandardTableRow();
|
|
3931
|
+
const handleClick = React.useCallback(
|
|
3932
|
+
(e) => {
|
|
3933
|
+
e.stopPropagation();
|
|
3934
|
+
toggle(value);
|
|
3935
|
+
onClick == null ? void 0 : onClick(e);
|
|
3936
|
+
},
|
|
3937
|
+
[toggle, value, onClick]
|
|
4429
3938
|
);
|
|
4430
|
-
if (!colorConfig.length) {
|
|
4431
|
-
return null;
|
|
4432
|
-
}
|
|
4433
3939
|
return /* @__PURE__ */ jsx(
|
|
4434
|
-
|
|
3940
|
+
motion.div,
|
|
4435
3941
|
{
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
3942
|
+
animate: { rotate: isExpanded ? 180 : 0 },
|
|
3943
|
+
transition: { duration: 0.2 },
|
|
3944
|
+
style: { willChange: "transform" },
|
|
3945
|
+
children: /* @__PURE__ */ jsx(
|
|
3946
|
+
Button,
|
|
3947
|
+
{
|
|
3948
|
+
ref,
|
|
3949
|
+
size: "icon",
|
|
3950
|
+
variant: "clear",
|
|
3951
|
+
onClick: handleClick,
|
|
3952
|
+
className: cn("standard-table-trigger", className),
|
|
3953
|
+
...props,
|
|
3954
|
+
children: /* @__PURE__ */ jsx(UtilityChevronDown, {})
|
|
3955
|
+
}
|
|
3956
|
+
)
|
|
4449
3957
|
}
|
|
4450
3958
|
);
|
|
4451
|
-
};
|
|
4452
|
-
|
|
4453
|
-
const
|
|
3959
|
+
});
|
|
3960
|
+
StandardTableTrigger.displayName = "StandardTableTrigger";
|
|
3961
|
+
const StandardTableContent = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
3962
|
+
const { isExpanded } = useStandardTableRow();
|
|
3963
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: isExpanded && /* @__PURE__ */ jsx(
|
|
3964
|
+
motion.div,
|
|
3965
|
+
{
|
|
3966
|
+
initial: { height: 0, opacity: 0 },
|
|
3967
|
+
animate: { height: "auto", opacity: 1 },
|
|
3968
|
+
exit: { height: 0, opacity: 0 },
|
|
3969
|
+
transition: { duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] },
|
|
3970
|
+
className: cn("standard-table-content", className),
|
|
3971
|
+
style: { willChange: "opacity" },
|
|
3972
|
+
children: /* @__PURE__ */ jsx(
|
|
3973
|
+
"div",
|
|
3974
|
+
{
|
|
3975
|
+
ref,
|
|
3976
|
+
className: "standard-table-content__inner",
|
|
3977
|
+
...props,
|
|
3978
|
+
children
|
|
3979
|
+
}
|
|
3980
|
+
)
|
|
3981
|
+
}
|
|
3982
|
+
) });
|
|
3983
|
+
});
|
|
3984
|
+
StandardTableContent.displayName = "StandardTableContent";
|
|
3985
|
+
const StandardTableListRow = React.forwardRef(
|
|
4454
3986
|
({
|
|
4455
|
-
|
|
4456
|
-
|
|
3987
|
+
icon,
|
|
3988
|
+
badge,
|
|
3989
|
+
title,
|
|
3990
|
+
titleClassName,
|
|
3991
|
+
rightContent,
|
|
3992
|
+
onClick,
|
|
4457
3993
|
className,
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
hideIndicator = false,
|
|
4461
|
-
label,
|
|
4462
|
-
labelFormatter,
|
|
4463
|
-
labelClassName,
|
|
4464
|
-
formatter,
|
|
4465
|
-
color,
|
|
4466
|
-
nameKey,
|
|
4467
|
-
labelKey
|
|
3994
|
+
variant: variant2 = "default",
|
|
3995
|
+
...props
|
|
4468
3996
|
}, ref) => {
|
|
4469
|
-
const { config } = useChart();
|
|
4470
|
-
const tooltipLabel = React.useMemo(() => {
|
|
4471
|
-
var _a;
|
|
4472
|
-
if (hideLabel || !(payload == null ? void 0 : payload.length)) {
|
|
4473
|
-
return null;
|
|
4474
|
-
}
|
|
4475
|
-
const [item] = payload;
|
|
4476
|
-
const key = `${labelKey || item.dataKey || item.name || "value"}`;
|
|
4477
|
-
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
4478
|
-
const value = !labelKey && typeof label === "string" ? ((_a = config[label]) == null ? void 0 : _a.label) || label : itemConfig == null ? void 0 : itemConfig.label;
|
|
4479
|
-
if (labelFormatter) {
|
|
4480
|
-
return /* @__PURE__ */ jsx("div", { className: cn("chart-tooltip-label", labelClassName), children: labelFormatter(value, payload) });
|
|
4481
|
-
}
|
|
4482
|
-
if (!value) {
|
|
4483
|
-
return null;
|
|
4484
|
-
}
|
|
4485
|
-
return /* @__PURE__ */ jsx("div", { className: cn("chart-tooltip-label", labelClassName), children: value });
|
|
4486
|
-
}, [
|
|
4487
|
-
label,
|
|
4488
|
-
labelFormatter,
|
|
4489
|
-
payload,
|
|
4490
|
-
hideLabel,
|
|
4491
|
-
labelClassName,
|
|
4492
|
-
config,
|
|
4493
|
-
labelKey
|
|
4494
|
-
]);
|
|
4495
|
-
if (!active || !(payload == null ? void 0 : payload.length)) {
|
|
4496
|
-
return null;
|
|
4497
|
-
}
|
|
4498
|
-
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
4499
3997
|
return /* @__PURE__ */ jsxs(
|
|
4500
3998
|
"div",
|
|
4501
3999
|
{
|
|
4502
4000
|
ref,
|
|
4001
|
+
onClick,
|
|
4503
4002
|
className: cn(
|
|
4504
|
-
"
|
|
4003
|
+
"standard-table-list-row",
|
|
4004
|
+
variant2 === "default" ? "standard-table-list-row--default" : "standard-table-list-row--nested",
|
|
4505
4005
|
className
|
|
4506
4006
|
),
|
|
4007
|
+
...props,
|
|
4507
4008
|
children: [
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
const indicatorColor = color || item.payload.fill || item.color;
|
|
4513
|
-
return /* @__PURE__ */ jsx(
|
|
4514
|
-
"div",
|
|
4515
|
-
{
|
|
4516
|
-
className: cn(
|
|
4517
|
-
"chart-tooltip-item",
|
|
4518
|
-
indicator === "dot" && "chart-tooltip-item--dot"
|
|
4519
|
-
),
|
|
4520
|
-
children: formatter && (item == null ? void 0 : item.value) !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4521
|
-
(itemConfig == null ? void 0 : itemConfig.icon) ? /* @__PURE__ */ jsx(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx(
|
|
4522
|
-
"div",
|
|
4523
|
-
{
|
|
4524
|
-
className: cn(
|
|
4525
|
-
"chart-tooltip-indicator",
|
|
4526
|
-
{
|
|
4527
|
-
"chart-tooltip-indicator--dot": indicator === "dot",
|
|
4528
|
-
"chart-tooltip-indicator--line": indicator === "line",
|
|
4529
|
-
"chart-tooltip-indicator--dashed": indicator === "dashed",
|
|
4530
|
-
"chart-tooltip-indicator--dashed-nested": nestLabel && indicator === "dashed"
|
|
4531
|
-
}
|
|
4532
|
-
),
|
|
4533
|
-
style: {
|
|
4534
|
-
"--color-bg": indicatorColor,
|
|
4535
|
-
"--color-border": indicatorColor
|
|
4536
|
-
}
|
|
4537
|
-
}
|
|
4538
|
-
),
|
|
4539
|
-
/* @__PURE__ */ jsxs(
|
|
4540
|
-
"div",
|
|
4541
|
-
{
|
|
4542
|
-
className: cn(
|
|
4543
|
-
"chart-tooltip-item-content",
|
|
4544
|
-
nestLabel ? "chart-tooltip-item-content--nested" : ""
|
|
4545
|
-
),
|
|
4546
|
-
children: [
|
|
4547
|
-
/* @__PURE__ */ jsxs("div", { className: "chart-tooltip-item-details", children: [
|
|
4548
|
-
nestLabel ? tooltipLabel : null,
|
|
4549
|
-
/* @__PURE__ */ jsx("span", { className: "chart-tooltip-item-label", children: (itemConfig == null ? void 0 : itemConfig.label) || item.name })
|
|
4550
|
-
] }),
|
|
4551
|
-
item.value && /* @__PURE__ */ jsx("span", { className: "chart-tooltip-item-value", children: item.value.toLocaleString() })
|
|
4552
|
-
]
|
|
4553
|
-
}
|
|
4554
|
-
)
|
|
4555
|
-
] })
|
|
4556
|
-
},
|
|
4557
|
-
item.dataKey
|
|
4558
|
-
);
|
|
4559
|
-
}) })
|
|
4560
|
-
]
|
|
4561
|
-
}
|
|
4562
|
-
);
|
|
4563
|
-
}
|
|
4564
|
-
);
|
|
4565
|
-
ChartTooltipContent.displayName = "ChartTooltip";
|
|
4566
|
-
const ChartLegend = RechartsPrimitive.Legend;
|
|
4567
|
-
const ChartLegendContent = React.forwardRef(
|
|
4568
|
-
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
4569
|
-
const { config } = useChart();
|
|
4570
|
-
if (!(payload == null ? void 0 : payload.length)) {
|
|
4571
|
-
return null;
|
|
4572
|
-
}
|
|
4573
|
-
return /* @__PURE__ */ jsx(
|
|
4574
|
-
"div",
|
|
4575
|
-
{
|
|
4576
|
-
ref,
|
|
4577
|
-
className: cn(
|
|
4578
|
-
"chart-legend",
|
|
4579
|
-
verticalAlign === "top" ? "chart-legend--top" : "chart-legend--bottom",
|
|
4580
|
-
className
|
|
4581
|
-
),
|
|
4582
|
-
children: payload.map((item) => {
|
|
4583
|
-
const key = `${nameKey || item.dataKey || "value"}`;
|
|
4584
|
-
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
4585
|
-
return /* @__PURE__ */ jsxs(
|
|
4586
|
-
"div",
|
|
4009
|
+
icon,
|
|
4010
|
+
badge,
|
|
4011
|
+
/* @__PURE__ */ jsx(
|
|
4012
|
+
"span",
|
|
4587
4013
|
{
|
|
4588
|
-
className:
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
}
|
|
4598
|
-
),
|
|
4599
|
-
itemConfig == null ? void 0 : itemConfig.label
|
|
4600
|
-
]
|
|
4601
|
-
},
|
|
4602
|
-
item.value
|
|
4603
|
-
);
|
|
4604
|
-
})
|
|
4014
|
+
className: cn(
|
|
4015
|
+
"standard-table-list-row__title",
|
|
4016
|
+
titleClassName || "body-large"
|
|
4017
|
+
),
|
|
4018
|
+
children: title
|
|
4019
|
+
}
|
|
4020
|
+
),
|
|
4021
|
+
rightContent
|
|
4022
|
+
]
|
|
4605
4023
|
}
|
|
4606
4024
|
);
|
|
4607
4025
|
}
|
|
4608
4026
|
);
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
if (typeof payload !== "object" || payload === null) {
|
|
4612
|
-
return void 0;
|
|
4613
|
-
}
|
|
4614
|
-
const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
|
|
4615
|
-
let configLabelKey = key;
|
|
4616
|
-
if (key in payload && typeof payload[key] === "string") {
|
|
4617
|
-
configLabelKey = payload[key];
|
|
4618
|
-
} else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === "string") {
|
|
4619
|
-
configLabelKey = payloadPayload[key];
|
|
4620
|
-
}
|
|
4621
|
-
return configLabelKey in config ? config[configLabelKey] : config[key];
|
|
4622
|
-
}
|
|
4623
|
-
const CodeBadge = ({ code, className, style }) => {
|
|
4624
|
-
return /* @__PURE__ */ jsx(
|
|
4625
|
-
"div",
|
|
4626
|
-
{
|
|
4627
|
-
className: cn("code-badge", className),
|
|
4628
|
-
style: {
|
|
4629
|
-
...style
|
|
4630
|
-
},
|
|
4631
|
-
children: /* @__PURE__ */ jsx("span", { className: "number-small font-semibold", style: { color: "inherit" }, children: code })
|
|
4632
|
-
}
|
|
4633
|
-
);
|
|
4634
|
-
};
|
|
4635
|
-
const PageHeader = React.forwardRef(
|
|
4636
|
-
({ children, className, ...props }, ref) => {
|
|
4637
|
-
return /* @__PURE__ */ jsx("header", { ref, className: cn("page-header", className), ...props, children });
|
|
4638
|
-
}
|
|
4639
|
-
);
|
|
4640
|
-
PageHeader.displayName = "PageHeader";
|
|
4641
|
-
const PageHeaderTopSection = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
4027
|
+
StandardTableListRow.displayName = "StandardTableListRow";
|
|
4028
|
+
const StandardTableContainer = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
4642
4029
|
return /* @__PURE__ */ jsx(
|
|
4643
|
-
"
|
|
4030
|
+
"section",
|
|
4644
4031
|
{
|
|
4645
4032
|
ref,
|
|
4646
|
-
className: cn("
|
|
4033
|
+
className: cn("standard-table-container", className),
|
|
4647
4034
|
...props,
|
|
4648
4035
|
children
|
|
4649
4036
|
}
|
|
4650
4037
|
);
|
|
4651
4038
|
});
|
|
4652
|
-
|
|
4653
|
-
const
|
|
4654
|
-
return /* @__PURE__ */
|
|
4655
|
-
"
|
|
4039
|
+
StandardTableContainer.displayName = "StandardTableContainer";
|
|
4040
|
+
const NavLogo = ({ dark = false }) => {
|
|
4041
|
+
return /* @__PURE__ */ jsxs(
|
|
4042
|
+
"svg",
|
|
4656
4043
|
{
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4044
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4045
|
+
width: "64",
|
|
4046
|
+
height: "16",
|
|
4047
|
+
viewBox: "0 0 64 16",
|
|
4048
|
+
fill: "none",
|
|
4049
|
+
className: cn(dark ? "text-gray-700" : "text-white"),
|
|
4050
|
+
children: [
|
|
4051
|
+
/* @__PURE__ */ jsx(
|
|
4052
|
+
"path",
|
|
4053
|
+
{
|
|
4054
|
+
d: "M53.5868 0H55.0485C55.6026 0 56.0325 0.404706 56.0325 0.969412V12.8941H63.016C63.5701 12.8941 64 13.2988 64 13.8447V15.0306C64 15.5765 63.5701 16 63.016 16H53.5868C53.0327 16 52.6028 15.5765 52.6028 15.0306V0.969412C52.6028 0.404706 53.0423 0 53.5868 0Z",
|
|
4055
|
+
fill: "currentColor"
|
|
4056
|
+
}
|
|
4057
|
+
),
|
|
4058
|
+
/* @__PURE__ */ jsx(
|
|
4059
|
+
"path",
|
|
4060
|
+
{
|
|
4061
|
+
d: "M39.9826 0H41.4442C41.9983 0 42.4282 0.404706 42.4282 0.969412V12.8941H49.4118C49.9659 12.8941 50.3958 13.2988 50.3958 13.8447V15.0306C50.3958 15.5765 49.9659 16 49.4118 16H39.9826C39.4285 16 38.9986 15.5765 38.9986 15.0306V0.969412C38.9986 0.404706 39.4285 0 39.9826 0Z",
|
|
4062
|
+
fill: "currentColor"
|
|
4063
|
+
}
|
|
4064
|
+
),
|
|
4065
|
+
/* @__PURE__ */ jsx(
|
|
4066
|
+
"path",
|
|
4067
|
+
{
|
|
4068
|
+
d: "M25.4615 0H35.5212C36.0944 0 36.5052 0.404706 36.5052 0.969412V2.15529C36.5052 2.70118 36.0944 3.12471 35.5212 3.12471H27.9072V6.37176H34.222C34.7761 6.37176 35.206 6.77647 35.206 7.32235V8.50824C35.206 9.07294 34.7761 9.47765 34.222 9.47765H27.9072V12.8941H35.6359C36.2091 12.8941 36.6199 13.2988 36.6199 13.8447V15.0306C36.6199 15.5765 36.2091 16 35.6359 16H25.4615C24.9074 16 24.4775 15.5765 24.4775 15.0306V0.969412C24.4775 0.404706 24.9074 0 25.4615 0Z",
|
|
4069
|
+
fill: "currentColor"
|
|
4070
|
+
}
|
|
4071
|
+
),
|
|
4072
|
+
/* @__PURE__ */ jsx(
|
|
4073
|
+
"path",
|
|
4074
|
+
{
|
|
4075
|
+
d: "M2.26579 0C2.81989 0 3.37399 0.376471 3.53639 0.922353L6.56483 10.4941L9.51684 0.856471C9.66014 0.357647 10.1665 0 10.6728 0H11.6855C12.2109 0 12.7172 0.357647 12.8605 0.856471L15.8412 10.5035L18.8314 0.922353C18.9747 0.376471 19.5288 0 20.102 0H21.6401C22.1942 0 22.4808 0.404706 22.2898 0.922353L17.4653 15.1435C17.2933 15.6141 16.7965 16 16.2616 16H15.2489C14.7426 16 14.2362 15.6424 14.0929 15.1435L11.1887 5.92L8.25578 15.1435C8.11248 15.6424 7.60615 16 7.08071 16H6.08716C5.58083 16 5.0745 15.6235 4.91209 15.1435L0.0589489 0.922353C-0.13212 0.404706 0.154483 0 0.727688 0H2.26579Z",
|
|
4076
|
+
fill: "currentColor"
|
|
4077
|
+
}
|
|
4078
|
+
)
|
|
4079
|
+
]
|
|
4661
4080
|
}
|
|
4662
4081
|
);
|
|
4663
|
-
}
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4082
|
+
};
|
|
4083
|
+
const NavAccount = ({ className = "" }) => {
|
|
4084
|
+
return /* @__PURE__ */ jsxs(
|
|
4085
|
+
"svg",
|
|
4086
|
+
{
|
|
4087
|
+
width: "32",
|
|
4088
|
+
height: "32",
|
|
4089
|
+
viewBox: "0 0 32 32",
|
|
4090
|
+
fill: "none",
|
|
4091
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4092
|
+
className: cn(
|
|
4093
|
+
"transition-colors duration-300 text-bronze-500",
|
|
4094
|
+
className
|
|
4095
|
+
),
|
|
4096
|
+
children: [
|
|
4097
|
+
/* @__PURE__ */ jsx(
|
|
4098
|
+
"path",
|
|
4099
|
+
{
|
|
4100
|
+
d: "M16.0001 14.5C18.2093 14.5 20.0001 12.7091 20.0001 10.5C20.0001 8.29086 18.2093 6.5 16.0001 6.5C13.791 6.5 12.0001 8.29086 12.0001 10.5C12.0001 12.7091 13.791 14.5 16.0001 14.5Z",
|
|
4101
|
+
fill: "currentColor"
|
|
4102
|
+
}
|
|
4103
|
+
),
|
|
4104
|
+
/* @__PURE__ */ jsx(
|
|
4105
|
+
"path",
|
|
4106
|
+
{
|
|
4107
|
+
d: "M6.90759 23.3314C8.48801 19.8899 11.9649 17.5 16 17.5C20.0351 17.5 23.5121 19.89 25.0924 23.3316C22.8919 25.8841 19.6347 27.5 16.0001 27.5C12.3654 27.5 9.10818 25.8841 6.90759 23.3314Z",
|
|
4108
|
+
fill: "currentColor"
|
|
4109
|
+
}
|
|
4110
|
+
)
|
|
4111
|
+
]
|
|
4680
4112
|
}
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
);
|
|
4685
|
-
PageHeaderBadge.displayName = "PageHeaderBadge";
|
|
4686
|
-
const PageHeaderTitle = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
4687
|
-
return /* @__PURE__ */ jsx("h1", { ref, className: cn("page-header-title", className), ...props, children });
|
|
4688
|
-
});
|
|
4689
|
-
PageHeaderTitle.displayName = "PageHeaderTitle";
|
|
4690
|
-
const PageHeaderDescription = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
4113
|
+
);
|
|
4114
|
+
};
|
|
4115
|
+
const NavBullet = ({ color }) => {
|
|
4691
4116
|
return /* @__PURE__ */ jsx(
|
|
4692
|
-
"
|
|
4117
|
+
"svg",
|
|
4693
4118
|
{
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4119
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4120
|
+
width: "8",
|
|
4121
|
+
height: "9",
|
|
4122
|
+
viewBox: "0 0 8 9",
|
|
4123
|
+
fill: "none",
|
|
4124
|
+
children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4.5", r: "3.5", fill: color, stroke: "#F3E7D8" })
|
|
4698
4125
|
}
|
|
4699
4126
|
);
|
|
4700
|
-
}
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4127
|
+
};
|
|
4128
|
+
const UtilityClearRegular = ({
|
|
4129
|
+
className
|
|
4130
|
+
}) => {
|
|
4131
|
+
return /* @__PURE__ */ jsx(
|
|
4132
|
+
"div",
|
|
4133
|
+
{
|
|
4134
|
+
className: cn(
|
|
4135
|
+
"size-4 flex items-center justify-center text-gray-500",
|
|
4136
|
+
className
|
|
4137
|
+
),
|
|
4138
|
+
children: /* @__PURE__ */ jsxs(
|
|
4139
|
+
"svg",
|
|
4140
|
+
{
|
|
4141
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4142
|
+
width: "14",
|
|
4143
|
+
height: "14",
|
|
4144
|
+
viewBox: "0 0 14 14",
|
|
4145
|
+
fill: "none",
|
|
4146
|
+
className: cn("size-[14px] text-inherit"),
|
|
4147
|
+
children: [
|
|
4148
|
+
/* @__PURE__ */ jsx(
|
|
4149
|
+
"path",
|
|
4150
|
+
{
|
|
4151
|
+
d: "M6.65039 12.65L0.650391 6.65L6.65039 0.65",
|
|
4152
|
+
stroke: "currentColor",
|
|
4153
|
+
strokeWidth: "1.3",
|
|
4154
|
+
strokeLinecap: "round",
|
|
4155
|
+
strokeLinejoin: "round"
|
|
4156
|
+
}
|
|
4157
|
+
),
|
|
4158
|
+
/* @__PURE__ */ jsx(
|
|
4159
|
+
"path",
|
|
4160
|
+
{
|
|
4161
|
+
d: "M12.6504 6.65H0.650391",
|
|
4162
|
+
stroke: "currentColor",
|
|
4163
|
+
strokeWidth: "1.3",
|
|
4164
|
+
strokeLinecap: "round",
|
|
4165
|
+
strokeLinejoin: "round"
|
|
4166
|
+
}
|
|
4167
|
+
)
|
|
4168
|
+
]
|
|
4169
|
+
}
|
|
4170
|
+
)
|
|
4171
|
+
}
|
|
4172
|
+
);
|
|
4173
|
+
};
|
|
4174
|
+
const NavigationContext = React.createContext(
|
|
4175
|
+
null
|
|
4176
|
+
);
|
|
4177
|
+
function useNavigation() {
|
|
4178
|
+
const ctx = React.useContext(NavigationContext);
|
|
4179
|
+
if (!ctx)
|
|
4180
|
+
throw new Error("Navigation components must be used within <Navigation>");
|
|
4181
|
+
return ctx;
|
|
4721
4182
|
}
|
|
4722
|
-
const
|
|
4723
|
-
({
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
...props
|
|
4731
|
-
}, ref) => {
|
|
4732
|
-
const getInitialExpanded = () => {
|
|
4733
|
-
if (!defaultExpanded) return /* @__PURE__ */ new Set();
|
|
4734
|
-
if (Array.isArray(defaultExpanded)) return new Set(defaultExpanded);
|
|
4735
|
-
return /* @__PURE__ */ new Set([defaultExpanded]);
|
|
4183
|
+
const Navigation = React.forwardRef(
|
|
4184
|
+
({ className, light = false, children, ...props }, ref) => {
|
|
4185
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
4186
|
+
const [activeIndex, setActiveIndex] = React.useState(null);
|
|
4187
|
+
const [trays, setTrays] = React.useState([]);
|
|
4188
|
+
const handleMouseLeave = () => {
|
|
4189
|
+
setIsOpen(false);
|
|
4190
|
+
setActiveIndex(null);
|
|
4736
4191
|
};
|
|
4737
|
-
const
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
const expandedValues = isControlled ? controlledExpandedValues : uncontrolledExpandedValues;
|
|
4741
|
-
const hasAnyExpanded = React.useMemo(
|
|
4742
|
-
() => isAllExpanded || expandedValues.size > 0,
|
|
4743
|
-
[isAllExpanded, expandedValues]
|
|
4744
|
-
);
|
|
4745
|
-
const isExpanded = React.useCallback(
|
|
4746
|
-
(value) => isAllExpanded || expandedValues.has(value),
|
|
4747
|
-
[isAllExpanded, expandedValues]
|
|
4748
|
-
);
|
|
4749
|
-
const toggle = React.useCallback(
|
|
4750
|
-
(value) => {
|
|
4751
|
-
const newValues = new Set(expandedValues);
|
|
4752
|
-
if (newValues.has(value)) {
|
|
4753
|
-
newValues.delete(value);
|
|
4754
|
-
} else {
|
|
4755
|
-
if (!allowMultiple) {
|
|
4756
|
-
newValues.clear();
|
|
4757
|
-
}
|
|
4758
|
-
newValues.add(value);
|
|
4759
|
-
}
|
|
4760
|
-
if (!isControlled) {
|
|
4761
|
-
setUncontrolledExpandedValues(newValues);
|
|
4762
|
-
}
|
|
4763
|
-
onExpandedChange == null ? void 0 : onExpandedChange(newValues);
|
|
4764
|
-
setIsAllExpanded(false);
|
|
4765
|
-
},
|
|
4766
|
-
[allowMultiple, expandedValues, isControlled, onExpandedChange]
|
|
4767
|
-
);
|
|
4768
|
-
const expandAll = React.useCallback(() => {
|
|
4769
|
-
setIsAllExpanded(true);
|
|
4770
|
-
const emptySet = /* @__PURE__ */ new Set();
|
|
4771
|
-
if (!isControlled) {
|
|
4772
|
-
setUncontrolledExpandedValues(emptySet);
|
|
4773
|
-
}
|
|
4774
|
-
onExpandedChange == null ? void 0 : onExpandedChange(emptySet);
|
|
4775
|
-
}, [isControlled, onExpandedChange]);
|
|
4776
|
-
const collapseAll = React.useCallback(() => {
|
|
4777
|
-
setIsAllExpanded(false);
|
|
4778
|
-
const emptySet = /* @__PURE__ */ new Set();
|
|
4779
|
-
if (!isControlled) {
|
|
4780
|
-
setUncontrolledExpandedValues(emptySet);
|
|
4781
|
-
}
|
|
4782
|
-
onExpandedChange == null ? void 0 : onExpandedChange(emptySet);
|
|
4783
|
-
}, [isControlled, onExpandedChange]);
|
|
4192
|
+
const registerTrays = React.useCallback((newTrays) => {
|
|
4193
|
+
setTrays(newTrays);
|
|
4194
|
+
}, []);
|
|
4784
4195
|
const contextValue = React.useMemo(
|
|
4785
4196
|
() => ({
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
allowMultiple
|
|
4197
|
+
light,
|
|
4198
|
+
isOpen,
|
|
4199
|
+
activeIndex,
|
|
4200
|
+
setActiveIndex,
|
|
4201
|
+
setIsOpen,
|
|
4202
|
+
registerTrays
|
|
4793
4203
|
}),
|
|
4794
|
-
[
|
|
4795
|
-
expandedValues,
|
|
4796
|
-
isExpanded,
|
|
4797
|
-
toggle,
|
|
4798
|
-
expandAll,
|
|
4799
|
-
collapseAll,
|
|
4800
|
-
hasAnyExpanded,
|
|
4801
|
-
allowMultiple
|
|
4802
|
-
]
|
|
4204
|
+
[light, isOpen, activeIndex, registerTrays]
|
|
4803
4205
|
);
|
|
4804
|
-
return /* @__PURE__ */ jsx(
|
|
4805
|
-
"
|
|
4206
|
+
return /* @__PURE__ */ jsx(NavigationContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs(
|
|
4207
|
+
"nav",
|
|
4806
4208
|
{
|
|
4807
4209
|
ref,
|
|
4808
|
-
className: cn(
|
|
4809
|
-
|
|
4810
|
-
className
|
|
4811
|
-
),
|
|
4210
|
+
className: cn("navigation", light && "navigation--light", className),
|
|
4211
|
+
onMouseLeave: handleMouseLeave,
|
|
4812
4212
|
...props,
|
|
4813
|
-
children
|
|
4213
|
+
children: [
|
|
4214
|
+
!light && /* @__PURE__ */ jsx(
|
|
4215
|
+
motion.div,
|
|
4216
|
+
{
|
|
4217
|
+
className: "navigation__backdrop",
|
|
4218
|
+
initial: false,
|
|
4219
|
+
animate: {
|
|
4220
|
+
height: isOpen ? 340 : 64,
|
|
4221
|
+
backgroundColor: isOpen ? "rgba(62, 64, 73, 0.90)" : "rgba(0, 0, 0, 0.16)"
|
|
4222
|
+
},
|
|
4223
|
+
transition: { duration: 0.25, ease: "easeOut" },
|
|
4224
|
+
style: { willChange: "transform" }
|
|
4225
|
+
}
|
|
4226
|
+
),
|
|
4227
|
+
/* @__PURE__ */ jsx("div", { className: "navigation__content", children }),
|
|
4228
|
+
isOpen && !light && /* @__PURE__ */ jsx("div", { className: "navigation__separator" }),
|
|
4229
|
+
/* @__PURE__ */ jsx("div", { className: "navigation__tray-container", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: isOpen && activeIndex !== null && /* @__PURE__ */ jsx(
|
|
4230
|
+
motion.div,
|
|
4231
|
+
{
|
|
4232
|
+
initial: { y: -10, opacity: 0 },
|
|
4233
|
+
animate: { y: 0, opacity: 1 },
|
|
4234
|
+
exit: { y: -10, opacity: 0 },
|
|
4235
|
+
transition: { duration: 0.2 },
|
|
4236
|
+
style: { willChange: "transform, opacity" },
|
|
4237
|
+
children: trays[activeIndex - 1]
|
|
4238
|
+
},
|
|
4239
|
+
activeIndex
|
|
4240
|
+
) }) })
|
|
4241
|
+
]
|
|
4814
4242
|
}
|
|
4815
4243
|
) });
|
|
4816
4244
|
}
|
|
4817
4245
|
);
|
|
4818
|
-
|
|
4819
|
-
const
|
|
4820
|
-
|
|
4821
|
-
/* @__PURE__ */ jsx(
|
|
4822
|
-
onToggleAll && /* @__PURE__ */ jsx(
|
|
4246
|
+
Navigation.displayName = "Navigation";
|
|
4247
|
+
const NavigationBrand = React.forwardRef(
|
|
4248
|
+
({ className, children }, ref) => {
|
|
4249
|
+
return /* @__PURE__ */ jsx(
|
|
4823
4250
|
motion.div,
|
|
4824
4251
|
{
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4252
|
+
ref,
|
|
4253
|
+
className: cn("navigation-brand", className),
|
|
4254
|
+
layout: true,
|
|
4255
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
4256
|
+
children
|
|
4829
4257
|
}
|
|
4830
|
-
)
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
const
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4258
|
+
);
|
|
4259
|
+
}
|
|
4260
|
+
);
|
|
4261
|
+
NavigationBrand.displayName = "NavigationBrand";
|
|
4262
|
+
const NavigationBack = React.forwardRef(
|
|
4263
|
+
({ className, show, asChild, children, ...props }, ref) => {
|
|
4264
|
+
const { light } = useNavigation();
|
|
4265
|
+
const linkClassName = cn(
|
|
4266
|
+
buttonVariants({ size: "icon" }),
|
|
4267
|
+
"navigation-back",
|
|
4268
|
+
light ? "navigation-back--light" : "navigation-back--dark",
|
|
4269
|
+
className
|
|
4270
|
+
);
|
|
4271
|
+
const defaultIcon = /* @__PURE__ */ jsx(
|
|
4272
|
+
UtilityClearRegular,
|
|
4273
|
+
{
|
|
4274
|
+
className: light ? "navigation-back__icon--light" : "navigation-back__icon--dark"
|
|
4275
|
+
}
|
|
4276
|
+
);
|
|
4277
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", children: show && /* @__PURE__ */ jsx(
|
|
4846
4278
|
motion.div,
|
|
4847
4279
|
{
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4280
|
+
layout: true,
|
|
4281
|
+
initial: { opacity: 0, scale: 0.8 },
|
|
4282
|
+
animate: { opacity: 1, scale: 1 },
|
|
4283
|
+
exit: { opacity: 0, scale: 0.8 },
|
|
4284
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
4285
|
+
style: { willChange: "transform, opacity" },
|
|
4286
|
+
children: asChild && React.isValidElement(children) ? (() => {
|
|
4287
|
+
const childElement = children;
|
|
4288
|
+
const hasChildContent = childElement.props.children != null;
|
|
4289
|
+
return /* @__PURE__ */ jsx(
|
|
4290
|
+
Slot,
|
|
4291
|
+
{
|
|
4292
|
+
ref,
|
|
4293
|
+
className: linkClassName,
|
|
4294
|
+
"aria-label": "Back",
|
|
4295
|
+
...props,
|
|
4296
|
+
children: hasChildContent ? children : React.cloneElement(childElement, {}, defaultIcon)
|
|
4297
|
+
}
|
|
4298
|
+
);
|
|
4299
|
+
})() : /* @__PURE__ */ jsx(
|
|
4300
|
+
"a",
|
|
4301
|
+
{
|
|
4302
|
+
ref,
|
|
4303
|
+
className: linkClassName,
|
|
4304
|
+
"aria-label": "Back",
|
|
4305
|
+
href: "/",
|
|
4306
|
+
...props,
|
|
4307
|
+
children: children || defaultIcon
|
|
4308
|
+
}
|
|
4309
|
+
)
|
|
4852
4310
|
}
|
|
4853
|
-
)
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
const
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
const StandardTableRowHeader = React.forwardRef(({ children, className, onClick, ...props }, ref) => {
|
|
4868
|
-
return /* @__PURE__ */ jsx(
|
|
4869
|
-
"div",
|
|
4870
|
-
{
|
|
4871
|
-
ref,
|
|
4872
|
-
onClick,
|
|
4873
|
-
className: cn("standard-table-row-header", className),
|
|
4874
|
-
...props,
|
|
4875
|
-
children
|
|
4876
|
-
}
|
|
4877
|
-
);
|
|
4878
|
-
});
|
|
4879
|
-
StandardTableRowHeader.displayName = "StandardTableRowHeader";
|
|
4880
|
-
const StandardTableTrigger = React.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
4881
|
-
const { toggle } = useStandardTable();
|
|
4882
|
-
const { value, isExpanded } = useStandardTableRow();
|
|
4883
|
-
const handleClick = React.useCallback(
|
|
4884
|
-
(e) => {
|
|
4885
|
-
e.stopPropagation();
|
|
4886
|
-
toggle(value);
|
|
4887
|
-
onClick == null ? void 0 : onClick(e);
|
|
4888
|
-
},
|
|
4889
|
-
[toggle, value, onClick]
|
|
4890
|
-
);
|
|
4891
|
-
return /* @__PURE__ */ jsx(
|
|
4892
|
-
motion.div,
|
|
4893
|
-
{
|
|
4894
|
-
animate: { rotate: isExpanded ? 180 : 0 },
|
|
4895
|
-
transition: { duration: 0.2 },
|
|
4896
|
-
style: { willChange: "transform" },
|
|
4897
|
-
children: /* @__PURE__ */ jsx(
|
|
4898
|
-
Button,
|
|
4899
|
-
{
|
|
4900
|
-
ref,
|
|
4901
|
-
size: "icon",
|
|
4902
|
-
variant: "clear",
|
|
4903
|
-
onClick: handleClick,
|
|
4904
|
-
className: cn("standard-table-trigger", className),
|
|
4905
|
-
...props,
|
|
4906
|
-
children: /* @__PURE__ */ jsx(UtilityChevronDown, {})
|
|
4907
|
-
}
|
|
4908
|
-
)
|
|
4909
|
-
}
|
|
4910
|
-
);
|
|
4911
|
-
});
|
|
4912
|
-
StandardTableTrigger.displayName = "StandardTableTrigger";
|
|
4913
|
-
const StandardTableContent = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
4914
|
-
const { isExpanded } = useStandardTableRow();
|
|
4915
|
-
return /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: isExpanded && /* @__PURE__ */ jsx(
|
|
4916
|
-
motion.div,
|
|
4917
|
-
{
|
|
4918
|
-
initial: { height: 0, opacity: 0 },
|
|
4919
|
-
animate: { height: "auto", opacity: 1 },
|
|
4920
|
-
exit: { height: 0, opacity: 0 },
|
|
4921
|
-
transition: { duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] },
|
|
4922
|
-
className: cn("standard-table-content", className),
|
|
4923
|
-
style: { willChange: "opacity" },
|
|
4924
|
-
children: /* @__PURE__ */ jsx(
|
|
4925
|
-
"div",
|
|
4311
|
+
) });
|
|
4312
|
+
}
|
|
4313
|
+
);
|
|
4314
|
+
NavigationBack.displayName = "NavigationBack";
|
|
4315
|
+
const NavigationLogo = React.forwardRef(
|
|
4316
|
+
({ className, asChild, children, ...props }, ref) => {
|
|
4317
|
+
const { light } = useNavigation();
|
|
4318
|
+
const defaultLogo = /* @__PURE__ */ jsx(NavLogo, { dark: light });
|
|
4319
|
+
const linkClassName = cn("navigation-logo", className);
|
|
4320
|
+
if (asChild && React.isValidElement(children)) {
|
|
4321
|
+
const childElement = children;
|
|
4322
|
+
const hasChildContent = childElement.props.children != null;
|
|
4323
|
+
return /* @__PURE__ */ jsx(
|
|
4324
|
+
motion.div,
|
|
4926
4325
|
{
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
children
|
|
4326
|
+
layout: true,
|
|
4327
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
4328
|
+
style: { willChange: "transform" },
|
|
4329
|
+
children: /* @__PURE__ */ jsx(
|
|
4330
|
+
Slot,
|
|
4331
|
+
{
|
|
4332
|
+
ref,
|
|
4333
|
+
className: linkClassName,
|
|
4334
|
+
"aria-label": "Home",
|
|
4335
|
+
...props,
|
|
4336
|
+
children: hasChildContent ? children : React.cloneElement(childElement, {}, defaultLogo)
|
|
4337
|
+
}
|
|
4338
|
+
)
|
|
4931
4339
|
}
|
|
4932
|
-
)
|
|
4340
|
+
);
|
|
4933
4341
|
}
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4342
|
+
return /* @__PURE__ */ jsx(
|
|
4343
|
+
motion.div,
|
|
4344
|
+
{
|
|
4345
|
+
layout: true,
|
|
4346
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
4347
|
+
style: { willChange: "transform" },
|
|
4348
|
+
children: /* @__PURE__ */ jsxs(
|
|
4349
|
+
"a",
|
|
4350
|
+
{
|
|
4351
|
+
ref,
|
|
4352
|
+
className: linkClassName,
|
|
4353
|
+
"aria-label": "Home",
|
|
4354
|
+
href: "/",
|
|
4355
|
+
...props,
|
|
4356
|
+
children: [
|
|
4357
|
+
defaultLogo,
|
|
4358
|
+
children
|
|
4359
|
+
]
|
|
4360
|
+
}
|
|
4361
|
+
)
|
|
4362
|
+
}
|
|
4363
|
+
);
|
|
4364
|
+
}
|
|
4365
|
+
);
|
|
4366
|
+
NavigationLogo.displayName = "NavigationLogo";
|
|
4367
|
+
const NavigationMenu = React.forwardRef(
|
|
4368
|
+
({ className, children, ...props }, ref) => {
|
|
4369
|
+
const { registerTrays } = useNavigation();
|
|
4370
|
+
React.useEffect(() => {
|
|
4371
|
+
const trayElements = React.Children.toArray(children).filter(
|
|
4372
|
+
(child) => React.isValidElement(child) && child.type === NavigationTray
|
|
4373
|
+
).map((child, index) => {
|
|
4374
|
+
if (React.isValidElement(child)) {
|
|
4375
|
+
return React.cloneElement(
|
|
4376
|
+
child,
|
|
4377
|
+
{
|
|
4378
|
+
_index: index + 1,
|
|
4379
|
+
_renderTriggerOnly: false
|
|
4380
|
+
}
|
|
4381
|
+
);
|
|
4382
|
+
}
|
|
4383
|
+
return child;
|
|
4384
|
+
});
|
|
4385
|
+
registerTrays(trayElements);
|
|
4386
|
+
}, [children, registerTrays]);
|
|
4387
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn("navigation-menu", className), ...props, children: /* @__PURE__ */ jsx("ul", { className: "navigation-menu__list", children: React.Children.map(children, (child, index) => {
|
|
4388
|
+
if (React.isValidElement(child) && child.type === NavigationTray) {
|
|
4389
|
+
return React.cloneElement(
|
|
4390
|
+
child,
|
|
4391
|
+
{
|
|
4392
|
+
_index: index + 1,
|
|
4393
|
+
_renderTriggerOnly: true
|
|
4394
|
+
}
|
|
4395
|
+
);
|
|
4396
|
+
}
|
|
4397
|
+
return child;
|
|
4398
|
+
}) }) });
|
|
4399
|
+
}
|
|
4400
|
+
);
|
|
4401
|
+
NavigationMenu.displayName = "NavigationMenu";
|
|
4402
|
+
const NavigationTray = React.forwardRef(
|
|
4938
4403
|
({
|
|
4939
|
-
icon,
|
|
4940
|
-
badge,
|
|
4941
|
-
title,
|
|
4942
|
-
titleClassName,
|
|
4943
|
-
rightContent,
|
|
4944
|
-
onClick,
|
|
4945
4404
|
className,
|
|
4946
|
-
|
|
4405
|
+
trigger,
|
|
4406
|
+
title,
|
|
4407
|
+
children,
|
|
4408
|
+
_index,
|
|
4409
|
+
_renderTriggerOnly,
|
|
4947
4410
|
...props
|
|
4948
4411
|
}, ref) => {
|
|
4949
|
-
|
|
4950
|
-
|
|
4412
|
+
const { light, activeIndex, setActiveIndex, setIsOpen } = useNavigation();
|
|
4413
|
+
const isActive = activeIndex === _index;
|
|
4414
|
+
const handleMouseEnter = () => {
|
|
4415
|
+
setIsOpen(true);
|
|
4416
|
+
setActiveIndex(_index ?? null);
|
|
4417
|
+
};
|
|
4418
|
+
if (_renderTriggerOnly) {
|
|
4419
|
+
return /* @__PURE__ */ jsxs("li", { className: "navigation-tray-trigger", onMouseEnter: handleMouseEnter, children: [
|
|
4420
|
+
/* @__PURE__ */ jsx(
|
|
4421
|
+
"span",
|
|
4422
|
+
{
|
|
4423
|
+
className: cn(
|
|
4424
|
+
"body-small navigation-tray-trigger__text",
|
|
4425
|
+
light ? "navigation-tray-trigger__text--light" : "navigation-tray-trigger__text--dark"
|
|
4426
|
+
),
|
|
4427
|
+
children: trigger
|
|
4428
|
+
}
|
|
4429
|
+
),
|
|
4430
|
+
isActive && /* @__PURE__ */ jsx(
|
|
4431
|
+
motion.div,
|
|
4432
|
+
{
|
|
4433
|
+
className: "navigation-tray-trigger__indicator",
|
|
4434
|
+
layoutId: "nav-underline",
|
|
4435
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
4436
|
+
children: /* @__PURE__ */ jsx("div", { className: "navigation-tray-trigger__indicator-shape" })
|
|
4437
|
+
}
|
|
4438
|
+
),
|
|
4439
|
+
_index === 1 && !light && /* @__PURE__ */ jsx("div", { className: "navigation-tray-trigger__static-indicator", children: /* @__PURE__ */ jsx("div", { className: "navigation-tray-trigger__static-indicator-shape" }) })
|
|
4440
|
+
] });
|
|
4441
|
+
}
|
|
4442
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("navigation-tray", className), ...props, children: [
|
|
4443
|
+
/* @__PURE__ */ jsx(
|
|
4444
|
+
"h2",
|
|
4445
|
+
{
|
|
4446
|
+
className: "heading-xsmall navigation-tray__title",
|
|
4447
|
+
style: {
|
|
4448
|
+
background: "linear-gradient(90deg, #41D5F6 0%, #3EECD1 25%, #66FCD9 50%, #66FCD9 75%, #3EECD1 100%)",
|
|
4449
|
+
WebkitBackgroundClip: "text",
|
|
4450
|
+
WebkitTextFillColor: "transparent",
|
|
4451
|
+
backgroundClip: "text"
|
|
4452
|
+
},
|
|
4453
|
+
children: title
|
|
4454
|
+
}
|
|
4455
|
+
),
|
|
4456
|
+
/* @__PURE__ */ jsx("div", { className: "navigation-tray__content", children })
|
|
4457
|
+
] });
|
|
4458
|
+
}
|
|
4459
|
+
);
|
|
4460
|
+
NavigationTray.displayName = "NavigationTray";
|
|
4461
|
+
const NavigationColumn = React.forwardRef(({ className, title, children, ...props }, ref) => {
|
|
4462
|
+
const { light } = useNavigation();
|
|
4463
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("navigation-column", className), ...props, children: [
|
|
4464
|
+
/* @__PURE__ */ jsx(
|
|
4465
|
+
"h3",
|
|
4951
4466
|
{
|
|
4952
|
-
ref,
|
|
4953
|
-
onClick,
|
|
4954
4467
|
className: cn(
|
|
4955
|
-
"
|
|
4956
|
-
|
|
4957
|
-
className
|
|
4468
|
+
"overline-medium navigation-column__title",
|
|
4469
|
+
light ? "navigation-column__title--light" : "navigation-column__title--dark"
|
|
4958
4470
|
),
|
|
4959
|
-
|
|
4960
|
-
children: [
|
|
4961
|
-
icon,
|
|
4962
|
-
badge,
|
|
4963
|
-
/* @__PURE__ */ jsx(
|
|
4964
|
-
"span",
|
|
4965
|
-
{
|
|
4966
|
-
className: cn(
|
|
4967
|
-
"standard-table-list-row__title",
|
|
4968
|
-
titleClassName || "body-large"
|
|
4969
|
-
),
|
|
4970
|
-
children: title
|
|
4971
|
-
}
|
|
4972
|
-
),
|
|
4973
|
-
rightContent
|
|
4974
|
-
]
|
|
4471
|
+
children: title
|
|
4975
4472
|
}
|
|
4473
|
+
),
|
|
4474
|
+
/* @__PURE__ */ jsx("ul", { className: "navigation-column__list", children })
|
|
4475
|
+
] });
|
|
4476
|
+
});
|
|
4477
|
+
NavigationColumn.displayName = "NavigationColumn";
|
|
4478
|
+
const NavigationLink = React.forwardRef(
|
|
4479
|
+
({ className, asChild, sub, bullet, badge, children, ...props }, ref) => {
|
|
4480
|
+
const { light } = useNavigation();
|
|
4481
|
+
const Comp = asChild ? Slot : "a";
|
|
4482
|
+
const isSubItem = sub || bullet;
|
|
4483
|
+
const baseClassName = isSubItem ? cn(
|
|
4484
|
+
"body-small navigation-link--sub",
|
|
4485
|
+
light ? "navigation-link--sub-light" : "navigation-link--sub-dark"
|
|
4486
|
+
) : cn(
|
|
4487
|
+
"body-base navigation-link",
|
|
4488
|
+
light ? "navigation-link--light" : "navigation-link--dark"
|
|
4489
|
+
);
|
|
4490
|
+
if (isSubItem) {
|
|
4491
|
+
const bulletElement = bullet ? /* @__PURE__ */ jsx(NavBullet, { color: bullet }) : /* @__PURE__ */ jsx("div", { className: "navigation-link__bullet" });
|
|
4492
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "navigation-link__container", children: [
|
|
4493
|
+
bulletElement,
|
|
4494
|
+
/* @__PURE__ */ jsx(Comp, { ref, className: cn(baseClassName, className), ...props, children })
|
|
4495
|
+
] }) });
|
|
4496
|
+
}
|
|
4497
|
+
const linkClassName = cn(
|
|
4498
|
+
baseClassName,
|
|
4499
|
+
badge && "navigation-link__badge-wrapper",
|
|
4500
|
+
className
|
|
4976
4501
|
);
|
|
4502
|
+
if (badge) {
|
|
4503
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("span", { className: "navigation-link__badge-wrapper", children: [
|
|
4504
|
+
/* @__PURE__ */ jsx(Comp, { ref, className: cn(baseClassName, className), ...props, children }),
|
|
4505
|
+
/* @__PURE__ */ jsx("span", { className: "overline-small navigation-link__badge", children: badge })
|
|
4506
|
+
] }) });
|
|
4507
|
+
}
|
|
4508
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Comp, { ref, className: linkClassName, ...props, children }) });
|
|
4977
4509
|
}
|
|
4978
4510
|
);
|
|
4979
|
-
|
|
4980
|
-
const
|
|
4511
|
+
NavigationLink.displayName = "NavigationLink";
|
|
4512
|
+
const NavigationActions = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
4513
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn("navigation-actions", className), ...props, children });
|
|
4514
|
+
});
|
|
4515
|
+
NavigationActions.displayName = "NavigationActions";
|
|
4516
|
+
const NavigationAccount = React.forwardRef(({ className, asChild, children, ...props }, ref) => {
|
|
4517
|
+
const { light } = useNavigation();
|
|
4518
|
+
const linkClassName = cn(
|
|
4519
|
+
buttonVariants({ size: "icon" }),
|
|
4520
|
+
"navigation-account",
|
|
4521
|
+
light && "navigation-account--light",
|
|
4522
|
+
className
|
|
4523
|
+
);
|
|
4524
|
+
const defaultIcon = /* @__PURE__ */ jsx(
|
|
4525
|
+
NavAccount,
|
|
4526
|
+
{
|
|
4527
|
+
className: light ? "navigation-account__icon--light" : "navigation-account__icon--dark"
|
|
4528
|
+
}
|
|
4529
|
+
);
|
|
4530
|
+
if (asChild && React.isValidElement(children)) {
|
|
4531
|
+
const childElement = children;
|
|
4532
|
+
const hasChildContent = childElement.props.children != null;
|
|
4533
|
+
return /* @__PURE__ */ jsx(Slot, { ref, className: linkClassName, "aria-label": "Account", ...props, children: hasChildContent ? children : React.cloneElement(childElement, {}, defaultIcon) });
|
|
4534
|
+
}
|
|
4981
4535
|
return /* @__PURE__ */ jsx(
|
|
4982
|
-
"
|
|
4536
|
+
"a",
|
|
4983
4537
|
{
|
|
4984
4538
|
ref,
|
|
4985
|
-
className:
|
|
4539
|
+
className: linkClassName,
|
|
4540
|
+
"aria-label": "Account",
|
|
4541
|
+
href: "/account",
|
|
4986
4542
|
...props,
|
|
4987
|
-
children
|
|
4543
|
+
children: children || defaultIcon
|
|
4988
4544
|
}
|
|
4989
4545
|
);
|
|
4990
4546
|
});
|
|
4991
|
-
|
|
4547
|
+
NavigationAccount.displayName = "NavigationAccount";
|
|
4992
4548
|
const Toaster = ({ ...props }) => {
|
|
4993
4549
|
const { theme = "system" } = useTheme();
|
|
4994
4550
|
return /* @__PURE__ */ jsx(
|
|
@@ -9371,9 +8927,83 @@ const X = ({ className = "", color = "#71747D" }) => {
|
|
|
9371
8927
|
}
|
|
9372
8928
|
);
|
|
9373
8929
|
};
|
|
9374
|
-
const
|
|
9375
|
-
|
|
9376
|
-
|
|
8930
|
+
const StandardLogo = ({
|
|
8931
|
+
className = "",
|
|
8932
|
+
dark = false
|
|
8933
|
+
}) => {
|
|
8934
|
+
return /* @__PURE__ */ jsxs(
|
|
8935
|
+
"svg",
|
|
8936
|
+
{
|
|
8937
|
+
width: "93",
|
|
8938
|
+
height: "18",
|
|
8939
|
+
viewBox: "0 0 93 18",
|
|
8940
|
+
fill: "none",
|
|
8941
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8942
|
+
className: cn(dark ? "text-gray-700" : "text-white", className),
|
|
8943
|
+
children: [
|
|
8944
|
+
/* @__PURE__ */ jsx(
|
|
8945
|
+
"path",
|
|
8946
|
+
{
|
|
8947
|
+
d: "M87.4833 17.1541C84.5265 17.1541 82.2737 14.8309 82.2737 11.7333C82.2737 8.63573 84.5265 6.31253 87.4833 6.31253C89.4779 6.31253 91.1675 7.36853 92.0358 9.0112V0.281599C92.0358 0.117333 92.1531 0 92.3174 0H92.599C92.7633 0 92.8806 0.117333 92.8806 0.281599V16.7317C92.8806 16.896 92.7633 17.0133 92.599 17.0133H92.3174C92.1531 17.0133 92.0358 16.896 92.0358 16.7317V14.4555C91.1675 16.0981 89.4779 17.1541 87.4833 17.1541ZM87.5771 7.1808C85.0662 7.1808 83.1419 9.12853 83.1419 11.7333C83.1419 14.3381 85.0662 16.3093 87.5771 16.3093C90.0881 16.3093 91.9889 14.3381 91.9889 11.7333C91.9889 9.12853 90.0881 7.1808 87.5771 7.1808Z",
|
|
8948
|
+
fill: "currentColor"
|
|
8949
|
+
}
|
|
8950
|
+
),
|
|
8951
|
+
/* @__PURE__ */ jsx(
|
|
8952
|
+
"path",
|
|
8953
|
+
{
|
|
8954
|
+
d: "M75.8349 17.0133C75.6706 17.0133 75.5298 16.896 75.5298 16.7317V6.73493C75.5298 6.57067 75.6706 6.45333 75.8349 6.45333H76.1165C76.2807 6.45333 76.3981 6.57067 76.3981 6.73493V8.63573C76.8674 7.8144 78.0642 6.4064 80.7629 6.31253C80.9037 6.31253 81.0445 6.42987 81.0445 6.59413V6.94613C81.0445 7.1104 80.9271 7.20427 80.7629 7.20427C80.6925 7.1808 80.6455 7.1808 80.5751 7.1808C78.2285 7.1808 76.3981 8.77653 76.3981 10.8885V16.7317C76.3981 16.896 76.2807 17.0133 76.1165 17.0133H75.8349Z",
|
|
8955
|
+
fill: "currentColor"
|
|
8956
|
+
}
|
|
8957
|
+
),
|
|
8958
|
+
/* @__PURE__ */ jsx(
|
|
8959
|
+
"path",
|
|
8960
|
+
{
|
|
8961
|
+
d: "M66.4457 17.1541C63.4889 17.1541 61.2361 14.8309 61.2361 11.7333C61.2361 8.63573 63.4889 6.31253 66.4457 6.31253C68.4403 6.31253 70.13 7.36853 70.9982 9.0112V6.73493C70.9982 6.57067 71.1156 6.45333 71.2798 6.45333H71.5849C71.7257 6.45333 71.8665 6.57067 71.8665 6.73493V16.7317C71.8665 16.896 71.7257 17.0133 71.5849 17.0133H71.2798C71.1156 17.0133 70.9982 16.896 70.9982 16.7317V14.4555C70.13 16.0981 68.4403 17.1541 66.4457 17.1541ZM66.5396 7.1808C64.0286 7.1808 62.1044 9.12853 62.1044 11.7333C62.1044 14.3381 64.0286 16.3093 66.5396 16.3093C69.0505 16.3093 70.9513 14.3381 70.9513 11.7333C70.9513 9.12853 69.0505 7.1808 66.5396 7.1808Z",
|
|
8962
|
+
fill: "currentColor"
|
|
8963
|
+
}
|
|
8964
|
+
),
|
|
8965
|
+
/* @__PURE__ */ jsx(
|
|
8966
|
+
"path",
|
|
8967
|
+
{
|
|
8968
|
+
d: "M52.8561 17.1541C49.8993 17.1541 47.6465 14.8309 47.6465 11.7333C47.6465 8.63573 49.8993 6.31253 52.8561 6.31253C54.8507 6.31253 56.5404 7.36853 57.4086 9.0112V0.281599C57.4086 0.117333 57.526 0 57.6902 0H57.9718C58.1361 0 58.2534 0.117333 58.2534 0.281599V16.7317C58.2534 16.896 58.1361 17.0133 57.9718 17.0133H57.6902C57.526 17.0133 57.4086 16.896 57.4086 16.7317V14.4555C56.5404 16.0981 54.8507 17.1541 52.8561 17.1541ZM52.95 7.1808C50.439 7.1808 48.5148 9.12853 48.5148 11.7333C48.5148 14.3381 50.439 16.3093 52.95 16.3093C55.4609 16.3093 57.3617 14.3381 57.3617 11.7333C57.3617 9.12853 55.4609 7.1808 52.95 7.1808Z",
|
|
8969
|
+
fill: "currentColor"
|
|
8970
|
+
}
|
|
8971
|
+
),
|
|
8972
|
+
/* @__PURE__ */ jsx(
|
|
8973
|
+
"path",
|
|
8974
|
+
{
|
|
8975
|
+
d: "M35.5473 17.0133C35.383 17.0133 35.2422 16.896 35.2422 16.7317V6.73493C35.2422 6.57067 35.383 6.45333 35.5473 6.45333H35.8289C35.9931 6.45333 36.1105 6.57067 36.1105 6.73493V8.75307C36.5329 7.90827 37.7297 6.31253 40.4518 6.31253C42.9393 6.31253 44.7697 8.14293 44.7697 10.6304V16.7317C44.7697 16.896 44.6523 17.0133 44.4881 17.0133H44.2065C44.0422 17.0133 43.9249 16.896 43.9249 16.7317V10.7712C43.9249 8.70613 42.3526 7.13387 40.2875 7.13387C37.9409 7.13387 36.1105 8.75307 36.1105 10.8416V16.7317C36.1105 16.896 35.9931 17.0133 35.8289 17.0133H35.5473Z",
|
|
8976
|
+
fill: "currentColor"
|
|
8977
|
+
}
|
|
8978
|
+
),
|
|
8979
|
+
/* @__PURE__ */ jsx(
|
|
8980
|
+
"path",
|
|
8981
|
+
{
|
|
8982
|
+
d: "M26.1583 17.1541C23.2015 17.1541 20.9487 14.8309 20.9487 11.7333C20.9487 8.63573 23.2015 6.31253 26.1583 6.31253C28.153 6.31253 29.8426 7.36853 30.7109 9.0112V6.73493C30.7109 6.57067 30.8282 6.45333 30.9925 6.45333H31.2975C31.4383 6.45333 31.5791 6.57067 31.5791 6.73493V16.7317C31.5791 16.896 31.4383 17.0133 31.2975 17.0133H30.9925C30.8282 17.0133 30.7109 16.896 30.7109 16.7317V14.4555C29.8426 16.0981 28.153 17.1541 26.1583 17.1541ZM26.2522 7.1808C23.7413 7.1808 21.817 9.12853 21.817 11.7333C21.817 14.3381 23.7413 16.3093 26.2522 16.3093C28.7631 16.3093 30.6639 14.3381 30.6639 11.7333C30.6639 9.12853 28.7631 7.1808 26.2522 7.1808Z",
|
|
8983
|
+
fill: "currentColor"
|
|
8984
|
+
}
|
|
8985
|
+
),
|
|
8986
|
+
/* @__PURE__ */ jsx(
|
|
8987
|
+
"path",
|
|
8988
|
+
{
|
|
8989
|
+
d: "M13.285 7.2512C13.1208 7.2512 13.0034 7.13387 13.0034 6.9696V6.73493C13.0034 6.57067 13.1208 6.45333 13.285 6.45333H14.9277V4.41173C14.9277 4.24747 15.045 4.13013 15.2093 4.13013H15.4909C15.6552 4.13013 15.7725 4.24747 15.7725 4.41173V6.45333H18.7997C18.964 6.45333 19.0813 6.57067 19.0813 6.73493V6.9696C19.0813 7.13387 18.964 7.2512 18.7997 7.2512H15.7725V14.08C15.7725 15.2768 16.5234 16.1685 17.5325 16.1685H18.7762C18.9405 16.1685 19.0578 16.2859 19.0578 16.4501V16.7317C19.0578 16.896 18.9405 17.0133 18.7762 17.0133H17.4856C16.0306 17.0133 14.9277 15.7696 14.9277 14.1504V7.2512H13.285Z",
|
|
8990
|
+
fill: "currentColor"
|
|
8991
|
+
}
|
|
8992
|
+
),
|
|
8993
|
+
/* @__PURE__ */ jsx(
|
|
8994
|
+
"path",
|
|
8995
|
+
{
|
|
8996
|
+
d: "M9.84461 4.576C9.46915 3.0272 7.73262 1.9008 5.55022 1.9008C3.10968 1.9008 1.25581 3.28533 1.25581 5.2096C1.25581 7.29813 3.46168 7.90827 5.83182 8.47147C8.38968 9.0112 11.1587 9.83253 11.1587 12.6955C11.1587 15.3237 8.78862 17.1776 5.59715 17.1776C2.73422 17.1776 0.551815 15.6992 0.0120816 13.6576C-0.0348519 13.5168 0.0590148 13.376 0.223281 13.3291L0.598748 13.1883C0.622215 13.1883 0.645682 13.1883 0.645682 13.1883C0.763015 13.1883 0.856881 13.2587 0.903815 13.376C1.32621 15.0656 3.18008 16.2859 5.59715 16.2859C8.24888 16.2859 10.2435 14.8075 10.2435 12.7424C10.2435 10.6069 8.08462 9.90294 5.64408 9.38667C3.20355 8.82347 0.364081 8.07253 0.364081 5.23307C0.364081 2.7456 2.54648 1.03253 5.52675 1.03253C8.17848 1.03253 10.2201 2.3936 10.7598 4.2944C10.8067 4.4352 10.7129 4.576 10.5486 4.62294L10.1497 4.76373C10.0323 4.7872 9.91501 4.7168 9.84461 4.576Z",
|
|
8997
|
+
fill: "currentColor"
|
|
8998
|
+
}
|
|
8999
|
+
)
|
|
9000
|
+
]
|
|
9001
|
+
}
|
|
9002
|
+
);
|
|
9003
|
+
};
|
|
9004
|
+
const ALPHA_PATH$1 = "M5.3387 0.0229882C5.37971 0.0229882 5.45295 0.0199228 5.5584 0.0137925C5.66386 0.00459714 5.74442 0 5.80007 0C6.72867 0 7.49908 0.269732 8.11131 0.809196C8.72354 1.34559 9.14097 2.09195 9.3636 3.04828C9.44855 3.47433 9.49835 3.96628 9.513 4.52414V5.16782C10.2014 4.07663 10.7287 2.85517 11.0948 1.50345C11.1505 1.29808 11.1959 1.17701 11.2311 1.14023C11.2662 1.10345 11.3761 1.08506 11.5606 1.08506C11.8535 1.08506 12 1.13563 12 1.23678C12 1.25211 11.9722 1.37778 11.9165 1.61379C11.5093 3.24751 10.7931 4.77701 9.76785 6.2023L9.53497 6.51034L9.55694 7.04368C9.59795 8.23295 9.72391 8.9318 9.93482 9.14023C9.97583 9.16782 10.0388 9.18161 10.1238 9.18161C10.32 9.15402 10.5031 9.06973 10.673 8.92874C10.8429 8.78774 10.963 8.62222 11.0333 8.43218C11.0597 8.32797 11.0948 8.26513 11.1388 8.24368C11.1798 8.22222 11.2852 8.21149 11.4551 8.21149C11.7364 8.21149 11.877 8.27739 11.877 8.40919C11.877 8.49808 11.8345 8.63142 11.7495 8.8092C11.5943 9.13103 11.3687 9.4069 11.0729 9.63678C10.777 9.8636 10.4475 9.97701 10.0842 9.97701H9.93482C8.97986 9.97701 8.3398 9.44674 8.01465 8.38621L7.95313 8.23448C7.20615 8.74942 6.79165 9.02835 6.70963 9.07126C5.66679 9.69042 4.61809 10 3.56353 10C2.56756 10 1.76346 9.70575 1.15123 9.11724C0.538997 8.52874 0.162578 7.75632 0.02197 6.8C0.0073233 6.71111 0 6.54866 0 6.31264C0 5.9295 0.02197 5.62146 0.0659099 5.38851C0.276822 4.06437 0.887587 2.8751 1.89821 1.82069C2.91175 0.769348 4.05859 0.170115 5.3387 0.0229882ZM1.83669 7.10805C1.83669 7.73946 1.9978 8.24368 2.32003 8.62069C2.64518 8.99464 3.09484 9.18161 3.66899 9.18161C4.03515 9.18161 4.44379 9.12337 4.89491 9.0069C5.6829 8.80153 6.44892 8.4046 7.19297 7.81609C7.29257 7.74253 7.38777 7.66437 7.47858 7.58161C7.56939 7.50192 7.64262 7.43295 7.69828 7.37471L7.78176 7.28276L7.76419 7.08506C7.76419 6.95326 7.75979 6.75862 7.75101 6.50115C7.74515 6.24368 7.74222 5.98927 7.74222 5.73793C7.72757 5.18008 7.71732 4.74636 7.71146 4.43678C7.70267 4.1272 7.67338 3.74866 7.62358 3.30115C7.57671 2.85364 7.5108 2.50728 7.42585 2.26207C7.3409 2.01992 7.22519 1.77471 7.07873 1.52644C6.92933 1.2751 6.73892 1.09425 6.50751 0.983908C6.27609 0.873563 6.00513 0.81839 5.69462 0.81839C4.72501 0.81839 3.87404 1.35479 3.14171 2.42759C2.79019 2.97318 2.49579 3.71647 2.25851 4.65747C1.9773 5.73333 1.83669 6.55019 1.83669 7.10805Z";
|
|
9005
|
+
const PATH_LENGTH$1 = 60;
|
|
9006
|
+
const AlphaIcon$1 = ({ dark }) => {
|
|
9377
9007
|
if (dark) {
|
|
9378
9008
|
return /* @__PURE__ */ jsx(
|
|
9379
9009
|
"svg",
|
|
@@ -9385,7 +9015,7 @@ const AlphaIcon = ({ dark }) => {
|
|
|
9385
9015
|
fill: "none",
|
|
9386
9016
|
className: "mt-1.5",
|
|
9387
9017
|
style: { overflow: "visible" },
|
|
9388
|
-
children: /* @__PURE__ */ jsx("path", { d: ALPHA_PATH, fill: "currentColor" })
|
|
9018
|
+
children: /* @__PURE__ */ jsx("path", { d: ALPHA_PATH$1, fill: "currentColor" })
|
|
9389
9019
|
}
|
|
9390
9020
|
);
|
|
9391
9021
|
}
|
|
@@ -9403,7 +9033,7 @@ const AlphaIcon = ({ dark }) => {
|
|
|
9403
9033
|
/* @__PURE__ */ jsx(
|
|
9404
9034
|
"path",
|
|
9405
9035
|
{
|
|
9406
|
-
d: ALPHA_PATH,
|
|
9036
|
+
d: ALPHA_PATH$1,
|
|
9407
9037
|
fill: "url(#paint0_linear_10081_30848)",
|
|
9408
9038
|
opacity: "0.4"
|
|
9409
9039
|
}
|
|
@@ -9411,15 +9041,15 @@ const AlphaIcon = ({ dark }) => {
|
|
|
9411
9041
|
/* @__PURE__ */ jsx(
|
|
9412
9042
|
motion.path,
|
|
9413
9043
|
{
|
|
9414
|
-
d: ALPHA_PATH,
|
|
9044
|
+
d: ALPHA_PATH$1,
|
|
9415
9045
|
fill: "none",
|
|
9416
9046
|
stroke: "url(#stroke_gradient)",
|
|
9417
9047
|
strokeWidth: "0.4",
|
|
9418
9048
|
strokeLinecap: "round",
|
|
9419
9049
|
strokeLinejoin: "round",
|
|
9420
|
-
initial: { strokeDashoffset: PATH_LENGTH },
|
|
9421
|
-
animate: { strokeDashoffset: -PATH_LENGTH },
|
|
9422
|
-
style: { strokeDasharray: `8 ${PATH_LENGTH - 8}` },
|
|
9050
|
+
initial: { strokeDashoffset: PATH_LENGTH$1 },
|
|
9051
|
+
animate: { strokeDashoffset: -PATH_LENGTH$1 },
|
|
9052
|
+
style: { strokeDasharray: `8 ${PATH_LENGTH$1 - 8}` },
|
|
9423
9053
|
transition: {
|
|
9424
9054
|
duration: 2,
|
|
9425
9055
|
repeat: Infinity,
|
|
@@ -9518,7 +9148,7 @@ const StandardNavigation = ({
|
|
|
9518
9148
|
};
|
|
9519
9149
|
}
|
|
9520
9150
|
}, [isUserDropdownOpen]);
|
|
9521
|
-
const
|
|
9151
|
+
const NavLink = ({ href, className, "aria-label": ariaLabel, children }) => {
|
|
9522
9152
|
if (LinkComponent) {
|
|
9523
9153
|
return /* @__PURE__ */ jsx(LinkComponent, { href, className, "aria-label": ariaLabel, children });
|
|
9524
9154
|
}
|
|
@@ -9548,7 +9178,7 @@ const StandardNavigation = ({
|
|
|
9548
9178
|
return /* @__PURE__ */ jsxs("div", { className: "navigation-tray-bullet-item", children: [
|
|
9549
9179
|
link.bulletColor && link.bulletColor !== "" ? /* @__PURE__ */ jsx(NavBullet, { color: link.bulletColor }) : /* @__PURE__ */ jsx("div", { className: "navigation-tray-bullet" }),
|
|
9550
9180
|
/* @__PURE__ */ jsx(
|
|
9551
|
-
|
|
9181
|
+
NavLink,
|
|
9552
9182
|
{
|
|
9553
9183
|
href,
|
|
9554
9184
|
className: "navigation-tray-link-small",
|
|
@@ -9559,7 +9189,7 @@ const StandardNavigation = ({
|
|
|
9559
9189
|
}
|
|
9560
9190
|
if (hasBadge) {
|
|
9561
9191
|
return /* @__PURE__ */ jsxs(
|
|
9562
|
-
|
|
9192
|
+
NavLink,
|
|
9563
9193
|
{
|
|
9564
9194
|
href,
|
|
9565
9195
|
className: "navigation-tray-link navigation-tray-link--with-badge",
|
|
@@ -9571,7 +9201,7 @@ const StandardNavigation = ({
|
|
|
9571
9201
|
);
|
|
9572
9202
|
}
|
|
9573
9203
|
return /* @__PURE__ */ jsx(
|
|
9574
|
-
|
|
9204
|
+
NavLink,
|
|
9575
9205
|
{
|
|
9576
9206
|
href,
|
|
9577
9207
|
className: isSmall ? "navigation-tray-link-small" : "navigation-tray-link",
|
|
@@ -9655,7 +9285,7 @@ const StandardNavigation = ({
|
|
|
9655
9285
|
}
|
|
9656
9286
|
) : null,
|
|
9657
9287
|
/* @__PURE__ */ jsx(
|
|
9658
|
-
|
|
9288
|
+
NavLink,
|
|
9659
9289
|
{
|
|
9660
9290
|
href: "/",
|
|
9661
9291
|
className: cn(
|
|
@@ -9667,7 +9297,7 @@ const StandardNavigation = ({
|
|
|
9667
9297
|
children: Logo ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9668
9298
|
/* @__PURE__ */ jsx(NavLogo, { dark: isStrategy }),
|
|
9669
9299
|
/* @__PURE__ */ jsx(StandardLogo, { className: cn(!isStrategy ? "text-white" : "text-black") }),
|
|
9670
|
-
/* @__PURE__ */ jsx(AlphaIcon, { dark: isStrategy })
|
|
9300
|
+
/* @__PURE__ */ jsx(AlphaIcon$1, { dark: isStrategy })
|
|
9671
9301
|
] }) : null
|
|
9672
9302
|
}
|
|
9673
9303
|
)
|
|
@@ -9678,7 +9308,7 @@ const StandardNavigation = ({
|
|
|
9678
9308
|
className: "navigation-nav-item",
|
|
9679
9309
|
onMouseEnter: () => handleNavItemMouseEnter(index),
|
|
9680
9310
|
children: [
|
|
9681
|
-
item.href ? /* @__PURE__ */ jsx(
|
|
9311
|
+
item.href ? /* @__PURE__ */ jsx(NavLink, { href: item.href, className: "navigation-nav-link", children: item.label }) : /* @__PURE__ */ jsx("span", { className: "navigation-nav-link", children: item.label }),
|
|
9682
9312
|
activeItem === index + 1 && /* @__PURE__ */ jsx(
|
|
9683
9313
|
motion.div,
|
|
9684
9314
|
{
|
|
@@ -9754,7 +9384,7 @@ const StandardNavigation = ({
|
|
|
9754
9384
|
) : /* @__PURE__ */ jsx("div", { className: "navigation-account-icon-placeholder", children: "User" })
|
|
9755
9385
|
}
|
|
9756
9386
|
) : /* @__PURE__ */ jsx(
|
|
9757
|
-
|
|
9387
|
+
NavLink,
|
|
9758
9388
|
{
|
|
9759
9389
|
href: "/",
|
|
9760
9390
|
"aria-label": "Account link",
|
|
@@ -9792,6 +9422,94 @@ const StandardNavigation = ({
|
|
|
9792
9422
|
}
|
|
9793
9423
|
);
|
|
9794
9424
|
};
|
|
9425
|
+
const ALPHA_PATH = "M5.3387 0.0229882C5.37971 0.0229882 5.45295 0.0199228 5.5584 0.0137925C5.66386 0.00459714 5.74442 0 5.80007 0C6.72867 0 7.49908 0.269732 8.11131 0.809196C8.72354 1.34559 9.14097 2.09195 9.3636 3.04828C9.44855 3.47433 9.49835 3.96628 9.513 4.52414V5.16782C10.2014 4.07663 10.7287 2.85517 11.0948 1.50345C11.1505 1.29808 11.1959 1.17701 11.2311 1.14023C11.2662 1.10345 11.3761 1.08506 11.5606 1.08506C11.8535 1.08506 12 1.13563 12 1.23678C12 1.25211 11.9722 1.37778 11.9165 1.61379C11.5093 3.24751 10.7931 4.77701 9.76785 6.2023L9.53497 6.51034L9.55694 7.04368C9.59795 8.23295 9.72391 8.9318 9.93482 9.14023C9.97583 9.16782 10.0388 9.18161 10.1238 9.18161C10.32 9.15402 10.5031 9.06973 10.673 8.92874C10.8429 8.78774 10.963 8.62222 11.0333 8.43218C11.0597 8.32797 11.0948 8.26513 11.1388 8.24368C11.1798 8.22222 11.2852 8.21149 11.4551 8.21149C11.7364 8.21149 11.877 8.27739 11.877 8.40919C11.877 8.49808 11.8345 8.63142 11.7495 8.8092C11.5943 9.13103 11.3687 9.4069 11.0729 9.63678C10.777 9.8636 10.4475 9.97701 10.0842 9.97701H9.93482C8.97986 9.97701 8.3398 9.44674 8.01465 8.38621L7.95313 8.23448C7.20615 8.74942 6.79165 9.02835 6.70963 9.07126C5.66679 9.69042 4.61809 10 3.56353 10C2.56756 10 1.76346 9.70575 1.15123 9.11724C0.538997 8.52874 0.162578 7.75632 0.02197 6.8C0.0073233 6.71111 0 6.54866 0 6.31264C0 5.9295 0.02197 5.62146 0.0659099 5.38851C0.276822 4.06437 0.887587 2.8751 1.89821 1.82069C2.91175 0.769348 4.05859 0.170115 5.3387 0.0229882ZM1.83669 7.10805C1.83669 7.73946 1.9978 8.24368 2.32003 8.62069C2.64518 8.99464 3.09484 9.18161 3.66899 9.18161C4.03515 9.18161 4.44379 9.12337 4.89491 9.0069C5.6829 8.80153 6.44892 8.4046 7.19297 7.81609C7.29257 7.74253 7.38777 7.66437 7.47858 7.58161C7.56939 7.50192 7.64262 7.43295 7.69828 7.37471L7.78176 7.28276L7.76419 7.08506C7.76419 6.95326 7.75979 6.75862 7.75101 6.50115C7.74515 6.24368 7.74222 5.98927 7.74222 5.73793C7.72757 5.18008 7.71732 4.74636 7.71146 4.43678C7.70267 4.1272 7.67338 3.74866 7.62358 3.30115C7.57671 2.85364 7.5108 2.50728 7.42585 2.26207C7.3409 2.01992 7.22519 1.77471 7.07873 1.52644C6.92933 1.2751 6.73892 1.09425 6.50751 0.983908C6.27609 0.873563 6.00513 0.81839 5.69462 0.81839C4.72501 0.81839 3.87404 1.35479 3.14171 2.42759C2.79019 2.97318 2.49579 3.71647 2.25851 4.65747C1.9773 5.73333 1.83669 6.55019 1.83669 7.10805Z";
|
|
9426
|
+
const PATH_LENGTH = 60;
|
|
9427
|
+
function AlphaIcon({ dark = false }) {
|
|
9428
|
+
if (dark) {
|
|
9429
|
+
return /* @__PURE__ */ jsx(
|
|
9430
|
+
"svg",
|
|
9431
|
+
{
|
|
9432
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9433
|
+
width: "12",
|
|
9434
|
+
height: "10",
|
|
9435
|
+
viewBox: "0 0 12 10",
|
|
9436
|
+
fill: "none",
|
|
9437
|
+
className: "mt-1.5",
|
|
9438
|
+
style: { overflow: "visible" },
|
|
9439
|
+
children: /* @__PURE__ */ jsx("path", { d: ALPHA_PATH, fill: "currentColor" })
|
|
9440
|
+
}
|
|
9441
|
+
);
|
|
9442
|
+
}
|
|
9443
|
+
return /* @__PURE__ */ jsxs(
|
|
9444
|
+
"svg",
|
|
9445
|
+
{
|
|
9446
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9447
|
+
width: "12",
|
|
9448
|
+
height: "10",
|
|
9449
|
+
viewBox: "0 0 12 10",
|
|
9450
|
+
fill: "none",
|
|
9451
|
+
className: "mt-1.5",
|
|
9452
|
+
style: { overflow: "visible" },
|
|
9453
|
+
children: [
|
|
9454
|
+
/* @__PURE__ */ jsx("path", { d: ALPHA_PATH, fill: "url(#paint0_linear_nav)", opacity: "0.4" }),
|
|
9455
|
+
/* @__PURE__ */ jsx(
|
|
9456
|
+
motion.path,
|
|
9457
|
+
{
|
|
9458
|
+
d: ALPHA_PATH,
|
|
9459
|
+
fill: "none",
|
|
9460
|
+
stroke: "url(#stroke_gradient_nav)",
|
|
9461
|
+
strokeWidth: "0.4",
|
|
9462
|
+
strokeLinecap: "round",
|
|
9463
|
+
strokeLinejoin: "round",
|
|
9464
|
+
initial: { strokeDashoffset: PATH_LENGTH },
|
|
9465
|
+
animate: { strokeDashoffset: -PATH_LENGTH },
|
|
9466
|
+
style: { strokeDasharray: `8 ${PATH_LENGTH - 8}` },
|
|
9467
|
+
transition: {
|
|
9468
|
+
duration: 2,
|
|
9469
|
+
repeat: Infinity,
|
|
9470
|
+
repeatDelay: 8,
|
|
9471
|
+
ease: "linear"
|
|
9472
|
+
}
|
|
9473
|
+
}
|
|
9474
|
+
),
|
|
9475
|
+
/* @__PURE__ */ jsxs("defs", { children: [
|
|
9476
|
+
/* @__PURE__ */ jsxs(
|
|
9477
|
+
"linearGradient",
|
|
9478
|
+
{
|
|
9479
|
+
id: "paint0_linear_nav",
|
|
9480
|
+
x1: "-3.27254",
|
|
9481
|
+
y1: "4.99923",
|
|
9482
|
+
x2: "6.36738",
|
|
9483
|
+
y2: "-2.36962",
|
|
9484
|
+
gradientUnits: "userSpaceOnUse",
|
|
9485
|
+
children: [
|
|
9486
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#8AEFDB" }),
|
|
9487
|
+
/* @__PURE__ */ jsx("stop", { offset: "0.5", stopColor: "#D4BACE" }),
|
|
9488
|
+
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#CBE0F1" })
|
|
9489
|
+
]
|
|
9490
|
+
}
|
|
9491
|
+
),
|
|
9492
|
+
/* @__PURE__ */ jsxs(
|
|
9493
|
+
"linearGradient",
|
|
9494
|
+
{
|
|
9495
|
+
id: "stroke_gradient_nav",
|
|
9496
|
+
x1: "0",
|
|
9497
|
+
y1: "0",
|
|
9498
|
+
x2: "12",
|
|
9499
|
+
y2: "10",
|
|
9500
|
+
gradientUnits: "userSpaceOnUse",
|
|
9501
|
+
children: [
|
|
9502
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#8AEFDB" }),
|
|
9503
|
+
/* @__PURE__ */ jsx("stop", { offset: "0.5", stopColor: "#D4BACE" }),
|
|
9504
|
+
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#CBE0F1" })
|
|
9505
|
+
]
|
|
9506
|
+
}
|
|
9507
|
+
)
|
|
9508
|
+
] })
|
|
9509
|
+
]
|
|
9510
|
+
}
|
|
9511
|
+
);
|
|
9512
|
+
}
|
|
9795
9513
|
export {
|
|
9796
9514
|
Accordion,
|
|
9797
9515
|
AccordionContent,
|
|
@@ -9809,6 +9527,7 @@ export {
|
|
|
9809
9527
|
AlertDialogTitle,
|
|
9810
9528
|
AlertDialogTrigger,
|
|
9811
9529
|
AlertTitle,
|
|
9530
|
+
AlphaIcon,
|
|
9812
9531
|
AspectRatio,
|
|
9813
9532
|
Avatar,
|
|
9814
9533
|
AvatarFallback,
|
|
@@ -9951,12 +9670,21 @@ export {
|
|
|
9951
9670
|
NavBullet,
|
|
9952
9671
|
NavLogo,
|
|
9953
9672
|
Navigation,
|
|
9673
|
+
NavigationAccount,
|
|
9674
|
+
NavigationActions,
|
|
9675
|
+
NavigationBack,
|
|
9676
|
+
NavigationBrand,
|
|
9677
|
+
NavigationColumn,
|
|
9678
|
+
NavigationLink,
|
|
9679
|
+
NavigationLogo,
|
|
9954
9680
|
NavigationMenu,
|
|
9681
|
+
NavigationMenu$1 as NavigationMenuComponent,
|
|
9955
9682
|
NavigationMenuContent,
|
|
9956
9683
|
NavigationMenuItem,
|
|
9957
9684
|
NavigationMenuLink,
|
|
9958
9685
|
NavigationMenuList,
|
|
9959
9686
|
NavigationMenuTrigger,
|
|
9687
|
+
NavigationTray,
|
|
9960
9688
|
PageHeader,
|
|
9961
9689
|
PageHeaderBadge,
|
|
9962
9690
|
PageHeaderDescription,
|