@eschoolbase/client-ui 0.1.0 → 0.2.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/README.md +18 -0
- package/dist/components/Badge/Badge.d.ts +3 -0
- package/dist/components/Badge/Badge.types.d.ts +8 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +10 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +10 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.types.d.ts +8 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +6 -0
- package/dist/components/Tabs/Tabs.types.d.ts +20 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +3 -0
- package/dist/components/Textarea/Textarea.types.d.ts +12 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/ThemeToggle/ThemeToggle.d.ts +6 -0
- package/dist/components/ThemeToggle/ThemeToggle.types.d.ts +13 -0
- package/dist/components/ThemeToggle/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.js +650 -229
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.types.d.ts +13 -2
- package/dist/theme/themeStore.d.ts +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,17 @@ const { theme, setTheme } = useTheme();
|
|
|
64
64
|
<Button onClick={() => setTheme(theme === 'light' ? 'dark' : 'light')}>Toggle</Button>;
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
### System theme and remembering the choice
|
|
68
|
+
|
|
69
|
+
```tsx
|
|
70
|
+
<ThemeProvider defaultTheme="system" storageKey="app-theme">
|
|
71
|
+
<ThemeToggle />
|
|
72
|
+
</ThemeProvider>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- `defaultTheme="system"` follows the OS light/dark setting, live. `useTheme()` returns the choice (`theme`, can be `system`) and the applied one (`resolvedTheme`, always `light`/`dark`/custom).
|
|
76
|
+
- `storageKey` saves the user's choice in `localStorage` (uncontrolled only). It is applied right after the first render, so server and client markup match; with SSR there can be a brief flash of the default theme.
|
|
77
|
+
|
|
67
78
|
### Customizing / adding themes
|
|
68
79
|
|
|
69
80
|
All tokens are `--cui-*` variables (see `src/theme/tokens.css` and `themes.css`). Override them in your own CSS, loaded after `styles.css`:
|
|
@@ -116,11 +127,18 @@ Keys are matched as hashes, so the plain keys are not in the bundle. This is a d
|
|
|
116
127
|
| `Button` | `variant`: primary, secondary, outline, ghost, danger, link · `size`: sm/md/lg · `loading` · `disabled` · `fullWidth`. Defaults to `type="button"`. |
|
|
117
128
|
| `Input` | `label`, `helperText`, `error`, `required`, `prefix`, `suffix`, `size`; forwards `ref`; all native input props. |
|
|
118
129
|
| `Select` | Custom dropdown (like the app's AdvancedSelect): popover list, type-to-search, `multiple`, clear button, `onSearch` + `loading` for server-side search, `name` for forms. `onChange` receives the value (`string`, or `string[]` when `multiple`). Ref points at the trigger button. |
|
|
130
|
+
| `Textarea` | Multi-line input with the same `label`, `helperText`, `error`, `required` handling as `Input`; `rows`, `resize`. |
|
|
131
|
+
| `Checkbox` | Themed native checkbox: `label`, `helperText`, `error`, `indeterminate`. |
|
|
132
|
+
| `Switch` | On/off toggle (`role="switch"`): `label`, `helperText`, `error`. |
|
|
133
|
+
| `Badge` | Status pill: `color` (neutral, primary, success, warning, danger, info), `dot`. |
|
|
134
|
+
| `Skeleton` | Loading placeholder: `variant` (text, rect, circle), `width`, `height`. |
|
|
135
|
+
| `Tabs` | Accessible underlined tabs: `items`, `value`/`defaultValue`, `onValueChange`; arrow-key navigation. |
|
|
119
136
|
| `FormField` | Wraps any control: label, required marker, helper text, error, and `aria-describedby` / `aria-invalid` wiring. |
|
|
120
137
|
| `FormSection` | Titled group of fields: heading, subtitle, divider and a responsive grid (`columns` 1-3, `headingLevel`). Renders a labelled `<section>`. |
|
|
121
138
|
| `Typography` | Themed text: `variant` (h1-h4, body, body-sm, caption, label), `as` to change the element, `color`, `weight`, `align`, `truncate`. |
|
|
122
139
|
| `AccountPanel` | Logged-in user button (header avatar or sidebar row) that opens a panel: greeting, role, detail rows, action pills, an app launcher grid and a log out action. Ported from the Engage portal; router-agnostic via `renderLink`. |
|
|
123
140
|
| `Avatar` | Photo or name initials with a stable color; sizes xs-xl. |
|
|
141
|
+
| `ThemeToggle` | Light / Dark / System picker (radio group) for `useTheme()`; `modes` for custom themes, `compact` for icons only. |
|
|
124
142
|
| `ThemeProvider` | Applies `data-theme`; `useTheme()` for reading/changing it. |
|
|
125
143
|
|
|
126
144
|
```tsx
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type BadgeColor = 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** Defaults to `neutral`. */
|
|
5
|
+
color?: BadgeColor;
|
|
6
|
+
/** Show a small colored dot before the text. */
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CheckboxProps } from './Checkbox.types';
|
|
2
|
+
/** Native checkbox with a themed box, optional label, helper text and error. */
|
|
3
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
3
|
+
/** Text shown next to the box. Clicking it toggles the checkbox. */
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
helperText?: ReactNode;
|
|
6
|
+
/** Error message. When set, the checkbox is marked invalid. */
|
|
7
|
+
error?: ReactNode;
|
|
8
|
+
/** Shows the mixed state (e.g. "some children selected"). Visual only; `checked` still drives the value. */
|
|
9
|
+
indeterminate?: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type SkeletonVariant = 'text' | 'rect' | 'circle';
|
|
3
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** `text` is a rounded line, `rect` a block, `circle` a round avatar placeholder. Defaults to `rect`. */
|
|
5
|
+
variant?: SkeletonVariant;
|
|
6
|
+
/** CSS width, e.g. `120` (px) or `"60%"`. */
|
|
7
|
+
width?: number | string;
|
|
8
|
+
/** CSS height. Circles use `width` for both when `height` is omitted. */
|
|
9
|
+
height?: number | string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SwitchProps } from './Switch.types';
|
|
2
|
+
/** On/off toggle. A native checkbox with `role="switch"`, so it works in forms and with keyboards. */
|
|
3
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
3
|
+
/** Text shown next to the switch. Clicking it toggles the switch. */
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
helperText?: ReactNode;
|
|
6
|
+
/** Error message. When set, the switch is marked invalid. */
|
|
7
|
+
error?: ReactNode;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TabsProps } from './Tabs.types';
|
|
2
|
+
/**
|
|
3
|
+
* Underlined tabs following the WAI-ARIA tabs pattern: arrow keys, Home and End
|
|
4
|
+
* move between tabs; the active tab's panel is shown below the list.
|
|
5
|
+
*/
|
|
6
|
+
export declare function Tabs<T extends string = string>({ items, value, defaultValue, onValueChange, className, 'aria-label': ariaLabel, ...rest }: TabsProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface TabItem<T extends string = string> {
|
|
3
|
+
value: T;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/** Icon element shown before the label. */
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** Panel content, rendered when the tab is active. Omit to manage content yourself. */
|
|
9
|
+
content?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface TabsProps<T extends string = string> extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
12
|
+
items: TabItem<T>[];
|
|
13
|
+
/** Active tab (controlled). */
|
|
14
|
+
value?: T;
|
|
15
|
+
/** Initially active tab (uncontrolled). Defaults to the first enabled tab. */
|
|
16
|
+
defaultValue?: T;
|
|
17
|
+
onValueChange?: (value: T) => void;
|
|
18
|
+
/** Accessible name of the tab list, e.g. "Lead sections". */
|
|
19
|
+
'aria-label'?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TextareaProps } from './Textarea.types';
|
|
2
|
+
/** Multi-line text input with the same label, helper and error handling as `Input`. */
|
|
3
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both';
|
|
3
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
helperText?: ReactNode;
|
|
6
|
+
/** Error message. When set, the textarea is marked invalid. */
|
|
7
|
+
error?: ReactNode;
|
|
8
|
+
/** Visible rows. Defaults to 3. */
|
|
9
|
+
rows?: number;
|
|
10
|
+
/** Which directions the user can resize. Defaults to `vertical`. */
|
|
11
|
+
resize?: TextareaResize;
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ThemeToggleProps } from './ThemeToggle.types';
|
|
2
|
+
/**
|
|
3
|
+
* Switch between themes (light / dark / system by default). Must be inside a
|
|
4
|
+
* `ThemeProvider`. Built on radio inputs, so arrow keys and screen readers work natively.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ThemeToggle({ modes, compact, className, 'aria-label': ariaLabel, ...rest }: ThemeToggleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import type { Theme } from '../../theme';
|
|
3
|
+
export interface ThemeToggleProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
4
|
+
/**
|
|
5
|
+
* The choices to offer, in order. Defaults to `['light', 'dark', 'system']`.
|
|
6
|
+
* Custom theme names are shown with their name as the label.
|
|
7
|
+
*/
|
|
8
|
+
modes?: Theme[];
|
|
9
|
+
/** Show only the icons, with the names as tooltips. */
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
/** Accessible name of the group. Defaults to "Theme". */
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react"),t=require("react/jsx-runtime"),n=require("react-dom");function r(...e){return e.filter(Boolean).join(` `)}var i=`client-ui:`;function a(e){let t=i+e.trim(),n=3735928559,r=1103547991;for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);n=Math.imul(n^i,2654435761),r=Math.imul(r^i,1597334677)}return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(16).padStart(14,`0`)}var o=[`1cd9d9bd20471f`],s=``,c=new Set,l=!1,u=(0,e.createContext)(null);function d(e){s=e,l=!1,c.forEach(e=>e())}function f(e){return!e||!e.trim()?!1:o.includes(a(e))}var p=e=>(c.add(e),()=>{c.delete(e)}),m=()=>s;function h(){let t=(0,e.useContext)(u),n=(0,e.useSyncExternalStore)(p,m,m),r=f(t??n);return(0,e.useEffect)(()=>{r||l||(l=!0,console.error(`[client-ui] Missing or invalid license key. Components are disabled. Pass licenseKey to <ThemeProvider> or call setLicenseKey() once at app start.`))},[r]),r}var g={root:`cui-UnlicensedNotice-module__root--FdnRG`};function _(){return(0,t.jsx)(`span`,{role:`alert`,className:g.root,children:`client-ui: missing or invalid license key`})}var v={button:`cui-Button-module__button--2ZuB7`,sm:`cui-Button-module__sm--NhG0g`,md:`cui-Button-module__md--hH4h3`,lg:`cui-Button-module__lg--2plQf`,fullWidth:`cui-Button-module__fullWidth--36oJT`,primary:`cui-Button-module__primary--s1sM6`,secondary:`cui-Button-module__secondary--R0waJ`,outline:`cui-Button-module__outline--F5jq-`,ghost:`cui-Button-module__ghost--1KINV`,danger:`cui-Button-module__danger--V4fX8`,link:`cui-Button-module__link--Zt5hw`,spinner:`cui-Button-module__spinner--ZExvW`,spin:`cui-Button-module__spin--JvkZu`},y=(0,e.forwardRef)(function({variant:e=`primary`,size:n=`md`,loading:i=!1,fullWidth:a=!1,type:o=`button`,disabled:s,className:c,children:l,...u},d){return h()?(0,t.jsxs)(`button`,{...u,ref:d,type:o,disabled:s||i,"aria-busy":i||void 0,"data-variant":e,"data-size":n,className:r(v.button,v[e],v[n],a&&v.fullWidth,c),children:[i?(0,t.jsx)(`span`,{className:v.spinner,"aria-hidden":`true`}):null,l]}):(0,t.jsx)(_,{})}),b=(0,e.createContext)(null);function x(t){let n=(0,e.useContext)(b),r=(0,e.useId)(),i=n?.id??t.id??r,a=!!(t.required??n?.required),o=!!(t.disabled??n?.disabled),s=!!t.error||!!n?.invalid,c=[t[`aria-describedby`],n?.describedById].filter(Boolean).join(` `)||void 0;return{id:i,required:a,disabled:o,invalid:s,labelId:n?.labelId,"aria-invalid":s?!0:void 0,"aria-describedby":c}}var S={root:`cui-FormField-module__root--QkVj-`,label:`cui-FormField-module__label--98wVM`,labelDisabled:`cui-FormField-module__labelDisabled--I5V6c`,required:`cui-FormField-module__required--Erm4t`,message:`cui-FormField-module__message--FUq3k`,helper:`cui-FormField-module__helper--JuBZ6`,error:`cui-FormField-module__error--4SHKr`};function C({children:n,label:i,required:a=!1,helperText:o,error:s,disabled:c=!1,id:l,className:u,...d}){let f=(0,e.useId)(),p=l??f,m=!!s,g=m?`${p}-error`:o?`${p}-helper`:void 0,v=(0,e.useMemo)(()=>({id:p,describedById:g,labelId:i?`${p}-label`:void 0,required:a,disabled:c,invalid:m}),[p,g,i,a,c,m]);return h()?(0,t.jsx)(b.Provider,{value:v,children:(0,t.jsxs)(`div`,{...d,className:r(S.root,u),children:[i?(0,t.jsxs)(`label`,{id:`${p}-label`,htmlFor:p,className:r(S.label,c&&S.labelDisabled),children:[i,a?(0,t.jsx)(`span`,{className:S.required,"aria-hidden":`true`,children:`*`}):null]}):null,n,m?(0,t.jsx)(`p`,{id:g,className:r(S.message,S.error),role:`alert`,children:s}):o?(0,t.jsx)(`p`,{id:g,className:r(S.message,S.helper),children:o}):null]})}):(0,t.jsx)(_,{})}var w={control:`cui-Input-module__control--e3jPo`,disabled:`cui-Input-module__disabled--nzcnQ`,invalid:`cui-Input-module__invalid--VyrnA`,sm:`cui-Input-module__sm--SCPkT`,md:`cui-Input-module__md--weRbk`,lg:`cui-Input-module__lg--ic8a4`,input:`cui-Input-module__input--WjT81`,affix:`cui-Input-module__affix--zz0Xe`,readOnly:`cui-Input-module__readOnly--0ag-W`},T=(0,e.forwardRef)(function({id:e,required:n,disabled:i,error:a,"aria-describedby":o,prefix:s,suffix:c,size:l=`md`,readOnly:u,className:d,...f},p){let m=x({id:e,required:n,disabled:i,error:a,"aria-describedby":o});return(0,t.jsxs)(`div`,{className:r(w.control,w[l],m.invalid&&w.invalid,m.disabled&&w.disabled,u&&w.readOnly,d),children:[s?(0,t.jsx)(`span`,{className:w.affix,children:s}):null,(0,t.jsx)(`input`,{...f,ref:p,id:m.id,required:m.required,disabled:m.disabled,readOnly:u,"aria-invalid":m[`aria-invalid`],"aria-describedby":m[`aria-describedby`],className:w.input}),c?(0,t.jsx)(`span`,{className:w.affix,children:c}):null]})}),E=(0,e.forwardRef)(function({label:e,helperText:n,...r},i){return h()?!e&&!n&&!r.error?(0,t.jsx)(T,{...r,ref:i}):(0,t.jsx)(C,{id:r.id,label:e,helperText:n,error:r.error,required:r.required,disabled:r.disabled,children:(0,t.jsx)(T,{...r,ref:i})}):(0,t.jsx)(_,{})}),D={control:`cui-Select-module__control--OqOfI`,trigger:`cui-Select-module__trigger--ECKfC`,open:`cui-Select-module__open--PADOK`,value:`cui-Select-module__value--7CDNo`,placeholder:`cui-Select-module__placeholder--yUgBU`,sm:`cui-Select-module__sm--TPJwf`,md:`cui-Select-module__md--nOV6u`,lg:`cui-Select-module__lg--NGPOa`,chevron:`cui-Select-module__chevron--PLUsh`,clear:`cui-Select-module__clear--2OgzI`,invalid:`cui-Select-module__invalid--opDrx`,disabled:`cui-Select-module__disabled--8YgjS`,popover:`cui-Select-module__popover--VnWAu`,"cui-select-in":`cui-Select-module__cui-select-in--VGYFd`,top:`cui-Select-module__top--v5FSw`,"cui-select-in-top":`cui-Select-module__cui-select-in-top--fwYA4`,searchWrap:`cui-Select-module__searchWrap--YBOFZ`,search:`cui-Select-module__search--FrUXx`,list:`cui-Select-module__list--CI08p`,option:`cui-Select-module__option--Hvo8n`,optionLabel:`cui-Select-module__optionLabel--FGiUZ`,selected:`cui-Select-module__selected--8A13A`,highlighted:`cui-Select-module__highlighted--YIVPT`,optionDisabled:`cui-Select-module__optionDisabled--FhDw-`,check:`cui-Select-module__check--RxZrV`,empty:`cui-Select-module__empty--KmYrm`,spinner:`cui-Select-module__spinner--OxCAP`,"cui-select-spin":`cui-Select-module__cui-select-spin--MQqaM`},O=4,ee=280,te=500,k=e=>Array.isArray(e)?e:e?[e]:[],A=(0,e.forwardRef)(function({options:i,placeholder:a=`Select an option`,size:o=`md`,multiple:s=!1,clearable:c=!0,onSearch:l,loading:u=!1,emptyMessage:d=`No options found.`,listClassName:f,name:p,value:m,defaultValue:h,onChange:g,id:_,required:v,disabled:y,error:b,"aria-describedby":S,className:C,onKeyDown:w,onClick:T,...E},A){let j=x({id:_,required:v,disabled:y,error:b,"aria-describedby":S}),M=(0,e.useId)(),N=`${M}-list`,P=`${M}-value`,F=e=>`${M}-option-${e}`,I=(0,e.useRef)(null),L=(0,e.useRef)(null),R=(0,e.useRef)(null),z=(0,e.useRef)(null),B=(0,e.useRef)(null),[V,H]=(0,e.useState)(!1),[U,ne]=(0,e.useState)(null),[W,G]=(0,e.useState)(``),[K,q]=(0,e.useState)(!1),[J,Y]=(0,e.useState)(0),X=m!==void 0,[re,Z]=(0,e.useState)(()=>k(h)),Q=X?k(m):re,ie=(0,e.useCallback)(e=>{L.current=e,typeof A==`function`?A(e):A&&(A.current=e)},[A]),$=(0,e.useMemo)(()=>{if(l||!W)return i;let e=W.toLowerCase();return i.filter(t=>t.label.toLowerCase().includes(e))},[i,W,l]),ae=e=>{X||Z(e),g?.(s?e:e[0]??``)},oe=e=>{let t=e.findIndex(e=>!e.disabled);return t===-1?0:t},se=(0,e.useCallback)(()=>{let e=I.current;if(!e)return;let t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,r=n<ee&&t.top>n?`top`:`bottom`,i={left:t.left,width:t.width};r===`bottom`?i.top=t.bottom+O:i.bottom=window.innerHeight-t.top+O,ne({style:i,placement:r})},[]),ce=()=>{if(j.disabled)return;se(),G(``),q(!1);let e=i.findIndex(e=>Q.includes(e.value));Y(e===-1?oe(i):e),H(!0)},le=(e=!0)=>{H(!1),e&&L.current?.focus({preventScroll:!0})},ue=e=>{e.disabled||(s?ae(Q.includes(e.value)?Q.filter(t=>t!==e.value):[...Q,e.value]):(ae([e.value]),le()),G(``),q(!1))},de=e=>{if(!$.length)return;let t=J;for(let n=0;n<$.length&&(t=(t+e+$.length)%$.length,$[t]?.disabled);n++);Y(t)};(0,e.useEffect)(()=>{V&&z.current?.focus({preventScroll:!0})},[V]),(0,e.useEffect)(()=>{K&&B.current?.focus({preventScroll:!0})},[K]);let fe=(0,e.useRef)(l);(0,e.useEffect)(()=>{fe.current=l},[l]),(0,e.useEffect)(()=>{if(!V||!fe.current)return;let e=setTimeout(()=>fe.current?.(W),te);return()=>clearTimeout(e)},[W,V]),(0,e.useEffect)(()=>{if(!V)return;let e=()=>requestAnimationFrame(se);return window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[V,se]),(0,e.useEffect)(()=>{if(!V)return;let e=e=>{let t=e.target;!I.current?.contains(t)&&!R.current?.contains(t)&&H(!1)};return document.addEventListener(`mousedown`,e,!0),()=>document.removeEventListener(`mousedown`,e,!0)},[V]),(0,e.useEffect)(()=>{if(!V)return;let e=z.current,t=e?.children[J];e&&t&&(t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+t.offsetHeight>e.scrollTop+e.clientHeight&&(e.scrollTop=t.offsetTop+t.offsetHeight-e.clientHeight))},[J,V]);let pe=e=>{w?.(e),!e.defaultPrevented&&!V&&(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),ce())},me=e=>{switch(e.key){case`Escape`:e.preventDefault(),e.stopPropagation(),le();return;case`ArrowDown`:e.preventDefault(),de(1);return;case`ArrowUp`:e.preventDefault(),de(-1);return;case`Home`:if(K)return;e.preventDefault(),Y(oe($));return;case`End`:if(K)return;e.preventDefault(),Y(Math.max($.length-1,0));return;case`Enter`:e.preventDefault(),e.stopPropagation(),$[J]&&ue($[J]);return;case`Tab`:H(!1),L.current?.focus({preventScroll:!0});return;case` `:if(K)return;e.preventDefault(),$[J]&&ue($[J]);return}let t=e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey;!K&&t&&(e.preventDefault(),G(e.key),Y(0),q(!0))},he=i.filter(e=>Q.includes(e.value)),ge=Q.length>0,_e=Q.length>1?`${Q.length} selected`:he[0]?.label??a,ve=c&&ge&&!j.disabled,ye=V?I.current?.closest(`[data-theme]`)?.getAttribute(`data-theme`):void 0,be=V&&$[J]?F(J):void 0,xe=j.labelId?`${j.labelId} ${P}`:void 0;return(0,t.jsxs)(`div`,{ref:I,className:r(D.control,D[o],j.invalid&&D.invalid,j.disabled&&D.disabled,V&&D.open,C),children:[(0,t.jsx)(`button`,{...E,ref:ie,id:j.id,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":V,"aria-controls":V?N:void 0,"aria-labelledby":xe,"aria-invalid":j[`aria-invalid`],"aria-describedby":j[`aria-describedby`],"aria-required":j.required||void 0,disabled:j.disabled,className:r(D.trigger,!he.length&&D.placeholder),onClick:e=>{T?.(e),!e.defaultPrevented&&(V?le(!1):ce())},onKeyDown:pe,children:(0,t.jsx)(`span`,{id:P,className:D.value,children:_e})}),ve?(0,t.jsx)(`button`,{type:`button`,className:D.clear,"aria-label":`Clear selection`,onClick:()=>{ae([]),L.current?.focus({preventScroll:!0})},children:(0,t.jsx)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M6 6l8 8M14 6l-8 8`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`})})}):null,(0,t.jsx)(`svg`,{className:D.chevron,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M5 7.5l5 5 5-5`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})}),p?Q.length>0?Q.map(e=>(0,t.jsx)(`input`,{type:`hidden`,name:p,value:e},e)):!s&&(0,t.jsx)(`input`,{type:`hidden`,name:p,value:``}):null,V&&U?(0,n.createPortal)((0,t.jsxs)(`div`,{ref:R,className:r(D.popover,D[U.placement]),style:U.style,"data-theme":ye??void 0,onKeyDown:me,children:[K?(0,t.jsx)(`div`,{className:D.searchWrap,children:(0,t.jsx)(`input`,{ref:B,type:`text`,className:D.search,placeholder:`Search options...`,"aria-label":`Search options`,"aria-controls":N,"aria-activedescendant":be,autoComplete:`off`,value:W,onChange:e=>{let t=e.target.value;G(t),Y(0),t===``&&(q(!1),z.current?.focus({preventScroll:!0}))}})}):null,(0,t.jsx)(`ul`,{ref:z,id:N,role:`listbox`,tabIndex:-1,"aria-labelledby":xe,"aria-multiselectable":s||void 0,"aria-activedescendant":K?void 0:be,className:r(D.list,f),children:$.length>0?$.map((e,n)=>{let i=Q.includes(e.value);return(0,t.jsxs)(`li`,{id:F(n),role:`option`,"aria-selected":i,"aria-disabled":e.disabled||void 0,className:r(D.option,i&&D.selected,n===J&&D.highlighted,e.disabled&&D.optionDisabled),onMouseEnter:()=>!e.disabled&&Y(n),onClick:()=>ue(e),children:[(0,t.jsx)(`span`,{className:D.optionLabel,children:e.label}),i?(0,t.jsx)(`svg`,{className:D.check,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M4.5 10.5l3.5 3.5 7.5-8`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})}):null]},e.value)}):(0,t.jsx)(`li`,{className:D.empty,role:`presentation`,children:u?(0,t.jsx)(`span`,{className:D.spinner,role:`status`,"aria-label":`Loading`}):d})})]}),document.body):null]})}),j=(0,e.forwardRef)(function({label:e,helperText:n,...r},i){if(!h())return(0,t.jsx)(_,{});let a=r;return!e&&!n&&!r.error?(0,t.jsx)(A,{...a,ref:i}):(0,t.jsx)(C,{id:r.id,label:e,helperText:n,error:r.error,required:r.required,disabled:r.disabled,children:(0,t.jsx)(A,{...a,ref:i})})}),M={root:`cui-FormSection-module__root--M70AE`,header:`cui-FormSection-module__header--xTDAF`,heading:`cui-FormSection-module__heading--QU0-u`,title:`cui-FormSection-module__title--cw5qX`,subtitle:`cui-FormSection-module__subtitle--cIB53`,divider:`cui-FormSection-module__divider--954nY`,fields:`cui-FormSection-module__fields--ALVzc`,columns2:`cui-FormSection-module__columns2--IgG6n`,columns3:`cui-FormSection-module__columns3--q-4XF`};function N({title:n,subtitle:i,children:a,columns:o=1,headingLevel:s=3,className:c,...l}){let u=(0,e.useId)(),d=!!(n||i);return h()?(0,t.jsxs)(`section`,{...l,"aria-labelledby":n?u:l[`aria-labelledby`],className:r(M.root,c),children:[d?(0,t.jsxs)(`div`,{className:M.header,children:[(0,t.jsxs)(`div`,{className:M.heading,children:[n?(0,e.createElement)(`h${s}`,{id:u,className:M.title},n):null,i?(0,t.jsx)(`p`,{className:M.subtitle,children:i}):null]}),(0,t.jsx)(`span`,{className:M.divider,"aria-hidden":`true`})]}):null,(0,t.jsx)(`div`,{className:r(M.fields,M[`columns${o}`]),children:a})]}):(0,t.jsx)(_,{})}var P={root:`cui-Avatar-module__root--fXu-J`,xs:`cui-Avatar-module__xs--oSaLL`,sm:`cui-Avatar-module__sm--sZ2bk`,md:`cui-Avatar-module__md--Fdkbz`,lg:`cui-Avatar-module__lg--pTTUA`,xl:`cui-Avatar-module__xl--mW58F`,image:`cui-Avatar-module__image--ieqGp`,fallback:`cui-Avatar-module__fallback--BWBXY`,tone0:`cui-Avatar-module__tone0--NoD23`,tone1:`cui-Avatar-module__tone1--xFqRb`,tone2:`cui-Avatar-module__tone2--nxsRe`,tone3:`cui-Avatar-module__tone3--goa6z`,tone4:`cui-Avatar-module__tone4--g6kRy`,primary:`cui-Avatar-module__primary--HKPgn`},F=[P.tone0,P.tone1,P.tone2,P.tone3,P.tone4];function I(e){let t=(e??``).trim().split(/\s+/).filter(Boolean);return t.length===0?``:((t[0]?.[0]??``)+(t.length>1?t[t.length-1]?.[0]??``:``)).toUpperCase()}function L(e){let t=e??``,n=0;for(let e=0;e<t.length;e++)n=n*31+t.charCodeAt(e)>>>0;return F[n%F.length]}function R({name:n,src:i,size:a=`md`,tone:o=`auto`,className:s,...c}){let[l,u]=(0,e.useState)(null),d=!!i&&i!==l,f=I(n);return h()?(0,t.jsx)(`span`,{role:c[`aria-hidden`]?void 0:`img`,"aria-label":c[`aria-hidden`]||!n?void 0:n,...c,className:r(P.root,P[a],!d&&(o===`primary`?P.primary:L(n)),s),children:d?(0,t.jsx)(`img`,{className:P.image,src:i??void 0,alt:``,onError:()=>u(i??null)}):f?(0,t.jsx)(`span`,{"aria-hidden":`true`,children:f}):(0,t.jsxs)(`svg`,{className:P.fallback,viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,children:[(0,t.jsx)(`circle`,{cx:`12`,cy:`8`,r:`4`,fill:`currentColor`}),(0,t.jsx)(`path`,{d:`M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z`,fill:`currentColor`})]})}):(0,t.jsx)(_,{})}var z={root:`cui-AccountPanel-module__root--Twbp0`,rootSidebar:`cui-AccountPanel-module__rootSidebar--OMB7L`,contents:`cui-AccountPanel-module__contents--OFL-r`,triggerHeader:`cui-AccountPanel-module__triggerHeader--ib8Bi`,triggerOpen:`cui-AccountPanel-module__triggerOpen--NbT3m`,triggerSidebar:`cui-AccountPanel-module__triggerSidebar--FeaXc`,collapsed:`cui-AccountPanel-module__collapsed--c8z-m`,identityText:`cui-AccountPanel-module__identityText--eziAT`,triggerName:`cui-AccountPanel-module__triggerName--f56mY`,triggerRole:`cui-AccountPanel-module__triggerRole--KpeeO`,panel:`cui-AccountPanel-module__panel--PinlA`,"cui-account-in":`cui-AccountPanel-module__cui-account-in--QVNEb`,panelSidebar:`cui-AccountPanel-module__panelSidebar--EuGZh`,identity:`cui-AccountPanel-module__identity--lZRA7`,email:`cui-AccountPanel-module__email--Ze3OW`,avatarRing:`cui-AccountPanel-module__avatarRing--FQrz4`,avatarInner:`cui-AccountPanel-module__avatarInner--5ZfEz`,greeting:`cui-AccountPanel-module__greeting--am-j3`,role:`cui-AccountPanel-module__role--E9lrf`,pills:`cui-AccountPanel-module__pills--5gSce`,pill:`cui-AccountPanel-module__pill--vK7aC`,actionIcon:`cui-AccountPanel-module__actionIcon--oReIE`,externalIcon:`cui-AccountPanel-module__externalIcon--dJc16`,details:`cui-AccountPanel-module__details--MGxxd`,detailRow:`cui-AccountPanel-module__detailRow--VzvVD`,apps:`cui-AccountPanel-module__apps--KRMBA`,appsTitle:`cui-AccountPanel-module__appsTitle--mcvnH`,grid:`cui-AccountPanel-module__grid--KYmem`,app:`cui-AccountPanel-module__app--Dj--X`,tile:`cui-AccountPanel-module__tile--YKNda`,tonePrimary:`cui-AccountPanel-module__tonePrimary--lAexZ`,toneInfo:`cui-AccountPanel-module__toneInfo--yb-xj`,toneSuccess:`cui-AccountPanel-module__toneSuccess--XIJic`,toneWarning:`cui-AccountPanel-module__toneWarning--oz2d6`,toneDanger:`cui-AccountPanel-module__toneDanger--MP2rJ`,toneNeutral:`cui-AccountPanel-module__toneNeutral--diEHz`,appName:`cui-AccountPanel-module__appName--MJc25`,danger:`cui-AccountPanel-module__danger--t0t-L`,dangerAction:`cui-AccountPanel-module__dangerAction--jvJ7-`},B=8,V=12,H=352,U=`a[href], button:not([disabled])`,ne=({href:e,className:n,title:r,onClick:i,children:a})=>(0,t.jsx)(`a`,{href:e,className:n,title:r,onClick:i,children:a}),W={primary:z.tonePrimary,info:z.toneInfo,success:z.toneSuccess,warning:z.toneWarning,danger:z.toneDanger,neutral:z.toneNeutral};function G(){return(0,t.jsx)(`svg`,{className:z.externalIcon,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M8 5H5v10h10v-3M11 5h4v4M15 5l-7 7`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function K({user:i,apps:a=[],actions:o=[],placement:s=`header`,collapsed:c=!1,appsTitle:l=`All Apps`,greeting:u=`Hi`,renderLink:d=ne,className:f}){let p=s===`sidebar`,m=(0,e.useId)(),g=(0,e.useRef)(null),v=(0,e.useRef)(null),y=(0,e.useRef)(null),[b,x]=(0,e.useState)(!1),[S,C]=(0,e.useState)(null),[w,T]=(0,e.useState)(),E=()=>{let e=v.current;if(!e)return;let t=e.getBoundingClientRect();if(p){let e=Math.min(H,window.innerWidth-24);C({left:Math.max(V,Math.min(t.right+B,window.innerWidth-e-V)),bottom:Math.max(V,window.innerHeight-t.bottom)})}else C({top:t.bottom+B,right:Math.max(V,window.innerWidth-t.right)})},D=()=>{E(),T(g.current?.closest(`[data-theme]`)?.getAttribute(`data-theme`)??void 0),x(!0)},O=()=>x(!1);(0,e.useEffect)(()=>{b&&y.current?.focus({preventScroll:!0})},[b]),(0,e.useEffect)(()=>{if(!b)return;let e=()=>requestAnimationFrame(E),t=e=>{let t=e.target;!g.current?.contains(t)&&!y.current?.contains(t)&&O()};return window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),document.addEventListener(`mousedown`,t,!0),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e),document.removeEventListener(`mousedown`,t,!0)}},[b,p]);let ee=e=>{if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),O(),v.current?.focus({preventScroll:!0});return}if(e.key!==`Tab`)return;let t=Array.from(y.current?.querySelectorAll(U)??[]),n=t[0],r=t[t.length-1];n&&r&&(e.shiftKey&&(document.activeElement===n||document.activeElement===y.current)?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus()))};if(!h())return(0,t.jsx)(_,{});let te=i.name.trim().split(/\s+/)[0]??i.name,k=o.filter(e=>e.tone!==`danger`),A=o.filter(e=>e.tone===`danger`),j=e=>{e.onClick?.(),O()},M=(0,t.jsxs)(`div`,{ref:y,id:m,role:`dialog`,"aria-label":`Account`,tabIndex:-1,className:r(z.panel,p&&z.panelSidebar),style:S??void 0,"data-theme":w,onKeyDown:ee,children:[(0,t.jsxs)(`div`,{className:z.identity,children:[i.email?(0,t.jsx)(`p`,{className:z.email,children:i.email}):null,(0,t.jsx)(`span`,{className:z.avatarRing,children:(0,t.jsx)(`span`,{className:z.avatarInner,children:(0,t.jsx)(R,{name:i.name,src:i.avatarUrl,size:`xl`,tone:`primary`,"aria-hidden":`true`})})}),(0,t.jsxs)(`p`,{className:z.greeting,children:[u,`, `,te,`!`]}),i.role?(0,t.jsx)(`span`,{className:z.role,children:i.role}):null,k.length>0?(0,t.jsx)(`div`,{className:z.pills,children:k.map(e=>{let n=(0,t.jsxs)(t.Fragment,{children:[e.icon?(0,t.jsx)(`span`,{className:z.actionIcon,"aria-hidden":`true`,children:e.icon}):null,(0,t.jsx)(`span`,{children:e.label}),e.external?(0,t.jsx)(G,{}):null]});return e.href&&!e.disabled?e.external?(0,t.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noreferrer`,title:e.title,className:z.pill,onClick:()=>O(),children:n},e.id):(0,t.jsx)(`span`,{className:z.contents,children:d({href:e.href,className:z.pill??``,title:e.title,onClick:()=>O(),children:n})},e.id):(0,t.jsx)(`button`,{type:`button`,disabled:e.disabled,title:e.title,className:z.pill,onClick:()=>j(e),children:n},e.id)})}):null]}),i.details?.length?(0,t.jsx)(`dl`,{className:z.details,children:i.details.map(e=>(0,t.jsxs)(`div`,{className:z.detailRow,children:[(0,t.jsx)(`dt`,{children:e.label}),(0,t.jsx)(`dd`,{children:e.value})]},e.label))}):null,a.length>0?(0,t.jsxs)(`section`,{className:z.apps,"aria-label":l,children:[(0,t.jsx)(`p`,{className:z.appsTitle,children:l}),(0,t.jsx)(`div`,{className:z.grid,children:a.map(e=>{let n=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`span`,{className:r(z.tile,W[e.tone??`primary`]),"aria-hidden":`true`,children:e.icon}),(0,t.jsx)(`span`,{className:z.appName,children:e.name})]});return e.current?(0,t.jsx)(`span`,{className:z.contents,children:d({href:e.url,className:z.app??``,title:e.description,onClick:()=>O(),children:n})},e.id):(0,t.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,title:e.description,className:z.app,children:n},e.id)})})]}):null,A.length>0?(0,t.jsx)(`div`,{className:z.danger,children:A.map(e=>(0,t.jsxs)(`button`,{type:`button`,disabled:e.disabled,title:e.title,className:z.dangerAction,onClick:()=>j(e),children:[e.icon?(0,t.jsx)(`span`,{className:z.actionIcon,"aria-hidden":`true`,children:e.icon}):null,e.label]},e.id))}):null]});return(0,t.jsxs)(`div`,{ref:g,className:r(z.root,p&&z.rootSidebar,f),children:[(0,t.jsxs)(`button`,{ref:v,type:`button`,"aria-label":`Account: ${i.name}`,"aria-haspopup":`dialog`,"aria-expanded":b,"aria-controls":b?m:void 0,className:r(p?z.triggerSidebar:z.triggerHeader,p&&c&&z.collapsed,b&&z.triggerOpen),onClick:()=>b?O():D(),children:[(0,t.jsx)(R,{name:i.name,src:i.avatarUrl,size:`sm`,tone:`primary`,"aria-hidden":`true`}),p&&!c?(0,t.jsxs)(`span`,{className:z.identityText,children:[(0,t.jsx)(`span`,{className:z.triggerName,children:i.name}),i.role?(0,t.jsx)(`span`,{className:z.triggerRole,children:i.role}):null]}):null]}),b&&S?(0,n.createPortal)(M,document.body):null]})}var q={root:`cui-Typography-module__root--PebSf`,h1:`cui-Typography-module__h1--pJqnF`,h2:`cui-Typography-module__h2--8YqGv`,h3:`cui-Typography-module__h3--DT-DL`,h4:`cui-Typography-module__h4--UsocF`,body:`cui-Typography-module__body--s-YlR`,bodySm:`cui-Typography-module__bodySm--RPpZ5`,caption:`cui-Typography-module__caption--K-n4O`,label:`cui-Typography-module__label---CGg4`,"color-default":`cui-Typography-module__color-default--U4Xg0`,"color-secondary":`cui-Typography-module__color-secondary--5wnuV`,"color-muted":`cui-Typography-module__color-muted--GLLRl`,"color-disabled":`cui-Typography-module__color-disabled--bBBVc`,"color-primary":`cui-Typography-module__color-primary--B-bVH`,"color-success":`cui-Typography-module__color-success--hXHcS`,"color-warning":`cui-Typography-module__color-warning---oLwA`,"color-danger":`cui-Typography-module__color-danger--sStkk`,"color-info":`cui-Typography-module__color-info--4uSt5`,"weight-normal":`cui-Typography-module__weight-normal--fFcMp`,"weight-medium":`cui-Typography-module__weight-medium--5RtTe`,"weight-semibold":`cui-Typography-module__weight-semibold--TDOgV`,"weight-bold":`cui-Typography-module__weight-bold--YahG3`,"align-start":`cui-Typography-module__align-start--mX51I`,"align-center":`cui-Typography-module__align-center--2Ng2u`,"align-end":`cui-Typography-module__align-end--6LwA3`,truncate:`cui-Typography-module__truncate--3B0O4`},J={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,body:`p`,"body-sm":`p`,caption:`span`,label:`span`},Y={h1:q.h1,h2:q.h2,h3:q.h3,h4:q.h4,body:q.body,"body-sm":q.bodySm,caption:q.caption,label:q.label};function X({variant:n=`body`,as:i,color:a=`default`,weight:o,align:s,truncate:c=!1,className:l,...u}){return h()?(0,e.createElement)(i??J[n],{...u,className:r(q.root,Y[n],q[`color-${a}`],o&&q[`weight-${o}`],s&&q[`align-${s}`],c&&q.truncate,l)}):(0,t.jsx)(_,{})}var re={root:`cui-ThemeProvider-module__root--2DEGi`},Z=(0,e.createContext)(null);function Q({children:n,theme:i,defaultTheme:a=`light`,onThemeChange:o,licenseKey:s,className:c,...l}){let[d,f]=(0,e.useState)(a),p=i??d,m=(0,e.useCallback)(e=>{i===void 0&&f(e),o?.(e)},[i,o]),h=(0,e.useMemo)(()=>({theme:p,setTheme:m}),[p,m]),g=(0,e.useContext)(u);return(0,t.jsx)(Z.Provider,{value:h,children:(0,t.jsx)(u.Provider,{value:s??g,children:(0,t.jsx)(`div`,{...l,"data-theme":p,className:r(re.root,c),children:n})})})}function ie(){let t=(0,e.useContext)(Z);if(!t)throw Error(`useTheme must be used within a <ThemeProvider>.`);return t}exports.AccountPanel=K,exports.Avatar=R,exports.Button=y,exports.FormField=C,exports.FormSection=N,exports.Input=E,exports.Select=j,exports.ThemeProvider=Q,exports.Typography=X,exports.cn=r,exports.getInitials=I,exports.setLicenseKey=d,exports.useFormFieldControl=x,exports.useTheme=ie;
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react"),t=require("react/jsx-runtime"),n=require("react-dom");function r(...e){return e.filter(Boolean).join(` `)}var i=`client-ui:`;function a(e){let t=i+e.trim(),n=3735928559,r=1103547991;for(let e=0;e<t.length;e++){let i=t.charCodeAt(e);n=Math.imul(n^i,2654435761),r=Math.imul(r^i,1597334677)}return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(16).padStart(14,`0`)}var o=[`1cd9d9bd20471f`],s=``,c=new Set,l=!1,u=(0,e.createContext)(null);function d(e){s=e,l=!1,c.forEach(e=>e())}function f(e){return!e||!e.trim()?!1:o.includes(a(e))}var p=e=>(c.add(e),()=>{c.delete(e)}),m=()=>s;function h(){let t=(0,e.useContext)(u),n=(0,e.useSyncExternalStore)(p,m,m),r=f(t??n);return(0,e.useEffect)(()=>{r||l||(l=!0,console.error(`[client-ui] Missing or invalid license key. Components are disabled. Pass licenseKey to <ThemeProvider> or call setLicenseKey() once at app start.`))},[r]),r}var g={root:`cui-UnlicensedNotice-module__root--FdnRG`};function _(){return(0,t.jsx)(`span`,{role:`alert`,className:g.root,children:`client-ui: missing or invalid license key`})}var v={button:`cui-Button-module__button--2ZuB7`,sm:`cui-Button-module__sm--NhG0g`,md:`cui-Button-module__md--hH4h3`,lg:`cui-Button-module__lg--2plQf`,fullWidth:`cui-Button-module__fullWidth--36oJT`,primary:`cui-Button-module__primary--s1sM6`,secondary:`cui-Button-module__secondary--R0waJ`,outline:`cui-Button-module__outline--F5jq-`,ghost:`cui-Button-module__ghost--1KINV`,danger:`cui-Button-module__danger--V4fX8`,link:`cui-Button-module__link--Zt5hw`,spinner:`cui-Button-module__spinner--ZExvW`,spin:`cui-Button-module__spin--JvkZu`},y=(0,e.forwardRef)(function({variant:e=`primary`,size:n=`md`,loading:i=!1,fullWidth:a=!1,type:o=`button`,disabled:s,className:c,children:l,...u},d){return h()?(0,t.jsxs)(`button`,{...u,ref:d,type:o,disabled:s||i,"aria-busy":i||void 0,"data-variant":e,"data-size":n,className:r(v.button,v[e],v[n],a&&v.fullWidth,c),children:[i?(0,t.jsx)(`span`,{className:v.spinner,"aria-hidden":`true`}):null,l]}):(0,t.jsx)(_,{})}),b=(0,e.createContext)(null);function x(t){let n=(0,e.useContext)(b),r=(0,e.useId)(),i=n?.id??t.id??r,a=!!(t.required??n?.required),o=!!(t.disabled??n?.disabled),s=!!t.error||!!n?.invalid,c=[t[`aria-describedby`],n?.describedById].filter(Boolean).join(` `)||void 0;return{id:i,required:a,disabled:o,invalid:s,labelId:n?.labelId,"aria-invalid":s?!0:void 0,"aria-describedby":c}}var S={root:`cui-FormField-module__root--QkVj-`,label:`cui-FormField-module__label--98wVM`,labelDisabled:`cui-FormField-module__labelDisabled--I5V6c`,required:`cui-FormField-module__required--Erm4t`,message:`cui-FormField-module__message--FUq3k`,helper:`cui-FormField-module__helper--JuBZ6`,error:`cui-FormField-module__error--4SHKr`};function C({children:n,label:i,required:a=!1,helperText:o,error:s,disabled:c=!1,id:l,className:u,...d}){let f=(0,e.useId)(),p=l??f,m=!!s,g=m?`${p}-error`:o?`${p}-helper`:void 0,v=(0,e.useMemo)(()=>({id:p,describedById:g,labelId:i?`${p}-label`:void 0,required:a,disabled:c,invalid:m}),[p,g,i,a,c,m]);return h()?(0,t.jsx)(b.Provider,{value:v,children:(0,t.jsxs)(`div`,{...d,className:r(S.root,u),children:[i?(0,t.jsxs)(`label`,{id:`${p}-label`,htmlFor:p,className:r(S.label,c&&S.labelDisabled),children:[i,a?(0,t.jsx)(`span`,{className:S.required,"aria-hidden":`true`,children:`*`}):null]}):null,n,m?(0,t.jsx)(`p`,{id:g,className:r(S.message,S.error),role:`alert`,children:s}):o?(0,t.jsx)(`p`,{id:g,className:r(S.message,S.helper),children:o}):null]})}):(0,t.jsx)(_,{})}var w={control:`cui-Input-module__control--e3jPo`,disabled:`cui-Input-module__disabled--nzcnQ`,invalid:`cui-Input-module__invalid--VyrnA`,sm:`cui-Input-module__sm--SCPkT`,md:`cui-Input-module__md--weRbk`,lg:`cui-Input-module__lg--ic8a4`,input:`cui-Input-module__input--WjT81`,affix:`cui-Input-module__affix--zz0Xe`,readOnly:`cui-Input-module__readOnly--0ag-W`},T=(0,e.forwardRef)(function({id:e,required:n,disabled:i,error:a,"aria-describedby":o,prefix:s,suffix:c,size:l=`md`,readOnly:u,className:d,...f},p){let m=x({id:e,required:n,disabled:i,error:a,"aria-describedby":o});return(0,t.jsxs)(`div`,{className:r(w.control,w[l],m.invalid&&w.invalid,m.disabled&&w.disabled,u&&w.readOnly,d),children:[s?(0,t.jsx)(`span`,{className:w.affix,children:s}):null,(0,t.jsx)(`input`,{...f,ref:p,id:m.id,required:m.required,disabled:m.disabled,readOnly:u,"aria-invalid":m[`aria-invalid`],"aria-describedby":m[`aria-describedby`],className:w.input}),c?(0,t.jsx)(`span`,{className:w.affix,children:c}):null]})}),E=(0,e.forwardRef)(function({label:e,helperText:n,...r},i){return h()?!e&&!n&&!r.error?(0,t.jsx)(T,{...r,ref:i}):(0,t.jsx)(C,{id:r.id,label:e,helperText:n,error:r.error,required:r.required,disabled:r.disabled,children:(0,t.jsx)(T,{...r,ref:i})}):(0,t.jsx)(_,{})}),D={control:`cui-Select-module__control--OqOfI`,trigger:`cui-Select-module__trigger--ECKfC`,open:`cui-Select-module__open--PADOK`,value:`cui-Select-module__value--7CDNo`,placeholder:`cui-Select-module__placeholder--yUgBU`,sm:`cui-Select-module__sm--TPJwf`,md:`cui-Select-module__md--nOV6u`,lg:`cui-Select-module__lg--NGPOa`,chevron:`cui-Select-module__chevron--PLUsh`,clear:`cui-Select-module__clear--2OgzI`,invalid:`cui-Select-module__invalid--opDrx`,disabled:`cui-Select-module__disabled--8YgjS`,popover:`cui-Select-module__popover--VnWAu`,"cui-select-in":`cui-Select-module__cui-select-in--VGYFd`,top:`cui-Select-module__top--v5FSw`,"cui-select-in-top":`cui-Select-module__cui-select-in-top--fwYA4`,searchWrap:`cui-Select-module__searchWrap--YBOFZ`,search:`cui-Select-module__search--FrUXx`,list:`cui-Select-module__list--CI08p`,option:`cui-Select-module__option--Hvo8n`,optionLabel:`cui-Select-module__optionLabel--FGiUZ`,selected:`cui-Select-module__selected--8A13A`,highlighted:`cui-Select-module__highlighted--YIVPT`,optionDisabled:`cui-Select-module__optionDisabled--FhDw-`,check:`cui-Select-module__check--RxZrV`,empty:`cui-Select-module__empty--KmYrm`,spinner:`cui-Select-module__spinner--OxCAP`,"cui-select-spin":`cui-Select-module__cui-select-spin--MQqaM`},O=4,ee=280,te=500,ne=e=>Array.isArray(e)?e:e?[e]:[],k=(0,e.forwardRef)(function({options:i,placeholder:a=`Select an option`,size:o=`md`,multiple:s=!1,clearable:c=!0,onSearch:l,loading:u=!1,emptyMessage:d=`No options found.`,listClassName:f,name:p,value:m,defaultValue:h,onChange:g,id:_,required:v,disabled:y,error:b,"aria-describedby":S,className:C,onKeyDown:w,onClick:T,...E},k){let A=x({id:_,required:v,disabled:y,error:b,"aria-describedby":S}),j=(0,e.useId)(),M=`${j}-list`,re=`${j}-value`,N=e=>`${j}-option-${e}`,P=(0,e.useRef)(null),F=(0,e.useRef)(null),ie=(0,e.useRef)(null),I=(0,e.useRef)(null),ae=(0,e.useRef)(null),[L,R]=(0,e.useState)(!1),[z,oe]=(0,e.useState)(null),[B,V]=(0,e.useState)(``),[H,U]=(0,e.useState)(!1),[W,G]=(0,e.useState)(0),K=m!==void 0,[q,se]=(0,e.useState)(()=>ne(h)),J=K?ne(m):q,ce=(0,e.useCallback)(e=>{F.current=e,typeof k==`function`?k(e):k&&(k.current=e)},[k]),Y=(0,e.useMemo)(()=>{if(l||!B)return i;let e=B.toLowerCase();return i.filter(t=>t.label.toLowerCase().includes(e))},[i,B,l]),le=e=>{K||se(e),g?.(s?e:e[0]??``)},ue=e=>{let t=e.findIndex(e=>!e.disabled);return t===-1?0:t},X=(0,e.useCallback)(()=>{let e=P.current;if(!e)return;let t=e.getBoundingClientRect(),n=window.innerHeight-t.bottom,r=n<ee&&t.top>n?`top`:`bottom`,i={left:t.left,width:t.width};r===`bottom`?i.top=t.bottom+O:i.bottom=window.innerHeight-t.top+O,oe({style:i,placement:r})},[]),de=()=>{if(A.disabled)return;X(),V(``),U(!1);let e=i.findIndex(e=>J.includes(e.value));G(e===-1?ue(i):e),R(!0)},Z=(e=!0)=>{R(!1),e&&F.current?.focus({preventScroll:!0})},fe=e=>{e.disabled||(s?le(J.includes(e.value)?J.filter(t=>t!==e.value):[...J,e.value]):(le([e.value]),Z()),V(``),U(!1))},pe=e=>{if(!Y.length)return;let t=W;for(let n=0;n<Y.length&&(t=(t+e+Y.length)%Y.length,Y[t]?.disabled);n++);G(t)};(0,e.useEffect)(()=>{L&&I.current?.focus({preventScroll:!0})},[L]),(0,e.useEffect)(()=>{H&&ae.current?.focus({preventScroll:!0})},[H]);let me=(0,e.useRef)(l);(0,e.useEffect)(()=>{me.current=l},[l]),(0,e.useEffect)(()=>{if(!L||!me.current)return;let e=setTimeout(()=>me.current?.(B),te);return()=>clearTimeout(e)},[B,L]),(0,e.useEffect)(()=>{if(!L)return;let e=()=>requestAnimationFrame(X);return window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[L,X]),(0,e.useEffect)(()=>{if(!L)return;let e=e=>{let t=e.target;!P.current?.contains(t)&&!ie.current?.contains(t)&&R(!1)};return document.addEventListener(`mousedown`,e,!0),()=>document.removeEventListener(`mousedown`,e,!0)},[L]),(0,e.useEffect)(()=>{if(!L)return;let e=I.current,t=e?.children[W];e&&t&&(t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:t.offsetTop+t.offsetHeight>e.scrollTop+e.clientHeight&&(e.scrollTop=t.offsetTop+t.offsetHeight-e.clientHeight))},[W,L]);let he=e=>{w?.(e),!e.defaultPrevented&&!L&&(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),de())},ge=e=>{switch(e.key){case`Escape`:e.preventDefault(),e.stopPropagation(),Z();return;case`ArrowDown`:e.preventDefault(),pe(1);return;case`ArrowUp`:e.preventDefault(),pe(-1);return;case`Home`:if(H)return;e.preventDefault(),G(ue(Y));return;case`End`:if(H)return;e.preventDefault(),G(Math.max(Y.length-1,0));return;case`Enter`:e.preventDefault(),e.stopPropagation(),Y[W]&&fe(Y[W]);return;case`Tab`:R(!1),F.current?.focus({preventScroll:!0});return;case` `:if(H)return;e.preventDefault(),Y[W]&&fe(Y[W]);return}let t=e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey;!H&&t&&(e.preventDefault(),V(e.key),G(0),U(!0))},Q=i.filter(e=>J.includes(e.value)),_e=J.length>0,ve=J.length>1?`${J.length} selected`:Q[0]?.label??a,ye=c&&_e&&!A.disabled,be=L?P.current?.closest(`[data-theme]`)?.getAttribute(`data-theme`):void 0,xe=L&&Y[W]?N(W):void 0,Se=A.labelId?`${A.labelId} ${re}`:void 0;return(0,t.jsxs)(`div`,{ref:P,className:r(D.control,D[o],A.invalid&&D.invalid,A.disabled&&D.disabled,L&&D.open,C),children:[(0,t.jsx)(`button`,{...E,ref:ce,id:A.id,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":L,"aria-controls":L?M:void 0,"aria-labelledby":Se,"aria-invalid":A[`aria-invalid`],"aria-describedby":A[`aria-describedby`],"aria-required":A.required||void 0,disabled:A.disabled,className:r(D.trigger,!Q.length&&D.placeholder),onClick:e=>{T?.(e),!e.defaultPrevented&&(L?Z(!1):de())},onKeyDown:he,children:(0,t.jsx)(`span`,{id:re,className:D.value,children:ve})}),ye?(0,t.jsx)(`button`,{type:`button`,className:D.clear,"aria-label":`Clear selection`,onClick:()=>{le([]),F.current?.focus({preventScroll:!0})},children:(0,t.jsx)(`svg`,{viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M6 6l8 8M14 6l-8 8`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`})})}):null,(0,t.jsx)(`svg`,{className:D.chevron,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M5 7.5l5 5 5-5`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})}),p?J.length>0?J.map(e=>(0,t.jsx)(`input`,{type:`hidden`,name:p,value:e},e)):!s&&(0,t.jsx)(`input`,{type:`hidden`,name:p,value:``}):null,L&&z?(0,n.createPortal)((0,t.jsxs)(`div`,{ref:ie,className:r(D.popover,D[z.placement]),style:z.style,"data-theme":be??void 0,onKeyDown:ge,children:[H?(0,t.jsx)(`div`,{className:D.searchWrap,children:(0,t.jsx)(`input`,{ref:ae,type:`text`,className:D.search,placeholder:`Search options...`,"aria-label":`Search options`,"aria-controls":M,"aria-activedescendant":xe,autoComplete:`off`,value:B,onChange:e=>{let t=e.target.value;V(t),G(0),t===``&&(U(!1),I.current?.focus({preventScroll:!0}))}})}):null,(0,t.jsx)(`ul`,{ref:I,id:M,role:`listbox`,tabIndex:-1,"aria-labelledby":Se,"aria-multiselectable":s||void 0,"aria-activedescendant":H?void 0:xe,className:r(D.list,f),children:Y.length>0?Y.map((e,n)=>{let i=J.includes(e.value);return(0,t.jsxs)(`li`,{id:N(n),role:`option`,"aria-selected":i,"aria-disabled":e.disabled||void 0,className:r(D.option,i&&D.selected,n===W&&D.highlighted,e.disabled&&D.optionDisabled),onMouseEnter:()=>!e.disabled&&G(n),onClick:()=>fe(e),children:[(0,t.jsx)(`span`,{className:D.optionLabel,children:e.label}),i?(0,t.jsx)(`svg`,{className:D.check,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M4.5 10.5l3.5 3.5 7.5-8`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})}):null]},e.value)}):(0,t.jsx)(`li`,{className:D.empty,role:`presentation`,children:u?(0,t.jsx)(`span`,{className:D.spinner,role:`status`,"aria-label":`Loading`}):d})})]}),document.body):null]})}),A=(0,e.forwardRef)(function({label:e,helperText:n,...r},i){if(!h())return(0,t.jsx)(_,{});let a=r;return!e&&!n&&!r.error?(0,t.jsx)(k,{...a,ref:i}):(0,t.jsx)(C,{id:r.id,label:e,helperText:n,error:r.error,required:r.required,disabled:r.disabled,children:(0,t.jsx)(k,{...a,ref:i})})}),j={textarea:`cui-Textarea-module__textarea--Z-y6g`,invalid:`cui-Textarea-module__invalid--E88X-`,"resize-none":`cui-Textarea-module__resize-none---T499`,"resize-vertical":`cui-Textarea-module__resize-vertical--P4hRY`,"resize-horizontal":`cui-Textarea-module__resize-horizontal--htj2f`,"resize-both":`cui-Textarea-module__resize-both--wR4os`,readOnly:`cui-Textarea-module__readOnly--mI513`},M=(0,e.forwardRef)(function({id:e,required:n,disabled:i,error:a,"aria-describedby":o,rows:s=3,resize:c=`vertical`,readOnly:l,className:u,...d},f){let p=x({id:e,required:n,disabled:i,error:a,"aria-describedby":o});return(0,t.jsx)(`textarea`,{...d,ref:f,id:p.id,rows:s,required:p.required,disabled:p.disabled,readOnly:l,"aria-invalid":p[`aria-invalid`],"aria-describedby":p[`aria-describedby`],className:r(j.textarea,j[`resize-${c}`],p.invalid&&j.invalid,l&&j.readOnly,u)})}),re=(0,e.forwardRef)(function({label:e,helperText:n,...r},i){return h()?!e&&!n&&!r.error?(0,t.jsx)(M,{...r,ref:i}):(0,t.jsx)(C,{id:r.id,label:e,helperText:n,error:r.error,required:r.required,disabled:r.disabled,children:(0,t.jsx)(M,{...r,ref:i})}):(0,t.jsx)(_,{})}),N={root:`cui-Checkbox-module__root--mY3qk`,label:`cui-Checkbox-module__label--cwRtI`,disabled:`cui-Checkbox-module__disabled--x7-eg`,input:`cui-Checkbox-module__input--2kt-h`,box:`cui-Checkbox-module__box--OCPee`,check:`cui-Checkbox-module__check--4HYWn`,dash:`cui-Checkbox-module__dash--5Dkdl`,invalid:`cui-Checkbox-module__invalid---Cs7q`,text:`cui-Checkbox-module__text--EmtRj`,required:`cui-Checkbox-module__required--t9DLN`,message:`cui-Checkbox-module__message--ZPKsV`,helper:`cui-Checkbox-module__helper--16DrX`,error:`cui-Checkbox-module__error--E-bmD`},P=(0,e.forwardRef)(function({label:n,helperText:i,error:a,indeterminate:o=!1,id:s,required:c,disabled:l,"aria-describedby":u,className:d,...f},p){let m=(0,e.useRef)(null),g=(0,e.useCallback)(e=>{m.current=e,typeof p==`function`?p(e):p&&(p.current=e)},[p]);(0,e.useEffect)(()=>{m.current&&(m.current.indeterminate=o)},[o]);let v=x({id:s,required:c,disabled:l,error:a,"aria-describedby":u});if(!h())return(0,t.jsx)(_,{});let y=`${v.id}-message`,b=!!(a||i),S=[v[`aria-describedby`],b?y:void 0].filter(Boolean).join(` `)||void 0;return(0,t.jsxs)(`div`,{className:r(N.root,d),children:[(0,t.jsxs)(`label`,{className:r(N.label,v.disabled&&N.disabled),children:[(0,t.jsx)(`input`,{...f,ref:g,id:v.id,type:`checkbox`,required:v.required,disabled:v.disabled,"aria-invalid":v[`aria-invalid`],"aria-describedby":S,className:r(N.input,v.invalid&&N.invalid)}),(0,t.jsxs)(`span`,{className:N.box,"aria-hidden":`true`,children:[(0,t.jsx)(`svg`,{className:N.check,viewBox:`0 0 20 20`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M4.5 10.5l3.5 3.5 7.5-8`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),(0,t.jsx)(`svg`,{className:N.dash,viewBox:`0 0 20 20`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M5 10h10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`})})]}),n?(0,t.jsxs)(`span`,{className:N.text,children:[n,v.required?(0,t.jsx)(`span`,{className:N.required,"aria-hidden":`true`,children:`*`}):null]}):null]}),b?(0,t.jsx)(`p`,{id:y,className:r(N.message,a?N.error:N.helper),role:a?`alert`:void 0,children:a||i}):null]})}),F={root:`cui-Switch-module__root--Y5Ydi`,label:`cui-Switch-module__label--LrH7V`,disabled:`cui-Switch-module__disabled--2aZ0V`,input:`cui-Switch-module__input--5BPNu`,track:`cui-Switch-module__track--7ObdZ`,thumb:`cui-Switch-module__thumb---FTeK`,invalid:`cui-Switch-module__invalid--4QBSq`,required:`cui-Switch-module__required--cVb-Z`,message:`cui-Switch-module__message--fA-a5`,helper:`cui-Switch-module__helper--gZCYS`,error:`cui-Switch-module__error--OSPrU`},ie=(0,e.forwardRef)(function({label:e,helperText:n,error:i,id:a,required:o,disabled:s,"aria-describedby":c,className:l,...u},d){let f=x({id:a,required:o,disabled:s,error:i,"aria-describedby":c});if(!h())return(0,t.jsx)(_,{});let p=`${f.id}-message`,m=!!(i||n),g=[f[`aria-describedby`],m?p:void 0].filter(Boolean).join(` `)||void 0;return(0,t.jsxs)(`div`,{className:r(F.root,l),children:[(0,t.jsxs)(`label`,{className:r(F.label,f.disabled&&F.disabled),children:[(0,t.jsx)(`input`,{...u,ref:d,id:f.id,type:`checkbox`,role:`switch`,required:f.required,disabled:f.disabled,"aria-invalid":f[`aria-invalid`],"aria-describedby":g,className:r(F.input,f.invalid&&F.invalid)}),(0,t.jsx)(`span`,{className:F.track,"aria-hidden":`true`,children:(0,t.jsx)(`span`,{className:F.thumb})}),e?(0,t.jsxs)(`span`,{className:F.text,children:[e,f.required?(0,t.jsx)(`span`,{className:F.required,"aria-hidden":`true`,children:`*`}):null]}):null]}),m?(0,t.jsx)(`p`,{id:p,className:r(F.message,i?F.error:F.helper),role:i?`alert`:void 0,children:i||n}):null]})}),I={root:`cui-Badge-module__root--5osNT`,dot:`cui-Badge-module__dot--i0c-G`,neutral:`cui-Badge-module__neutral--lulSm`,primary:`cui-Badge-module__primary--S0WCS`,success:`cui-Badge-module__success--u9JiS`,warning:`cui-Badge-module__warning--nsGp-`,danger:`cui-Badge-module__danger--PD2hz`,info:`cui-Badge-module__info--na6DQ`};function ae({color:e=`neutral`,dot:n=!1,className:i,children:a,...o}){return h()?(0,t.jsxs)(`span`,{...o,className:r(I.root,I[e],i),children:[n?(0,t.jsx)(`span`,{className:I.dot,"aria-hidden":`true`}):null,a]}):(0,t.jsx)(_,{})}var L={root:`cui-Skeleton-module__root--qaX19`,"cui-skeleton-pulse":`cui-Skeleton-module__cui-skeleton-pulse--HzSoY`,rect:`cui-Skeleton-module__rect--do1uR`,text:`cui-Skeleton-module__text---A8IF`,circle:`cui-Skeleton-module__circle--DYcl8`};function R({variant:e=`rect`,width:n,height:i,className:a,style:o,...s}){if(!h())return(0,t.jsx)(_,{});let c={width:n,height:i??(e===`circle`?n:void 0)};return(0,t.jsx)(`span`,{"aria-hidden":`true`,...s,className:r(L.root,L[e],a),style:{...c,...o}})}var z={root:`cui-Tabs-module__root---VKVI`,list:`cui-Tabs-module__list--qRVME`,tab:`cui-Tabs-module__tab--IdDYc`,selected:`cui-Tabs-module__selected--TxfYv`,icon:`cui-Tabs-module__icon--LYFix`,panel:`cui-Tabs-module__panel--08i9c`};function oe({items:n,value:i,defaultValue:a,onValueChange:o,className:s,"aria-label":c,...l}){let u=(0,e.useId)(),d=(0,e.useRef)([]),f=n.find(e=>!e.disabled)?.value,[p,m]=(0,e.useState)(a??f);if(!h())return(0,t.jsx)(_,{});let g=i??p,v=n.findIndex(e=>e.value===g),y=n[v],b=e=>{i===void 0&&m(e),o?.(e)},x=(e,t)=>{let r=n.length,i=t===`first`?-1:t===`last`?r:e,a=t===`first`?1:t===`last`?-1:t;for(let e=0;e<r;e++){i=(i+a+r)%r;let e=n[i];if(e&&!e.disabled){b(e.value),d.current[i]?.focus();return}}},S=(e,t)=>{let n=getComputedStyle(e.currentTarget).direction===`rtl`,r=n?`ArrowLeft`:`ArrowRight`,i=n?`ArrowRight`:`ArrowLeft`;if(e.key===r)x(t,1);else if(e.key===i)x(t,-1);else if(e.key===`Home`)x(t,`first`);else if(e.key===`End`)x(t,`last`);else return;e.preventDefault()},C=e=>`${u}-tab-${e}`,w=e=>`${u}-panel-${e}`;return(0,t.jsxs)(`div`,{...l,className:r(z.root,s),children:[(0,t.jsx)(`div`,{role:`tablist`,"aria-label":c,className:z.list,children:n.map((e,n)=>{let i=n===v;return(0,t.jsxs)(`button`,{ref:e=>{d.current[n]=e},id:C(n),type:`button`,role:`tab`,"aria-selected":i,"aria-controls":i&&e.content!==void 0?w(n):void 0,tabIndex:i?0:-1,disabled:e.disabled,className:r(z.tab,i&&z.selected),onClick:()=>b(e.value),onKeyDown:e=>S(e,n),children:[e.icon?(0,t.jsx)(`span`,{className:z.icon,"aria-hidden":`true`,children:e.icon}):null,e.label]},e.value)})}),y&&y.content!==void 0?(0,t.jsx)(`div`,{role:`tabpanel`,id:w(v),"aria-labelledby":C(v),tabIndex:0,className:z.panel,children:y.content}):null]})}var B={root:`cui-FormSection-module__root--M70AE`,header:`cui-FormSection-module__header--xTDAF`,heading:`cui-FormSection-module__heading--QU0-u`,title:`cui-FormSection-module__title--cw5qX`,subtitle:`cui-FormSection-module__subtitle--cIB53`,divider:`cui-FormSection-module__divider--954nY`,fields:`cui-FormSection-module__fields--ALVzc`,columns2:`cui-FormSection-module__columns2--IgG6n`,columns3:`cui-FormSection-module__columns3--q-4XF`};function V({title:n,subtitle:i,children:a,columns:o=1,headingLevel:s=3,className:c,...l}){let u=(0,e.useId)(),d=!!(n||i);return h()?(0,t.jsxs)(`section`,{...l,"aria-labelledby":n?u:l[`aria-labelledby`],className:r(B.root,c),children:[d?(0,t.jsxs)(`div`,{className:B.header,children:[(0,t.jsxs)(`div`,{className:B.heading,children:[n?(0,e.createElement)(`h${s}`,{id:u,className:B.title},n):null,i?(0,t.jsx)(`p`,{className:B.subtitle,children:i}):null]}),(0,t.jsx)(`span`,{className:B.divider,"aria-hidden":`true`})]}):null,(0,t.jsx)(`div`,{className:r(B.fields,B[`columns${o}`]),children:a})]}):(0,t.jsx)(_,{})}var H={root:`cui-Avatar-module__root--fXu-J`,xs:`cui-Avatar-module__xs--oSaLL`,sm:`cui-Avatar-module__sm--sZ2bk`,md:`cui-Avatar-module__md--Fdkbz`,lg:`cui-Avatar-module__lg--pTTUA`,xl:`cui-Avatar-module__xl--mW58F`,image:`cui-Avatar-module__image--ieqGp`,fallback:`cui-Avatar-module__fallback--BWBXY`,tone0:`cui-Avatar-module__tone0--NoD23`,tone1:`cui-Avatar-module__tone1--xFqRb`,tone2:`cui-Avatar-module__tone2--nxsRe`,tone3:`cui-Avatar-module__tone3--goa6z`,tone4:`cui-Avatar-module__tone4--g6kRy`,primary:`cui-Avatar-module__primary--HKPgn`},U=[H.tone0,H.tone1,H.tone2,H.tone3,H.tone4];function W(e){let t=(e??``).trim().split(/\s+/).filter(Boolean);return t.length===0?``:((t[0]?.[0]??``)+(t.length>1?t[t.length-1]?.[0]??``:``)).toUpperCase()}function G(e){let t=e??``,n=0;for(let e=0;e<t.length;e++)n=n*31+t.charCodeAt(e)>>>0;return U[n%U.length]}function K({name:n,src:i,size:a=`md`,tone:o=`auto`,className:s,...c}){let[l,u]=(0,e.useState)(null),d=!!i&&i!==l,f=W(n);return h()?(0,t.jsx)(`span`,{role:c[`aria-hidden`]?void 0:`img`,"aria-label":c[`aria-hidden`]||!n?void 0:n,...c,className:r(H.root,H[a],!d&&(o===`primary`?H.primary:G(n)),s),children:d?(0,t.jsx)(`img`,{className:H.image,src:i??void 0,alt:``,onError:()=>u(i??null)}):f?(0,t.jsx)(`span`,{"aria-hidden":`true`,children:f}):(0,t.jsxs)(`svg`,{className:H.fallback,viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,children:[(0,t.jsx)(`circle`,{cx:`12`,cy:`8`,r:`4`,fill:`currentColor`}),(0,t.jsx)(`path`,{d:`M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z`,fill:`currentColor`})]})}):(0,t.jsx)(_,{})}var q={root:`cui-AccountPanel-module__root--Twbp0`,rootSidebar:`cui-AccountPanel-module__rootSidebar--OMB7L`,contents:`cui-AccountPanel-module__contents--OFL-r`,triggerHeader:`cui-AccountPanel-module__triggerHeader--ib8Bi`,triggerOpen:`cui-AccountPanel-module__triggerOpen--NbT3m`,triggerSidebar:`cui-AccountPanel-module__triggerSidebar--FeaXc`,collapsed:`cui-AccountPanel-module__collapsed--c8z-m`,identityText:`cui-AccountPanel-module__identityText--eziAT`,triggerName:`cui-AccountPanel-module__triggerName--f56mY`,triggerRole:`cui-AccountPanel-module__triggerRole--KpeeO`,panel:`cui-AccountPanel-module__panel--PinlA`,"cui-account-in":`cui-AccountPanel-module__cui-account-in--QVNEb`,panelSidebar:`cui-AccountPanel-module__panelSidebar--EuGZh`,identity:`cui-AccountPanel-module__identity--lZRA7`,email:`cui-AccountPanel-module__email--Ze3OW`,avatarRing:`cui-AccountPanel-module__avatarRing--FQrz4`,avatarInner:`cui-AccountPanel-module__avatarInner--5ZfEz`,greeting:`cui-AccountPanel-module__greeting--am-j3`,role:`cui-AccountPanel-module__role--E9lrf`,pills:`cui-AccountPanel-module__pills--5gSce`,pill:`cui-AccountPanel-module__pill--vK7aC`,actionIcon:`cui-AccountPanel-module__actionIcon--oReIE`,externalIcon:`cui-AccountPanel-module__externalIcon--dJc16`,details:`cui-AccountPanel-module__details--MGxxd`,detailRow:`cui-AccountPanel-module__detailRow--VzvVD`,apps:`cui-AccountPanel-module__apps--KRMBA`,appsTitle:`cui-AccountPanel-module__appsTitle--mcvnH`,grid:`cui-AccountPanel-module__grid--KYmem`,app:`cui-AccountPanel-module__app--Dj--X`,tile:`cui-AccountPanel-module__tile--YKNda`,tonePrimary:`cui-AccountPanel-module__tonePrimary--lAexZ`,toneInfo:`cui-AccountPanel-module__toneInfo--yb-xj`,toneSuccess:`cui-AccountPanel-module__toneSuccess--XIJic`,toneWarning:`cui-AccountPanel-module__toneWarning--oz2d6`,toneDanger:`cui-AccountPanel-module__toneDanger--MP2rJ`,toneNeutral:`cui-AccountPanel-module__toneNeutral--diEHz`,appName:`cui-AccountPanel-module__appName--MJc25`,danger:`cui-AccountPanel-module__danger--t0t-L`,dangerAction:`cui-AccountPanel-module__dangerAction--jvJ7-`},se=8,J=12,ce=352,Y=`a[href], button:not([disabled])`,le=({href:e,className:n,title:r,onClick:i,children:a})=>(0,t.jsx)(`a`,{href:e,className:n,title:r,onClick:i,children:a}),ue={primary:q.tonePrimary,info:q.toneInfo,success:q.toneSuccess,warning:q.toneWarning,danger:q.toneDanger,neutral:q.toneNeutral};function X(){return(0,t.jsx)(`svg`,{className:q.externalIcon,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,children:(0,t.jsx)(`path`,{d:`M8 5H5v10h10v-3M11 5h4v4M15 5l-7 7`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function de({user:i,apps:a=[],actions:o=[],placement:s=`header`,collapsed:c=!1,appsTitle:l=`All Apps`,greeting:u=`Hi`,renderLink:d=le,className:f}){let p=s===`sidebar`,m=(0,e.useId)(),g=(0,e.useRef)(null),v=(0,e.useRef)(null),y=(0,e.useRef)(null),[b,x]=(0,e.useState)(!1),[S,C]=(0,e.useState)(null),[w,T]=(0,e.useState)(),E=()=>{let e=v.current;if(!e)return;let t=e.getBoundingClientRect();if(p){let e=Math.min(ce,window.innerWidth-24);C({left:Math.max(J,Math.min(t.right+se,window.innerWidth-e-J)),bottom:Math.max(J,window.innerHeight-t.bottom)})}else C({top:t.bottom+se,right:Math.max(J,window.innerWidth-t.right)})},D=()=>{E(),T(g.current?.closest(`[data-theme]`)?.getAttribute(`data-theme`)??void 0),x(!0)},O=()=>x(!1);(0,e.useEffect)(()=>{b&&y.current?.focus({preventScroll:!0})},[b]),(0,e.useEffect)(()=>{if(!b)return;let e=()=>requestAnimationFrame(E),t=e=>{let t=e.target;!g.current?.contains(t)&&!y.current?.contains(t)&&O()};return window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),document.addEventListener(`mousedown`,t,!0),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e),document.removeEventListener(`mousedown`,t,!0)}},[b,p]);let ee=e=>{if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),O(),v.current?.focus({preventScroll:!0});return}if(e.key!==`Tab`)return;let t=Array.from(y.current?.querySelectorAll(Y)??[]),n=t[0],r=t[t.length-1];n&&r&&(e.shiftKey&&(document.activeElement===n||document.activeElement===y.current)?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus()))};if(!h())return(0,t.jsx)(_,{});let te=i.name.trim().split(/\s+/)[0]??i.name,ne=o.filter(e=>e.tone!==`danger`),k=o.filter(e=>e.tone===`danger`),A=e=>{e.onClick?.(),O()},j=(0,t.jsxs)(`div`,{ref:y,id:m,role:`dialog`,"aria-label":`Account`,tabIndex:-1,className:r(q.panel,p&&q.panelSidebar),style:S??void 0,"data-theme":w,onKeyDown:ee,children:[(0,t.jsxs)(`div`,{className:q.identity,children:[i.email?(0,t.jsx)(`p`,{className:q.email,children:i.email}):null,(0,t.jsx)(`span`,{className:q.avatarRing,children:(0,t.jsx)(`span`,{className:q.avatarInner,children:(0,t.jsx)(K,{name:i.name,src:i.avatarUrl,size:`xl`,tone:`primary`,"aria-hidden":`true`})})}),(0,t.jsxs)(`p`,{className:q.greeting,children:[u,`, `,te,`!`]}),i.role?(0,t.jsx)(`span`,{className:q.role,children:i.role}):null,ne.length>0?(0,t.jsx)(`div`,{className:q.pills,children:ne.map(e=>{let n=(0,t.jsxs)(t.Fragment,{children:[e.icon?(0,t.jsx)(`span`,{className:q.actionIcon,"aria-hidden":`true`,children:e.icon}):null,(0,t.jsx)(`span`,{children:e.label}),e.external?(0,t.jsx)(X,{}):null]});return e.href&&!e.disabled?e.external?(0,t.jsx)(`a`,{href:e.href,target:`_blank`,rel:`noreferrer`,title:e.title,className:q.pill,onClick:()=>O(),children:n},e.id):(0,t.jsx)(`span`,{className:q.contents,children:d({href:e.href,className:q.pill??``,title:e.title,onClick:()=>O(),children:n})},e.id):(0,t.jsx)(`button`,{type:`button`,disabled:e.disabled,title:e.title,className:q.pill,onClick:()=>A(e),children:n},e.id)})}):null]}),i.details?.length?(0,t.jsx)(`dl`,{className:q.details,children:i.details.map(e=>(0,t.jsxs)(`div`,{className:q.detailRow,children:[(0,t.jsx)(`dt`,{children:e.label}),(0,t.jsx)(`dd`,{children:e.value})]},e.label))}):null,a.length>0?(0,t.jsxs)(`section`,{className:q.apps,"aria-label":l,children:[(0,t.jsx)(`p`,{className:q.appsTitle,children:l}),(0,t.jsx)(`div`,{className:q.grid,children:a.map(e=>{let n=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`span`,{className:r(q.tile,ue[e.tone??`primary`]),"aria-hidden":`true`,children:e.icon}),(0,t.jsx)(`span`,{className:q.appName,children:e.name})]});return e.current?(0,t.jsx)(`span`,{className:q.contents,children:d({href:e.url,className:q.app??``,title:e.description,onClick:()=>O(),children:n})},e.id):(0,t.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,title:e.description,className:q.app,children:n},e.id)})})]}):null,k.length>0?(0,t.jsx)(`div`,{className:q.danger,children:k.map(e=>(0,t.jsxs)(`button`,{type:`button`,disabled:e.disabled,title:e.title,className:q.dangerAction,onClick:()=>A(e),children:[e.icon?(0,t.jsx)(`span`,{className:q.actionIcon,"aria-hidden":`true`,children:e.icon}):null,e.label]},e.id))}):null]});return(0,t.jsxs)(`div`,{ref:g,className:r(q.root,p&&q.rootSidebar,f),children:[(0,t.jsxs)(`button`,{ref:v,type:`button`,"aria-label":`Account: ${i.name}`,"aria-haspopup":`dialog`,"aria-expanded":b,"aria-controls":b?m:void 0,className:r(p?q.triggerSidebar:q.triggerHeader,p&&c&&q.collapsed,b&&q.triggerOpen),onClick:()=>b?O():D(),children:[(0,t.jsx)(K,{name:i.name,src:i.avatarUrl,size:`sm`,tone:`primary`,"aria-hidden":`true`}),p&&!c?(0,t.jsxs)(`span`,{className:q.identityText,children:[(0,t.jsx)(`span`,{className:q.triggerName,children:i.name}),i.role?(0,t.jsx)(`span`,{className:q.triggerRole,children:i.role}):null]}):null]}),b&&S?(0,n.createPortal)(j,document.body):null]})}var Z={root:`cui-Typography-module__root--PebSf`,h1:`cui-Typography-module__h1--pJqnF`,h2:`cui-Typography-module__h2--8YqGv`,h3:`cui-Typography-module__h3--DT-DL`,h4:`cui-Typography-module__h4--UsocF`,body:`cui-Typography-module__body--s-YlR`,bodySm:`cui-Typography-module__bodySm--RPpZ5`,caption:`cui-Typography-module__caption--K-n4O`,label:`cui-Typography-module__label---CGg4`,"color-default":`cui-Typography-module__color-default--U4Xg0`,"color-secondary":`cui-Typography-module__color-secondary--5wnuV`,"color-muted":`cui-Typography-module__color-muted--GLLRl`,"color-disabled":`cui-Typography-module__color-disabled--bBBVc`,"color-primary":`cui-Typography-module__color-primary--B-bVH`,"color-success":`cui-Typography-module__color-success--hXHcS`,"color-warning":`cui-Typography-module__color-warning---oLwA`,"color-danger":`cui-Typography-module__color-danger--sStkk`,"color-info":`cui-Typography-module__color-info--4uSt5`,"weight-normal":`cui-Typography-module__weight-normal--fFcMp`,"weight-medium":`cui-Typography-module__weight-medium--5RtTe`,"weight-semibold":`cui-Typography-module__weight-semibold--TDOgV`,"weight-bold":`cui-Typography-module__weight-bold--YahG3`,"align-start":`cui-Typography-module__align-start--mX51I`,"align-center":`cui-Typography-module__align-center--2Ng2u`,"align-end":`cui-Typography-module__align-end--6LwA3`,truncate:`cui-Typography-module__truncate--3B0O4`},fe={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,body:`p`,"body-sm":`p`,caption:`span`,label:`span`},pe={h1:Z.h1,h2:Z.h2,h3:Z.h3,h4:Z.h4,body:Z.body,"body-sm":Z.bodySm,caption:Z.caption,label:Z.label};function me({variant:n=`body`,as:i,color:a=`default`,weight:o,align:s,truncate:c=!1,className:l,...u}){return h()?(0,e.createElement)(i??fe[n],{...u,className:r(Z.root,pe[n],Z[`color-${a}`],o&&Z[`weight-${o}`],s&&Z[`align-${s}`],c&&Z.truncate,l)}):(0,t.jsx)(_,{})}var he=`(prefers-color-scheme: dark)`;function ge(){return(0,e.useSyncExternalStore)(e=>{if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(he);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(he).matches,()=>!1)}var Q=new Set;function _e(e){try{return window.localStorage.getItem(e)}catch{return null}}function ve(e,t){try{window.localStorage.setItem(e,t)}catch{}Q.forEach(e=>e())}function ye(t){return(0,e.useSyncExternalStore)(e=>(Q.add(e),window.addEventListener(`storage`,e),()=>{Q.delete(e),window.removeEventListener(`storage`,e)}),()=>t?_e(t):null,()=>null)}var be={root:`cui-ThemeProvider-module__root--2DEGi`},xe=(0,e.createContext)(null);function Se({children:n,theme:i,defaultTheme:a=`light`,onThemeChange:o,storageKey:s,licenseKey:c,className:l,...d}){let[f,p]=(0,e.useState)(a),m=ye(i===void 0?s:void 0),h=ge(),g=i??m??f,_=g===`system`?h?`dark`:`light`:g,v=(0,e.useCallback)(e=>{i===void 0&&(p(e),s&&ve(s,e)),o?.(e)},[i,o,s]),y=(0,e.useMemo)(()=>({theme:g,resolvedTheme:_,setTheme:v}),[g,_,v]),b=(0,e.useContext)(u);return(0,t.jsx)(xe.Provider,{value:y,children:(0,t.jsx)(u.Provider,{value:c??b,children:(0,t.jsx)(`div`,{...d,"data-theme":_,className:r(be.root,l),children:n})})})}function Ce(){let t=(0,e.useContext)(xe);if(!t)throw Error(`useTheme must be used within a <ThemeProvider>.`);return t}var $={root:`cui-ThemeToggle-module__root--k2-Go`,option:`cui-ThemeToggle-module__option--CngnC`,input:`cui-ThemeToggle-module__input--0nC-Q`,face:`cui-ThemeToggle-module__face--jX0TD`,icon:`cui-ThemeToggle-module__icon--N0Uj1`},we={light:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,t.jsx)(`path`,{d:`M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4`})]}),dark:(0,t.jsx)(`path`,{d:`M20 14.5A8 8 0 019.5 4a8 8 0 1010.5 10.5z`}),system:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`12`,rx:`2`}),(0,t.jsx)(`path`,{d:`M8 20h8M12 16v4`})]})},Te={light:`Light`,dark:`Dark`,system:`System`};function Ee({modes:n=[`light`,`dark`,`system`],compact:i=!1,className:a,"aria-label":o=`Theme`,...s}){let{theme:c,setTheme:l}=Ce(),u=(0,e.useId)();return h()?(0,t.jsx)(`div`,{...s,role:`radiogroup`,"aria-label":o,className:r($.root,a),children:n.map(e=>{let n=Te[e]??e;return(0,t.jsxs)(`label`,{className:$.option,title:i?n:void 0,children:[(0,t.jsx)(`input`,{type:`radio`,name:u,value:e,checked:c===e,onChange:()=>l(e),className:$.input,"aria-label":i?n:void 0}),(0,t.jsxs)(`span`,{className:$.face,children:[we[e]?(0,t.jsx)(`svg`,{className:$.icon,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:we[e]}):null,i?null:n]})]},e)})}):(0,t.jsx)(_,{})}exports.AccountPanel=de,exports.Avatar=K,exports.Badge=ae,exports.Button=y,exports.Checkbox=P,exports.FormField=C,exports.FormSection=V,exports.Input=E,exports.Select=A,exports.Skeleton=R,exports.Switch=ie,exports.Tabs=oe,exports.Textarea=re,exports.ThemeProvider=Se,exports.ThemeToggle=Ee,exports.Typography=me,exports.cn=r,exports.getInitials=W,exports.setLicenseKey=d,exports.useFormFieldControl=x,exports.useTheme=Ce;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|