@plusrouter/ui 0.0.0-stage → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SideNavigation-qz3aib86.js +5974 -0
- package/dist/assets/BASE-LICENSE +25 -0
- package/dist/assets/SpaceGrotesk.LICENSE +93 -0
- package/dist/assets/SpaceGrotesk.ttf +0 -0
- package/dist/assets/UPSTREAM-LICENSE +21 -0
- package/dist/brand.css +204 -0
- package/dist/components.js +3702 -0
- package/dist/index.js +2250 -0
- package/dist/styles.css +20496 -0
- package/dist/tokens.css +179 -0
- package/dist/types/components/Components/AlertDialog/AlertDialog.d.ts +25 -0
- package/dist/types/components/Components/AlertDialog/index.d.ts +1 -0
- package/dist/types/components/Components/AuthCard/AuthCard.d.ts +19 -0
- package/dist/types/components/Components/AuthCard/index.d.ts +1 -0
- package/dist/types/components/Components/BarChart/BarChart.d.ts +7 -0
- package/dist/types/components/Components/BarChart/index.d.ts +1 -0
- package/dist/types/components/Components/Billing/Billing.d.ts +125 -0
- package/dist/types/components/Components/Billing/index.d.ts +1 -0
- package/dist/types/components/Components/Effects/BackgroundCursor.d.ts +16 -0
- package/dist/types/components/Components/Effects/BackgroundDotted.d.ts +2 -0
- package/dist/types/components/Components/Effects/BackgroundLineField.d.ts +9 -0
- package/dist/types/components/Components/Effects/BackgroundPlus.d.ts +8 -0
- package/dist/types/components/Components/Effects/BackgroundSquare.d.ts +6 -0
- package/dist/types/components/Components/Effects/BrandIntro.d.ts +4 -0
- package/dist/types/components/Components/Effects/EffectCard.d.ts +5 -0
- package/dist/types/components/Components/Effects/PlusField.d.ts +4 -0
- package/dist/types/components/Components/Effects/ThemeTransition.d.ts +3 -0
- package/dist/types/components/Components/Effects/blast.d.ts +21 -0
- package/dist/types/components/Components/Effects/useBackgroundField.d.ts +2 -0
- package/dist/types/components/Components/Effects/useLineField.d.ts +2 -0
- package/dist/types/components/Components/Footer/Footer.d.ts +14 -0
- package/dist/types/components/Components/Footer/index.d.ts +1 -0
- package/dist/types/components/Components/Header/Header.d.ts +26 -0
- package/dist/types/components/Components/Header/index.d.ts +2 -0
- package/dist/types/components/Components/Heatmap/Heatmap.d.ts +9 -0
- package/dist/types/components/Components/Heatmap/index.d.ts +1 -0
- package/dist/types/components/Components/MetricStrip/MetricStrip.d.ts +12 -0
- package/dist/types/components/Components/MetricStrip/index.d.ts +1 -0
- package/dist/types/components/Components/Panel/Panel.d.ts +9 -0
- package/dist/types/components/Components/Panel/index.d.ts +1 -0
- package/dist/types/components/Components/Ranking/Ranking.d.ts +15 -0
- package/dist/types/components/Components/Ranking/index.d.ts +1 -0
- package/dist/types/components/Components/RequestTable/RequestTable.d.ts +18 -0
- package/dist/types/components/Components/RequestTable/index.d.ts +1 -0
- package/dist/types/components/Components/SessionShape/SessionShape.d.ts +5 -0
- package/dist/types/components/Components/SessionShape/index.d.ts +1 -0
- package/dist/types/components/Components/Shop/Shop.d.ts +2 -0
- package/dist/types/components/Components/Shop/Shop.types.d.ts +95 -0
- package/dist/types/components/Components/Shop/ShopAccountCard.d.ts +3 -0
- package/dist/types/components/Components/Shop/ShopCard.d.ts +8 -0
- package/dist/types/components/Components/Shop/index.d.ts +4 -0
- package/dist/types/components/Components/Support/Support.d.ts +49 -0
- package/dist/types/components/Components/Support/index.d.ts +2 -0
- package/dist/types/components/Components/UsageList/UsageList.d.ts +5 -0
- package/dist/types/components/Components/UsageList/index.d.ts +1 -0
- package/dist/types/components/Components/Workspace/CustomerDashboard.d.ts +4 -0
- package/dist/types/components/Components/Workspace/Provider.d.ts +24 -0
- package/dist/types/components/Components/Workspace/RouterPlusWorkspace.d.ts +114 -0
- package/dist/types/components/Components/Workspace/WorkspaceIcons.d.ts +248 -0
- package/dist/types/components/Components/index.d.ts +30 -0
- package/dist/types/components/TokensAndAssets/ThemeContext.d.ts +1 -0
- package/dist/types/components/ui/Accordion/Accordion.d.ts +11 -0
- package/dist/types/components/ui/Accordion/index.d.ts +1 -0
- package/dist/types/components/ui/Avatar/Avatar.d.ts +14 -0
- package/dist/types/components/ui/Avatar/index.d.ts +1 -0
- package/dist/types/components/ui/Badge/Badge.d.ts +7 -0
- package/dist/types/components/ui/Badge/index.d.ts +1 -0
- package/dist/types/components/ui/Brand/Brand.d.ts +6 -0
- package/dist/types/components/ui/Brand/index.d.ts +1 -0
- package/dist/types/components/ui/Button/Button.d.ts +10 -0
- package/dist/types/components/ui/Button/index.d.ts +1 -0
- package/dist/types/components/ui/Card/Card.d.ts +7 -0
- package/dist/types/components/ui/Card/index.d.ts +1 -0
- package/dist/types/components/ui/Checkbox/Checkbox.d.ts +10 -0
- package/dist/types/components/ui/Checkbox/Primitive/Checkbox.d.ts +11 -0
- package/dist/types/components/ui/Checkbox/index.d.ts +1 -0
- package/dist/types/components/ui/Collapsible/Collapsible.d.ts +8 -0
- package/dist/types/components/ui/Collapsible/index.d.ts +1 -0
- package/dist/types/components/ui/ContextMenu/ContextMenu.d.ts +21 -0
- package/dist/types/components/ui/ContextMenu/index.d.ts +1 -0
- package/dist/types/components/ui/Dialog/Dialog.d.ts +33 -0
- package/dist/types/components/ui/Dialog/index.d.ts +1 -0
- package/dist/types/components/ui/Drawer/Drawer.d.ts +11 -0
- package/dist/types/components/ui/Drawer/index.d.ts +1 -0
- package/dist/types/components/ui/DropdownMenu/DropdownMenu.d.ts +21 -0
- package/dist/types/components/ui/DropdownMenu/index.d.ts +1 -0
- package/dist/types/components/ui/EmptyState/EmptyState.d.ts +7 -0
- package/dist/types/components/ui/EmptyState/index.d.ts +1 -0
- package/dist/types/components/ui/Field/Field.d.ts +12 -0
- package/dist/types/components/ui/Field/index.d.ts +1 -0
- package/dist/types/components/ui/FilterSelect/FilterSelect.d.ts +14 -0
- package/dist/types/components/ui/FilterSelect/index.d.ts +1 -0
- package/dist/types/components/ui/Form/Form.d.ts +31 -0
- package/dist/types/components/ui/Form/index.d.ts +1 -0
- package/dist/types/components/ui/HoverCard/HoverCard.d.ts +10 -0
- package/dist/types/components/ui/HoverCard/index.d.ts +1 -0
- package/dist/types/components/ui/Icon/Icon.d.ts +36 -0
- package/dist/types/components/ui/Icon/index.d.ts +1 -0
- package/dist/types/components/ui/InfoHeader/InfoHeader.d.ts +14 -0
- package/dist/types/components/ui/InfoHeader/index.d.ts +1 -0
- package/dist/types/components/ui/InfoTooltip/InfoTooltip.d.ts +5 -0
- package/dist/types/components/ui/InfoTooltip/index.d.ts +1 -0
- package/dist/types/components/ui/Input/Input.d.ts +7 -0
- package/dist/types/components/ui/Input/index.d.ts +1 -0
- package/dist/types/components/ui/InputGroup/InputGroup.d.ts +14 -0
- package/dist/types/components/ui/InputGroup/index.d.ts +1 -0
- package/dist/types/components/ui/Label/Label.d.ts +6 -0
- package/dist/types/components/ui/Label/index.d.ts +1 -0
- package/dist/types/components/ui/LegacySlider/Slider.d.ts +16 -0
- package/dist/types/components/ui/LegacySlider/index.d.ts +1 -0
- package/dist/types/components/ui/LegacyTabs/Tabs.d.ts +16 -0
- package/dist/types/components/ui/LegacyTabs/index.d.ts +1 -0
- package/dist/types/components/ui/LinkCard/LinkCard.d.ts +5 -0
- package/dist/types/components/ui/LinkCard/index.d.ts +1 -0
- package/dist/types/components/ui/Logo/Logo.d.ts +69 -0
- package/dist/types/components/ui/Logo/ProviderLogos.d.ts +69 -0
- package/dist/types/components/ui/Logo/index.d.ts +2 -0
- package/dist/types/components/ui/Menubar/Menubar.d.ts +67 -0
- package/dist/types/components/ui/Menubar/index.d.ts +1 -0
- package/dist/types/components/ui/Modal/Modal.d.ts +10 -0
- package/dist/types/components/ui/Modal/index.d.ts +1 -0
- package/dist/types/components/ui/ModelCard/ModelCard.d.ts +50 -0
- package/dist/types/components/ui/ModelCard/ModelSelector.d.ts +76 -0
- package/dist/types/components/ui/ModelCard/icons.d.ts +20 -0
- package/dist/types/components/ui/ModelCard/index.d.ts +2 -0
- package/dist/types/components/ui/NavigationMenu/NavigationMenu.d.ts +38 -0
- package/dist/types/components/ui/NavigationMenu/index.d.ts +1 -0
- package/dist/types/components/ui/Popover/Popover.d.ts +14 -0
- package/dist/types/components/ui/Popover/index.d.ts +1 -0
- package/dist/types/components/ui/Progress/Progress.d.ts +10 -0
- package/dist/types/components/ui/Progress/index.d.ts +1 -0
- package/dist/types/components/ui/ProgressBar/ProgressBar.d.ts +10 -0
- package/dist/types/components/ui/ProgressBar/index.d.ts +1 -0
- package/dist/types/components/ui/Radio/Radio.d.ts +8 -0
- package/dist/types/components/ui/Radio/RadioGroup.d.ts +3 -0
- package/dist/types/components/ui/RadioGroup/RadioGroup.d.ts +16 -0
- package/dist/types/components/ui/RadioGroup/index.d.ts +1 -0
- package/dist/types/components/ui/ScrollArea/ScrollArea.d.ts +26 -0
- package/dist/types/components/ui/ScrollArea/index.d.ts +1 -0
- package/dist/types/components/ui/SegmentedControl/SegmentedControl.d.ts +14 -0
- package/dist/types/components/ui/SegmentedControl/index.d.ts +1 -0
- package/dist/types/components/ui/Select/Primitive/Select.d.ts +79 -0
- package/dist/types/components/ui/Select/Select.d.ts +29 -0
- package/dist/types/components/ui/Select/index.d.ts +1 -0
- package/dist/types/components/ui/Separator/Separator.d.ts +6 -0
- package/dist/types/components/ui/Separator/index.d.ts +1 -0
- package/dist/types/components/ui/SideNavigation/SideNavigation.d.ts +171 -0
- package/dist/types/components/ui/SideNavigation/index.d.ts +1 -0
- package/dist/types/components/ui/Skeleton/Skeleton.d.ts +4 -0
- package/dist/types/components/ui/Skeleton/index.d.ts +1 -0
- package/dist/types/components/ui/Slider/Slider.d.ts +21 -0
- package/dist/types/components/ui/Slider/index.d.ts +1 -0
- package/dist/types/components/ui/Spinner/Spinner.d.ts +5 -0
- package/dist/types/components/ui/Spinner/index.d.ts +1 -0
- package/dist/types/components/ui/Switch/Primitive/Switch.d.ts +11 -0
- package/dist/types/components/ui/Switch/Switch.d.ts +18 -0
- package/dist/types/components/ui/Switch/index.d.ts +1 -0
- package/dist/types/components/ui/Tabs/Tabs.d.ts +21 -0
- package/dist/types/components/ui/Tabs/index.d.ts +1 -0
- package/dist/types/components/ui/Text/Text.d.ts +16 -0
- package/dist/types/components/ui/Text/text-variants.d.ts +31 -0
- package/dist/types/components/ui/ThemeSwitch/ThemeSwitch.d.ts +9 -0
- package/dist/types/components/ui/ThemeSwitch/index.d.ts +1 -0
- package/dist/types/components/ui/Toast/Toast.d.ts +29 -0
- package/dist/types/components/ui/Toast/index.d.ts +1 -0
- package/dist/types/components/ui/Toggle/Toggle.d.ts +6 -0
- package/dist/types/components/ui/Toggle/index.d.ts +1 -0
- package/dist/types/components/ui/ToggleGroup/ToggleGroup.d.ts +16 -0
- package/dist/types/components/ui/ToggleGroup/index.d.ts +1 -0
- package/dist/types/components/ui/Tooltip/Tooltip.d.ts +27 -0
- package/dist/types/components/ui/Tooltip/index.d.ts +1 -0
- package/dist/types/components/ui/UIProvider/PortalHost.d.ts +1 -0
- package/dist/types/components/ui/UIProvider/UIProvider.d.ts +8 -0
- package/dist/types/components/ui/index.d.ts +56 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/workspace.css +25823 -0
- package/package.json +101 -5
- package/README.md +0 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,2250 @@
|
|
|
1
|
+
import fr, { useId as ue, createContext as Xe, useContext as Ze, useState as A, useRef as wr, useMemo as Pe, useEffect as Qe, Fragment as Mr } from "react";
|
|
2
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
3
|
+
import * as ne from "@radix-ui/react-accordion";
|
|
4
|
+
import t from "clsx";
|
|
5
|
+
import { L as er, v as Cr, b as De, u as T, I as Sr, C as xr, _ as kr, $ as je } from "./SideNavigation-qz3aib86.js";
|
|
6
|
+
import { a0 as Ea, a1 as Ua, a2 as qa, a3 as Ka, g as Qa, B as ja, a4 as Ya, d as Ja, a5 as Xa, a6 as Za, a7 as en, a8 as rn, a9 as on, aa as tn, ab as an, ac as nn, ad as ln, ae as _n, E as sn, af as cn, ag as dn, c as pn, t as mn, ah as un, P as gn, ai as bn, e as hn, aj as vn, f as Nn, ak as fn, x as wn, y as Mn, z as Cn, A as Sn, D as xn, F as kn, G as Tn, H as yn, J as In, K as Pn, M as Dn, N as An, O as Rn, Q as Fn, U as $n, s as Gn, W as Ln, T as Bn } from "./SideNavigation-qz3aib86.js";
|
|
7
|
+
import { RadioGroup as Tr } from "@base-ui/react/radio-group";
|
|
8
|
+
import { mergeProps as rr } from "@base-ui/react/merge-props";
|
|
9
|
+
import * as or from "@radix-ui/react-checkbox";
|
|
10
|
+
import * as Re from "@radix-ui/react-collapsible";
|
|
11
|
+
import * as v from "@radix-ui/react-context-menu";
|
|
12
|
+
import * as Q from "@radix-ui/react-dialog";
|
|
13
|
+
import * as N from "@radix-ui/react-dropdown-menu";
|
|
14
|
+
import * as W from "@radix-ui/react-form";
|
|
15
|
+
import * as le from "@radix-ui/react-hover-card";
|
|
16
|
+
import * as Y from "@radix-ui/react-tooltip";
|
|
17
|
+
import * as H from "@radix-ui/react-tabs";
|
|
18
|
+
import * as g from "@radix-ui/react-menubar";
|
|
19
|
+
import { Dialog as j } from "@base-ui/react/dialog";
|
|
20
|
+
import * as R from "@radix-ui/react-popover";
|
|
21
|
+
import * as tr from "@radix-ui/react-switch";
|
|
22
|
+
import * as F from "@radix-ui/react-navigation-menu";
|
|
23
|
+
import { Radio as ar } from "@base-ui/react/radio";
|
|
24
|
+
import * as J from "@radix-ui/react-scroll-area";
|
|
25
|
+
import * as yr from "@radix-ui/react-separator";
|
|
26
|
+
import * as ge from "@radix-ui/react-slider";
|
|
27
|
+
import * as E from "@radix-ui/react-toast";
|
|
28
|
+
import * as Ir from "@radix-ui/react-toggle";
|
|
29
|
+
import * as nr from "@radix-ui/react-toggle-group";
|
|
30
|
+
const _e = {
|
|
31
|
+
"rp-accordion": "rp_Accordion-module_rp-accordion_Yda5BJM4",
|
|
32
|
+
"rp-accordion__item": "rp_Accordion-module_rp-accordion__item_YBccc7Wv",
|
|
33
|
+
"rp-accordion__header": "rp_Accordion-module_rp-accordion__header_CRXlOg0R",
|
|
34
|
+
"rp-accordion__trigger": "rp_Accordion-module_rp-accordion__trigger_xCJIkwcz",
|
|
35
|
+
"rp-accordion__content": "rp_Accordion-module_rp-accordion__content_lg9btBrN"
|
|
36
|
+
}, Io = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
37
|
+
ne.Root,
|
|
38
|
+
{
|
|
39
|
+
className: t(_e["rp-accordion"], e),
|
|
40
|
+
...r
|
|
41
|
+
}
|
|
42
|
+
), Po = ({
|
|
43
|
+
className: e,
|
|
44
|
+
...r
|
|
45
|
+
}) => /* @__PURE__ */ o(
|
|
46
|
+
ne.Item,
|
|
47
|
+
{
|
|
48
|
+
className: t(_e["rp-accordion__item"], e),
|
|
49
|
+
...r
|
|
50
|
+
}
|
|
51
|
+
), Do = ({
|
|
52
|
+
className: e,
|
|
53
|
+
...r
|
|
54
|
+
}) => /* @__PURE__ */ o(
|
|
55
|
+
ne.Header,
|
|
56
|
+
{
|
|
57
|
+
className: t(_e["rp-accordion__header"], e),
|
|
58
|
+
...r
|
|
59
|
+
}
|
|
60
|
+
), Ao = ({
|
|
61
|
+
className: e,
|
|
62
|
+
...r
|
|
63
|
+
}) => /* @__PURE__ */ o(
|
|
64
|
+
ne.Trigger,
|
|
65
|
+
{
|
|
66
|
+
className: t(_e["rp-accordion__trigger"], e),
|
|
67
|
+
...r
|
|
68
|
+
}
|
|
69
|
+
), Ro = ({
|
|
70
|
+
className: e,
|
|
71
|
+
...r
|
|
72
|
+
}) => /* @__PURE__ */ o(
|
|
73
|
+
ne.Content,
|
|
74
|
+
{
|
|
75
|
+
className: t(_e["rp-accordion__content"], e),
|
|
76
|
+
...r
|
|
77
|
+
}
|
|
78
|
+
), Ye = {
|
|
79
|
+
"rp-brand": "rp_Brand-module_rp-brand_G-Dqprft",
|
|
80
|
+
"rp-brand__plus": "rp_Brand-module_rp-brand__plus_1n-lj-xG"
|
|
81
|
+
}, Fo = ({ className: e }) => /* @__PURE__ */ l("span", { className: t(Ye["rp-brand"], e), children: [
|
|
82
|
+
"Router",
|
|
83
|
+
/* @__PURE__ */ o("span", { className: Ye["rp-brand__plus"], children: "Plus" })
|
|
84
|
+
] }), lr = {
|
|
85
|
+
"rp-checkbox": "rp_Checkbox-module_rp-checkbox_LnnX5hIW",
|
|
86
|
+
"rp-checkbox__indicator": "rp_Checkbox-module_rp-checkbox__indicator_qpaWNa2o"
|
|
87
|
+
}, Pr = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
88
|
+
or.Root,
|
|
89
|
+
{
|
|
90
|
+
className: t(lr["rp-checkbox"], e),
|
|
91
|
+
...r
|
|
92
|
+
}
|
|
93
|
+
), Dr = ({
|
|
94
|
+
className: e,
|
|
95
|
+
...r
|
|
96
|
+
}) => /* @__PURE__ */ o(
|
|
97
|
+
or.Indicator,
|
|
98
|
+
{
|
|
99
|
+
className: t(lr["rp-checkbox__indicator"], e),
|
|
100
|
+
...r
|
|
101
|
+
}
|
|
102
|
+
), Ar = {
|
|
103
|
+
"rp-checkbox-row": "rp_Checkbox-module_rp-checkbox-row_NVuZmwQ-"
|
|
104
|
+
}, $o = ({
|
|
105
|
+
checked: e,
|
|
106
|
+
onCheckedChange: r,
|
|
107
|
+
label: n,
|
|
108
|
+
disabled: c,
|
|
109
|
+
className: i
|
|
110
|
+
}) => {
|
|
111
|
+
const s = ue();
|
|
112
|
+
return /* @__PURE__ */ l("div", { className: t(Ar["rp-checkbox-row"], i), children: [
|
|
113
|
+
/* @__PURE__ */ o(
|
|
114
|
+
Pr,
|
|
115
|
+
{
|
|
116
|
+
id: s,
|
|
117
|
+
checked: e,
|
|
118
|
+
onCheckedChange: (d) => r(d === !0),
|
|
119
|
+
disabled: c,
|
|
120
|
+
children: /* @__PURE__ */ o(Dr, { children: "✓" })
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ o(er, { htmlFor: s, children: n })
|
|
124
|
+
] });
|
|
125
|
+
}, Fe = {
|
|
126
|
+
"rp-collapsible": "rp_Collapsible-module_rp-collapsible_a8eD5x0s",
|
|
127
|
+
"rp-collapsible__trigger": "rp_Collapsible-module_rp-collapsible__trigger_dWqs-MiW",
|
|
128
|
+
"rp-collapsible__content": "rp_Collapsible-module_rp-collapsible__content_2pQU8VKD"
|
|
129
|
+
}, Go = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
130
|
+
Re.Root,
|
|
131
|
+
{
|
|
132
|
+
className: t(Fe["rp-collapsible"], e),
|
|
133
|
+
...r
|
|
134
|
+
}
|
|
135
|
+
), Lo = ({
|
|
136
|
+
className: e,
|
|
137
|
+
...r
|
|
138
|
+
}) => /* @__PURE__ */ o(
|
|
139
|
+
Re.Trigger,
|
|
140
|
+
{
|
|
141
|
+
className: t(Fe["rp-collapsible__trigger"], e),
|
|
142
|
+
...r
|
|
143
|
+
}
|
|
144
|
+
), Bo = ({
|
|
145
|
+
className: e,
|
|
146
|
+
...r
|
|
147
|
+
}) => /* @__PURE__ */ o(
|
|
148
|
+
Re.Content,
|
|
149
|
+
{
|
|
150
|
+
className: t(Fe["rp-collapsible__content"], e),
|
|
151
|
+
...r
|
|
152
|
+
}
|
|
153
|
+
), C = {
|
|
154
|
+
"rp-context-menu__trigger": "rp_ContextMenu-module_rp-context-menu__trigger_PXpkpIZB",
|
|
155
|
+
"rp-context-menu__content": "rp_ContextMenu-module_rp-context-menu__content_6GLI--2V",
|
|
156
|
+
"rp-context-menu__sub-content": "rp_ContextMenu-module_rp-context-menu__sub-content_ddLhQiGh",
|
|
157
|
+
"rp-context-menu__arrow": "rp_ContextMenu-module_rp-context-menu__arrow_oP9um6Fb",
|
|
158
|
+
"rp-context-menu__group": "rp_ContextMenu-module_rp-context-menu__group_MqFW4wAW",
|
|
159
|
+
"rp-context-menu__radio-group": "rp_ContextMenu-module_rp-context-menu__radio-group_KFBVY0lC",
|
|
160
|
+
"rp-context-menu__label": "rp_ContextMenu-module_rp-context-menu__label_dxGWxgVN",
|
|
161
|
+
"rp-context-menu__item": "rp_ContextMenu-module_rp-context-menu__item_CEEYHzbB",
|
|
162
|
+
"rp-context-menu__checkbox-item": "rp_ContextMenu-module_rp-context-menu__checkbox-item_HysVAq7H",
|
|
163
|
+
"rp-context-menu__radio-item": "rp_ContextMenu-module_rp-context-menu__radio-item_qzyARPzt",
|
|
164
|
+
"rp-context-menu__sub-trigger": "rp_ContextMenu-module_rp-context-menu__sub-trigger_pOMlfhgj",
|
|
165
|
+
"rp-context-menu__item-indicator": "rp_ContextMenu-module_rp-context-menu__item-indicator_qXHYjSNQ",
|
|
166
|
+
"rp-context-menu__separator": "rp_ContextMenu-module_rp-context-menu__separator_6PuHbm5K"
|
|
167
|
+
}, Ho = (e) => /* @__PURE__ */ o(v.Root, { ...e }), Vo = ({
|
|
168
|
+
className: e,
|
|
169
|
+
...r
|
|
170
|
+
}) => /* @__PURE__ */ o(
|
|
171
|
+
v.Trigger,
|
|
172
|
+
{
|
|
173
|
+
className: t(C["rp-context-menu__trigger"], e),
|
|
174
|
+
...r
|
|
175
|
+
}
|
|
176
|
+
), Oo = v.Portal, zo = ({
|
|
177
|
+
className: e,
|
|
178
|
+
...r
|
|
179
|
+
}) => /* @__PURE__ */ o(
|
|
180
|
+
v.Content,
|
|
181
|
+
{
|
|
182
|
+
className: t(C["rp-context-menu__content"], e),
|
|
183
|
+
...r
|
|
184
|
+
}
|
|
185
|
+
), Wo = ({
|
|
186
|
+
className: e,
|
|
187
|
+
...r
|
|
188
|
+
}) => /* @__PURE__ */ o(
|
|
189
|
+
v.Arrow,
|
|
190
|
+
{
|
|
191
|
+
className: t(C["rp-context-menu__arrow"], e),
|
|
192
|
+
...r
|
|
193
|
+
}
|
|
194
|
+
), Eo = ({
|
|
195
|
+
className: e,
|
|
196
|
+
...r
|
|
197
|
+
}) => /* @__PURE__ */ o(
|
|
198
|
+
v.Group,
|
|
199
|
+
{
|
|
200
|
+
className: t(C["rp-context-menu__group"], e),
|
|
201
|
+
...r
|
|
202
|
+
}
|
|
203
|
+
), Uo = ({
|
|
204
|
+
className: e,
|
|
205
|
+
...r
|
|
206
|
+
}) => /* @__PURE__ */ o(
|
|
207
|
+
v.Label,
|
|
208
|
+
{
|
|
209
|
+
className: t(C["rp-context-menu__label"], e),
|
|
210
|
+
...r
|
|
211
|
+
}
|
|
212
|
+
), qo = ({
|
|
213
|
+
className: e,
|
|
214
|
+
...r
|
|
215
|
+
}) => /* @__PURE__ */ o(
|
|
216
|
+
v.Item,
|
|
217
|
+
{
|
|
218
|
+
className: t(C["rp-context-menu__item"], e),
|
|
219
|
+
...r
|
|
220
|
+
}
|
|
221
|
+
), Ko = ({
|
|
222
|
+
className: e,
|
|
223
|
+
...r
|
|
224
|
+
}) => /* @__PURE__ */ o(
|
|
225
|
+
v.ItemIndicator,
|
|
226
|
+
{
|
|
227
|
+
className: t(C["rp-context-menu__item-indicator"], e),
|
|
228
|
+
...r
|
|
229
|
+
}
|
|
230
|
+
), Qo = ({
|
|
231
|
+
className: e,
|
|
232
|
+
...r
|
|
233
|
+
}) => /* @__PURE__ */ o(
|
|
234
|
+
v.CheckboxItem,
|
|
235
|
+
{
|
|
236
|
+
className: t(C["rp-context-menu__checkbox-item"], e),
|
|
237
|
+
...r
|
|
238
|
+
}
|
|
239
|
+
), jo = ({
|
|
240
|
+
className: e,
|
|
241
|
+
...r
|
|
242
|
+
}) => /* @__PURE__ */ o(
|
|
243
|
+
v.RadioGroup,
|
|
244
|
+
{
|
|
245
|
+
className: t(C["rp-context-menu__radio-group"], e),
|
|
246
|
+
...r
|
|
247
|
+
}
|
|
248
|
+
), Yo = ({
|
|
249
|
+
className: e,
|
|
250
|
+
...r
|
|
251
|
+
}) => /* @__PURE__ */ o(
|
|
252
|
+
v.RadioItem,
|
|
253
|
+
{
|
|
254
|
+
className: t(C["rp-context-menu__radio-item"], e),
|
|
255
|
+
...r
|
|
256
|
+
}
|
|
257
|
+
), Jo = ({
|
|
258
|
+
className: e,
|
|
259
|
+
...r
|
|
260
|
+
}) => /* @__PURE__ */ o(
|
|
261
|
+
v.Separator,
|
|
262
|
+
{
|
|
263
|
+
className: t(C["rp-context-menu__separator"], e),
|
|
264
|
+
...r
|
|
265
|
+
}
|
|
266
|
+
), Xo = v.Sub, Zo = ({
|
|
267
|
+
className: e,
|
|
268
|
+
...r
|
|
269
|
+
}) => /* @__PURE__ */ o(
|
|
270
|
+
v.SubTrigger,
|
|
271
|
+
{
|
|
272
|
+
className: t(C["rp-context-menu__sub-trigger"], e),
|
|
273
|
+
...r
|
|
274
|
+
}
|
|
275
|
+
), et = ({
|
|
276
|
+
className: e,
|
|
277
|
+
...r
|
|
278
|
+
}) => /* @__PURE__ */ o(
|
|
279
|
+
v.SubContent,
|
|
280
|
+
{
|
|
281
|
+
className: t(C["rp-context-menu__sub-content"], e),
|
|
282
|
+
...r
|
|
283
|
+
}
|
|
284
|
+
), $e = Xe(null), Rr = "rp_Drawer-module_backdrop_3-i0R5Ey", Fr = "rp_Drawer-module_content_Z21v8Bxb", $r = "rp_Drawer-module_header_qmTauzS4", Gr = "rp_Drawer-module_title_SCg1Xmv-", Lr = "rp_Drawer-module_close_8t4p-pps", Br = "rp_Drawer-module_body_F-oDH0a7", Hr = "rp_Drawer-module_footer_fh7NAP6U", O = {
|
|
285
|
+
backdrop: Rr,
|
|
286
|
+
content: Fr,
|
|
287
|
+
header: $r,
|
|
288
|
+
title: Gr,
|
|
289
|
+
close: Lr,
|
|
290
|
+
body: Br,
|
|
291
|
+
footer: Hr
|
|
292
|
+
};
|
|
293
|
+
function rt({
|
|
294
|
+
open: e,
|
|
295
|
+
onClose: r,
|
|
296
|
+
title: n,
|
|
297
|
+
children: c,
|
|
298
|
+
footer: i,
|
|
299
|
+
className: s = ""
|
|
300
|
+
}) {
|
|
301
|
+
const d = Ze($e);
|
|
302
|
+
return /* @__PURE__ */ o(
|
|
303
|
+
Q.Root,
|
|
304
|
+
{
|
|
305
|
+
open: e,
|
|
306
|
+
onOpenChange: (b) => {
|
|
307
|
+
b || r();
|
|
308
|
+
},
|
|
309
|
+
children: /* @__PURE__ */ l(Q.Portal, { container: d ?? void 0, children: [
|
|
310
|
+
/* @__PURE__ */ o(Q.Overlay, { className: O.backdrop }),
|
|
311
|
+
/* @__PURE__ */ l(Q.Content, { className: t(O.content, s), children: [
|
|
312
|
+
/* @__PURE__ */ l("header", { className: O.header, children: [
|
|
313
|
+
/* @__PURE__ */ o(Q.Title, { className: O.title, children: n }),
|
|
314
|
+
/* @__PURE__ */ o(Q.Close, { className: O.close, "aria-label": "Close", children: "×" })
|
|
315
|
+
] }),
|
|
316
|
+
/* @__PURE__ */ o("div", { className: O.body, children: c }),
|
|
317
|
+
i && /* @__PURE__ */ o("footer", { className: O.footer, children: i })
|
|
318
|
+
] })
|
|
319
|
+
] })
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
const S = {
|
|
324
|
+
"rp-dropdown-menu__trigger": "rp_DropdownMenu-module_rp-dropdown-menu__trigger_lAnPxiGb",
|
|
325
|
+
"rp-dropdown-menu__content": "rp_DropdownMenu-module_rp-dropdown-menu__content_xGNFAsmw",
|
|
326
|
+
"rp-dropdown-menu__sub-content": "rp_DropdownMenu-module_rp-dropdown-menu__sub-content_GLav5iiH",
|
|
327
|
+
"rp-dropdown-menu__arrow": "rp_DropdownMenu-module_rp-dropdown-menu__arrow_3EeuvBiw",
|
|
328
|
+
"rp-dropdown-menu__group": "rp_DropdownMenu-module_rp-dropdown-menu__group_nUC3EOTw",
|
|
329
|
+
"rp-dropdown-menu__radio-group": "rp_DropdownMenu-module_rp-dropdown-menu__radio-group_3f2z5tq5",
|
|
330
|
+
"rp-dropdown-menu__label": "rp_DropdownMenu-module_rp-dropdown-menu__label_5qRgYlSo",
|
|
331
|
+
"rp-dropdown-menu__item": "rp_DropdownMenu-module_rp-dropdown-menu__item_pLyVl0eq",
|
|
332
|
+
"rp-dropdown-menu__checkbox-item": "rp_DropdownMenu-module_rp-dropdown-menu__checkbox-item_Jt7jlfTS",
|
|
333
|
+
"rp-dropdown-menu__radio-item": "rp_DropdownMenu-module_rp-dropdown-menu__radio-item_VCU0Rl33",
|
|
334
|
+
"rp-dropdown-menu__sub-trigger": "rp_DropdownMenu-module_rp-dropdown-menu__sub-trigger_zBIgSwKd",
|
|
335
|
+
"rp-dropdown-menu__item-indicator": "rp_DropdownMenu-module_rp-dropdown-menu__item-indicator_3XWvZloz",
|
|
336
|
+
"rp-dropdown-menu__separator": "rp_DropdownMenu-module_rp-dropdown-menu__separator_TFj-Fil7"
|
|
337
|
+
}, Vr = (e) => /* @__PURE__ */ o(N.Root, { ...e }), Or = ({
|
|
338
|
+
className: e,
|
|
339
|
+
...r
|
|
340
|
+
}) => /* @__PURE__ */ o(
|
|
341
|
+
N.Trigger,
|
|
342
|
+
{
|
|
343
|
+
className: t(S["rp-dropdown-menu__trigger"], e),
|
|
344
|
+
...r
|
|
345
|
+
}
|
|
346
|
+
), zr = N.Portal, Wr = ({
|
|
347
|
+
className: e,
|
|
348
|
+
...r
|
|
349
|
+
}) => /* @__PURE__ */ o(
|
|
350
|
+
N.Content,
|
|
351
|
+
{
|
|
352
|
+
className: t(S["rp-dropdown-menu__content"], e),
|
|
353
|
+
...r
|
|
354
|
+
}
|
|
355
|
+
), ot = ({
|
|
356
|
+
className: e,
|
|
357
|
+
...r
|
|
358
|
+
}) => /* @__PURE__ */ o(
|
|
359
|
+
N.Arrow,
|
|
360
|
+
{
|
|
361
|
+
className: t(S["rp-dropdown-menu__arrow"], e),
|
|
362
|
+
...r
|
|
363
|
+
}
|
|
364
|
+
), tt = ({
|
|
365
|
+
className: e,
|
|
366
|
+
...r
|
|
367
|
+
}) => /* @__PURE__ */ o(
|
|
368
|
+
N.Group,
|
|
369
|
+
{
|
|
370
|
+
className: t(S["rp-dropdown-menu__group"], e),
|
|
371
|
+
...r
|
|
372
|
+
}
|
|
373
|
+
), at = ({
|
|
374
|
+
className: e,
|
|
375
|
+
...r
|
|
376
|
+
}) => /* @__PURE__ */ o(
|
|
377
|
+
N.Label,
|
|
378
|
+
{
|
|
379
|
+
className: t(S["rp-dropdown-menu__label"], e),
|
|
380
|
+
...r
|
|
381
|
+
}
|
|
382
|
+
), Er = ({
|
|
383
|
+
className: e,
|
|
384
|
+
...r
|
|
385
|
+
}) => /* @__PURE__ */ o(
|
|
386
|
+
N.Item,
|
|
387
|
+
{
|
|
388
|
+
className: t(S["rp-dropdown-menu__item"], e),
|
|
389
|
+
...r
|
|
390
|
+
}
|
|
391
|
+
), nt = ({
|
|
392
|
+
className: e,
|
|
393
|
+
...r
|
|
394
|
+
}) => /* @__PURE__ */ o(
|
|
395
|
+
N.ItemIndicator,
|
|
396
|
+
{
|
|
397
|
+
className: t(S["rp-dropdown-menu__item-indicator"], e),
|
|
398
|
+
...r
|
|
399
|
+
}
|
|
400
|
+
), lt = ({
|
|
401
|
+
className: e,
|
|
402
|
+
...r
|
|
403
|
+
}) => /* @__PURE__ */ o(
|
|
404
|
+
N.CheckboxItem,
|
|
405
|
+
{
|
|
406
|
+
className: t(S["rp-dropdown-menu__checkbox-item"], e),
|
|
407
|
+
...r
|
|
408
|
+
}
|
|
409
|
+
), _t = ({
|
|
410
|
+
className: e,
|
|
411
|
+
...r
|
|
412
|
+
}) => /* @__PURE__ */ o(
|
|
413
|
+
N.RadioGroup,
|
|
414
|
+
{
|
|
415
|
+
className: t(S["rp-dropdown-menu__radio-group"], e),
|
|
416
|
+
...r
|
|
417
|
+
}
|
|
418
|
+
), st = ({
|
|
419
|
+
className: e,
|
|
420
|
+
...r
|
|
421
|
+
}) => /* @__PURE__ */ o(
|
|
422
|
+
N.RadioItem,
|
|
423
|
+
{
|
|
424
|
+
className: t(S["rp-dropdown-menu__radio-item"], e),
|
|
425
|
+
...r
|
|
426
|
+
}
|
|
427
|
+
), ct = ({
|
|
428
|
+
className: e,
|
|
429
|
+
...r
|
|
430
|
+
}) => /* @__PURE__ */ o(
|
|
431
|
+
N.Separator,
|
|
432
|
+
{
|
|
433
|
+
className: t(S["rp-dropdown-menu__separator"], e),
|
|
434
|
+
...r
|
|
435
|
+
}
|
|
436
|
+
), dt = N.Sub, it = ({
|
|
437
|
+
className: e,
|
|
438
|
+
...r
|
|
439
|
+
}) => /* @__PURE__ */ o(
|
|
440
|
+
N.SubTrigger,
|
|
441
|
+
{
|
|
442
|
+
className: t(S["rp-dropdown-menu__sub-trigger"], e),
|
|
443
|
+
...r
|
|
444
|
+
}
|
|
445
|
+
), pt = ({
|
|
446
|
+
className: e,
|
|
447
|
+
...r
|
|
448
|
+
}) => /* @__PURE__ */ o(
|
|
449
|
+
N.SubContent,
|
|
450
|
+
{
|
|
451
|
+
className: t(S["rp-dropdown-menu__sub-content"], e),
|
|
452
|
+
...r
|
|
453
|
+
}
|
|
454
|
+
), Je = {
|
|
455
|
+
"rp-filter-select": "rp_FilterSelect-module_rp-filter-select_9a6MIWr-",
|
|
456
|
+
"rp-filter-select__label": "rp_FilterSelect-module_rp-filter-select__label_whxN6CUC"
|
|
457
|
+
}, mt = ({
|
|
458
|
+
label: e,
|
|
459
|
+
value: r,
|
|
460
|
+
options: n,
|
|
461
|
+
onChange: c,
|
|
462
|
+
className: i
|
|
463
|
+
}) => /* @__PURE__ */ l("div", { className: t(Je["rp-filter-select"], i), children: [
|
|
464
|
+
/* @__PURE__ */ o("span", { className: Je["rp-filter-select__label"], children: e }),
|
|
465
|
+
/* @__PURE__ */ o(
|
|
466
|
+
Cr,
|
|
467
|
+
{
|
|
468
|
+
ariaLabel: e,
|
|
469
|
+
value: r,
|
|
470
|
+
onValueChange: c,
|
|
471
|
+
options: n.map((s) => ({ value: s, label: s }))
|
|
472
|
+
}
|
|
473
|
+
)
|
|
474
|
+
] }), X = {
|
|
475
|
+
"rp-form": "rp_Form-module_rp-form_lawmHd6r",
|
|
476
|
+
"rp-form__field": "rp_Form-module_rp-form__field_bUdJ06TI",
|
|
477
|
+
"rp-form__label": "rp_Form-module_rp-form__label_ho90y4uF",
|
|
478
|
+
"rp-form__control": "rp_Form-module_rp-form__control_mfzqoBW-",
|
|
479
|
+
"rp-form__message": "rp_Form-module_rp-form__message_n2oyuZuC",
|
|
480
|
+
"rp-form__submit": "rp_Form-module_rp-form__submit_RbAKWb5e"
|
|
481
|
+
}, ut = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
482
|
+
W.Root,
|
|
483
|
+
{
|
|
484
|
+
className: t(X["rp-form"], e),
|
|
485
|
+
...r
|
|
486
|
+
}
|
|
487
|
+
), gt = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
488
|
+
W.Field,
|
|
489
|
+
{
|
|
490
|
+
className: t(X["rp-form__field"], e),
|
|
491
|
+
...r
|
|
492
|
+
}
|
|
493
|
+
), bt = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
494
|
+
W.Label,
|
|
495
|
+
{
|
|
496
|
+
className: t(X["rp-form__label"], e),
|
|
497
|
+
...r
|
|
498
|
+
}
|
|
499
|
+
), ht = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
500
|
+
W.Control,
|
|
501
|
+
{
|
|
502
|
+
className: t(X["rp-form__control"], e),
|
|
503
|
+
...r
|
|
504
|
+
}
|
|
505
|
+
), vt = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
506
|
+
W.Message,
|
|
507
|
+
{
|
|
508
|
+
className: t(X["rp-form__message"], e),
|
|
509
|
+
...r
|
|
510
|
+
}
|
|
511
|
+
), Nt = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
512
|
+
W.Submit,
|
|
513
|
+
{
|
|
514
|
+
className: t(X["rp-form__submit"], e),
|
|
515
|
+
...r
|
|
516
|
+
}
|
|
517
|
+
), ft = W.ValidityState, Ge = {
|
|
518
|
+
"rp-hover-card__trigger": "rp_HoverCard-module_rp-hover-card__trigger_D7QsO-TW",
|
|
519
|
+
"rp-hover-card__content": "rp_HoverCard-module_rp-hover-card__content_t2hGtfq9",
|
|
520
|
+
"rp-hover-card__arrow": "rp_HoverCard-module_rp-hover-card__arrow_3sFaoeYH"
|
|
521
|
+
}, wt = (e) => /* @__PURE__ */ o(le.Root, { ...e }), Mt = ({
|
|
522
|
+
className: e,
|
|
523
|
+
...r
|
|
524
|
+
}) => /* @__PURE__ */ o(
|
|
525
|
+
le.Trigger,
|
|
526
|
+
{
|
|
527
|
+
className: t(Ge["rp-hover-card__trigger"], e),
|
|
528
|
+
...r
|
|
529
|
+
}
|
|
530
|
+
), Ct = le.Portal, St = ({
|
|
531
|
+
className: e,
|
|
532
|
+
...r
|
|
533
|
+
}) => /* @__PURE__ */ o(
|
|
534
|
+
le.Content,
|
|
535
|
+
{
|
|
536
|
+
className: t(Ge["rp-hover-card__content"], e),
|
|
537
|
+
...r
|
|
538
|
+
}
|
|
539
|
+
), xt = ({
|
|
540
|
+
className: e,
|
|
541
|
+
...r
|
|
542
|
+
}) => /* @__PURE__ */ o(
|
|
543
|
+
le.Arrow,
|
|
544
|
+
{
|
|
545
|
+
className: t(Ge["rp-hover-card__arrow"], e),
|
|
546
|
+
...r
|
|
547
|
+
}
|
|
548
|
+
), ae = {
|
|
549
|
+
"rp-info-header": "rp_InfoHeader-module_rp-info-header_KdkU3jmo",
|
|
550
|
+
"rp-info-header__content": "rp_InfoHeader-module_rp-info-header__content_Ucxx9FuB",
|
|
551
|
+
"rp-info-header__action": "rp_InfoHeader-module_rp-info-header__action_x5AeNc-s",
|
|
552
|
+
"rp-info-header__dismiss": "rp_InfoHeader-module_rp-info-header__dismiss_unNI9jWM"
|
|
553
|
+
};
|
|
554
|
+
function kt({
|
|
555
|
+
label: e = "Announcement",
|
|
556
|
+
children: r,
|
|
557
|
+
actionLabel: n,
|
|
558
|
+
actionHref: c,
|
|
559
|
+
onAction: i,
|
|
560
|
+
onDismiss: s,
|
|
561
|
+
dismissLabel: d = "Dismiss announcement",
|
|
562
|
+
className: b
|
|
563
|
+
}) {
|
|
564
|
+
const [x, m] = A(!1);
|
|
565
|
+
if (x) return null;
|
|
566
|
+
const k = () => {
|
|
567
|
+
m(!0), s?.();
|
|
568
|
+
};
|
|
569
|
+
let y = null;
|
|
570
|
+
return n && c ? y = /* @__PURE__ */ l("a", { className: ae["rp-info-header__action"], href: c, children: [
|
|
571
|
+
n,
|
|
572
|
+
/* @__PURE__ */ o(De.Chevron, { size: 14 })
|
|
573
|
+
] }) : n && (y = /* @__PURE__ */ l(
|
|
574
|
+
"button",
|
|
575
|
+
{
|
|
576
|
+
type: "button",
|
|
577
|
+
className: ae["rp-info-header__action"],
|
|
578
|
+
onClick: i,
|
|
579
|
+
children: [
|
|
580
|
+
n,
|
|
581
|
+
/* @__PURE__ */ o(De.Chevron, { size: 14 })
|
|
582
|
+
]
|
|
583
|
+
}
|
|
584
|
+
)), /* @__PURE__ */ l(
|
|
585
|
+
"aside",
|
|
586
|
+
{
|
|
587
|
+
className: t(ae["rp-info-header"], b),
|
|
588
|
+
"aria-label": e,
|
|
589
|
+
children: [
|
|
590
|
+
/* @__PURE__ */ l("div", { className: ae["rp-info-header__content"], children: [
|
|
591
|
+
/* @__PURE__ */ o("span", { children: r }),
|
|
592
|
+
y
|
|
593
|
+
] }),
|
|
594
|
+
/* @__PURE__ */ o(
|
|
595
|
+
"button",
|
|
596
|
+
{
|
|
597
|
+
type: "button",
|
|
598
|
+
className: ae["rp-info-header__dismiss"],
|
|
599
|
+
"aria-label": d,
|
|
600
|
+
onClick: k,
|
|
601
|
+
children: /* @__PURE__ */ o(De.Close, { size: 16 })
|
|
602
|
+
}
|
|
603
|
+
)
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
);
|
|
607
|
+
}
|
|
608
|
+
const Le = {
|
|
609
|
+
"rp-tooltip__trigger": "rp_Tooltip-module_rp-tooltip__trigger_RPsmojSP",
|
|
610
|
+
"rp-tooltip__content": "rp_Tooltip-module_rp-tooltip__content_PRuX4CCp",
|
|
611
|
+
"rp-tooltip__arrow": "rp_Tooltip-module_rp-tooltip__arrow_DgDqt-xs"
|
|
612
|
+
}, Ur = (e) => /* @__PURE__ */ o(Y.Root, { ...e }), qr = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
613
|
+
Y.Trigger,
|
|
614
|
+
{
|
|
615
|
+
className: t(Le["rp-tooltip__trigger"], e),
|
|
616
|
+
...r
|
|
617
|
+
}
|
|
618
|
+
), Kr = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
619
|
+
Y.Content,
|
|
620
|
+
{
|
|
621
|
+
className: t(Le["rp-tooltip__content"], e),
|
|
622
|
+
...r
|
|
623
|
+
}
|
|
624
|
+
), Qr = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
625
|
+
Y.Arrow,
|
|
626
|
+
{
|
|
627
|
+
className: t(Le["rp-tooltip__arrow"], e),
|
|
628
|
+
...r
|
|
629
|
+
}
|
|
630
|
+
), jr = Y.Provider, Yr = Y.Portal;
|
|
631
|
+
function Tt({
|
|
632
|
+
children: e,
|
|
633
|
+
content: r
|
|
634
|
+
}) {
|
|
635
|
+
return /* @__PURE__ */ o(jr, { delayDuration: 150, children: /* @__PURE__ */ l(Ur, { children: [
|
|
636
|
+
/* @__PURE__ */ o(qr, { asChild: !0, children: e }),
|
|
637
|
+
/* @__PURE__ */ o(Yr, { children: /* @__PURE__ */ l(Kr, { sideOffset: 6, children: [
|
|
638
|
+
r,
|
|
639
|
+
/* @__PURE__ */ o(Qr, {})
|
|
640
|
+
] }) })
|
|
641
|
+
] }) });
|
|
642
|
+
}
|
|
643
|
+
const Ae = {
|
|
644
|
+
"rp-card-reference": "rp_LinkCard-module_rp-card-reference_XvfimbdV",
|
|
645
|
+
"rp-link-card": "rp_LinkCard-module_rp-link-card_t2-Ojtl2",
|
|
646
|
+
"rp-link-card-interactive": "rp_LinkCard-module_rp-link-card-interactive_oe3dTWNu"
|
|
647
|
+
}, yt = ({
|
|
648
|
+
interactive: e = !0,
|
|
649
|
+
className: r,
|
|
650
|
+
...n
|
|
651
|
+
}) => {
|
|
652
|
+
const c = t(
|
|
653
|
+
Ae["rp-card-reference"],
|
|
654
|
+
Ae["rp-link-card"],
|
|
655
|
+
e && Ae["rp-link-card-interactive"],
|
|
656
|
+
r
|
|
657
|
+
);
|
|
658
|
+
return /* @__PURE__ */ o("a", { className: c, ...n });
|
|
659
|
+
}, w = {
|
|
660
|
+
"rp-menubar": "rp_Menubar-module_rp-menubar_N-tfH-Re",
|
|
661
|
+
"rp-menubar__trigger": "rp_Menubar-module_rp-menubar__trigger_bSW8S40H",
|
|
662
|
+
"rp-menubar__content": "rp_Menubar-module_rp-menubar__content_6tu7YINq",
|
|
663
|
+
"rp-menubar__sub-content": "rp_Menubar-module_rp-menubar__sub-content_UE8SnBbY",
|
|
664
|
+
"rp-menubar__group": "rp_Menubar-module_rp-menubar__group_J1LPiOF5",
|
|
665
|
+
"rp-menubar__radio-group": "rp_Menubar-module_rp-menubar__radio-group_GEcaP5MU",
|
|
666
|
+
"rp-menubar__label": "rp_Menubar-module_rp-menubar__label_KnyJpWwU",
|
|
667
|
+
"rp-menubar__item": "rp_Menubar-module_rp-menubar__item_F7bPBeq0",
|
|
668
|
+
"rp-menubar__checkbox-item": "rp_Menubar-module_rp-menubar__checkbox-item_8x8KQYDR",
|
|
669
|
+
"rp-menubar__radio-item": "rp_Menubar-module_rp-menubar__radio-item_bxx5s0Mr",
|
|
670
|
+
"rp-menubar__sub-trigger": "rp_Menubar-module_rp-menubar__sub-trigger_v258EzeQ",
|
|
671
|
+
"rp-menubar__item-indicator": "rp_Menubar-module_rp-menubar__item-indicator_oKP3LUar",
|
|
672
|
+
"rp-menubar__separator": "rp_Menubar-module_rp-menubar__separator_6QdfPUGk",
|
|
673
|
+
"rp-menubar__arrow": "rp_Menubar-module_rp-menubar__arrow_ZBWOnJO7"
|
|
674
|
+
}, It = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
675
|
+
g.Root,
|
|
676
|
+
{
|
|
677
|
+
className: t(w["rp-menubar"], e),
|
|
678
|
+
...r
|
|
679
|
+
}
|
|
680
|
+
), Pt = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
681
|
+
g.Trigger,
|
|
682
|
+
{
|
|
683
|
+
className: t(w["rp-menubar__trigger"], e),
|
|
684
|
+
...r
|
|
685
|
+
}
|
|
686
|
+
), Dt = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
687
|
+
g.Content,
|
|
688
|
+
{
|
|
689
|
+
className: t(w["rp-menubar__content"], e),
|
|
690
|
+
...r
|
|
691
|
+
}
|
|
692
|
+
), At = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
693
|
+
g.Group,
|
|
694
|
+
{
|
|
695
|
+
className: t(w["rp-menubar__group"], e),
|
|
696
|
+
...r
|
|
697
|
+
}
|
|
698
|
+
), Rt = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
699
|
+
g.Label,
|
|
700
|
+
{
|
|
701
|
+
className: t(w["rp-menubar__label"], e),
|
|
702
|
+
...r
|
|
703
|
+
}
|
|
704
|
+
), Ft = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
705
|
+
g.Item,
|
|
706
|
+
{
|
|
707
|
+
className: t(w["rp-menubar__item"], e),
|
|
708
|
+
...r
|
|
709
|
+
}
|
|
710
|
+
), $t = ({
|
|
711
|
+
className: e,
|
|
712
|
+
...r
|
|
713
|
+
}) => /* @__PURE__ */ o(
|
|
714
|
+
g.CheckboxItem,
|
|
715
|
+
{
|
|
716
|
+
className: t(w["rp-menubar__checkbox-item"], e),
|
|
717
|
+
...r
|
|
718
|
+
}
|
|
719
|
+
), Gt = ({
|
|
720
|
+
className: e,
|
|
721
|
+
...r
|
|
722
|
+
}) => /* @__PURE__ */ o(
|
|
723
|
+
g.RadioGroup,
|
|
724
|
+
{
|
|
725
|
+
className: t(w["rp-menubar__radio-group"], e),
|
|
726
|
+
...r
|
|
727
|
+
}
|
|
728
|
+
), Lt = ({
|
|
729
|
+
className: e,
|
|
730
|
+
...r
|
|
731
|
+
}) => /* @__PURE__ */ o(
|
|
732
|
+
g.RadioItem,
|
|
733
|
+
{
|
|
734
|
+
className: t(w["rp-menubar__radio-item"], e),
|
|
735
|
+
...r
|
|
736
|
+
}
|
|
737
|
+
), Bt = ({
|
|
738
|
+
className: e,
|
|
739
|
+
...r
|
|
740
|
+
}) => /* @__PURE__ */ o(
|
|
741
|
+
g.ItemIndicator,
|
|
742
|
+
{
|
|
743
|
+
className: t(w["rp-menubar__item-indicator"], e),
|
|
744
|
+
...r
|
|
745
|
+
}
|
|
746
|
+
), Ht = ({
|
|
747
|
+
className: e,
|
|
748
|
+
...r
|
|
749
|
+
}) => /* @__PURE__ */ o(
|
|
750
|
+
g.Separator,
|
|
751
|
+
{
|
|
752
|
+
className: t(w["rp-menubar__separator"], e),
|
|
753
|
+
...r
|
|
754
|
+
}
|
|
755
|
+
), Vt = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
756
|
+
g.Arrow,
|
|
757
|
+
{
|
|
758
|
+
className: t(w["rp-menubar__arrow"], e),
|
|
759
|
+
...r
|
|
760
|
+
}
|
|
761
|
+
), Ot = ({
|
|
762
|
+
className: e,
|
|
763
|
+
...r
|
|
764
|
+
}) => /* @__PURE__ */ o(
|
|
765
|
+
g.SubTrigger,
|
|
766
|
+
{
|
|
767
|
+
className: t(w["rp-menubar__sub-trigger"], e),
|
|
768
|
+
...r
|
|
769
|
+
}
|
|
770
|
+
), zt = ({
|
|
771
|
+
className: e,
|
|
772
|
+
...r
|
|
773
|
+
}) => /* @__PURE__ */ o(
|
|
774
|
+
g.SubContent,
|
|
775
|
+
{
|
|
776
|
+
className: t(w["rp-menubar__sub-content"], e),
|
|
777
|
+
...r
|
|
778
|
+
}
|
|
779
|
+
), Wt = g.Menu, Et = g.Portal, Ut = g.Sub;
|
|
780
|
+
function qt({
|
|
781
|
+
open: e,
|
|
782
|
+
onClose: r,
|
|
783
|
+
title: n,
|
|
784
|
+
children: c,
|
|
785
|
+
headerAction: i,
|
|
786
|
+
footer: s,
|
|
787
|
+
className: d = ""
|
|
788
|
+
}) {
|
|
789
|
+
const b = Ze($e), x = fr.useRef(null);
|
|
790
|
+
return /* @__PURE__ */ o(
|
|
791
|
+
j.Root,
|
|
792
|
+
{
|
|
793
|
+
open: e,
|
|
794
|
+
onOpenChange: (m) => {
|
|
795
|
+
m || r();
|
|
796
|
+
},
|
|
797
|
+
children: /* @__PURE__ */ l(j.Portal, { container: b, children: [
|
|
798
|
+
/* @__PURE__ */ o(j.Backdrop, { className: `${T["rp-modal-backdrop"]}` }),
|
|
799
|
+
/* @__PURE__ */ l(
|
|
800
|
+
j.Popup,
|
|
801
|
+
{
|
|
802
|
+
className: T["rp-modal"] + " " + d,
|
|
803
|
+
"aria-describedby": void 0,
|
|
804
|
+
initialFocus: () => (x.current = document.activeElement, !0),
|
|
805
|
+
finalFocus: x,
|
|
806
|
+
children: [
|
|
807
|
+
/* @__PURE__ */ l("header", { children: [
|
|
808
|
+
/* @__PURE__ */ o(j.Title, { children: n }),
|
|
809
|
+
/* @__PURE__ */ o("span", { className: `${T.grow}` }),
|
|
810
|
+
i,
|
|
811
|
+
/* @__PURE__ */ o(
|
|
812
|
+
j.Close,
|
|
813
|
+
{
|
|
814
|
+
className: `${T["rp-button"]} ${T.icon}`,
|
|
815
|
+
"aria-label": "Close",
|
|
816
|
+
children: "×"
|
|
817
|
+
}
|
|
818
|
+
)
|
|
819
|
+
] }),
|
|
820
|
+
/* @__PURE__ */ o("div", { className: `${T["rp-modal-body"]}`, children: c }),
|
|
821
|
+
s && /* @__PURE__ */ o("footer", { children: s })
|
|
822
|
+
]
|
|
823
|
+
}
|
|
824
|
+
)
|
|
825
|
+
] })
|
|
826
|
+
}
|
|
827
|
+
);
|
|
828
|
+
}
|
|
829
|
+
const _r = {
|
|
830
|
+
"rp-switch": "rp_Switch-module_rp-switch_quCmAsFW",
|
|
831
|
+
"rp-switch__thumb": "rp_Switch-module_rp-switch__thumb_1FG-nQur"
|
|
832
|
+
}, Jr = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
833
|
+
tr.Root,
|
|
834
|
+
{
|
|
835
|
+
className: t(_r["rp-switch"], e),
|
|
836
|
+
...r
|
|
837
|
+
}
|
|
838
|
+
), Xr = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
839
|
+
tr.Thumb,
|
|
840
|
+
{
|
|
841
|
+
className: t(_r["rp-switch__thumb"], e),
|
|
842
|
+
...r
|
|
843
|
+
}
|
|
844
|
+
), me = {
|
|
845
|
+
"rp-switch-row": "rp_Switch-module_rp-switch-row_5zPFPiu5",
|
|
846
|
+
"rp-switch-row--md": "rp_Switch-module_rp-switch-row--md_rTbUOM4K",
|
|
847
|
+
"rp-switch--md": "rp_Switch-module_rp-switch--md_-O6wex4p",
|
|
848
|
+
"rp-switch__thumb--md": "rp_Switch-module_rp-switch__thumb--md_nVPmG0Di"
|
|
849
|
+
}, Zr = ({
|
|
850
|
+
checked: e,
|
|
851
|
+
onCheckedChange: r,
|
|
852
|
+
label: n,
|
|
853
|
+
disabled: c,
|
|
854
|
+
className: i,
|
|
855
|
+
size: s = "sm",
|
|
856
|
+
...d
|
|
857
|
+
}) => {
|
|
858
|
+
const b = ue();
|
|
859
|
+
return /* @__PURE__ */ l(
|
|
860
|
+
"div",
|
|
861
|
+
{
|
|
862
|
+
className: t(
|
|
863
|
+
me["rp-switch-row"],
|
|
864
|
+
s === "md" && me["rp-switch-row--md"],
|
|
865
|
+
i
|
|
866
|
+
),
|
|
867
|
+
children: [
|
|
868
|
+
/* @__PURE__ */ o(
|
|
869
|
+
Jr,
|
|
870
|
+
{
|
|
871
|
+
id: n != null ? b : void 0,
|
|
872
|
+
checked: e,
|
|
873
|
+
onCheckedChange: r,
|
|
874
|
+
disabled: c,
|
|
875
|
+
className: t(s === "md" && me["rp-switch--md"]),
|
|
876
|
+
...d,
|
|
877
|
+
children: /* @__PURE__ */ o(
|
|
878
|
+
Xr,
|
|
879
|
+
{
|
|
880
|
+
className: t(s === "md" && me["rp-switch__thumb--md"])
|
|
881
|
+
}
|
|
882
|
+
)
|
|
883
|
+
}
|
|
884
|
+
),
|
|
885
|
+
n != null && /* @__PURE__ */ o(er, { htmlFor: b, children: n })
|
|
886
|
+
]
|
|
887
|
+
}
|
|
888
|
+
);
|
|
889
|
+
}, U = {
|
|
890
|
+
"rp-popover__anchor": "rp_Popover-module_rp-popover__anchor_fCp8r1Hi",
|
|
891
|
+
"rp-popover__trigger": "rp_Popover-module_rp-popover__trigger_q70DKki-",
|
|
892
|
+
"rp-popover__content": "rp_Popover-module_rp-popover__content_LxLJ66Wo",
|
|
893
|
+
"rp-popover__arrow": "rp_Popover-module_rp-popover__arrow_hPQuGL8y",
|
|
894
|
+
"rp-popover__title": "rp_Popover-module_rp-popover__title_iWvbiv3A",
|
|
895
|
+
"rp-popover__description": "rp_Popover-module_rp-popover__description_0zfGOi0U",
|
|
896
|
+
"rp-popover__close": "rp_Popover-module_rp-popover__close_gYRn7nOx"
|
|
897
|
+
}, eo = (e) => /* @__PURE__ */ o(R.Root, { ...e }), Kt = ({
|
|
898
|
+
className: e,
|
|
899
|
+
...r
|
|
900
|
+
}) => /* @__PURE__ */ o(
|
|
901
|
+
R.Anchor,
|
|
902
|
+
{
|
|
903
|
+
className: t(U["rp-popover__anchor"], e),
|
|
904
|
+
...r
|
|
905
|
+
}
|
|
906
|
+
), ro = ({
|
|
907
|
+
className: e,
|
|
908
|
+
...r
|
|
909
|
+
}) => /* @__PURE__ */ o(
|
|
910
|
+
R.Trigger,
|
|
911
|
+
{
|
|
912
|
+
className: t(U["rp-popover__trigger"], e),
|
|
913
|
+
...r
|
|
914
|
+
}
|
|
915
|
+
), oo = R.Portal, to = ({
|
|
916
|
+
className: e,
|
|
917
|
+
...r
|
|
918
|
+
}) => /* @__PURE__ */ o(
|
|
919
|
+
R.Content,
|
|
920
|
+
{
|
|
921
|
+
className: t(U["rp-popover__content"], e),
|
|
922
|
+
...r
|
|
923
|
+
}
|
|
924
|
+
), Qt = ({
|
|
925
|
+
className: e,
|
|
926
|
+
...r
|
|
927
|
+
}) => /* @__PURE__ */ o(
|
|
928
|
+
R.Arrow,
|
|
929
|
+
{
|
|
930
|
+
className: t(U["rp-popover__arrow"], e),
|
|
931
|
+
...r
|
|
932
|
+
}
|
|
933
|
+
), jt = ({
|
|
934
|
+
className: e,
|
|
935
|
+
...r
|
|
936
|
+
}) => /* @__PURE__ */ o(
|
|
937
|
+
R.Close,
|
|
938
|
+
{
|
|
939
|
+
className: t(U["rp-popover__close"], e),
|
|
940
|
+
...r
|
|
941
|
+
}
|
|
942
|
+
), Yt = ({
|
|
943
|
+
className: e,
|
|
944
|
+
...r
|
|
945
|
+
}) => /* @__PURE__ */ o(
|
|
946
|
+
R.Title,
|
|
947
|
+
{
|
|
948
|
+
className: t(U["rp-popover__title"], e),
|
|
949
|
+
...r
|
|
950
|
+
}
|
|
951
|
+
), Jt = ({
|
|
952
|
+
className: e,
|
|
953
|
+
...r
|
|
954
|
+
}) => /* @__PURE__ */ o(
|
|
955
|
+
R.Description,
|
|
956
|
+
{
|
|
957
|
+
className: t(U["rp-popover__description"], e),
|
|
958
|
+
...r
|
|
959
|
+
}
|
|
960
|
+
), $ = ({ size: e = 16, ...r }) => ({
|
|
961
|
+
width: e,
|
|
962
|
+
height: e,
|
|
963
|
+
viewBox: "0 0 16 16",
|
|
964
|
+
fill: "none",
|
|
965
|
+
stroke: "currentColor",
|
|
966
|
+
strokeWidth: 1.5,
|
|
967
|
+
strokeLinecap: "round",
|
|
968
|
+
strokeLinejoin: "round",
|
|
969
|
+
"aria-hidden": !0,
|
|
970
|
+
...r
|
|
971
|
+
}), Be = (e) => /* @__PURE__ */ l("svg", { ...$(e), children: [
|
|
972
|
+
/* @__PURE__ */ o("path", { d: "M8 1.6 14 5v6l-6 3.4L2 11V5z" }),
|
|
973
|
+
/* @__PURE__ */ o("path", { d: "m2 5 6 3 6-3M8 8v6.4" })
|
|
974
|
+
] }), ao = (e) => /* @__PURE__ */ o("svg", { ...$(e), strokeWidth: 1.8, children: /* @__PURE__ */ o("path", { d: "m3.2 8.4 3.1 3.1 6.5-6.9" }) }), no = (e) => /* @__PURE__ */ o("svg", { ...$(e), children: /* @__PURE__ */ o("path", { d: "m4 6 4 4 4-4" }) }), lo = (e) => /* @__PURE__ */ l("svg", { ...$(e), children: [
|
|
975
|
+
/* @__PURE__ */ o("circle", { cx: "7.2", cy: "7.2", r: "4.4" }),
|
|
976
|
+
/* @__PURE__ */ o("path", { d: "m10.5 10.5 3 3" })
|
|
977
|
+
] }), _o = (e) => /* @__PURE__ */ l("svg", { ...$(e), strokeWidth: 1.4, children: [
|
|
978
|
+
/* @__PURE__ */ o("rect", { x: "2.5", y: "2.5", width: "4.2", height: "4.2", rx: "0.8" }),
|
|
979
|
+
/* @__PURE__ */ o("rect", { x: "9.3", y: "2.5", width: "4.2", height: "4.2", rx: "0.8" }),
|
|
980
|
+
/* @__PURE__ */ o("rect", { x: "2.5", y: "9.3", width: "4.2", height: "4.2", rx: "0.8" }),
|
|
981
|
+
/* @__PURE__ */ o("rect", { x: "9.3", y: "9.3", width: "4.2", height: "4.2", rx: "0.8" })
|
|
982
|
+
] }), sr = ({
|
|
983
|
+
filled: e = !1,
|
|
984
|
+
...r
|
|
985
|
+
}) => /* @__PURE__ */ o(
|
|
986
|
+
"svg",
|
|
987
|
+
{
|
|
988
|
+
...$(r),
|
|
989
|
+
strokeWidth: 1.4,
|
|
990
|
+
fill: e ? "currentColor" : "none",
|
|
991
|
+
children: /* @__PURE__ */ o("path", { d: "m8 2 1.8 3.7 4.1.6-3 2.9.7 4.1L8 11.4l-3.6 1.9.7-4.1-3-2.9 4.1-.6z" })
|
|
992
|
+
}
|
|
993
|
+
), so = ({
|
|
994
|
+
filled: e = !1,
|
|
995
|
+
...r
|
|
996
|
+
}) => /* @__PURE__ */ o(
|
|
997
|
+
"svg",
|
|
998
|
+
{
|
|
999
|
+
...$(r),
|
|
1000
|
+
strokeWidth: 1.4,
|
|
1001
|
+
fill: e ? "currentColor" : "none",
|
|
1002
|
+
children: /* @__PURE__ */ o("path", { d: "M9.25 1.75 3.75 9h4l-1 5.25L12.25 7h-4z" })
|
|
1003
|
+
}
|
|
1004
|
+
), co = (e) => /* @__PURE__ */ l("svg", { ...$(e), fill: "currentColor", stroke: "none", children: [
|
|
1005
|
+
/* @__PURE__ */ o("circle", { cx: "8", cy: "3.2", r: "1.25" }),
|
|
1006
|
+
/* @__PURE__ */ o("circle", { cx: "8", cy: "8", r: "1.25" }),
|
|
1007
|
+
/* @__PURE__ */ o("circle", { cx: "8", cy: "12.8", r: "1.25" })
|
|
1008
|
+
] }), io = (e) => /* @__PURE__ */ l("svg", { ...$(e), children: [
|
|
1009
|
+
/* @__PURE__ */ o("rect", { x: "2.2", y: "2.2", width: "11.6", height: "11.6", rx: "2.4" }),
|
|
1010
|
+
/* @__PURE__ */ o("path", { d: "M5.4 8.1 7.2 10l3.4-3.8" })
|
|
1011
|
+
] }), _ = {
|
|
1012
|
+
"rp-model-selector__trigger": "rp_ModelSelector-module_rp-model-selector__trigger_MzaTqrSr",
|
|
1013
|
+
"rp-model-selector__trigger-icon": "rp_ModelSelector-module_rp-model-selector__trigger-icon_1kOlE4Pt",
|
|
1014
|
+
"rp-model-selector__trigger-label": "rp_ModelSelector-module_rp-model-selector__trigger-label_3oumlH4T",
|
|
1015
|
+
"rp-model-selector__trigger-label--placeholder": "rp_ModelSelector-module_rp-model-selector__trigger-label--placeholder_2IZwiiM5",
|
|
1016
|
+
"rp-model-selector__trigger-chevron": "rp_ModelSelector-module_rp-model-selector__trigger-chevron_jG2Rc8Qp",
|
|
1017
|
+
"rp-model-selector__content": "rp_ModelSelector-module_rp-model-selector__content_dGQMynJE",
|
|
1018
|
+
"rp-model-selector__search": "rp_ModelSelector-module_rp-model-selector__search_IEbfesVx",
|
|
1019
|
+
"rp-model-selector__search-icon": "rp_ModelSelector-module_rp-model-selector__search-icon_u-864HKj",
|
|
1020
|
+
"rp-model-selector__input": "rp_ModelSelector-module_rp-model-selector__input_MMLV8ffH",
|
|
1021
|
+
"rp-model-selector__body": "rp_ModelSelector-module_rp-model-selector__body_YKpBnNNe",
|
|
1022
|
+
"rp-model-selector__rail": "rp_ModelSelector-module_rp-model-selector__rail_esnpvEMT",
|
|
1023
|
+
"rp-model-selector__rail-button": "rp_ModelSelector-module_rp-model-selector__rail-button_juT00OCB",
|
|
1024
|
+
"rp-model-selector__rail-icon": "rp_ModelSelector-module_rp-model-selector__rail-icon_ZW-IJgfd",
|
|
1025
|
+
"rp-model-selector__rail-sep": "rp_ModelSelector-module_rp-model-selector__rail-sep_jv5KI1Hc",
|
|
1026
|
+
"rp-model-selector__list-wrap": "rp_ModelSelector-module_rp-model-selector__list-wrap_qy62y-Q5",
|
|
1027
|
+
"rp-model-selector__list": "rp_ModelSelector-module_rp-model-selector__list_Hw9GUarl",
|
|
1028
|
+
"rp-model-selector__group": "rp_ModelSelector-module_rp-model-selector__group_fYtzU-PM",
|
|
1029
|
+
"rp-model-selector__row": "rp_ModelSelector-module_rp-model-selector__row_-PdgVDvL",
|
|
1030
|
+
"rp-model-selector__row-icon": "rp_ModelSelector-module_rp-model-selector__row-icon_Ja1VYX3I",
|
|
1031
|
+
"rp-model-selector__row-words": "rp_ModelSelector-module_rp-model-selector__row-words_MXUea-Kw",
|
|
1032
|
+
"rp-model-selector__row-label": "rp_ModelSelector-module_rp-model-selector__row-label_VEYgW45S",
|
|
1033
|
+
"rp-model-selector__row-badge": "rp_ModelSelector-module_rp-model-selector__row-badge_lhQXyPNg",
|
|
1034
|
+
"rp-model-selector__row-note": "rp_ModelSelector-module_rp-model-selector__row-note_i-qS6XWR",
|
|
1035
|
+
"rp-model-selector__action": "rp_ModelSelector-module_rp-model-selector__action_kftDTJAQ",
|
|
1036
|
+
"rp-model-selector__action--on": "rp_ModelSelector-module_rp-model-selector__action--on_XRVSaIkZ",
|
|
1037
|
+
"rp-model-selector__action--fast": "rp_ModelSelector-module_rp-model-selector__action--fast_swyk22XB",
|
|
1038
|
+
"rp-model-selector__check": "rp_ModelSelector-module_rp-model-selector__check_4fMdbJBc",
|
|
1039
|
+
"rp-model-selector__empty": "rp_ModelSelector-module_rp-model-selector__empty_fAYTYNEf",
|
|
1040
|
+
"rp-model-selector__loading": "rp_ModelSelector-module_rp-model-selector__loading_OMyV0I0V",
|
|
1041
|
+
"rp-model-selector__loading-row": "rp_ModelSelector-module_rp-model-selector__loading-row_oUV9CQ8Q",
|
|
1042
|
+
"rp-model-selector__loading-icon": "rp_ModelSelector-module_rp-model-selector__loading-icon_DAE7isoB",
|
|
1043
|
+
"rp-model-selector__loading-bar": "rp_ModelSelector-module_rp-model-selector__loading-bar_sVD5mGdP",
|
|
1044
|
+
"rp-model-selector__footer": "rp_ModelSelector-module_rp-model-selector__footer_KuF7JuKO"
|
|
1045
|
+
}, po = (e, r) => e.find((n) => n.group === r && n.railIcon)?.railIcon ?? e.find((n) => n.group === r && n.icon)?.icon ?? /* @__PURE__ */ o(Be, {}), mo = ({
|
|
1046
|
+
options: e,
|
|
1047
|
+
value: r,
|
|
1048
|
+
onValueChange: n,
|
|
1049
|
+
open: c,
|
|
1050
|
+
onOpenChange: i,
|
|
1051
|
+
disabled: s,
|
|
1052
|
+
loading: d,
|
|
1053
|
+
placeholder: b = "Filter, or type any model id…",
|
|
1054
|
+
emptyLabel: x = "No models available yet.",
|
|
1055
|
+
noMatchesLabel: m = "No matches.",
|
|
1056
|
+
favoritesEmptyLabel: k = "No favorites yet.",
|
|
1057
|
+
allLabel: y = "All models",
|
|
1058
|
+
favoritesLabel: I = "Favorites",
|
|
1059
|
+
searchLabel: P = "Filter models",
|
|
1060
|
+
showRail: ve = !0,
|
|
1061
|
+
defaultView: re = "all",
|
|
1062
|
+
initialQuery: q = "",
|
|
1063
|
+
fallbackIcon: Ne,
|
|
1064
|
+
ariaLabel: se,
|
|
1065
|
+
triggerClassName: fe,
|
|
1066
|
+
closeOnSelect: oe = !0,
|
|
1067
|
+
onFavoriteChange: we,
|
|
1068
|
+
onFastChange: Me,
|
|
1069
|
+
rowMenuItems: ce,
|
|
1070
|
+
footer: de,
|
|
1071
|
+
align: ie = "start",
|
|
1072
|
+
className: Ce
|
|
1073
|
+
}) => {
|
|
1074
|
+
const [Se, xe] = A(!1), L = c ?? Se, [D, He] = A(q), [V, Ve] = A(re), [dr, te] = A(0), [ke, ir] = A({}), [pr, mr] = A(
|
|
1075
|
+
{}
|
|
1076
|
+
), Oe = wr(!1), Te = ue(), K = ue(), ze = e.find((a) => a.value === r), pe = ze?.label ?? r ?? "", ye = (a) => ke[a.value] ?? !!a.favorite, We = (a) => pr[a.value] ?? !!a.fast, ur = Pe(
|
|
1077
|
+
() => Array.from(
|
|
1078
|
+
new Set(
|
|
1079
|
+
e.map((a) => a.group).filter((a) => !!a)
|
|
1080
|
+
)
|
|
1081
|
+
),
|
|
1082
|
+
[e]
|
|
1083
|
+
), gr = e.some(ye), h = Pe(() => {
|
|
1084
|
+
const a = D.trim().toLowerCase(), u = (p) => ke[p.value] ?? !!p.favorite;
|
|
1085
|
+
return e.filter((p) => V === "favorites" && !u(p) || V !== "all" && V !== "favorites" && p.group !== V ? !1 : a ? [
|
|
1086
|
+
p.label,
|
|
1087
|
+
p.value,
|
|
1088
|
+
p.note,
|
|
1089
|
+
p.badge,
|
|
1090
|
+
p.group
|
|
1091
|
+
].filter(Boolean).some((M) => M.toLowerCase().includes(a)) : !0);
|
|
1092
|
+
}, [e, D, V, ke]), Ee = Pe(() => {
|
|
1093
|
+
const a = [];
|
|
1094
|
+
let u, p = 0;
|
|
1095
|
+
for (const M of h)
|
|
1096
|
+
!D.trim() && M.group && M.group !== u && a.push({
|
|
1097
|
+
kind: "group",
|
|
1098
|
+
key: `group:${M.group}:${p}`,
|
|
1099
|
+
group: M.group
|
|
1100
|
+
}), D.trim() || (u = M.group), a.push({ kind: "option", option: M, index: p }), p += 1;
|
|
1101
|
+
return a;
|
|
1102
|
+
}, [D, h]), B = h.length === 0 ? 0 : Math.min(dr, h.length - 1);
|
|
1103
|
+
Qe(() => {
|
|
1104
|
+
L && !Oe.current && (He(q), Ve(re), te(
|
|
1105
|
+
Math.max(
|
|
1106
|
+
0,
|
|
1107
|
+
e.findIndex((a) => a.value === r)
|
|
1108
|
+
)
|
|
1109
|
+
)), Oe.current = L;
|
|
1110
|
+
}, [L, q, re, e, r]), Qe(() => {
|
|
1111
|
+
if (!L) return;
|
|
1112
|
+
const a = `${K}-option-${B}`;
|
|
1113
|
+
document.getElementById(a)?.scrollIntoView({ block: "nearest" });
|
|
1114
|
+
}, [L, K, B]);
|
|
1115
|
+
const Ue = (a) => {
|
|
1116
|
+
c === void 0 && xe(a), i?.(a);
|
|
1117
|
+
}, qe = (a) => {
|
|
1118
|
+
if (!h.length) return;
|
|
1119
|
+
const u = a >= B ? 1 : -1;
|
|
1120
|
+
let p = (a % h.length + h.length) % h.length;
|
|
1121
|
+
for (let M = 0; M < h.length; M += 1) {
|
|
1122
|
+
if (!h[p].disabled) {
|
|
1123
|
+
te(p);
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
p = (p + u + h.length) % h.length;
|
|
1127
|
+
}
|
|
1128
|
+
}, Ke = (a) => {
|
|
1129
|
+
a.disabled || (n?.(a.value), oe && Ue(!1));
|
|
1130
|
+
}, br = (a) => {
|
|
1131
|
+
const u = !ye(a);
|
|
1132
|
+
ir((p) => ({ ...p, [a.value]: u })), we?.(a.value, u);
|
|
1133
|
+
}, hr = (a) => {
|
|
1134
|
+
const u = !We(a);
|
|
1135
|
+
mr((p) => ({ ...p, [a.value]: u })), Me?.(a.value, u);
|
|
1136
|
+
}, vr = (a) => {
|
|
1137
|
+
if (a.key === "ArrowDown" || a.key === "ArrowUp") {
|
|
1138
|
+
a.preventDefault(), qe(B + (a.key === "ArrowDown" ? 1 : -1));
|
|
1139
|
+
return;
|
|
1140
|
+
}
|
|
1141
|
+
if (a.key === "Home" || a.key === "End") {
|
|
1142
|
+
a.preventDefault(), qe(a.key === "Home" ? 0 : h.length - 1);
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
a.key === "Enter" && a.target instanceof HTMLInputElement && h[B] && (a.preventDefault(), Ke(h[B]));
|
|
1146
|
+
}, Ie = (a, u, p, M = !1) => /* @__PURE__ */ l(Mr, { children: [
|
|
1147
|
+
M && /* @__PURE__ */ o(
|
|
1148
|
+
"span",
|
|
1149
|
+
{
|
|
1150
|
+
className: _["rp-model-selector__rail-sep"],
|
|
1151
|
+
"aria-hidden": "true"
|
|
1152
|
+
}
|
|
1153
|
+
),
|
|
1154
|
+
/* @__PURE__ */ o(
|
|
1155
|
+
"button",
|
|
1156
|
+
{
|
|
1157
|
+
type: "button",
|
|
1158
|
+
className: _["rp-model-selector__rail-button"],
|
|
1159
|
+
"aria-pressed": V === a,
|
|
1160
|
+
"aria-label": u,
|
|
1161
|
+
title: u,
|
|
1162
|
+
onClick: () => {
|
|
1163
|
+
Ve(a), te(0), document.getElementById(Te)?.focus();
|
|
1164
|
+
},
|
|
1165
|
+
children: /* @__PURE__ */ o(
|
|
1166
|
+
"span",
|
|
1167
|
+
{
|
|
1168
|
+
className: _["rp-model-selector__rail-icon"],
|
|
1169
|
+
"aria-hidden": "true",
|
|
1170
|
+
children: p
|
|
1171
|
+
}
|
|
1172
|
+
)
|
|
1173
|
+
}
|
|
1174
|
+
)
|
|
1175
|
+
] }, a), Nr = V === "favorites" && !gr ? k : e.length === 0 ? x : m;
|
|
1176
|
+
return /* @__PURE__ */ l(eo, { open: L, onOpenChange: Ue, modal: !1, children: [
|
|
1177
|
+
/* @__PURE__ */ l(
|
|
1178
|
+
ro,
|
|
1179
|
+
{
|
|
1180
|
+
className: t(
|
|
1181
|
+
_["rp-model-selector__trigger"],
|
|
1182
|
+
s && _["rp-model-selector__trigger--disabled"],
|
|
1183
|
+
fe
|
|
1184
|
+
),
|
|
1185
|
+
disabled: s,
|
|
1186
|
+
"aria-label": se ?? (pe ? `Model: ${pe}. Change model` : "Select a model"),
|
|
1187
|
+
children: [
|
|
1188
|
+
/* @__PURE__ */ o(
|
|
1189
|
+
"span",
|
|
1190
|
+
{
|
|
1191
|
+
className: _["rp-model-selector__trigger-icon"],
|
|
1192
|
+
"aria-hidden": "true",
|
|
1193
|
+
children: ze?.icon ?? Ne ?? /* @__PURE__ */ o(Be, {})
|
|
1194
|
+
}
|
|
1195
|
+
),
|
|
1196
|
+
/* @__PURE__ */ o(
|
|
1197
|
+
"span",
|
|
1198
|
+
{
|
|
1199
|
+
className: t(
|
|
1200
|
+
_["rp-model-selector__trigger-label"],
|
|
1201
|
+
!pe && _["rp-model-selector__trigger-label--placeholder"]
|
|
1202
|
+
),
|
|
1203
|
+
children: pe || "Select a model…"
|
|
1204
|
+
}
|
|
1205
|
+
),
|
|
1206
|
+
/* @__PURE__ */ o(
|
|
1207
|
+
"span",
|
|
1208
|
+
{
|
|
1209
|
+
className: _["rp-model-selector__trigger-chevron"],
|
|
1210
|
+
"aria-hidden": "true",
|
|
1211
|
+
children: /* @__PURE__ */ o(no, { size: 15 })
|
|
1212
|
+
}
|
|
1213
|
+
)
|
|
1214
|
+
]
|
|
1215
|
+
}
|
|
1216
|
+
),
|
|
1217
|
+
/* @__PURE__ */ o(oo, { children: /* @__PURE__ */ l(
|
|
1218
|
+
to,
|
|
1219
|
+
{
|
|
1220
|
+
className: t(_["rp-model-selector__content"], Ce),
|
|
1221
|
+
side: "bottom",
|
|
1222
|
+
align: ie,
|
|
1223
|
+
sideOffset: 6,
|
|
1224
|
+
collisionPadding: 12,
|
|
1225
|
+
onOpenAutoFocus: (a) => {
|
|
1226
|
+
a.preventDefault(), document.getElementById(Te)?.focus();
|
|
1227
|
+
},
|
|
1228
|
+
onKeyDown: vr,
|
|
1229
|
+
children: [
|
|
1230
|
+
/* @__PURE__ */ l("div", { className: _["rp-model-selector__search"], children: [
|
|
1231
|
+
/* @__PURE__ */ o(
|
|
1232
|
+
"span",
|
|
1233
|
+
{
|
|
1234
|
+
className: _["rp-model-selector__search-icon"],
|
|
1235
|
+
"aria-hidden": "true",
|
|
1236
|
+
children: /* @__PURE__ */ o(lo, { size: 15 })
|
|
1237
|
+
}
|
|
1238
|
+
),
|
|
1239
|
+
/* @__PURE__ */ o(
|
|
1240
|
+
Sr,
|
|
1241
|
+
{
|
|
1242
|
+
id: Te,
|
|
1243
|
+
className: _["rp-model-selector__input"],
|
|
1244
|
+
value: D,
|
|
1245
|
+
onChange: (a) => {
|
|
1246
|
+
He(a.target.value), te(0);
|
|
1247
|
+
},
|
|
1248
|
+
placeholder: b,
|
|
1249
|
+
role: "combobox",
|
|
1250
|
+
"aria-label": P,
|
|
1251
|
+
"aria-expanded": "true",
|
|
1252
|
+
"aria-controls": K,
|
|
1253
|
+
"aria-autocomplete": "list",
|
|
1254
|
+
"aria-activedescendant": h.length ? `${K}-option-${B}` : void 0,
|
|
1255
|
+
autoComplete: "off",
|
|
1256
|
+
spellCheck: !1
|
|
1257
|
+
}
|
|
1258
|
+
)
|
|
1259
|
+
] }),
|
|
1260
|
+
/* @__PURE__ */ l("div", { className: _["rp-model-selector__body"], children: [
|
|
1261
|
+
ve && /* @__PURE__ */ l(
|
|
1262
|
+
"div",
|
|
1263
|
+
{
|
|
1264
|
+
className: _["rp-model-selector__rail"],
|
|
1265
|
+
role: "group",
|
|
1266
|
+
"aria-label": "Model lists",
|
|
1267
|
+
children: [
|
|
1268
|
+
Ie("all", y, /* @__PURE__ */ o(_o, { size: 15 })),
|
|
1269
|
+
Ie(
|
|
1270
|
+
"favorites",
|
|
1271
|
+
I,
|
|
1272
|
+
/* @__PURE__ */ o(sr, { size: 16 })
|
|
1273
|
+
),
|
|
1274
|
+
ur.map(
|
|
1275
|
+
(a, u) => Ie(
|
|
1276
|
+
a,
|
|
1277
|
+
a,
|
|
1278
|
+
po(e, a),
|
|
1279
|
+
u === 0
|
|
1280
|
+
)
|
|
1281
|
+
)
|
|
1282
|
+
]
|
|
1283
|
+
}
|
|
1284
|
+
),
|
|
1285
|
+
/* @__PURE__ */ l("div", { className: _["rp-model-selector__list-wrap"], children: [
|
|
1286
|
+
d ? /* @__PURE__ */ o(
|
|
1287
|
+
"div",
|
|
1288
|
+
{
|
|
1289
|
+
className: _["rp-model-selector__loading"],
|
|
1290
|
+
role: "status",
|
|
1291
|
+
"aria-label": "Loading models",
|
|
1292
|
+
children: [0, 1, 2, 3, 4].map((a) => /* @__PURE__ */ l(
|
|
1293
|
+
"span",
|
|
1294
|
+
{
|
|
1295
|
+
className: _["rp-model-selector__loading-row"],
|
|
1296
|
+
children: [
|
|
1297
|
+
/* @__PURE__ */ o(
|
|
1298
|
+
"span",
|
|
1299
|
+
{
|
|
1300
|
+
className: _["rp-model-selector__loading-icon"]
|
|
1301
|
+
}
|
|
1302
|
+
),
|
|
1303
|
+
/* @__PURE__ */ o(
|
|
1304
|
+
"span",
|
|
1305
|
+
{
|
|
1306
|
+
className: _["rp-model-selector__loading-bar"]
|
|
1307
|
+
}
|
|
1308
|
+
)
|
|
1309
|
+
]
|
|
1310
|
+
},
|
|
1311
|
+
a
|
|
1312
|
+
))
|
|
1313
|
+
}
|
|
1314
|
+
) : Ee.length === 0 ? /* @__PURE__ */ o(
|
|
1315
|
+
"div",
|
|
1316
|
+
{
|
|
1317
|
+
className: _["rp-model-selector__empty"],
|
|
1318
|
+
role: "status",
|
|
1319
|
+
children: Nr
|
|
1320
|
+
}
|
|
1321
|
+
) : /* @__PURE__ */ o(
|
|
1322
|
+
"div",
|
|
1323
|
+
{
|
|
1324
|
+
className: _["rp-model-selector__list"],
|
|
1325
|
+
id: K,
|
|
1326
|
+
role: "listbox",
|
|
1327
|
+
"aria-label": "Models",
|
|
1328
|
+
children: Ee.map(
|
|
1329
|
+
(a) => a.kind === "group" ? /* @__PURE__ */ o(
|
|
1330
|
+
"div",
|
|
1331
|
+
{
|
|
1332
|
+
className: _["rp-model-selector__group"],
|
|
1333
|
+
role: "presentation",
|
|
1334
|
+
children: a.group
|
|
1335
|
+
},
|
|
1336
|
+
a.key
|
|
1337
|
+
) : /* @__PURE__ */ o(
|
|
1338
|
+
uo,
|
|
1339
|
+
{
|
|
1340
|
+
option: a.option,
|
|
1341
|
+
id: `${K}-option-${a.index}`,
|
|
1342
|
+
active: a.index === B,
|
|
1343
|
+
selected: a.option.value === r,
|
|
1344
|
+
favorite: ye(a.option),
|
|
1345
|
+
fast: We(a.option),
|
|
1346
|
+
showFast: a.option.fast !== void 0,
|
|
1347
|
+
onHover: () => {
|
|
1348
|
+
a.option.disabled || te(a.index);
|
|
1349
|
+
},
|
|
1350
|
+
onSelect: () => Ke(a.option),
|
|
1351
|
+
onToggleFavorite: () => br(a.option),
|
|
1352
|
+
onToggleFast: () => hr(a.option),
|
|
1353
|
+
menu: ce ? ce(a.option) : void 0
|
|
1354
|
+
},
|
|
1355
|
+
a.option.value
|
|
1356
|
+
)
|
|
1357
|
+
)
|
|
1358
|
+
}
|
|
1359
|
+
),
|
|
1360
|
+
de && /* @__PURE__ */ o("div", { className: _["rp-model-selector__footer"], children: de })
|
|
1361
|
+
] })
|
|
1362
|
+
] })
|
|
1363
|
+
]
|
|
1364
|
+
}
|
|
1365
|
+
) })
|
|
1366
|
+
] });
|
|
1367
|
+
}, uo = ({
|
|
1368
|
+
option: e,
|
|
1369
|
+
id: r,
|
|
1370
|
+
active: n,
|
|
1371
|
+
selected: c,
|
|
1372
|
+
favorite: i,
|
|
1373
|
+
fast: s,
|
|
1374
|
+
showFast: d,
|
|
1375
|
+
onHover: b,
|
|
1376
|
+
onSelect: x,
|
|
1377
|
+
onToggleFavorite: m,
|
|
1378
|
+
onToggleFast: k,
|
|
1379
|
+
menu: y
|
|
1380
|
+
}) => {
|
|
1381
|
+
const I = (P) => P.stopPropagation();
|
|
1382
|
+
return /* @__PURE__ */ l(
|
|
1383
|
+
"div",
|
|
1384
|
+
{
|
|
1385
|
+
id: r,
|
|
1386
|
+
className: _["rp-model-selector__row"],
|
|
1387
|
+
role: "option",
|
|
1388
|
+
"aria-selected": c,
|
|
1389
|
+
"aria-disabled": e.disabled || void 0,
|
|
1390
|
+
"data-active": n || void 0,
|
|
1391
|
+
onMouseMove: b,
|
|
1392
|
+
onClick: x,
|
|
1393
|
+
children: [
|
|
1394
|
+
/* @__PURE__ */ o(
|
|
1395
|
+
"span",
|
|
1396
|
+
{
|
|
1397
|
+
className: _["rp-model-selector__row-icon"],
|
|
1398
|
+
"aria-hidden": "true",
|
|
1399
|
+
children: e.icon ?? /* @__PURE__ */ o(Be, {})
|
|
1400
|
+
}
|
|
1401
|
+
),
|
|
1402
|
+
/* @__PURE__ */ l("span", { className: _["rp-model-selector__row-words"], children: [
|
|
1403
|
+
/* @__PURE__ */ o("span", { className: _["rp-model-selector__row-label"], children: e.label }),
|
|
1404
|
+
e.badge && /* @__PURE__ */ o("span", { className: _["rp-model-selector__row-badge"], children: e.badge }),
|
|
1405
|
+
e.note && /* @__PURE__ */ o("span", { className: _["rp-model-selector__row-note"], children: e.note })
|
|
1406
|
+
] }),
|
|
1407
|
+
d && /* @__PURE__ */ o(
|
|
1408
|
+
"button",
|
|
1409
|
+
{
|
|
1410
|
+
type: "button",
|
|
1411
|
+
className: t(
|
|
1412
|
+
_["rp-model-selector__action"],
|
|
1413
|
+
_["rp-model-selector__action--fast"],
|
|
1414
|
+
s && _["rp-model-selector__action--on"]
|
|
1415
|
+
),
|
|
1416
|
+
"aria-pressed": s,
|
|
1417
|
+
"aria-label": s ? `${e.label} is sent fast; send it at the usual speed` : `Send ${e.label} fast`,
|
|
1418
|
+
title: s ? "Sent fast" : "Send fast",
|
|
1419
|
+
onPointerDown: I,
|
|
1420
|
+
onClick: (P) => {
|
|
1421
|
+
I(P), k();
|
|
1422
|
+
},
|
|
1423
|
+
children: /* @__PURE__ */ o(so, { size: 14, filled: s })
|
|
1424
|
+
}
|
|
1425
|
+
),
|
|
1426
|
+
/* @__PURE__ */ o(
|
|
1427
|
+
"button",
|
|
1428
|
+
{
|
|
1429
|
+
type: "button",
|
|
1430
|
+
className: t(
|
|
1431
|
+
_["rp-model-selector__action"],
|
|
1432
|
+
_["rp-model-selector__action--favorite"],
|
|
1433
|
+
i && _["rp-model-selector__action--on"]
|
|
1434
|
+
),
|
|
1435
|
+
"aria-pressed": i,
|
|
1436
|
+
"aria-label": i ? `Remove ${e.label} from favorites` : `Add ${e.label} to favorites`,
|
|
1437
|
+
title: i ? "Remove from favorites" : "Add to favorites",
|
|
1438
|
+
onPointerDown: I,
|
|
1439
|
+
onClick: (P) => {
|
|
1440
|
+
I(P), m();
|
|
1441
|
+
},
|
|
1442
|
+
children: /* @__PURE__ */ o(sr, { size: 14, filled: i })
|
|
1443
|
+
}
|
|
1444
|
+
),
|
|
1445
|
+
y && /* @__PURE__ */ l(Vr, { children: [
|
|
1446
|
+
/* @__PURE__ */ o(Or, { asChild: !0, children: /* @__PURE__ */ o(
|
|
1447
|
+
"button",
|
|
1448
|
+
{
|
|
1449
|
+
type: "button",
|
|
1450
|
+
className: t(
|
|
1451
|
+
_["rp-model-selector__action"],
|
|
1452
|
+
_["rp-model-selector__action--menu"]
|
|
1453
|
+
),
|
|
1454
|
+
"aria-label": `Actions for ${e.label}`,
|
|
1455
|
+
onPointerDown: I,
|
|
1456
|
+
onClick: I,
|
|
1457
|
+
children: /* @__PURE__ */ o(co, { size: 14 })
|
|
1458
|
+
}
|
|
1459
|
+
) }),
|
|
1460
|
+
/* @__PURE__ */ o(zr, { children: /* @__PURE__ */ o(Wr, { align: "end", sideOffset: 4, children: y }) })
|
|
1461
|
+
] }),
|
|
1462
|
+
c && /* @__PURE__ */ o("span", { className: _["rp-model-selector__check"], "aria-hidden": "true", children: /* @__PURE__ */ o(ao, { size: 13 }) })
|
|
1463
|
+
]
|
|
1464
|
+
}
|
|
1465
|
+
);
|
|
1466
|
+
}, Xt = Er, f = {
|
|
1467
|
+
"rp-model-card": "rp_ModelCard-module_rp-model-card_uQ3rJ4T-",
|
|
1468
|
+
"rp-model-card--disabled": "rp_ModelCard-module_rp-model-card--disabled_ehH-TyTe",
|
|
1469
|
+
"rp-model-card__head": "rp_ModelCard-module_rp-model-card__head_DB6xfiMz",
|
|
1470
|
+
"rp-model-card__icon": "rp_ModelCard-module_rp-model-card__icon_ZhdDPyFf",
|
|
1471
|
+
"rp-model-card__who": "rp_ModelCard-module_rp-model-card__who_FR1wUPTf",
|
|
1472
|
+
"rp-model-card__title": "rp_ModelCard-module_rp-model-card__title_MLCTljCh",
|
|
1473
|
+
"rp-model-card__name": "rp_ModelCard-module_rp-model-card__name_9U-Kj-t-",
|
|
1474
|
+
"rp-model-card__version": "rp_ModelCard-module_rp-model-card__version_svsEovG5",
|
|
1475
|
+
"rp-model-card__status": "rp_ModelCard-module_rp-model-card__status_qcQdMiQP",
|
|
1476
|
+
"rp-model-card__dot": "rp_ModelCard-module_rp-model-card__dot_3cg6zmU-",
|
|
1477
|
+
"rp-model-card__status--connected": "rp_ModelCard-module_rp-model-card__status--connected_9InHUTPN",
|
|
1478
|
+
"rp-model-card__status--connecting": "rp_ModelCard-module_rp-model-card__status--connecting_a3L9aghL",
|
|
1479
|
+
"rp-model-card__status--error": "rp_ModelCard-module_rp-model-card__status--error_5x-wba9i",
|
|
1480
|
+
"rp-model-card__status--drift": "rp_ModelCard-module_rp-model-card__status--drift_mdBxWGIn",
|
|
1481
|
+
"rp-model-card__status-copy": "rp_ModelCard-module_rp-model-card__status-copy_4w2oEfDA",
|
|
1482
|
+
"rp-model-card__apply": "rp_ModelCard-module_rp-model-card__apply_4PN-wouF",
|
|
1483
|
+
"rp-model-card__switch": "rp_ModelCard-module_rp-model-card__switch_f4Tl-XtE",
|
|
1484
|
+
"rp-model-card__description": "rp_ModelCard-module_rp-model-card__description_EmkjevyB",
|
|
1485
|
+
"rp-model-card__footer": "rp_ModelCard-module_rp-model-card__footer_HzsDGG2a"
|
|
1486
|
+
}, go = {
|
|
1487
|
+
disconnected: "Not connected",
|
|
1488
|
+
connected: "Connected",
|
|
1489
|
+
connecting: "Connecting…",
|
|
1490
|
+
error: "Connection failed",
|
|
1491
|
+
drift: "Not connected · config changed"
|
|
1492
|
+
}, Zt = ({
|
|
1493
|
+
name: e,
|
|
1494
|
+
version: r,
|
|
1495
|
+
icon: n,
|
|
1496
|
+
status: c = "disconnected",
|
|
1497
|
+
statusLabel: i,
|
|
1498
|
+
description: s,
|
|
1499
|
+
checked: d,
|
|
1500
|
+
onCheckedChange: b,
|
|
1501
|
+
switchLabel: x,
|
|
1502
|
+
infoOnly: m,
|
|
1503
|
+
disabled: k,
|
|
1504
|
+
switchDisabled: y,
|
|
1505
|
+
modelSelectorDisabled: I,
|
|
1506
|
+
modelLoading: P,
|
|
1507
|
+
model: ve,
|
|
1508
|
+
onModelChange: re,
|
|
1509
|
+
models: q,
|
|
1510
|
+
selectorProps: Ne,
|
|
1511
|
+
onApply: se,
|
|
1512
|
+
applyLabel: fe = "Apply again",
|
|
1513
|
+
applying: oe,
|
|
1514
|
+
footer: we,
|
|
1515
|
+
className: Me
|
|
1516
|
+
}) => {
|
|
1517
|
+
const [ce, de] = A(
|
|
1518
|
+
c === "connected"
|
|
1519
|
+
), ie = d ?? ce, Ce = (D) => {
|
|
1520
|
+
d === void 0 && de(D), b?.(D);
|
|
1521
|
+
}, Se = !m && q !== void 0, xe = i ?? go[c], L = k || c === "connecting" || oe === !0;
|
|
1522
|
+
return /* @__PURE__ */ l(
|
|
1523
|
+
xr,
|
|
1524
|
+
{
|
|
1525
|
+
variant: "reference",
|
|
1526
|
+
className: t(
|
|
1527
|
+
f["rp-model-card"],
|
|
1528
|
+
k && f["rp-model-card--disabled"],
|
|
1529
|
+
Me
|
|
1530
|
+
),
|
|
1531
|
+
children: [
|
|
1532
|
+
/* @__PURE__ */ l("div", { className: f["rp-model-card__head"], children: [
|
|
1533
|
+
/* @__PURE__ */ o("span", { className: f["rp-model-card__icon"], "aria-hidden": "true", children: n ?? /* @__PURE__ */ o(io, { size: 30 }) }),
|
|
1534
|
+
/* @__PURE__ */ l("div", { className: f["rp-model-card__who"], children: [
|
|
1535
|
+
/* @__PURE__ */ l("div", { className: f["rp-model-card__title"], children: [
|
|
1536
|
+
/* @__PURE__ */ o("span", { className: f["rp-model-card__name"], children: e }),
|
|
1537
|
+
r && /* @__PURE__ */ o("span", { className: f["rp-model-card__version"], children: r })
|
|
1538
|
+
] }),
|
|
1539
|
+
/* @__PURE__ */ l(
|
|
1540
|
+
"div",
|
|
1541
|
+
{
|
|
1542
|
+
className: t(
|
|
1543
|
+
f["rp-model-card__status"],
|
|
1544
|
+
f[`rp-model-card__status--${c}`]
|
|
1545
|
+
),
|
|
1546
|
+
children: [
|
|
1547
|
+
/* @__PURE__ */ o("span", { className: f["rp-model-card__dot"], "aria-hidden": "true" }),
|
|
1548
|
+
/* @__PURE__ */ o("span", { className: f["rp-model-card__status-copy"], children: xe }),
|
|
1549
|
+
se && /* @__PURE__ */ o(
|
|
1550
|
+
"button",
|
|
1551
|
+
{
|
|
1552
|
+
type: "button",
|
|
1553
|
+
className: f["rp-model-card__apply"],
|
|
1554
|
+
onClick: se,
|
|
1555
|
+
disabled: oe,
|
|
1556
|
+
children: oe ? "Applying…" : fe
|
|
1557
|
+
}
|
|
1558
|
+
)
|
|
1559
|
+
]
|
|
1560
|
+
}
|
|
1561
|
+
)
|
|
1562
|
+
] }),
|
|
1563
|
+
/* @__PURE__ */ o(
|
|
1564
|
+
Zr,
|
|
1565
|
+
{
|
|
1566
|
+
size: "md",
|
|
1567
|
+
className: f["rp-model-card__switch"],
|
|
1568
|
+
checked: ie,
|
|
1569
|
+
onCheckedChange: Ce,
|
|
1570
|
+
disabled: L || y,
|
|
1571
|
+
"aria-label": x ?? `${ie ? "Disconnect" : "Connect"} ${e}`
|
|
1572
|
+
}
|
|
1573
|
+
)
|
|
1574
|
+
] }),
|
|
1575
|
+
s && /* @__PURE__ */ o("p", { className: f["rp-model-card__description"], children: s }),
|
|
1576
|
+
Se && /* @__PURE__ */ o(
|
|
1577
|
+
mo,
|
|
1578
|
+
{
|
|
1579
|
+
...Ne,
|
|
1580
|
+
options: q,
|
|
1581
|
+
value: ve,
|
|
1582
|
+
onValueChange: re,
|
|
1583
|
+
disabled: k || I || c === "connecting",
|
|
1584
|
+
loading: P,
|
|
1585
|
+
fallbackIcon: n
|
|
1586
|
+
}
|
|
1587
|
+
),
|
|
1588
|
+
we
|
|
1589
|
+
]
|
|
1590
|
+
}
|
|
1591
|
+
);
|
|
1592
|
+
}, G = {
|
|
1593
|
+
"rp-navigation-menu": "rp_NavigationMenu-module_rp-navigation-menu_-onoIbT8",
|
|
1594
|
+
"rp-navigation-menu__list": "rp_NavigationMenu-module_rp-navigation-menu__list_zVoA6x-m",
|
|
1595
|
+
"rp-navigation-menu__item": "rp_NavigationMenu-module_rp-navigation-menu__item_OWdQG-Bc",
|
|
1596
|
+
"rp-navigation-menu__trigger": "rp_NavigationMenu-module_rp-navigation-menu__trigger_zJHlQCB6",
|
|
1597
|
+
"rp-navigation-menu__link": "rp_NavigationMenu-module_rp-navigation-menu__link_pvCwK3PO",
|
|
1598
|
+
"rp-navigation-menu__indicator": "rp_NavigationMenu-module_rp-navigation-menu__indicator_ysmCyXxA",
|
|
1599
|
+
"rp-navigation-menu__content": "rp_NavigationMenu-module_rp-navigation-menu__content_wf0mHQd4",
|
|
1600
|
+
"rp-navigation-menu__sub": "rp_NavigationMenu-module_rp-navigation-menu__sub_qDU4LLvh",
|
|
1601
|
+
"rp-navigation-menu__viewport": "rp_NavigationMenu-module_rp-navigation-menu__viewport_gStnPT9g"
|
|
1602
|
+
}, ea = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1603
|
+
F.Root,
|
|
1604
|
+
{
|
|
1605
|
+
className: t(G["rp-navigation-menu"], e),
|
|
1606
|
+
...r
|
|
1607
|
+
}
|
|
1608
|
+
), ra = ({
|
|
1609
|
+
className: e,
|
|
1610
|
+
...r
|
|
1611
|
+
}) => /* @__PURE__ */ o(
|
|
1612
|
+
F.List,
|
|
1613
|
+
{
|
|
1614
|
+
className: t(G["rp-navigation-menu__list"], e),
|
|
1615
|
+
...r
|
|
1616
|
+
}
|
|
1617
|
+
), oa = ({
|
|
1618
|
+
className: e,
|
|
1619
|
+
...r
|
|
1620
|
+
}) => /* @__PURE__ */ o(
|
|
1621
|
+
F.Item,
|
|
1622
|
+
{
|
|
1623
|
+
className: t(G["rp-navigation-menu__item"], e),
|
|
1624
|
+
...r
|
|
1625
|
+
}
|
|
1626
|
+
), ta = ({
|
|
1627
|
+
className: e,
|
|
1628
|
+
...r
|
|
1629
|
+
}) => /* @__PURE__ */ o(
|
|
1630
|
+
F.Trigger,
|
|
1631
|
+
{
|
|
1632
|
+
className: t(G["rp-navigation-menu__trigger"], e),
|
|
1633
|
+
...r
|
|
1634
|
+
}
|
|
1635
|
+
), aa = ({
|
|
1636
|
+
className: e,
|
|
1637
|
+
...r
|
|
1638
|
+
}) => /* @__PURE__ */ o(
|
|
1639
|
+
F.Link,
|
|
1640
|
+
{
|
|
1641
|
+
className: t(G["rp-navigation-menu__link"], e),
|
|
1642
|
+
...r
|
|
1643
|
+
}
|
|
1644
|
+
), na = ({
|
|
1645
|
+
className: e,
|
|
1646
|
+
...r
|
|
1647
|
+
}) => /* @__PURE__ */ o(
|
|
1648
|
+
F.Indicator,
|
|
1649
|
+
{
|
|
1650
|
+
className: t(G["rp-navigation-menu__indicator"], e),
|
|
1651
|
+
...r
|
|
1652
|
+
}
|
|
1653
|
+
), la = ({
|
|
1654
|
+
className: e,
|
|
1655
|
+
...r
|
|
1656
|
+
}) => /* @__PURE__ */ o(
|
|
1657
|
+
F.Content,
|
|
1658
|
+
{
|
|
1659
|
+
className: t(G["rp-navigation-menu__content"], e),
|
|
1660
|
+
...r
|
|
1661
|
+
}
|
|
1662
|
+
), _a = ({
|
|
1663
|
+
className: e,
|
|
1664
|
+
...r
|
|
1665
|
+
}) => /* @__PURE__ */ o(
|
|
1666
|
+
F.Viewport,
|
|
1667
|
+
{
|
|
1668
|
+
className: t(G["rp-navigation-menu__viewport"], e),
|
|
1669
|
+
...r
|
|
1670
|
+
}
|
|
1671
|
+
), sa = ({
|
|
1672
|
+
className: e,
|
|
1673
|
+
...r
|
|
1674
|
+
}) => /* @__PURE__ */ o(
|
|
1675
|
+
F.Sub,
|
|
1676
|
+
{
|
|
1677
|
+
className: t(G["rp-navigation-menu__sub"], e),
|
|
1678
|
+
...r
|
|
1679
|
+
}
|
|
1680
|
+
);
|
|
1681
|
+
function bo(e) {
|
|
1682
|
+
return /* @__PURE__ */ o(
|
|
1683
|
+
ar.Root,
|
|
1684
|
+
{
|
|
1685
|
+
value: e.value,
|
|
1686
|
+
...rr({ className: "rp-radio" }, e)
|
|
1687
|
+
}
|
|
1688
|
+
);
|
|
1689
|
+
}
|
|
1690
|
+
const ca = { Root: bo, Indicator: ar.Indicator }, Z = {
|
|
1691
|
+
"rp-scroll-area": "rp_ScrollArea-module_rp-scroll-area_2aUtZS8N",
|
|
1692
|
+
"rp-scroll-area__viewport": "rp_ScrollArea-module_rp-scroll-area__viewport_4NdPexhv",
|
|
1693
|
+
"rp-scroll-area__content": "rp_ScrollArea-module_rp-scroll-area__content_Yp6PVRTa",
|
|
1694
|
+
"rp-scroll-area__scrollbar": "rp_ScrollArea-module_rp-scroll-area__scrollbar_n2X82Yru",
|
|
1695
|
+
"rp-scroll-area__thumb": "rp_ScrollArea-module_rp-scroll-area__thumb_2H9AjDqY",
|
|
1696
|
+
"rp-scroll-area__corner": "rp_ScrollArea-module_rp-scroll-area__corner_2G-1llME"
|
|
1697
|
+
}, da = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1698
|
+
J.Root,
|
|
1699
|
+
{
|
|
1700
|
+
className: t(Z["rp-scroll-area"], e),
|
|
1701
|
+
...r
|
|
1702
|
+
}
|
|
1703
|
+
), ia = ({
|
|
1704
|
+
className: e,
|
|
1705
|
+
...r
|
|
1706
|
+
}) => /* @__PURE__ */ o(
|
|
1707
|
+
J.Viewport,
|
|
1708
|
+
{
|
|
1709
|
+
className: t(Z["rp-scroll-area__viewport"], e),
|
|
1710
|
+
...r
|
|
1711
|
+
}
|
|
1712
|
+
), pa = ({
|
|
1713
|
+
className: e,
|
|
1714
|
+
...r
|
|
1715
|
+
}) => /* @__PURE__ */ o(
|
|
1716
|
+
J.Content,
|
|
1717
|
+
{
|
|
1718
|
+
className: t(Z["rp-scroll-area__content"], e),
|
|
1719
|
+
...r
|
|
1720
|
+
}
|
|
1721
|
+
), ma = ({
|
|
1722
|
+
className: e,
|
|
1723
|
+
...r
|
|
1724
|
+
}) => /* @__PURE__ */ o(
|
|
1725
|
+
J.Scrollbar,
|
|
1726
|
+
{
|
|
1727
|
+
className: t(Z["rp-scroll-area__scrollbar"], e),
|
|
1728
|
+
...r
|
|
1729
|
+
}
|
|
1730
|
+
), ua = ({
|
|
1731
|
+
className: e,
|
|
1732
|
+
...r
|
|
1733
|
+
}) => /* @__PURE__ */ o(
|
|
1734
|
+
J.Thumb,
|
|
1735
|
+
{
|
|
1736
|
+
className: t(Z["rp-scroll-area__thumb"], e),
|
|
1737
|
+
...r
|
|
1738
|
+
}
|
|
1739
|
+
), ga = ({
|
|
1740
|
+
className: e,
|
|
1741
|
+
...r
|
|
1742
|
+
}) => /* @__PURE__ */ o(
|
|
1743
|
+
J.Corner,
|
|
1744
|
+
{
|
|
1745
|
+
className: t(Z["rp-scroll-area__corner"], e),
|
|
1746
|
+
...r
|
|
1747
|
+
}
|
|
1748
|
+
), ho = "rp_Separator-module_separator_GFh5KWNf", vo = {
|
|
1749
|
+
separator: ho
|
|
1750
|
+
}, ba = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1751
|
+
yr.Root,
|
|
1752
|
+
{
|
|
1753
|
+
className: t(vo.separator, e),
|
|
1754
|
+
...r
|
|
1755
|
+
}
|
|
1756
|
+
), z = {
|
|
1757
|
+
"rp-skeleton-list": "rp_Skeleton-module_rp-skeleton-list_BH8479l-",
|
|
1758
|
+
"rp-skeleton-row": "rp_Skeleton-module_rp-skeleton-row_1yizLbl-",
|
|
1759
|
+
"rp-skeleton-card": "rp_Skeleton-module_rp-skeleton-card_VSiqELA2",
|
|
1760
|
+
"rp-skeleton": "rp_Skeleton-module_rp-skeleton_ClL3Fixm",
|
|
1761
|
+
"rp-skeleton-title": "rp_Skeleton-module_rp-skeleton-title_Kgwu5sUu",
|
|
1762
|
+
"rp-skeleton-line": "rp_Skeleton-module_rp-skeleton-line_RbV29oMm"
|
|
1763
|
+
}, ha = ({ label: e = "Loading" }) => /* @__PURE__ */ o(
|
|
1764
|
+
"div",
|
|
1765
|
+
{
|
|
1766
|
+
className: z["rp-skeleton-list"],
|
|
1767
|
+
role: "status",
|
|
1768
|
+
"aria-label": e,
|
|
1769
|
+
children: [0, 1, 2].map((r) => /* @__PURE__ */ l(
|
|
1770
|
+
"div",
|
|
1771
|
+
{
|
|
1772
|
+
className: t(
|
|
1773
|
+
z["rp-skeleton-row"],
|
|
1774
|
+
z["rp-skeleton-card"]
|
|
1775
|
+
),
|
|
1776
|
+
children: [
|
|
1777
|
+
/* @__PURE__ */ o(
|
|
1778
|
+
"span",
|
|
1779
|
+
{
|
|
1780
|
+
className: t(z["rp-skeleton"], z["rp-skeleton-title"])
|
|
1781
|
+
}
|
|
1782
|
+
),
|
|
1783
|
+
/* @__PURE__ */ o(
|
|
1784
|
+
"span",
|
|
1785
|
+
{
|
|
1786
|
+
className: t(z["rp-skeleton"], z["rp-skeleton-line"])
|
|
1787
|
+
}
|
|
1788
|
+
)
|
|
1789
|
+
]
|
|
1790
|
+
},
|
|
1791
|
+
r
|
|
1792
|
+
))
|
|
1793
|
+
}
|
|
1794
|
+
), be = {
|
|
1795
|
+
"rp-slider": "rp_Slider-module_rp-slider_UKM-htxf",
|
|
1796
|
+
"rp-slider__track": "rp_Slider-module_rp-slider__track_BsRKFdQA",
|
|
1797
|
+
"rp-slider__range": "rp_Slider-module_rp-slider__range_hPLAP7qN",
|
|
1798
|
+
"rp-slider__thumb": "rp_Slider-module_rp-slider__thumb_SM2-7pde"
|
|
1799
|
+
}, va = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1800
|
+
ge.Root,
|
|
1801
|
+
{
|
|
1802
|
+
className: t(be["rp-slider"], e),
|
|
1803
|
+
...r
|
|
1804
|
+
}
|
|
1805
|
+
), Na = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1806
|
+
ge.Track,
|
|
1807
|
+
{
|
|
1808
|
+
className: t(be["rp-slider__track"], e),
|
|
1809
|
+
...r
|
|
1810
|
+
}
|
|
1811
|
+
), fa = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1812
|
+
ge.Range,
|
|
1813
|
+
{
|
|
1814
|
+
className: t(be["rp-slider__range"], e),
|
|
1815
|
+
...r
|
|
1816
|
+
}
|
|
1817
|
+
), wa = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1818
|
+
ge.Thumb,
|
|
1819
|
+
{
|
|
1820
|
+
className: t(be["rp-slider__thumb"], e),
|
|
1821
|
+
...r
|
|
1822
|
+
}
|
|
1823
|
+
), he = {
|
|
1824
|
+
"rp-tabs": "rp_Tabs-module_rp-tabs_DS9RhF9C",
|
|
1825
|
+
"rp-tabs__list": "rp_Tabs-module_rp-tabs__list_IqN-ALtx",
|
|
1826
|
+
"rp-tabs__trigger": "rp_Tabs-module_rp-tabs__trigger_mVwyeWrd",
|
|
1827
|
+
"rp-tabs__content": "rp_Tabs-module_rp-tabs__content_oWO3J3ux"
|
|
1828
|
+
}, Ma = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1829
|
+
H.Root,
|
|
1830
|
+
{
|
|
1831
|
+
className: t(he["rp-tabs"], e),
|
|
1832
|
+
...r
|
|
1833
|
+
}
|
|
1834
|
+
), Ca = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1835
|
+
H.List,
|
|
1836
|
+
{
|
|
1837
|
+
className: t(he["rp-tabs__list"], e),
|
|
1838
|
+
...r
|
|
1839
|
+
}
|
|
1840
|
+
), Sa = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1841
|
+
H.Trigger,
|
|
1842
|
+
{
|
|
1843
|
+
className: t(he["rp-tabs__trigger"], e),
|
|
1844
|
+
...r
|
|
1845
|
+
}
|
|
1846
|
+
), xa = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1847
|
+
H.Content,
|
|
1848
|
+
{
|
|
1849
|
+
className: t(he["rp-tabs__content"], e),
|
|
1850
|
+
...r
|
|
1851
|
+
}
|
|
1852
|
+
), No = {
|
|
1853
|
+
display: "h1",
|
|
1854
|
+
heading: "h2",
|
|
1855
|
+
body: "p",
|
|
1856
|
+
muted: "p",
|
|
1857
|
+
caption: "p"
|
|
1858
|
+
};
|
|
1859
|
+
function ka({
|
|
1860
|
+
variant: e = "body",
|
|
1861
|
+
as: r,
|
|
1862
|
+
className: n = "",
|
|
1863
|
+
...c
|
|
1864
|
+
}) {
|
|
1865
|
+
const i = kr(e) ? "span" : No[e], s = r || i, d = je["rp-text"] + " " + je["rp-text-" + e] + (n ? " " + n : "");
|
|
1866
|
+
return /* @__PURE__ */ o(s, { className: d, ...c });
|
|
1867
|
+
}
|
|
1868
|
+
const ee = {
|
|
1869
|
+
"rp-toast__viewport": "rp_Toast-module_rp-toast__viewport_TfeiKV0c",
|
|
1870
|
+
"rp-toast": "rp_Toast-module_rp-toast_3ihKRZRI",
|
|
1871
|
+
"rp-toast__title": "rp_Toast-module_rp-toast__title_etPvNvHd",
|
|
1872
|
+
"rp-toast__description": "rp_Toast-module_rp-toast__description_A8VOmkSU",
|
|
1873
|
+
"rp-toast__action": "rp_Toast-module_rp-toast__action_DAW-RzEc",
|
|
1874
|
+
"rp-toast__close": "rp_Toast-module_rp-toast__close_TeGifIyF"
|
|
1875
|
+
}, Ta = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1876
|
+
E.Root,
|
|
1877
|
+
{
|
|
1878
|
+
className: t(ee["rp-toast"], e),
|
|
1879
|
+
...r
|
|
1880
|
+
}
|
|
1881
|
+
), ya = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1882
|
+
E.Viewport,
|
|
1883
|
+
{
|
|
1884
|
+
className: t(ee["rp-toast__viewport"], e),
|
|
1885
|
+
...r
|
|
1886
|
+
}
|
|
1887
|
+
), Ia = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1888
|
+
E.Title,
|
|
1889
|
+
{
|
|
1890
|
+
className: t(ee["rp-toast__title"], e),
|
|
1891
|
+
...r
|
|
1892
|
+
}
|
|
1893
|
+
), Pa = ({
|
|
1894
|
+
className: e,
|
|
1895
|
+
...r
|
|
1896
|
+
}) => /* @__PURE__ */ o(
|
|
1897
|
+
E.Description,
|
|
1898
|
+
{
|
|
1899
|
+
className: t(ee["rp-toast__description"], e),
|
|
1900
|
+
...r
|
|
1901
|
+
}
|
|
1902
|
+
), Da = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1903
|
+
E.Action,
|
|
1904
|
+
{
|
|
1905
|
+
className: t(ee["rp-toast__action"], e),
|
|
1906
|
+
...r
|
|
1907
|
+
}
|
|
1908
|
+
), Aa = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1909
|
+
E.Close,
|
|
1910
|
+
{
|
|
1911
|
+
className: t(ee["rp-toast__close"], e),
|
|
1912
|
+
...r
|
|
1913
|
+
}
|
|
1914
|
+
), Ra = E.Provider, fo = {
|
|
1915
|
+
"rp-toggle": "rp_Toggle-module_rp-toggle_pUDCx1TH"
|
|
1916
|
+
}, Fa = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1917
|
+
Ir.Root,
|
|
1918
|
+
{
|
|
1919
|
+
className: t(fo["rp-toggle"], e),
|
|
1920
|
+
...r
|
|
1921
|
+
}
|
|
1922
|
+
), cr = {
|
|
1923
|
+
"rp-toggle-group": "rp_ToggleGroup-module_rp-toggle-group_ael4xVNJ",
|
|
1924
|
+
"rp-toggle-group__item": "rp_ToggleGroup-module_rp-toggle-group__item_YPhQkzmJ"
|
|
1925
|
+
}, $a = ({ className: e, ...r }) => /* @__PURE__ */ o(
|
|
1926
|
+
nr.Root,
|
|
1927
|
+
{
|
|
1928
|
+
className: t(cr["rp-toggle-group"], e),
|
|
1929
|
+
...r
|
|
1930
|
+
}
|
|
1931
|
+
), Ga = ({
|
|
1932
|
+
className: e,
|
|
1933
|
+
...r
|
|
1934
|
+
}) => /* @__PURE__ */ o(
|
|
1935
|
+
nr.Item,
|
|
1936
|
+
{
|
|
1937
|
+
className: t(cr["rp-toggle-group__item"], e),
|
|
1938
|
+
...r
|
|
1939
|
+
}
|
|
1940
|
+
);
|
|
1941
|
+
function La({
|
|
1942
|
+
children: e,
|
|
1943
|
+
theme: r = "light",
|
|
1944
|
+
className: n = "",
|
|
1945
|
+
style: c
|
|
1946
|
+
}) {
|
|
1947
|
+
const [i, s] = A(null);
|
|
1948
|
+
return /* @__PURE__ */ o(
|
|
1949
|
+
"div",
|
|
1950
|
+
{
|
|
1951
|
+
ref: s,
|
|
1952
|
+
className: `${T["rp-ui"]} ${T.window} ${T.web} ${n}`,
|
|
1953
|
+
"data-theme": r,
|
|
1954
|
+
style: c,
|
|
1955
|
+
children: /* @__PURE__ */ o($e.Provider, { value: i, children: e })
|
|
1956
|
+
}
|
|
1957
|
+
);
|
|
1958
|
+
}
|
|
1959
|
+
function Ba({
|
|
1960
|
+
items: e,
|
|
1961
|
+
value: r,
|
|
1962
|
+
onChange: n,
|
|
1963
|
+
ariaLabel: c,
|
|
1964
|
+
className: i = "",
|
|
1965
|
+
size: s = "md"
|
|
1966
|
+
}) {
|
|
1967
|
+
return /* @__PURE__ */ l(
|
|
1968
|
+
H.Root,
|
|
1969
|
+
{
|
|
1970
|
+
activationMode: "manual",
|
|
1971
|
+
value: r,
|
|
1972
|
+
onValueChange: n,
|
|
1973
|
+
className: i,
|
|
1974
|
+
children: [
|
|
1975
|
+
/* @__PURE__ */ o(
|
|
1976
|
+
H.List,
|
|
1977
|
+
{
|
|
1978
|
+
"aria-label": c,
|
|
1979
|
+
className: T["rp-tabs"] + " " + s,
|
|
1980
|
+
children: e.map((d) => /* @__PURE__ */ l(
|
|
1981
|
+
H.Trigger,
|
|
1982
|
+
{
|
|
1983
|
+
value: d.value,
|
|
1984
|
+
disabled: d.disabled,
|
|
1985
|
+
children: [
|
|
1986
|
+
d.icon,
|
|
1987
|
+
d.label
|
|
1988
|
+
]
|
|
1989
|
+
},
|
|
1990
|
+
d.value
|
|
1991
|
+
))
|
|
1992
|
+
}
|
|
1993
|
+
),
|
|
1994
|
+
e.filter((d) => d.content !== void 0).map((d) => /* @__PURE__ */ o(
|
|
1995
|
+
H.Content,
|
|
1996
|
+
{
|
|
1997
|
+
value: d.value,
|
|
1998
|
+
className: "rp-tab-panel",
|
|
1999
|
+
children: d.content
|
|
2000
|
+
},
|
|
2001
|
+
d.value
|
|
2002
|
+
))
|
|
2003
|
+
]
|
|
2004
|
+
}
|
|
2005
|
+
);
|
|
2006
|
+
}
|
|
2007
|
+
function Ha({
|
|
2008
|
+
value: e,
|
|
2009
|
+
min: r,
|
|
2010
|
+
max: n,
|
|
2011
|
+
step: c = 1,
|
|
2012
|
+
onChange: i,
|
|
2013
|
+
disabled: s = !1,
|
|
2014
|
+
marks: d,
|
|
2015
|
+
"aria-label": b,
|
|
2016
|
+
className: x = ""
|
|
2017
|
+
}) {
|
|
2018
|
+
return /* @__PURE__ */ l("div", { className: T["rp-slider"] + " " + x, children: [
|
|
2019
|
+
/* @__PURE__ */ o(
|
|
2020
|
+
"input",
|
|
2021
|
+
{
|
|
2022
|
+
type: "range",
|
|
2023
|
+
min: r,
|
|
2024
|
+
max: n,
|
|
2025
|
+
step: c,
|
|
2026
|
+
value: e,
|
|
2027
|
+
disabled: s,
|
|
2028
|
+
"aria-label": b,
|
|
2029
|
+
onChange: (m) => i(Number(m.target.value))
|
|
2030
|
+
}
|
|
2031
|
+
),
|
|
2032
|
+
!!d?.length && /* @__PURE__ */ o("div", { className: `${T["rp-slider-marks"]}`, children: d.map((m) => {
|
|
2033
|
+
const k = n > r ? (m.value - r) / (n - r) * 100 : 0;
|
|
2034
|
+
return /* @__PURE__ */ o(
|
|
2035
|
+
"button",
|
|
2036
|
+
{
|
|
2037
|
+
type: "button",
|
|
2038
|
+
disabled: s,
|
|
2039
|
+
"data-selected": m.value === e ? "" : void 0,
|
|
2040
|
+
onClick: () => i(m.value),
|
|
2041
|
+
style: {
|
|
2042
|
+
left: `calc(${k}% + ${(50 - k) / 100 * 16}px)`,
|
|
2043
|
+
transform: "translateX(-50%)"
|
|
2044
|
+
},
|
|
2045
|
+
children: m.label
|
|
2046
|
+
},
|
|
2047
|
+
m.value
|
|
2048
|
+
);
|
|
2049
|
+
}) })
|
|
2050
|
+
] });
|
|
2051
|
+
}
|
|
2052
|
+
function Va(e) {
|
|
2053
|
+
return /* @__PURE__ */ o(Tr, { ...rr({ className: "rp-radio-group" }, e) });
|
|
2054
|
+
}
|
|
2055
|
+
const Oa = Xe("light");
|
|
2056
|
+
export {
|
|
2057
|
+
Io as Accordion,
|
|
2058
|
+
Ro as AccordionContent,
|
|
2059
|
+
Do as AccordionHeader,
|
|
2060
|
+
Po as AccordionItem,
|
|
2061
|
+
Ao as AccordionTrigger,
|
|
2062
|
+
Ea as Avatar,
|
|
2063
|
+
Ua as AvatarFallback,
|
|
2064
|
+
qa as AvatarImage,
|
|
2065
|
+
Ka as BUTTON_TEXT_VARIANTS,
|
|
2066
|
+
Qa as Badge,
|
|
2067
|
+
Va as BaseRadioGroup,
|
|
2068
|
+
Fo as Brand,
|
|
2069
|
+
ja as Button,
|
|
2070
|
+
Ya as ButtonSize,
|
|
2071
|
+
Ja as ButtonTextVariant,
|
|
2072
|
+
xr as Card,
|
|
2073
|
+
$o as Checkbox,
|
|
2074
|
+
Go as Collapsible,
|
|
2075
|
+
Bo as CollapsibleContent,
|
|
2076
|
+
Lo as CollapsibleTrigger,
|
|
2077
|
+
Ho as ContextMenu,
|
|
2078
|
+
Wo as ContextMenuArrow,
|
|
2079
|
+
Qo as ContextMenuCheckboxItem,
|
|
2080
|
+
zo as ContextMenuContent,
|
|
2081
|
+
Eo as ContextMenuGroup,
|
|
2082
|
+
qo as ContextMenuItem,
|
|
2083
|
+
Ko as ContextMenuItemIndicator,
|
|
2084
|
+
Uo as ContextMenuLabel,
|
|
2085
|
+
Oo as ContextMenuPortal,
|
|
2086
|
+
jo as ContextMenuRadioGroup,
|
|
2087
|
+
Yo as ContextMenuRadioItem,
|
|
2088
|
+
Jo as ContextMenuSeparator,
|
|
2089
|
+
Xo as ContextMenuSub,
|
|
2090
|
+
et as ContextMenuSubContent,
|
|
2091
|
+
Zo as ContextMenuSubTrigger,
|
|
2092
|
+
Vo as ContextMenuTrigger,
|
|
2093
|
+
Xa as Dialog,
|
|
2094
|
+
Za as DialogClose,
|
|
2095
|
+
en as DialogContent,
|
|
2096
|
+
rn as DialogDescription,
|
|
2097
|
+
on as DialogFooter,
|
|
2098
|
+
tn as DialogOverlay,
|
|
2099
|
+
an as DialogPortal,
|
|
2100
|
+
nn as DialogRoot,
|
|
2101
|
+
ln as DialogTitle,
|
|
2102
|
+
_n as DialogTrigger,
|
|
2103
|
+
rt as Drawer,
|
|
2104
|
+
Vr as DropdownMenu,
|
|
2105
|
+
ot as DropdownMenuArrow,
|
|
2106
|
+
lt as DropdownMenuCheckboxItem,
|
|
2107
|
+
Wr as DropdownMenuContent,
|
|
2108
|
+
tt as DropdownMenuGroup,
|
|
2109
|
+
Er as DropdownMenuItem,
|
|
2110
|
+
nt as DropdownMenuItemIndicator,
|
|
2111
|
+
at as DropdownMenuLabel,
|
|
2112
|
+
zr as DropdownMenuPortal,
|
|
2113
|
+
_t as DropdownMenuRadioGroup,
|
|
2114
|
+
st as DropdownMenuRadioItem,
|
|
2115
|
+
ct as DropdownMenuSeparator,
|
|
2116
|
+
dt as DropdownMenuSub,
|
|
2117
|
+
pt as DropdownMenuSubContent,
|
|
2118
|
+
it as DropdownMenuSubTrigger,
|
|
2119
|
+
Or as DropdownMenuTrigger,
|
|
2120
|
+
sn as EmptyState,
|
|
2121
|
+
cn as Field,
|
|
2122
|
+
mt as FilterSelect,
|
|
2123
|
+
ut as Form,
|
|
2124
|
+
ht as FormControl,
|
|
2125
|
+
gt as FormField,
|
|
2126
|
+
bt as FormLabel,
|
|
2127
|
+
vt as FormMessage,
|
|
2128
|
+
Nt as FormSubmit,
|
|
2129
|
+
ft as FormValidityState,
|
|
2130
|
+
dn as GapSize,
|
|
2131
|
+
wt as HoverCard,
|
|
2132
|
+
xt as HoverCardArrow,
|
|
2133
|
+
St as HoverCardContent,
|
|
2134
|
+
Ct as HoverCardPortal,
|
|
2135
|
+
Mt as HoverCardTrigger,
|
|
2136
|
+
De as Icon,
|
|
2137
|
+
kt as InfoHeader,
|
|
2138
|
+
Tt as InfoTooltip,
|
|
2139
|
+
Sr as Input,
|
|
2140
|
+
pn as InputGroup,
|
|
2141
|
+
er as Label,
|
|
2142
|
+
Ha as LegacySlider,
|
|
2143
|
+
Ba as LegacyTabs,
|
|
2144
|
+
yt as LinkCard,
|
|
2145
|
+
mn as Logo,
|
|
2146
|
+
It as Menubar,
|
|
2147
|
+
Vt as MenubarArrow,
|
|
2148
|
+
$t as MenubarCheckboxItem,
|
|
2149
|
+
Dt as MenubarContent,
|
|
2150
|
+
At as MenubarGroup,
|
|
2151
|
+
Ft as MenubarItem,
|
|
2152
|
+
Bt as MenubarItemIndicator,
|
|
2153
|
+
Rt as MenubarLabel,
|
|
2154
|
+
Wt as MenubarMenu,
|
|
2155
|
+
Et as MenubarPortal,
|
|
2156
|
+
Gt as MenubarRadioGroup,
|
|
2157
|
+
Lt as MenubarRadioItem,
|
|
2158
|
+
Ht as MenubarSeparator,
|
|
2159
|
+
Ut as MenubarSub,
|
|
2160
|
+
zt as MenubarSubContent,
|
|
2161
|
+
Ot as MenubarSubTrigger,
|
|
2162
|
+
Pt as MenubarTrigger,
|
|
2163
|
+
qt as Modal,
|
|
2164
|
+
Zt as ModelCard,
|
|
2165
|
+
Xt as ModelMenuItem,
|
|
2166
|
+
mo as ModelSelector,
|
|
2167
|
+
ea as NavigationMenu,
|
|
2168
|
+
la as NavigationMenuContent,
|
|
2169
|
+
na as NavigationMenuIndicator,
|
|
2170
|
+
oa as NavigationMenuItem,
|
|
2171
|
+
aa as NavigationMenuLink,
|
|
2172
|
+
ra as NavigationMenuList,
|
|
2173
|
+
sa as NavigationMenuSub,
|
|
2174
|
+
ta as NavigationMenuTrigger,
|
|
2175
|
+
_a as NavigationMenuViewport,
|
|
2176
|
+
eo as Popover,
|
|
2177
|
+
Kt as PopoverAnchor,
|
|
2178
|
+
Qt as PopoverArrow,
|
|
2179
|
+
jt as PopoverClose,
|
|
2180
|
+
to as PopoverContent,
|
|
2181
|
+
Jt as PopoverDescription,
|
|
2182
|
+
oo as PopoverPortal,
|
|
2183
|
+
Yt as PopoverTitle,
|
|
2184
|
+
ro as PopoverTrigger,
|
|
2185
|
+
$e as PortalHost,
|
|
2186
|
+
un as Progress,
|
|
2187
|
+
gn as ProgressBar,
|
|
2188
|
+
bn as ProgressIndicator,
|
|
2189
|
+
ca as Radio,
|
|
2190
|
+
hn as RadioGroup,
|
|
2191
|
+
vn as RadioGroupIndicator,
|
|
2192
|
+
Nn as RadioGroupItem,
|
|
2193
|
+
da as ScrollArea,
|
|
2194
|
+
pa as ScrollAreaContent,
|
|
2195
|
+
ga as ScrollAreaCorner,
|
|
2196
|
+
ma as ScrollAreaScrollbar,
|
|
2197
|
+
ua as ScrollAreaThumb,
|
|
2198
|
+
ia as ScrollAreaViewport,
|
|
2199
|
+
fn as SegmentedControl,
|
|
2200
|
+
Cr as Select,
|
|
2201
|
+
ba as Separator,
|
|
2202
|
+
wn as Shop,
|
|
2203
|
+
Mn as ShopAccountCard,
|
|
2204
|
+
Cn as ShopCard,
|
|
2205
|
+
Sn as SideNavigation,
|
|
2206
|
+
xn as SideNavigationBrand,
|
|
2207
|
+
kn as SideNavigationEmpty,
|
|
2208
|
+
Tn as SideNavigationFooter,
|
|
2209
|
+
yn as SideNavigationHeader,
|
|
2210
|
+
In as SideNavigationItem,
|
|
2211
|
+
Pn as SideNavigationScroll,
|
|
2212
|
+
Dn as SideNavigationSection,
|
|
2213
|
+
An as SideNavigationStatus,
|
|
2214
|
+
Rn as SideNavigationSubItem,
|
|
2215
|
+
Fn as SideNavigationSubNav,
|
|
2216
|
+
$n as SideNavigationToggle,
|
|
2217
|
+
ha as Skeleton,
|
|
2218
|
+
va as Slider,
|
|
2219
|
+
fa as SliderRange,
|
|
2220
|
+
wa as SliderThumb,
|
|
2221
|
+
Na as SliderTrack,
|
|
2222
|
+
Gn as Spinner,
|
|
2223
|
+
Ln as SupportDialog,
|
|
2224
|
+
Zr as Switch,
|
|
2225
|
+
Ma as Tabs,
|
|
2226
|
+
xa as TabsContent,
|
|
2227
|
+
Ca as TabsList,
|
|
2228
|
+
Sa as TabsTrigger,
|
|
2229
|
+
ka as Text,
|
|
2230
|
+
Oa as ThemeContext,
|
|
2231
|
+
Bn as ThemeSwitch,
|
|
2232
|
+
Ta as Toast,
|
|
2233
|
+
Da as ToastAction,
|
|
2234
|
+
Aa as ToastClose,
|
|
2235
|
+
Pa as ToastDescription,
|
|
2236
|
+
Ra as ToastProvider,
|
|
2237
|
+
Ia as ToastTitle,
|
|
2238
|
+
ya as ToastViewport,
|
|
2239
|
+
Fa as Toggle,
|
|
2240
|
+
$a as ToggleGroup,
|
|
2241
|
+
Ga as ToggleGroupItem,
|
|
2242
|
+
Ur as Tooltip,
|
|
2243
|
+
Qr as TooltipArrow,
|
|
2244
|
+
Kr as TooltipContent,
|
|
2245
|
+
Yr as TooltipPortal,
|
|
2246
|
+
jr as TooltipProvider,
|
|
2247
|
+
qr as TooltipTrigger,
|
|
2248
|
+
La as UIProvider,
|
|
2249
|
+
kr as isButtonTextVariant
|
|
2250
|
+
};
|