@inkorange/space-ui 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/components/Autocomplete.d.ts +72 -0
- package/dist/components/IconToggle.d.ts +11 -3
- package/dist/components/Tooltip.d.ts +4 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +932 -742
- package/dist/index.js.map +1 -1
- package/dist/space-ui.css +1 -1
- package/dist/tokens.css +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<!-- badges:start -->
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@inkorange/space-ui)
|
|
6
|
-

|
|
7
|
+

|
|
8
8
|

|
|
9
9
|
[](https://space-components.vercel.app)
|
|
10
10
|
|
|
@@ -163,7 +163,7 @@ it exposes.
|
|
|
163
163
|
| --- | --- |
|
|
164
164
|
| **Typography** | [Text](https://space-components.vercel.app/?story=components--typography--text-sizes) · [Link](https://space-components.vercel.app/?story=components--typography--text-sizes) · [Heading](https://space-components.vercel.app/?story=components--typography--headings) · [Badge](https://space-components.vercel.app/?story=components--typography--badges) · [Separator](https://space-components.vercel.app/?story=components--typography--separator) |
|
|
165
165
|
| **Layout** | [Card](https://space-components.vercel.app/?story=components--layout--card) · [Flex](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Grid](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Box](https://space-components.vercel.app/?story=components--layout--flex-and-grid) |
|
|
166
|
-
| **Forms** | [TextField](https://space-components.vercel.app/?story=components--forms--text-field) · [TextArea](https://space-components.vercel.app/?story=components--forms--text-area) · [Select](https://space-components.vercel.app/?story=components--forms--select) · [Slider](https://space-components.vercel.app/?story=components--forms--slider) · [RadioGroup](https://space-components.vercel.app/?story=components--forms--radio-group) |
|
|
166
|
+
| **Forms** | [Autocomplete](https://space-components.vercel.app/?story=components--forms--autocomplete) · [TextField](https://space-components.vercel.app/?story=components--forms--text-field) · [TextArea](https://space-components.vercel.app/?story=components--forms--text-area) · [Select](https://space-components.vercel.app/?story=components--forms--select) · [Slider](https://space-components.vercel.app/?story=components--forms--slider) · [RadioGroup](https://space-components.vercel.app/?story=components--forms--radio-group) |
|
|
167
167
|
| **Buttons** | [Button](https://space-components.vercel.app/?story=components--buttons--buttons) · [IconToggle](https://space-components.vercel.app/?story=components--buttons--icon-toggle) |
|
|
168
168
|
| **Feedback** | [Loader](https://space-components.vercel.app/?story=components--feedback--loader) · [Progress](https://space-components.vercel.app/?story=components--feedback--progress) · [Message](https://space-components.vercel.app/?story=components--feedback--message) |
|
|
169
169
|
| **Overlays** | [Dialog](https://space-components.vercel.app/?story=components--overlays--dialog) · [AlertDialog](https://space-components.vercel.app/?story=components--overlays--alert-dialog) · [DropdownMenu](https://space-components.vercel.app/?story=components--overlays--dropdown-menu) · [Tabs](https://space-components.vercel.app/?story=components--overlays--tabs) · [Tooltip](https://space-components.vercel.app/?story=components--overlays--tooltip) |
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export interface AutocompleteOption {
|
|
4
|
+
/** Handed back to `onSelect` when this row is chosen. */
|
|
5
|
+
value: string;
|
|
6
|
+
/** The row's main text. */
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
/** Optional secondary text, set against the trailing edge — a category, a
|
|
9
|
+
* score, a date. Kept out of `label` so it stays visually subordinate and
|
|
10
|
+
* does not affect which row a reader scans for. */
|
|
11
|
+
meta?: ReactNode;
|
|
12
|
+
/** Shown, but skipped by the keyboard and unselectable. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** The text the typed query is matched against, when `label` is not a plain
|
|
15
|
+
* string. Falls back to `label` if it is one, and to `value` otherwise —
|
|
16
|
+
* and `value` is usually a slug, which is rarely what someone is typing. */
|
|
17
|
+
search?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AutocompleteProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "onSelect" | "className" | "style"> {
|
|
20
|
+
/** The text in the field. Fully controlled. */
|
|
21
|
+
value: string;
|
|
22
|
+
/** Called on every keystroke. */
|
|
23
|
+
onValueChange: (value: string) => void;
|
|
24
|
+
/** The candidate rows, in the order you want them shown. They are narrowed
|
|
25
|
+
* against what has been typed unless `preFiltered` is set; the order you
|
|
26
|
+
* give is always preserved, so ranking stays yours. An empty array with no
|
|
27
|
+
* `loading` and no `emptyMessage` shows nothing at all, which is how you
|
|
28
|
+
* keep the panel shut until a query is worth answering. */
|
|
29
|
+
options: AutocompleteOption[];
|
|
30
|
+
/** Called when a row is chosen by click or Enter. */
|
|
31
|
+
onSelect: (value: string, option: AutocompleteOption) => void;
|
|
32
|
+
/** Renders a leading glyph inside the field — a magnifier, usually. */
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
/** Match exactly as typed, so `trappist` no longer finds `TRAPPIST`.
|
|
35
|
+
* Default off, which is what nearly every search wants. */
|
|
36
|
+
caseSensitive?: boolean;
|
|
37
|
+
/** The rows were already matched — by a server, a fuzzy search, a synonym
|
|
38
|
+
* table — so render them as given. Without this a substring test here
|
|
39
|
+
* would silently drop rows a smarter match upstream had found. */
|
|
40
|
+
preFiltered?: boolean;
|
|
41
|
+
/** Replaces the list with a waiting message while results are on their way. */
|
|
42
|
+
loading?: boolean;
|
|
43
|
+
/** What that waiting message says. Name the thing being fetched — "Loading
|
|
44
|
+
* the catalogue…" tells a reader more than a spinner's worth of nothing.
|
|
45
|
+
* Default "Loading…". */
|
|
46
|
+
loadingMessage?: ReactNode;
|
|
47
|
+
/** Shown when there are no options and nothing is loading. Leave it out to
|
|
48
|
+
* show no panel at all rather than an empty one. */
|
|
49
|
+
emptyMessage?: ReactNode;
|
|
50
|
+
/** A line under the list, outside its scroll area — "showing 50 of 2,700",
|
|
51
|
+
* a hint, a keyboard legend. */
|
|
52
|
+
footer?: ReactNode;
|
|
53
|
+
/** Ambient motion on the field's rim. The glass skin is always applied.
|
|
54
|
+
* Default true. */
|
|
55
|
+
animated?: boolean;
|
|
56
|
+
/** Merged onto the wrapper, which is what you size. */
|
|
57
|
+
className?: string;
|
|
58
|
+
/** Applied to the wrapper — set width here. */
|
|
59
|
+
style?: React.CSSProperties;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* A text field that offers matching rows as you type.
|
|
63
|
+
*
|
|
64
|
+
* It holds no data of its own. Give it `options` and it renders them,
|
|
65
|
+
* highlights one, moves that highlight with the arrow keys, and calls
|
|
66
|
+
* `onSelect` when a row is chosen — however those options were produced.
|
|
67
|
+
*
|
|
68
|
+
* The list is a popover rather than a block in the flow: results that appear
|
|
69
|
+
* mid-keystroke and push the page down under the cursor are disorienting, and
|
|
70
|
+
* whatever is being searched usually sits directly below the field.
|
|
71
|
+
*/
|
|
72
|
+
export declare function Autocomplete({ value, onValueChange, options, onSelect, icon, caseSensitive, preFiltered, loading, loadingMessage, emptyMessage, footer, animated, className, style, ...inputProps }: AutocompleteProps): React.JSX.Element;
|
|
@@ -14,16 +14,24 @@ export interface IconToggleOption<V extends string> {
|
|
|
14
14
|
* "always visible, the selected one is the active one"). Generic over the
|
|
15
15
|
* option set so other icon-mode switchers can reuse it.
|
|
16
16
|
*/
|
|
17
|
-
export declare function IconToggle<V extends string>({ options, value, onValueChange, className, }: {
|
|
17
|
+
export declare function IconToggle<V extends string>({ options, value, onValueChange, orientation, className, }: {
|
|
18
18
|
/** The segments, in display order. Every option is always visible —
|
|
19
19
|
* this is a segmented control, not a menu.
|
|
20
20
|
*/
|
|
21
21
|
options: IconToggleOption<V>[];
|
|
22
|
-
/** The selected option's value. Fully controlled.
|
|
23
|
-
|
|
22
|
+
/** The selected option's value. Fully controlled.
|
|
23
|
+
*
|
|
24
|
+
* NoInfer so V is derived from `options` alone. Without it a value that is
|
|
25
|
+
* not among the options simply widened V to include itself, which made the
|
|
26
|
+
* generic silently accept the one mistake it looks like it should catch. */
|
|
27
|
+
value: NoInfer<V>;
|
|
24
28
|
/** Called with the newly selected value. Not called when the already
|
|
25
29
|
* selected option is clicked. */
|
|
26
30
|
onValueChange(next: V): void;
|
|
31
|
+
/** Which way the pill runs. `vertical` for a rail down the edge of a
|
|
32
|
+
* viewport, where a horizontal strip would eat the width. Default
|
|
33
|
+
* `horizontal`. */
|
|
34
|
+
orientation?: "horizontal" | "vertical";
|
|
27
35
|
/** Merged onto the group wrapper. */
|
|
28
36
|
className?: string;
|
|
29
37
|
}): import("react").JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
interface TooltipProps {
|
|
2
2
|
/** The text to show. Nothing renders when this is empty. */
|
|
3
3
|
label: string;
|
|
4
|
-
/** Preferred side; flips
|
|
5
|
-
|
|
4
|
+
/** Preferred side; flips to the opposite one when there isn't room.
|
|
5
|
+
* `left`/`right` are for a control in a vertical stack, where a tooltip
|
|
6
|
+
* above or below would land on the neighbouring item. */
|
|
7
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
6
8
|
/** The element the tooltip describes. Receives the hover and focus
|
|
7
9
|
* handlers, so it must accept a ref. */
|
|
8
10
|
children: React.ReactElement;
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),t=require("react/jsx-runtime"),Z={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function M({m:e,mt:n,mb:o,p:r,pb:s},l){const i={...e!==void 0&&{margin:Z[e]},...n!==void 0&&{marginTop:Z[n]},...o!==void 0&&{marginBottom:Z[o]},...r!==void 0&&{padding:Z[r]},...s!==void 0&&{paddingBottom:Z[s]},...l};return Object.keys(i).length>0?i:void 0}function m(...e){return e.filter(Boolean).join(" ")}const Ne="_text_4vcq4_1",He="_size1_4vcq4_5",Se="_size2_4vcq4_11",De="_size3_4vcq4_16",Ee="_size4_4vcq4_21",Te="_size5_4vcq4_27",Ze="_size6_4vcq4_33",Ve="_medium_4vcq4_39",Be="_bold_4vcq4_43",Oe="_colorMuted_4vcq4_47",Pe="_colorDanger_4vcq4_51",Ae="_colorSuccess_4vcq4_55",Fe="_colorWarning_4vcq4_59",K={text:Ne,size1:He,size2:Se,size3:De,size4:Ee,size5:Te,size6:Ze,medium:Ve,bold:Be,colorMuted:Oe,colorDanger:Pe,colorSuccess:Ae,colorWarning:Fe},ie=c.forwardRef(function({as:n="span",size:o,weight:r,color:s,className:l,style:i,m:u,mt:d,mb:p,p:a,pb:f,...h},_){return c.createElement(n,{...h,ref:_,className:m(K.text,o&&K[`size${o}`],r&&K[r],s&&K[`color${s[0].toUpperCase()}${s.slice(1)}`],l),style:M({m:u,mt:d,mb:p,p:a,pb:f},i)})}),We="_heading_vs4zk_1",Ge="_size4_vs4zk_7",Ue="_size5_vs4zk_13",Xe="_size6_vs4zk_19",Ke="_size7_vs4zk_25",Ye="_size8_vs4zk_31",Qe="_size9_vs4zk_37",Je="_colorMuted_vs4zk_43",et="_colorDanger_vs4zk_47",tt="_alignCenter_vs4zk_51",V={heading:We,size4:Ge,size5:Ue,size6:Xe,size7:Ke,size8:Ye,size9:Qe,colorMuted:Je,colorDanger:et,alignCenter:tt},ae=c.forwardRef(function({as:n="h2",size:o,color:r,align:s,className:l,style:i,m:u,mt:d,mb:p,p:a,pb:f,...h},_){return c.createElement(n,{...h,ref:_,className:m(V.heading,o&&V[`size${o}`],r==="muted"&&V.colorMuted,r==="danger"&&V.colorDanger,s==="center"&&V.alignCenter,l),style:M({m:u,mt:d,mb:p,p:a,pb:f},i)})}),nt="_link_1qa7j_1",ot="_size1_1qa7j_10",st="_size2_1qa7j_16",rt="_size3_1qa7j_21",oe={link:nt,size1:ot,size2:st,size3:rt},lt=c.forwardRef(function({asChild:n,size:o,className:r,style:s,m:l,mt:i,mb:u,p:d,pb:p,children:a,...f},h){const _=m(oe.link,o&&oe[`size${o}`],r),g=M({m:l,mt:i,mb:u,p:d,pb:p},s);if(n&&c.isValidElement(a)){const v=a;return c.cloneElement(v,{...f,className:m(_,v.props.className),style:{...g,...v.props.style}})}return t.jsx("a",{...f,ref:h,className:_,style:g,children:a})}),ct="_flex_v4ziu_1",it="_gap1_v4ziu_5",at="_gap2_v4ziu_9",ut="_gap3_v4ziu_13",dt="_gap4_v4ziu_17",_t="_gap5_v4ziu_21",ft="_gap6_v4ziu_25",Ct="_directionRow_v4ziu_29",pt="_directionColumn_v4ziu_33",gt="_alignStart_v4ziu_37",mt="_alignCenter_v4ziu_41",ht="_alignEnd_v4ziu_45",vt="_alignBaseline_v4ziu_49",xt="_alignStretch_v4ziu_53",jt="_justifyStart_v4ziu_57",wt="_justifyCenter_v4ziu_61",bt="_justifyEnd_v4ziu_65",yt="_justifyBetween_v4ziu_69",Rt="_wrapWrap_v4ziu_73",Lt="_wrapNowrap_v4ziu_77",z={flex:ct,gap1:it,gap2:at,gap3:ut,gap4:dt,gap5:_t,gap6:ft,directionRow:Ct,directionColumn:pt,alignStart:gt,alignCenter:mt,alignEnd:ht,alignBaseline:vt,alignStretch:xt,justifyStart:jt,justifyCenter:wt,justifyEnd:bt,justifyBetween:yt,wrapWrap:Rt,wrapNowrap:Lt},Y=e=>e[0].toUpperCase()+e.slice(1),$t=c.forwardRef(function({asChild:n,gap:o,direction:r,align:s,justify:l,wrap:i,className:u,style:d,m:p,mt:a,mb:f,p:h,pb:_,children:g,...v},j){const b=m(z.flex,o&&z[`gap${o}`],r&&z[`direction${Y(r)}`],s&&z[`align${Y(s)}`],l&&z[`justify${Y(l)}`],i&&z[`wrap${Y(i)}`],u),y=M({m:p,mt:a,mb:f,p:h,pb:_},d);if(n&&c.isValidElement(g)){const $=g;return c.cloneElement($,{...v,className:m(b,$.props.className),style:{...y,...$.props.style}})}return t.jsx("div",{...v,ref:j,className:b,style:y,children:g})}),It=c.forwardRef(function({style:n,m:o,mt:r,mb:s,p:l,pb:i,...u},d){return t.jsx("div",{...u,ref:d,style:M({m:o,mt:r,mb:s,p:l,pb:i},n)})}),kt="_grid_erpqq_1",qt="_cols1_erpqq_5",Mt="_cols2_erpqq_9",zt="_cols3_erpqq_13",Nt="_smCols2_erpqq_18",Ht="_smCols3_erpqq_21",St="_mdCols2_erpqq_26",Dt="_mdCols3_erpqq_29",Et="_gap1_erpqq_33",Tt="_gap2_erpqq_37",Zt="_gap3_erpqq_41",Vt="_gap4_erpqq_45",Bt="_gap5_erpqq_49",Ot="_gap6_erpqq_53",N={grid:kt,cols1:qt,cols2:Mt,cols3:zt,smCols2:Nt,smCols3:Ht,mdCols2:St,mdCols3:Dt,gap1:Et,gap2:Tt,gap3:Zt,gap4:Vt,gap5:Bt,gap6:Ot},Pt=c.forwardRef(function({columns:n,gap:o,className:r,style:s,m:l,mt:i,mb:u,p:d,pb:p,...a},f){const h=typeof n=="string"?[N[`cols${n}`]]:n?[n.initial&&N[`cols${n.initial}`],n.sm&&N[`smCols${n.sm}`],n.md&&N[`mdCols${n.md}`]]:[];return t.jsx("div",{...a,ref:f,className:m(N.grid,...h,o&&N[`gap${o}`],r),style:M({m:l,mt:i,mb:u,p:d,pb:p},s)})}),At="_badge_1twqf_2",Ft="_size1_1twqf_10",Wt="_size2_1twqf_19",Gt="_colorMuted_1twqf_28",Ut="_colorPrimary_1twqf_33",Xt="_colorSuccess_1twqf_38",Kt="_colorDanger_1twqf_43",Yt="_colorWarning_1twqf_48",Qt="_colorCyan_1twqf_53",Jt="_colorPurple_1twqf_58",e1="_colorOrange_1twqf_63",t1="_colorAccent_1twqf_68",n1="_colorYellow_1twqf_73",o1="_solid_1twqf_81",s1="_wrap_1twqf_89",B={badge:At,size1:Ft,size2:Wt,colorMuted:Gt,colorPrimary:Ut,colorSuccess:Xt,colorDanger:Kt,colorWarning:Yt,colorCyan:Qt,colorPurple:Jt,colorOrange:e1,colorAccent:t1,colorYellow:n1,solid:o1,wrap:s1},r1=e=>e[0].toUpperCase()+e.slice(1),l1=c.forwardRef(function({color:n="primary",variant:o="soft",size:r="1",wrap:s,className:l,style:i,m:u,mt:d,mb:p,p:a,pb:f,...h},_){return t.jsx("span",{...h,ref:_,className:m(B.badge,B[`color${r1(n)}`],o==="solid"&&B.solid,B[`size${r}`],s&&B.wrap,l),style:M({m:u,mt:d,mb:p,p:a,pb:f},i)})}),c1="_separator_vao01_1",i1="_full_vao01_7",se={separator:c1,full:i1},a1=c.forwardRef(function({size:n="4",className:o,...r},s){return t.jsx("span",{...r,ref:s,role:"separator",className:m(se.separator,n==="4"&&se.full,o)})}),u1="_card_1ooot_2",d1="_image_1ooot_14",_1="_hasImage_1ooot_41",J={card:u1,image:d1,hasImage:_1},f1=c.forwardRef(function({className:n,style:o,image:r,children:s,m:l,mt:i,mb:u,p:d,pb:p,...a},f){return t.jsxs("div",{...a,ref:f,className:m(J.card,r!=null&&J.hasImage,n),style:M({m:l,mt:i,mb:u,p:d,pb:p},o),children:[r!=null&&t.jsx("div",{className:J.image,children:r}),s]})}),C1="_spaceButton_kjhqx_14",p1="_rimRotate_kjhqx_1",g1="_glintSweep_kjhqx_1",m1="_iconOnly_kjhqx_97",h1="_lg_kjhqx_104",v1="_sm_kjhqx_110",x1="_micro_kjhqx_122",j1="_stars_kjhqx_136",w1="_fullWidth_kjhqx_141",b1="_ember_kjhqx_147",y1="_label_kjhqx_157",R1="_star_kjhqx_136",L1="_twinkle_kjhqx_1",k={spaceButton:C1,rimRotate:p1,glintSweep:g1,iconOnly:m1,lg:h1,sm:v1,micro:x1,stars:j1,fullWidth:w1,ember:b1,label:y1,star:R1,twinkle:L1};function $1(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function I1(e){let n=2166136261;for(let o=0;o<e.length;o++)n^=e.charCodeAt(o),n=Math.imul(n,16777619);return n>>>0}const ue=c.forwardRef(function({iconOnly:n,ember:o,size:r="md",fullWidth:s,animated:l=!0,className:i,children:u,...d},p){const a=c.useId(),f=c.useMemo(()=>{const _=$1(I1(a));return Array.from({length:3},()=>({top:`${12+_()*58}%`,left:`${8+_()*80}%`,animationDelay:`${(_()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+_()*1.8).toFixed(2)}s`}))},[a]),h=[k.spaceButton,n?k.iconOnly:"",o?k.ember:"",r!=="md"?k[r]:"",s?k.fullWidth:"",i??""].filter(Boolean).join(" ");return t.jsxs("button",{ref:p,className:h,"data-animated":l?void 0:"false",...d,children:[r!=="micro"&&t.jsx("span",{className:k.stars,"aria-hidden":!0,children:f.map((_,g)=>t.jsx("i",{className:k.star,style:_},g))}),t.jsx("span",{className:k.label,children:u})]})}),k1="_wrap_dwcut_5",q1="_sm_dwcut_30",M1="_md_dwcut_36",z1="_lg_dwcut_42",N1="_orbit_dwcut_49",H1="_planet_dwcut_58",S1="_moon_dwcut_73",D1="_label_dwcut_92",H={wrap:k1,sm:q1,md:M1,lg:z1,orbit:N1,planet:H1,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:S1,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:D1,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function E1({size:e="md",label:n,className:o}){return t.jsxs("div",{className:m(H.wrap,H[e],o),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[t.jsxs("span",{className:H.orbit,children:[t.jsx("span",{className:H.planet}),t.jsx("span",{className:H.moon})]}),n&&t.jsx("span",{className:H.label,children:n})]})}const T1="_content_1bxfq_6",Z1={content:T1},V1=350,B1=80,re=8,O=8;function O1({triggerRef:e,tooltipId:n,show:o,hide:r,children:s}){const l=s.props;return c.cloneElement(s,{ref:e,"aria-describedby":n,onPointerEnter:i=>{var u;(u=l.onPointerEnter)==null||u.call(l,i),i.pointerType==="mouse"&&o()},onPointerLeave:i=>{var u;(u=l.onPointerLeave)==null||u.call(l,i),r()},onFocus:i=>{var u;(u=l.onFocus)==null||u.call(l,i),o(!0)},onBlur:i=>{var u;(u=l.onBlur)==null||u.call(l,i),r()},onClick:i=>{var u;(u=l.onClick)==null||u.call(l,i),r()}})}function de({label:e,side:n="bottom",children:o}){const r=c.useId(),[s,l]=c.useState(!1),[i,u]=c.useState(null),d=c.useRef(null),p=c.useRef(null),a=c.useRef(null),f=c.useRef(null),h=()=>{a.current&&(clearTimeout(a.current),a.current=null),f.current&&(clearTimeout(f.current),f.current=null)},_=(v=!1)=>{if(h(),v){l(!0);return}a.current=setTimeout(()=>l(!0),V1)},g=()=>{h(),f.current=setTimeout(()=>l(!1),B1)};return c.useEffect(()=>h,[]),c.useLayoutEffect(()=>{const v=p.current;if(!v)return;if(!s){v.matches(":popover-open")&&v.hidePopover();return}v.matches(":popover-open")||v.showPopover();const j=d.current;if(!j)return;const b=j.getBoundingClientRect(),y=v.offsetWidth,$=v.offsetHeight,R=b.bottom+re,w=b.top-$-re,G=R+$<=window.innerHeight-O,T=w>=O,U=n==="bottom"?G||!T?R:w:T||!G?w:R,X=Math.min(Math.max(b.left+b.width/2-y/2,O),Math.max(window.innerWidth-y-O,O));u({top:U,left:X})},[s,n,e]),!e||!c.isValidElement(o)?t.jsx(t.Fragment,{children:o}):t.jsxs(t.Fragment,{children:[t.jsx(O1,{triggerRef:d,tooltipId:r,show:_,hide:g,children:o}),t.jsx("div",{ref:p,id:r,popover:"auto",role:"tooltip",className:Z1.content,style:i?{top:i.top,left:i.left}:void 0,onToggle:v=>{v.nativeEvent.newState==="closed"&&s&&l(!1)},children:e})]})}const P1="_group_1kj0b_3",A1="_segment_1kj0b_14",F1="_active_1kj0b_34",ee={group:P1,segment:A1,active:F1};function W1({options:e,value:n,onValueChange:o,className:r=""}){return t.jsx("div",{className:`${ee.group} ${r}`,role:"group",children:e.map(s=>t.jsx(de,{label:s.label,side:"bottom",children:t.jsx("button",{type:"button",className:`${ee.segment} ${s.value===n?ee.active:""}`,"aria-label":s.label,"aria-pressed":s.value===n,onClick:()=>{s.value!==n&&o(s.value)},children:s.icon})},s.value))})}const G1="_root_1bvtq_2",U1="_trigger_1bvtq_7",X1="_labelWrap_1bvtq_30",K1="_sizer_1bvtq_8",Y1="_triggerLabel_1bvtq_70",Q1="_chevron_1bvtq_77",J1="_listbox_1bvtq_82",en="_item_1bvtq_110",q={root:G1,trigger:U1,labelWrap:X1,sizer:K1,triggerLabel:Y1,chevron:Q1,listbox:J1,item:en},tn="_spaceControl_4ou97_17",nn="_spaceSlider_4ou97_74",on="_spacePanel_4ou97_111",sn="_spaceInput_4ou97_34",rn="_spaceTextArea_4ou97_226",ln={spaceControl:tn,spaceSlider:nn,spacePanel:on,spaceInput:sn,spaceTextArea:rn},E=ln,_e=c.createContext(null),cn=()=>{const e=c.useContext(_e);if(!e)throw new Error("Select.Item must be inside a Select");return e},fe=(e,n)=>`${e}-${encodeURIComponent(n)}`;function an(e){const n=[],o=r=>{c.Children.forEach(r,s=>{if(!c.isValidElement(s))return;const l=s.props;s.type===Ce&&typeof l.value=="string"?n.push({value:l.value,label:l.children,disabled:l.disabled}):l.children&&o(l.children)})};return o(e),n}function un({value:e,onValueChange:n,disabled:o,placeholder:r,animated:s=!0,className:l,children:i,...u}){const[d,p]=c.useState(!1),[a,f]=c.useState(null),h=c.useId(),_=c.useRef(null),g=c.useRef(null),v=c.useRef(null),[j,b]=c.useState(null),[y,$]=c.useState(null),R=c.useMemo(()=>an(i),[i]),w=c.useMemo(()=>R.filter(C=>!C.disabled).map(C=>C.value),[R]),G=c.useMemo(()=>R.map(C=>C.label),[R]),T=c.useCallback(C=>{var L;return((L=R.find(I=>I.value===C))==null?void 0:L.label)??null},[R]);c.useEffect(()=>{if(!d)return;const C=L=>{g.current&&!g.current.contains(L.target)&&p(!1)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[d]),c.useLayoutEffect(()=>{if(!d)return;const C=_.current;if(!C)return;const L=C.getBoundingClientRect();b(C.offsetWidth);const I=window.innerHeight-L.bottom-16;$(Math.min(380,Math.max(120,I)))},[d]),c.useEffect(()=>{var C;d&&((C=v.current)==null||C.focus())},[d]);const U=C=>{f(C??w[0]??null),p(!0)},X=C=>{const L=a?w.indexOf(a):-1,I=Math.min(Math.max(L+C,0),w.length-1);f(w[I]??null)},ze=e?T(e):null;return t.jsx(_e.Provider,{value:{value:e,onValueChange:n,disabled:o,open:d,setOpen:p,highlighted:a,setHighlighted:f,listboxId:h,values:w,labelFor:T,triggerRef:_},children:t.jsxs("div",{ref:g,className:q.root,children:[t.jsxs("button",{type:"button",...u,ref:_,disabled:o,className:m(q.trigger,E.spaceControl,"spSelectTrigger",l),"data-animated":s?void 0:"false","data-state":d?"open":"closed","aria-haspopup":"listbox","aria-expanded":d,"aria-controls":h,onClick:()=>d?p(!1):U(e||null),onKeyDown:C=>{(C.key==="ArrowDown"||C.key==="Enter"||C.key===" ")&&(C.preventDefault(),U(e||null))},children:[t.jsxs("span",{className:q.labelWrap,children:[t.jsxs("span",{className:q.sizer,"data-sizer":"","aria-hidden":"true",children:[G.map((C,L)=>t.jsx("span",{children:C},L)),r&&t.jsx("span",{children:r})]}),t.jsx("span",{className:q.triggerLabel,children:ze??r??""})]}),t.jsx("svg",{className:q.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:t.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),t.jsx("div",{ref:v,id:h,role:"listbox",tabIndex:-1,hidden:!d,"aria-activedescendant":a?fe(h,a):void 0,className:m(q.listbox,E.spacePanel),"data-animated":s?void 0:"false",style:j!=null||y!=null?{...j!=null?{"--_select-trigger-width":`${j}px`}:{},...y!=null?{maxHeight:`${y}px`}:{}}:void 0,onKeyDown:C=>{var L,I;C.key==="Escape"?(C.stopPropagation(),p(!1),(L=_.current)==null||L.focus()):C.key==="ArrowDown"?(C.preventDefault(),X(1)):C.key==="ArrowUp"?(C.preventDefault(),X(-1)):C.key==="Home"?(C.preventDefault(),f(w[0]??null)):C.key==="End"?(C.preventDefault(),f(w[w.length-1]??null)):C.key==="Enter"||C.key===" "?(C.preventDefault(),a&&(n(a),p(!1),(I=_.current)==null||I.focus())):C.key==="Tab"&&p(!1)},children:i})]})})}function Ce({value:e,disabled:n,children:o}){const r=cn(),s=r.value===e,l=r.highlighted===e;return t.jsx("div",{id:fe(r.listboxId,e),role:"option","aria-selected":s,"aria-disabled":n||void 0,"data-highlighted":l?"":void 0,className:m(q.item,"spSelectItem"),onMouseEnter:()=>!n&&r.setHighlighted(e),onClick:()=>{var i;n||(r.onValueChange(e),r.setOpen(!1),(i=r.triggerRef.current)==null||i.focus())},children:o})}const dn=Object.assign(un,{Item:Ce}),_n="_root_1lx7y_1",fn="_input_1lx7y_7",Cn="_slot_1lx7y_17",te={root:_n,input:fn,slot:Cn},pn=c.forwardRef(function({className:n,style:o,animated:r=!0,children:s,...l},i){return t.jsxs("div",{className:m(te.root,E.spaceInput,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:o,children:[s,t.jsx("input",{...l,ref:i,className:m(te.input,"spTextFieldInput")})]})});function gn({children:e}){return t.jsx("span",{className:te.slot,children:e})}const mn=Object.assign(pn,{Slot:gn}),hn="_root_1qu6w_1",vn="_textarea_1qu6w_6",le={root:hn,textarea:vn},xn=c.forwardRef(function({className:n,style:o,animated:r=!0,...s},l){return t.jsx("div",{className:m(le.root,E.spaceInput,E.spaceTextArea,"spTextFieldRoot",n),"data-animated":r?void 0:"false",style:o,children:t.jsx("textarea",{...s,ref:l,className:m(le.textarea,"spTextAreaInput")})})}),jn="_root_14a1b_1",wn="_track_14a1b_12",bn="_range_14a1b_22",yn="_thumb_14a1b_28",Rn="_input_14a1b_38",P={root:jn,track:wn,range:bn,thumb:yn,input:Rn},Ln=c.forwardRef(function({value:n,onValueChange:o,min:r,max:s,step:l,disabled:i,className:u,"aria-label":d},p){const a=n[0]??r,f=s===r?0:(a-r)/(s-r)*100;return t.jsxs("span",{className:m(P.root,E.spaceSlider,u),"data-disabled":i||void 0,children:[t.jsx("span",{className:m(P.track,"spSliderTrack"),children:t.jsx("span",{className:m(P.range,"spSliderRange"),style:{width:`${f}%`}})}),t.jsx("span",{className:m(P.thumb,"spSliderThumb"),style:{left:`${f}%`}}),t.jsx("input",{ref:p,type:"range",className:m(P.input,"spSliderInput"),value:a,min:r,max:s,step:l,disabled:i,"aria-label":d,onChange:h=>o([Number(h.target.value)])})]})}),$n="_root_1qhel_2",In="_item_1qhel_8",kn="_selfLabeled_1qhel_15",qn="_input_1qhel_19",Mn="_orb_1qhel_35",D={root:$n,item:In,selfLabeled:kn,input:qn,orb:Mn},pe=c.createContext(null);function zn({value:e,onValueChange:n,disabled:o,className:r,children:s}){const l=c.useId();return t.jsx(pe.Provider,{value:{value:e,onValueChange:n,disabled:o,name:l},children:t.jsx("div",{role:"radiogroup",className:m(D.root,r),children:s})})}function Nn({value:e,disabled:n,children:o}){const r=c.useContext(pe);if(!r)throw new Error("RadioGroup.Item must be inside a RadioGroup");const s=n||r.disabled,l=t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"radio",className:D.input,name:r.name,value:e,checked:r.value===e,disabled:s,onChange:()=>r.onValueChange(e)}),t.jsx("span",{className:m(D.orb,"spRadioOrb"),"aria-hidden":"true"})]});return o==null?t.jsx("span",{className:D.item,children:l}):t.jsxs("label",{className:m(D.item,D.selfLabeled),children:[l,o]})}const Hn=Object.assign(zn,{Item:Nn}),Sn="_progress_1cre6_16",Dn={progress:Sn};function En({value:e,max:n=100,className:o,style:r,...s}){const l=n>0?Math.min(Math.max(e/n*100,0),100):0;return t.jsx("div",{...s,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:m(Dn.progress,o),style:r,children:t.jsx("div",{style:{width:`${l}%`,height:"100%"}})})}const x={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function Tn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Zn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Vn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Bn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function On(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Pn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function An(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Fn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Wn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Gn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Un(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Xn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Kn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Yn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Qn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Jn(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function eo(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function to(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function no(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ge(e){return t.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:t.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}function me(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function he(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ve(e){return t.jsx("svg",{...x,...e,children:t.jsx("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const oo="_message_1522x_14",so="_info_1522x_44",ro="_warning_1522x_49",lo="_alert_1522x_56",co="_icon_1522x_63",io="_body_1522x_74",ao="_title_1522x_83",uo="_text_1522x_90",S={message:oo,info:so,warning:ro,alert:lo,icon:co,body:io,title:ao,text:uo},_o={info:t.jsx(me,{}),warning:t.jsx(he,{}),alert:t.jsx(ve,{})},fo={info:{role:"status",live:"polite"},warning:{role:"status",live:"polite"},alert:{role:"alert"}},Co=c.forwardRef(function({variant:n="info",title:o,icon:r,className:s,children:l,...i},u){const d=r===void 0?_o[n]:r,{role:p,live:a}=fo[n];return t.jsxs("div",{...i,ref:u,role:p,"aria-live":a,className:m(S.message,S[n],s),children:[d!=null&&t.jsx("span",{className:S.icon,"aria-hidden":"true",children:d}),t.jsxs("div",{className:S.body,children:[o!=null&&t.jsx("p",{className:S.title,children:o}),l!=null&&t.jsx("div",{className:S.text,children:l})]})]})}),po="_dialog_1qqku_2",go="_inner_1qqku_34",mo="_size4_1qqku_39",ho="_title_1qqku_43",vo="_closeX_1qqku_51",A={dialog:po,inner:go,size4:mo,title:ho,closeX:vo};let Q=0;const xe=c.createContext(null),W=()=>{const e=c.useContext(xe);if(!e)throw new Error("Dialog parts must be inside a Dialog");return e};function je(e){return function({open:o,onOpenChange:r,children:s}){const[l,i]=c.useState(!1),u=o!==void 0,d=u?o:l,p=g=>{u||i(g),r==null||r(g)},a=c.useId(),f=c.useId(),[h,_]=c.useState(!1);return t.jsx(xe.Provider,{value:{open:d,setOpen:p,titleId:a,descId:f,alert:e,hasDesc:h,setHasDesc:_},children:s})}}const xo=je(!1),we=(e,n)=>{if(!c.isValidElement(e))return e;const o=e;return c.cloneElement(o,{onClick:r=>{var s,l;(l=(s=o.props).onClick)==null||l.call(s,r),n()}})};function be({children:e}){const n=W();return t.jsx(t.Fragment,{children:we(e,()=>n.setOpen(!0))})}function ne({children:e}){const n=W();return t.jsx(t.Fragment,{children:we(e,()=>n.setOpen(!1))})}function ye({size:e="3",maxWidth:n,className:o,style:r,children:s,...l}){const i=W(),u=c.useRef(null),d=c.useRef(!1),p=c.useRef(!1);return c.useEffect(()=>{const a=u.current;a&&(i.open&&!a.open?a.showModal():!i.open&&a.open&&a.close())},[i.open]),c.useEffect(()=>{if(i.open)return Q+=1,Q===1&&(document.body.style.overflow="hidden"),()=>{Q-=1,Q===0&&(document.body.style.overflow="")}},[i.open]),t.jsx("dialog",{...l,ref:u,role:i.alert?"alertdialog":void 0,"aria-labelledby":i.titleId,"aria-describedby":i.hasDesc?i.descId:void 0,className:m(A.dialog,"spDialog",e==="4"&&A.size4,o),style:{...n?{maxWidth:n}:null,...r},onKeyDownCapture:a=>{var f,h;a.key==="Escape"&&((f=u.current)!=null&&f.querySelector("dialog[open]")||(h=u.current)!=null&&h.querySelector('[role="listbox"]:not([hidden])')&&(d.current=!0))},onCancel:a=>{if(a.preventDefault(),d.current){d.current=!1;return}i.setOpen(!1)},onClose:()=>{i.open&&i.setOpen(!1)},onPointerDown:a=>{p.current=a.target===u.current},onClick:a=>{!i.alert&&a.target===u.current&&p.current&&i.setOpen(!1)},children:t.jsxs("div",{className:A.inner,children:[!i.alert&&t.jsx("button",{type:"button",className:A.closeX,"aria-label":"Close",onClick:()=>i.setOpen(!1),children:t.jsx(ge,{width:16,height:16})}),s]})})}function Re({className:e,...n}){const o=W();return t.jsx(ae,{as:"h2",size:"5",...n,id:o.titleId,className:m(A.title,e)})}function Le(e){const n=W(),{setHasDesc:o}=n;return c.useLayoutEffect(()=>(o(!0),()=>o(!1)),[o]),t.jsx(ie,{as:"p",...e,id:n.descId})}const jo=Object.assign(xo,{Trigger:be,Close:ne,Content:ye,Title:Re,Description:Le}),wo=ne,bo=ne,yo=Object.assign(je(!0),{Trigger:be,Content:ye,Title:Re,Description:Le,Cancel:wo,Action:bo}),Ro="_menu_1hwyv_1",Lo="_label_1hwyv_16",$o="_item_1hwyv_26",Io="_danger_1hwyv_45",ko="_separator_1hwyv_49",F={menu:Ro,label:Lo,item:$o,danger:Io,separator:ko},$e=c.createContext(null),qo=()=>{const e=c.useContext($e);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e},Ie=c.createContext(null),Mo=()=>{const e=c.useContext(Ie);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e};function zo(e){return e.current?(e.current=!1,!0):!1}function ce(e){e.current=!0}function No({label:e,align:n="start",children:o,...r}){const[s,l]=c.useState(!1),i=c.useId(),u=c.useRef(null),d=c.useRef(null),p=c.useRef(!1),a=c.useRef(!1),[f,h]=c.useState(null);return c.useLayoutEffect(()=>{var g;const _=d.current;if(_)if(s){const v=u.current;if(v){const j=v.getBoundingClientRect(),b=n==="end"?"auto":j.left,y=n==="end"?window.innerWidth-j.right:"auto";h({top:j.bottom+6,left:b,right:y})}_.showPopover(),(g=_.querySelector('[role="menuitem"]'))==null||g.focus()}else _.matches(":popover-open")&&_.hidePopover()},[s,n]),c.useEffect(()=>{if(!s)return;const _=()=>l(!1);return window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)},[s]),t.jsx($e.Provider,{value:{open:s,setOpen:l,menuId:i},children:t.jsxs(Ie.Provider,{value:a,children:[t.jsx(ue,{...r,ref:u,"aria-haspopup":"menu","aria-expanded":s,"aria-controls":i,onClick:_=>{var g;(g=r.onClick)==null||g.call(r,_),!zo(p)&&l(!s)},children:e}),t.jsx("div",{ref:d,id:i,role:"menu",popover:"auto",className:F.menu,style:f?{top:f.top,left:f.left==="auto"?"auto":f.left,right:f.right==="auto"?"auto":f.right}:void 0,onToggle:_=>{if(_.nativeEvent.newState==="closed"){const g=a.current;a.current=!1,g||(p.current=!0,setTimeout(()=>{p.current=!1},300)),s&&l(!1)}},onKeyDown:_=>{var j,b,y,$,R,w;const g=Array.from(((j=d.current)==null?void 0:j.querySelectorAll('[role="menuitem"]'))??[]),v=g.indexOf(document.activeElement);_.key==="ArrowDown"?(_.preventDefault(),(b=g[Math.min(v+1,g.length-1)])==null||b.focus()):_.key==="ArrowUp"?(_.preventDefault(),(y=g[Math.max(v-1,0)])==null||y.focus()):_.key==="Home"?(_.preventDefault(),($=g[0])==null||$.focus()):_.key==="End"?(_.preventDefault(),(R=g[g.length-1])==null||R.focus()):_.key==="Escape"&&(l(!1),(w=u.current)==null||w.focus())},children:o})]})})}function Ho({children:e}){return t.jsx("div",{className:F.label,children:e})}function So({asChild:e,color:n,onSelect:o,children:r}){const s=qo(),l=Mo(),i=m(F.item,n==="danger"&&F.danger),u=()=>{ce(l),s.setOpen(!1),o==null||o()};if(e&&c.isValidElement(r)){const d=r,{className:p,onClick:a,children:f,role:h,tabIndex:_,...g}=d.props,v=d.ref;return c.createElement(d.type,{key:d.key,ref:v,role:"menuitem",tabIndex:-1,...g,className:m(i,p),onClick:j=>{a==null||a(j),ce(l),s.setOpen(!1)}},f)}return t.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:i,onClick:u,children:r})}function Do(){return t.jsx("div",{role:"separator",className:F.separator})}const Eo=Object.assign(No,{Item:So,Separator:Do,Label:Ho}),To="_list_1hc3r_19",Zo="_trigger_1hc3r_28",ke={list:To,trigger:Zo},qe=c.createContext(null),Me=()=>{const e=c.useContext(qe);if(!e)throw new Error("Tabs parts must be inside a Tabs");return e};function Vo({value:e,onValueChange:n,className:o,children:r}){const s=c.useId();return t.jsx(qe.Provider,{value:{value:e,onValueChange:n,id:s},children:t.jsx("div",{className:o,children:r})})}function Bo({children:e}){return t.jsx("div",{role:"tablist",className:m(ke.list,"spTabsList"),onKeyDown:n=>{const o=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),r=o.indexOf(document.activeElement);if(r!==-1){if(n.key==="ArrowRight"){n.preventDefault();const s=o[(r+1)%o.length];s.focus(),s.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const s=o[(r-1+o.length)%o.length];s.focus(),s.click()}else if(n.key==="Home"){n.preventDefault();const s=o[0];s.focus(),s.click()}else if(n.key==="End"){n.preventDefault();const s=o[o.length-1];s.focus(),s.click()}}},children:e})}function Oo({value:e,className:n,children:o,...r}){const s=Me(),l=s.value===e;return t.jsx("button",{...r,type:"button",role:"tab",id:`${s.id}-tab-${e}`,"aria-selected":l,"aria-controls":`${s.id}-panel-${e}`,tabIndex:l?0:-1,"data-state":l?"active":"inactive",className:m(ke.trigger,"spTabsTrigger",n),onClick:()=>s.onValueChange(e),children:o})}function Po({value:e,children:n}){const o=Me();return o.value!==e?null:t.jsx("div",{role:"tabpanel",id:`${o.id}-panel-${e}`,"aria-labelledby":`${o.id}-tab-${e}`,children:n})}const Ao=Object.assign(Vo,{List:Bo,Trigger:Oo,Content:Po});exports.AlertDialog=yo;exports.Badge=l1;exports.BookmarkIcon=no;exports.Box=It;exports.Button=ue;exports.Card=f1;exports.ChatBubbleIcon=Zn;exports.CheckIcon=Fn;exports.ChevronDownIcon=Jn;exports.ChevronLeftIcon=to;exports.ChevronRightIcon=eo;exports.ChevronUpIcon=Qn;exports.CrossCircledIcon=ve;exports.Dialog=jo;exports.DropdownMenu=Eo;exports.EnterFullScreenIcon=An;exports.ExclamationTriangleIcon=he;exports.ExitFullScreenIcon=Pn;exports.Flex=$t;exports.Grid=Pt;exports.Heading=ae;exports.HeartFilledIcon=On;exports.HeartIcon=Yn;exports.IconToggle=W1;exports.InfoCircledIcon=me;exports.Link=lt;exports.Loader=E1;exports.MagnifyingGlassIcon=Kn;exports.Message=Co;exports.MinusIcon=Xn;exports.Pencil1Icon=Bn;exports.PersonIcon=Un;exports.PlusIcon=Vn;exports.Progress=En;exports.QuestionMarkCircledIcon=Gn;exports.RadioGroup=Hn;exports.Select=dn;exports.Separator=a1;exports.Share2Icon=Tn;exports.Slider=Ln;exports.Tabs=Ao;exports.Text=ie;exports.TextArea=xn;exports.TextField=mn;exports.Tooltip=de;exports.TrashIcon=Wn;exports.XIcon=ge;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),t=require("react/jsx-runtime"),K={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function Z({m:e,mt:n,mb:s,p:o,pb:r},c){const a={...e!==void 0&&{margin:K[e]},...n!==void 0&&{marginTop:K[n]},...s!==void 0&&{marginBottom:K[s]},...o!==void 0&&{padding:K[o]},...r!==void 0&&{paddingBottom:K[r]},...c};return Object.keys(a).length>0?a:void 0}function v(...e){return e.filter(Boolean).join(" ")}const Ae="_text_4vcq4_1",Be="_size1_4vcq4_5",Fe="_size2_4vcq4_11",We="_size3_4vcq4_16",Pe="_size4_4vcq4_21",Ge="_size5_4vcq4_27",Ue="_size6_4vcq4_33",Ke="_medium_4vcq4_39",Xe="_bold_4vcq4_43",Ye="_colorMuted_4vcq4_47",Qe="_colorDanger_4vcq4_51",Je="_colorSuccess_4vcq4_55",et="_colorWarning_4vcq4_59",se={text:Ae,size1:Be,size2:Fe,size3:We,size4:Pe,size5:Ge,size6:Ue,medium:Ke,bold:Xe,colorMuted:Ye,colorDanger:Qe,colorSuccess:Je,colorWarning:et},me=l.forwardRef(function({as:n="span",size:s,weight:o,color:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return l.createElement(n,{...x,ref:C,className:v(se.text,s&&se[`size${s}`],o&&se[o],r&&se[`color${r[0].toUpperCase()}${r.slice(1)}`],c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),tt="_heading_vs4zk_1",nt="_size4_vs4zk_7",st="_size5_vs4zk_13",ot="_size6_vs4zk_19",rt="_size7_vs4zk_25",lt="_size8_vs4zk_31",ct="_size9_vs4zk_37",at="_colorMuted_vs4zk_43",it="_colorDanger_vs4zk_47",ut="_alignCenter_vs4zk_51",X={heading:tt,size4:nt,size5:st,size6:ot,size7:rt,size8:lt,size9:ct,colorMuted:at,colorDanger:it,alignCenter:ut},he=l.forwardRef(function({as:n="h2",size:s,color:o,align:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return l.createElement(n,{...x,ref:C,className:v(X.heading,s&&X[`size${s}`],o==="muted"&&X.colorMuted,o==="danger"&&X.colorDanger,r==="center"&&X.alignCenter,c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),dt="_link_1qa7j_1",ft="_size1_1qa7j_10",_t="_size2_1qa7j_16",Ct="_size3_1qa7j_21",_e={link:dt,size1:ft,size2:_t,size3:Ct},pt=l.forwardRef(function({asChild:n,size:s,className:o,style:r,m:c,mt:a,mb:u,p:f,pb:m,children:i,...p},x){const C=v(_e.link,s&&_e[`size${s}`],o),g=Z({m:c,mt:a,mb:u,p:f,pb:m},r);if(n&&l.isValidElement(i)){const w=i;return l.cloneElement(w,{...p,className:v(C,w.props.className),style:{...g,...w.props.style}})}return t.jsx("a",{...p,ref:x,className:C,style:g,children:i})}),gt="_flex_v4ziu_1",mt="_gap1_v4ziu_5",ht="_gap2_v4ziu_9",vt="_gap3_v4ziu_13",xt="_gap4_v4ziu_17",wt="_gap5_v4ziu_21",bt="_gap6_v4ziu_25",jt="_directionRow_v4ziu_29",yt="_directionColumn_v4ziu_33",kt="_alignStart_v4ziu_37",Rt="_alignCenter_v4ziu_41",Lt="_alignEnd_v4ziu_45",$t="_alignBaseline_v4ziu_49",It="_alignStretch_v4ziu_53",qt="_justifyStart_v4ziu_57",Mt="_justifyCenter_v4ziu_61",zt="_justifyEnd_v4ziu_65",Nt="_justifyBetween_v4ziu_69",Dt="_wrapWrap_v4ziu_73",Et="_wrapNowrap_v4ziu_77",F={flex:gt,gap1:mt,gap2:ht,gap3:vt,gap4:xt,gap5:wt,gap6:bt,directionRow:jt,directionColumn:yt,alignStart:kt,alignCenter:Rt,alignEnd:Lt,alignBaseline:$t,alignStretch:It,justifyStart:qt,justifyCenter:Mt,justifyEnd:zt,justifyBetween:Nt,wrapWrap:Dt,wrapNowrap:Et},oe=e=>e[0].toUpperCase()+e.slice(1),Ht=l.forwardRef(function({asChild:n,gap:s,direction:o,align:r,justify:c,wrap:a,className:u,style:f,m,mt:i,mb:p,p:x,pb:C,children:g,...w},j){const b=v(F.flex,s&&F[`gap${s}`],o&&F[`direction${oe(o)}`],r&&F[`align${oe(r)}`],c&&F[`justify${oe(c)}`],a&&F[`wrap${oe(a)}`],u),R=Z({m,mt:i,mb:p,p:x,pb:C},f);if(n&&l.isValidElement(g)){const q=g;return l.cloneElement(q,{...w,className:v(b,q.props.className),style:{...R,...q.props.style}})}return t.jsx("div",{...w,ref:j,className:b,style:R,children:g})}),St=l.forwardRef(function({style:n,m:s,mt:o,mb:r,p:c,pb:a,...u},f){return t.jsx("div",{...u,ref:f,style:Z({m:s,mt:o,mb:r,p:c,pb:a},n)})}),Tt="_grid_erpqq_1",Zt="_cols1_erpqq_5",Vt="_cols2_erpqq_9",Ot="_cols3_erpqq_13",At="_smCols2_erpqq_18",Bt="_smCols3_erpqq_21",Ft="_mdCols2_erpqq_26",Wt="_mdCols3_erpqq_29",Pt="_gap1_erpqq_33",Gt="_gap2_erpqq_37",Ut="_gap3_erpqq_41",Kt="_gap4_erpqq_45",Xt="_gap5_erpqq_49",Yt="_gap6_erpqq_53",W={grid:Tt,cols1:Zt,cols2:Vt,cols3:Ot,smCols2:At,smCols3:Bt,mdCols2:Ft,mdCols3:Wt,gap1:Pt,gap2:Gt,gap3:Ut,gap4:Kt,gap5:Xt,gap6:Yt},Qt=l.forwardRef(function({columns:n,gap:s,className:o,style:r,m:c,mt:a,mb:u,p:f,pb:m,...i},p){const x=typeof n=="string"?[W[`cols${n}`]]:n?[n.initial&&W[`cols${n.initial}`],n.sm&&W[`smCols${n.sm}`],n.md&&W[`mdCols${n.md}`]]:[];return t.jsx("div",{...i,ref:p,className:v(W.grid,...x,s&&W[`gap${s}`],o),style:Z({m:c,mt:a,mb:u,p:f,pb:m},r)})}),Jt="_badge_1twqf_2",e1="_size1_1twqf_10",t1="_size2_1twqf_19",n1="_colorMuted_1twqf_28",s1="_colorPrimary_1twqf_33",o1="_colorSuccess_1twqf_38",r1="_colorDanger_1twqf_43",l1="_colorWarning_1twqf_48",c1="_colorCyan_1twqf_53",a1="_colorPurple_1twqf_58",i1="_colorOrange_1twqf_63",u1="_colorAccent_1twqf_68",d1="_colorYellow_1twqf_73",f1="_solid_1twqf_81",_1="_wrap_1twqf_89",Y={badge:Jt,size1:e1,size2:t1,colorMuted:n1,colorPrimary:s1,colorSuccess:o1,colorDanger:r1,colorWarning:l1,colorCyan:c1,colorPurple:a1,colorOrange:i1,colorAccent:u1,colorYellow:d1,solid:f1,wrap:_1},C1=e=>e[0].toUpperCase()+e.slice(1),p1=l.forwardRef(function({color:n="primary",variant:s="soft",size:o="1",wrap:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return t.jsx("span",{...x,ref:C,className:v(Y.badge,Y[`color${C1(n)}`],s==="solid"&&Y.solid,Y[`size${o}`],r&&Y.wrap,c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),g1="_separator_vao01_1",m1="_full_vao01_7",Ce={separator:g1,full:m1},h1=l.forwardRef(function({size:n="4",className:s,...o},r){return t.jsx("span",{...o,ref:r,role:"separator",className:v(Ce.separator,n==="4"&&Ce.full,s)})}),v1="_card_1ooot_2",x1="_image_1ooot_14",w1="_hasImage_1ooot_41",ae={card:v1,image:x1,hasImage:w1},b1=l.forwardRef(function({className:n,style:s,image:o,children:r,m:c,mt:a,mb:u,p:f,pb:m,...i},p){return t.jsxs("div",{...i,ref:p,className:v(ae.card,o!=null&&ae.hasImage,n),style:Z({m:c,mt:a,mb:u,p:f,pb:m},s),children:[o!=null&&t.jsx("div",{className:ae.image,children:o}),r]})}),j1="_spaceButton_kjhqx_14",y1="_rimRotate_kjhqx_1",k1="_glintSweep_kjhqx_1",R1="_iconOnly_kjhqx_97",L1="_lg_kjhqx_104",$1="_sm_kjhqx_110",I1="_micro_kjhqx_122",q1="_stars_kjhqx_136",M1="_fullWidth_kjhqx_141",z1="_ember_kjhqx_147",N1="_label_kjhqx_157",D1="_star_kjhqx_136",E1="_twinkle_kjhqx_1",S={spaceButton:j1,rimRotate:y1,glintSweep:k1,iconOnly:R1,lg:L1,sm:$1,micro:I1,stars:q1,fullWidth:M1,ember:z1,label:N1,star:D1,twinkle:E1};function H1(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function S1(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const ve=l.forwardRef(function({iconOnly:n,ember:s,size:o="md",fullWidth:r,animated:c=!0,className:a,children:u,...f},m){const i=l.useId(),p=l.useMemo(()=>{const C=H1(S1(i));return Array.from({length:3},()=>({top:`${12+C()*58}%`,left:`${8+C()*80}%`,animationDelay:`${(C()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+C()*1.8).toFixed(2)}s`}))},[i]),x=[S.spaceButton,n?S.iconOnly:"",s?S.ember:"",o!=="md"?S[o]:"",r?S.fullWidth:"",a??""].filter(Boolean).join(" ");return t.jsxs("button",{ref:m,className:x,"data-animated":c?void 0:"false",...f,children:[o!=="micro"&&t.jsx("span",{className:S.stars,"aria-hidden":!0,children:p.map((C,g)=>t.jsx("i",{className:S.star,style:C},g))}),t.jsx("span",{className:S.label,children:u})]})}),T1="_wrap_dwcut_5",Z1="_sm_dwcut_30",V1="_md_dwcut_36",O1="_lg_dwcut_42",A1="_orbit_dwcut_49",B1="_planet_dwcut_58",F1="_moon_dwcut_73",W1="_label_dwcut_92",P={wrap:T1,sm:Z1,md:V1,lg:O1,orbit:A1,planet:B1,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:F1,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:W1,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function P1({size:e="md",label:n,className:s}){return t.jsxs("div",{className:v(P.wrap,P[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[t.jsxs("span",{className:P.orbit,children:[t.jsx("span",{className:P.planet}),t.jsx("span",{className:P.moon})]}),n&&t.jsx("span",{className:P.label,children:n})]})}const G1="_content_1bxfq_6",U1={content:G1},K1=350,X1=80,re=8,Q=8;function Y1({triggerRef:e,tooltipId:n,show:s,hide:o,children:r}){const c=r.props;return l.cloneElement(r,{ref:e,"aria-describedby":n,onPointerEnter:a=>{var u;(u=c.onPointerEnter)==null||u.call(c,a),a.pointerType==="mouse"&&s()},onPointerLeave:a=>{var u;(u=c.onPointerLeave)==null||u.call(c,a),o()},onFocus:a=>{var u;(u=c.onFocus)==null||u.call(c,a),s(!0)},onBlur:a=>{var u;(u=c.onBlur)==null||u.call(c,a),o()},onClick:a=>{var u;(u=c.onClick)==null||u.call(c,a),o()}})}function xe({label:e,side:n="bottom",children:s}){const o=l.useId(),[r,c]=l.useState(!1),[a,u]=l.useState(null),f=l.useRef(null),m=l.useRef(null),i=l.useRef(null),p=l.useRef(null),x=()=>{i.current&&(clearTimeout(i.current),i.current=null),p.current&&(clearTimeout(p.current),p.current=null)},C=(w=!1)=>{if(x(),w){c(!0);return}i.current=setTimeout(()=>c(!0),K1)},g=()=>{x(),p.current=setTimeout(()=>c(!1),X1)};return l.useEffect(()=>x,[]),l.useLayoutEffect(()=>{const w=m.current;if(!w)return;if(!r){w.matches(":popover-open")&&w.hidePopover();return}w.matches(":popover-open")||w.showPopover();const j=f.current;if(!j)return;const b=j.getBoundingClientRect(),R=w.offsetWidth,q=w.offsetHeight,M=(_,y,I,H)=>Math.min(Math.max(_+y/2-I/2,Q),Math.max(H-I-Q,Q)),$=(_,y,I,H)=>{const A=y+I<=H-Q;return{fitsNear:_>=Q,fitsFar:A}};if(n==="left"||n==="right"){const _=b.right+re,y=b.left-R-re,{fitsNear:I,fitsFar:H}=$(y,_,R,window.innerWidth),A=n==="right"?H||!I?_:y:I||!H?y:_;u({top:M(b.top,b.height,q,window.innerHeight),left:A});return}const E=b.bottom+re,L=b.top-q-re,{fitsNear:z,fitsFar:V}=$(L,E,q,window.innerHeight);u({top:n==="bottom"?V||!z?E:L:z||!V?L:E,left:M(b.left,b.width,R,window.innerWidth)})},[r,n,e]),!e||!l.isValidElement(s)?t.jsx(t.Fragment,{children:s}):t.jsxs(t.Fragment,{children:[t.jsx(Y1,{triggerRef:f,tooltipId:o,show:C,hide:g,children:s}),t.jsx("div",{ref:m,id:o,popover:"auto",role:"tooltip",className:U1.content,style:a?{top:a.top,left:a.left}:void 0,onToggle:w=>{w.nativeEvent.newState==="closed"&&r&&c(!1)},children:e})]})}const Q1="_group_1tdav_4",J1="_segment_1tdav_15",en="_active_1tdav_35",tn="_vertical_1tdav_46",le={group:Q1,segment:J1,active:en,vertical:tn};function nn({options:e,value:n,onValueChange:s,orientation:o="horizontal",className:r=""}){const c=o==="vertical";return t.jsx("div",{className:`${le.group} ${c?le.vertical:""} ${r}`,role:"group",children:e.map(a=>t.jsx(xe,{label:a.label,side:c?"right":"bottom",children:t.jsx("button",{type:"button",className:`${le.segment} ${a.value===n?le.active:""}`,"aria-label":a.label,"aria-pressed":a.value===n,onClick:()=>{a.value!==n&&s(a.value)},children:a.icon})},a.value))})}const sn="_root_1bvtq_2",on="_trigger_1bvtq_7",rn="_labelWrap_1bvtq_30",ln="_sizer_1bvtq_8",cn="_triggerLabel_1bvtq_70",an="_chevron_1bvtq_77",un="_listbox_1bvtq_82",dn="_item_1bvtq_110",T={root:sn,trigger:on,labelWrap:rn,sizer:ln,triggerLabel:cn,chevron:an,listbox:un,item:dn},fn="_spaceControl_4ou97_17",_n="_spaceSlider_4ou97_74",Cn="_spacePanel_4ou97_111",pn="_spaceInput_4ou97_34",gn="_spaceTextArea_4ou97_226",mn={spaceControl:fn,spaceSlider:_n,spacePanel:Cn,spaceInput:pn,spaceTextArea:gn},O=mn,we=l.createContext(null),hn=()=>{const e=l.useContext(we);if(!e)throw new Error("Select.Item must be inside a Select");return e},be=(e,n)=>`${e}-${encodeURIComponent(n)}`;function vn(e){const n=[],s=o=>{l.Children.forEach(o,r=>{if(!l.isValidElement(r))return;const c=r.props;r.type===je&&typeof c.value=="string"?n.push({value:c.value,label:c.children,disabled:c.disabled}):c.children&&s(c.children)})};return s(e),n}function xn({value:e,onValueChange:n,disabled:s,placeholder:o,animated:r=!0,className:c,children:a,...u}){const[f,m]=l.useState(!1),[i,p]=l.useState(null),x=l.useId(),C=l.useRef(null),g=l.useRef(null),w=l.useRef(null),[j,b]=l.useState(null),[R,q]=l.useState(null),M=l.useMemo(()=>vn(a),[a]),$=l.useMemo(()=>M.filter(_=>!_.disabled).map(_=>_.value),[M]),E=l.useMemo(()=>M.map(_=>_.label),[M]),L=l.useCallback(_=>{var y;return((y=M.find(I=>I.value===_))==null?void 0:y.label)??null},[M]);l.useEffect(()=>{if(!f)return;const _=y=>{g.current&&!g.current.contains(y.target)&&m(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[f]),l.useLayoutEffect(()=>{if(!f)return;const _=C.current;if(!_)return;const y=_.getBoundingClientRect();b(_.offsetWidth);const I=window.innerHeight-y.bottom-16;q(Math.min(380,Math.max(120,I)))},[f]),l.useEffect(()=>{var _;f&&((_=w.current)==null||_.focus())},[f]);const z=_=>{p(_??$[0]??null),m(!0)},V=_=>{const y=i?$.indexOf(i):-1,I=Math.min(Math.max(y+_,0),$.length-1);p($[I]??null)},N=e?L(e):null;return t.jsx(we.Provider,{value:{value:e,onValueChange:n,disabled:s,open:f,setOpen:m,highlighted:i,setHighlighted:p,listboxId:x,values:$,labelFor:L,triggerRef:C},children:t.jsxs("div",{ref:g,className:T.root,children:[t.jsxs("button",{type:"button",...u,ref:C,disabled:s,className:v(T.trigger,O.spaceControl,"spSelectTrigger",c),"data-animated":r?void 0:"false","data-state":f?"open":"closed","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":x,onClick:()=>f?m(!1):z(e||null),onKeyDown:_=>{(_.key==="ArrowDown"||_.key==="Enter"||_.key===" ")&&(_.preventDefault(),z(e||null))},children:[t.jsxs("span",{className:T.labelWrap,children:[t.jsxs("span",{className:T.sizer,"data-sizer":"","aria-hidden":"true",children:[E.map((_,y)=>t.jsx("span",{children:_},y)),o&&t.jsx("span",{children:o})]}),t.jsx("span",{className:T.triggerLabel,children:N??o??""})]}),t.jsx("svg",{className:T.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:t.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),t.jsx("div",{ref:w,id:x,role:"listbox",tabIndex:-1,hidden:!f,"aria-activedescendant":i?be(x,i):void 0,className:v(T.listbox,O.spacePanel),"data-animated":r?void 0:"false",style:j!=null||R!=null?{...j!=null?{"--_select-trigger-width":`${j}px`}:{},...R!=null?{maxHeight:`${R}px`}:{}}:void 0,onKeyDown:_=>{var y,I;_.key==="Escape"?(_.stopPropagation(),m(!1),(y=C.current)==null||y.focus()):_.key==="ArrowDown"?(_.preventDefault(),V(1)):_.key==="ArrowUp"?(_.preventDefault(),V(-1)):_.key==="Home"?(_.preventDefault(),p($[0]??null)):_.key==="End"?(_.preventDefault(),p($[$.length-1]??null)):_.key==="Enter"||_.key===" "?(_.preventDefault(),i&&(n(i),m(!1),(I=C.current)==null||I.focus())):_.key==="Tab"&&m(!1)},children:a})]})})}function je({value:e,disabled:n,children:s}){const o=hn(),r=o.value===e,c=o.highlighted===e;return t.jsx("div",{id:be(o.listboxId,e),role:"option","aria-selected":r,"aria-disabled":n||void 0,"data-highlighted":c?"":void 0,className:v(T.item,"spSelectItem"),onMouseEnter:()=>!n&&o.setHighlighted(e),onClick:()=>{var a;n||(o.onValueChange(e),o.setOpen(!1),(a=o.triggerRef.current)==null||a.focus())},children:s})}const wn=Object.assign(xn,{Item:je}),bn="_root_1lx7y_1",jn="_input_1lx7y_7",yn="_slot_1lx7y_17",ie={root:bn,input:jn,slot:yn},kn=l.forwardRef(function({className:n,style:s,animated:o=!0,children:r,...c},a){return t.jsxs("div",{className:v(ie.root,O.spaceInput,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:[r,t.jsx("input",{...c,ref:a,className:v(ie.input,"spTextFieldInput")})]})});function Rn({children:e}){return t.jsx("span",{className:ie.slot,children:e})}const ue=Object.assign(kn,{Slot:Rn}),Ln="_root_1qu6w_1",$n="_textarea_1qu6w_6",pe={root:Ln,textarea:$n},In=l.forwardRef(function({className:n,style:s,animated:o=!0,...r},c){return t.jsx("div",{className:v(pe.root,O.spaceInput,O.spaceTextArea,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:t.jsx("textarea",{...r,ref:c,className:v(pe.textarea,"spTextAreaInput")})})}),qn="_wrap_1pkwo_12",Mn="_field_1pkwo_16",zn="_panel_1pkwo_22",Nn="_status_1pkwo_34",Dn="_list_1pkwo_44",En="_option_1pkwo_57",Hn="_active_1pkwo_69",Sn="_label_1pkwo_79",Tn="_meta_1pkwo_86",Zn="_footer_1pkwo_92",D={wrap:qn,field:Mn,panel:zn,status:Nn,list:Dn,option:En,active:Hn,label:Sn,meta:Tn,footer:Zn};function Vn({value:e,onValueChange:n,options:s,onSelect:o,icon:r,caseSensitive:c=!1,preFiltered:a=!1,loading:u=!1,loadingMessage:f="Loading…",emptyMessage:m,footer:i,animated:p=!0,className:x,style:C,...g}){const[w,j]=l.useState(!1),[b,R]=l.useState(0),q=l.useRef(null),M=l.useRef(null),$=l.useId(),E=d=>typeof d.label=="string"?d.label:d.search??d.value,L=l.useMemo(()=>{if(a)return s;const d=c?e:e.toLowerCase();return d===""?s:s.filter(h=>(c?E(h):E(h).toLowerCase()).includes(d))},[s,e,c,a]),z=l.useMemo(()=>L.filter(d=>!d.disabled),[L]),V=L.length>0||u||m!=null,N=w&&V;l.useEffect(()=>R(0),[L]),l.useEffect(()=>{var h;if(!N)return;const d=(h=M.current)==null?void 0:h.querySelector(`[data-index="${b}"]`);d==null||d.scrollIntoView({block:"nearest"})},[b,N]);const _=l.useCallback(()=>j(!1),[]);l.useEffect(()=>{if(!N)return;const d=h=>{const B=q.current;B&&h.target instanceof Node&&!B.contains(h.target)&&_()};return document.addEventListener("pointerdown",d),()=>document.removeEventListener("pointerdown",d)},[N,_]);const y=d=>{d.disabled||(o(d.value,d),j(!1))},I=d=>{if(z.length===0)return;const h=L[b],Oe=((h&&!h.disabled?z.indexOf(h):-1)+d+z.length)%z.length,fe=z[Oe];fe&&R(L.indexOf(fe))},H=d=>{if(d.key==="Escape"){N&&d.stopPropagation(),j(!1);return}if(d.key==="Tab"){j(!1);return}if(!N){d.key==="ArrowDown"&&j(!0);return}if(d.key==="ArrowDown")d.preventDefault(),I(1);else if(d.key==="ArrowUp")d.preventDefault(),I(-1);else if(d.key==="Home"){d.preventDefault();const h=z[0];h&&R(L.indexOf(h))}else if(d.key==="End"){d.preventDefault();const h=z[z.length-1];h&&R(L.indexOf(h))}else if(d.key==="Enter"){const h=L[b];h&&!h.disabled&&(d.preventDefault(),y(h))}},A=N?L[b]:void 0;return t.jsxs("div",{ref:q,className:v(D.wrap,x),style:C,children:[t.jsx(ue,{...g,type:g.type??"text",role:"combobox",animated:p,className:D.field,autoComplete:"off","aria-expanded":N,"aria-controls":$,"aria-autocomplete":"list","aria-activedescendant":A&&!A.disabled?`${$}-${b}`:void 0,value:e,onFocus:d=>{var h;(h=g.onFocus)==null||h.call(g,d),j(!0)},onClick:d=>{var h;(h=g.onClick)==null||h.call(g,d),j(!0)},onKeyDown:d=>{var h;(h=g.onKeyDown)==null||h.call(g,d),H(d)},onChange:d=>{n(d.target.value),j(!0)},children:r!=null&&t.jsx(ue.Slot,{children:r})}),t.jsxs("div",{className:v(D.panel,O.spacePanel),hidden:!N,"data-animated":p?void 0:"false",children:[u&&t.jsx("p",{className:D.status,children:f}),!u&&L.length===0&&m!=null&&t.jsx("p",{className:D.status,children:m}),t.jsx("ul",{ref:M,id:$,role:"listbox",className:D.list,hidden:u||L.length===0,children:L.map((d,h)=>t.jsxs("li",{id:`${$}-${h}`,"data-index":h,role:"option","aria-selected":h===b,"aria-disabled":d.disabled||void 0,className:v(D.option,h===b&&!d.disabled&&D.active,"spAutocompleteOption"),onMouseEnter:()=>!d.disabled&&R(h),onPointerDown:B=>{B.preventDefault(),y(d)},children:[t.jsx("span",{className:D.label,children:d.label}),d.meta!=null&&t.jsx("span",{className:D.meta,children:d.meta})]},d.value))}),i!=null&&t.jsx("div",{className:D.footer,children:i})]})]})}const On="_root_14a1b_1",An="_track_14a1b_12",Bn="_range_14a1b_22",Fn="_thumb_14a1b_28",Wn="_input_14a1b_38",J={root:On,track:An,range:Bn,thumb:Fn,input:Wn},Pn=l.forwardRef(function({value:n,onValueChange:s,min:o,max:r,step:c,disabled:a,className:u,"aria-label":f},m){const i=n[0]??o,p=r===o?0:(i-o)/(r-o)*100;return t.jsxs("span",{className:v(J.root,O.spaceSlider,u),"data-disabled":a||void 0,children:[t.jsx("span",{className:v(J.track,"spSliderTrack"),children:t.jsx("span",{className:v(J.range,"spSliderRange"),style:{width:`${p}%`}})}),t.jsx("span",{className:v(J.thumb,"spSliderThumb"),style:{left:`${p}%`}}),t.jsx("input",{ref:m,type:"range",className:v(J.input,"spSliderInput"),value:i,min:o,max:r,step:c,disabled:a,"aria-label":f,onChange:x=>s([Number(x.target.value)])})]})}),Gn="_root_1qhel_2",Un="_item_1qhel_8",Kn="_selfLabeled_1qhel_15",Xn="_input_1qhel_19",Yn="_orb_1qhel_35",U={root:Gn,item:Un,selfLabeled:Kn,input:Xn,orb:Yn},ye=l.createContext(null);function Qn({value:e,onValueChange:n,disabled:s,className:o,children:r}){const c=l.useId();return t.jsx(ye.Provider,{value:{value:e,onValueChange:n,disabled:s,name:c},children:t.jsx("div",{role:"radiogroup",className:v(U.root,o),children:r})})}function Jn({value:e,disabled:n,children:s}){const o=l.useContext(ye);if(!o)throw new Error("RadioGroup.Item must be inside a RadioGroup");const r=n||o.disabled,c=t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"radio",className:U.input,name:o.name,value:e,checked:o.value===e,disabled:r,onChange:()=>o.onValueChange(e)}),t.jsx("span",{className:v(U.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?t.jsx("span",{className:U.item,children:c}):t.jsxs("label",{className:v(U.item,U.selfLabeled),children:[c,s]})}const es=Object.assign(Qn,{Item:Jn}),ts="_progress_1cre6_16",ns={progress:ts};function ss({value:e,max:n=100,className:s,style:o,...r}){const c=n>0?Math.min(Math.max(e/n*100,0),100):0;return t.jsx("div",{...r,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:v(ns.progress,s),style:o,children:t.jsx("div",{style:{width:`${c}%`,height:"100%"}})})}const k={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function os(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function rs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ls(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function cs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function as(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function is(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function us(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ds(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function fs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function _s(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Cs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ps(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function gs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ms(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function hs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function vs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function xs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ws(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function bs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ke(e){return t.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:t.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}function Re(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Le(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function $e(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const js="_message_1522x_14",ys="_info_1522x_44",ks="_warning_1522x_49",Rs="_alert_1522x_56",Ls="_icon_1522x_63",$s="_body_1522x_74",Is="_title_1522x_83",qs="_text_1522x_90",G={message:js,info:ys,warning:ks,alert:Rs,icon:Ls,body:$s,title:Is,text:qs},Ms={info:t.jsx(Re,{}),warning:t.jsx(Le,{}),alert:t.jsx($e,{})},zs={info:{role:"status",live:"polite"},warning:{role:"status",live:"polite"},alert:{role:"alert"}},Ns=l.forwardRef(function({variant:n="info",title:s,icon:o,className:r,children:c,...a},u){const f=o===void 0?Ms[n]:o,{role:m,live:i}=zs[n];return t.jsxs("div",{...a,ref:u,role:m,"aria-live":i,className:v(G.message,G[n],r),children:[f!=null&&t.jsx("span",{className:G.icon,"aria-hidden":"true",children:f}),t.jsxs("div",{className:G.body,children:[s!=null&&t.jsx("p",{className:G.title,children:s}),c!=null&&t.jsx("div",{className:G.text,children:c})]})]})}),Ds="_dialog_1qqku_2",Es="_inner_1qqku_34",Hs="_size4_1qqku_39",Ss="_title_1qqku_43",Ts="_closeX_1qqku_51",ee={dialog:Ds,inner:Es,size4:Hs,title:Ss,closeX:Ts};let ce=0;const Ie=l.createContext(null),ne=()=>{const e=l.useContext(Ie);if(!e)throw new Error("Dialog parts must be inside a Dialog");return e};function qe(e){return function({open:s,onOpenChange:o,children:r}){const[c,a]=l.useState(!1),u=s!==void 0,f=u?s:c,m=g=>{u||a(g),o==null||o(g)},i=l.useId(),p=l.useId(),[x,C]=l.useState(!1);return t.jsx(Ie.Provider,{value:{open:f,setOpen:m,titleId:i,descId:p,alert:e,hasDesc:x,setHasDesc:C},children:r})}}const Zs=qe(!1),Me=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:o=>{var r,c;(c=(r=s.props).onClick)==null||c.call(r,o),n()}})};function ze({children:e}){const n=ne();return t.jsx(t.Fragment,{children:Me(e,()=>n.setOpen(!0))})}function de({children:e}){const n=ne();return t.jsx(t.Fragment,{children:Me(e,()=>n.setOpen(!1))})}function Ne({size:e="3",maxWidth:n,className:s,style:o,children:r,...c}){const a=ne(),u=l.useRef(null),f=l.useRef(!1),m=l.useRef(!1);return l.useEffect(()=>{const i=u.current;i&&(a.open&&!i.open?i.showModal():!a.open&&i.open&&i.close())},[a.open]),l.useEffect(()=>{if(a.open)return ce+=1,ce===1&&(document.body.style.overflow="hidden"),()=>{ce-=1,ce===0&&(document.body.style.overflow="")}},[a.open]),t.jsx("dialog",{...c,ref:u,role:a.alert?"alertdialog":void 0,"aria-labelledby":a.titleId,"aria-describedby":a.hasDesc?a.descId:void 0,className:v(ee.dialog,"spDialog",e==="4"&&ee.size4,s),style:{...n?{maxWidth:n}:null,...o},onKeyDownCapture:i=>{var p,x;i.key==="Escape"&&((p=u.current)!=null&&p.querySelector("dialog[open]")||(x=u.current)!=null&&x.querySelector('[role="listbox"]:not([hidden])')&&(f.current=!0))},onCancel:i=>{if(i.preventDefault(),f.current){f.current=!1;return}a.setOpen(!1)},onClose:()=>{a.open&&a.setOpen(!1)},onPointerDown:i=>{m.current=i.target===u.current},onClick:i=>{!a.alert&&i.target===u.current&&m.current&&a.setOpen(!1)},children:t.jsxs("div",{className:ee.inner,children:[!a.alert&&t.jsx("button",{type:"button",className:ee.closeX,"aria-label":"Close",onClick:()=>a.setOpen(!1),children:t.jsx(ke,{width:16,height:16})}),r]})})}function De({className:e,...n}){const s=ne();return t.jsx(he,{as:"h2",size:"5",...n,id:s.titleId,className:v(ee.title,e)})}function Ee(e){const n=ne(),{setHasDesc:s}=n;return l.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),t.jsx(me,{as:"p",...e,id:n.descId})}const Vs=Object.assign(Zs,{Trigger:ze,Close:de,Content:Ne,Title:De,Description:Ee}),Os=de,As=de,Bs=Object.assign(qe(!0),{Trigger:ze,Content:Ne,Title:De,Description:Ee,Cancel:Os,Action:As}),Fs="_menu_1hwyv_1",Ws="_label_1hwyv_16",Ps="_item_1hwyv_26",Gs="_danger_1hwyv_45",Us="_separator_1hwyv_49",te={menu:Fs,label:Ws,item:Ps,danger:Gs,separator:Us},He=l.createContext(null),Ks=()=>{const e=l.useContext(He);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e},Se=l.createContext(null),Xs=()=>{const e=l.useContext(Se);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e};function Ys(e){return e.current?(e.current=!1,!0):!1}function ge(e){e.current=!0}function Qs({label:e,align:n="start",children:s,...o}){const[r,c]=l.useState(!1),a=l.useId(),u=l.useRef(null),f=l.useRef(null),m=l.useRef(!1),i=l.useRef(!1),[p,x]=l.useState(null);return l.useLayoutEffect(()=>{var g;const C=f.current;if(C)if(r){const w=u.current;if(w){const j=w.getBoundingClientRect(),b=n==="end"?"auto":j.left,R=n==="end"?window.innerWidth-j.right:"auto";x({top:j.bottom+6,left:b,right:R})}C.showPopover(),(g=C.querySelector('[role="menuitem"]'))==null||g.focus()}else C.matches(":popover-open")&&C.hidePopover()},[r,n]),l.useEffect(()=>{if(!r)return;const C=()=>c(!1);return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[r]),t.jsx(He.Provider,{value:{open:r,setOpen:c,menuId:a},children:t.jsxs(Se.Provider,{value:i,children:[t.jsx(ve,{...o,ref:u,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":a,onClick:C=>{var g;(g=o.onClick)==null||g.call(o,C),!Ys(m)&&c(!r)},children:e}),t.jsx("div",{ref:f,id:a,role:"menu",popover:"auto",className:te.menu,style:p?{top:p.top,left:p.left==="auto"?"auto":p.left,right:p.right==="auto"?"auto":p.right}:void 0,onToggle:C=>{if(C.nativeEvent.newState==="closed"){const g=i.current;i.current=!1,g||(m.current=!0,setTimeout(()=>{m.current=!1},300)),r&&c(!1)}},onKeyDown:C=>{var j,b,R,q,M,$;const g=Array.from(((j=f.current)==null?void 0:j.querySelectorAll('[role="menuitem"]'))??[]),w=g.indexOf(document.activeElement);C.key==="ArrowDown"?(C.preventDefault(),(b=g[Math.min(w+1,g.length-1)])==null||b.focus()):C.key==="ArrowUp"?(C.preventDefault(),(R=g[Math.max(w-1,0)])==null||R.focus()):C.key==="Home"?(C.preventDefault(),(q=g[0])==null||q.focus()):C.key==="End"?(C.preventDefault(),(M=g[g.length-1])==null||M.focus()):C.key==="Escape"&&(c(!1),($=u.current)==null||$.focus())},children:s})]})})}function Js({children:e}){return t.jsx("div",{className:te.label,children:e})}function eo({asChild:e,color:n,onSelect:s,children:o}){const r=Ks(),c=Xs(),a=v(te.item,n==="danger"&&te.danger),u=()=>{ge(c),r.setOpen(!1),s==null||s()};if(e&&l.isValidElement(o)){const f=o,{className:m,onClick:i,children:p,role:x,tabIndex:C,...g}=f.props,w=f.ref;return l.createElement(f.type,{key:f.key,ref:w,role:"menuitem",tabIndex:-1,...g,className:v(a,m),onClick:j=>{i==null||i(j),ge(c),r.setOpen(!1)}},p)}return t.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:a,onClick:u,children:o})}function to(){return t.jsx("div",{role:"separator",className:te.separator})}const no=Object.assign(Qs,{Item:eo,Separator:to,Label:Js}),so="_list_1hc3r_19",oo="_trigger_1hc3r_28",Te={list:so,trigger:oo},Ze=l.createContext(null),Ve=()=>{const e=l.useContext(Ze);if(!e)throw new Error("Tabs parts must be inside a Tabs");return e};function ro({value:e,onValueChange:n,className:s,children:o}){const r=l.useId();return t.jsx(Ze.Provider,{value:{value:e,onValueChange:n,id:r},children:t.jsx("div",{className:s,children:o})})}function lo({children:e}){return t.jsx("div",{role:"tablist",className:v(Te.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),o=s.indexOf(document.activeElement);if(o!==-1){if(n.key==="ArrowRight"){n.preventDefault();const r=s[(o+1)%s.length];r.focus(),r.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const r=s[(o-1+s.length)%s.length];r.focus(),r.click()}else if(n.key==="Home"){n.preventDefault();const r=s[0];r.focus(),r.click()}else if(n.key==="End"){n.preventDefault();const r=s[s.length-1];r.focus(),r.click()}}},children:e})}function co({value:e,className:n,children:s,...o}){const r=Ve(),c=r.value===e;return t.jsx("button",{...o,type:"button",role:"tab",id:`${r.id}-tab-${e}`,"aria-selected":c,"aria-controls":`${r.id}-panel-${e}`,tabIndex:c?0:-1,"data-state":c?"active":"inactive",className:v(Te.trigger,"spTabsTrigger",n),onClick:()=>r.onValueChange(e),children:s})}function ao({value:e,children:n}){const s=Ve();return s.value!==e?null:t.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const io=Object.assign(ro,{List:lo,Trigger:co,Content:ao});exports.AlertDialog=Bs;exports.Autocomplete=Vn;exports.Badge=p1;exports.BookmarkIcon=bs;exports.Box=St;exports.Button=ve;exports.Card=b1;exports.ChatBubbleIcon=rs;exports.CheckIcon=ds;exports.ChevronDownIcon=vs;exports.ChevronLeftIcon=ws;exports.ChevronRightIcon=xs;exports.ChevronUpIcon=hs;exports.CrossCircledIcon=$e;exports.Dialog=Vs;exports.DropdownMenu=no;exports.EnterFullScreenIcon=us;exports.ExclamationTriangleIcon=Le;exports.ExitFullScreenIcon=is;exports.Flex=Ht;exports.Grid=Qt;exports.Heading=he;exports.HeartFilledIcon=as;exports.HeartIcon=ms;exports.IconToggle=nn;exports.InfoCircledIcon=Re;exports.Link=pt;exports.Loader=P1;exports.MagnifyingGlassIcon=gs;exports.Message=Ns;exports.MinusIcon=ps;exports.Pencil1Icon=cs;exports.PersonIcon=Cs;exports.PlusIcon=ls;exports.Progress=ss;exports.QuestionMarkCircledIcon=_s;exports.RadioGroup=es;exports.Select=wn;exports.Separator=h1;exports.Share2Icon=os;exports.Slider=Pn;exports.Tabs=io;exports.Text=me;exports.TextArea=In;exports.TextField=ue;exports.Tooltip=xe;exports.TrashIcon=fs;exports.XIcon=ke;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|