@dendelion/func-ui 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +30 -4
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/list-item/list-item.d.ts +1 -0
- package/dist/components/list-item/list-item.d.ts.map +1 -1
- package/dist/components/menu/menu.d.ts +9 -1
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/tabs/tabs.d.ts +4 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1504 -1446
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
- package/src/globals.scss +5 -18
- package/src/styles/_lamp.scss +14 -5
- package/src/styles/_tokens.scss +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.0](https://github.com/adooone/func-ui/compare/v0.4.0...v0.5.0) (2026-11-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* the stylesheet no longer styles html or body; apps set their own margin, background, colour, font and line height.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* theme tokens for radius and font, ghost Tabs, lit Button, ListItem tones, smoked dark lamp (IDEA-14) ([#13](https://github.com/adooone/func-ui/issues/13)) ([6771efd](https://github.com/adooone/func-ui/commit/6771efd7dff72f3a4a0269c50add232a7e0fc030))
|
|
13
|
+
|
|
14
|
+
## [0.4.0](https://github.com/adooone/func-ui/compare/v0.3.0...v0.4.0) (2026-10-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **repo:** Lamp control family from mojo-ui ([81d4be5](https://github.com/adooone/func-ui/commit/81d4be584611ea7fee2c1456e1918c75d6dcdfad))
|
|
20
|
+
|
|
3
21
|
## [0.3.0](https://github.com/adooone/func-ui/compare/v0.2.2...v0.3.0) (2026-10-08)
|
|
4
22
|
|
|
5
23
|
|
package/README.md
CHANGED
|
@@ -37,6 +37,28 @@ export default function App() {
|
|
|
37
37
|
Toggle dark mode by adding/removing the `dark` class on `<html>` — every token
|
|
38
38
|
(`--fui-*`) retints automatically.
|
|
39
39
|
|
|
40
|
+
## Theme tokens
|
|
41
|
+
|
|
42
|
+
Set these once on `:root` (or any wrapper) and every component follows:
|
|
43
|
+
|
|
44
|
+
| Token | Read by | Default |
|
|
45
|
+
| --- | --- | --- |
|
|
46
|
+
| `--fui-radius` | Every control: buttons, fields, Select, Chip, Stamp, SegmentedControl, ListItem, the Menu list | `0` |
|
|
47
|
+
| `--fui-radius-panel` | Modal, Card and Drawer (inner edges only) | `0` |
|
|
48
|
+
| `--fui-font` | Every module's sans and mono text | Montserrat Alternates |
|
|
49
|
+
|
|
50
|
+
```css
|
|
51
|
+
:root {
|
|
52
|
+
--fui-radius: 9999px;
|
|
53
|
+
--fui-radius-panel: 1.5rem;
|
|
54
|
+
--fui-font: 'Inter', sans-serif;
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The stylesheet styles the components only, never the document: your app
|
|
59
|
+
sets `body`'s margin, background, colour, font and line height itself
|
|
60
|
+
(before 0.5.0 the library did).
|
|
61
|
+
|
|
40
62
|
## Fonts
|
|
41
63
|
|
|
42
64
|
The stylesheet declares `@font-face` for Montserrat Alternates (body), KyivType
|
|
@@ -76,7 +98,7 @@ export default { presets: [funcPreset], content: [/* ... */] };
|
|
|
76
98
|
|
|
77
99
|
| Component | What it is |
|
|
78
100
|
| --- | --- |
|
|
79
|
-
| `Button` | The primary action, in the offset-shadow style |
|
|
101
|
+
| `Button` | The primary action, in the offset-shadow style; `lit` is the amber-outlined armed action |
|
|
80
102
|
| `IconButton` | Square icon-only button |
|
|
81
103
|
| `LinkButton` | An anchor that looks like a `Button` |
|
|
82
104
|
| `FileButton` | A button wrapping a hidden file input (`onFiles`) |
|
|
@@ -105,7 +127,7 @@ export default { presets: [funcPreset], content: [/* ... */] };
|
|
|
105
127
|
| `ToastProvider` / `useToast` | Toast host plus the hook that pushes them |
|
|
106
128
|
| `Modal` | Centred dialog with a glass panel |
|
|
107
129
|
| `Drawer` | Panel that slides in from any side |
|
|
108
|
-
| `Menu` | Dropdown menu of items and separators |
|
|
130
|
+
| `Menu` | Dropdown menu of items and separators — `asChild` clones an interactive trigger instead of wrapping it in a button |
|
|
109
131
|
|
|
110
132
|
### Progress and status
|
|
111
133
|
|
|
@@ -127,11 +149,11 @@ export default { presets: [funcPreset], content: [/* ... */] };
|
|
|
127
149
|
| Component | What it is |
|
|
128
150
|
| --- | --- |
|
|
129
151
|
| `Card` | Content surface, optionally clickable |
|
|
130
|
-
| `ListItem` | Dense selectable row with icon and action slots |
|
|
152
|
+
| `ListItem` | Dense selectable row with icon and action slots; `tone` `warn` / `alert` |
|
|
131
153
|
| `Divider` | Rule, horizontal or vertical, with an optional label |
|
|
132
154
|
| `Chip` | Toggleable filter pill |
|
|
133
155
|
| `SegmentedControl` | Exclusive choice between a few options |
|
|
134
|
-
| `Tabs` | Tab strip plus panels, horizontal or vertical |
|
|
156
|
+
| `Tabs` | Tab strip plus panels, horizontal or vertical; `ghost` for bare labels underlined in accent |
|
|
135
157
|
| `Breadcrumb` | Trail of links ending in the current page |
|
|
136
158
|
| `DataTable` | Typed table — `DataTableColumn<T>[]` over your rows |
|
|
137
159
|
|
|
@@ -159,6 +181,10 @@ pnpm build:showcase # build the showcase site (dist/app/)
|
|
|
159
181
|
pnpm ci # types + lint + build
|
|
160
182
|
```
|
|
161
183
|
|
|
184
|
+
Work is organised as ideas under `papercamp/ideas/`, one branch per idea.
|
|
185
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for the branch, commit and pull-request
|
|
186
|
+
flow.
|
|
187
|
+
|
|
162
188
|
## License
|
|
163
189
|
|
|
164
190
|
MIT © Dendelion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
3
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'lit';
|
|
4
4
|
size?: 'sm' | 'md';
|
|
5
5
|
fullWidth?: boolean;
|
|
6
6
|
/** Leading icon slot. */
|
|
@@ -13,7 +13,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
13
13
|
/**
|
|
14
14
|
* A chunky, uppercase button with the signature hard offset shadow that snaps
|
|
15
15
|
* flush on press. Ghost is a shadow-outlined variant; secondary is frosted;
|
|
16
|
-
* danger is for destructive actions.
|
|
16
|
+
* danger is for destructive actions; lit is the amber-outlined armed action.
|
|
17
17
|
*/
|
|
18
18
|
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
19
19
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAI9E,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAI9E,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC1E,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC/D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,2GAkCjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/components/list-item/list-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAI9E,MAAM,WAAW,aAAc,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC5E,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/components/list-item/list-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAI9E,MAAM,WAAW,aAAc,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC5E,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACpC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,6GAuBnB,CAAC"}
|
|
@@ -14,9 +14,17 @@ export type MenuEntry = MenuItem | MenuSeparator;
|
|
|
14
14
|
export interface MenuProps {
|
|
15
15
|
trigger: ReactNode;
|
|
16
16
|
items: MenuEntry[];
|
|
17
|
+
/**
|
|
18
|
+
* Clone the trigger element instead of wrapping it in Menu's own button.
|
|
19
|
+
* The trigger must be a single element that renders something focusable,
|
|
20
|
+
* spreads unknown props onto it, and forwards its ref — a native
|
|
21
|
+
* `<button>` or any func-ui button qualifies. Falls back to wrapping
|
|
22
|
+
* when the trigger is not a single valid element.
|
|
23
|
+
*/
|
|
24
|
+
asChild?: boolean;
|
|
17
25
|
triggerLabel?: string;
|
|
18
26
|
align?: 'start' | 'end';
|
|
19
27
|
className?: string;
|
|
20
28
|
}
|
|
21
|
-
export declare function Menu({ trigger, items, triggerLabel, align, className }: MenuProps): import("react").JSX.Element;
|
|
29
|
+
export declare function Menu({ trigger, items, asChild, triggerLabel, align, className, }: MenuProps): import("react").JSX.Element;
|
|
22
30
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,SAAS,EAQf,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEjD,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuBD,wBAAgB,IAAI,CAAC,EACnB,OAAO,EACP,KAAK,EACL,OAAO,EACP,YAAY,EACZ,KAAe,EACf,SAAS,GACV,EAAE,SAAS,+BAuMX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export type TabsOrientation = 'horizontal' | 'vertical';
|
|
3
|
+
export type TabsVariant = 'underline' | 'ghost';
|
|
3
4
|
export interface TabItem {
|
|
4
5
|
value: string;
|
|
5
6
|
label: ReactNode;
|
|
@@ -14,8 +15,10 @@ export interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
14
15
|
onChange?: (value: string) => void;
|
|
15
16
|
orientation?: TabsOrientation;
|
|
16
17
|
size?: 'sm' | 'md';
|
|
18
|
+
/** `ghost` drops the baseline rule: bare labels, the active one underlined in accent. */
|
|
19
|
+
variant?: TabsVariant;
|
|
17
20
|
activation?: 'automatic' | 'manual';
|
|
18
21
|
tablistLabel?: string;
|
|
19
22
|
}
|
|
20
|
-
export declare function Tabs({ items, value, defaultValue, onChange, orientation, size, activation, tablistLabel, className, ...props }: TabsProps): import("react").JSX.Element;
|
|
23
|
+
export declare function Tabs({ items, value, defaultValue, onChange, orientation, size, variant, activation, tablistLabel, className, ...props }: TabsProps): import("react").JSX.Element;
|
|
21
24
|
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AAIf,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,UAAU,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;AAEhD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,cAAc,CAAC;IACzE,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,yFAAyF;IACzF,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,UAAU,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,WAA0B,EAC1B,IAAW,EACX,OAAqB,EACrB,UAAwB,EACxB,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,SAAS,+BAiIX"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("clsx"),Ze=require("tailwind-merge"),e=require("react/jsx-runtime"),f=require("react"),Ne=require("react-dom");function d(...s){return Ze.twMerge(We.clsx(s))}const Xe="grain-module__grain___sp9ca",Ve={grain:Xe};function Te({opacity:s,className:t,style:o,...l}){const n=s!=null?{"--fui-grain-opacity":String(s)}:void 0;return e.jsx("div",{"aria-hidden":!0,className:d(Ve.grain,t),style:{...n,...o},...l})}const Je="glow-module__glow___kEcKf",Qe="glow-module__blob___b1llZ",et="glow-module__wobble___kfp96",tt="glow-module__botBlob___XG8Xf",fe={glow:Je,blob:Qe,wobble:et,botBlob:tt};function st(s){let t=s|0;return()=>{t=t+1831565813|0;let o=Math.imul(t^t>>>15,1|t);return o=o+Math.imul(o^o>>>7,61|o)^o,((o^o>>>14)>>>0)/4294967296}}function Ee(s,t,o,l){const n=6+Math.floor(s()*4),a=.12+s()*.28,i=.85+s()*.4,c=.85+s()*.4,p=s()*Math.PI*2,m=[];for(let h=0;h<n;h++){const u=p+h/n*Math.PI*2,x=l*(1-a+s()*a*2);m.push([t+Math.cos(u)*x*i,o+Math.sin(u)*x*c])}let _=`M${m[0][0].toFixed(1)},${m[0][1].toFixed(1)}`;for(let h=0;h<n;h++){const u=m[(h-1+n)%n],x=m[h],b=m[(h+1)%n],v=m[(h+2)%n],g=x[0]+(b[0]-u[0])/6,w=x[1]+(b[1]-u[1])/6,j=b[0]-(v[0]-x[0])/6,k=b[1]-(v[1]-x[1])/6;_+=`C${g.toFixed(1)},${w.toFixed(1)} ${j.toFixed(1)},${k.toFixed(1)} ${b[0].toFixed(1)},${b[1].toFixed(1)}`}return`${_}Z`}function ot(s){const t=st(s),o=4+Math.floor(t()*2),l=[];for(let i=0;i<o;i++){const c=13+t()*8,p=270+t()*50,m=350+t()*24,_=24+t()*28,h=6+t()*8,u=196+t()*42;l.push({d:Ee(t,p,m,c),opacity:.6+t()*.4,dur:_,delay:-((i+t()*.6)/o*_),rise:m-u,wobbleDur:h,wobbleDelay:-(t()*h),sway:3+t()*5})}const n=3+Math.floor(t()*2),a=[];for(let i=0;i<n;i++){const c=12+t()*6,p=268+t()*54,m=352+t()*24,_=36+t()*30,h=9+t()*8,u=205+t()*45;a.push({d:Ee(t,p,m,c),opacity:.85+t()*.15,dur:_,delay:-((i+t()*.6)/n*_),rise:m-u,wobbleDur:h,wobbleDelay:-(t()*h),sway:2+t()*3})}return{blobs:l,depthBlobs:a}}function ze({className:s,seed:t}){const o=f.useId().replace(/:/g,""),l=`goo-${o}`,n=`goo-soft-${o}`,a=`clip-${o}`,i=`grad-${o}`,[c]=f.useState(()=>Math.floor(Math.random()*2**31)),{blobs:p,depthBlobs:m}=f.useMemo(()=>ot(t??c),[t,c]),_=h=>h.map(u=>e.jsx("g",{className:fe.blob,style:{opacity:u.opacity,"--lava-dur":`${u.dur.toFixed(1)}s`,"--lava-delay":`${u.delay.toFixed(1)}s`,"--lava-rise":`${u.rise.toFixed(0)}px`},children:e.jsx("path",{className:fe.wobble,d:u.d,style:{"--lava-wdur":`${u.wobbleDur.toFixed(1)}s`,"--lava-wdelay":`${u.wobbleDelay.toFixed(1)}s`,"--lava-sway":`${u.sway.toFixed(1)}px`}})},u.d));return e.jsxs("svg",{className:d(fe.glow,s),viewBox:"0 0 600 600","aria-hidden":!0,role:"presentation",children:[e.jsxs("defs",{children:[e.jsxs("filter",{id:l,colorInterpolationFilters:"sRGB",children:[e.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"}),e.jsx("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 21 -9",result:"cm"}),e.jsx("feBlend",{})]}),e.jsxs("filter",{id:n,colorInterpolationFilters:"sRGB",children:[e.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"10",result:"blur"}),e.jsx("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -6"})]}),e.jsx("clipPath",{id:a,children:e.jsx("path",{d:"M262,174h60l33.5,182.3c0,0,2.7,12.8,2.5,22.8c-7.5,0-131,0-131,0s-0.7-9.3,0-18C227.6,352.9,262,174,262,174z"})}),e.jsxs("radialGradient",{id:i,cx:"300",cy:"300",r:"400",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.0714",stopColor:"currentColor",stopOpacity:"0.19"}),e.jsx("stop",{offset:"0.3107",stopColor:"currentColor",stopOpacity:"0.13"}),e.jsx("stop",{offset:"0.553",stopColor:"currentColor",stopOpacity:"0.06"}),e.jsx("stop",{offset:"0.7828",stopColor:"currentColor",stopOpacity:"0.02"}),e.jsx("stop",{offset:"0.9847",stopColor:"currentColor",stopOpacity:"0"})]})]}),e.jsx("rect",{fill:`url(#${i})`,width:"600",height:"600"}),e.jsx("g",{filter:`url(#${n})`,clipPath:`url(#${a})`,fill:"currentColor",opacity:.2,children:_(m)}),e.jsxs("g",{filter:`url(#${l})`,clipPath:`url(#${a})`,fill:"currentColor",children:[_(p),e.jsx("path",{className:fe.botBlob,d:"M354,381.2c6.8,3.4,5.4,7.4-5.6,10.4c-10.7,3.1-31.1,5.1-54.4,8.4c-23.3,3.3-43.7,0.8-54.4-2.4c-11-3.4-12.4-7.6-5.6-13.8c6.8-7,18.9-14.6,29.6-17.4c11-3.3,20.6-1.8,30.4-1.4c9.8,0.4,19.4,5.1,30.4,8.3C335.1,376.8,347.2,378.6,354,381.2z"})]})]})}const nt="backdrop-module__backdrop___CoxJ-",lt="backdrop-module__glowLayer___esKR8",at="backdrop-module__grainLayer___44u-y",rt="backdrop-module__content___W2hOD",be={backdrop:nt,glowLayer:lt,grainLayer:at,content:rt};function ct({grain:s=!0,glow:t=!0,className:o,children:l}){return e.jsxs("div",{className:d(be.backdrop,o),children:[t&&e.jsx("div",{className:be.glowLayer,children:e.jsx(ze,{})}),s&&e.jsx(Te,{className:be.grainLayer}),e.jsx("div",{className:be.content,children:l})]})}const _t="glass-module__glass___Z6fy2",dt={glass:_t},it=f.forwardRef(function({blur:t,className:o,style:l,children:n,...a},i){const c=t===0?{"--fui-glass-backdrop":"none"}:t!=null?{"--fui-glass-blur":`${t}px`}:void 0;return e.jsx("div",{ref:i,className:d(dt.glass,o),style:{...c,...l},...a,children:n})}),ut="button-module__button___Z331g",mt="button-module__active___weXhI",pt="button-module__primary___ppbyq",ht="button-module__secondary___esy5L",ft="button-module__ghost___NisA0",bt="button-module__danger___Wnvuq",xt="button-module__md___REpcP",gt="button-module__sm___QYj0l",vt="button-module__fullWidth___H0P0F",yt="button-module__iconSlot___BGOaK",V={button:ut,active:mt,primary:pt,secondary:ht,ghost:ft,danger:bt,md:xt,sm:gt,fullWidth:vt,iconSlot:yt},jt=f.forwardRef(function({variant:t="primary",size:o="md",fullWidth:l=!1,icon:n,iconRight:a,isActive:i=!1,className:c,children:p,...m},_){return e.jsxs("button",{ref:_,type:"button","aria-pressed":i||void 0,className:d(V.button,V[t],V[o],l&&V.fullWidth,i&&V.active,c),...m,children:[n&&e.jsx("span",{className:V.iconSlot,children:n}),p,a&&e.jsx("span",{className:V.iconSlot,children:a})]})}),wt="icon-button-module__iconButton___avg6i",$t="icon-button-module__active___XaJ4h",kt="icon-button-module__ghost___Wbxog",Nt="icon-button-module__danger___p0Xz5",Mt="icon-button-module__sm___4l7PX",It="icon-button-module__md___48iuw",xe={iconButton:wt,default:"icon-button-module__default___9frNR",active:$t,ghost:kt,danger:Nt,sm:Mt,md:It},Dt=f.forwardRef(function({icon:t,label:o,variant:l="default",size:n="md",isActive:a=!1,className:i,...c},p){return e.jsx("button",{ref:p,type:"button","aria-label":o,title:o,"aria-pressed":a||void 0,className:d(xe.iconButton,xe[l],xe[n],a&&xe.active,i),...c,children:t})}),Bt="lamp-button-module__lampButton___vLS18",St="lamp-button-module__bezel___U-EXI",Lt="lamp-button-module__socket___Jyed-",Ct="lamp-button-module__surface___8dOFO",Et="lamp-button-module__green___GAW2z",Rt="lamp-button-module__yellow___-edHR",Ft="lamp-button-module__gray___m7yXy",Tt="lamp-button-module__red___4wFVi",zt="lamp-button-module__dark___ZKc5R",Kt="lamp-button-module__content___YGpBr",Pt="lamp-button-module__inkLight___6beGg",At="lamp-button-module__inkDark___tnNFq",Ot="lamp-button-module__icon___IBRdm",Gt="lamp-button-module__sm___bjzzW",qt="lamp-button-module__full___pf8ue",Yt="lamp-button-module__half___VL0GN",Ht="lamp-button-module__md___Hwseh",Ut="lamp-button-module__lg___-yjxW",T={lampButton:Bt,bezel:St,socket:Lt,surface:Ct,green:Et,yellow:Rt,gray:Ft,red:Tt,dark:zt,content:Kt,inkLight:Pt,inkDark:At,icon:Ot,sm:Gt,full:qt,half:Yt,md:Ht,lg:Ut},Wt=f.forwardRef(function({tone:t="gray",size:o="md",rounded:l="full",icon:n,className:a,children:i,disabled:c,...p},m){const _=c?"dark":t;return e.jsxs("button",{ref:m,type:"button",disabled:c,className:d(T.lampButton,T[o],T[l],a),...p,children:[e.jsx("span",{className:T.bezel}),e.jsx("span",{className:T.socket}),e.jsx("span",{className:d(T.surface,T[_])}),e.jsxs("span",{className:d(T.content,_==="gray"?T.inkDark:T.inkLight),children:[n&&e.jsx("span",{className:T.icon,children:n}),i]})]})}),Zt="lamp-icon-button-module__lampIconButton___1xZo8",Xt="lamp-icon-button-module__bezel___Z9Kq8",Vt="lamp-icon-button-module__socket___OzfA4",Jt="lamp-icon-button-module__surface___Eabnu",Qt="lamp-icon-button-module__green___Bc3bQ",es="lamp-icon-button-module__yellow___9j8ol",ts="lamp-icon-button-module__gray___NgxOh",ss="lamp-icon-button-module__red___2yAmf",os="lamp-icon-button-module__dark___2KgXc",ns="lamp-icon-button-module__icon___NglMS",ls="lamp-icon-button-module__inkLight___Ea5Is",as="lamp-icon-button-module__inkDark___5F-Vy",rs="lamp-icon-button-module__sm___HpAmU",cs="lamp-icon-button-module__md___xYNb1",_s="lamp-icon-button-module__lg___V4xGx",H={lampIconButton:Zt,bezel:Xt,socket:Vt,surface:Jt,green:Qt,yellow:es,gray:ts,red:ss,dark:os,icon:ns,inkLight:ls,inkDark:as,sm:rs,md:cs,lg:_s},ds=f.forwardRef(function({icon:t,label:o,tone:l="gray",size:n="md",className:a,disabled:i,...c},p){const m=i?"dark":l;return e.jsxs("button",{ref:p,type:"button","aria-label":o,title:o,disabled:i,className:d(H.lampIconButton,H[n],a),...c,children:[e.jsx("span",{className:H.bezel}),e.jsx("span",{className:H.socket}),e.jsx("span",{className:d(H.surface,H[m])}),e.jsx("span",{className:d(H.icon,m==="gray"?H.inkDark:H.inkLight),children:t})]})}),is="lamp-switch-module__control___WEQSl",us="lamp-switch-module__disabled___TUW9S",ms="lamp-switch-module__input___WYweb",ps="lamp-switch-module__bezel___pZzrv",hs="lamp-switch-module__socket___BIITV",fs="lamp-switch-module__glow___IwjxL",bs="lamp-switch-module__knob___L-MKD",xs="lamp-switch-module__labels___DRwFx",gs="lamp-switch-module__off___fk-7m",vs="lamp-switch-module__on___heTFC",ys="lamp-switch-module__divider___KxXb9",js="lamp-switch-module__text___xb6i5",ws="lamp-switch-module__green___o-64B",$s="lamp-switch-module__yellow___68h4h",ks="lamp-switch-module__gray___omIlV",Ns="lamp-switch-module__red___1NqKe",Ms="lamp-switch-module__dark___muS53",Is="lamp-switch-module__sm___iu8wH",Ds="lamp-switch-module__md___xcpKC",Bs="lamp-switch-module__lg___vpOur",E={control:is,disabled:us,input:ms,switch:"lamp-switch-module__switch___kZ7oI",bezel:ps,socket:hs,glow:fs,knob:bs,labels:xs,off:gs,on:vs,divider:ys,text:js,green:ws,yellow:$s,gray:ks,red:Ns,dark:Ms,sm:Is,md:Ds,lg:Bs},Ss=f.forwardRef(function({tone:t="green",size:o="md",label:l,id:n,className:a,disabled:i,...c},p){const m=f.useId(),_=n??`fui-lamp-switch-${m}`;return e.jsxs("label",{htmlFor:_,className:d(E.control,i&&E.disabled,a),children:[e.jsx("input",{ref:p,id:_,type:"checkbox",className:E.input,disabled:i,...c}),e.jsxs("span",{className:d(E.switch,E[o],E[t]),"aria-hidden":"true",children:[e.jsx("span",{className:E.bezel}),e.jsx("span",{className:E.socket}),e.jsx("span",{className:E.glow}),e.jsx("span",{className:E.knob}),e.jsxs("span",{className:E.labels,children:[e.jsx("span",{className:E.off,children:"O"}),e.jsx("span",{className:E.on,children:"I"})]}),e.jsx("span",{className:E.divider})]}),l&&e.jsx("span",{className:E.text,children:l})]})}),Ls="lamp-status-module__lampStatus___RQuyf",Cs="lamp-status-module__lamp___4-Pqb",Es="lamp-status-module__bezel___iW-i1",Rs="lamp-status-module__socket___XVX5p",Fs="lamp-status-module__surface___s0XbK",Ts="lamp-status-module__green___2Ftjw",zs="lamp-status-module__yellow___UPxo-",Ks="lamp-status-module__red___DEvbK",Ps="lamp-status-module__dark___mc6PP",As="lamp-status-module__pulse___j6DB9",Os="lamp-status-module__fui-lamp-pulse___d9PZT",Gs="lamp-status-module__text___2b1w4",U={lampStatus:Ls,lamp:Cs,bezel:Es,socket:Rs,surface:Fs,green:Ts,yellow:zs,red:Ks,dark:Ps,pulse:As,fuiLampPulse:Os,text:Gs},qs={running:{tone:"green",label:"Running",pulse:!0},stopped:{tone:"dark",label:"Stopped",pulse:!1},error:{tone:"red",label:"Error",pulse:!1},initializing:{tone:"yellow",label:"Starting",pulse:!0}};function Ys({status:s,label:t,className:o,...l}){const n=qs[s];return e.jsxs("output",{className:d(U.lampStatus,o),...l,children:[e.jsxs("span",{className:U.lamp,children:[e.jsx("span",{className:U.bezel}),e.jsx("span",{className:U.socket}),e.jsx("span",{className:d(U.surface,U[n.tone],n.pulse&&U.pulse)})]}),e.jsx("span",{className:d(U.text,U[n.tone]),children:t??n.label})]})}const Hs="lamp-meter-module__lampMeter___KJEsA",Us="lamp-meter-module__header___mcKTY",Ws="lamp-meter-module__label___8YEo9",Zs="lamp-meter-module__value___kL376",Xs="lamp-meter-module__bar___tYmz5",Vs="lamp-meter-module__bezel___yUT9m",Js="lamp-meter-module__track___qwoyr",Qs="lamp-meter-module__lamps___nE9i-",eo="lamp-meter-module__lamp___jRJoT",to="lamp-meter-module__green___Vz-8B",so="lamp-meter-module__lit___WUO1g",oo="lamp-meter-module__partial___3-Om7",no="lamp-meter-module__yellow___xzkCV",lo="lamp-meter-module__gray___EyYCs",ao="lamp-meter-module__red___jhoIm",ro="lamp-meter-module__dark___Dcxyc",co="lamp-meter-module__sm___iYqDJ",_o="lamp-meter-module__md___XPzch",io="lamp-meter-module__lg___NJDT4",uo="lamp-meter-module__fullWidth___qlY91",R={lampMeter:Hs,header:Us,label:Ws,value:Zs,bar:Xs,bezel:Vs,track:Js,lamps:Qs,lamp:eo,green:to,lit:so,partial:oo,yellow:no,gray:lo,red:ao,dark:ro,sm:co,md:_o,lg:io,fullWidth:uo};function mo({value:s,max:t=100,tone:o="green",size:l="md",lampCount:n=10,label:a,showValue:i=!1,fullWidth:c=!1,className:p,style:m,..._}){const h=t>0?Math.max(0,Math.min(s,t)):0,u=t>0?h/t:0,x=Math.round(u*100),b=u*n,v=Math.floor(b),g=b-v,w=Array.from({length:n},(j,k)=>({id:`lamp-${k}`,index:k}));return e.jsxs("span",{role:"progressbar","aria-label":a??"Progress","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":h,className:d(R.lampMeter,c&&R.fullWidth,p),style:{"--fui-lamp-count":n,...m},..._,children:[(a!=null||i)&&e.jsxs("span",{className:R.header,children:[e.jsx("span",{className:R.label,children:a}),i&&e.jsxs("span",{className:R.value,children:[x,"%"]})]}),e.jsxs("span",{className:d(R.bar,R[l]),children:[e.jsx("span",{className:R.bezel}),e.jsx("span",{className:R.track,children:e.jsx("span",{className:R.lamps,children:w.map(j=>{const k=j.index===v&&g>0;return e.jsx("span",{className:d(R.lamp,R[o],j.index<v&&R.lit,k&&R.partial),style:k?{opacity:.3+g*.7}:void 0},j.id)})})})]})]})}const po="link-button-module__linkButton___q-Uot",ho="link-button-module__inherit___7pKrk",fo="link-button-module__accent___rgB7A",bo="link-button-module__sm___zPqj6",xo="link-button-module__md___M0cWx",go="link-button-module__lg___ZoNuc",vo="link-button-module__iconSlot___-fGhm",re={linkButton:po,inherit:ho,accent:fo,sm:bo,md:xo,lg:go,iconSlot:vo},yo=f.forwardRef(function({color:t="accent",size:o="md",icon:l,iconRight:n,className:a,children:i,...c},p){return e.jsxs("button",{ref:p,type:"button",className:d(re.linkButton,re[t],re[o],a),...c,children:[l&&e.jsx("span",{className:re.iconSlot,children:l}),i,n&&e.jsx("span",{className:re.iconSlot,children:n})]})}),jo="stamp-module__stamp___5qaNY",wo="stamp-module__dot___qZyCR",$o="stamp-module__neutral___6CXei",ko="stamp-module__info___hH0OA",No="stamp-module__success___vtscx",Mo="stamp-module__warning___H6sZS",Io="stamp-module__error___G-HEQ",Do="stamp-module__sm___N-jia",Bo="stamp-module__md___Cz5Vg",ge={stamp:jo,dot:wo,neutral:$o,info:ko,success:No,warning:Mo,error:Io,sm:Do,md:Bo};function So({variant:s="neutral",size:t="sm",dot:o=!1,fillColor:l,textColor:n,onClick:a,className:i,style:c,children:p,...m}){const _=a?"button":"span",h=l||n?{backgroundColor:l,color:n}:void 0;return e.jsxs(_,{type:a?"button":void 0,onClick:a,className:d(ge.stamp,ge[s],ge[t],i),style:{...h,...c},...m,children:[o&&e.jsx("span",{className:ge.dot,"aria-hidden":!0}),p]})}const Lo="tooltip-module__tooltip___e-rkz",Co="tooltip-module__ready___LI2J6",Re={tooltip:Lo,ready:Co},ve=8,ye=8;function je(s,t){return o=>{typeof s=="function"&&s(o),t(o)}}function Eo({content:s,children:t,placement:o="top",delay:l=300}){const n=f.useId(),[a,i]=f.useState(!1),[c,p]=f.useState(null),m=f.useRef(null),_=f.useRef(null),h=f.useRef(void 0),u=f.useCallback(()=>{window.clearTimeout(h.current),i(!1),p(null)},[]);f.useEffect(()=>()=>window.clearTimeout(h.current),[]),f.useEffect(()=>{if(!a)return;const j=k=>{k.key==="Escape"&&u()};return window.addEventListener("keydown",j),window.addEventListener("scroll",u,!0),window.addEventListener("resize",u),()=>{window.removeEventListener("keydown",j),window.removeEventListener("scroll",u,!0),window.removeEventListener("resize",u)}},[a,u]),f.useLayoutEffect(()=>{if(!a)return;const j=_.current,k=m.current;if(!j||!k)return;const M=k.getBoundingClientRect();let D,B;switch(o){case"bottom":D=j.bottom+ve,B=j.left+j.width/2-M.width/2;break;case"left":D=j.top+j.height/2-M.height/2,B=j.left-M.width-ve;break;case"right":D=j.top+j.height/2-M.height/2,B=j.right+ve;break;default:D=j.top-M.height-ve,B=j.left+j.width/2-M.width/2}B=Math.min(Math.max(B,ye),window.innerWidth-M.width-ye),D=Math.min(Math.max(D,ye),window.innerHeight-M.height-ye),p({top:D,left:B})},[a,o]);const x=s==null||s===!1||s==="",b=f.Children.only(t),v=b.props,g=j=>{_.current=j.getBoundingClientRect(),i(!0)};if(x)return t;const w=f.cloneElement(b,{onMouseEnter:je(v.onMouseEnter,j=>{const k=j.currentTarget;window.clearTimeout(h.current),h.current=window.setTimeout(()=>g(k),l)}),onMouseLeave:je(v.onMouseLeave,u),onFocus:je(v.onFocus,j=>{g(j.currentTarget)}),onBlur:je(v.onBlur,u),"aria-describedby":a?n:v["aria-describedby"]});return e.jsxs(e.Fragment,{children:[w,a&&Ne.createPortal(e.jsx("div",{ref:m,id:n,role:"tooltip",className:d(Re.tooltip,c&&Re.ready),style:c?{top:c.top,left:c.left}:void 0,children:s}),document.body)]})}const Ke=f.createContext(null),Ro="toast-module__stack___hDi0s",Fo="toast-module__top-left___rIwtH",To="toast-module__top-center___OapVt",zo="toast-module__top-right___Ci4Ki",Ko="toast-module__bottom-left___y6xhK",Po="toast-module__bottom-center___yYVrc",Ao="toast-module__bottom-right___JeMil",Oo="toast-module__toast___y1lVX",Go="toast-module__toast-in___TYYwQ",qo="toast-module__title___1Oqh8",Yo="toast-module__description___eiUSB",Ho="toast-module__close___IDukn",Uo="toast-module__info___Nh8S9",Wo="toast-module__success___hlKLc",Zo="toast-module__warning___XUMJt",Xo="toast-module__error___pSFFC",J={stack:Ro,topLeft:Fo,topCenter:To,topRight:zo,bottomLeft:Ko,bottomCenter:Po,bottomRight:Ao,toast:Oo,toastIn:Go,title:qo,description:Yo,close:Ho,info:Uo,success:Wo,warning:Zo,error:Xo};function Vo({children:s,position:t="bottom-right",defaultDuration:o=5e3}){const[l,n]=f.useState([]),a=f.useRef(new Map),i=f.useRef(0),c=f.useCallback(_=>{n(u=>u.filter(x=>x.id!==_));const h=a.current.get(_);h!==void 0&&(window.clearTimeout(h),a.current.delete(_))},[]),p=f.useCallback(_=>{i.current+=1;const h=`fui-toast-${i.current}`;n(x=>[...x,{id:h,title:_.title,description:_.description,variant:_.variant??"info"}]);const u=_.duration??o;return u>0&&a.current.set(h,window.setTimeout(()=>c(h),u)),h},[o,c]);f.useEffect(()=>{const _=a.current;return()=>{for(const h of _.values())window.clearTimeout(h)}},[]);const m=f.useMemo(()=>({toast:p,dismiss:c}),[p,c]);return e.jsxs(Ke.Provider,{value:m,children:[s,Ne.createPortal(e.jsx("div",{className:d(J.stack,J[t]),children:l.map(_=>e.jsxs("div",{role:_.variant==="error"?"alert":"status",className:d(J.toast,J[_.variant]),children:[_.title&&e.jsx("p",{className:J.title,children:_.title}),_.description&&e.jsx("p",{className:J.description,children:_.description}),e.jsx("button",{type:"button","aria-label":"Dismiss",className:J.close,onClick:()=>c(_.id),children:"×"})]},_.id))}),document.body)]})}function Jo(){const s=f.useContext(Ke);if(!s)throw new Error("useToast must be used within a <ToastProvider>");return s}const Qo="card-module__card___HG0v6",en="card-module__interactive___lCSFj",tn="card-module__sm___ug17X",sn="card-module__md___BAzpC",on="card-module__title___9LIjW",nn="card-module__body___b17cz",ie={card:Qo,interactive:en,sm:tn,md:sn,title:on,body:nn};function ln(s){s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),s.currentTarget.click())}function an({size:s="md",onClick:t,className:o,children:l,...n}){const a=t!=null;return e.jsx("div",{className:d(ie.card,ie[s],a&&ie.interactive,o),onClick:t,...a?{role:"button",tabIndex:0,onKeyDown:ln}:void 0,...n,children:l})}function rn({className:s,children:t,...o}){return e.jsx("h3",{className:d(ie.title,s),...o,children:t})}function cn({className:s,children:t,...o}){return e.jsx("p",{className:d(ie.body,s),...o,children:t})}const _n=Object.assign(an,{Title:rn,Body:cn}),dn="input-module__field___khFpX",un="input-module__label___lu7R1",mn="input-module__input___h7K-F",pn="input-module__invalid___Iaiq7",hn="input-module__md___-HF8v",fn="input-module__sm___YZFhc",bn="input-module__message___0KmBb",xn="input-module__error___QDqga",Q={field:dn,label:un,input:mn,invalid:pn,md:hn,sm:fn,message:bn,error:xn},gn=f.forwardRef(function({label:t,helperText:o,error:l,size:n="md",id:a,className:i,...c},p){const m=f.useId(),_=a??`fui-input-${m}`,h=`fui-input-message-${m}`,u=l!=null,x=u?l:o;return e.jsxs("div",{className:d(Q.field,i),children:[t&&e.jsx("label",{htmlFor:_,className:Q.label,children:t}),e.jsx("input",{ref:p,id:_,className:d(Q.input,Q[n],u&&Q.invalid),"aria-invalid":u||void 0,"aria-describedby":x!=null?h:void 0,...c}),x!=null&&e.jsx("p",{id:h,className:d(Q.message,u&&Q.error),children:x})]})}),vn="textarea-module__field___KluQf",yn="textarea-module__label___ejhyZ",jn="textarea-module__textarea___0y-7v",wn="textarea-module__invalid___71TQR",$n="textarea-module__md___88VHx",kn="textarea-module__sm___W7F60",Nn="textarea-module__message___G-p-4",Mn="textarea-module__error___EkXKJ",ee={field:vn,label:yn,textarea:jn,invalid:wn,md:$n,sm:kn,message:Nn,error:Mn},In=f.forwardRef(function({label:t,helperText:o,error:l,size:n="md",id:a,className:i,...c},p){const m=f.useId(),_=a??`fui-textarea-${m}`,h=`fui-textarea-message-${m}`,u=l!=null,x=u?l:o;return e.jsxs("div",{className:d(ee.field,i),children:[t&&e.jsx("label",{htmlFor:_,className:ee.label,children:t}),e.jsx("textarea",{ref:p,id:_,className:d(ee.textarea,ee[n],u&&ee.invalid),"aria-invalid":u||void 0,"aria-describedby":x!=null?h:void 0,...c}),x!=null&&e.jsx("p",{id:h,className:d(ee.message,u&&ee.error),children:x})]})}),Dn="select-module__field___8gAFH",Bn="select-module__label___ay-3s",Sn="select-module__control___gJhql",Ln="select-module__trigger___xMYHi",Cn="select-module__placeholder___0VOFP",En="select-module__value___S3Cae",Rn="select-module__arrow___i1IUe",Fn="select-module__invalid___xa4uh",Tn="select-module__md___R2uu2",zn="select-module__sm___cCEld",Kn="select-module__list___o8hVj",Pn="select-module__option___vNnue",An="select-module__active___055r4",On="select-module__optionDisabled___ex2zq",Gn="select-module__native___O1NJL",qn="select-module__message___9ddQu",Yn="select-module__error___P5RBk",L={field:Dn,label:Bn,control:Sn,trigger:Ln,placeholder:Cn,value:En,arrow:Rn,invalid:Fn,md:Tn,sm:zn,list:Kn,option:Pn,active:An,optionDisabled:On,native:Gn,message:qn,error:Yn},Hn=f.forwardRef(function({options:t,value:o,defaultValue:l,onChange:n,label:a,helperText:i,error:c,size:p="md",placeholder:m="Select…",disabled:_=!1,name:h,required:u,id:x,className:b},v){const g=f.useId(),w=x??`fui-select-${g}`,j=`fui-select-list-${g}`,k=`fui-select-message-${g}`,M=$=>`${w}-option-${$}`,D=o!==void 0,[B,P]=f.useState(l??""),F=D?o:B,[r,y]=f.useState(!1),[N,S]=f.useState(-1),oe=f.useRef(null),Se=f.useRef(null),ue=c!=null,Me=ue?c:i,me=t.findIndex($=>$.value===F),pe=me>=0?t[me]:void 0,Le=()=>t.findIndex($=>!$.disabled),qe=()=>{for(let $=t.length-1;$>=0;$--)if(!t[$].disabled)return $;return-1},Ye=$=>{for(let I=$+1;I<t.length;I++)if(!t[I].disabled)return I;return $},He=$=>{for(let I=$-1;I>=0;I--)if(!t[I].disabled)return I;return $};f.useEffect(()=>{if(!r)return;const $=I=>{var Ce;(Ce=oe.current)!=null&&Ce.contains(I.target)||y(!1)};return window.addEventListener("pointerdown",$),()=>window.removeEventListener("pointerdown",$)},[r]);const he=()=>{S(me>=0?me:Le()),y(!0)},Ie=$=>{var I;D||P($),n==null||n($),y(!1),(I=Se.current)==null||I.focus()},Ue=$=>{switch($.key){case"ArrowDown":$.preventDefault(),r?S(I=>Ye(I)):he();break;case"ArrowUp":$.preventDefault(),r?S(I=>He(I)):he();break;case"Home":r&&($.preventDefault(),S(Le()));break;case"End":r&&($.preventDefault(),S(qe()));break;case"Enter":case" ":$.preventDefault(),r&&N>=0?Ie(t[N].value):he();break;case"Escape":r&&($.preventDefault(),y(!1));break;case"Tab":r&&y(!1);break}};return e.jsxs("div",{ref:oe,className:d(L.field,b),children:[a&&e.jsx("label",{htmlFor:w,className:L.label,children:a}),e.jsxs("div",{className:L.control,children:[e.jsxs("button",{ref:Se,type:"button",id:w,role:"combobox","aria-haspopup":"listbox","aria-expanded":r,"aria-controls":j,"aria-activedescendant":r&&N>=0?M(N):void 0,"aria-invalid":ue||void 0,"aria-describedby":Me!=null?k:void 0,disabled:_,className:d(L.trigger,L[p],ue&&L.invalid,!pe&&L.placeholder),onClick:()=>r?y(!1):he(),onKeyDown:Ue,children:[e.jsx("span",{className:L.value,children:pe?pe.label:m}),e.jsx("span",{className:L.arrow,"aria-hidden":"true"})]}),r&&e.jsx("div",{id:j,role:"listbox",tabIndex:-1,className:L.list,children:t.map(($,I)=>e.jsx("button",{type:"button",id:M(I),role:"option",tabIndex:-1,"aria-selected":$.value===F,disabled:$.disabled,className:d(L.option,I===N&&L.active,$.disabled&&L.optionDisabled),onPointerMove:()=>!$.disabled&&S(I),onClick:()=>Ie($.value),children:$.label},$.value))})]}),e.jsxs("select",{ref:v,name:h,value:F,required:u,disabled:_,"aria-hidden":"true",tabIndex:-1,className:L.native,onChange:$=>Ie($.target.value),children:[!pe&&e.jsx("option",{value:F}),t.map($=>e.jsx("option",{value:$.value,disabled:$.disabled,children:$.label},$.value))]}),Me!=null&&e.jsx("p",{id:k,className:d(L.message,ue&&L.error),children:Me})]})}),Un="checkbox-module__field___RelhS",Wn="checkbox-module__control___byZMh",Zn="checkbox-module__disabled___Ba3GC",Xn="checkbox-module__input___Ptgt7",Vn="checkbox-module__box___yAh-r",Jn="checkbox-module__text___YbsL3",Qn="checkbox-module__invalid___-QWUO",el="checkbox-module__md___b-TNq",tl="checkbox-module__sm___uCkXv",sl="checkbox-module__message___CKZrQ",ol="checkbox-module__error___9UaCv",A={field:Un,control:Wn,disabled:Zn,input:Xn,box:Vn,text:Jn,invalid:Qn,md:el,sm:tl,message:sl,error:ol},nl=f.forwardRef(function({label:t,helperText:o,error:l,size:n="md",id:a,className:i,disabled:c,...p},m){const _=f.useId(),h=a??`fui-checkbox-${_}`,u=`fui-checkbox-message-${_}`,x=l!=null,b=x?l:o;return e.jsxs("div",{className:d(A.field,i),children:[e.jsxs("label",{htmlFor:h,className:d(A.control,A[n],c&&A.disabled),children:[e.jsx("input",{ref:m,id:h,type:"checkbox",className:A.input,disabled:c,"aria-invalid":x||void 0,"aria-describedby":b!=null?u:void 0,...p}),e.jsx("span",{className:d(A.box,x&&A.invalid),"aria-hidden":"true"}),t&&e.jsx("span",{className:A.text,children:t})]}),b!=null&&e.jsx("p",{id:u,className:d(A.message,x&&A.error),children:b})]})}),ll="radio-module__field___zfiOx",al="radio-module__control___E2qkU",rl="radio-module__disabled___cBUku",cl="radio-module__input___M2nFJ",_l="radio-module__dot___jVJ-d",dl="radio-module__text___wcXr-",il="radio-module__invalid___wV1rf",ul="radio-module__md___UQmih",ml="radio-module__sm___7xAyp",pl="radio-module__message___WSx2O",hl="radio-module__error___Mi15v",O={field:ll,control:al,disabled:rl,input:cl,dot:_l,text:dl,invalid:il,md:ul,sm:ml,message:pl,error:hl},Pe=f.forwardRef(function({label:t,helperText:o,error:l,size:n="md",id:a,className:i,disabled:c,...p},m){const _=f.useId(),h=a??`fui-radio-${_}`,u=`fui-radio-message-${_}`,x=l!=null,b=x?l:o;return e.jsxs("div",{className:d(O.field,i),children:[e.jsxs("label",{htmlFor:h,className:d(O.control,O[n],c&&O.disabled),children:[e.jsx("input",{ref:m,id:h,type:"radio",className:O.input,disabled:c,"aria-invalid":x||void 0,"aria-describedby":b!=null?u:void 0,...p}),e.jsx("span",{className:d(O.dot,x&&O.invalid),"aria-hidden":"true"}),t&&e.jsx("span",{className:O.text,children:t})]}),b!=null&&e.jsx("p",{id:u,className:d(O.message,x&&O.error),children:b})]})}),fl="radio-group-module__group___PqCH0",bl="radio-group-module__legend___PlUYS",xl="radio-group-module__options___5BrnU",gl="radio-group-module__vertical___3Vhsy",vl="radio-group-module__horizontal___Y5vdI",yl="radio-group-module__message___R5JZm",jl="radio-group-module__error___NRRJw",ne={group:fl,legend:bl,options:xl,vertical:gl,horizontal:vl,message:yl,error:jl};function wl({options:s,value:t,onChange:o,name:l,legend:n,orientation:a="vertical",size:i="md",helperText:c,error:p,disabled:m,className:_,...h}){const u=f.useId(),x=l??`fui-radio-group-${u}`,b=`fui-radio-group-message-${u}`,v=p!=null,g=v?p:c;return e.jsxs("fieldset",{className:d(ne.group,_),disabled:m,"aria-invalid":v||void 0,"aria-describedby":g!=null?b:void 0,...h,children:[n!=null&&e.jsx("legend",{className:ne.legend,children:n}),e.jsx("div",{className:d(ne.options,ne[a]),children:s.map(w=>e.jsx(Pe,{name:x,value:w.value,checked:w.value===t,disabled:w.disabled,label:w.label,helperText:w.helperText,size:i,onChange:()=>o(w.value)},w.value))}),g!=null&&e.jsx("p",{id:b,className:d(ne.message,v&&ne.error),children:g})]})}const $l="switch-module__field___zh7DJ",kl="switch-module__control___g0N-0",Nl="switch-module__disabled___LQtR1",Ml="switch-module__input___YKZRj",Il="switch-module__track___QNvnO",Dl="switch-module__knob___ayTTe",Bl="switch-module__text___RCdR5",Sl="switch-module__invalid___9wtmg",Ll="switch-module__md___bJSQP",Cl="switch-module__sm___TIccZ",El="switch-module__message___X9193",Rl="switch-module__error___brY-r",z={field:$l,control:kl,disabled:Nl,input:Ml,track:Il,knob:Dl,text:Bl,invalid:Sl,md:Ll,sm:Cl,message:El,error:Rl},Fl=f.forwardRef(function({label:t,helperText:o,error:l,size:n="md",id:a,className:i,disabled:c,...p},m){const _=f.useId(),h=a??`fui-switch-${_}`,u=`fui-switch-message-${_}`,x=l!=null,b=x?l:o;return e.jsxs("div",{className:d(z.field,i),children:[e.jsxs("label",{htmlFor:h,className:d(z.control,z[n],c&&z.disabled),children:[e.jsx("input",{ref:m,id:h,type:"checkbox",className:z.input,disabled:c,"aria-invalid":x||void 0,"aria-describedby":b!=null?u:void 0,...p}),e.jsx("span",{className:d(z.track,x&&z.invalid),"aria-hidden":"true",children:e.jsx("span",{className:z.knob})}),t&&e.jsx("span",{className:z.text,children:t})]}),b!=null&&e.jsx("p",{id:u,className:d(z.message,x&&z.error),children:b})]})}),Tl="modal-module__overlay___a52Ni",zl="modal-module__backdrop___RS4yj",Kl="modal-module__panel___uPXuE",Pl="modal-module__sm___DOlEI",Al="modal-module__md___-evKM",Ol="modal-module__lg___AvEqd",Gl="modal-module__header___iP09B",ql="modal-module__title___nj06m",Yl="modal-module__close___gQou9",Hl="modal-module__body___Y-EdA",Ul="modal-module__footer___z9JqA",Wl="modal-module__errorText___cjMEM",Y={overlay:Tl,backdrop:zl,panel:Kl,sm:Pl,md:Al,lg:Ol,header:Gl,title:ql,close:Yl,body:Hl,footer:Ul,errorText:Wl},Zl='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function Xl({open:s,onClose:t,title:o,size:l="md",children:n,className:a}){const c=`fui-modal-title-${f.useId()}`,p=f.useRef(null),m=f.useRef(null),_=f.useRef(t);return _.current=t,f.useEffect(()=>{var x;if(!s)return;m.current=document.activeElement,(x=p.current)==null||x.focus();const h=b=>{var j,k;if(b.key==="Escape"){b.preventDefault(),_.current();return}if(b.key!=="Tab")return;const v=(j=p.current)==null?void 0:j.querySelectorAll(Zl);if(!v||v.length===0){b.preventDefault(),(k=p.current)==null||k.focus();return}const g=v[0],w=v[v.length-1];b.shiftKey&&document.activeElement===g?(b.preventDefault(),w.focus()):!b.shiftKey&&document.activeElement===w&&(b.preventDefault(),g.focus())};document.addEventListener("keydown",h);const u=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{var b;document.removeEventListener("keydown",h),document.body.style.overflow=u,(b=m.current)==null||b.focus()}},[s]),!s||typeof document>"u"?null:Ne.createPortal(e.jsxs("div",{className:Y.overlay,children:[e.jsx("button",{type:"button",className:Y.backdrop,"aria-label":"Close modal",onClick:t}),e.jsxs("div",{ref:p,className:d(Y.panel,Y[l],a),role:"dialog","aria-modal":"true","aria-labelledby":o?c:void 0,tabIndex:-1,children:[e.jsxs("div",{className:Y.header,children:[o&&e.jsx("h2",{id:c,className:Y.title,children:o}),e.jsx("button",{type:"button",className:Y.close,"aria-label":"Close modal",onClick:t,children:"×"})]}),n]})]}),document.body)}function Vl({children:s,className:t}){return e.jsx("div",{className:d(Y.body,t),children:s})}function Jl({children:s,className:t}){return e.jsx("div",{className:d(Y.footer,t),children:s})}function Ql({children:s,className:t}){return s?e.jsx("p",{role:"alert",className:d(Y.errorText,t),children:s}):null}const ea=Object.assign(Xl,{Body:Vl,Footer:Jl,Error:Ql}),ta="drawer-module__overlay___Cv-ju",sa="drawer-module__left___4tJTY",oa="drawer-module__right___NA7oF",na="drawer-module__top___SiK4I",la="drawer-module__bottom___RBjGY",aa="drawer-module__backdrop___kai--",ra="drawer-module__fui-drawer-fade___YtfHP",ca="drawer-module__panel___WEKZm",_a="drawer-module__sm___KAlYn",da="drawer-module__md___waKLn",ia="drawer-module__lg___DTfq5",ua="drawer-module__fui-drawer-in-left___PN8lB",ma="drawer-module__fui-drawer-in-right___eQ9wk",pa="drawer-module__fui-drawer-in-top___ax1Au",ha="drawer-module__fui-drawer-in-bottom___Cyf5m",fa="drawer-module__header___IrV2g",ba="drawer-module__title___-Oex-",xa="drawer-module__close___9urOR",ga="drawer-module__body___fGi7v",va="drawer-module__footer___avfH-",K={overlay:ta,left:sa,right:oa,top:na,bottom:la,backdrop:aa,fuiDrawerFade:ra,panel:ca,sm:_a,md:da,lg:ia,fuiDrawerInLeft:ua,fuiDrawerInRight:ma,fuiDrawerInTop:pa,fuiDrawerInBottom:ha,header:fa,title:ba,close:xa,body:ga,footer:va},ya='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function ja({open:s,onClose:t,side:o="right",title:l,size:n="md",children:a,className:i}){const p=`fui-drawer-title-${f.useId()}`,m=f.useRef(null),_=f.useRef(null),h=f.useRef(t);return h.current=t,f.useEffect(()=>{var b;if(!s)return;_.current=document.activeElement,(b=m.current)==null||b.focus();const u=v=>{var k,M;if(v.key==="Escape"){v.preventDefault(),h.current();return}if(v.key!=="Tab")return;const g=(k=m.current)==null?void 0:k.querySelectorAll(ya);if(!g||g.length===0){v.preventDefault(),(M=m.current)==null||M.focus();return}const w=g[0],j=g[g.length-1];v.shiftKey&&document.activeElement===w?(v.preventDefault(),j.focus()):!v.shiftKey&&document.activeElement===j&&(v.preventDefault(),w.focus())};document.addEventListener("keydown",u);const x=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{var v;document.removeEventListener("keydown",u),document.body.style.overflow=x,(v=_.current)==null||v.focus()}},[s]),!s||typeof document>"u"?null:Ne.createPortal(e.jsxs("div",{className:d(K.overlay,K[o]),children:[e.jsx("button",{type:"button",className:K.backdrop,"aria-label":"Close drawer",onClick:t}),e.jsxs("div",{ref:m,className:d(K.panel,K[o],K[n],i),role:"dialog","aria-modal":"true","aria-labelledby":l?p:void 0,tabIndex:-1,children:[e.jsxs("div",{className:K.header,children:[l&&e.jsx("h2",{id:p,className:K.title,children:l}),e.jsx("button",{type:"button",className:K.close,"aria-label":"Close drawer",onClick:t,children:"×"})]}),a]})]}),document.body)}function wa({children:s,className:t}){return e.jsx("div",{className:d(K.body,t),children:s})}function $a({children:s,className:t}){return e.jsx("div",{className:d(K.footer,t),children:s})}const ka=Object.assign(ja,{Body:wa,Footer:$a}),Na="list-item-module__item___KvZj7",Ma="list-item-module__active___UsL8O",Ia="list-item-module__icon___2b4wU",Da="list-item-module__content___e9u66",Ba="list-item-module__action___qGh0-",Sa="list-item-module__md___dpf7n",La="list-item-module__sm___6fwmf",le={item:Na,active:Ma,icon:Ia,content:Da,action:Ba,md:Sa,sm:La},Ca=f.forwardRef(function({size:t="md",active:o=!1,icon:l,action:n,className:a,children:i,...c},p){return e.jsxs("button",{ref:p,type:"button","aria-current":o||void 0,className:d(le.item,le[t],o&&le.active,a),...c,children:[l&&e.jsx("span",{className:le.icon,children:l}),e.jsx("span",{className:le.content,children:i}),n&&e.jsx("span",{className:le.action,children:n})]})}),Ea="alert-module__alert___j7ZRS",Ra="alert-module__icon___vbZHd",Fa="alert-module__message___klR2U",Ta="alert-module__dismiss___f2uoG",za="alert-module__info___PBo1l",Ka="alert-module__success___AVBKS",Pa="alert-module__warning___zkMaJ",Aa="alert-module__error___cxg96",ce={alert:Ea,icon:Ra,message:Fa,dismiss:Ta,info:za,success:Ka,warning:Pa,error:Aa},Oa={info:e.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 0a8 8 0 100 16A8 8 0 008 0zm1 12H7V7h2v5zM8 5.5A1.25 1.25 0 118 3a1.25 1.25 0 010 2.5z"})}),success:e.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 5.7l-4.4 4.4a1 1 0 01-1.4 0L3.7 8.3l1.4-1.4L6.6 8.4l3.7-3.7 1.4 1z"})}),warning:e.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M7.1 1.5a1 1 0 011.8 0l6.4 12A1 1 0 0114.4 15H1.6a1 1 0 01-.9-1.5l6.4-12zM7 6v4h2V6H7zm0 5v2h2v-2H7z"})}),error:e.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 0a8 8 0 100 16A8 8 0 008 0zm3 10.6L9.4 12 8 10.6 6.6 12 5 10.6 6.6 9 5 7.4 6.6 6 8 7.4 9.4 6 11 7.4 9.4 9 11 10.6z"})})};function Ga({variant:s="info",dismissible:t=!1,onDismiss:o,className:l,children:n,...a}){return e.jsxs("div",{role:s==="error"||s==="warning"?"alert":"status",className:d(ce.alert,ce[s],l),...a,children:[e.jsx("span",{className:ce.icon,children:Oa[s]}),e.jsx("div",{className:ce.message,children:n}),t&&e.jsx("button",{type:"button","aria-label":"Dismiss",className:ce.dismiss,onClick:o,children:"×"})]})}const qa="divider-module__divider___0NYwg",Ya="divider-module__horizontal___tP3rG",Ha="divider-module__vertical___wBSrT",Ua="divider-module__labelled___KyGIY",Wa="divider-module__line___KnBes",Za="divider-module__label___WiUwZ",te={divider:qa,horizontal:Ya,vertical:Ha,labelled:Ua,line:Wa,label:Za};function Xa({orientation:s="horizontal",label:t,className:o,...l}){return s==="horizontal"&&t!=null?e.jsxs("div",{className:d(te.divider,te.labelled,o),...l,children:[e.jsx("hr",{className:te.line}),e.jsx("span",{className:te.label,children:t}),e.jsx("hr",{className:te.line})]}):e.jsx("hr",{"aria-orientation":s,className:d(te.divider,te[s],o),...l})}const Va="spinner-module__spinner___FDTk2",Ja="spinner-module__ring___nRx6n",Qa="spinner-module__fui-spin___YstYB",er="spinner-module__sm___kDPMi",tr="spinner-module__md___6Pg-i",sr="spinner-module__lg___zIxGh",De={spinner:Va,ring:Ja,fuiSpin:Qa,sm:er,md:tr,lg:sr};function Ae({size:s="md",label:t="Loading",className:o,...l}){return e.jsx("output",{"aria-label":t,className:d(De.spinner,De[s],o),...l,children:e.jsx("span",{className:De.ring})})}const or="progress-module__progress___ubcWE",nr={progress:or};function lr({value:s,max:t=100,color:o,height:l=8,className:n,style:a,...i}){const c=t>0?Math.max(0,Math.min(s,t)):0,p=o?{"--fui-progress-fill":o}:void 0;return e.jsx("progress",{value:c,max:t,className:d(nr.progress,n),style:{height:l,...p,...a},...i})}const ar="slider-module__field___b0KsE",rr="slider-module__vertical___AAIJT",cr="slider-module__header___KTPLs",_r="slider-module__label___5Ygr5",dr="slider-module__value___SK9Q0",ir="slider-module__input___jU-Oj",ur="slider-module__sm___caMde",mr="slider-module__md___rW4JV",pr="slider-module__invalid___U5heB",hr="slider-module__message___PTD43",fr="slider-module__error___ZOqs4",G={field:ar,vertical:rr,header:cr,label:_r,value:dr,input:ir,sm:ur,md:mr,invalid:pr,message:hr,error:fr},br=f.forwardRef(function({value:t,onChange:o,min:l=0,max:n=100,step:a=1,orientation:i="horizontal",length:c,label:p,helperText:m,error:_,size:h="md",showValue:u=!1,formatValue:x,id:b,className:v,style:g,disabled:w,...j},k){const M=f.useId(),D=b??`fui-slider-${M}`,B=`fui-slider-message-${M}`,P=_!=null,F=P?_:m,r=i==="vertical",y=Math.max(l,Math.min(t,n)),N=n>l?(y-l)/(n-l):0,S=c!=null?typeof c=="number"?`${c}px`:c:void 0;return e.jsxs("div",{className:d(G.field,r&&G.vertical,v),style:{"--fui-slider-length":S,...g},children:[(p||u)&&e.jsxs("div",{className:G.header,children:[p&&e.jsx("label",{htmlFor:D,className:G.label,children:p}),u&&e.jsx("span",{className:G.value,children:x?x(y):y})]}),e.jsx("input",{ref:k,id:D,type:"range",min:l,max:n,step:a,value:y,disabled:w,"aria-invalid":P||void 0,"aria-describedby":F!=null?B:void 0,"aria-orientation":r?"vertical":void 0,className:d(G.input,G[h],P&&G.invalid),style:{"--fui-slider-fill":`${N*100}%`},onChange:oe=>o(oe.target.valueAsNumber),...j}),F!=null&&e.jsx("p",{id:B,className:d(G.message,P&&G.error),children:F})]})}),xr="circular-progress-module__root___aWkwH",gr="circular-progress-module__svg___r2eFj",vr="circular-progress-module__track___bnGG2",yr="circular-progress-module__value___kfD8M",jr="circular-progress-module__glow___GB6Sf",wr="circular-progress-module__indeterminate___y-ZZh",$r="circular-progress-module__text___KMVXP",se={root:xr,svg:gr,track:vr,value:yr,glow:jr,indeterminate:wr,text:$r};function kr({value:s,max:t=100,size:o=48,strokeWidth:l=4,color:n,label:a="Loading",showValue:i=!1,glow:c=!1,formatValue:p,className:m,style:_,...h}){const u=s==null,x=u||t<=0?0:Math.max(0,Math.min(s,t)),b=u||t<=0?0:x/t,v=Math.round(b*100),g=(o-l)/2,w=2*Math.PI*g,j=u?`${w*.25} ${w*.75}`:`${w*b} ${w}`,k=n?{"--fui-circular-fill":n}:void 0;return e.jsxs("span",{role:"progressbar","aria-label":a,"aria-valuemin":u?void 0:0,"aria-valuemax":u?void 0:t,"aria-valuenow":u?void 0:x,className:d(se.root,u&&se.indeterminate,c&&se.glow,m),style:{width:o,height:o,...k,..._},...h,children:[e.jsxs("svg",{className:se.svg,viewBox:`0 0 ${o} ${o}`,"aria-hidden":"true",children:[e.jsx("circle",{className:se.track,cx:o/2,cy:o/2,r:g,strokeWidth:l}),e.jsx("circle",{className:se.value,cx:o/2,cy:o/2,r:g,strokeWidth:l,strokeDasharray:j})]}),i&&!u&&e.jsx("span",{className:se.text,children:p?p(v,x):`${v}%`})]})}const Nr="skeleton-module__skeleton___HCSvg",Mr="skeleton-module__fui-skeleton-shimmer___nfepz",Ir="skeleton-module__text___v17Nv",Dr="skeleton-module__rect___wqIJy",Br="skeleton-module__circle___RCmyR",Fe={skeleton:Nr,fuiSkeletonShimmer:Mr,text:Ir,rect:Dr,circle:Br};function Oe({variant:s="text",width:t,height:o,className:l,style:n,...a}){return e.jsx("span",{"aria-hidden":"true",className:d(Fe.skeleton,Fe[s],l),style:{width:t,height:o,...n},...a})}const Sr="empty-state-module__emptyState___3o3ah",Lr="empty-state-module__visual___cNQYf",Cr="empty-state-module__title___U2LkM",Er="empty-state-module__description___WwXjp",Rr="empty-state-module__action___y0erA",Fr="empty-state-module__loading___kI0uT",Tr="empty-state-module__error___vXXTm",ae={emptyState:Sr,visual:Lr,title:Cr,description:Er,action:Rr,loading:Fr,error:Tr},zr={loading:"status",empty:"status",error:"alert"};function Kr({status:s="empty",icon:t,title:o,description:l,action:n,className:a,children:i,...c}){const p=t??(s==="loading"?e.jsx(Ae,{size:"lg"}):null);return e.jsxs("div",{role:zr[s],"aria-busy":s==="loading"||void 0,className:d(ae.emptyState,ae[s],a),...c,children:[p&&e.jsx("div",{className:ae.visual,children:p}),o&&e.jsx("p",{className:ae.title,children:o}),l&&e.jsx("p",{className:ae.description,children:l}),i,n&&e.jsx("div",{className:ae.action,children:n})]})}const Pr="status-dot-module__statusDot___ohD-u",Ar="status-dot-module__sm___OB37e",Or="status-dot-module__md___gx9L0",Gr="status-dot-module__pulse___ck8O4",qr="status-dot-module__fui-status-pulse___N3Zei",Yr="status-dot-module__neutral___OHH9F",Hr="status-dot-module__info___M48Xe",Ur="status-dot-module__success___UiZOI",Wr="status-dot-module__warning___5i46X",Zr="status-dot-module__error___lDxeD",we={statusDot:Pr,sm:Ar,md:Or,pulse:Gr,fuiStatusPulse:qr,neutral:Yr,info:Hr,success:Ur,warning:Wr,error:Zr};function Xr({variant:s="neutral",size:t="sm",pulse:o=!1,label:l,className:n,...a}){return e.jsx("span",{role:l?"status":void 0,"aria-label":l,"aria-hidden":l?void 0:!0,className:d(we.statusDot,we[s],we[t],o&&we.pulse,n),...a})}const Vr="chip-module__chip___U3kfP",Jr="chip-module__selected___n8qWx",Qr="chip-module__sm___lA7fZ",ec="chip-module__md___1W8-i",tc="chip-module__icon___folVQ",$e={chip:Vr,selected:Jr,sm:Qr,md:ec,icon:tc},sc=f.forwardRef(function({selected:t=!1,size:o="md",icon:l,onToggle:n,onClick:a,className:i,children:c,...p},m){return e.jsxs("button",{ref:m,type:"button","aria-pressed":t,className:d($e.chip,$e[o],t&&$e.selected,i),onClick:_=>{a==null||a(_),n==null||n(!t)},...p,children:[l&&e.jsx("span",{className:$e.icon,"aria-hidden":"true",children:l}),c]})}),oc="segmented-control-module__group___Sme2r",nc="segmented-control-module__segment___NMDSl",lc="segmented-control-module__active___V3sJ9",ac="segmented-control-module__sm___D7s4Q",rc="segmented-control-module__md___C1BNb",cc="segmented-control-module__icon___pYElm",_e={group:oc,segment:nc,active:lc,sm:ac,md:rc,icon:cc};function _c({options:s,value:t,onChange:o,size:l="md",className:n,...a}){return e.jsx("fieldset",{className:d(_e.group,_e[l],n),...a,children:s.map(i=>{const c=i.value===t;return e.jsxs("button",{type:"button","aria-pressed":c,disabled:i.disabled,className:d(_e.segment,c&&_e.active),onClick:()=>o(i.value),children:[i.icon&&e.jsx("span",{className:_e.icon,"aria-hidden":"true",children:i.icon}),i.label]},i.value)})})}const dc="tabs-module__tabs___UMeM9",ic="tabs-module__horizontal___BEa1a",uc="tabs-module__vertical___knHVr",mc="tabs-module__tablist___sKiEs",pc="tabs-module__tab___qi523",hc="tabs-module__active___PvUYu",fc="tabs-module__sm___kb5rQ",bc="tabs-module__md___0kG2U",xc="tabs-module__icon___YnQYW",gc="tabs-module__panel___G8tI0",Z={tabs:dc,horizontal:ic,vertical:uc,tablist:mc,tab:pc,active:hc,sm:fc,md:bc,icon:xc,panel:gc};function vc({items:s,value:t,defaultValue:o,onChange:l,orientation:n="horizontal",size:a="md",activation:i="automatic",tablistLabel:c,className:p,...m}){var F;const _=f.useId(),h=r=>`fui-tab-${_}-${r.value}`,u=r=>`fui-tabpanel-${_}-${r.value}`,x=(F=s.find(r=>!r.disabled))==null?void 0:F.value,[b,v]=f.useState(o??x??""),g=t??b,w=s.find(r=>r.value===g),j=f.useRef(new Map),k=r=>{t==null&&v(r),r!==g&&(l==null||l(r))},M=(r,y)=>{for(let N=1;N<=s.length;N++){const S=(r+y*N+s.length*N)%s.length;if(!s[S].disabled)return S}return r},D=r=>{const N=(r?[...s].reverse():s).find(S=>!S.disabled);return N?s.indexOf(N):-1},B=r=>{var N;const y=s[r];y&&((N=j.current.get(y.value))==null||N.focus(),i==="automatic"&&k(y.value))},P=(r,y)=>{const N=n==="vertical",S=N?"ArrowUp":"ArrowLeft",oe=N?"ArrowDown":"ArrowRight";switch(r.key){case S:r.preventDefault(),B(M(y,-1));break;case oe:r.preventDefault(),B(M(y,1));break;case"Home":r.preventDefault(),B(D(!1));break;case"End":r.preventDefault(),B(D(!0));break;case"Enter":case" ":i==="manual"&&(r.preventDefault(),k(s[y].value));break}};return e.jsxs("div",{className:d(Z.tabs,Z[n],p),...m,children:[e.jsx("div",{role:"tablist","aria-label":c,"aria-orientation":n,className:d(Z.tablist,Z[a]),children:s.map((r,y)=>{const N=r.value===g;return e.jsxs("button",{ref:S=>{S?j.current.set(r.value,S):j.current.delete(r.value)},type:"button",role:"tab",id:h(r),"aria-selected":N,"aria-controls":r.content!=null?u(r):void 0,tabIndex:N?0:-1,disabled:r.disabled,className:d(Z.tab,N&&Z.active),onClick:()=>k(r.value),onKeyDown:S=>P(S,y),children:[r.icon&&e.jsx("span",{className:Z.icon,"aria-hidden":"true",children:r.icon}),r.label]},r.value)})}),(w==null?void 0:w.content)!=null&&e.jsx("div",{role:"tabpanel",id:u(w),"aria-labelledby":h(w),tabIndex:0,className:Z.panel,children:w.content})]})}const yc="kbd-module__kbd___dYNx-",jc={kbd:yc};function wc({className:s,children:t,...o}){return e.jsx("kbd",{className:d(jc.kbd,s),...o,children:t})}const $c="inline-code-module__inlineCode___JoxCb",kc={inlineCode:$c};function Nc({className:s,children:t,...o}){return e.jsx("code",{className:d(kc.inlineCode,s),...o,children:t})}const Mc="code-block-module__codeBlock___dq28o",Ic="code-block-module__header___42Fek",Dc="code-block-module__filename___TowWy",Bc="code-block-module__copy___zsnCK",Sc="code-block-module__pre___zXzLZ",Lc="code-block-module__line___wmWd9",Cc="code-block-module__marker___M0q-B",Ec="code-block-module__content___-zI10",Rc="code-block-module__add___4rhem",Fc="code-block-module__remove___5a-wi",W={codeBlock:Mc,header:Ic,filename:Dc,copy:Bc,pre:Sc,line:Lc,marker:Cc,content:Ec,add:Rc,remove:Fc},Tc={add:"+",remove:"-"};function zc({code:s,lines:t,filename:o,copyable:l=!0,className:n,...a}){const[i,c]=f.useState(!1),p=t??(s!=null?s.split(`
|
|
2
|
-
`).map(
|
|
3
|
-
`),_=p.some(b=>b.diff!=null),h=()=>{var v;const b=(v=navigator.clipboard)==null?void 0:v.writeText(m);b&&b.then(()=>{c(!0),window.setTimeout(()=>c(!1),2e3)},()=>c(!1))},u=new Map,x=p.map(b=>{const v=`${b.diff??""}\0${b.content}`,g=u.get(v)??0;return u.set(v,g+1),{line:b,key:`${v}\0${g}`}});return e.jsxs("div",{className:d(W.codeBlock,n),...a,children:[(o||l)&&e.jsxs("div",{className:W.header,children:[o&&e.jsx("span",{className:W.filename,children:o}),l&&e.jsx("button",{type:"button",className:W.copy,"aria-label":i?"Copied":"Copy code",onClick:h,children:i?"copied":"copy"})]}),e.jsx("pre",{className:W.pre,children:e.jsx("code",{children:x.map(({line:b,key:v})=>e.jsxs("span",{className:d(W.line,b.diff&&W[b.diff]),children:[_&&e.jsx("span",{className:W.marker,"aria-hidden":"true",children:b.diff?Tc[b.diff]:""}),e.jsx("span",{className:W.content,children:b.content})]},v))})})]})}const Kc="copy-button-module__copyButton___-hTo4",Pc="copy-button-module__copied___XlHFr",Ac="copy-button-module__icon___4B9mp",Be={copyButton:Kc,copied:Pc,icon:Ac},Oc=f.forwardRef(function({value:t,label:o="copy",copiedLabel:l="copied",icon:n,copiedIcon:a,timeout:i=2e3,onCopy:c,onClick:p,className:m,..._},h){const[u,x]=f.useState(!1),b=f.useRef();f.useEffect(()=>()=>window.clearTimeout(b.current),[]);const v=j=>{var M;p==null||p(j);const k=(M=navigator.clipboard)==null?void 0:M.writeText(t);k&&k.then(()=>{x(!0),c==null||c(),window.clearTimeout(b.current),b.current=window.setTimeout(()=>x(!1),i)},()=>x(!1))},g=u?a??n:n,w=u?l:o;return e.jsxs("button",{ref:h,type:"button","aria-label":w,className:d(Be.copyButton,u&&Be.copied,m),onClick:v,..._,children:[g&&e.jsx("span",{className:Be.icon,"aria-hidden":"true",children:g}),e.jsx("span",{children:w})]})}),Gc="data-table-module__wrapper___UTyMr",qc="data-table-module__table___Fuoei",Yc="data-table-module__caption___QjcZG",Hc="data-table-module__head___g-ix3",Uc="data-table-module__th___GLSnD",Wc="data-table-module__td___Z6bns",Zc="data-table-module__row___ZyAGw",Xc="data-table-module__striped___QXV4j",Vc="data-table-module__hoverable___zuaEp",Jc="data-table-module__clickable___npv-C",Qc="data-table-module__empty___vSmGc",e_="data-table-module__left___H3aIX",t_="data-table-module__center___OEedB",s_="data-table-module__right___d0MIh",o_="data-table-module__compact___R6xaO",C={wrapper:Gc,table:qc,caption:Yc,head:Hc,th:Uc,td:Wc,row:Zc,striped:Xc,hoverable:Vc,clickable:Jc,empty:Qc,left:e_,center:t_,right:s_,compact:o_};function n_({data:s,columns:t,keyExtractor:o,striped:l=!0,hoverable:n=!0,compact:a=!1,loading:i=!1,loadingRows:c=3,emptyMessage:p="No data",caption:m,rowClassName:_,onRowClick:h,className:u,...x}){const b=g=>g?C[g]:void 0,v=f.useMemo(()=>Array.from({length:c},(g,w)=>`fui-data-table-loading-${w}`),[c]);return e.jsx("div",{className:d(C.wrapper,u),...x,children:e.jsxs("table",{className:d(C.table,a&&C.compact),children:[m!=null&&e.jsx("caption",{className:C.caption,children:m}),e.jsx("thead",{className:C.head,children:e.jsx("tr",{children:t.map(g=>e.jsx("th",{scope:"col",className:d(C.th,b(g.align)),style:{width:g.width},children:g.header},g.key))})}),e.jsxs("tbody",{children:[i&&v.map(g=>e.jsx("tr",{className:C.row,children:t.map(w=>e.jsx("td",{className:d(C.td,b(w.align)),children:e.jsx(Oe,{width:"70%"})},w.key))},g)),!i&&s.length===0&&e.jsx("tr",{className:C.row,children:e.jsx("td",{colSpan:t.length,className:C.empty,children:p})}),!i&&s.map((g,w)=>{const j=o(g);return e.jsx("tr",{className:d(C.row,l&&w%2===1&&C.striped,n&&C.hoverable,h&&C.clickable,typeof _=="function"?_(g):_),tabIndex:h?0:void 0,onClick:h?()=>h(g):void 0,onKeyDown:h?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),h(g))}:void 0,children:t.map(k=>e.jsx("td",{className:d(C.td,b(k.align)),children:k.cell(g)},`${j}-${k.key}`))},j)})]})]})})}const l_="breadcrumb-module__breadcrumb___r-ILp",a_="breadcrumb-module__list___V3YFy",r_="breadcrumb-module__item___dDwYf",c_="breadcrumb-module__link___CHC9k",__="breadcrumb-module__current___dprI9",d_="breadcrumb-module__separator___uLhtn",X={breadcrumb:l_,list:a_,item:r_,link:c_,current:__,separator:d_};function i_({item:s,current:t}){return t?e.jsx("span",{className:X.current,"aria-current":"page",children:s.label}):s.href?e.jsx("a",{className:X.link,href:s.href,onClick:s.onClick,children:s.label}):s.onClick?e.jsx("button",{type:"button",className:X.link,onClick:s.onClick,children:s.label}):e.jsx("span",{className:X.link,children:s.label})}function u_({items:s,separator:t="/",className:o,...l}){const n=new Map;return e.jsx("nav",{"aria-label":"Breadcrumb",className:d(X.breadcrumb,o),...l,children:e.jsx("ol",{className:X.list,children:s.map((a,i)=>{const c=i===s.length-1,p=a.current??c,m=a.href??(typeof a.label=="string"?a.label:""),_=n.get(m)??0;return n.set(m,_+1),e.jsxs("li",{className:X.item,children:[e.jsx(i_,{item:a,current:p}),!c&&e.jsx("span",{className:X.separator,"aria-hidden":"true",children:t})]},`${m} ${_}`)})})})}const m_="menu-module__menu___i40Wj",p_="menu-module__trigger___FBppm",h_="menu-module__list___YjCfD",f_="menu-module__start___fmDPf",b_="menu-module__end___a7S-M",x_="menu-module__item___aqcgg",g_="menu-module__active___JMLGb",v_="menu-module__danger___p9oZo",y_="menu-module__icon___1qUvA",j_="menu-module__separator___g2uay",w_="menu-module__selected___YvGDq",q={menu:m_,trigger:p_,list:h_,start:f_,end:b_,item:x_,active:g_,danger:v_,icon:y_,separator:j_,selected:w_};function Ge(s){return"separator"in s}function de(s){return!Ge(s)&&!s.disabled}function $_({trigger:s,items:t,triggerLabel:o,align:l="start",className:n}){const a=f.useId(),i=`fui-menu-trigger-${a}`,c=`fui-menu-${a}`,p=r=>`${c}-item-${r}`,[m,_]=f.useState(!1),[h,u]=f.useState(-1),x=f.useRef(null),b=f.useRef(null),v=f.useRef(null),g=()=>t.findIndex(de),w=()=>{for(let r=t.length-1;r>=0;r--)if(de(t[r]))return r;return-1},j=r=>{for(let y=r+1;y<t.length;y++)if(de(t[y]))return y;return r},k=r=>{for(let y=r-1;y>=0;y--)if(de(t[y]))return y;return r};f.useEffect(()=>{var r;m&&((r=v.current)==null||r.focus())},[m]),f.useEffect(()=>{if(!m)return;const r=y=>{var N;(N=x.current)!=null&&N.contains(y.target)||_(!1)};return window.addEventListener("pointerdown",r),()=>window.removeEventListener("pointerdown",r)},[m]);const M=r=>{u(r),_(!0)},D=(r=!0)=>{var y;_(!1),r&&((y=b.current)==null||y.focus())},B=r=>{var N;const y=t[r];!y||!de(y)||((N=y.onSelect)==null||N.call(y),D())},P=r=>{switch(r.key){case"ArrowDown":case"Enter":case" ":r.preventDefault(),m||M(g());break;case"ArrowUp":r.preventDefault(),m||M(w());break}},F=r=>{switch(r.key){case"ArrowDown":r.preventDefault(),u(y=>j(y));break;case"ArrowUp":r.preventDefault(),u(y=>k(y));break;case"Home":r.preventDefault(),u(g());break;case"End":r.preventDefault(),u(w());break;case"Enter":case" ":r.preventDefault(),h>=0&&B(h);break;case"Escape":r.preventDefault(),D();break;case"Tab":_(!1);break}};return e.jsxs("div",{ref:x,className:d(q.menu,n),children:[e.jsx("button",{ref:b,type:"button",id:i,"aria-haspopup":"menu","aria-expanded":m,"aria-controls":m?c:void 0,"aria-label":o,className:q.trigger,onClick:()=>m?D():M(g()),onKeyDown:P,children:s}),m&&e.jsx("div",{ref:v,id:c,role:"menu","aria-labelledby":i,"aria-activedescendant":h>=0?p(h):void 0,tabIndex:-1,className:d(q.list,q[l]),onKeyDown:F,children:t.map((r,y)=>Ge(r)?e.jsx("hr",{className:q.separator},p(y)):e.jsxs("button",{type:"button",id:p(y),role:r.selected==null?"menuitem":"menuitemradio","aria-checked":r.selected,tabIndex:-1,disabled:r.disabled,className:d(q.item,r.danger&&q.danger,r.selected&&q.selected,y===h&&q.active),onPointerMove:()=>!r.disabled&&u(y),onClick:()=>B(y),children:[r.icon&&e.jsx("span",{className:q.icon,"aria-hidden":"true",children:r.icon}),r.label]},p(y)))})]})}const k_="file-button-module__fileButton___aK91Q",N_="file-button-module__disabled___RF3Ox",M_="file-button-module__input___Z5bit",I_="file-button-module__icon___Tkeo1",ke={fileButton:k_,disabled:N_,input:M_,icon:I_},D_=f.forwardRef(function({onFiles:t,icon:o,children:l,disabled:n,className:a,...i},c){return e.jsxs("label",{className:d(ke.fileButton,n&&ke.disabled,a),children:[e.jsx("input",{ref:c,type:"file",className:ke.input,disabled:n,onChange:p=>{const{files:m}=p.target;m&&m.length>0&&t(m)},...i}),o&&e.jsx("span",{className:ke.icon,"aria-hidden":"true",children:o}),l]})}),B_="icon-module__icon___2vrJz",S_={icon:B_},L_={close:e.jsx("path",{d:"M6 6l12 12M18 6L6 18"}),check:e.jsx("path",{d:"M5 13l4 4L19 7"}),copy:e.jsxs(e.Fragment,{children:[e.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),e.jsx("path",{d:"M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2"})]}),plus:e.jsx("path",{d:"M12 5v14M5 12h14"}),folder:e.jsx("path",{d:"M3 6a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2V6z"}),lightbulb:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M9 18h6"}),e.jsx("path",{d:"M10 21h4"}),e.jsx("path",{d:"M12 3a6 6 0 00-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0012 3z"})]}),"chevron-up":e.jsx("path",{d:"M6 15l6-6 6 6"}),"chevron-down":e.jsx("path",{d:"M6 9l6 6 6-6"}),"chevron-left":e.jsx("path",{d:"M15 6l-6 6 6 6"}),"chevron-right":e.jsx("path",{d:"M9 6l6 6-6 6"}),play:e.jsx("path",{d:"M8 5v14l11-7z"}),flag:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M5 21V4"}),e.jsx("path",{d:"M5 4h11l-2 4 2 4H5"})]}),"sort-asc":e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M12 5v14"}),e.jsx("path",{d:"M8 9l4-4 4 4"})]}),"sort-desc":e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M12 5v14"}),e.jsx("path",{d:"M8 15l4 4 4-4"})]}),refresh:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M3 12a9 9 0 019-9 9 9 0 016.7 3L21 8"}),e.jsx("path",{d:"M21 3v5h-5"}),e.jsx("path",{d:"M21 12a9 9 0 01-9 9 9 9 0 01-6.7-3L3 16"}),e.jsx("path",{d:"M3 21v-5h5"})]}),more:e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"5",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),e.jsx("circle",{cx:"12",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),e.jsx("circle",{cx:"19",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"})]}),wand:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M3 21l12-12"}),e.jsx("path",{d:"M12.5 6.5l5 5"}),e.jsx("path",{d:"M18 3v4M16 5h4"})]}),merge:e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"6",cy:"6",r:"3"}),e.jsx("circle",{cx:"18",cy:"18",r:"3"}),e.jsx("path",{d:"M6 9v12"}),e.jsx("path",{d:"M6 9a9 9 0 009 9"})]}),push:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M5 4h14"}),e.jsx("path",{d:"M12 19V8"}),e.jsx("path",{d:"M7 13l5-5 5 5"})]}),pull:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M5 20h14"}),e.jsx("path",{d:"M12 5v11"}),e.jsx("path",{d:"M7 11l5 5 5-5"})]}),shuffle:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M16 3h5v5"}),e.jsx("path",{d:"M4 20L21 3"}),e.jsx("path",{d:"M21 16v5h-5"}),e.jsx("path",{d:"M15 15l6 6"}),e.jsx("path",{d:"M4 4l5 5"})]}),commit:e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"12",cy:"12",r:"4"}),e.jsx("path",{d:"M2 12h6"}),e.jsx("path",{d:"M16 12h6"})]}),github:e.jsx("path",{fill:"currentColor",stroke:"none",d:"M12 .5C5.37.5 0 5.78 0 12.29c0 5.2 3.44 9.6 8.2 11.16.6.1.82-.25.82-.56v-2c-3.34.72-4.04-1.6-4.04-1.6-.55-1.37-1.34-1.74-1.34-1.74-1.1-.74.08-.73.08-.73 1.2.08 1.84 1.22 1.84 1.22 1.07 1.8 2.8 1.29 3.5.98.1-.77.42-1.3.76-1.6-2.67-.3-5.47-1.31-5.47-5.83 0-1.29.47-2.34 1.24-3.17-.13-.3-.54-1.52.12-3.17 0 0 1.01-.32 3.3 1.21a11.5 11.5 0 016 0c2.28-1.53 3.29-1.21 3.29-1.21.66 1.65.25 2.87.12 3.17.77.83 1.24 1.88 1.24 3.17 0 4.53-2.81 5.53-5.49 5.82.43.37.81 1.1.81 2.22v3.29c0 .32.21.68.82.56A12.02 12.02 0 0024 12.29C24 5.78 18.63.5 12 .5z"}),note:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M6 3h9l4 4v13a1 1 0 01-1 1H6a1 1 0 01-1-1V4a1 1 0 011-1z"}),e.jsx("path",{d:"M14 3v5h5"}),e.jsx("path",{d:"M9 13h6M9 17h6"})]})};function C_({name:s,size:t=24,title:o,className:l,...n}){return e.jsxs("svg",{viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",role:o?"img":void 0,"aria-hidden":o?void 0:!0,"aria-label":o,className:d(S_.icon,l),...n,children:[o&&e.jsx("title",{children:o}),L_[s]]})}exports.Alert=Ga;exports.Backdrop=ct;exports.Breadcrumb=u_;exports.Button=jt;exports.Card=_n;exports.Checkbox=nl;exports.Chip=sc;exports.CircularProgress=kr;exports.CodeBlock=zc;exports.CopyButton=Oc;exports.DataTable=n_;exports.Divider=Xa;exports.Drawer=ka;exports.EmptyState=Kr;exports.FileButton=D_;exports.Glass=it;exports.Glow=ze;exports.Grain=Te;exports.Icon=C_;exports.IconButton=Dt;exports.InlineCode=Nc;exports.Input=gn;exports.Kbd=wc;exports.LampButton=Wt;exports.LampIconButton=ds;exports.LampMeter=mo;exports.LampStatus=Ys;exports.LampSwitch=Ss;exports.LinkButton=yo;exports.ListItem=Ca;exports.Menu=$_;exports.Modal=ea;exports.Progress=lr;exports.Radio=Pe;exports.RadioGroup=wl;exports.SegmentedControl=_c;exports.Select=Hn;exports.Skeleton=Oe;exports.Slider=br;exports.Spinner=Ae;exports.Stamp=So;exports.StatusDot=Xr;exports.Switch=Fl;exports.Tabs=vc;exports.Textarea=In;exports.ToastProvider=Vo;exports.Tooltip=Eo;exports.cn=d;exports.useToast=Jo;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("clsx"),Ze=require("tailwind-merge"),e=require("react/jsx-runtime"),f=require("react"),Ie=require("react-dom");function _(...s){return Ze.twMerge(We.clsx(s))}const Ve="grain-module__grain___sp9ca",Xe={grain:Ve};function Te({opacity:s,className:t,style:o,...n}){const l=s!=null?{"--fui-grain-opacity":String(s)}:void 0;return e.jsx("div",{"aria-hidden":!0,className:_(Xe.grain,t),style:{...l,...o},...n})}const Je="glow-module__glow___kEcKf",Qe="glow-module__blob___b1llZ",et="glow-module__wobble___kfp96",tt="glow-module__botBlob___XG8Xf",xe={glow:Je,blob:Qe,wobble:et,botBlob:tt};function st(s){let t=s|0;return()=>{t=t+1831565813|0;let o=Math.imul(t^t>>>15,1|t);return o=o+Math.imul(o^o>>>7,61|o)^o,((o^o>>>14)>>>0)/4294967296}}function Ee(s,t,o,n){const l=6+Math.floor(s()*4),a=.12+s()*.28,d=.85+s()*.4,c=.85+s()*.4,u=s()*Math.PI*2,m=[];for(let p=0;p<l;p++){const i=u+p/l*Math.PI*2,x=n*(1-a+s()*a*2);m.push([t+Math.cos(i)*x*d,o+Math.sin(i)*x*c])}let r=`M${m[0][0].toFixed(1)},${m[0][1].toFixed(1)}`;for(let p=0;p<l;p++){const i=m[(p-1+l)%l],x=m[p],h=m[(p+1)%l],g=m[(p+2)%l],v=x[0]+(h[0]-i[0])/6,$=x[1]+(h[1]-i[1])/6,y=h[0]-(g[0]-x[0])/6,N=h[1]-(g[1]-x[1])/6;r+=`C${v.toFixed(1)},${$.toFixed(1)} ${y.toFixed(1)},${N.toFixed(1)} ${h[0].toFixed(1)},${h[1].toFixed(1)}`}return`${r}Z`}function ot(s){const t=st(s),o=4+Math.floor(t()*2),n=[];for(let d=0;d<o;d++){const c=13+t()*8,u=270+t()*50,m=350+t()*24,r=24+t()*28,p=6+t()*8,i=196+t()*42;n.push({d:Ee(t,u,m,c),opacity:.6+t()*.4,dur:r,delay:-((d+t()*.6)/o*r),rise:m-i,wobbleDur:p,wobbleDelay:-(t()*p),sway:3+t()*5})}const l=3+Math.floor(t()*2),a=[];for(let d=0;d<l;d++){const c=12+t()*6,u=268+t()*54,m=352+t()*24,r=36+t()*30,p=9+t()*8,i=205+t()*45;a.push({d:Ee(t,u,m,c),opacity:.85+t()*.15,dur:r,delay:-((d+t()*.6)/l*r),rise:m-i,wobbleDur:p,wobbleDelay:-(t()*p),sway:2+t()*3})}return{blobs:n,depthBlobs:a}}function ze({className:s,seed:t}){const o=f.useId().replace(/:/g,""),n=`goo-${o}`,l=`goo-soft-${o}`,a=`clip-${o}`,d=`grad-${o}`,[c]=f.useState(()=>Math.floor(Math.random()*2**31)),{blobs:u,depthBlobs:m}=f.useMemo(()=>ot(t??c),[t,c]),r=p=>p.map(i=>e.jsx("g",{className:xe.blob,style:{opacity:i.opacity,"--lava-dur":`${i.dur.toFixed(1)}s`,"--lava-delay":`${i.delay.toFixed(1)}s`,"--lava-rise":`${i.rise.toFixed(0)}px`},children:e.jsx("path",{className:xe.wobble,d:i.d,style:{"--lava-wdur":`${i.wobbleDur.toFixed(1)}s`,"--lava-wdelay":`${i.wobbleDelay.toFixed(1)}s`,"--lava-sway":`${i.sway.toFixed(1)}px`}})},i.d));return e.jsxs("svg",{className:_(xe.glow,s),viewBox:"0 0 600 600","aria-hidden":!0,role:"presentation",children:[e.jsxs("defs",{children:[e.jsxs("filter",{id:n,colorInterpolationFilters:"sRGB",children:[e.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"}),e.jsx("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 21 -9",result:"cm"}),e.jsx("feBlend",{})]}),e.jsxs("filter",{id:l,colorInterpolationFilters:"sRGB",children:[e.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"10",result:"blur"}),e.jsx("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 14 -6"})]}),e.jsx("clipPath",{id:a,children:e.jsx("path",{d:"M262,174h60l33.5,182.3c0,0,2.7,12.8,2.5,22.8c-7.5,0-131,0-131,0s-0.7-9.3,0-18C227.6,352.9,262,174,262,174z"})}),e.jsxs("radialGradient",{id:d,cx:"300",cy:"300",r:"400",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0.0714",stopColor:"currentColor",stopOpacity:"0.19"}),e.jsx("stop",{offset:"0.3107",stopColor:"currentColor",stopOpacity:"0.13"}),e.jsx("stop",{offset:"0.553",stopColor:"currentColor",stopOpacity:"0.06"}),e.jsx("stop",{offset:"0.7828",stopColor:"currentColor",stopOpacity:"0.02"}),e.jsx("stop",{offset:"0.9847",stopColor:"currentColor",stopOpacity:"0"})]})]}),e.jsx("rect",{fill:`url(#${d})`,width:"600",height:"600"}),e.jsx("g",{filter:`url(#${l})`,clipPath:`url(#${a})`,fill:"currentColor",opacity:.2,children:r(m)}),e.jsxs("g",{filter:`url(#${n})`,clipPath:`url(#${a})`,fill:"currentColor",children:[r(u),e.jsx("path",{className:xe.botBlob,d:"M354,381.2c6.8,3.4,5.4,7.4-5.6,10.4c-10.7,3.1-31.1,5.1-54.4,8.4c-23.3,3.3-43.7,0.8-54.4-2.4c-11-3.4-12.4-7.6-5.6-13.8c6.8-7,18.9-14.6,29.6-17.4c11-3.3,20.6-1.8,30.4-1.4c9.8,0.4,19.4,5.1,30.4,8.3C335.1,376.8,347.2,378.6,354,381.2z"})]})]})}const nt="backdrop-module__backdrop___CoxJ-",lt="backdrop-module__glowLayer___esKR8",at="backdrop-module__grainLayer___44u-y",rt="backdrop-module__content___W2hOD",ge={backdrop:nt,glowLayer:lt,grainLayer:at,content:rt};function ct({grain:s=!0,glow:t=!0,className:o,children:n}){return e.jsxs("div",{className:_(ge.backdrop,o),children:[t&&e.jsx("div",{className:ge.glowLayer,children:e.jsx(ze,{})}),s&&e.jsx(Te,{className:ge.grainLayer}),e.jsx("div",{className:ge.content,children:n})]})}const _t="glass-module__glass___Z6fy2",dt={glass:_t},it=f.forwardRef(function({blur:t,className:o,style:n,children:l,...a},d){const c=t===0?{"--fui-glass-backdrop":"none"}:t!=null?{"--fui-glass-blur":`${t}px`}:void 0;return e.jsx("div",{ref:d,className:_(dt.glass,o),style:{...c,...n},...a,children:l})}),ut="button-module__button___Z331g",mt="button-module__active___weXhI",pt="button-module__primary___ppbyq",ft="button-module__secondary___esy5L",ht="button-module__ghost___NisA0",bt="button-module__danger___Wnvuq",xt="button-module__lit___gDeak",gt="button-module__md___REpcP",vt="button-module__sm___QYj0l",yt="button-module__fullWidth___H0P0F",jt="button-module__iconSlot___BGOaK",te={button:ut,active:mt,primary:pt,secondary:ft,ghost:ht,danger:bt,lit:xt,md:gt,sm:vt,fullWidth:yt,iconSlot:jt},wt=f.forwardRef(function({variant:t="primary",size:o="md",fullWidth:n=!1,icon:l,iconRight:a,isActive:d=!1,className:c,children:u,...m},r){return e.jsxs("button",{ref:r,type:"button","aria-pressed":d||void 0,className:_(te.button,te[t],te[o],n&&te.fullWidth,d&&te.active,c),...m,children:[l&&e.jsx("span",{className:te.iconSlot,children:l}),u,a&&e.jsx("span",{className:te.iconSlot,children:a})]})}),$t="icon-button-module__iconButton___avg6i",kt="icon-button-module__active___XaJ4h",Nt="icon-button-module__ghost___Wbxog",Mt="icon-button-module__danger___p0Xz5",It="icon-button-module__sm___4l7PX",Dt="icon-button-module__md___48iuw",ve={iconButton:$t,default:"icon-button-module__default___9frNR",active:kt,ghost:Nt,danger:Mt,sm:It,md:Dt},Bt=f.forwardRef(function({icon:t,label:o,variant:n="default",size:l="md",isActive:a=!1,className:d,...c},u){return e.jsx("button",{ref:u,type:"button","aria-label":o,title:o,"aria-pressed":a||void 0,className:_(ve.iconButton,ve[n],ve[l],a&&ve.active,d),...c,children:t})}),St="lamp-button-module__lampButton___vLS18",Lt="lamp-button-module__bezel___U-EXI",Ct="lamp-button-module__socket___Jyed-",Et="lamp-button-module__surface___8dOFO",Rt="lamp-button-module__green___GAW2z",Ft="lamp-button-module__yellow___-edHR",Tt="lamp-button-module__gray___m7yXy",zt="lamp-button-module__red___4wFVi",Pt="lamp-button-module__dark___ZKc5R",Kt="lamp-button-module__content___YGpBr",Ot="lamp-button-module__inkLight___6beGg",At="lamp-button-module__inkDark___tnNFq",Gt="lamp-button-module__icon___IBRdm",qt="lamp-button-module__sm___bjzzW",Yt="lamp-button-module__full___pf8ue",Ht="lamp-button-module__half___VL0GN",Ut="lamp-button-module__md___Hwseh",Wt="lamp-button-module__lg___-yjxW",K={lampButton:St,bezel:Lt,socket:Ct,surface:Et,green:Rt,yellow:Ft,gray:Tt,red:zt,dark:Pt,content:Kt,inkLight:Ot,inkDark:At,icon:Gt,sm:qt,full:Yt,half:Ht,md:Ut,lg:Wt},Zt=f.forwardRef(function({tone:t="gray",size:o="md",rounded:n="full",icon:l,className:a,children:d,disabled:c,...u},m){const r=c?"dark":t;return e.jsxs("button",{ref:m,type:"button",disabled:c,className:_(K.lampButton,K[o],K[n],a),...u,children:[e.jsx("span",{className:K.bezel}),e.jsx("span",{className:K.socket}),e.jsx("span",{className:_(K.surface,K[r])}),e.jsxs("span",{className:_(K.content,r==="gray"?K.inkDark:K.inkLight),children:[l&&e.jsx("span",{className:K.icon,children:l}),d]})]})}),Vt="lamp-icon-button-module__lampIconButton___1xZo8",Xt="lamp-icon-button-module__bezel___Z9Kq8",Jt="lamp-icon-button-module__socket___OzfA4",Qt="lamp-icon-button-module__surface___Eabnu",es="lamp-icon-button-module__green___Bc3bQ",ts="lamp-icon-button-module__yellow___9j8ol",ss="lamp-icon-button-module__gray___NgxOh",os="lamp-icon-button-module__red___2yAmf",ns="lamp-icon-button-module__dark___2KgXc",ls="lamp-icon-button-module__icon___NglMS",as="lamp-icon-button-module__inkLight___Ea5Is",rs="lamp-icon-button-module__inkDark___5F-Vy",cs="lamp-icon-button-module__sm___HpAmU",_s="lamp-icon-button-module__md___xYNb1",ds="lamp-icon-button-module__lg___V4xGx",Z={lampIconButton:Vt,bezel:Xt,socket:Jt,surface:Qt,green:es,yellow:ts,gray:ss,red:os,dark:ns,icon:ls,inkLight:as,inkDark:rs,sm:cs,md:_s,lg:ds},is=f.forwardRef(function({icon:t,label:o,tone:n="gray",size:l="md",className:a,disabled:d,...c},u){const m=d?"dark":n;return e.jsxs("button",{ref:u,type:"button","aria-label":o,title:o,disabled:d,className:_(Z.lampIconButton,Z[l],a),...c,children:[e.jsx("span",{className:Z.bezel}),e.jsx("span",{className:Z.socket}),e.jsx("span",{className:_(Z.surface,Z[m])}),e.jsx("span",{className:_(Z.icon,m==="gray"?Z.inkDark:Z.inkLight),children:t})]})}),us="lamp-switch-module__control___WEQSl",ms="lamp-switch-module__disabled___TUW9S",ps="lamp-switch-module__input___WYweb",fs="lamp-switch-module__bezel___pZzrv",hs="lamp-switch-module__socket___BIITV",bs="lamp-switch-module__glow___IwjxL",xs="lamp-switch-module__knob___L-MKD",gs="lamp-switch-module__labels___DRwFx",vs="lamp-switch-module__off___fk-7m",ys="lamp-switch-module__on___heTFC",js="lamp-switch-module__divider___KxXb9",ws="lamp-switch-module__text___xb6i5",$s="lamp-switch-module__green___o-64B",ks="lamp-switch-module__yellow___68h4h",Ns="lamp-switch-module__gray___omIlV",Ms="lamp-switch-module__red___1NqKe",Is="lamp-switch-module__dark___muS53",Ds="lamp-switch-module__sm___iu8wH",Bs="lamp-switch-module__md___xcpKC",Ss="lamp-switch-module__lg___vpOur",R={control:us,disabled:ms,input:ps,switch:"lamp-switch-module__switch___kZ7oI",bezel:fs,socket:hs,glow:bs,knob:xs,labels:gs,off:vs,on:ys,divider:js,text:ws,green:$s,yellow:ks,gray:Ns,red:Ms,dark:Is,sm:Ds,md:Bs,lg:Ss},Ls=f.forwardRef(function({tone:t="green",size:o="md",label:n,id:l,className:a,disabled:d,...c},u){const m=f.useId(),r=l??`fui-lamp-switch-${m}`;return e.jsxs("label",{htmlFor:r,className:_(R.control,d&&R.disabled,a),children:[e.jsx("input",{ref:u,id:r,type:"checkbox",className:R.input,disabled:d,...c}),e.jsxs("span",{className:_(R.switch,R[o],R[t]),"aria-hidden":"true",children:[e.jsx("span",{className:R.bezel}),e.jsx("span",{className:R.socket}),e.jsx("span",{className:R.glow}),e.jsx("span",{className:R.knob}),e.jsxs("span",{className:R.labels,children:[e.jsx("span",{className:R.off,children:"O"}),e.jsx("span",{className:R.on,children:"I"})]}),e.jsx("span",{className:R.divider})]}),n&&e.jsx("span",{className:R.text,children:n})]})}),Cs="lamp-status-module__lampStatus___RQuyf",Es="lamp-status-module__lamp___4-Pqb",Rs="lamp-status-module__bezel___iW-i1",Fs="lamp-status-module__socket___XVX5p",Ts="lamp-status-module__surface___s0XbK",zs="lamp-status-module__green___2Ftjw",Ps="lamp-status-module__yellow___UPxo-",Ks="lamp-status-module__red___DEvbK",Os="lamp-status-module__dark___mc6PP",As="lamp-status-module__pulse___j6DB9",Gs="lamp-status-module__fui-lamp-pulse___d9PZT",qs="lamp-status-module__text___2b1w4",V={lampStatus:Cs,lamp:Es,bezel:Rs,socket:Fs,surface:Ts,green:zs,yellow:Ps,red:Ks,dark:Os,pulse:As,fuiLampPulse:Gs,text:qs},Ys={running:{tone:"green",label:"Running",pulse:!0},stopped:{tone:"dark",label:"Stopped",pulse:!1},error:{tone:"red",label:"Error",pulse:!1},initializing:{tone:"yellow",label:"Starting",pulse:!0}};function Hs({status:s,label:t,className:o,...n}){const l=Ys[s];return e.jsxs("output",{className:_(V.lampStatus,o),...n,children:[e.jsxs("span",{className:V.lamp,children:[e.jsx("span",{className:V.bezel}),e.jsx("span",{className:V.socket}),e.jsx("span",{className:_(V.surface,V[l.tone],l.pulse&&V.pulse)})]}),e.jsx("span",{className:_(V.text,V[l.tone]),children:t??l.label})]})}const Us="lamp-meter-module__lampMeter___KJEsA",Ws="lamp-meter-module__header___mcKTY",Zs="lamp-meter-module__label___8YEo9",Vs="lamp-meter-module__value___kL376",Xs="lamp-meter-module__bar___tYmz5",Js="lamp-meter-module__bezel___yUT9m",Qs="lamp-meter-module__track___qwoyr",eo="lamp-meter-module__lamps___nE9i-",to="lamp-meter-module__lamp___jRJoT",so="lamp-meter-module__green___Vz-8B",oo="lamp-meter-module__lit___WUO1g",no="lamp-meter-module__partial___3-Om7",lo="lamp-meter-module__yellow___xzkCV",ao="lamp-meter-module__gray___EyYCs",ro="lamp-meter-module__red___jhoIm",co="lamp-meter-module__dark___Dcxyc",_o="lamp-meter-module__sm___iYqDJ",io="lamp-meter-module__md___XPzch",uo="lamp-meter-module__lg___NJDT4",mo="lamp-meter-module__fullWidth___qlY91",z={lampMeter:Us,header:Ws,label:Zs,value:Vs,bar:Xs,bezel:Js,track:Qs,lamps:eo,lamp:to,green:so,lit:oo,partial:no,yellow:lo,gray:ao,red:ro,dark:co,sm:_o,md:io,lg:uo,fullWidth:mo};function po({value:s,max:t=100,tone:o="green",size:n="md",lampCount:l=10,label:a,showValue:d=!1,fullWidth:c=!1,className:u,style:m,...r}){const p=t>0?Math.max(0,Math.min(s,t)):0,i=t>0?p/t:0,x=Math.round(i*100),h=i*l,g=Math.floor(h),v=h-g,$=Array.from({length:l},(y,N)=>({id:`lamp-${N}`,index:N}));return e.jsxs("span",{role:"progressbar","aria-label":a??"Progress","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":p,className:_(z.lampMeter,c&&z.fullWidth,u),style:{"--fui-lamp-count":l,...m},...r,children:[(a!=null||d)&&e.jsxs("span",{className:z.header,children:[e.jsx("span",{className:z.label,children:a}),d&&e.jsxs("span",{className:z.value,children:[x,"%"]})]}),e.jsxs("span",{className:_(z.bar,z[n]),children:[e.jsx("span",{className:z.bezel}),e.jsx("span",{className:z.track,children:e.jsx("span",{className:z.lamps,children:$.map(y=>{const N=y.index===g&&v>0;return e.jsx("span",{className:_(z.lamp,z[o],y.index<g&&z.lit,N&&z.partial),style:N?{opacity:.3+v*.7}:void 0},y.id)})})})]})]})}const fo="link-button-module__linkButton___q-Uot",ho="link-button-module__inherit___7pKrk",bo="link-button-module__accent___rgB7A",xo="link-button-module__sm___zPqj6",go="link-button-module__md___M0cWx",vo="link-button-module__lg___ZoNuc",yo="link-button-module__iconSlot___-fGhm",de={linkButton:fo,inherit:ho,accent:bo,sm:xo,md:go,lg:vo,iconSlot:yo},jo=f.forwardRef(function({color:t="accent",size:o="md",icon:n,iconRight:l,className:a,children:d,...c},u){return e.jsxs("button",{ref:u,type:"button",className:_(de.linkButton,de[t],de[o],a),...c,children:[n&&e.jsx("span",{className:de.iconSlot,children:n}),d,l&&e.jsx("span",{className:de.iconSlot,children:l})]})}),wo="stamp-module__stamp___5qaNY",$o="stamp-module__dot___qZyCR",ko="stamp-module__neutral___6CXei",No="stamp-module__info___hH0OA",Mo="stamp-module__success___vtscx",Io="stamp-module__warning___H6sZS",Do="stamp-module__error___G-HEQ",Bo="stamp-module__sm___N-jia",So="stamp-module__md___Cz5Vg",ye={stamp:wo,dot:$o,neutral:ko,info:No,success:Mo,warning:Io,error:Do,sm:Bo,md:So};function Lo({variant:s="neutral",size:t="sm",dot:o=!1,fillColor:n,textColor:l,onClick:a,className:d,style:c,children:u,...m}){const r=a?"button":"span",p=n||l?{backgroundColor:n,color:l}:void 0;return e.jsxs(r,{type:a?"button":void 0,onClick:a,className:_(ye.stamp,ye[s],ye[t],d),style:{...p,...c},...m,children:[o&&e.jsx("span",{className:ye.dot,"aria-hidden":!0}),u]})}const Co="tooltip-module__tooltip___e-rkz",Eo="tooltip-module__ready___LI2J6",Re={tooltip:Co,ready:Eo},je=8,we=8;function $e(s,t){return o=>{typeof s=="function"&&s(o),t(o)}}function Ro({content:s,children:t,placement:o="top",delay:n=300}){const l=f.useId(),[a,d]=f.useState(!1),[c,u]=f.useState(null),m=f.useRef(null),r=f.useRef(null),p=f.useRef(void 0),i=f.useCallback(()=>{window.clearTimeout(p.current),d(!1),u(null)},[]);f.useEffect(()=>()=>window.clearTimeout(p.current),[]),f.useEffect(()=>{if(!a)return;const y=N=>{N.key==="Escape"&&i()};return window.addEventListener("keydown",y),window.addEventListener("scroll",i,!0),window.addEventListener("resize",i),()=>{window.removeEventListener("keydown",y),window.removeEventListener("scroll",i,!0),window.removeEventListener("resize",i)}},[a,i]),f.useLayoutEffect(()=>{if(!a)return;const y=r.current,N=m.current;if(!y||!N)return;const M=N.getBoundingClientRect();let S,L;switch(o){case"bottom":S=y.bottom+je,L=y.left+y.width/2-M.width/2;break;case"left":S=y.top+y.height/2-M.height/2,L=y.left-M.width-je;break;case"right":S=y.top+y.height/2-M.height/2,L=y.right+je;break;default:S=y.top-M.height-je,L=y.left+y.width/2-M.width/2}L=Math.min(Math.max(L,we),window.innerWidth-M.width-we),S=Math.min(Math.max(S,we),window.innerHeight-M.height-we),u({top:S,left:L})},[a,o]);const x=s==null||s===!1||s==="",h=f.Children.only(t),g=h.props,v=y=>{r.current=y.getBoundingClientRect(),d(!0)};if(x)return t;const $=f.cloneElement(h,{onMouseEnter:$e(g.onMouseEnter,y=>{const N=y.currentTarget;window.clearTimeout(p.current),p.current=window.setTimeout(()=>v(N),n)}),onMouseLeave:$e(g.onMouseLeave,i),onFocus:$e(g.onFocus,y=>{v(y.currentTarget)}),onBlur:$e(g.onBlur,i),"aria-describedby":a?l:g["aria-describedby"]});return e.jsxs(e.Fragment,{children:[$,a&&Ie.createPortal(e.jsx("div",{ref:m,id:l,role:"tooltip",className:_(Re.tooltip,c&&Re.ready),style:c?{top:c.top,left:c.left}:void 0,children:s}),document.body)]})}const Pe=f.createContext(null),Fo="toast-module__stack___hDi0s",To="toast-module__top-left___rIwtH",zo="toast-module__top-center___OapVt",Po="toast-module__top-right___Ci4Ki",Ko="toast-module__bottom-left___y6xhK",Oo="toast-module__bottom-center___yYVrc",Ao="toast-module__bottom-right___JeMil",Go="toast-module__toast___y1lVX",qo="toast-module__toast-in___TYYwQ",Yo="toast-module__title___1Oqh8",Ho="toast-module__description___eiUSB",Uo="toast-module__close___IDukn",Wo="toast-module__info___Nh8S9",Zo="toast-module__success___hlKLc",Vo="toast-module__warning___XUMJt",Xo="toast-module__error___pSFFC",se={stack:Fo,topLeft:To,topCenter:zo,topRight:Po,bottomLeft:Ko,bottomCenter:Oo,bottomRight:Ao,toast:Go,toastIn:qo,title:Yo,description:Ho,close:Uo,info:Wo,success:Zo,warning:Vo,error:Xo};function Jo({children:s,position:t="bottom-right",defaultDuration:o=5e3}){const[n,l]=f.useState([]),a=f.useRef(new Map),d=f.useRef(0),c=f.useCallback(r=>{l(i=>i.filter(x=>x.id!==r));const p=a.current.get(r);p!==void 0&&(window.clearTimeout(p),a.current.delete(r))},[]),u=f.useCallback(r=>{d.current+=1;const p=`fui-toast-${d.current}`;l(x=>[...x,{id:p,title:r.title,description:r.description,variant:r.variant??"info"}]);const i=r.duration??o;return i>0&&a.current.set(p,window.setTimeout(()=>c(p),i)),p},[o,c]);f.useEffect(()=>{const r=a.current;return()=>{for(const p of r.values())window.clearTimeout(p)}},[]);const m=f.useMemo(()=>({toast:u,dismiss:c}),[u,c]);return e.jsxs(Pe.Provider,{value:m,children:[s,Ie.createPortal(e.jsx("div",{className:_(se.stack,se[t]),children:n.map(r=>e.jsxs("div",{role:r.variant==="error"?"alert":"status",className:_(se.toast,se[r.variant]),children:[r.title&&e.jsx("p",{className:se.title,children:r.title}),r.description&&e.jsx("p",{className:se.description,children:r.description}),e.jsx("button",{type:"button","aria-label":"Dismiss",className:se.close,onClick:()=>c(r.id),children:"×"})]},r.id))}),document.body)]})}function Qo(){const s=f.useContext(Pe);if(!s)throw new Error("useToast must be used within a <ToastProvider>");return s}const en="card-module__card___HG0v6",tn="card-module__interactive___lCSFj",sn="card-module__sm___ug17X",on="card-module__md___BAzpC",nn="card-module__title___9LIjW",ln="card-module__body___b17cz",pe={card:en,interactive:tn,sm:sn,md:on,title:nn,body:ln};function an(s){s.target===s.currentTarget&&(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),s.currentTarget.click())}function rn({size:s="md",onClick:t,className:o,children:n,...l}){const a=t!=null;return e.jsx("div",{className:_(pe.card,pe[s],a&&pe.interactive,o),onClick:t,...a?{role:"button",tabIndex:0,onKeyDown:an}:void 0,...l,children:n})}function cn({className:s,children:t,...o}){return e.jsx("h3",{className:_(pe.title,s),...o,children:t})}function _n({className:s,children:t,...o}){return e.jsx("p",{className:_(pe.body,s),...o,children:t})}const dn=Object.assign(rn,{Title:cn,Body:_n}),un="input-module__field___khFpX",mn="input-module__label___lu7R1",pn="input-module__input___h7K-F",fn="input-module__invalid___Iaiq7",hn="input-module__md___-HF8v",bn="input-module__sm___YZFhc",xn="input-module__message___0KmBb",gn="input-module__error___QDqga",oe={field:un,label:mn,input:pn,invalid:fn,md:hn,sm:bn,message:xn,error:gn},vn=f.forwardRef(function({label:t,helperText:o,error:n,size:l="md",id:a,className:d,...c},u){const m=f.useId(),r=a??`fui-input-${m}`,p=`fui-input-message-${m}`,i=n!=null,x=i?n:o;return e.jsxs("div",{className:_(oe.field,d),children:[t&&e.jsx("label",{htmlFor:r,className:oe.label,children:t}),e.jsx("input",{ref:u,id:r,className:_(oe.input,oe[l],i&&oe.invalid),"aria-invalid":i||void 0,"aria-describedby":x!=null?p:void 0,...c}),x!=null&&e.jsx("p",{id:p,className:_(oe.message,i&&oe.error),children:x})]})}),yn="textarea-module__field___KluQf",jn="textarea-module__label___ejhyZ",wn="textarea-module__textarea___0y-7v",$n="textarea-module__invalid___71TQR",kn="textarea-module__md___88VHx",Nn="textarea-module__sm___W7F60",Mn="textarea-module__message___G-p-4",In="textarea-module__error___EkXKJ",ne={field:yn,label:jn,textarea:wn,invalid:$n,md:kn,sm:Nn,message:Mn,error:In},Dn=f.forwardRef(function({label:t,helperText:o,error:n,size:l="md",id:a,className:d,...c},u){const m=f.useId(),r=a??`fui-textarea-${m}`,p=`fui-textarea-message-${m}`,i=n!=null,x=i?n:o;return e.jsxs("div",{className:_(ne.field,d),children:[t&&e.jsx("label",{htmlFor:r,className:ne.label,children:t}),e.jsx("textarea",{ref:u,id:r,className:_(ne.textarea,ne[l],i&&ne.invalid),"aria-invalid":i||void 0,"aria-describedby":x!=null?p:void 0,...c}),x!=null&&e.jsx("p",{id:p,className:_(ne.message,i&&ne.error),children:x})]})}),Bn="select-module__field___8gAFH",Sn="select-module__label___ay-3s",Ln="select-module__control___gJhql",Cn="select-module__trigger___xMYHi",En="select-module__placeholder___0VOFP",Rn="select-module__value___S3Cae",Fn="select-module__arrow___i1IUe",Tn="select-module__invalid___xa4uh",zn="select-module__md___R2uu2",Pn="select-module__sm___cCEld",Kn="select-module__list___o8hVj",On="select-module__option___vNnue",An="select-module__active___055r4",Gn="select-module__optionDisabled___ex2zq",qn="select-module__native___O1NJL",Yn="select-module__message___9ddQu",Hn="select-module__error___P5RBk",C={field:Bn,label:Sn,control:Ln,trigger:Cn,placeholder:En,value:Rn,arrow:Fn,invalid:Tn,md:zn,sm:Pn,list:Kn,option:On,active:An,optionDisabled:Gn,native:qn,message:Yn,error:Hn},Un=f.forwardRef(function({options:t,value:o,defaultValue:n,onChange:l,label:a,helperText:d,error:c,size:u="md",placeholder:m="Select…",disabled:r=!1,name:p,required:i,id:x,className:h},g){const v=f.useId(),$=x??`fui-select-${v}`,y=`fui-select-list-${v}`,N=`fui-select-message-${v}`,M=k=>`${$}-option-${k}`,S=o!==void 0,[L,F]=f.useState(n??""),P=S?o:L,[I,j]=f.useState(!1),[D,b]=f.useState(-1),w=f.useRef(null),T=f.useRef(null),ee=c!=null,G=ee?c:d,fe=t.findIndex(k=>k.value===P),he=fe>=0?t[fe]:void 0,Le=()=>t.findIndex(k=>!k.disabled),qe=()=>{for(let k=t.length-1;k>=0;k--)if(!t[k].disabled)return k;return-1},Ye=k=>{for(let B=k+1;B<t.length;B++)if(!t[B].disabled)return B;return k},He=k=>{for(let B=k-1;B>=0;B--)if(!t[B].disabled)return B;return k};f.useEffect(()=>{if(!I)return;const k=B=>{var Ce;(Ce=w.current)!=null&&Ce.contains(B.target)||j(!1)};return window.addEventListener("pointerdown",k),()=>window.removeEventListener("pointerdown",k)},[I]);const be=()=>{b(fe>=0?fe:Le()),j(!0)},De=k=>{var B;S||F(k),l==null||l(k),j(!1),(B=T.current)==null||B.focus()},Ue=k=>{switch(k.key){case"ArrowDown":k.preventDefault(),I?b(B=>Ye(B)):be();break;case"ArrowUp":k.preventDefault(),I?b(B=>He(B)):be();break;case"Home":I&&(k.preventDefault(),b(Le()));break;case"End":I&&(k.preventDefault(),b(qe()));break;case"Enter":case" ":k.preventDefault(),I&&D>=0?De(t[D].value):be();break;case"Escape":I&&(k.preventDefault(),j(!1));break;case"Tab":I&&j(!1);break}};return e.jsxs("div",{ref:w,className:_(C.field,h),children:[a&&e.jsx("label",{htmlFor:$,className:C.label,children:a}),e.jsxs("div",{className:C.control,children:[e.jsxs("button",{ref:T,type:"button",id:$,role:"combobox","aria-haspopup":"listbox","aria-expanded":I,"aria-controls":y,"aria-activedescendant":I&&D>=0?M(D):void 0,"aria-invalid":ee||void 0,"aria-describedby":G!=null?N:void 0,disabled:r,className:_(C.trigger,C[u],ee&&C.invalid,!he&&C.placeholder),onClick:()=>I?j(!1):be(),onKeyDown:Ue,children:[e.jsx("span",{className:C.value,children:he?he.label:m}),e.jsx("span",{className:C.arrow,"aria-hidden":"true"})]}),I&&e.jsx("div",{id:y,role:"listbox",tabIndex:-1,className:C.list,children:t.map((k,B)=>e.jsx("button",{type:"button",id:M(B),role:"option",tabIndex:-1,"aria-selected":k.value===P,disabled:k.disabled,className:_(C.option,B===D&&C.active,k.disabled&&C.optionDisabled),onPointerMove:()=>!k.disabled&&b(B),onClick:()=>De(k.value),children:k.label},k.value))})]}),e.jsxs("select",{ref:g,name:p,value:P,required:i,disabled:r,"aria-hidden":"true",tabIndex:-1,className:C.native,onChange:k=>De(k.target.value),children:[!he&&e.jsx("option",{value:P}),t.map(k=>e.jsx("option",{value:k.value,disabled:k.disabled,children:k.label},k.value))]}),G!=null&&e.jsx("p",{id:N,className:_(C.message,ee&&C.error),children:G})]})}),Wn="checkbox-module__field___RelhS",Zn="checkbox-module__control___byZMh",Vn="checkbox-module__disabled___Ba3GC",Xn="checkbox-module__input___Ptgt7",Jn="checkbox-module__box___yAh-r",Qn="checkbox-module__text___YbsL3",el="checkbox-module__invalid___-QWUO",tl="checkbox-module__md___b-TNq",sl="checkbox-module__sm___uCkXv",ol="checkbox-module__message___CKZrQ",nl="checkbox-module__error___9UaCv",q={field:Wn,control:Zn,disabled:Vn,input:Xn,box:Jn,text:Qn,invalid:el,md:tl,sm:sl,message:ol,error:nl},ll=f.forwardRef(function({label:t,helperText:o,error:n,size:l="md",id:a,className:d,disabled:c,...u},m){const r=f.useId(),p=a??`fui-checkbox-${r}`,i=`fui-checkbox-message-${r}`,x=n!=null,h=x?n:o;return e.jsxs("div",{className:_(q.field,d),children:[e.jsxs("label",{htmlFor:p,className:_(q.control,q[l],c&&q.disabled),children:[e.jsx("input",{ref:m,id:p,type:"checkbox",className:q.input,disabled:c,"aria-invalid":x||void 0,"aria-describedby":h!=null?i:void 0,...u}),e.jsx("span",{className:_(q.box,x&&q.invalid),"aria-hidden":"true"}),t&&e.jsx("span",{className:q.text,children:t})]}),h!=null&&e.jsx("p",{id:i,className:_(q.message,x&&q.error),children:h})]})}),al="radio-module__field___zfiOx",rl="radio-module__control___E2qkU",cl="radio-module__disabled___cBUku",_l="radio-module__input___M2nFJ",dl="radio-module__dot___jVJ-d",il="radio-module__text___wcXr-",ul="radio-module__invalid___wV1rf",ml="radio-module__md___UQmih",pl="radio-module__sm___7xAyp",fl="radio-module__message___WSx2O",hl="radio-module__error___Mi15v",Y={field:al,control:rl,disabled:cl,input:_l,dot:dl,text:il,invalid:ul,md:ml,sm:pl,message:fl,error:hl},Ke=f.forwardRef(function({label:t,helperText:o,error:n,size:l="md",id:a,className:d,disabled:c,...u},m){const r=f.useId(),p=a??`fui-radio-${r}`,i=`fui-radio-message-${r}`,x=n!=null,h=x?n:o;return e.jsxs("div",{className:_(Y.field,d),children:[e.jsxs("label",{htmlFor:p,className:_(Y.control,Y[l],c&&Y.disabled),children:[e.jsx("input",{ref:m,id:p,type:"radio",className:Y.input,disabled:c,"aria-invalid":x||void 0,"aria-describedby":h!=null?i:void 0,...u}),e.jsx("span",{className:_(Y.dot,x&&Y.invalid),"aria-hidden":"true"}),t&&e.jsx("span",{className:Y.text,children:t})]}),h!=null&&e.jsx("p",{id:i,className:_(Y.message,x&&Y.error),children:h})]})}),bl="radio-group-module__group___PqCH0",xl="radio-group-module__legend___PlUYS",gl="radio-group-module__options___5BrnU",vl="radio-group-module__vertical___3Vhsy",yl="radio-group-module__horizontal___Y5vdI",jl="radio-group-module__message___R5JZm",wl="radio-group-module__error___NRRJw",ce={group:bl,legend:xl,options:gl,vertical:vl,horizontal:yl,message:jl,error:wl};function $l({options:s,value:t,onChange:o,name:n,legend:l,orientation:a="vertical",size:d="md",helperText:c,error:u,disabled:m,className:r,...p}){const i=f.useId(),x=n??`fui-radio-group-${i}`,h=`fui-radio-group-message-${i}`,g=u!=null,v=g?u:c;return e.jsxs("fieldset",{className:_(ce.group,r),disabled:m,"aria-invalid":g||void 0,"aria-describedby":v!=null?h:void 0,...p,children:[l!=null&&e.jsx("legend",{className:ce.legend,children:l}),e.jsx("div",{className:_(ce.options,ce[a]),children:s.map($=>e.jsx(Ke,{name:x,value:$.value,checked:$.value===t,disabled:$.disabled,label:$.label,helperText:$.helperText,size:d,onChange:()=>o($.value)},$.value))}),v!=null&&e.jsx("p",{id:h,className:_(ce.message,g&&ce.error),children:v})]})}const kl="switch-module__field___zh7DJ",Nl="switch-module__control___g0N-0",Ml="switch-module__disabled___LQtR1",Il="switch-module__input___YKZRj",Dl="switch-module__track___QNvnO",Bl="switch-module__knob___ayTTe",Sl="switch-module__text___RCdR5",Ll="switch-module__invalid___9wtmg",Cl="switch-module__md___bJSQP",El="switch-module__sm___TIccZ",Rl="switch-module__message___X9193",Fl="switch-module__error___brY-r",O={field:kl,control:Nl,disabled:Ml,input:Il,track:Dl,knob:Bl,text:Sl,invalid:Ll,md:Cl,sm:El,message:Rl,error:Fl},Tl=f.forwardRef(function({label:t,helperText:o,error:n,size:l="md",id:a,className:d,disabled:c,...u},m){const r=f.useId(),p=a??`fui-switch-${r}`,i=`fui-switch-message-${r}`,x=n!=null,h=x?n:o;return e.jsxs("div",{className:_(O.field,d),children:[e.jsxs("label",{htmlFor:p,className:_(O.control,O[l],c&&O.disabled),children:[e.jsx("input",{ref:m,id:p,type:"checkbox",className:O.input,disabled:c,"aria-invalid":x||void 0,"aria-describedby":h!=null?i:void 0,...u}),e.jsx("span",{className:_(O.track,x&&O.invalid),"aria-hidden":"true",children:e.jsx("span",{className:O.knob})}),t&&e.jsx("span",{className:O.text,children:t})]}),h!=null&&e.jsx("p",{id:i,className:_(O.message,x&&O.error),children:h})]})}),zl="modal-module__overlay___a52Ni",Pl="modal-module__backdrop___RS4yj",Kl="modal-module__panel___uPXuE",Ol="modal-module__sm___DOlEI",Al="modal-module__md___-evKM",Gl="modal-module__lg___AvEqd",ql="modal-module__header___iP09B",Yl="modal-module__title___nj06m",Hl="modal-module__close___gQou9",Ul="modal-module__body___Y-EdA",Wl="modal-module__footer___z9JqA",Zl="modal-module__errorText___cjMEM",W={overlay:zl,backdrop:Pl,panel:Kl,sm:Ol,md:Al,lg:Gl,header:ql,title:Yl,close:Hl,body:Ul,footer:Wl,errorText:Zl},Vl='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function Xl({open:s,onClose:t,title:o,size:n="md",children:l,className:a}){const c=`fui-modal-title-${f.useId()}`,u=f.useRef(null),m=f.useRef(null),r=f.useRef(t);return r.current=t,f.useEffect(()=>{var x;if(!s)return;m.current=document.activeElement,(x=u.current)==null||x.focus();const p=h=>{var y,N;if(h.key==="Escape"){h.preventDefault(),r.current();return}if(h.key!=="Tab")return;const g=(y=u.current)==null?void 0:y.querySelectorAll(Vl);if(!g||g.length===0){h.preventDefault(),(N=u.current)==null||N.focus();return}const v=g[0],$=g[g.length-1];h.shiftKey&&document.activeElement===v?(h.preventDefault(),$.focus()):!h.shiftKey&&document.activeElement===$&&(h.preventDefault(),v.focus())};document.addEventListener("keydown",p);const i=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{var h;document.removeEventListener("keydown",p),document.body.style.overflow=i,(h=m.current)==null||h.focus()}},[s]),!s||typeof document>"u"?null:Ie.createPortal(e.jsxs("div",{className:W.overlay,children:[e.jsx("button",{type:"button",className:W.backdrop,"aria-label":"Close modal",onClick:t}),e.jsxs("div",{ref:u,className:_(W.panel,W[n],a),role:"dialog","aria-modal":"true","aria-labelledby":o?c:void 0,tabIndex:-1,children:[e.jsxs("div",{className:W.header,children:[o&&e.jsx("h2",{id:c,className:W.title,children:o}),e.jsx("button",{type:"button",className:W.close,"aria-label":"Close modal",onClick:t,children:"×"})]}),l]})]}),document.body)}function Jl({children:s,className:t}){return e.jsx("div",{className:_(W.body,t),children:s})}function Ql({children:s,className:t}){return e.jsx("div",{className:_(W.footer,t),children:s})}function ea({children:s,className:t}){return s?e.jsx("p",{role:"alert",className:_(W.errorText,t),children:s}):null}const ta=Object.assign(Xl,{Body:Jl,Footer:Ql,Error:ea}),sa="drawer-module__overlay___Cv-ju",oa="drawer-module__left___4tJTY",na="drawer-module__right___NA7oF",la="drawer-module__top___SiK4I",aa="drawer-module__bottom___RBjGY",ra="drawer-module__backdrop___kai--",ca="drawer-module__fui-drawer-fade___YtfHP",_a="drawer-module__panel___WEKZm",da="drawer-module__sm___KAlYn",ia="drawer-module__md___waKLn",ua="drawer-module__lg___DTfq5",ma="drawer-module__fui-drawer-in-left___PN8lB",pa="drawer-module__fui-drawer-in-right___eQ9wk",fa="drawer-module__fui-drawer-in-top___ax1Au",ha="drawer-module__fui-drawer-in-bottom___Cyf5m",ba="drawer-module__header___IrV2g",xa="drawer-module__title___-Oex-",ga="drawer-module__close___9urOR",va="drawer-module__body___fGi7v",ya="drawer-module__footer___avfH-",A={overlay:sa,left:oa,right:na,top:la,bottom:aa,backdrop:ra,fuiDrawerFade:ca,panel:_a,sm:da,md:ia,lg:ua,fuiDrawerInLeft:ma,fuiDrawerInRight:pa,fuiDrawerInTop:fa,fuiDrawerInBottom:ha,header:ba,title:xa,close:ga,body:va,footer:ya},ja='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function wa({open:s,onClose:t,side:o="right",title:n,size:l="md",children:a,className:d}){const u=`fui-drawer-title-${f.useId()}`,m=f.useRef(null),r=f.useRef(null),p=f.useRef(t);return p.current=t,f.useEffect(()=>{var h;if(!s)return;r.current=document.activeElement,(h=m.current)==null||h.focus();const i=g=>{var N,M;if(g.key==="Escape"){g.preventDefault(),p.current();return}if(g.key!=="Tab")return;const v=(N=m.current)==null?void 0:N.querySelectorAll(ja);if(!v||v.length===0){g.preventDefault(),(M=m.current)==null||M.focus();return}const $=v[0],y=v[v.length-1];g.shiftKey&&document.activeElement===$?(g.preventDefault(),y.focus()):!g.shiftKey&&document.activeElement===y&&(g.preventDefault(),$.focus())};document.addEventListener("keydown",i);const x=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{var g;document.removeEventListener("keydown",i),document.body.style.overflow=x,(g=r.current)==null||g.focus()}},[s]),!s||typeof document>"u"?null:Ie.createPortal(e.jsxs("div",{className:_(A.overlay,A[o]),children:[e.jsx("button",{type:"button",className:A.backdrop,"aria-label":"Close drawer",onClick:t}),e.jsxs("div",{ref:m,className:_(A.panel,A[o],A[l],d),role:"dialog","aria-modal":"true","aria-labelledby":n?u:void 0,tabIndex:-1,children:[e.jsxs("div",{className:A.header,children:[n&&e.jsx("h2",{id:u,className:A.title,children:n}),e.jsx("button",{type:"button",className:A.close,"aria-label":"Close drawer",onClick:t,children:"×"})]}),a]})]}),document.body)}function $a({children:s,className:t}){return e.jsx("div",{className:_(A.body,t),children:s})}function ka({children:s,className:t}){return e.jsx("div",{className:_(A.footer,t),children:s})}const Na=Object.assign(wa,{Body:$a,Footer:ka}),Ma="list-item-module__item___KvZj7",Ia="list-item-module__active___UsL8O",Da="list-item-module__warn___LRPus",Ba="list-item-module__alert___OroeF",Sa="list-item-module__icon___2b4wU",La="list-item-module__content___e9u66",Ca="list-item-module__action___qGh0-",Ea="list-item-module__md___dpf7n",Ra="list-item-module__sm___6fwmf",le={item:Ma,active:Ia,warn:Da,alert:Ba,icon:Sa,content:La,action:Ca,md:Ea,sm:Ra},Fa=f.forwardRef(function({size:t="md",active:o=!1,tone:n="default",icon:l,action:a,className:d,children:c,...u},m){return e.jsxs("button",{ref:m,type:"button","aria-current":o||void 0,className:_(le.item,le[t],o&&le.active,n!=="default"&&le[n],d),...u,children:[l&&e.jsx("span",{className:le.icon,children:l}),e.jsx("span",{className:le.content,children:c}),a&&e.jsx("span",{className:le.action,children:a})]})}),Ta="alert-module__alert___j7ZRS",za="alert-module__icon___vbZHd",Pa="alert-module__message___klR2U",Ka="alert-module__dismiss___f2uoG",Oa="alert-module__info___PBo1l",Aa="alert-module__success___AVBKS",Ga="alert-module__warning___zkMaJ",qa="alert-module__error___cxg96",ie={alert:Ta,icon:za,message:Pa,dismiss:Ka,info:Oa,success:Aa,warning:Ga,error:qa},Ya={info:e.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 0a8 8 0 100 16A8 8 0 008 0zm1 12H7V7h2v5zM8 5.5A1.25 1.25 0 118 3a1.25 1.25 0 010 2.5z"})}),success:e.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 5.7l-4.4 4.4a1 1 0 01-1.4 0L3.7 8.3l1.4-1.4L6.6 8.4l3.7-3.7 1.4 1z"})}),warning:e.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M7.1 1.5a1 1 0 011.8 0l6.4 12A1 1 0 0114.4 15H1.6a1 1 0 01-.9-1.5l6.4-12zM7 6v4h2V6H7zm0 5v2h2v-2H7z"})}),error:e.jsx("svg",{viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M8 0a8 8 0 100 16A8 8 0 008 0zm3 10.6L9.4 12 8 10.6 6.6 12 5 10.6 6.6 9 5 7.4 6.6 6 8 7.4 9.4 6 11 7.4 9.4 9 11 10.6z"})})};function Ha({variant:s="info",dismissible:t=!1,onDismiss:o,className:n,children:l,...a}){return e.jsxs("div",{role:s==="error"||s==="warning"?"alert":"status",className:_(ie.alert,ie[s],n),...a,children:[e.jsx("span",{className:ie.icon,children:Ya[s]}),e.jsx("div",{className:ie.message,children:l}),t&&e.jsx("button",{type:"button","aria-label":"Dismiss",className:ie.dismiss,onClick:o,children:"×"})]})}const Ua="divider-module__divider___0NYwg",Wa="divider-module__horizontal___tP3rG",Za="divider-module__vertical___wBSrT",Va="divider-module__labelled___KyGIY",Xa="divider-module__line___KnBes",Ja="divider-module__label___WiUwZ",ae={divider:Ua,horizontal:Wa,vertical:Za,labelled:Va,line:Xa,label:Ja};function Qa({orientation:s="horizontal",label:t,className:o,...n}){return s==="horizontal"&&t!=null?e.jsxs("div",{className:_(ae.divider,ae.labelled,o),...n,children:[e.jsx("hr",{className:ae.line}),e.jsx("span",{className:ae.label,children:t}),e.jsx("hr",{className:ae.line})]}):e.jsx("hr",{"aria-orientation":s,className:_(ae.divider,ae[s],o),...n})}const er="spinner-module__spinner___FDTk2",tr="spinner-module__ring___nRx6n",sr="spinner-module__fui-spin___YstYB",or="spinner-module__sm___kDPMi",nr="spinner-module__md___6Pg-i",lr="spinner-module__lg___zIxGh",Be={spinner:er,ring:tr,fuiSpin:sr,sm:or,md:nr,lg:lr};function Oe({size:s="md",label:t="Loading",className:o,...n}){return e.jsx("output",{"aria-label":t,className:_(Be.spinner,Be[s],o),...n,children:e.jsx("span",{className:Be.ring})})}const ar="progress-module__progress___ubcWE",rr={progress:ar};function cr({value:s,max:t=100,color:o,height:n=8,className:l,style:a,...d}){const c=t>0?Math.max(0,Math.min(s,t)):0,u=o?{"--fui-progress-fill":o}:void 0;return e.jsx("progress",{value:c,max:t,className:_(rr.progress,l),style:{height:n,...u,...a},...d})}const _r="slider-module__field___b0KsE",dr="slider-module__vertical___AAIJT",ir="slider-module__header___KTPLs",ur="slider-module__label___5Ygr5",mr="slider-module__value___SK9Q0",pr="slider-module__input___jU-Oj",fr="slider-module__sm___caMde",hr="slider-module__md___rW4JV",br="slider-module__invalid___U5heB",xr="slider-module__message___PTD43",gr="slider-module__error___ZOqs4",H={field:_r,vertical:dr,header:ir,label:ur,value:mr,input:pr,sm:fr,md:hr,invalid:br,message:xr,error:gr},vr=f.forwardRef(function({value:t,onChange:o,min:n=0,max:l=100,step:a=1,orientation:d="horizontal",length:c,label:u,helperText:m,error:r,size:p="md",showValue:i=!1,formatValue:x,id:h,className:g,style:v,disabled:$,...y},N){const M=f.useId(),S=h??`fui-slider-${M}`,L=`fui-slider-message-${M}`,F=r!=null,P=F?r:m,I=d==="vertical",j=Math.max(n,Math.min(t,l)),D=l>n?(j-n)/(l-n):0,b=c!=null?typeof c=="number"?`${c}px`:c:void 0;return e.jsxs("div",{className:_(H.field,I&&H.vertical,g),style:{"--fui-slider-length":b,...v},children:[(u||i)&&e.jsxs("div",{className:H.header,children:[u&&e.jsx("label",{htmlFor:S,className:H.label,children:u}),i&&e.jsx("span",{className:H.value,children:x?x(j):j})]}),e.jsx("input",{ref:N,id:S,type:"range",min:n,max:l,step:a,value:j,disabled:$,"aria-invalid":F||void 0,"aria-describedby":P!=null?L:void 0,"aria-orientation":I?"vertical":void 0,className:_(H.input,H[p],F&&H.invalid),style:{"--fui-slider-fill":`${D*100}%`},onChange:w=>o(w.target.valueAsNumber),...y}),P!=null&&e.jsx("p",{id:L,className:_(H.message,F&&H.error),children:P})]})}),yr="circular-progress-module__root___aWkwH",jr="circular-progress-module__svg___r2eFj",wr="circular-progress-module__track___bnGG2",$r="circular-progress-module__value___kfD8M",kr="circular-progress-module__glow___GB6Sf",Nr="circular-progress-module__indeterminate___y-ZZh",Mr="circular-progress-module__text___KMVXP",re={root:yr,svg:jr,track:wr,value:$r,glow:kr,indeterminate:Nr,text:Mr};function Ir({value:s,max:t=100,size:o=48,strokeWidth:n=4,color:l,label:a="Loading",showValue:d=!1,glow:c=!1,formatValue:u,className:m,style:r,...p}){const i=s==null,x=i||t<=0?0:Math.max(0,Math.min(s,t)),h=i||t<=0?0:x/t,g=Math.round(h*100),v=(o-n)/2,$=2*Math.PI*v,y=i?`${$*.25} ${$*.75}`:`${$*h} ${$}`,N=l?{"--fui-circular-fill":l}:void 0;return e.jsxs("span",{role:"progressbar","aria-label":a,"aria-valuemin":i?void 0:0,"aria-valuemax":i?void 0:t,"aria-valuenow":i?void 0:x,className:_(re.root,i&&re.indeterminate,c&&re.glow,m),style:{width:o,height:o,...N,...r},...p,children:[e.jsxs("svg",{className:re.svg,viewBox:`0 0 ${o} ${o}`,"aria-hidden":"true",children:[e.jsx("circle",{className:re.track,cx:o/2,cy:o/2,r:v,strokeWidth:n}),e.jsx("circle",{className:re.value,cx:o/2,cy:o/2,r:v,strokeWidth:n,strokeDasharray:y})]}),d&&!i&&e.jsx("span",{className:re.text,children:u?u(g,x):`${g}%`})]})}const Dr="skeleton-module__skeleton___HCSvg",Br="skeleton-module__fui-skeleton-shimmer___nfepz",Sr="skeleton-module__text___v17Nv",Lr="skeleton-module__rect___wqIJy",Cr="skeleton-module__circle___RCmyR",Fe={skeleton:Dr,fuiSkeletonShimmer:Br,text:Sr,rect:Lr,circle:Cr};function Ae({variant:s="text",width:t,height:o,className:n,style:l,...a}){return e.jsx("span",{"aria-hidden":"true",className:_(Fe.skeleton,Fe[s],n),style:{width:t,height:o,...l},...a})}const Er="empty-state-module__emptyState___3o3ah",Rr="empty-state-module__visual___cNQYf",Fr="empty-state-module__title___U2LkM",Tr="empty-state-module__description___WwXjp",zr="empty-state-module__action___y0erA",Pr="empty-state-module__loading___kI0uT",Kr="empty-state-module__error___vXXTm",_e={emptyState:Er,visual:Rr,title:Fr,description:Tr,action:zr,loading:Pr,error:Kr},Or={loading:"status",empty:"status",error:"alert"};function Ar({status:s="empty",icon:t,title:o,description:n,action:l,className:a,children:d,...c}){const u=t??(s==="loading"?e.jsx(Oe,{size:"lg"}):null);return e.jsxs("div",{role:Or[s],"aria-busy":s==="loading"||void 0,className:_(_e.emptyState,_e[s],a),...c,children:[u&&e.jsx("div",{className:_e.visual,children:u}),o&&e.jsx("p",{className:_e.title,children:o}),n&&e.jsx("p",{className:_e.description,children:n}),d,l&&e.jsx("div",{className:_e.action,children:l})]})}const Gr="status-dot-module__statusDot___ohD-u",qr="status-dot-module__sm___OB37e",Yr="status-dot-module__md___gx9L0",Hr="status-dot-module__pulse___ck8O4",Ur="status-dot-module__fui-status-pulse___N3Zei",Wr="status-dot-module__neutral___OHH9F",Zr="status-dot-module__info___M48Xe",Vr="status-dot-module__success___UiZOI",Xr="status-dot-module__warning___5i46X",Jr="status-dot-module__error___lDxeD",ke={statusDot:Gr,sm:qr,md:Yr,pulse:Hr,fuiStatusPulse:Ur,neutral:Wr,info:Zr,success:Vr,warning:Xr,error:Jr};function Qr({variant:s="neutral",size:t="sm",pulse:o=!1,label:n,className:l,...a}){return e.jsx("span",{role:n?"status":void 0,"aria-label":n,"aria-hidden":n?void 0:!0,className:_(ke.statusDot,ke[s],ke[t],o&&ke.pulse,l),...a})}const ec="chip-module__chip___U3kfP",tc="chip-module__selected___n8qWx",sc="chip-module__sm___lA7fZ",oc="chip-module__md___1W8-i",nc="chip-module__icon___folVQ",Ne={chip:ec,selected:tc,sm:sc,md:oc,icon:nc},lc=f.forwardRef(function({selected:t=!1,size:o="md",icon:n,onToggle:l,onClick:a,className:d,children:c,...u},m){return e.jsxs("button",{ref:m,type:"button","aria-pressed":t,className:_(Ne.chip,Ne[o],t&&Ne.selected,d),onClick:r=>{a==null||a(r),l==null||l(!t)},...u,children:[n&&e.jsx("span",{className:Ne.icon,"aria-hidden":"true",children:n}),c]})}),ac="segmented-control-module__group___Sme2r",rc="segmented-control-module__segment___NMDSl",cc="segmented-control-module__active___V3sJ9",_c="segmented-control-module__sm___D7s4Q",dc="segmented-control-module__md___C1BNb",ic="segmented-control-module__icon___pYElm",ue={group:ac,segment:rc,active:cc,sm:_c,md:dc,icon:ic};function uc({options:s,value:t,onChange:o,size:n="md",className:l,...a}){return e.jsx("fieldset",{className:_(ue.group,ue[n],l),...a,children:s.map(d=>{const c=d.value===t;return e.jsxs("button",{type:"button","aria-pressed":c,disabled:d.disabled,className:_(ue.segment,c&&ue.active),onClick:()=>o(d.value),children:[d.icon&&e.jsx("span",{className:ue.icon,"aria-hidden":"true",children:d.icon}),d.label]},d.value)})})}const mc="tabs-module__tabs___UMeM9",pc="tabs-module__horizontal___BEa1a",fc="tabs-module__vertical___knHVr",hc="tabs-module__tablist___sKiEs",bc="tabs-module__tab___qi523",xc="tabs-module__active___PvUYu",gc="tabs-module__sm___kb5rQ",vc="tabs-module__md___0kG2U",yc="tabs-module__icon___YnQYW",jc="tabs-module__panel___G8tI0",wc="tabs-module__ghost___zy5eg",X={tabs:mc,horizontal:pc,vertical:fc,tablist:hc,tab:bc,active:xc,sm:gc,md:vc,icon:yc,panel:jc,ghost:wc};function $c({items:s,value:t,defaultValue:o,onChange:n,orientation:l="horizontal",size:a="md",variant:d="underline",activation:c="automatic",tablistLabel:u,className:m,...r}){var I;const p=f.useId(),i=j=>`fui-tab-${p}-${j.value}`,x=j=>`fui-tabpanel-${p}-${j.value}`,h=(I=s.find(j=>!j.disabled))==null?void 0:I.value,[g,v]=f.useState(o??h??""),$=t??g,y=s.find(j=>j.value===$),N=f.useRef(new Map),M=j=>{t==null&&v(j),j!==$&&(n==null||n(j))},S=(j,D)=>{for(let b=1;b<=s.length;b++){const w=(j+D*b+s.length*b)%s.length;if(!s[w].disabled)return w}return j},L=j=>{const b=(j?[...s].reverse():s).find(w=>!w.disabled);return b?s.indexOf(b):-1},F=j=>{var b;const D=s[j];D&&((b=N.current.get(D.value))==null||b.focus(),c==="automatic"&&M(D.value))},P=(j,D)=>{const b=l==="vertical",w=b?"ArrowUp":"ArrowLeft",T=b?"ArrowDown":"ArrowRight";switch(j.key){case w:j.preventDefault(),F(S(D,-1));break;case T:j.preventDefault(),F(S(D,1));break;case"Home":j.preventDefault(),F(L(!1));break;case"End":j.preventDefault(),F(L(!0));break;case"Enter":case" ":c==="manual"&&(j.preventDefault(),M(s[D].value));break}};return e.jsxs("div",{className:_(X.tabs,X[l],d==="ghost"&&X.ghost,m),...r,children:[e.jsx("div",{role:"tablist","aria-label":u,"aria-orientation":l,className:_(X.tablist,X[a]),children:s.map((j,D)=>{const b=j.value===$;return e.jsxs("button",{ref:w=>{w?N.current.set(j.value,w):N.current.delete(j.value)},type:"button",role:"tab",id:i(j),"aria-selected":b,"aria-controls":j.content!=null?x(j):void 0,tabIndex:b?0:-1,disabled:j.disabled,className:_(X.tab,b&&X.active),onClick:()=>M(j.value),onKeyDown:w=>P(w,D),children:[j.icon&&e.jsx("span",{className:X.icon,"aria-hidden":"true",children:j.icon}),j.label]},j.value)})}),(y==null?void 0:y.content)!=null&&e.jsx("div",{role:"tabpanel",id:x(y),"aria-labelledby":i(y),tabIndex:0,className:X.panel,children:y.content})]})}const kc="kbd-module__kbd___dYNx-",Nc={kbd:kc};function Mc({className:s,children:t,...o}){return e.jsx("kbd",{className:_(Nc.kbd,s),...o,children:t})}const Ic="inline-code-module__inlineCode___JoxCb",Dc={inlineCode:Ic};function Bc({className:s,children:t,...o}){return e.jsx("code",{className:_(Dc.inlineCode,s),...o,children:t})}const Sc="code-block-module__codeBlock___dq28o",Lc="code-block-module__header___42Fek",Cc="code-block-module__filename___TowWy",Ec="code-block-module__copy___zsnCK",Rc="code-block-module__pre___zXzLZ",Fc="code-block-module__line___wmWd9",Tc="code-block-module__marker___M0q-B",zc="code-block-module__content___-zI10",Pc="code-block-module__add___4rhem",Kc="code-block-module__remove___5a-wi",J={codeBlock:Sc,header:Lc,filename:Cc,copy:Ec,pre:Rc,line:Fc,marker:Tc,content:zc,add:Pc,remove:Kc},Oc={add:"+",remove:"-"};function Ac({code:s,lines:t,filename:o,copyable:n=!0,className:l,...a}){const[d,c]=f.useState(!1),u=t??(s!=null?s.split(`
|
|
2
|
+
`).map(h=>({content:h})):[]),m=u.map(h=>h.content).join(`
|
|
3
|
+
`),r=u.some(h=>h.diff!=null),p=()=>{var g;const h=(g=navigator.clipboard)==null?void 0:g.writeText(m);h&&h.then(()=>{c(!0),window.setTimeout(()=>c(!1),2e3)},()=>c(!1))},i=new Map,x=u.map(h=>{const g=`${h.diff??""}\0${h.content}`,v=i.get(g)??0;return i.set(g,v+1),{line:h,key:`${g}\0${v}`}});return e.jsxs("div",{className:_(J.codeBlock,l),...a,children:[(o||n)&&e.jsxs("div",{className:J.header,children:[o&&e.jsx("span",{className:J.filename,children:o}),n&&e.jsx("button",{type:"button",className:J.copy,"aria-label":d?"Copied":"Copy code",onClick:p,children:d?"copied":"copy"})]}),e.jsx("pre",{className:J.pre,children:e.jsx("code",{children:x.map(({line:h,key:g})=>e.jsxs("span",{className:_(J.line,h.diff&&J[h.diff]),children:[r&&e.jsx("span",{className:J.marker,"aria-hidden":"true",children:h.diff?Oc[h.diff]:""}),e.jsx("span",{className:J.content,children:h.content})]},g))})})]})}const Gc="copy-button-module__copyButton___-hTo4",qc="copy-button-module__copied___XlHFr",Yc="copy-button-module__icon___4B9mp",Se={copyButton:Gc,copied:qc,icon:Yc},Hc=f.forwardRef(function({value:t,label:o="copy",copiedLabel:n="copied",icon:l,copiedIcon:a,timeout:d=2e3,onCopy:c,onClick:u,className:m,...r},p){const[i,x]=f.useState(!1),h=f.useRef();f.useEffect(()=>()=>window.clearTimeout(h.current),[]);const g=y=>{var M;u==null||u(y);const N=(M=navigator.clipboard)==null?void 0:M.writeText(t);N&&N.then(()=>{x(!0),c==null||c(),window.clearTimeout(h.current),h.current=window.setTimeout(()=>x(!1),d)},()=>x(!1))},v=i?a??l:l,$=i?n:o;return e.jsxs("button",{ref:p,type:"button","aria-label":$,className:_(Se.copyButton,i&&Se.copied,m),onClick:g,...r,children:[v&&e.jsx("span",{className:Se.icon,"aria-hidden":"true",children:v}),e.jsx("span",{children:$})]})}),Uc="data-table-module__wrapper___UTyMr",Wc="data-table-module__table___Fuoei",Zc="data-table-module__caption___QjcZG",Vc="data-table-module__head___g-ix3",Xc="data-table-module__th___GLSnD",Jc="data-table-module__td___Z6bns",Qc="data-table-module__row___ZyAGw",e_="data-table-module__striped___QXV4j",t_="data-table-module__hoverable___zuaEp",s_="data-table-module__clickable___npv-C",o_="data-table-module__empty___vSmGc",n_="data-table-module__left___H3aIX",l_="data-table-module__center___OEedB",a_="data-table-module__right___d0MIh",r_="data-table-module__compact___R6xaO",E={wrapper:Uc,table:Wc,caption:Zc,head:Vc,th:Xc,td:Jc,row:Qc,striped:e_,hoverable:t_,clickable:s_,empty:o_,left:n_,center:l_,right:a_,compact:r_};function c_({data:s,columns:t,keyExtractor:o,striped:n=!0,hoverable:l=!0,compact:a=!1,loading:d=!1,loadingRows:c=3,emptyMessage:u="No data",caption:m,rowClassName:r,onRowClick:p,className:i,...x}){const h=v=>v?E[v]:void 0,g=f.useMemo(()=>Array.from({length:c},(v,$)=>`fui-data-table-loading-${$}`),[c]);return e.jsx("div",{className:_(E.wrapper,i),...x,children:e.jsxs("table",{className:_(E.table,a&&E.compact),children:[m!=null&&e.jsx("caption",{className:E.caption,children:m}),e.jsx("thead",{className:E.head,children:e.jsx("tr",{children:t.map(v=>e.jsx("th",{scope:"col",className:_(E.th,h(v.align)),style:{width:v.width},children:v.header},v.key))})}),e.jsxs("tbody",{children:[d&&g.map(v=>e.jsx("tr",{className:E.row,children:t.map($=>e.jsx("td",{className:_(E.td,h($.align)),children:e.jsx(Ae,{width:"70%"})},$.key))},v)),!d&&s.length===0&&e.jsx("tr",{className:E.row,children:e.jsx("td",{colSpan:t.length,className:E.empty,children:u})}),!d&&s.map((v,$)=>{const y=o(v);return e.jsx("tr",{className:_(E.row,n&&$%2===1&&E.striped,l&&E.hoverable,p&&E.clickable,typeof r=="function"?r(v):r),tabIndex:p?0:void 0,onClick:p?()=>p(v):void 0,onKeyDown:p?N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),p(v))}:void 0,children:t.map(N=>e.jsx("td",{className:_(E.td,h(N.align)),children:N.cell(v)},`${y}-${N.key}`))},y)})]})]})})}const __="breadcrumb-module__breadcrumb___r-ILp",d_="breadcrumb-module__list___V3YFy",i_="breadcrumb-module__item___dDwYf",u_="breadcrumb-module__link___CHC9k",m_="breadcrumb-module__current___dprI9",p_="breadcrumb-module__separator___uLhtn",Q={breadcrumb:__,list:d_,item:i_,link:u_,current:m_,separator:p_};function f_({item:s,current:t}){return t?e.jsx("span",{className:Q.current,"aria-current":"page",children:s.label}):s.href?e.jsx("a",{className:Q.link,href:s.href,onClick:s.onClick,children:s.label}):s.onClick?e.jsx("button",{type:"button",className:Q.link,onClick:s.onClick,children:s.label}):e.jsx("span",{className:Q.link,children:s.label})}function h_({items:s,separator:t="/",className:o,...n}){const l=new Map;return e.jsx("nav",{"aria-label":"Breadcrumb",className:_(Q.breadcrumb,o),...n,children:e.jsx("ol",{className:Q.list,children:s.map((a,d)=>{const c=d===s.length-1,u=a.current??c,m=a.href??(typeof a.label=="string"?a.label:""),r=l.get(m)??0;return l.set(m,r+1),e.jsxs("li",{className:Q.item,children:[e.jsx(f_,{item:a,current:u}),!c&&e.jsx("span",{className:Q.separator,"aria-hidden":"true",children:t})]},`${m} ${r}`)})})})}const b_="menu-module__menu___i40Wj",x_="menu-module__trigger___FBppm",g_="menu-module__list___YjCfD",v_="menu-module__start___fmDPf",y_="menu-module__end___a7S-M",j_="menu-module__item___aqcgg",w_="menu-module__active___JMLGb",$_="menu-module__danger___p9oZo",k_="menu-module__icon___1qUvA",N_="menu-module__separator___g2uay",M_="menu-module__selected___YvGDq",U={menu:b_,trigger:x_,list:g_,start:v_,end:y_,item:j_,active:w_,danger:$_,icon:k_,separator:N_,selected:M_};function Ge(s){return"separator"in s}function me(s){return!Ge(s)&&!s.disabled}function I_(...s){return t=>{for(const o of s)typeof o=="function"?o(t):o&&(o.current=t)}}function D_({trigger:s,items:t,asChild:o,triggerLabel:n,align:l="start",className:a}){const d=f.useId(),c=`fui-menu-trigger-${d}`,u=`fui-menu-${d}`,m=b=>`${u}-item-${b}`,[r,p]=f.useState(!1),[i,x]=f.useState(-1),h=f.useRef(null),g=f.useRef(null),v=f.useRef(null),$=()=>t.findIndex(me),y=()=>{for(let b=t.length-1;b>=0;b--)if(me(t[b]))return b;return-1},N=b=>{for(let w=b+1;w<t.length;w++)if(me(t[w]))return w;return b},M=b=>{for(let w=b-1;w>=0;w--)if(me(t[w]))return w;return b};f.useEffect(()=>{var b;r&&((b=v.current)==null||b.focus())},[r]),f.useEffect(()=>{if(!r)return;const b=w=>{var T;(T=h.current)!=null&&T.contains(w.target)||p(!1)};return window.addEventListener("pointerdown",b),()=>window.removeEventListener("pointerdown",b)},[r]);const S=b=>{x(b),p(!0)},L=(b=!0)=>{var w;p(!1),b&&((w=g.current)==null||w.focus())},F=b=>{var T;const w=t[b];!w||!me(w)||((T=w.onSelect)==null||T.call(w),L())},P=()=>{r?L():S($())},I=b=>{switch(b.key){case"ArrowDown":case"Enter":case" ":b.preventDefault(),r||S($());break;case"ArrowUp":b.preventDefault(),r||S(y());break}},j=b=>{switch(b.key){case"ArrowDown":b.preventDefault(),x(w=>N(w));break;case"ArrowUp":b.preventDefault(),x(w=>M(w));break;case"Home":b.preventDefault(),x($());break;case"End":b.preventDefault(),x(y());break;case"Enter":case" ":b.preventDefault(),i>=0&&F(i);break;case"Escape":b.preventDefault(),L();break;case"Tab":p(!1);break}},D=()=>{if(o&&f.isValidElement(s)){const b=s,{onClick:w,onKeyDown:T}=b.props,ee={ref:I_(g,b.ref),id:c,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":r?u:void 0,onClick:G=>{w==null||w(G),G.defaultPrevented||P()},onKeyDown:G=>{T==null||T(G),G.defaultPrevented||I(G)}};return n!=null&&(ee["aria-label"]=n),f.cloneElement(b,ee)}return e.jsx("button",{ref:b=>{g.current=b},type:"button",id:c,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":r?u:void 0,"aria-label":n,className:U.trigger,onClick:P,onKeyDown:I,children:s})};return e.jsxs("div",{ref:h,className:_(U.menu,a),children:[D(),r&&e.jsx("div",{ref:v,id:u,role:"menu","aria-labelledby":c,"aria-activedescendant":i>=0?m(i):void 0,tabIndex:-1,className:_(U.list,U[l]),onKeyDown:j,children:t.map((b,w)=>Ge(b)?e.jsx("hr",{className:U.separator},m(w)):e.jsxs("button",{type:"button",id:m(w),role:b.selected==null?"menuitem":"menuitemradio","aria-checked":b.selected,tabIndex:-1,disabled:b.disabled,className:_(U.item,b.danger&&U.danger,b.selected&&U.selected,w===i&&U.active),onPointerMove:()=>!b.disabled&&x(w),onClick:()=>F(w),children:[b.icon&&e.jsx("span",{className:U.icon,"aria-hidden":"true",children:b.icon}),b.label]},m(w)))})]})}const B_="file-button-module__fileButton___aK91Q",S_="file-button-module__disabled___RF3Ox",L_="file-button-module__input___Z5bit",C_="file-button-module__icon___Tkeo1",Me={fileButton:B_,disabled:S_,input:L_,icon:C_},E_=f.forwardRef(function({onFiles:t,icon:o,children:n,disabled:l,className:a,...d},c){return e.jsxs("label",{className:_(Me.fileButton,l&&Me.disabled,a),children:[e.jsx("input",{ref:c,type:"file",className:Me.input,disabled:l,onChange:u=>{const{files:m}=u.target;m&&m.length>0&&t(m)},...d}),o&&e.jsx("span",{className:Me.icon,"aria-hidden":"true",children:o}),n]})}),R_="icon-module__icon___2vrJz",F_={icon:R_},T_={close:e.jsx("path",{d:"M6 6l12 12M18 6L6 18"}),check:e.jsx("path",{d:"M5 13l4 4L19 7"}),copy:e.jsxs(e.Fragment,{children:[e.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),e.jsx("path",{d:"M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2"})]}),plus:e.jsx("path",{d:"M12 5v14M5 12h14"}),folder:e.jsx("path",{d:"M3 6a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2V6z"}),lightbulb:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M9 18h6"}),e.jsx("path",{d:"M10 21h4"}),e.jsx("path",{d:"M12 3a6 6 0 00-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0012 3z"})]}),"chevron-up":e.jsx("path",{d:"M6 15l6-6 6 6"}),"chevron-down":e.jsx("path",{d:"M6 9l6 6 6-6"}),"chevron-left":e.jsx("path",{d:"M15 6l-6 6 6 6"}),"chevron-right":e.jsx("path",{d:"M9 6l6 6-6 6"}),play:e.jsx("path",{d:"M8 5v14l11-7z"}),flag:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M5 21V4"}),e.jsx("path",{d:"M5 4h11l-2 4 2 4H5"})]}),"sort-asc":e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M12 5v14"}),e.jsx("path",{d:"M8 9l4-4 4 4"})]}),"sort-desc":e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M12 5v14"}),e.jsx("path",{d:"M8 15l4 4 4-4"})]}),refresh:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M3 12a9 9 0 019-9 9 9 0 016.7 3L21 8"}),e.jsx("path",{d:"M21 3v5h-5"}),e.jsx("path",{d:"M21 12a9 9 0 01-9 9 9 9 0 01-6.7-3L3 16"}),e.jsx("path",{d:"M3 21v-5h5"})]}),more:e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"5",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),e.jsx("circle",{cx:"12",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"}),e.jsx("circle",{cx:"19",cy:"12",r:"1.6",fill:"currentColor",stroke:"none"})]}),wand:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M3 21l12-12"}),e.jsx("path",{d:"M12.5 6.5l5 5"}),e.jsx("path",{d:"M18 3v4M16 5h4"})]}),merge:e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"6",cy:"6",r:"3"}),e.jsx("circle",{cx:"18",cy:"18",r:"3"}),e.jsx("path",{d:"M6 9v12"}),e.jsx("path",{d:"M6 9a9 9 0 009 9"})]}),push:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M5 4h14"}),e.jsx("path",{d:"M12 19V8"}),e.jsx("path",{d:"M7 13l5-5 5 5"})]}),pull:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M5 20h14"}),e.jsx("path",{d:"M12 5v11"}),e.jsx("path",{d:"M7 11l5 5 5-5"})]}),shuffle:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M16 3h5v5"}),e.jsx("path",{d:"M4 20L21 3"}),e.jsx("path",{d:"M21 16v5h-5"}),e.jsx("path",{d:"M15 15l6 6"}),e.jsx("path",{d:"M4 4l5 5"})]}),commit:e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"12",cy:"12",r:"4"}),e.jsx("path",{d:"M2 12h6"}),e.jsx("path",{d:"M16 12h6"})]}),github:e.jsx("path",{fill:"currentColor",stroke:"none",d:"M12 .5C5.37.5 0 5.78 0 12.29c0 5.2 3.44 9.6 8.2 11.16.6.1.82-.25.82-.56v-2c-3.34.72-4.04-1.6-4.04-1.6-.55-1.37-1.34-1.74-1.34-1.74-1.1-.74.08-.73.08-.73 1.2.08 1.84 1.22 1.84 1.22 1.07 1.8 2.8 1.29 3.5.98.1-.77.42-1.3.76-1.6-2.67-.3-5.47-1.31-5.47-5.83 0-1.29.47-2.34 1.24-3.17-.13-.3-.54-1.52.12-3.17 0 0 1.01-.32 3.3 1.21a11.5 11.5 0 016 0c2.28-1.53 3.29-1.21 3.29-1.21.66 1.65.25 2.87.12 3.17.77.83 1.24 1.88 1.24 3.17 0 4.53-2.81 5.53-5.49 5.82.43.37.81 1.1.81 2.22v3.29c0 .32.21.68.82.56A12.02 12.02 0 0024 12.29C24 5.78 18.63.5 12 .5z"}),note:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M6 3h9l4 4v13a1 1 0 01-1 1H6a1 1 0 01-1-1V4a1 1 0 011-1z"}),e.jsx("path",{d:"M14 3v5h5"}),e.jsx("path",{d:"M9 13h6M9 17h6"})]})};function z_({name:s,size:t=24,title:o,className:n,...l}){return e.jsxs("svg",{viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",role:o?"img":void 0,"aria-hidden":o?void 0:!0,"aria-label":o,className:_(F_.icon,n),...l,children:[o&&e.jsx("title",{children:o}),T_[s]]})}exports.Alert=Ha;exports.Backdrop=ct;exports.Breadcrumb=h_;exports.Button=wt;exports.Card=dn;exports.Checkbox=ll;exports.Chip=lc;exports.CircularProgress=Ir;exports.CodeBlock=Ac;exports.CopyButton=Hc;exports.DataTable=c_;exports.Divider=Qa;exports.Drawer=Na;exports.EmptyState=Ar;exports.FileButton=E_;exports.Glass=it;exports.Glow=ze;exports.Grain=Te;exports.Icon=z_;exports.IconButton=Bt;exports.InlineCode=Bc;exports.Input=vn;exports.Kbd=Mc;exports.LampButton=Zt;exports.LampIconButton=is;exports.LampMeter=po;exports.LampStatus=Hs;exports.LampSwitch=Ls;exports.LinkButton=jo;exports.ListItem=Fa;exports.Menu=D_;exports.Modal=ta;exports.Progress=cr;exports.Radio=Ke;exports.RadioGroup=$l;exports.SegmentedControl=uc;exports.Select=Un;exports.Skeleton=Ae;exports.Slider=vr;exports.Spinner=Oe;exports.Stamp=Lo;exports.StatusDot=Qr;exports.Switch=Tl;exports.Tabs=$c;exports.Textarea=Dn;exports.ToastProvider=Jo;exports.Tooltip=Ro;exports.cn=_;exports.useToast=Qo;
|
|
4
4
|
//# sourceMappingURL=index.cjs.map
|