@recursica/mantine-adapter 0.46.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/index.d.ts +17 -5
- package/dist/mantine-adapter.cjs +2 -2
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +1723 -1645
- package/dist/mantine-adapter.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Slider/IMPLEMENTATION_NOTES.md +33 -0
- package/src/components/Slider/Slider.module.css +28 -2
- package/src/components/Slider/Slider.stories.tsx +109 -0
- package/src/components/Slider/Slider.tsx +169 -43
- package/src/components/Slider/USAGE.md +15 -1
- package/src/components/Tree/IMPLEMENTATION_NOTES.md +3 -0
- package/src/components/Tree/Tree.tsx +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @recursica/mantine-adapter
|
|
2
2
|
|
|
3
|
+
## 0.48.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b7f76d8: Slider: added two-thumb range mode via a `[number, number]` value/onChange, fixed `trailingIcon` rendering after the numeric input instead of before it, and fixed marks (mantine) and mark labels (mantine, mui) rendering off Mantine/MUI internal defaults instead of recursica tokens, leaving marks vertically off-center and label spacing too tight.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- d8a0da1: Fix Tree's chevron button stealing DOM focus on click while `aria-hidden`, which browsers flag as an accessibility violation.
|
|
12
|
+
- Updated dependencies [b7f76d8]
|
|
13
|
+
- @recursica/adapter-common@0.23.0
|
|
14
|
+
|
|
15
|
+
## 0.47.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- e4759d1: Slider: fixed the raw numeric value duplicating next to the track when `tooltipLabel` is a formatter (now reuses the same formatter), added `minLabel`/`maxLabel` overrides for the track's end labels, and added a `trailingIcon` prop alongside the existing leading `icon`.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [e4759d1]
|
|
24
|
+
- @recursica/adapter-common@0.22.0
|
|
25
|
+
|
|
3
26
|
## 0.46.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2480,7 +2480,7 @@ export declare interface RecursicaSegmentedControlProps {
|
|
|
2480
2480
|
*/
|
|
2481
2481
|
export declare type RecursicaSize = "small" | "default" | "large";
|
|
2482
2482
|
|
|
2483
|
-
export declare interface RecursicaSliderProps extends Omit<SliderProps, "size" | "variant" | "radius" | "wrapperProps" | "classNames" | "styles" | "label">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, Pick<InputWrapperProps, "error" | "required" | "withAsterisk">, ReadOnlyControlProps, RecursicaSliderProps_2 {
|
|
2483
|
+
export declare interface RecursicaSliderProps extends Omit<SliderProps, "size" | "variant" | "radius" | "wrapperProps" | "classNames" | "styles" | "label" | "value" | "defaultValue" | "onChange" | "onChangeEnd">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, Pick<InputWrapperProps, "error" | "required" | "withAsterisk">, ReadOnlyControlProps, RecursicaSliderProps_2 {
|
|
2484
2484
|
}
|
|
2485
2485
|
|
|
2486
2486
|
/**
|
|
@@ -2493,20 +2493,30 @@ declare interface RecursicaSliderProps_2 {
|
|
|
2493
2493
|
required?: boolean;
|
|
2494
2494
|
/** Render visual asterisk */
|
|
2495
2495
|
withAsterisk?: boolean;
|
|
2496
|
+
/** Controlled value. Pass a `[number, number]` tuple to render a two-thumb range slider. */
|
|
2497
|
+
value?: number | [number, number];
|
|
2498
|
+
/** Uncontrolled initial value. Pass a `[number, number]` tuple to render a two-thumb range slider. */
|
|
2499
|
+
defaultValue?: number | [number, number];
|
|
2496
2500
|
/** Callback triggered when slider value changes */
|
|
2497
|
-
onChange?: (value: number) => void;
|
|
2501
|
+
onChange?: (value: number | [number, number]) => void;
|
|
2498
2502
|
/** Callback triggered when dragging ends */
|
|
2499
|
-
onChangeEnd?: (value: number) => void;
|
|
2503
|
+
onChangeEnd?: (value: number | [number, number]) => void;
|
|
2500
2504
|
/** Visual form label above track */
|
|
2501
2505
|
label?: default_2.ReactNode;
|
|
2502
2506
|
/** Custom formatter function or React node for tooltip label */
|
|
2503
2507
|
tooltipLabel?: default_2.ReactNode | ((value: number) => default_2.ReactNode);
|
|
2504
2508
|
/** Icon shown to the left of the slider track */
|
|
2505
2509
|
icon?: default_2.ReactNode;
|
|
2510
|
+
/** Icon shown to the right of the slider track */
|
|
2511
|
+
trailingIcon?: default_2.ReactNode;
|
|
2506
2512
|
/** Render numeric input side-by-side or stacked */
|
|
2507
2513
|
showInput?: boolean;
|
|
2508
2514
|
/** Show min and max labels below track */
|
|
2509
2515
|
showMinMaxLabels?: boolean;
|
|
2516
|
+
/** Override the label shown at the minimum end of the track. Defaults to the numeric `min`. */
|
|
2517
|
+
minLabel?: default_2.ReactNode;
|
|
2518
|
+
/** Override the label shown at the maximum end of the track. Defaults to the numeric `max`. */
|
|
2519
|
+
maxLabel?: default_2.ReactNode;
|
|
2510
2520
|
}
|
|
2511
2521
|
|
|
2512
2522
|
/**
|
|
@@ -2890,10 +2900,12 @@ declare type SegmentedControlProps = RecursicaOverStyled<Omit<SegmentedControlPr
|
|
|
2890
2900
|
export declare const Slider: typeof rawComponents.Slider;
|
|
2891
2901
|
|
|
2892
2902
|
/**
|
|
2893
|
-
* Recursica Slider component wrapping Mantine's Slider
|
|
2903
|
+
* Recursica Slider component wrapping Mantine's Slider (or, when `value`/`defaultValue` is a
|
|
2904
|
+
* `[number, number]` tuple, Mantine's two-thumb RangeSlider).
|
|
2894
2905
|
*
|
|
2895
2906
|
* Implements a bidirectional text input field next to the slider track, responsive layouts,
|
|
2896
|
-
* custom typography-bound min/max labels
|
|
2907
|
+
* custom typography-bound min/max labels (optionally overridden via `minLabel`/`maxLabel`),
|
|
2908
|
+
* optional leading/trailing icons, and an explicit read-only layout.
|
|
2897
2909
|
*/
|
|
2898
2910
|
declare const Slider_2: default_2.ForwardRefExoticComponent<SliderProps_2 & default_2.RefAttributes<HTMLDivElement>>;
|
|
2899
2911
|
|
package/dist/mantine-adapter.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),u=require("@mantine/core"),gt=require("@mantine/dates"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),u=require("@mantine/core"),gt=require("@mantine/dates"),wr=require("@mantine/hooks");var Fo=typeof document<"u"?document.currentScript:null;const gr="_root_1qhn7_3",Tr="_contents_1qhn7_18",io={root:gr,contents:Tr},Ho=i.forwardRef(function({layer:a,contentsOnly:e,children:r,className:t,style:s,...n},l){const c=e?t?`${io.root} ${io.contents} ${t}`:`${io.root} ${io.contents}`:t?`${io.root} ${t}`:io.root;return o.jsx("div",{ref:l,className:c,style:s,...e?{}:{"data-recursica-layer":String(a)},...n,children:r})});Ho.displayName="Layer";const bo=({emptyText:a="N/A"})=>o.jsx(i.Fragment,{children:a});bo.displayName="EmptyValueRenderer";bo.check=a=>a==null||a===""||Array.isArray(a)&&a.length===0;const Sr={BASE_URL:"/",DEV:!1,MODE:"library",PROD:!0,SSR:!1,VITE_PLUGIN_MODE:"production",VITE_PLUGIN_PHRASE:"recursica_plugin_@K9mX7pQw2VbN8fRt3LzY6HjE4CuA5DsG1WvM9nP0XcB7",VITE_PLUGIN_PHRASE_TEST:"recursica_plugin_@19866374",VITE_RECURSICA_API_TEST:"https://dev-api.recursica.com",VITE_RECURSICA_API_URL:"https://api.recursica.com",VITE_RECURSICA_UI_URL:"https://api.recursica.com"},eo=(()=>{try{if(typeof process<"u"&&process.env&&process.env.NODE_ENV)return process.env.NODE_ENV!=="production"}catch{}try{if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Fo&&Fo.tagName.toUpperCase()==="SCRIPT"&&Fo.src||new URL("mantine-adapter.cjs",document.baseURI).href}&&Sr)return!0}catch{}if(typeof window<"u"){const a=window.location.hostname;return a==="localhost"||a==="127.0.0.1"||a.endsWith(".local")}return!1})(),Go=new Set;let Xe=!1;function Tt(a){if(!eo)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(Xe=a!==void 0?a:!Xe,typeof document<"u"){const e=document.documentElement,r=Xe?"0 0 0 2px cyan":"none";e.style.setProperty("--recursica-over-styled-shadow",r),console.log(`[Recursica] Highlight outlines toggled: ${Xe?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return Go.forEach(e=>e()),Xe}function $r(){return eo&&Xe}function St(){const[a,e]=i.useState(Xe);return i.useEffect(()=>{if(!eo)return;qo(),Ko();const r=()=>e(Xe);return Go.add(r),()=>{Go.delete(r)}},[]),eo&&a}function qo(){if(!eo)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const a="recursica-over-styled-styles";let e=document.getElementById(a);e||(e=document.createElement("style"),e.id=a,e.textContent=`
|
|
2
2
|
:root {
|
|
3
3
|
--recursica-over-styled-shadow: none;
|
|
4
4
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
.recursica-over-styled > * {
|
|
9
9
|
box-shadow: var(--recursica-over-styled-shadow) !important;
|
|
10
10
|
}
|
|
11
|
-
`,document.head.appendChild(e))}function Ko(){if(!Je)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const r=e=>{try{e.recursica=e.recursica||{},e.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Tt()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};r(window),window.parent&&window.parent!==window&&r(window.parent)}const yt="data-recursica-theme";function Rn({children:r,theme:e="light",initLayer0:n=!0}){return i.useEffect(()=>{const t=document.documentElement;return t.setAttribute(yt,e),()=>{t.removeAttribute(yt)}},[e]),i.useEffect(()=>{qo(),Ko()},[]),n?o.jsx(Ho,{layer:0,children:r}):o.jsx(o.Fragment,{children:r})}const On=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Box","Breadcrumb","Button","Card","Checkbox","CheckboxGroup","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","FileInput","FileUpload","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList","Tree","Typography"],kn=(r,e)=>{const n=document.activeElement;return new Promise((t,s)=>{if(e&&e.current){const a=document.createElement("textarea");a.readOnly=!0,a.defaultValue=r,e.current.appendChild(a),a.select();const l=document.execCommand("copy");e.current.removeChild(a),n&&n.focus(),l?t():s(new Error("Failed to copy"))}else s(new Error("Copy area reference is not defined"))})};function Yo(r,e){const n=(e??"").split(",").map(a=>a.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;const t=r.name.toLowerCase(),s=r.type.toLowerCase();return n.some(a=>a.startsWith(".")?t.endsWith(a):a.endsWith("/*")?s.startsWith(a.slice(0,-1)):s===a)}function z(r,e){if(!e)return r;const n={...r},t=new Set([...Object.keys(r),...Object.keys(e)]);for(const s of t){const a=r[s],l=e[s];n[s]=[a,l].filter(Boolean).join(" ")||void 0}return n}function $t(r,e){if(!e)return r;const n={...r},t=new Set([...Object.keys(r),...Object.keys(e)]);for(const s of t){const a=r[s],l=e[s];n[s]=a||l?{...a,...l}:void 0}return n}function D(r,e){const n={...r};for(const t of e)t in n&&delete n[t];return n}function le(r,e){return e!==void 0?e:r}function R(r){if(!Je||typeof r!="function"&&!(r&&r.$$typeof))return r;const e=i.forwardRef((t,s)=>{const{overStyled:a}=t,l=St(),c=i.createElement(r,{...t,ref:s});return a&&l?o.jsx("div",{className:"recursica-over-styled",children:c}):c});e.displayName=r.displayName||r.name||"Component";const n=Object.keys(r);for(const t of n){if(t==="render"||t==="$$typeof")continue;const s=r[t];(typeof s=="function"||s&&s.$$typeof)&&t[0]===t[0].toUpperCase()?e[t]=R(s):e[t]=s}return e}const In=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],jt=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),ko={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function wo(r){const e={...r};for(const[n,t]of Object.entries(e))typeof t=="string"&&t.startsWith("rec-")&&jt.has(n)&&t in ko&&(e[n]=ko[t]);return e}function m(r,e){if(e)return r;const n={...r};for(const t of In)t in n&&delete n[t];for(const[t,s]of Object.entries(n))typeof s=="string"&&s.startsWith("rec-")&&jt.has(t)&&s in ko&&(n[t]=ko[s]);return n}const Ln="Accordion-module__root___Dem6d",Mn="Accordion-module__item___7ryVk",An="Accordion-module__noDivider___Ni2tT",zn="Accordion-module__control___b4wgX",Wn="Accordion-module__label___Ss7uW",Dn="Accordion-module__icon___xfHxX",En="Accordion-module__chevron___i-HVZ",Fn="Accordion-module__iconLeftWrapper___5oLen",Bn="Accordion-module__panel___Wx50w",Un="Accordion-module__content___PEM9t",Se={root:Ln,item:Mn,noDivider:An,control:zn,label:Wn,icon:Dn,chevron:En,iconLeftWrapper:Fn,panel:Bn,content:Un},ht={default:"unstyled"},Rt=function({variant:e="default",overStyled:n=!1,...t}){const s=typeof e=="string"&&ht[e]?ht[e]:e,a=m(t,n),l=a,c=z({root:Se.root,item:Se.item,control:Se.control,label:Se.label,chevron:Se.chevron,icon:Se.icon,panel:Se.panel,content:Se.content},l.classNames),d=l.className;return o.jsx(u.Accordion,{...a,variant:s,className:d,classNames:c})};Rt.displayName="Accordion";const Zo=i.forwardRef(function({title:e,leftIcon:n,divider:t=!0,children:s,disabled:a=!1,overStyled:l=!1,...c},d){const p=m(c,l),_=p.className,f=[t?void 0:Se.noDivider,_].filter(Boolean).join(" ")||void 0;return o.jsx(u.Accordion.Item,{ref:d,...p,className:f,"data-disabled":a||void 0,children:e?o.jsxs(o.Fragment,{children:[o.jsx(Mo,{leftIcon:n,disabled:a,children:e}),o.jsx(Ao,{children:s})]}):s})});Zo.displayName="AccordionItem";const Gn=["icon"],Mo=i.forwardRef(function({leftIcon:e,children:n,overStyled:t=!1,...s},a){const l=D(m(s,t),Gn),c=l.className;return o.jsx(u.Accordion.Control,{ref:a,...l,className:c,icon:e?o.jsx("span",{className:Se.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,children:n})});Mo.displayName="AccordionControl";const Ao=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className;return o.jsx(u.Accordion.Panel,{ref:t,...s,className:a})});Ao.displayName="AccordionPanel";const zo=Rt;zo.Item=Zo;zo.Control=Mo;zo.Panel=Ao;const Vn="AssistiveElement-module__root___WhQ43",Hn="AssistiveElement-module__textWrapper___sfy5E",qn="AssistiveElement-module__iconWrapper___gObRF",Bo={root:Vn,textWrapper:Hn,iconWrapper:qn},Kn=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"M12 16v-4"}),o.jsx("path",{d:"M12 8h.01"})]}),Yn=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),o.jsx("path",{d:"M12 9v4"}),o.jsx("path",{d:"M12 17h.01"})]}),Io=i.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:n=!0,children:t,className:s,role:a,overStyled:l=!1,...c},d){const _=m(c,l),f=Bo.root,g=s?`${f} ${s}`:f,h=e==="error"?Yn:Kn,x=a??(e==="error"?"alert":void 0);return o.jsxs("div",{ref:d,..._,className:g,"data-variant":e,role:x,style:_.style,children:[n&&o.jsx("span",{className:Bo.iconWrapper,children:o.jsx(h,{})}),o.jsx("span",{className:Bo.textWrapper,children:t})]})});Io.displayName="AssistiveElement";const Zn="Label-module__root___e6HXZ",Xn="Label-module__labelText___rieFR",Jn="Label-module__required___Ggrzc",Qn="Label-module__optionalText___Y2yun",er="Label-module__actionAreaWrapper___ELoZK",or="Label-module__editIconWrapper___NG2xW",Ue={root:Zn,labelText:Xn,required:Jn,optionalText:Qn,actionAreaWrapper:er,editIconWrapper:or},Xo=i.forwardRef(function({labelSize:e="default",labelAlignment:n,required:t=!1,labelOptionalText:s,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:c,children:d,overStyled:p=!1,..._},f){const g=n||"left";let h;t||(s===!0?h="optional":s&&(h=s));const x=["size"],v=D(m(_,p),x),j=v,N=z({label:Ue.root,required:Ue.required},j.classNames),S=j.className,T=S?`${Ue.root} ${S}`:Ue.root;return o.jsxs(u.Input.Label,{ref:f,...v,className:T,classNames:N,"data-size":e,"data-alignment":g,required:t&&!a,children:[o.jsx("span",{className:Ue.labelText,children:d}),h&&o.jsx("span",{className:Ue.optionalText,children:typeof h=="string"?`(${h})`:h}),l?o.jsx("span",{className:Ue.actionAreaWrapper,children:l}):a?o.jsx("button",{type:"button",className:Ue.editIconWrapper,"data-replaces-asterisk":t?"true":void 0,onClick:c,"aria-label":"Edit",children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});Xo.displayName="Label";const tr="FormControlLayout-module__root___yNDhZ",sr="FormControlLayout-module__leftSection___GBM1r",nr="FormControlLayout-module__rightSection___bcL4v",So={root:tr,leftSection:sr,rightSection:nr},Me=i.forwardRef(function({formLayout:e="stacked",labelSize:n="default",controlMaxWidth:t,controlMinWidth:s,leftSection:a,children:l,className:c,style:d,...p},_){const f=c?`${So.root} ${c}`:So.root,h=a!=null||e==="side-by-side";return o.jsxs("div",{ref:_,className:f,"data-form-layout":e,style:{...d,...t?{"--form-control-max-width":t}:{},...s?{"--form-control-min-width":s}:{}},...p,children:[h&&o.jsx("div",{className:So.leftSection,"data-size":n,children:a}),o.jsx("div",{className:So.rightSection,children:l})]})});Me.displayName="FormControlLayout";const rr="FormControlWrapper-module__root___c-UHo",ar="FormControlWrapper-module__inputSection___HenXk",vt={root:rr,inputSection:ar},uo=i.forwardRef(function({formLayout:e,labelSize:n,labelAlignment:t,labelOptionalText:s,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:c,label:d,description:p,assistiveText:_,assistiveWithIcon:f=!0,controlMaxWidth:g,controlMinWidth:h,error:x,required:v,withAsterisk:j,id:N,children:S,className:T,overStyled:w=!1,labelElement:P,...y},b){const C=i.useId(),O=N||`recursica-fc-${C}`,k=_||p,W=k?`${O}-assistive`:void 0,A=x?`${O}-error`:void 0,F=m(y,w),G=T||F.className,Y=vt.root,K=G?`${Y} ${G}`:Y,H=i.isValidElement(S)?i.cloneElement(S,{...k&&!S.props["aria-describedby"]?{"aria-describedby":W}:{},...x&&!S.props["aria-errormessage"]?{"aria-errormessage":A}:{}}):S,ee=d?o.jsx(Xo,{id:O,labelAlignment:t,labelOptionalText:s,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:c,required:j??v,...P==="div"?{as:"div"}:{},children:d}):void 0;return o.jsx(Me,{ref:b,className:K,formLayout:e,labelSize:n,controlMaxWidth:g,controlMinWidth:h,leftSection:ee,...F,children:o.jsxs("div",{className:vt.inputSection,children:[H,x&&o.jsx(Io,{id:A,assistiveVariant:"error",assistiveWithIcon:f,children:x}),!x&&k&&o.jsx(Io,{id:W,assistiveVariant:"help",assistiveWithIcon:f,children:k})]})})});uo.displayName="FormControlWrapper";const lr="ReadOnlyField-module__layoutOverride___9fSsG",ir="ReadOnlyField-module__textField___qKn25",Lo={layoutOverride:lr,textField:ir},Oo=({value:r,overStyled:e=!1,...n})=>{const t=m(n,e),s=t.className;return o.jsx(u.Box,{component:"p",...t,className:s?`${Lo.textField} ${s}`:Lo.textField,children:r!=null?i.isValidElement(r)?r:Array.isArray(r)?r.join(", "):String(r):""})};Oo.displayName="ReadOnlyTextField";const Jo=i.forwardRef(function({value:e,type:n="text",emptyValueComponent:t,overStyled:s=!1,className:a,style:l,...c},d){let p=null;const _=m(c,s),f=t||bo,h=(f.check?f.check(e):bo.check(e))?o.jsx(f,{value:e}):e;switch(n){case"boolean":p=o.jsx(Oo,{value:e===!0?"True":e===!1?"False":h,overStyled:s});break;case"switch":p=o.jsx(Oo,{value:e===!0?"On":e===!1?"Off":h,overStyled:s});break;case"text":default:p=o.jsx(Oo,{value:h,overStyled:s});break}const x=a?`${Lo.layoutOverride} ${a}`:Lo.layoutOverride;return o.jsx(uo,{ref:d,..._,overStyled:s,className:x,style:l,children:p})});Jo.displayName="ReadOnlyField";const _e=i.forwardRef(function({readOnly:e,readOnlyComponent:n,readOnlyType:t="text",readOnlyValue:s,readOnlyNativeProps:a,emptyValueComponent:l,activeComponent:c,overStyled:d,onLabelEditClick:p,..._},f){if(e){if(n){const g=n;return o.jsx(uo,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:o.jsx(g,{...a})})}return o.jsx(Jo,{ref:f,..._,type:t,value:s,emptyValueComponent:l,onLabelEditClick:p,overStyled:d})}return o.jsx(uo,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:c})});_e.displayName="WithReadOnlyWrapper";const cr="AutoComplete-module__layoutOverride___-K9WL",dr="AutoComplete-module__root___kANza",ur="AutoComplete-module__input___g51MC",pr="AutoComplete-module__section___WAbf1",mr="AutoComplete-module__dropdown___NqO3E",_r="AutoComplete-module__option___Y-Kja",oo={layoutOverride:cr,root:dr,input:ur,section:pr,dropdown:mr,option:_r},fr=["size","variant","radius"],Ot=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,value:b,defaultValue:C,...O}=e,k=D(m(O,t),fr),W=k,A=z({wrapper:oo.root,input:oo.input,section:oo.section,dropdown:oo.dropdown,option:oo.option},W.classNames),M=N?`${oo.layoutOverride} ${N}`:oo.layoutOverride;return o.jsx(_e,{className:M,style:S,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?b:C,readOnlyNativeProps:e,activeComponent:o.jsx(u.Autocomplete,{ref:n,...k,classNames:A,disabled:T,value:b,defaultValue:C,error:!!h})})});Ot.displayName="AutoComplete";const yr="Avatar-module__root___fXu-J",hr="Avatar-module__iconWrapper___ojly2",vr="Avatar-module__textWrapper___zp-jD",xr="Avatar-module__image___ieqGp",br="Avatar-module__placeholder___IDW7-",po={root:yr,iconWrapper:hr,textWrapper:vr,image:xr,placeholder:br},kt=i.forwardRef(function({size:e="default",variant:n="solid",icon:t,children:s,src:a,overStyled:l=!1,...c},d){const p={solid:"filled",outline:"outline",ghost:"transparent"},_={default:"md",small:"sm",large:"lg"},f=["color","radius"],g=D(m(c,l),f),h=g;let x="text";a?x="image":t&&(x="icon");const v=z({root:po.root,image:po.image,placeholder:po.placeholder},h.classNames),j=h.className;return o.jsx(u.Avatar,{ref:d,...g,className:j,classNames:v,variant:p[n],size:_[e],src:a,"data-variant":n,"data-size":e,"data-style":x,children:t!=null?o.jsx("span",{className:po.iconWrapper,"aria-hidden":!0,children:t}):s!=null?o.jsx("span",{className:po.textWrapper,children:s}):void 0})});kt.displayName="Avatar";const Nr=u.createPolymorphicComponent(kt),Cr="Badge-module__root___5osNT",mo={root:Cr},It=i.forwardRef(function({variant:e="primary-color",overStyled:n=!1,...t},s){const a=m(t,n),l=z({root:mo.root,section:mo.section,label:mo.label},a.classNames),c=a.className,d=c?`${mo.root} ${c}`:mo.root;return o.jsx(u.Badge,{ref:s,...a,variant:"filled","data-variant":e,className:d,classNames:l})});It.displayName="Badge";const Lt=u.createPolymorphicComponent(It),Pr="Breadcrumb-module__root___x-9ln",wr="Breadcrumb-module__separator___qrUX-",$o={root:Pr,separator:wr},Mt=i.forwardRef(function({overStyled:e=!1,separator:n=">",...t},s){const a=m({separator:n,...t},e),l=z({root:$o.root,separator:$o.separator},a.classNames),c=a.attributes,d={...c,separator:{"aria-hidden":!0,...c==null?void 0:c.separator}},p=a.className,_=p?`${$o.root} ${p}`:$o.root;return o.jsx(u.Breadcrumbs,{ref:s,...a,className:_,classNames:l,attributes:d})});Mt.displayName="Breadcrumb";const gr="Loader-module__root___6iYOP",Uo={root:gr},Qo=i.forwardRef(function({variant:e="oval",size:n="default",overStyled:t=!1,...s},a){const c={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",d=m(s,t),p=d,_=z({root:Uo.root},p.classNames),f=p.className,g=f?`${Uo.root} ${f}`:Uo.root;return o.jsx(u.Loader,{ref:a,...d,type:e,"data-variant":e,"data-size":c,className:g,classNames:_})});Qo.displayName="Loader";const Tr="Button-module__root___Q2R8-",Sr="Button-module__loader___X-9u-",$r="Button-module__label___UJ3Zt",jr="Button-module__labelText___rFV5p",Rr="Button-module__iconWrapper___uEKPa",Or="Button-module__section___f2mKr",Ge={root:Tr,loader:Sr,label:$r,labelText:jr,iconWrapper:Rr,section:Or};function kr(r){return r==null||r===""?!1:typeof r=="string"?r.trim()!=="":!0}const At=i.forwardRef(function({variant:e="solid",size:n="default",icon:t,children:s,overStyled:a=!1,loaderVariant:l="oval",loaderSize:c,useRecursicaLoader:d=!0,...p},_){const f={solid:"filled",outline:"outline",text:"subtle"},g={default:"md",small:"sm"},h=["fullWidth"],x=D(m(p,a),h),v=x,j=!!t||!!v.leftSection,N=!!v.rightSection,S=kr(s),T=(j||N)&&!S;let w="label";T?w="icon-only":(j||N)&&(w="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&T&&!v["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const P=z({root:Ge.root,section:Ge.section,label:Ge.label,loader:Ge.loader},v.classNames),y=v.className,b=y?`${Ge.root} ${y}`:Ge.root,C=v.loaderProps,O=le(n==="small"?"small":"default",c);let k=C;return d&&(k={children:o.jsx(Qo,{variant:l,size:O}),...C}),o.jsx(u.Button,{ref:_,...x,className:b,classNames:P,variant:f[e],size:g[n],loaderProps:k,leftSection:t!=null?o.jsx("span",{className:Ge.iconWrapper,"aria-hidden":!0,children:t}):void 0,"data-variant":e,"data-size":n,"data-content":w,disabled:!!v.disabled||!!v.loading,children:o.jsx("span",{className:Ge.labelText,children:s})})});At.displayName="Button";const Ze=u.createPolymorphicComponent(At),Ir="Card-module__root___c9KvZ",Lr="Card-module__header___PTXf2",Mr="Card-module__footer___Mu-JC",Ar="Card-module__section___BRT8H",zr="Card-module__content___oFIQa",Ae={root:Ir,header:Lr,footer:Mr,section:Ar,content:zr},Wr=["radius","withBorder","padding"],zt=i.forwardRef(function({overStyled:e=!1,...n},t){const s=D(m(n,e),Wr);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in n&&!(d in s)&&(s[d]=n[d])});const l=z({root:Ae.root},s.classNames),c=s.className;return o.jsx(u.Card,{ref:t,...s,className:c,classNames:l})});zt.displayName="Card";const Wt=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className;return o.jsx(u.Card.Section,{ref:t,...s,className:a?`${Ae.section} ${a}`:Ae.section})});Wt.displayName="CardSection";const Dt=["withBorder","inheritPadding"],Et=i.forwardRef(function({overStyled:e=!1,...n},t){const s=D(m(n,e),Dt),a=s.className;return o.jsx(u.Card.Section,{ref:t,...s,className:a?`${Ae.header} ${a}`:Ae.header})});Et.displayName="CardHeader";const Ft=i.forwardRef(function({overStyled:e=!1,...n},t){const s=D(m(n,e),Dt),a=s.className;return o.jsx(u.Card.Section,{ref:t,...s,className:a?`${Ae.footer} ${a}`:Ae.footer})});Ft.displayName="CardFooter";const Bt=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className;return o.jsx("div",{ref:t,...s,className:a?`${Ae.content} ${a}`:Ae.content})});Bt.displayName="CardContent";const Ut=u.createPolymorphicComponent(zt),Wo=Ut;Wo.Section=Wt;Wo.Header=Et;Wo.Footer=Ft;Wo.Content=Bt;const Dr=Ut,Er="Checkbox-module__groupRoot___cBS0o",Fr="Checkbox-module__root___mY3qk",Br="Checkbox-module__body___5yC7q",Ur="Checkbox-module__inner___rTke4",Gr="Checkbox-module__input___2kt-h",Vr="Checkbox-module__icon___-O7i6",Hr="Checkbox-module__labelWrapper___GpZkr",qr="Checkbox-module__label___cwRtI",Ce={groupRoot:Er,root:Fr,body:Br,inner:Ur,input:Gr,icon:Vr,labelWrapper:Hr,label:qr},No=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,children:w,readOnly:P,readOnlyComponent:y,emptyValueComponent:b,value:C,defaultValue:O,...k}=e,W=["size"],A=D(m(k,t),W),M=A,F=C!==void 0||O!==void 0;return o.jsx(_e,{className:S,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:b,readOnlyType:"text",readOnlyValue:C!==void 0?C:O,readOnlyNativeProps:e,activeComponent:F?o.jsx(u.Checkbox.Group,{ref:n,...A,disabled:P||M.disabled,value:C,defaultValue:O,children:o.jsx("div",{className:Ce.groupRoot,"data-layout":s,children:w})}):o.jsx("div",{ref:n,...A,role:"group",className:Ce.groupRoot,"data-layout":s,children:w})})});No.displayName="CheckboxGroup";const Co=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:s,readOnlyComponent:a,disabled:l,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,...f}=e,g=["size","color","radius","variant","iconColor"],h=D(m(f,t),g),x=h,v=z({root:Ce.root,body:Ce.body,inner:Ce.inner,input:Ce.input,icon:Ce.icon,labelWrapper:Ce.labelWrapper,label:Ce.label},x.classNames),j=x.className,N=j?`${Ce.root} ${j}`:Ce.root;if(s&&a){const T=!!(x.checked??x.defaultChecked),w=a,P=o.jsx(w,{...e,checked:T,label:x.label});return c?o.jsx(Me,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:P}):o.jsx(o.Fragment,{children:P})}const S=o.jsx(u.Checkbox,{ref:n,...h,className:N,classNames:v,disabled:s||l});return c?o.jsx(Me,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:S}):S});Co.displayName="Checkbox";Co.Group=No;const Kr="Chip-module__root___f5pFk",Yr="Chip-module__label___Ov9pg",Zr="Chip-module__mantineIconWrapper___KLSz6",Xr="Chip-module__innerWrapper___EnrTF",Jr="Chip-module__children___zbRAR",Qr="Chip-module__leadingIcon___JBtjQ",ea="Chip-module__deleteIcon___zPPsH",Ne={root:Kr,label:Yr,mantineIconWrapper:Zr,innerWrapper:Xr,children:Jr,leadingIcon:Qr,deleteIcon:ea};function oa(r){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...r,children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Po=i.forwardRef(function({error:e=!1,icon:n,onDelete:t,deleteLabel:s="Delete",deleteTabIndex:a,deleteIconRef:l,children:c,overStyled:d=!1,wrapperProps:p,tabIndex:_,"aria-hidden":f,...g},h){const x=m(g,d),v=x,j=z({root:Ne.root,label:Ne.label,input:Ne.input,iconWrapper:Ne.mantineIconWrapper,checkIcon:Ne.checkIcon},v.classNames),N=v.className,S=N?`${Ne.root} ${N}`:Ne.root,T=e?"":void 0,w=!c&&(!!n||!!t),P=t!==void 0||v.onClick!==void 0||v.onChange!==void 0,y={...T!==void 0?{"data-error":""}:{},...P?{"data-interactive":""}:{}};return o.jsx(u.Chip,{ref:h,...x,className:S,classNames:j,wrapperProps:le(y,p),"data-icon-only":w?"":void 0,tabIndex:le(P?void 0:-1,_),"aria-hidden":le(P?void 0:!0,f),children:o.jsxs("span",{className:Ne.innerWrapper,children:[n&&o.jsx("span",{className:Ne.leadingIcon,"aria-hidden":!0,children:n}),o.jsx("span",{className:Ne.children,children:c}),t&&o.jsx("span",{ref:l,role:"button",className:Ne.deleteIcon,onClick:b=>{b.preventDefault(),b.stopPropagation(),t(b)},"aria-label":s,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),b.stopPropagation(),t(b))},tabIndex:a??0,children:o.jsx(oa,{})})]})})});Po.displayName="Chip";const ta="Container-module__root___UVssr",_o={root:ta},Gt=i.forwardRef(function({children:e,size:n,...t},s){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof n=="string"&&a[n]?a[n]:n,c={root:_o.root},d=t.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;c.root=f.root?`${_o.root} ${f.root}`:_o.root}const p=t.className,_=p?`${_o.root} ${p}`:_o.root;return o.jsx(u.Container,{ref:s,size:l,className:_,classNames:c,...t,children:e})});Gt.displayName="Container";function sa(r){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...r,children:[o.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),o.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),o.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),o.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})}const na="DatePicker-module__layoutOverride___X9yaM",ra="DatePicker-module__root___6XvRT",aa="DatePicker-module__input___pcSW8",la="DatePicker-module__section___n3iWA",ia="DatePicker-module__dropdown___wjt08",ca="DatePicker-module__calendarHeader___KHxno",da="DatePicker-module__calendarHeaderControl___q7UvJ",ua="DatePicker-module__calendarHeaderLevel___ebdJ2",pa="DatePicker-module__calendarHeaderControlIcon___2tZOb",ma="DatePicker-module__weekday___H5lIj",_a="DatePicker-module__day___U03J2",ye={layoutOverride:na,root:ra,input:aa,section:la,dropdown:ia,calendarHeader:ca,calendarHeaderControl:da,calendarHeaderLevel:ua,calendarHeaderControlIcon:pa,weekday:ma,day:_a},fa=["size","variant","radius","description"],Vt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,value:b,defaultValue:C,highlightToday:O=!0,valueFormat:k="MM/DD/YY",placeholder:W="MM / DD / YY",leftSection:A,...M}=e,F=D(m(M,t),fa),G=F,Y=z({wrapper:ye.root,input:ye.input,section:ye.section,day:ye.day,weekday:ye.weekday,calendarHeader:ye.calendarHeader,calendarHeaderControl:ye.calendarHeaderControl,calendarHeaderLevel:ye.calendarHeaderLevel,calendarHeaderControlIcon:ye.calendarHeaderControlIcon},G.classNames),K=G.popoverProps,H=K&&typeof K=="object"&&!Array.isArray(K)?K:void 0,ee=H!=null&&H.classNames&&typeof H.classNames=="object"&&!Array.isArray(H.classNames)?H.classNames:void 0;delete G.popoverProps;const se={...H,classNames:z({dropdown:ye.dropdown},ee)},ve=N?`${ye.layoutOverride} ${N}`:ye.layoutOverride;return o.jsx(_e,{className:ve,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?String(b):C?String(C):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(gt.DatePickerInput,{ref:n,...F,classNames:Y,disabled:T,value:b,defaultValue:C,label:void 0,description:void 0,error:void 0,withAsterisk:!1,highlightToday:O,valueFormat:k,placeholder:W,leftSection:le(o.jsx(sa,{}),A),wrapperProps:{"data-disabled":T?"true":void 0,"data-error":h?"true":void 0},popoverProps:se})})});Vt.displayName="DatePicker";const ya="Dropdown-module__layoutOverride___FNcvP",ha="Dropdown-module__root___uVyL0",va="Dropdown-module__input___dK4dN",xa="Dropdown-module__section___j3MRB",ba="Dropdown-module__clearButton___ODnIa",Na="Dropdown-module__dropdown___gG-Sw",Ca="Dropdown-module__option___nAGU-",ae={layoutOverride:ya,root:ha,input:va,section:xa,clearButton:ba,dropdown:Na,option:Ca},Pa=["size","variant","radius"],Ht=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",containerWidth:a,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:_,label:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,disabled:w,readOnly:P,readOnlyComponent:y,emptyValueComponent:b,value:C,defaultValue:O,data:k,clearButtonProps:W,...A}=e,M=D(m(A,t),Pa),F=M,G=W,Y={...G,className:G!=null&&G.className?`${ae.clearButton} ${G.className}`:ae.clearButton},K=z({wrapper:ae.root,input:ae.input,section:ae.section,dropdown:ae.dropdown,option:ae.option},F.classNames),H={...T||{},width:a||"100%"},ee=S?`${ae.layoutOverride} ${S}`:ae.layoutOverride;return o.jsx(_e,{className:ee,style:H,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:t,formLayout:s,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:_,label:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,readOnly:P,readOnlyComponent:y,emptyValueComponent:b,readOnlyType:"text",readOnlyValue:C!==void 0?String(C):O?String(O):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(u.Select,{ref:n,...M,classNames:K,disabled:w,value:C,defaultValue:O,data:k||[],clearButtonProps:Y,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,attributes:{wrapper:{"data-disabled":w?"true":void 0,"data-error":x?"true":void 0}}})})});Ht.displayName="Dropdown";const wa="FileInput-module__layoutOverride___HIOY6",ga="FileInput-module__root___UvQj-",Ta="FileInput-module__leadingIcon___z75c4",Sa="FileInput-module__content___Udsvh",$a="FileInput-module__value___RX33R",ja="FileInput-module__chipRow___My6TF",Ra="FileInput-module__chipWrapper___q2CDy",Oa="FileInput-module__trailingIcon___odGPm",Ie={layoutOverride:wa,root:ga,leadingIcon:Ta,content:Sa,value:$a,chipRow:ja,chipWrapper:Ra,trailingIcon:Oa};function ka(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[o.jsx("path",{d:"M12 3v12"}),o.jsx("path",{d:"M7 8l5-5 5 5"}),o.jsx("path",{d:"M4 21h16"})]})}function Ia(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const qt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,disabled:w,readOnly:P,files:y,onFilesAdded:b,onFileRemove:C,accept:O,multiple:k=!1,maxSize:W,maxFiles:A,onFilesRejected:M,invalidFileTypeMessage:F="File type not accepted",maxFilesMessage:G=k?`Maximum of ${A} files allowed`:"Only one file is allowed",icon:Y,clearIcon:K,placeholder:H="Select a file...",browseLabel:ee="Choose file",removeFileLabel:se="Remove",clearLabel:ve="Clear",...I}=e,ie=m(I,t),U=!w&&!P,ne=!!y&&y.length>0,Pe=i.useRef(null),[de,ce]=i.useState(!1),[fe,xe]=i.useState(!1),De=$=>{if(!U)return;const J=Array.from($);if(J.length===0)return;const Q=k?A:1,q=k?(y==null?void 0:y.length)??0:0,pe=[],To=[];let pt=!1,mt=!1;for(const Eo of J){const _t=!Yo(Eo,O);_t&&(pt=!0);const wn=W!==void 0&&Eo.size>W,ft=Q!==void 0&&q+pe.length>=Q;ft&&(mt=!0),(_t||wn||ft?To:pe).push(Eo)}ce(pt),xe(mt),pe.length>0&&(b==null||b(pe)),To.length>0&&(M==null||M(To))},be=i.useRef(0),[we,ge]=i.useState(!1),Ee=$=>{$.preventDefault(),be.current+=1,ge(!0)},Qe=$=>{$.preventDefault(),be.current-=1,be.current<=0&&(be.current=0,ge(!1))},Fe=$=>{$.preventDefault()},ao=$=>{$.preventDefault(),be.current=0,ge(!1),De($.dataTransfer.files)},ke=()=>{var $;U&&(($=Pe.current)==null||$.click())},lo=$=>{$.key!=="Enter"&&$.key!==" "||($.preventDefault(),ke())},E=$=>{$.target.files&&De($.target.files),$.target.value=""},Z=()=>{!U||!y||y.length===0||y.forEach($=>C==null?void 0:C($.id??$.file.name))},[B,L]=i.useState(0),V=i.useRef([]),X=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var J;const $=(y==null?void 0:y.length)??0;if($>0&&$<X.current){const Q=Math.min(B,$-1);L(Q),(J=V.current[Q])==null||J.focus()}X.current=$},[y]);const ue=$=>{var q;const J=(y==null?void 0:y.length)??0;if(J===0)return;let Q;$.key==="ArrowRight"||$.key==="ArrowDown"?Q=(B+1)%J:($.key==="ArrowLeft"||$.key==="ArrowUp")&&(Q=(B-1+J)%J),Q!==void 0&&($.preventDefault(),$.stopPropagation(),L(Q),(q=V.current[Q])==null||q.focus())},Be=x??(de?F:fe?G:void 0),eo=S?`${Ie.layoutOverride} ${S}`:Ie.layoutOverride;return o.jsx(uo,{overStyled:t,className:eo,style:T,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:g,assistiveWithIcon:h,error:Be,required:v,withAsterisk:j,id:N,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:o.jsxs("div",{ref:n,...ie,className:Ie.root,role:"button","aria-label":ee,"aria-disabled":w?"true":void 0,tabIndex:U?0:-1,"data-disabled":w?"true":void 0,"data-readonly":P?"true":void 0,"data-error":Be?"true":void 0,"data-dragging":we?"true":void 0,onClick:U?ke:void 0,onKeyDown:U?lo:void 0,onDragEnter:U?Ee:void 0,onDragLeave:U?Qe:void 0,onDragOver:U?Fe:void 0,onDrop:U?ao:void 0,children:[o.jsx("span",{className:Ie.leadingIcon,"aria-hidden":!0,children:Y??o.jsx(ka,{})}),o.jsxs("div",{className:Ie.content,children:[!ne&&o.jsx("span",{className:Ie.value,"data-placeholder":"true",children:H}),ne&&o.jsx("div",{className:Ie.chipRow,onKeyDown:P?void 0:ue,children:y.map(($,J)=>{const Q=$.id??$.file.name;return o.jsx("span",{className:Ie.chipWrapper,onClick:q=>q.stopPropagation(),children:o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:P?void 0:se,deleteTabIndex:!P&&J===B?0:-1,deleteIconRef:q=>{V.current[J]=q},onDelete:P||w?void 0:()=>C==null?void 0:C(Q),children:$.file.name})},Q)})})]}),ne&&!P&&o.jsx(Ze,{overStyled:!0,variant:"text",size:"small",icon:K??o.jsx(Ia,{}),"aria-label":ve,className:Ie.trailingIcon,disabled:w,onClick:$=>{$.preventDefault(),$.stopPropagation(),Z()},onKeyDown:$=>{$.key!=="Enter"&&$.key!==" "||($.preventDefault(),$.stopPropagation(),Z())}}),o.jsx("input",{ref:Pe,type:"file",hidden:!0,accept:O,multiple:k,disabled:!U,onChange:E})]})})});qt.displayName="FileInput";const La="FileUpload-module__layoutOverride___bPpi8",Ma="FileUpload-module__root___Q-vcm",Aa="FileUpload-module__dropzone___jqua0",za="FileUpload-module__uploadIcon___bb3Nc",Wa="FileUpload-module__dropzoneText___L7vS-",Da="FileUpload-module__fileList___XIWLl",Ve={layoutOverride:La,root:Ma,dropzone:Aa,uploadIcon:za,dropzoneText:Wa,fileList:Da};function Ea(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[o.jsx("path",{d:"M12 3v12"}),o.jsx("path",{d:"M7 8l5-5 5 5"}),o.jsx("path",{d:"M4 21h16"})]})}const Kt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,disabled:w,readOnly:P,files:y,onFilesAdded:b,onFileRemove:C,accept:O,multiple:k=!0,maxSize:W,maxFiles:A,onFilesRejected:M,invalidFileTypeMessage:F="File type not accepted",maxFilesMessage:G=`Maximum of ${A} files allowed`,icon:Y,dropzoneLabel:K="Drag and drop files here to upload",browseButtonLabel:H="Browse files",removeFileLabel:ee="Remove",...se}=e,I=m(se,t),te=i.useRef(null),[ie,U]=i.useState(!1),[ne,Pe]=i.useState(!1),de=L=>{if(w)return;const V=Array.from(L);if(V.length===0)return;const X=(y==null?void 0:y.length)??0,ue=[],Be=[];let eo=!1,$=!1;for(const J of V){const Q=!Yo(J,O);Q&&(eo=!0);const q=W!==void 0&&J.size>W,pe=A!==void 0&&X+ue.length>=A;pe&&($=!0),(Q||q||pe?Be:ue).push(J)}U(eo),Pe($),ue.length>0&&(b==null||b(ue)),Be.length>0&&(M==null||M(Be))},ce=i.useRef(0),[fe,xe]=i.useState(!1),De=L=>{L.preventDefault(),ce.current+=1,xe(!0)},be=L=>{L.preventDefault(),ce.current-=1,ce.current<=0&&(ce.current=0,xe(!1))},we=L=>{L.preventDefault()},ge=L=>{L.preventDefault(),ce.current=0,xe(!1),de(L.dataTransfer.files)},Ee=()=>{var L;w||(L=te.current)==null||L.click()},Qe=L=>{L.target.files&&de(L.target.files),L.target.value=""},[Fe,ao]=i.useState(0),ke=i.useRef([]),lo=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var V;const L=(y==null?void 0:y.length)??0;if(L>0&&L<lo.current){const X=Math.min(Fe,L-1);ao(X),(V=ke.current[X])==null||V.focus()}lo.current=L},[y]);const E=L=>{var ue;const V=(y==null?void 0:y.length)??0;if(V===0)return;let X;L.key==="ArrowRight"||L.key==="ArrowDown"?X=(Fe+1)%V:(L.key==="ArrowLeft"||L.key==="ArrowUp")&&(X=(Fe-1+V)%V),X!==void 0&&(L.preventDefault(),ao(X),(ue=ke.current[X])==null||ue.focus())},Z=x??(ie?F:ne?G:void 0),B=S?`${Ve.layoutOverride} ${S}`:Ve.layoutOverride;return o.jsx(uo,{overStyled:t,className:B,style:T,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:g,assistiveWithIcon:h,error:Z,required:v,withAsterisk:j,id:N,children:o.jsxs("div",{ref:n,...I,className:Ve.root,"data-disabled":w?"true":void 0,"data-error":Z?"true":void 0,children:[!P&&o.jsxs("div",{className:Ve.dropzone,"data-dragging":fe?"true":void 0,onDragEnter:w?void 0:De,onDragLeave:w?void 0:be,onDragOver:w?void 0:we,onDrop:w?void 0:ge,children:[o.jsx("span",{className:Ve.uploadIcon,children:Y??o.jsx(Ea,{})}),o.jsx("span",{className:Ve.dropzoneText,children:K}),o.jsx(Ze,{variant:"outline",disabled:w,onClick:Ee,children:H}),o.jsx("input",{ref:te,type:"file",hidden:!0,accept:O,multiple:k,disabled:w,onChange:Qe})]}),y&&y.length>0&&(P?o.jsx("div",{className:Ve.fileList,children:y.map(L=>{const V=L.id??L.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,children:L.file.name},V)})}):o.jsx("div",{className:Ve.fileList,onKeyDown:E,children:y.map((L,V)=>{const X=L.id??L.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:ee,deleteTabIndex:V===Fe?0:-1,deleteIconRef:ue=>{ke.current[V]=ue},onDelete:w?void 0:()=>C==null?void 0:C(X),children:L.file.name},X)})}))]})})});Kt.displayName="FileUpload";const Fa="Flex-module__root___yYser",fo={root:Fa},Yt=i.forwardRef(function({children:e,gap:n="rec-default",rowGap:t,columnGap:s,...a},l){const c={root:fo.root},d=a.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;c.root=f.root?`${fo.root} ${f.root}`:fo.root}const p=a.className,_=p?`${fo.root} ${p}`:fo.root;return o.jsx(u.Flex,{ref:l,className:_,classNames:c,...wo({gap:n,rowGap:t,columnGap:s,...a}),children:e})});Yt.displayName="Flex";const Ba=u.createPolymorphicComponent(Yt),Ua="Grid-module__root___s-qPY",Ga="Grid-module__col___tbuNg",$e={root:Ua,col:Ga},Zt=i.forwardRef(function({children:e,gap:n="rec-default",...t},s){const a={root:$e.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const f=l;a.root=f.root?`${$e.root} ${f.root}`:$e.root}const c=t.className,d=c?`${$e.root} ${c}`:$e.root,{gap:p,..._}=wo({gap:n,...t});return o.jsx(u.Grid,{ref:s,gutter:p,className:d,classNames:a,..._,children:e})});Zt.displayName="Grid";const Va=u.createPolymorphicComponent(Zt),Xt=i.forwardRef(function({children:e,...n},t){const s={col:$e.col},a=n.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const d=a;s.col=d.col?`${$e.col} ${d.col}`:$e.col}const l=n.className,c=l?`${$e.col} ${l}`:$e.col;return o.jsx(u.Grid.Col,{ref:t,className:c,classNames:s,...wo(n),children:e})});Xt.displayName="GridCol";const Jt=u.createPolymorphicComponent(Xt),Qt=Va;Qt.Col=Jt;const Ha="Group-module__root___ftO64",yo={root:Ha},es=i.forwardRef(function({children:e,gap:n="rec-default",...t},s){const a={root:yo.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;a.root=p.root?`${yo.root} ${p.root}`:yo.root}const c=t.className,d=c?`${yo.root} ${c}`:yo.root;return o.jsx(u.Group,{ref:s,className:d,classNames:a,...wo({gap:n,...t}),children:e})});es.displayName="Group";const qa="HoverCard-module__dropdown___FBPFW",Ka="HoverCard-module__arrow___S9AkE",xt={dropdown:qa,arrow:Ka},os=function({overStyled:e=!1,withBeak:n=!0,position:t="top",arrowSize:s=16,withArrow:a,...l}){const c=m(l,e),d=c,p=z({dropdown:xt.dropdown,arrow:xt.arrow},d.classNames),_=n??a;return o.jsx(u.HoverCard,{...c,position:t,arrowSize:s,withArrow:_,classNames:p})};os.displayName="HoverCard";const ts=function(e){return o.jsx(u.HoverCard.Target,{...e})};ts.displayName="HoverCardTarget";const ss=function({overStyled:e=!1,...n}){const t=m(n,e),s=t.className;return o.jsx(u.HoverCard.Dropdown,{...t,className:s})};ss.displayName="HoverCardDropdown";const et=os;et.Target=ts;et.Dropdown=ss;const Ya="Link-module__root___I0VGE",Za="Link-module__iconWrapper___W-LlF",Xa="Link-module__labelText___wSvUy",ho={root:Ya,iconWrapper:Za,labelText:Xa},ns=i.forwardRef(function({icon:e,children:n,overStyled:t=!1,...s},a){const l=m(s,t),c=l,d=z({root:ho.root},c.classNames),p=c.className,_=p?`${ho.root} ${p}`:ho.root;return o.jsxs(u.Anchor,{ref:a,...l,className:_,classNames:d,underline:"never",...e?{"data-has-icon":""}:{},children:[e&&o.jsx("span",{className:ho.iconWrapper,"aria-hidden":!0,children:e}),o.jsx("span",{className:ho.labelText,children:n})]})});ns.displayName="Link";const Ja=u.createPolymorphicComponent(ns),Qa="Menu-module__dropdown___j4xuA",el="Menu-module__item___NMXha",ol="Menu-module__itemLabel___zvcqC",tl="Menu-module__itemSection___pRIcn",sl="Menu-module__divider___wPiNq",nl="Menu-module__label___4FBGa",rl="Menu-module__chevron___hEEiy",to={dropdown:Qa,item:el,itemLabel:ol,itemSection:tl,divider:sl,label:nl,chevron:rl},rs=function({overStyled:e=!1,...n}){const t=m(n,e),s=t,a=z({dropdown:to.dropdown,item:to.item,itemLabel:to.itemLabel,itemSection:to.itemSection,divider:to.divider,label:to.label,chevron:to.chevron},s.classNames);return o.jsx(u.Menu,{...t,classNames:a})};rs.displayName="Menu";const as=function({overStyled:e=!1,...n}){const t=m(n,e);return o.jsx(u.Menu.Target,{...t})};as.displayName="MenuTarget";const ls=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className;return o.jsx(u.Menu.Dropdown,{...s,ref:t,className:a})});ls.displayName="MenuDropdown";const is=i.forwardRef(function({overStyled:e=!1,...n},t){const s=["color"],a=D(m(n,e),s),c=a.className;return o.jsx(u.Menu.Item,{...a,ref:t,className:c})});is.displayName="MenuItem";const al=u.createPolymorphicComponent(is),cs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className;return o.jsx(u.Menu.Divider,{...s,ref:t,className:a})});cs.displayName="MenuDivider";const ds=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className;return o.jsx(u.Menu.Label,{...s,ref:t,className:a})});ds.displayName="MenuLabel";const us=function(e){return o.jsx(u.Menu.Sub,{...e})};us.displayName="MenuSub";const ps=function(e){return o.jsx(u.Menu.Sub.Target,{...e})};ps.displayName="MenuSubTarget";const ms=i.forwardRef(function({overStyled:e=!1,...n},t){const s=["color"],a=D(m(n,e),s),c=a.className;return o.jsx(u.Menu.Sub.Item,{...a,ref:t,className:c})});ms.displayName="MenuSubItem";const ll=u.createPolymorphicComponent(ms),_s=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className;return o.jsx(u.Menu.Sub.Dropdown,{...s,ref:t,className:a})});_s.displayName="MenuSubDropdown";const Do=us;Do.Target=ps;Do.Item=ll;Do.Dropdown=_s;const ro=rs;ro.Target=as;ro.Dropdown=ls;ro.Item=al;ro.Divider=cs;ro.Label=ds;ro.Sub=Do;const il="Modal-module__root___ytPLl",cl="Modal-module__inner___SSUJE",dl="Modal-module__content___dWO-B",ul="Modal-module__header___ILG9i",pl="Modal-module__title___A5OeE",ml="Modal-module__bodyWrapper___5CCL-",_l="Modal-module__scrollArea___KD-hm",fl="Modal-module__footer___rro2w",yl="Modal-module__close___-ER1C",Le={root:il,inner:cl,content:dl,header:ul,title:pl,bodyWrapper:ml,scrollArea:_l,footer:fl,close:yl},fs=i.forwardRef(function({overStyled:e=!1,children:n,title:t,withCloseButton:s=!0,overlayProps:a,withOverlay:l=!0,closeButtonProps:c,...d},p){const _=["size","radius"],f=D(m(d,e),_),g=z({root:Le.root,inner:Le.inner,content:Le.content,header:Le.header,title:Le.title,close:Le.close},f.classNames);return o.jsxs(u.Modal.Root,{ref:p,...f,classNames:g,children:[l&&o.jsx(u.Modal.Overlay,{...a}),o.jsxs(u.Modal.Content,{children:[(t||s)&&o.jsxs(u.Modal.Header,{children:[t&&o.jsx(u.Modal.Title,{children:t}),s&&o.jsx(u.Modal.CloseButton,{...c})]}),o.jsx(tt,{children:n})]})]})});fs.displayName="Modal";const ot=i.forwardRef(function({overStyled:e=!1,className:n,...t},s){const a=m(t,e);return o.jsx("div",{ref:s,...a,className:`${Le.footer} ${n||""}`})});ot.displayName="Modal.Footer";const tt=i.forwardRef(function({overStyled:e=!1,className:n,onScroll:t,children:s,...a},l){const c=m(a,e),d=i.useRef(null),[p,_]=i.useState(!1),[f,g]=i.useState(!1),h=i.useCallback(()=>{if(d.current){const{scrollTop:N,scrollHeight:S,clientHeight:T}=d.current;_(N>0),g(Math.ceil(N+T)<S)}},[]);i.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,s]);const x=N=>{h(),t==null||t(N)};let v=null;const j=[];return i.Children.forEach(s,N=>{var S;i.isValidElement(N)&&(N.type===ot||((S=N.type)==null?void 0:S.displayName)==="Modal.Footer")?v=N:j.push(N)}),o.jsxs(u.Modal.Body,{...c,ref:N=>{typeof l=="function"?l(N):l&&(l.current=N)},className:`${Le.bodyWrapper} ${n||""}`,children:[o.jsx("div",{ref:d,onScroll:x,"data-scrolled-top":p||void 0,"data-scrolled-bottom":f||void 0,className:Le.scrollArea,children:j}),v]})});tt.displayName="Modal.Body";const hl=["size","radius"],ys=i.forwardRef(function({overStyled:e=!1,...n},t){const s=D(m(n,e),hl);return o.jsx(u.Modal.Root,{ref:t,...s})});ys.displayName="Modal.Root";const hs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Modal.Overlay,{ref:t,...s})});hs.displayName="Modal.Overlay";const vl=["radius"],vs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=D(m(n,e),vl);return o.jsx(u.Modal.Content,{ref:t,...s})});vs.displayName="Modal.Content";const xs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Modal.Header,{ref:t,...s})});xs.displayName="Modal.Header";const bs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Modal.Title,{ref:t,...s})});bs.displayName="Modal.Title";const xl=["size","radius"],Ns=i.forwardRef(function({overStyled:e=!1,...n},t){const s=D(m(n,e),xl);return o.jsx(u.Modal.CloseButton,{ref:t,...s})});Ns.displayName="Modal.CloseButton";const ze=fs;ze.Root=ys;ze.Overlay=hs;ze.Content=vs;ze.Header=xs;ze.Title=bs;ze.CloseButton=Ns;ze.Body=tt;ze.Footer=ot;const bl="NumberInput-module__layoutOverride___5-9T4",Nl="NumberInput-module__root___C6rAn",Cl="NumberInput-module__input___Ss8p7",Pl="NumberInput-module__section___MijP0",wl="NumberInput-module__controls___8UfQ2",gl="NumberInput-module__control___Qre9-",so={layoutOverride:bl,root:Nl,input:Cl,section:Pl,controls:wl,control:gl},Tl=["size","variant","radius"],Cs=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,value:b,defaultValue:C,hideControls:O=!1,...k}=e,W=D(m(k,t),Tl),A=W,M={wrapper:so.root,input:so.input,section:so.section,controls:so.controls,control:so.control},F=N?`${so.layoutOverride} ${N}`:so.layoutOverride;return o.jsx(_e,{className:F,style:S,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?b==null?void 0:b.toString():C==null?void 0:C.toString(),readOnlyNativeProps:e,activeComponent:o.jsx(u.NumberInput,{ref:n,...W,classNames:M,disabled:T,value:b,defaultValue:C,hideControls:O,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":T?"true":void 0,"data-error":h?"true":void 0,"data-with-left-section":A.leftSection?"true":void 0,"data-with-right-section":A.rightSection||!O?"true":void 0}})})});Cs.displayName="NumberInput";const Sl="Pagination-module__root___ITRjt",$l="Pagination-module__control___40yNT",jl="Pagination-module__dots___Yl9da",Rl="Pagination-module__iconWithLabel___pLM4O",Ol="Pagination-module__baseIcon___Qw3bJ",je={root:Sl,control:$l,dots:jl,iconWithLabel:Rl,baseIcon:Ol},kl="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Il="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",Ll="M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",Ml="M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",Al={next:kl,prev:Il,first:Ll,last:Ml},go=({type:r,className:e,...n})=>o.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${je.baseIcon} ${e||""}`.trim(),...n,children:o.jsx("path",{d:Al[r],fill:"currentColor"})}),Ps=r=>o.jsxs("div",{className:je.iconWithLabel,children:[o.jsx("span",{children:"Next"}),o.jsx(go,{type:"next",...r})]}),ws=r=>o.jsxs("div",{className:je.iconWithLabel,children:[o.jsx(go,{type:"prev",...r}),o.jsx("span",{children:"Prev"})]}),gs=r=>o.jsxs("div",{className:je.iconWithLabel,children:[o.jsx(go,{type:"first",...r}),o.jsx("span",{children:"First"})]}),Ts=r=>o.jsxs("div",{className:je.iconWithLabel,children:[o.jsx("span",{children:"Last"}),o.jsx(go,{type:"last",...r})]});function Ss(r){const e=z({root:je.root,control:je.control,dots:je.dots},r.classNames),n=r.className;return{className:n?`${je.root} ${n}`:je.root,classNames:e}}const $s=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=Ss(s);return o.jsx(u.Pagination.Root,{ref:t,...s,className:a.className,classNames:a.classNames})});$s.displayName="Pagination.Root";const js=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...s},a){const l=m(s,e),c=n?Ps:void 0;return o.jsx(u.Pagination.Next,{ref:a,...l,"data-variant":"text",icon:le(c,t)})});js.displayName="Pagination.Next";const Rs=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...s},a){const l=m(s,e),c=n?ws:void 0;return o.jsx(u.Pagination.Previous,{ref:a,...l,"data-variant":"text",icon:le(c,t)})});Rs.displayName="Pagination.Previous";const Os=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...s},a){const l=m(s,e),c=n?gs:void 0;return o.jsx(u.Pagination.First,{ref:a,...l,"data-variant":"text",icon:le(c,t)})});Os.displayName="Pagination.First";const ks=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...s},a){const l=m(s,e),c=n?Ts:void 0;return o.jsx(u.Pagination.Last,{ref:a,...l,"data-variant":"text",icon:le(c,t)})});ks.displayName="Pagination.Last";const Is=i.forwardRef(function({overStyled:e=!1,getControlProps:n,withLabels:t,...s},a){const l=m(s,e),c=Ss(l),d=_=>{const f={"data-variant":"text"};return n?{...f,...n(_)}:f},p=t?{nextIcon:Ps,previousIcon:ws,firstIcon:gs,lastIcon:Ts}:{};return o.jsx(u.Pagination,{ref:a,...p,...l,className:c.className,classNames:c.classNames,getControlProps:d})});Is.displayName="Pagination";const Ls=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Pagination.Control,{ref:t,...s})});Ls.displayName="Pagination.Control";const Ms=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Pagination.Dots,{ref:t,...s})});Ms.displayName="Pagination.Dots";const Re=Is;Re.Root=$s;Re.Items=u.Pagination.Items;Re.Control=Ls;Re.Dots=Ms;Re.Next=js;Re.Previous=Rs;Re.First=Os;Re.Last=ks;Re.Icon=go;const zl="Panel-module__content___wdGo-",Wl="Panel-module__inner___ruA2b",Dl="Panel-module__header___o7SiC",El="Panel-module__title___181OP",Fl="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Bl="Panel-module__body___SEC3T",Ul="Panel-module__footer___t6-hz",Ke={content:zl,inner:Wl,header:Dl,title:El,titleTruncate:Fl,body:Bl,footer:Ul},As=function({overStyled:e=!1,placement:n="right",keepMounted:t=!0,wrapHeaderText:s=!1,...a}){const l=m(a,e),c=l,d=z({content:Ke.content,header:Ke.header,title:s?Ke.titleTruncate:Ke.title,body:Ke.body,inner:Ke.inner},c.classNames);return o.jsx(u.Drawer,{...l,position:n,keepMounted:t,closeOnClickOutside:le(!!a.opened,a.closeOnClickOutside),classNames:d})};As.displayName="Panel";const st=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className,l=a?`${Ke.footer} ${a}`:Ke.footer;return o.jsx("div",{ref:t,...s,className:l})});st.displayName="PanelFooter";const zs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Root,{ref:t,...s})});zs.displayName="PanelRoot";const Ws=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Overlay,{ref:t,...s})});Ws.displayName="PanelOverlay";const Ds=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Content,{ref:t,...s})});Ds.displayName="PanelContent";const Es=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Header,{ref:t,...s})});Es.displayName="PanelHeader";const Fs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Title,{ref:t,...s})});Fs.displayName="PanelTitle";const Bs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.CloseButton,{ref:t,...s})});Bs.displayName="PanelCloseButton";const Us=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Body,{ref:t,...s})});Us.displayName="PanelBody";const Oe=As;Oe.Root=zs;Oe.Overlay=Ws;Oe.Content=Ds;Oe.Header=Es;Oe.Title=Fs;Oe.CloseButton=Bs;Oe.Body=Us;Oe.Stack=u.Drawer.Stack;Oe.Footer=st;const Gl="Popover-module__dropdown___svhS6",Vl="Popover-module__arrow___5A-0e",bt={dropdown:Gl,arrow:Vl},Gs=function({overStyled:e=!1,withBeak:n=!0,position:t="top",...s}){const a=m(s,e),l=a,c=z({dropdown:bt.dropdown,arrow:bt.arrow},l.classNames),d=le(16,l.arrowSize),p=le(n,l.withArrow);return o.jsx(u.Popover,{...a,position:t,arrowSize:d,withArrow:p,classNames:c})};Gs.displayName="Popover";const Vs=function(e){return o.jsx(u.Popover.Target,{...e})};Vs.displayName="PopoverTarget";const Hs=function({overStyled:e=!1,...n}){const t=m(n,e),s=t.className;return o.jsx(u.Popover.Dropdown,{...t,className:s})};Hs.displayName="PopoverDropdown";const nt=Gs;nt.Target=Vs;nt.Dropdown=Hs;const Hl="Radio-module__groupRoot___bfUii",ql="Radio-module__root___kAjTD",Kl="Radio-module__body___q2Wpj",Yl="Radio-module__inner___QaTBB",Zl="Radio-module__radio___MfgN-",Xl="Radio-module__icon___DWznm",Jl="Radio-module__labelWrapper___dB0Gi",Ql="Radio-module__label___vAFIP",Te={groupRoot:Hl,root:ql,body:Kl,inner:Yl,radio:Zl,icon:Xl,labelWrapper:Jl,label:Ql},rt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,children:w,readOnly:P,readOnlyComponent:y,emptyValueComponent:b,value:C,defaultValue:O,...k}=e,W=["size"],A=D(m(k,t),W),M=A;return o.jsx(_e,{className:S,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:b,readOnlyType:"text",readOnlyValue:C!==void 0?C:O,readOnlyNativeProps:e,activeComponent:o.jsx(u.Radio.Group,{ref:n,...A,disabled:P||M.disabled,value:C,defaultValue:O,children:o.jsx("div",{className:Te.groupRoot,"data-layout":s,children:w})})})});rt.displayName="RadioGroup";const ei=({className:r,style:e})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:r,style:e,children:o.jsx("circle",{cx:"8",cy:"8",r:"5"})}),at=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:s,readOnlyComponent:a,disabled:l,icon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...g}=e,h=["size","color","radius","variant","iconColor"],x=D(m(g,t),h),v=x,j=z({root:Te.root,body:Te.body,inner:Te.inner,radio:Te.radio,icon:Te.icon,labelWrapper:Te.labelWrapper,label:Te.label},v.classNames),N=v.className,S=N?`${Te.root} ${N}`:Te.root;if(s&&a){const w=!!(v.checked??v.defaultChecked),P=a,y=o.jsx(P,{...e,checked:w,label:v.label});return d?o.jsx(Me,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:y}):o.jsx(o.Fragment,{children:y})}const T=o.jsx(u.Radio,{ref:n,...x,icon:le(ei,c),className:S,classNames:j,disabled:s||l});return d?o.jsx(Me,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:T}):T});at.displayName="Radio";at.Group=rt;const oi="SegmentedControl-module__root___JFRhg",ti="SegmentedControl-module__label___mS17q",si="SegmentedControl-module__control___znOdQ",ni="SegmentedControl-module__indicator___ZMcJy",co={root:oi,label:ti,control:si,indicator:ni};function ri(r){const e=z({root:co.root,control:co.control,label:co.label,indicator:co.indicator},r.classNames),n=r.className;return{className:n?`${co.root} ${n}`:co.root,classNames:e}}const qs=i.forwardRef(function({overStyled:e=!1,orientation:n="horizontal",fullWidth:t,data:s=[],...a},l){const c=m(a,e),p=ri(c),_=s.map(f=>typeof f=="string"||!f.icon?f:{...f,label:o.jsxs(o.Fragment,{children:[f.icon,f.label]})});return o.jsx(u.SegmentedControl,{ref:l,...c,className:p.className,classNames:p.classNames,orientation:n,fullWidth:t,"data-orientation":n,data:_})});qs.displayName="SegmentedControl";const ai=qs,li="Slider-module__layoutOverride___zYPun",ii="Slider-module__sliderContainer___y8I0J",ci="Slider-module__sliderTrackWrapper___UHpVh",di="Slider-module__iconWrapper___uqHpC",ui="Slider-module__sliderRoot___LI86H",pi="Slider-module__sliderTrack___oqnlG",mi="Slider-module__sliderBar___TI4VY",_i="Slider-module__sliderThumb___OFn8p",fi="Slider-module__sliderMark___1lM2B",yi="Slider-module__sliderMarkLabel___MMZrq",hi="Slider-module__minMaxGuide___TaGqz",vi="Slider-module__rightGuideContainer___8dOT8",xi="Slider-module__currentValue___dGV2T",bi="Slider-module__inputField___6x578",Ni="Slider-module__readOnlyValue___-ZzMW",oe={layoutOverride:li,sliderContainer:ii,sliderTrackWrapper:ci,iconWrapper:di,sliderRoot:ui,sliderTrack:pi,sliderBar:mi,sliderThumb:_i,sliderMark:fi,sliderMarkLabel:yi,minMaxGuide:hi,rightGuideContainer:vi,currentValue:xi,inputField:bi,readOnlyValue:Ni},Ci=({value:r})=>o.jsx("div",{className:oe.readOnlyValue,children:r}),Ks=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,tooltipLabel:g,assistiveText:h,assistiveWithIcon:x,error:v,required:j,withAsterisk:N,id:S,className:T,style:w,disabled:P,readOnly:y,readOnlyComponent:b,emptyValueComponent:C,value:O,defaultValue:k,icon:W,showInput:A=!1,showMinMaxLabels:M=!0,min:F=0,max:G=100,step:Y=1,onChange:K,onChangeEnd:H,...ee}=e,[se,ve]=i.useState(()=>O!==void 0?O:k!==void 0?k:F),I=O!==void 0?O:se,[te,ie]=i.useState(I.toString());i.useEffect(()=>{ie(I.toString())},[I]);const U=we=>{O===void 0&&ve(we),K==null||K(we)},ne=we=>{const ge=we.target.value;ie(ge);const Ee=parseFloat(ge);if(!isNaN(Ee)){const Qe=Math.max(F,Math.min(G,Ee));U(Qe)}},Pe=()=>{ie(I.toString())},de=["size","variant","radius","wrapperProps"],ce=D(m(ee,t),de),fe=ce,xe=z({root:oe.sliderRoot,track:oe.sliderTrack,bar:oe.sliderBar,thumb:oe.sliderThumb,mark:oe.sliderMark,markLabel:oe.sliderMarkLabel},fe.classNames),De=T?`${oe.layoutOverride} ${T}`:oe.layoutOverride,be=W?o.jsx("span",{className:oe.iconWrapper,"aria-hidden":!0,children:W}):null;return o.jsx(_e,{ref:n,className:De,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:h,assistiveWithIcon:x,error:v,required:j,withAsterisk:N,id:S,readOnly:y,readOnlyComponent:b||Ci,emptyValueComponent:C,readOnlyType:"text",readOnlyValue:I,readOnlyNativeProps:{value:I},activeComponent:o.jsxs("div",{className:oe.sliderContainer,"data-form-layout":s,"data-disabled":P?"true":void 0,"data-error":v?"true":void 0,children:[be,M&&o.jsx("span",{className:oe.minMaxGuide,children:F}),o.jsx("div",{className:oe.sliderTrackWrapper,children:o.jsx(u.Slider,{...ce,classNames:xe,disabled:P,value:I,onChange:U,onChangeEnd:H,min:F,max:G,step:Y,label:g})}),o.jsxs("div",{className:oe.rightGuideContainer,children:[!A&&o.jsx("span",{className:oe.currentValue,children:I}),M&&o.jsx("span",{className:oe.minMaxGuide,children:G})]}),A&&o.jsx("input",{type:"number",className:oe.inputField,value:te,onChange:ne,onBlur:Pe,min:F,max:G,step:Y,disabled:P,"data-error":v?"true":void 0})]})})});Ks.displayName="Slider";const Pi="Stack-module__root___NUN-x",vo={root:Pi},Ys=i.forwardRef(function({children:e,gap:n="rec-default",...t},s){const a={root:vo.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;a.root=p.root?`${vo.root} ${p.root}`:vo.root}const c=t.className,d=c?`${vo.root} ${c}`:vo.root;return o.jsx(u.Stack,{ref:s,className:d,classNames:a,...wo({gap:n,...t}),children:e})});Ys.displayName="Stack";const wi=u.createPolymorphicComponent(Ys),gi="Stepper-module__root___jbSYO",Ti="Stepper-module__horizontal___USHT1",Si="Stepper-module__steps___4HPO6",$i="Stepper-module__step___s2nqL",ji="Stepper-module__stepBody___TBvys",Ri="Stepper-module__stepLabel___N6nuy",Oi="Stepper-module__stepDescription___DnDAy",ki="Stepper-module__separator___pU0No",Ii="Stepper-module__vertical___d4mOs",Li="Stepper-module__large___J18-y",Mi="Stepper-module__small___Ub-zb",Ai="Stepper-module__stepIcon___YQHNq",zi="Stepper-module__stepCompletedIcon___B9MeL",Wi="Stepper-module__verticalSeparator___frWc1",Di="Stepper-module__content___J-h8X",re={root:gi,horizontal:Ti,steps:Si,step:$i,stepBody:ji,stepLabel:Ri,stepDescription:Oi,separator:ki,vertical:Ii,large:Li,small:Mi,stepIcon:Ai,stepCompletedIcon:zi,verticalSeparator:Wi,content:Di},Zs=i.forwardRef(function(e,n){const{overStyled:t=!1,size:s="large",orientation:a="horizontal",className:l,style:c,...d}=e,p=m(d,t),_=p,f=z({steps:re.steps,step:re.step,stepIcon:re.stepIcon,stepCompletedIcon:re.stepCompletedIcon,stepBody:re.stepBody,stepLabel:re.stepLabel,stepDescription:re.stepDescription,separator:re.separator,verticalSeparator:re.verticalSeparator,content:re.content},_.classNames);return o.jsx(u.Stepper,{ref:n,...p,orientation:a,className:`${re.root} ${a==="horizontal"?re.horizontal:re.vertical} ${s==="large"?re.large:re.small} ${l||""}`,style:c,"data-size":s,"data-orientation":a,classNames:f})}),Xs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Stepper.Step,{ref:t,...s})});Xs.displayName="Stepper.Step";const Ei=Object.assign(Zs,{Step:Xs,Completed:u.Stepper.Completed});Zs.displayName="Stepper";const Fi="Switch-module__root___Y5Ydi",Bi="Switch-module__track___7ObdZ",Ui="Switch-module__body___Sw9Wr",Gi="Switch-module__thumb___-FTeK",Vi="Switch-module__labelWrapper___YSOwx",Hi="Switch-module__label___LrH7V",qi="Switch-module__thumbIconWrapper___sCY-1",Ki="Switch-module__checkIcon___ZBAQN",Yi="Switch-module__closeIcon___bLLGw",Zi="Switch-module__groupRoot___-Uepi",me={root:Fi,track:Bi,body:Ui,thumb:Gi,labelWrapper:Vi,label:Hi,thumbIconWrapper:qi,checkIcon:Ki,closeIcon:Yi,groupRoot:Zi},lt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,children:w,readOnly:P,readOnlyComponent:y,emptyValueComponent:b,value:C,defaultValue:O,...k}=e,W=["size"],A=D(m(k,t),W),M=A;return o.jsx(_e,{className:S,style:T,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:g,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:b,readOnlyType:"text",readOnlyValue:C!==void 0?C:O,readOnlyNativeProps:e,activeComponent:o.jsx(u.Switch.Group,{ref:n,...A,disabled:P||M.disabled,value:C,defaultValue:O,children:o.jsx("div",{className:me.groupRoot,"data-layout":s,children:w})})})});lt.displayName="SwitchGroup";const it=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:s,readOnlyComponent:a,disabled:l,thumbIcon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...g}=e,h=["size","color","radius","variant"],x=D(m(g,t),h),v=x,j=z({root:me.root,body:me.body,track:me.track,thumb:me.thumb,trackLabel:me.trackLabel,labelWrapper:me.labelWrapper,label:me.label},v.classNames),N=$t({},v.styles),S=v.className,T=S?`${me.root} ${S}`:me.root;if(s&&a){const y=!!(v.checked??v.defaultChecked),b=a,C=o.jsx(b,{...e,checked:y,label:v.label});return d?o.jsx(Me,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:C}):o.jsx(o.Fragment,{children:C})}const w=o.jsxs("div",{className:me.thumbIconWrapper,children:[o.jsx(u.CheckIcon,{className:me.checkIcon}),o.jsx(u.CloseIcon,{className:me.closeIcon})]}),P=o.jsx(u.Switch,{ref:n,...x,className:T,classNames:j,styles:N,disabled:s||l,"data-disabled":s||l||void 0,thumbIcon:le(w,c)});return d?o.jsx(Me,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:P}):P});it.displayName="Switch";it.Group=lt;const Xi="Table-module__root___aMWWS",Ji="Table-module__sortIcon___V3-dH",Vo={root:Xi,sortIcon:Ji};function Qi(r){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...r,children:o.jsx("polyline",{points:"18 15 12 9 6 15"})})}function ec(r){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...r,children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})}const Js=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className,l=Vo.root,c=a?`${l} ${a}`:l;return o.jsx(u.Table,{ref:t,...s,className:c})});Js.displayName="Table";const Qs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.Thead,{ref:t,...s})});Qs.displayName="TableThead";const en=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.Tbody,{ref:t,...s})});en.displayName="TableTbody";const on=i.forwardRef(function({overStyled:e=!1,selected:n=!1,disabled:t=!1,...s},a){const l=m(s,e);return o.jsx(u.Table.Tr,{ref:a,...l,"data-selected":n?"true":void 0,"data-disabled":t?"true":void 0})});on.displayName="TableTr";const tn=i.forwardRef(function({overStyled:e=!1,sorted:n=!1,disabled:t=!1,children:s,...a},l){const c=m(a,e);return o.jsxs(u.Table.Th,{ref:l,...c,"data-sorted":n?"true":void 0,"data-disabled":t?"true":void 0,"aria-sort":n==="asc"?"ascending":n==="desc"?"descending":void 0,children:[s,n==="asc"&&o.jsx(Qi,{className:Vo.sortIcon}),n==="desc"&&o.jsx(ec,{className:Vo.sortIcon})]})});tn.displayName="TableTh";const sn=i.forwardRef(function({overStyled:e=!1,disabled:n=!1,variant:t="default",...s},a){const l=m(s,e);return o.jsx(u.Table.Td,{ref:a,...l,"data-disabled":n?"true":void 0,"data-currency":t==="currency"?"true":void 0})});sn.displayName="TableTd";const nn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.Tfoot,{ref:t,...s})});nn.displayName="TableTfoot";const rn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.Caption,{ref:t,...s})});rn.displayName="TableCaption";const an=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.ScrollContainer,{ref:t,...s})});an.displayName="TableScrollContainer";const We=Js;We.Thead=Qs;We.Tbody=en;We.Tr=on;We.Th=tn;We.Td=sn;We.Tfoot=nn;We.Caption=rn;We.ScrollContainer=an;const oc="Tabs-module__root___-VKVI",tc="Tabs-module__list___qRVME",sc="Tabs-module__tab___IdDYc",nc="Tabs-module__panel___08i9c",jo={root:oc,list:tc,tab:sc,panel:nc},ln=i.forwardRef(function(e,n){const{variant:t="default",orientation:s="horizontal",overStyled:a=!1,className:l,...c}=e,d=m(c,a),p=d,_=z({list:jo.list,tab:jo.tab,panel:jo.panel},p.classNames);return o.jsx(u.Tabs,{ref:n,...d,variant:t,orientation:s,className:`${jo.root} ${l||""}`,"data-variant":t,"data-orientation":s,classNames:_})});ln.displayName="Tabs";const cn=i.forwardRef(function(e,n){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.List,{ref:n,...m(s,t)})});cn.displayName="Tabs.List";const dn=i.forwardRef(function(e,n){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.Tab,{ref:n,...m(s,t)})});dn.displayName="Tabs.Tab";const un=i.forwardRef(function(e,n){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.Panel,{ref:n,...m(s,t)})});un.displayName="Tabs.Panel";const rc=Object.assign(ln,{List:cn,Tab:dn,Panel:un}),pn=i.forwardRef(function({overStyled:e=!1,variant:n="body",...t},s){const a=m(t,e),l=a.className,c=`recursica_brand_typography_${n}`,d=l?`${c} ${l}`:c;return o.jsx(u.Text,{ref:s,...a,className:d})});pn.displayName="Text";const ac=u.createPolymorphicComponent(pn),lc="TextArea-module__layoutOverride___4MCdm",ic="TextArea-module__root___3dyeu",cc="TextArea-module__input___8l36v",Ro={layoutOverride:lc,root:ic,input:cc},dc=["size","variant","radius"],mn=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,value:b,defaultValue:C,...O}=e,k=D(m(O,t),dc),W=k,A=z({wrapper:Ro.root,input:Ro.input},W.classNames),M=N?`${Ro.layoutOverride} ${N}`:Ro.layoutOverride;return o.jsx(_e,{className:M,style:S,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?b:C,readOnlyNativeProps:e,activeComponent:o.jsx(u.Textarea,{ref:n,...k,classNames:A,disabled:T,value:b,defaultValue:C,label:void 0,description:void 0,error:!!h,required:void 0,withAsterisk:void 0})})});mn.displayName="TextArea";const uc="TextField-module__layoutOverride___SNZqc",pc="TextField-module__root___2ZYkG",mc="TextField-module__input___RL-My",_c="TextField-module__section___bCIJ0",xo={layoutOverride:uc,root:pc,input:mc,section:_c},fc=["size","variant","radius"],ct=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,value:b,defaultValue:C,...O}=e,k=D(m(O,t),fc),W=k,A=z({wrapper:xo.root,input:xo.input,section:xo.section},W.classNames),M=N?`${xo.layoutOverride} ${N}`:xo.layoutOverride;return o.jsx(_e,{className:M,style:S,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?b:C,readOnlyNativeProps:e,activeComponent:o.jsx(u.Input,{ref:n,...k,classNames:A,disabled:T,value:b,defaultValue:C,wrapperProps:{"data-disabled":T?"true":void 0,"data-error":h?"true":void 0}})})});ct.displayName="TextField";const yc=["size","variant","radius"],_n=i.forwardRef(function(e,n){const{overStyled:t=!1,className:s,disabled:a,error:l,...c}=e,d=D(m(c,t),yc),p=d,_=z({wrapper:s?`${ae.root} ${s}`:ae.root,input:ae.input,section:ae.section,dropdown:ae.dropdown,option:ae.option},p.classNames);return o.jsx(u.Select,{ref:n,...d,classNames:_,disabled:a,label:void 0,description:void 0,error:void 0,attributes:{wrapper:{"data-disabled":a?"true":void 0,"data-error":l?"true":void 0}}})});_n.displayName="BareDropdown";const hc="TimePicker-module__layoutOverride___zKo4Q",vc="TimePicker-module__root___BcvRu",xc="TimePicker-module__timeWrapper___hJVre",bc="TimePicker-module__timeInput___FQysn",Nc="TimePicker-module__fieldsGroup___2yHhR",Cc="TimePicker-module__timeField___twRZd",Pc="TimePicker-module__amPmSelect___mSdvt",He={layoutOverride:hc,root:vc,timeWrapper:xc,timeInput:bc,fieldsGroup:Nc,timeField:Cc,amPmSelect:Pc},wc=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Nt(r){if(!r)return;const e=parseInt(r.slice(0,2),10);return Number.isNaN(e)?void 0:e}function gc(r,e){return`${String(e).padStart(2,"0")}${r.slice(2)}`}function Tc(r){if(!r)return;const[e,n,t]=r.split(":"),s=parseInt(e,10);if(Number.isNaN(s)||n===void 0)return r;const a=s>=12,l=s%12===0?12:s%12,c=t!==void 0?`${n}:${t}`:n;return`${l}:${c} ${a?"PM":"AM"}`}function Sc(r,e){var t;const n=(t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value"))==null?void 0:t.set;n==null||n.call(r,e),r.dispatchEvent(new Event("change",{bubbles:!0}))}const $c=["size","variant","radius"],fn=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,value:b,defaultValue:C,onChange:O,withSeconds:k,minTime:W,maxTime:A,...M}=e,F=D(m(M,t),$c),G=F,[Y,K]=i.useState(()=>b??C);i.useEffect(()=>{b!==void 0&&K(b)},[b]);const H=i.useRef(null);i.useEffect(()=>{Nt(b??C)===void 0&&H.current&&Sc(H.current,"AM")},[]);const ee=U=>{K(U),O==null||O(U)},se=Nt(Y),ve=se!==void 0&&se>=12,I=U=>{ee(U)},te=U=>{if(se===void 0||!Y||!U)return;const ne=U==="PM";if(ne===ve)return;const Pe=ne?se+12:se-12;ee(gc(Y,Pe))},ie=N?`${He.layoutOverride} ${N}`:He.layoutOverride;return o.jsx(_e,{className:ie,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:g,error:h,required:x,withAsterisk:v,id:j,readOnly:w,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:Tc(b!==void 0?b:C),readOnlyNativeProps:e,activeComponent:o.jsxs("div",{className:He.root,"data-disabled":T?"true":void 0,"data-error":h?"true":void 0,children:[o.jsx(gt.TimePicker,{ref:n,...F,classNames:z({wrapper:He.timeWrapper,input:He.timeInput,fieldsGroup:He.fieldsGroup,field:He.timeField},G.classNames),disabled:T,value:Y,onChange:I,format:"12h",withSeconds:k,min:W,max:A,withDropdown:!1,amPmRef:H}),o.jsx(_n,{overStyled:!0,className:He.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:wc,value:ve?"PM":"AM",onChange:te,disabled:T,error:!!h,"aria-label":"AM or PM"})]})})});fn.displayName="TimePicker";const jc="Timeline-module__root___LwRdZ",Rc="Timeline-module__item___T5xdQ",Oc="Timeline-module__itemBody___XAV-E",kc="Timeline-module__itemBullet___rPXCy",Ic="Timeline-module__itemTitle___GgRRW",Lc="Timeline-module__itemContent___vurs-",Mc="Timeline-module__description___f9sxV",Ac="Timeline-module__timestamp___owiRu",qe={root:jc,item:Rc,itemBody:Oc,itemBullet:kc,itemTitle:Ic,itemContent:Lc,description:Mc,timestamp:Ac},dt=i.forwardRef(function({overStyled:e=!1,timestamp:n,bulletVariant:t="default",children:s,...a},l){const c=m(a,e),d=c,p=z({item:qe.item,itemBody:qe.itemBody,itemContent:qe.itemContent,itemBullet:qe.itemBullet,itemTitle:qe.itemTitle},d.classNames),_=n?o.jsxs(o.Fragment,{children:[s&&o.jsx("div",{className:qe.description,children:s}),o.jsx("div",{className:qe.timestamp,children:n})]}):s;return o.jsx(u.TimelineItem,{ref:l,...c,classNames:p,"data-variant":t,children:_})});dt.displayName="TimelineItem";const yn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s,l=z({root:qe.root},a.classNames);return o.jsx(u.Timeline,{ref:t,...s,classNames:l})});yn.displayName="Timeline";const hn=yn;hn.Item=dt;const vn=i.forwardRef(function({overStyled:e=!1,order:n=1,...t},s){const a=["size"],l=D(m(t,e),a),c=l.className,d=`recursica_brand_typography_h${n}`,p=c?`${d} ${c}`:d;return o.jsx(u.Title,{ref:s,...l,order:n,className:p})});vn.displayName="Title";const zc="Toast-module__root___MUvfI",Wc="Toast-module__icon___VwvE1",Dc="Toast-module__loader___8Gxd-",Ec="Toast-module__title___-H6R2",Fc="Toast-module__description___-QwfC",Bc="Toast-module__closeButton___vGr7g",Uc="Toast-module__body___VLkXA",no={root:zc,icon:Wc,loader:Dc,title:Ec,description:Fc,closeButton:Bc,body:Uc},xn=i.forwardRef(function({overStyled:e=!1,variant:n="default",withCloseButton:t=!0,...s},a){const l=["color","radius","loading"],c=D(m(s,e),l),d=z({root:no.root,body:no.body,title:no.title,description:no.description,closeButton:no.closeButton,icon:no.icon,loader:no.loader},c.classNames);return o.jsx(u.Notification,{ref:a,...c,withCloseButton:t,withBorder:!1,"data-variant":n,classNames:d,loading:!1})});xn.displayName="Toast";const Gc="Tooltip-module__tooltip___UA7H9",Vc="Tooltip-module__arrow___4zROk",Ct={tooltip:Gc,arrow:Vc},bn=function({overStyled:e=!1,withBeak:n=!0,position:t="top",arrowSize:s=16,...a}){const l=m(a,e),c=l,d=z({tooltip:Ct.tooltip,arrow:Ct.arrow},c.classNames),p=c.withArrow,_=n??p;return o.jsx(u.Tooltip,{...l,position:t,arrowSize:s,withArrow:_,multiline:!0,classNames:d})};bn.displayName="Tooltip";const Nn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Tooltip.Floating,{ref:t,...s})});Nn.displayName="TooltipFloating";const ut=bn;ut.Floating=Nn;ut.Group=u.Tooltip.Group;const Hc="TransferList-module__layoutOverride___nkb32",qc="TransferList-module__root___ikjI7",Kc="TransferList-module__panes___dtwkW",Yc="TransferList-module__pane___hy-kC",Zc="TransferList-module__paneHeader___HZrKX",Xc="TransferList-module__paneSearch___Xji-g",Jc="TransferList-module__paneList___v0rcJ",Qc="TransferList-module__emptyState___azPw-",ed="TransferList-module__transferColumn___3R2Ki",od="TransferList-module__chevron___l-KdI",he={layoutOverride:Hc,root:qc,panes:Kc,pane:Yc,paneHeader:Zc,paneSearch:Xc,paneList:Jc,emptyState:Qc,transferColumn:ed,chevron:od};function Pt({direction:r}){return o.jsx("svg",{className:he.chevron,"data-direction":r,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M6 3l5 5-5 5"})})}function wt({direction:r}){return o.jsx("svg",{className:he.chevron,"data-direction":r,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M3 3l5 5-5 5M9 3l5 5-5 5"})})}function td(r){const e={},n=[];return r.forEach(t=>{var s;t.group?(e[s=t.group]??(e[s]=[])).push(t):n.push(t)}),{groups:e,ungrouped:n}}const Cn=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:s="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:g,description:h,helperText:x,assistiveWithIcon:v,error:j,required:N,id:S,readOnly:T,readOnlyComponent:w,emptyValueComponent:P,data:y,defaultData:b,onChange:C,sourceLabel:O="Available",targetLabel:k="Selected",searchable:W=!0,searchPlaceholder:A="Filter items...",disabled:M=!1,className:F,style:G,...Y}=e,K=m(Y,t),H=i.useId(),ee=S||`recursica-transfer-list-${H}`,[se,ve]=i.useState(()=>b??y??[[],[]]),I=y!==void 0?y:se,te=i.useCallback(E=>{y===void 0&&ve(E),C==null||C(E)},[y,C]),[ie,U]=i.useState(""),[ne,Pe]=i.useState(""),[de,ce]=i.useState(()=>new Set),[fe,xe]=i.useState(()=>new Set),De=i.useMemo(()=>{if(!ie)return I[0];const E=ie.toLowerCase();return I[0].filter(Z=>Z.label.toLowerCase().includes(E))},[I,ie]),be=i.useMemo(()=>{if(!ne)return I[1];const E=ne.toLowerCase();return I[1].filter(Z=>Z.label.toLowerCase().includes(E))},[I,ne]),we=i.useCallback(()=>{if(de.size===0)return;const E=I[0].filter(B=>!de.has(B.value)),Z=I[0].filter(B=>de.has(B.value));ce(new Set),te([E,[...I[1],...Z]])},[I,de,te]),ge=i.useCallback(()=>{if(fe.size===0)return;const E=I[1].filter(B=>!fe.has(B.value)),Z=I[1].filter(B=>fe.has(B.value));xe(new Set),te([[...I[0],...Z],E])},[I,fe,te]),Ee=i.useCallback(()=>{I[0].length!==0&&(ce(new Set),te([[],[...I[1],...I[0]]]))},[I,te]),Qe=i.useCallback(()=>{I[1].length!==0&&(xe(new Set),te([[...I[0],...I[1]],[]]))},[I,te]),Fe=i.useCallback(E=>{ce(Z=>{const B=new Set(Z);return B.has(E)?B.delete(E):B.add(E),B})},[]),ao=i.useCallback(E=>{xe(Z=>{const B=new Set(Z);return B.has(E)?B.delete(E):B.add(E),B})},[]),ke=(E,Z,B,L,V,X,ue,Be)=>{const{groups:eo,ungrouped:$}=td(B),J=Object.keys(eo).sort(),Q=V.size>0?`${V.size} / ${L.length}`:`${L.length}`;return o.jsxs("div",{className:he.pane,"data-pane":E,children:[o.jsxs("div",{className:he.paneHeader,children:[o.jsx("span",{children:Z}),o.jsx(Lt,{children:Q})]}),W&&o.jsx("div",{className:he.paneSearch,children:o.jsx(ct,{value:ue,onChange:q=>Be(q.currentTarget.value),placeholder:A,disabled:M,"aria-label":`Filter ${Z.toLowerCase()}`})}),o.jsxs("div",{className:he.paneList,children:[B.length===0&&o.jsx("div",{className:he.emptyState,children:"No items"}),$.length>0&&o.jsx(No,{children:$.map(q=>o.jsx(Co,{id:`${ee}-${E}-${q.value}`,label:q.label,checked:V.has(q.value),onChange:()=>X(q.value),disabled:M},q.value))}),J.map(q=>o.jsx(No,{label:q,labelSize:"small",children:eo[q].map(pe=>o.jsx(Co,{id:`${ee}-${E}-${pe.value}`,label:pe.label,checked:V.has(pe.value),onChange:()=>X(pe.value),disabled:M},pe.value))},q))]})]})},lo=F?`${he.layoutOverride} ${F}`:he.layoutOverride;return o.jsx(_e,{ref:n,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:g,description:h,helperText:x,assistiveWithIcon:v,error:j,required:N,id:ee,className:lo,style:G,overStyled:t,readOnly:T,readOnlyComponent:w,emptyValueComponent:P,readOnlyType:"text",readOnlyValue:I[1].map(E=>E.label),readOnlyNativeProps:e,activeComponent:o.jsx("div",{...K,className:he.root,"data-disabled":M?"true":void 0,"data-error":j?"true":void 0,children:o.jsxs("div",{className:he.panes,children:[ke("source",O,De,I[0],de,Fe,ie,U),o.jsxs("div",{className:he.transferColumn,children:[o.jsx(Ze,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"right"}),"aria-label":`Move all to ${k}`,disabled:M||I[0].length===0,onClick:Ee}),o.jsx(Ze,{variant:"outline",size:"small",icon:o.jsx(Pt,{direction:"right"}),"aria-label":`Move selected to ${k}`,disabled:M||de.size===0,onClick:we}),o.jsx(Ze,{variant:"outline",size:"small",icon:o.jsx(Pt,{direction:"left"}),"aria-label":`Move selected to ${O}`,disabled:M||fe.size===0,onClick:ge}),o.jsx(Ze,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"left"}),"aria-label":`Move all to ${O}`,disabled:M||I[1].length===0,onClick:Qe})]}),ke("target",k,be,I[1],fe,ao,ne,Pe)]})})})});Cn.displayName="TransferList";const sd="Tree-module__root___ANcH3",nd="Tree-module__subtree___KoLT8",rd="Tree-module__node___Hvnjg",ad="Tree-module__row___sq5ff",ld="Tree-module__label___zJDit",id="Tree-module__expandButton___W0WTT",cd="Tree-module__expandGlyph___w8dDQ",Xe={root:sd,subtree:nd,node:rd,row:ad,label:ld,expandButton:id,expandGlyph:cd};function dd(){return o.jsx("svg",{className:Xe.expandGlyph,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M5 3l5 5-5 5"})})}function ud(r){return function({node:n,hasChildren:t,expanded:s,selected:a,tree:l,elementProps:c}){return o.jsxs("div",{...c,className:Xe.row,"data-has-children":t||void 0,"data-expanded":t&&s?!0:void 0,children:[o.jsx(Ze,{overStyled:!0,variant:"text",size:"small",icon:o.jsx(dd,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:Xe.expandButton,onClick:d=>{d.stopPropagation(),!r&&l.toggleExpanded(n.value)}}),o.jsx("span",{className:Xe.label,"data-selected":a||void 0,children:n.label})]})}}const Pn=i.forwardRef(function({overStyled:e=!1,data:n,initialExpandedValues:t,initialSelectedValues:s,multiple:a=!1,disabled:l=!1,onNodeExpand:c,onNodeCollapse:d,onSelectedChange:p,..._},f){const g=m(_,e),h=u.useTree({initialExpandedState:t?u.getTreeExpandedState(n,t):void 0,initialSelectedState:s,multiple:a,onNodeExpand:c,onNodeCollapse:d});i.useEffect(()=>{p==null||p(h.selectedState)},[h.selectedState,p]);const x=i.useRef(null);i.useEffect(()=>{const T=x.current;if(!T)return;const w=P=>{if(l||P.key!=="Enter"&&P.key!==" ")return;const y=P.target.closest('[role="treeitem"]'),b=y==null?void 0:y.dataset.value;b&&(P.preventDefault(),h.select(b))};return T.addEventListener("keydown",w),()=>T.removeEventListener("keydown",w)},[h.select,l]),i.useEffect(()=>{const T=x.current;if(!T||!l)return;const w=P=>{P.preventDefault(),P.stopPropagation()};return T.addEventListener("keydown",w,{capture:!0}),()=>T.removeEventListener("keydown",w,{capture:!0})},[l]);const v=gn.useMergedRef(f,x),j=g,N=j.className,S=N?`${Xe.root} ${N}`:Xe.root;return o.jsx(u.Tree,{ref:v,...g,data:n,tree:h,expandOnClick:!1,selectOnClick:!l,expandOnSpace:!1,renderNode:ud(l),"data-disabled":l||void 0,classNames:z({root:S,node:Xe.node,subtree:Xe.subtree},j.classNames)})});Pn.displayName="Tree";const pd=Ba,md=Qt,_d=Jt,fd=es,yd=wi,hd=Gt,vd=Ja,xd=ac,bd=R(zo),Nd=R(Zo),Cd=R(Mo),Pd=R(Ao),wd=R(Io),gd=R(Ot),Td=R(Nr),Sd=R(Lt),$d=R(Mt),jd=R(Ze),Rd=R(Dr),Od=R(Co),kd=R(No),Id=R(Po),Ld=R(Vt),Md=R(Ht),Ad=R(qt),zd=R(Kt),Wd=R(Me),Dd=R(et),Ed=R(Qo),Fd=R(Xo),Bd=R(ro),Ud=R(ze),Gd=R(Cs),Vd=R(Re),Hd=R(Oe),qd=R(st),Kd=R(nt),Yd=R(at),Zd=R(rt),Xd=R(Jo),Jd=R(ai),Qd=R(Ks),eu=R(Ei),ou=R(it),tu=R(lt),su=R(We),nu=R(rc),ru=R(mn),au=R(ct),lu=R(fn),iu=R(hn),cu=R(dt),du=R(vn),uu=R(xn),pu=R(ut),mu=R(Cn),_u=R(Pn);exports.Accordion=bd;exports.AccordionControl=Cd;exports.AccordionItem=Nd;exports.AccordionPanel=Pd;exports.AssistiveElement=wd;exports.AutoComplete=gd;exports.Avatar=Td;exports.Badge=Sd;exports.Breadcrumb=$d;exports.Button=jd;exports.Card=Rd;exports.Checkbox=Od;exports.CheckboxGroup=kd;exports.Chip=Id;exports.Container=hd;exports.DatePicker=Ld;exports.Dropdown=Md;exports.EmptyValueRenderer=bo;exports.FileInput=Ad;exports.FileUpload=zd;exports.Flex=pd;exports.FormControlLayout=Wd;exports.Grid=md;exports.GridCol=_d;exports.Group=fd;exports.HoverCard=Dd;exports.IS_DEV=Je;exports.Label=Fd;exports.Layer=Ho;exports.Link=vd;exports.Loader=Ed;exports.Menu=Bd;exports.Modal=Ud;exports.NumberInput=Gd;exports.Pagination=Vd;exports.Panel=Hd;exports.PanelFooter=qd;exports.Popover=Kd;exports.RECURSICA_COMPONENTS=On;exports.Radio=Yd;exports.RadioGroup=Zd;exports.ReadOnlyField=Xd;exports.RecursicaThemeProvider=Rn;exports.SegmentedControl=Jd;exports.Slider=Qd;exports.Stack=yd;exports.Stepper=eu;exports.Switch=ou;exports.SwitchGroup=tu;exports.Table=su;exports.Tabs=nu;exports.Text=xd;exports.TextArea=ru;exports.TextField=au;exports.TimePicker=lu;exports.Timeline=iu;exports.TimelineItem=cu;exports.Title=du;exports.Toast=uu;exports.Tooltip=pu;exports.TransferList=mu;exports.Tree=_u;exports.copyToClipboard=kn;exports.fileMatchesAccept=Yo;exports.injectOverStyledStyles=qo;exports.isGlobalOverStyledActive=jn;exports.mergeClassNames=z;exports.mergeStyles=$t;exports.omitUnsupportedProps=D;exports.registerOverStyledConsoleCommand=Ko;exports.toggleGlobalOverStyled=Tt;exports.useGlobalOverStyled=St;exports.withCallerOverride=le;exports.wrapComponent=R;
|
|
11
|
+
`,document.head.appendChild(e))}function Ko(){if(!eo)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const a=e=>{try{e.recursica=e.recursica||{},e.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Tt()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};a(window),window.parent&&window.parent!==window&&a(window.parent)}const yt="data-recursica-theme";function jr({children:a,theme:e="light",initLayer0:r=!0}){return i.useEffect(()=>{const t=document.documentElement;return t.setAttribute(yt,e),()=>{t.removeAttribute(yt)}},[e]),i.useEffect(()=>{qo(),Ko()},[]),r?o.jsx(Ho,{layer:0,children:a}):o.jsx(o.Fragment,{children:a})}const Rr=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Box","Breadcrumb","Button","Card","Checkbox","CheckboxGroup","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","FileInput","FileUpload","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList","Tree","Typography"],Or=(a,e)=>{const r=document.activeElement;return new Promise((t,s)=>{if(e&&e.current){const n=document.createElement("textarea");n.readOnly=!0,n.defaultValue=a,e.current.appendChild(n),n.select();const l=document.execCommand("copy");e.current.removeChild(n),r&&r.focus(),l?t():s(new Error("Failed to copy"))}else s(new Error("Copy area reference is not defined"))})};function Yo(a,e){const r=(e??"").split(",").map(n=>n.trim().toLowerCase()).filter(Boolean);if(r.length===0)return!0;const t=a.name.toLowerCase(),s=a.type.toLowerCase();return r.some(n=>n.startsWith(".")?t.endsWith(n):n.endsWith("/*")?s.startsWith(n.slice(0,-1)):s===n)}function z(a,e){if(!e)return a;const r={...a},t=new Set([...Object.keys(a),...Object.keys(e)]);for(const s of t){const n=a[s],l=e[s];r[s]=[n,l].filter(Boolean).join(" ")||void 0}return r}function $t(a,e){if(!e)return a;const r={...a},t=new Set([...Object.keys(a),...Object.keys(e)]);for(const s of t){const n=a[s],l=e[s];r[s]=n||l?{...n,...l}:void 0}return r}function U(a,e){const r={...a};for(const t of e)t in r&&delete r[t];return r}function ce(a,e){return e!==void 0?e:a}function k(a){if(!eo||typeof a!="function"&&!(a&&a.$$typeof))return a;const e=i.forwardRef((t,s)=>{const{overStyled:n}=t,l=St(),c=i.createElement(a,{...t,ref:s});return n&&l?o.jsx("div",{className:"recursica-over-styled",children:c}):c});e.displayName=a.displayName||a.name||"Component";const r=Object.keys(a);for(const t of r){if(t==="render"||t==="$$typeof")continue;const s=a[t];(typeof s=="function"||s&&s.$$typeof)&&t[0]===t[0].toUpperCase()?e[t]=k(s):e[t]=s}return e}const kr=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],jt=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),ko={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function wo(a){const e={...a};for(const[r,t]of Object.entries(e))typeof t=="string"&&t.startsWith("rec-")&&jt.has(r)&&t in ko&&(e[r]=ko[t]);return e}function m(a,e){if(e)return a;const r={...a};for(const t of kr)t in r&&delete r[t];for(const[t,s]of Object.entries(r))typeof s=="string"&&s.startsWith("rec-")&&jt.has(t)&&s in ko&&(r[t]=ko[s]);return r}const Ir="Accordion-module__root___Dem6d",Lr="Accordion-module__item___7ryVk",Mr="Accordion-module__noDivider___Ni2tT",Ar="Accordion-module__control___b4wgX",Wr="Accordion-module__label___Ss7uW",zr="Accordion-module__icon___xfHxX",Dr="Accordion-module__chevron___i-HVZ",Er="Accordion-module__iconLeftWrapper___5oLen",Fr="Accordion-module__panel___Wx50w",Br="Accordion-module__content___PEM9t",Se={root:Ir,item:Lr,noDivider:Mr,control:Ar,label:Wr,icon:zr,chevron:Dr,iconLeftWrapper:Er,panel:Fr,content:Br},ht={default:"unstyled"},Rt=function({variant:e="default",overStyled:r=!1,...t}){const s=typeof e=="string"&&ht[e]?ht[e]:e,n=m(t,r),l=n,c=z({root:Se.root,item:Se.item,control:Se.control,label:Se.label,chevron:Se.chevron,icon:Se.icon,panel:Se.panel,content:Se.content},l.classNames),d=l.className;return o.jsx(u.Accordion,{...n,variant:s,className:d,classNames:c})};Rt.displayName="Accordion";const Zo=i.forwardRef(function({title:e,leftIcon:r,divider:t=!0,children:s,disabled:n=!1,overStyled:l=!1,...c},d){const p=m(c,l),_=p.className,f=[t?void 0:Se.noDivider,_].filter(Boolean).join(" ")||void 0;return o.jsx(u.Accordion.Item,{ref:d,...p,className:f,"data-disabled":n||void 0,children:e?o.jsxs(o.Fragment,{children:[o.jsx(Mo,{leftIcon:r,disabled:n,children:e}),o.jsx(Ao,{children:s})]}):s})});Zo.displayName="AccordionItem";const Ur=["icon"],Mo=i.forwardRef(function({leftIcon:e,children:r,overStyled:t=!1,...s},n){const l=U(m(s,t),Ur),c=l.className;return o.jsx(u.Accordion.Control,{ref:n,...l,className:c,icon:e?o.jsx("span",{className:Se.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,children:r})});Mo.displayName="AccordionControl";const Ao=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className;return o.jsx(u.Accordion.Panel,{ref:t,...s,className:n})});Ao.displayName="AccordionPanel";const Wo=Rt;Wo.Item=Zo;Wo.Control=Mo;Wo.Panel=Ao;const Gr="AssistiveElement-module__root___WhQ43",Vr="AssistiveElement-module__textWrapper___sfy5E",Hr="AssistiveElement-module__iconWrapper___gObRF",Bo={root:Gr,textWrapper:Vr,iconWrapper:Hr},qr=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"M12 16v-4"}),o.jsx("path",{d:"M12 8h.01"})]}),Kr=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),o.jsx("path",{d:"M12 9v4"}),o.jsx("path",{d:"M12 17h.01"})]}),Io=i.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:r=!0,children:t,className:s,role:n,overStyled:l=!1,...c},d){const _=m(c,l),f=Bo.root,P=s?`${f} ${s}`:f,h=e==="error"?Kr:qr,x=n??(e==="error"?"alert":void 0);return o.jsxs("div",{ref:d,..._,className:P,"data-variant":e,role:x,style:_.style,children:[r&&o.jsx("span",{className:Bo.iconWrapper,children:o.jsx(h,{})}),o.jsx("span",{className:Bo.textWrapper,children:t})]})});Io.displayName="AssistiveElement";const Yr="Label-module__root___e6HXZ",Zr="Label-module__labelText___rieFR",Xr="Label-module__required___Ggrzc",Jr="Label-module__optionalText___Y2yun",Qr="Label-module__actionAreaWrapper___ELoZK",ea="Label-module__editIconWrapper___NG2xW",Ve={root:Yr,labelText:Zr,required:Xr,optionalText:Jr,actionAreaWrapper:Qr,editIconWrapper:ea},Xo=i.forwardRef(function({labelSize:e="default",labelAlignment:r,required:t=!1,labelOptionalText:s,labelWithEditIcon:n,labelActionArea:l,onLabelEditClick:c,children:d,overStyled:p=!1,..._},f){const P=r||"left";let h;t||(s===!0?h="optional":s&&(h=s));const x=["size"],v=U(m(_,p),x),j=v,N=z({label:Ve.root,required:Ve.required},j.classNames),S=j.className,T=S?`${Ve.root} ${S}`:Ve.root;return o.jsxs(u.Input.Label,{ref:f,...v,className:T,classNames:N,"data-size":e,"data-alignment":P,required:t&&!n,children:[o.jsx("span",{className:Ve.labelText,children:d}),h&&o.jsx("span",{className:Ve.optionalText,children:typeof h=="string"?`(${h})`:h}),l?o.jsx("span",{className:Ve.actionAreaWrapper,children:l}):n?o.jsx("button",{type:"button",className:Ve.editIconWrapper,"data-replaces-asterisk":t?"true":void 0,onClick:c,"aria-label":"Edit",children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});Xo.displayName="Label";const oa="FormControlLayout-module__root___yNDhZ",ta="FormControlLayout-module__leftSection___GBM1r",sa="FormControlLayout-module__rightSection___bcL4v",So={root:oa,leftSection:ta,rightSection:sa},Ae=i.forwardRef(function({formLayout:e="stacked",labelSize:r="default",controlMaxWidth:t,controlMinWidth:s,leftSection:n,children:l,className:c,style:d,...p},_){const f=c?`${So.root} ${c}`:So.root,h=n!=null||e==="side-by-side";return o.jsxs("div",{ref:_,className:f,"data-form-layout":e,style:{...d,...t?{"--form-control-max-width":t}:{},...s?{"--form-control-min-width":s}:{}},...p,children:[h&&o.jsx("div",{className:So.leftSection,"data-size":r,children:n}),o.jsx("div",{className:So.rightSection,children:l})]})});Ae.displayName="FormControlLayout";const ra="FormControlWrapper-module__root___c-UHo",aa="FormControlWrapper-module__inputSection___HenXk",vt={root:ra,inputSection:aa},uo=i.forwardRef(function({formLayout:e,labelSize:r,labelAlignment:t,labelOptionalText:s,labelWithEditIcon:n,labelActionArea:l,onLabelEditClick:c,label:d,description:p,assistiveText:_,assistiveWithIcon:f=!0,controlMaxWidth:P,controlMinWidth:h,error:x,required:v,withAsterisk:j,id:N,children:S,className:T,overStyled:g=!1,labelElement:C,...y},b){const w=i.useId(),I=N||`recursica-fc-${w}`,L=_||p,E=L?`${I}-assistive`:void 0,A=x?`${I}-error`:void 0,q=m(y,g),V=T||q.className,H=vt.root,Q=V?`${H} ${V}`:H,K=i.isValidElement(S)?i.cloneElement(S,{...L&&!S.props["aria-describedby"]?{"aria-describedby":E}:{},...x&&!S.props["aria-errormessage"]?{"aria-errormessage":A}:{}}):S,Z=d?o.jsx(Xo,{id:I,labelAlignment:t,labelOptionalText:s,labelWithEditIcon:n,labelActionArea:l,onLabelEditClick:c,required:j??v,...C==="div"?{as:"div"}:{},children:d}):void 0;return o.jsx(Ae,{ref:b,className:Q,formLayout:e,labelSize:r,controlMaxWidth:P,controlMinWidth:h,leftSection:Z,...q,children:o.jsxs("div",{className:vt.inputSection,children:[K,x&&o.jsx(Io,{id:A,assistiveVariant:"error",assistiveWithIcon:f,children:x}),!x&&L&&o.jsx(Io,{id:E,assistiveVariant:"help",assistiveWithIcon:f,children:L})]})})});uo.displayName="FormControlWrapper";const na="ReadOnlyField-module__layoutOverride___9fSsG",la="ReadOnlyField-module__textField___qKn25",Lo={layoutOverride:na,textField:la},Oo=({value:a,overStyled:e=!1,...r})=>{const t=m(r,e),s=t.className;return o.jsx(u.Box,{component:"p",...t,className:s?`${Lo.textField} ${s}`:Lo.textField,children:a!=null?i.isValidElement(a)?a:Array.isArray(a)?a.join(", "):String(a):""})};Oo.displayName="ReadOnlyTextField";const Jo=i.forwardRef(function({value:e,type:r="text",emptyValueComponent:t,overStyled:s=!1,className:n,style:l,...c},d){let p=null;const _=m(c,s),f=t||bo,h=(f.check?f.check(e):bo.check(e))?o.jsx(f,{value:e}):e;switch(r){case"boolean":p=o.jsx(Oo,{value:e===!0?"True":e===!1?"False":h,overStyled:s});break;case"switch":p=o.jsx(Oo,{value:e===!0?"On":e===!1?"Off":h,overStyled:s});break;case"text":default:p=o.jsx(Oo,{value:h,overStyled:s});break}const x=n?`${Lo.layoutOverride} ${n}`:Lo.layoutOverride;return o.jsx(uo,{ref:d,..._,overStyled:s,className:x,style:l,children:p})});Jo.displayName="ReadOnlyField";const me=i.forwardRef(function({readOnly:e,readOnlyComponent:r,readOnlyType:t="text",readOnlyValue:s,readOnlyNativeProps:n,emptyValueComponent:l,activeComponent:c,overStyled:d,onLabelEditClick:p,..._},f){if(e){if(r){const P=r;return o.jsx(uo,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:o.jsx(P,{...n})})}return o.jsx(Jo,{ref:f,..._,type:t,value:s,emptyValueComponent:l,onLabelEditClick:p,overStyled:d})}return o.jsx(uo,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:c})});me.displayName="WithReadOnlyWrapper";const ia="AutoComplete-module__layoutOverride___-K9WL",ca="AutoComplete-module__root___kANza",da="AutoComplete-module__input___g51MC",ua="AutoComplete-module__section___WAbf1",pa="AutoComplete-module__dropdown___NqO3E",ma="AutoComplete-module__option___Y-Kja",so={layoutOverride:ia,root:ca,input:da,section:ua,dropdown:pa,option:ma},_a=["size","variant","radius"],Ot=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,value:b,defaultValue:w,...I}=e,L=U(m(I,t),_a),E=L,A=z({wrapper:so.root,input:so.input,section:so.section,dropdown:so.dropdown,option:so.option},E.classNames),M=N?`${so.layoutOverride} ${N}`:so.layoutOverride;return o.jsx(me,{className:M,style:S,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:t,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?b:w,readOnlyNativeProps:e,activeComponent:o.jsx(u.Autocomplete,{ref:r,...L,classNames:A,disabled:T,value:b,defaultValue:w,error:!!h})})});Ot.displayName="AutoComplete";const fa="Avatar-module__root___fXu-J",ya="Avatar-module__iconWrapper___ojly2",ha="Avatar-module__textWrapper___zp-jD",va="Avatar-module__image___ieqGp",xa="Avatar-module__placeholder___IDW7-",po={root:fa,iconWrapper:ya,textWrapper:ha,image:va,placeholder:xa},kt=i.forwardRef(function({size:e="default",variant:r="solid",icon:t,children:s,src:n,overStyled:l=!1,...c},d){const p={solid:"filled",outline:"outline",ghost:"transparent"},_={default:"md",small:"sm",large:"lg"},f=["color","radius"],P=U(m(c,l),f),h=P;let x="text";n?x="image":t&&(x="icon");const v=z({root:po.root,image:po.image,placeholder:po.placeholder},h.classNames),j=h.className;return o.jsx(u.Avatar,{ref:d,...P,className:j,classNames:v,variant:p[r],size:_[e],src:n,"data-variant":r,"data-size":e,"data-style":x,children:t!=null?o.jsx("span",{className:po.iconWrapper,"aria-hidden":!0,children:t}):s!=null?o.jsx("span",{className:po.textWrapper,children:s}):void 0})});kt.displayName="Avatar";const ba=u.createPolymorphicComponent(kt),Na="Badge-module__root___5osNT",mo={root:Na},It=i.forwardRef(function({variant:e="primary-color",overStyled:r=!1,...t},s){const n=m(t,r),l=z({root:mo.root,section:mo.section,label:mo.label},n.classNames),c=n.className,d=c?`${mo.root} ${c}`:mo.root;return o.jsx(u.Badge,{ref:s,...n,variant:"filled","data-variant":e,className:d,classNames:l})});It.displayName="Badge";const Lt=u.createPolymorphicComponent(It),Ca="Breadcrumb-module__root___x-9ln",Pa="Breadcrumb-module__separator___qrUX-",$o={root:Ca,separator:Pa},Mt=i.forwardRef(function({overStyled:e=!1,separator:r=">",...t},s){const n=m({separator:r,...t},e),l=z({root:$o.root,separator:$o.separator},n.classNames),c=n.attributes,d={...c,separator:{"aria-hidden":!0,...c==null?void 0:c.separator}},p=n.className,_=p?`${$o.root} ${p}`:$o.root;return o.jsx(u.Breadcrumbs,{ref:s,...n,className:_,classNames:l,attributes:d})});Mt.displayName="Breadcrumb";const wa="Loader-module__root___6iYOP",Uo={root:wa},Qo=i.forwardRef(function({variant:e="oval",size:r="default",overStyled:t=!1,...s},n){const c={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[r]||"default",d=m(s,t),p=d,_=z({root:Uo.root},p.classNames),f=p.className,P=f?`${Uo.root} ${f}`:Uo.root;return o.jsx(u.Loader,{ref:n,...d,type:e,"data-variant":e,"data-size":c,className:P,classNames:_})});Qo.displayName="Loader";const ga="Button-module__root___Q2R8-",Ta="Button-module__loader___X-9u-",Sa="Button-module__label___UJ3Zt",$a="Button-module__labelText___rFV5p",ja="Button-module__iconWrapper___uEKPa",Ra="Button-module__section___f2mKr",He={root:ga,loader:Ta,label:Sa,labelText:$a,iconWrapper:ja,section:Ra};function Oa(a){return a==null||a===""?!1:typeof a=="string"?a.trim()!=="":!0}const At=i.forwardRef(function({variant:e="solid",size:r="default",icon:t,children:s,overStyled:n=!1,loaderVariant:l="oval",loaderSize:c,useRecursicaLoader:d=!0,...p},_){const f={solid:"filled",outline:"outline",text:"subtle"},P={default:"md",small:"sm"},h=["fullWidth"],x=U(m(p,n),h),v=x,j=!!t||!!v.leftSection,N=!!v.rightSection,S=Oa(s),T=(j||N)&&!S;let g="label";T?g="icon-only":(j||N)&&(g="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&T&&!v["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const C=z({root:He.root,section:He.section,label:He.label,loader:He.loader},v.classNames),y=v.className,b=y?`${He.root} ${y}`:He.root,w=v.loaderProps,I=ce(r==="small"?"small":"default",c);let L=w;return d&&(L={children:o.jsx(Qo,{variant:l,size:I}),...w}),o.jsx(u.Button,{ref:_,...x,className:b,classNames:C,variant:f[e],size:P[r],loaderProps:L,leftSection:t!=null?o.jsx("span",{className:He.iconWrapper,"aria-hidden":!0,children:t}):void 0,"data-variant":e,"data-size":r,"data-content":g,disabled:!!v.disabled||!!v.loading,children:o.jsx("span",{className:He.labelText,children:s})})});At.displayName="Button";const Je=u.createPolymorphicComponent(At),ka="Card-module__root___c9KvZ",Ia="Card-module__header___PTXf2",La="Card-module__footer___Mu-JC",Ma="Card-module__section___BRT8H",Aa="Card-module__content___oFIQa",We={root:ka,header:Ia,footer:La,section:Ma,content:Aa},Wa=["radius","withBorder","padding"],Wt=i.forwardRef(function({overStyled:e=!1,...r},t){const s=U(m(r,e),Wa);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in r&&!(d in s)&&(s[d]=r[d])});const l=z({root:We.root},s.classNames),c=s.className;return o.jsx(u.Card,{ref:t,...s,className:c,classNames:l})});Wt.displayName="Card";const zt=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className;return o.jsx(u.Card.Section,{ref:t,...s,className:n?`${We.section} ${n}`:We.section})});zt.displayName="CardSection";const Dt=["withBorder","inheritPadding"],Et=i.forwardRef(function({overStyled:e=!1,...r},t){const s=U(m(r,e),Dt),n=s.className;return o.jsx(u.Card.Section,{ref:t,...s,className:n?`${We.header} ${n}`:We.header})});Et.displayName="CardHeader";const Ft=i.forwardRef(function({overStyled:e=!1,...r},t){const s=U(m(r,e),Dt),n=s.className;return o.jsx(u.Card.Section,{ref:t,...s,className:n?`${We.footer} ${n}`:We.footer})});Ft.displayName="CardFooter";const Bt=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className;return o.jsx("div",{ref:t,...s,className:n?`${We.content} ${n}`:We.content})});Bt.displayName="CardContent";const Ut=u.createPolymorphicComponent(Wt),zo=Ut;zo.Section=zt;zo.Header=Et;zo.Footer=Ft;zo.Content=Bt;const za=Ut,Da="Checkbox-module__groupRoot___cBS0o",Ea="Checkbox-module__root___mY3qk",Fa="Checkbox-module__body___5yC7q",Ba="Checkbox-module__inner___rTke4",Ua="Checkbox-module__input___2kt-h",Ga="Checkbox-module__icon___-O7i6",Va="Checkbox-module__labelWrapper___GpZkr",Ha="Checkbox-module__label___cwRtI",ge={groupRoot:Da,root:Ea,body:Fa,inner:Ba,input:Ua,icon:Ga,labelWrapper:Va,label:Ha},No=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,children:g,readOnly:C,readOnlyComponent:y,emptyValueComponent:b,value:w,defaultValue:I,...L}=e,E=["size"],A=U(m(L,t),E),M=A,q=w!==void 0||I!==void 0;return o.jsx(me,{className:S,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,readOnly:C&&!!y,readOnlyComponent:y,emptyValueComponent:b,readOnlyType:"text",readOnlyValue:w!==void 0?w:I,readOnlyNativeProps:e,activeComponent:q?o.jsx(u.Checkbox.Group,{ref:r,...A,disabled:C||M.disabled,value:w,defaultValue:I,children:o.jsx("div",{className:ge.groupRoot,"data-layout":s,children:g})}):o.jsx("div",{ref:r,...A,role:"group",className:ge.groupRoot,"data-layout":s,children:g})})});No.displayName="CheckboxGroup";const Co=i.forwardRef(function(e,r){const{overStyled:t=!1,readOnly:s,readOnlyComponent:n,disabled:l,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,...f}=e,P=["size","color","radius","variant","iconColor"],h=U(m(f,t),P),x=h,v=z({root:ge.root,body:ge.body,inner:ge.inner,input:ge.input,icon:ge.icon,labelWrapper:ge.labelWrapper,label:ge.label},x.classNames),j=x.className,N=j?`${ge.root} ${j}`:ge.root;if(s&&n){const T=!!(x.checked??x.defaultChecked),g=n,C=o.jsx(g,{...e,checked:T,label:x.label});return c?o.jsx(Ae,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:C}):o.jsx(o.Fragment,{children:C})}const S=o.jsx(u.Checkbox,{ref:r,...h,className:N,classNames:v,disabled:s||l});return c?o.jsx(Ae,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:S}):S});Co.displayName="Checkbox";Co.Group=No;const qa="Chip-module__root___f5pFk",Ka="Chip-module__label___Ov9pg",Ya="Chip-module__mantineIconWrapper___KLSz6",Za="Chip-module__innerWrapper___EnrTF",Xa="Chip-module__children___zbRAR",Ja="Chip-module__leadingIcon___JBtjQ",Qa="Chip-module__deleteIcon___zPPsH",we={root:qa,label:Ka,mantineIconWrapper:Ya,innerWrapper:Za,children:Xa,leadingIcon:Ja,deleteIcon:Qa};function en(a){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...a,children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Po=i.forwardRef(function({error:e=!1,icon:r,onDelete:t,deleteLabel:s="Delete",deleteTabIndex:n,deleteIconRef:l,children:c,overStyled:d=!1,wrapperProps:p,tabIndex:_,"aria-hidden":f,...P},h){const x=m(P,d),v=x,j=z({root:we.root,label:we.label,input:we.input,iconWrapper:we.mantineIconWrapper,checkIcon:we.checkIcon},v.classNames),N=v.className,S=N?`${we.root} ${N}`:we.root,T=e?"":void 0,g=!c&&(!!r||!!t),C=t!==void 0||v.onClick!==void 0||v.onChange!==void 0,y={...T!==void 0?{"data-error":""}:{},...C?{"data-interactive":""}:{}};return o.jsx(u.Chip,{ref:h,...x,className:S,classNames:j,wrapperProps:ce(y,p),"data-icon-only":g?"":void 0,tabIndex:ce(C?void 0:-1,_),"aria-hidden":ce(C?void 0:!0,f),children:o.jsxs("span",{className:we.innerWrapper,children:[r&&o.jsx("span",{className:we.leadingIcon,"aria-hidden":!0,children:r}),o.jsx("span",{className:we.children,children:c}),t&&o.jsx("span",{ref:l,role:"button",className:we.deleteIcon,onClick:b=>{b.preventDefault(),b.stopPropagation(),t(b)},"aria-label":s,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),b.stopPropagation(),t(b))},tabIndex:n??0,children:o.jsx(en,{})})]})})});Po.displayName="Chip";const on="Container-module__root___UVssr",_o={root:on},Gt=i.forwardRef(function({children:e,size:r,...t},s){const n={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof r=="string"&&n[r]?n[r]:r,c={root:_o.root},d=t.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;c.root=f.root?`${_o.root} ${f.root}`:_o.root}const p=t.className,_=p?`${_o.root} ${p}`:_o.root;return o.jsx(u.Container,{ref:s,size:l,className:_,classNames:c,...t,children:e})});Gt.displayName="Container";function tn(a){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:[o.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),o.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),o.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),o.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})}const sn="DatePicker-module__layoutOverride___X9yaM",rn="DatePicker-module__root___6XvRT",an="DatePicker-module__input___pcSW8",nn="DatePicker-module__section___n3iWA",ln="DatePicker-module__dropdown___wjt08",cn="DatePicker-module__calendarHeader___KHxno",dn="DatePicker-module__calendarHeaderControl___q7UvJ",un="DatePicker-module__calendarHeaderLevel___ebdJ2",pn="DatePicker-module__calendarHeaderControlIcon___2tZOb",mn="DatePicker-module__weekday___H5lIj",_n="DatePicker-module__day___U03J2",ve={layoutOverride:sn,root:rn,input:an,section:nn,dropdown:ln,calendarHeader:cn,calendarHeaderControl:dn,calendarHeaderLevel:un,calendarHeaderControlIcon:pn,weekday:mn,day:_n},fn=["size","variant","radius","description"],Vt=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,value:b,defaultValue:w,highlightToday:I=!0,valueFormat:L="MM/DD/YY",placeholder:E="MM / DD / YY",leftSection:A,...M}=e,q=U(m(M,t),fn),V=q,H=z({wrapper:ve.root,input:ve.input,section:ve.section,day:ve.day,weekday:ve.weekday,calendarHeader:ve.calendarHeader,calendarHeaderControl:ve.calendarHeaderControl,calendarHeaderLevel:ve.calendarHeaderLevel,calendarHeaderControlIcon:ve.calendarHeaderControlIcon},V.classNames),Q=V.popoverProps,K=Q&&typeof Q=="object"&&!Array.isArray(Q)?Q:void 0,Z=K!=null&&K.classNames&&typeof K.classNames=="object"&&!Array.isArray(K.classNames)?K.classNames:void 0;delete V.popoverProps;const se={...K,classNames:z({dropdown:ve.dropdown},Z)},_e=N?`${ve.layoutOverride} ${N}`:ve.layoutOverride;return o.jsx(me,{className:_e,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?String(b):w?String(w):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(gt.DatePickerInput,{ref:r,...q,classNames:H,disabled:T,value:b,defaultValue:w,label:void 0,description:void 0,error:void 0,withAsterisk:!1,highlightToday:I,valueFormat:L,placeholder:E,leftSection:ce(o.jsx(tn,{}),A),wrapperProps:{"data-disabled":T?"true":void 0,"data-error":h?"true":void 0},popoverProps:se})})});Vt.displayName="DatePicker";const yn="Dropdown-module__layoutOverride___FNcvP",hn="Dropdown-module__root___uVyL0",vn="Dropdown-module__input___dK4dN",xn="Dropdown-module__section___j3MRB",bn="Dropdown-module__clearButton___ODnIa",Nn="Dropdown-module__dropdown___gG-Sw",Cn="Dropdown-module__option___nAGU-",ie={layoutOverride:yn,root:hn,input:vn,section:xn,clearButton:bn,dropdown:Nn,option:Cn},Pn=["size","variant","radius"],Ht=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",containerWidth:n,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:_,label:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,disabled:g,readOnly:C,readOnlyComponent:y,emptyValueComponent:b,value:w,defaultValue:I,data:L,clearButtonProps:E,...A}=e,M=U(m(A,t),Pn),q=M,V=E,H={...V,className:V!=null&&V.className?`${ie.clearButton} ${V.className}`:ie.clearButton},Q=z({wrapper:ie.root,input:ie.input,section:ie.section,dropdown:ie.dropdown,option:ie.option},q.classNames),K={...T||{},width:n||"100%"},Z=S?`${ie.layoutOverride} ${S}`:ie.layoutOverride;return o.jsx(me,{className:Z,style:K,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:t,formLayout:s,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:_,label:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,readOnly:C,readOnlyComponent:y,emptyValueComponent:b,readOnlyType:"text",readOnlyValue:w!==void 0?String(w):I?String(I):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(u.Select,{ref:r,...M,classNames:Q,disabled:g,value:w,defaultValue:I,data:L||[],clearButtonProps:H,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,attributes:{wrapper:{"data-disabled":g?"true":void 0,"data-error":x?"true":void 0}}})})});Ht.displayName="Dropdown";const wn="FileInput-module__layoutOverride___HIOY6",gn="FileInput-module__root___UvQj-",Tn="FileInput-module__leadingIcon___z75c4",Sn="FileInput-module__content___Udsvh",$n="FileInput-module__value___RX33R",jn="FileInput-module__chipRow___My6TF",Rn="FileInput-module__chipWrapper___q2CDy",On="FileInput-module__trailingIcon___odGPm",Le={layoutOverride:wn,root:gn,leadingIcon:Tn,content:Sn,value:$n,chipRow:jn,chipWrapper:Rn,trailingIcon:On};function kn(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[o.jsx("path",{d:"M12 3v12"}),o.jsx("path",{d:"M7 8l5-5 5 5"}),o.jsx("path",{d:"M4 21h16"})]})}function In(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const qt=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,disabled:g,readOnly:C,files:y,onFilesAdded:b,onFileRemove:w,accept:I,multiple:L=!1,maxSize:E,maxFiles:A,onFilesRejected:M,invalidFileTypeMessage:q="File type not accepted",maxFilesMessage:V=L?`Maximum of ${A} files allowed`:"Only one file is allowed",icon:H,clearIcon:Q,placeholder:K="Select a file...",browseLabel:Z="Choose file",removeFileLabel:se="Remove",clearLabel:_e="Clear",...D}=e,fe=m(D,t),R=!g&&!C,re=!!y&&y.length>0,ye=i.useRef(null),[te,ae]=i.useState(!1),[he,be]=i.useState(!1),Ee=$=>{if(!R)return;const ee=Array.from($);if(ee.length===0)return;const oe=L?A:1,X=L?(y==null?void 0:y.length)??0:0,ue=[],To=[];let pt=!1,mt=!1;for(const Eo of ee){const _t=!Yo(Eo,I);_t&&(pt=!0);const Pr=E!==void 0&&Eo.size>E,ft=oe!==void 0&&X+ue.length>=oe;ft&&(mt=!0),(_t||Pr||ft?To:ue).push(Eo)}ae(pt),be(mt),ue.length>0&&(b==null||b(ue)),To.length>0&&(M==null||M(To))},Ne=i.useRef(0),[Fe,ke]=i.useState(!1),Ie=$=>{$.preventDefault(),Ne.current+=1,ke(!0)},oo=$=>{$.preventDefault(),Ne.current-=1,Ne.current<=0&&(Ne.current=0,ke(!1))},Ce=$=>{$.preventDefault()},Be=$=>{$.preventDefault(),Ne.current=0,ke(!1),Ee($.dataTransfer.files)},Pe=()=>{var $;R&&(($=ye.current)==null||$.click())},Ue=$=>{$.key!=="Enter"&&$.key!==" "||($.preventDefault(),Pe())},G=$=>{$.target.files&&Ee($.target.files),$.target.value=""},F=()=>{!R||!y||y.length===0||y.forEach($=>w==null?void 0:w($.id??$.file.name))},[W,O]=i.useState(0),B=i.useRef([]),Y=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var ee;const $=(y==null?void 0:y.length)??0;if($>0&&$<Y.current){const oe=Math.min(W,$-1);O(oe),(ee=B.current[oe])==null||ee.focus()}Y.current=$},[y]);const de=$=>{var X;const ee=(y==null?void 0:y.length)??0;if(ee===0)return;let oe;$.key==="ArrowRight"||$.key==="ArrowDown"?oe=(W+1)%ee:($.key==="ArrowLeft"||$.key==="ArrowUp")&&(oe=(W-1+ee)%ee),oe!==void 0&&($.preventDefault(),$.stopPropagation(),O(oe),(X=B.current[oe])==null||X.focus())},Ge=x??(te?q:he?V:void 0),to=S?`${Le.layoutOverride} ${S}`:Le.layoutOverride;return o.jsx(uo,{overStyled:t,className:to,style:T,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:P,assistiveWithIcon:h,error:Ge,required:v,withAsterisk:j,id:N,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:o.jsxs("div",{ref:r,...fe,className:Le.root,role:"button","aria-label":Z,"aria-disabled":g?"true":void 0,tabIndex:R?0:-1,"data-disabled":g?"true":void 0,"data-readonly":C?"true":void 0,"data-error":Ge?"true":void 0,"data-dragging":Fe?"true":void 0,onClick:R?Pe:void 0,onKeyDown:R?Ue:void 0,onDragEnter:R?Ie:void 0,onDragLeave:R?oo:void 0,onDragOver:R?Ce:void 0,onDrop:R?Be:void 0,children:[o.jsx("span",{className:Le.leadingIcon,"aria-hidden":!0,children:H??o.jsx(kn,{})}),o.jsxs("div",{className:Le.content,children:[!re&&o.jsx("span",{className:Le.value,"data-placeholder":"true",children:K}),re&&o.jsx("div",{className:Le.chipRow,onKeyDown:C?void 0:de,children:y.map(($,ee)=>{const oe=$.id??$.file.name;return o.jsx("span",{className:Le.chipWrapper,onClick:X=>X.stopPropagation(),children:o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:C?void 0:se,deleteTabIndex:!C&&ee===W?0:-1,deleteIconRef:X=>{B.current[ee]=X},onDelete:C||g?void 0:()=>w==null?void 0:w(oe),children:$.file.name})},oe)})})]}),re&&!C&&o.jsx(Je,{overStyled:!0,variant:"text",size:"small",icon:Q??o.jsx(In,{}),"aria-label":_e,className:Le.trailingIcon,disabled:g,onClick:$=>{$.preventDefault(),$.stopPropagation(),F()},onKeyDown:$=>{$.key!=="Enter"&&$.key!==" "||($.preventDefault(),$.stopPropagation(),F())}}),o.jsx("input",{ref:ye,type:"file",hidden:!0,accept:I,multiple:L,disabled:!R,onChange:G})]})})});qt.displayName="FileInput";const Ln="FileUpload-module__layoutOverride___bPpi8",Mn="FileUpload-module__root___Q-vcm",An="FileUpload-module__dropzone___jqua0",Wn="FileUpload-module__uploadIcon___bb3Nc",zn="FileUpload-module__dropzoneText___L7vS-",Dn="FileUpload-module__fileList___XIWLl",qe={layoutOverride:Ln,root:Mn,dropzone:An,uploadIcon:Wn,dropzoneText:zn,fileList:Dn};function En(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[o.jsx("path",{d:"M12 3v12"}),o.jsx("path",{d:"M7 8l5-5 5 5"}),o.jsx("path",{d:"M4 21h16"})]})}const Kt=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,disabled:g,readOnly:C,files:y,onFilesAdded:b,onFileRemove:w,accept:I,multiple:L=!0,maxSize:E,maxFiles:A,onFilesRejected:M,invalidFileTypeMessage:q="File type not accepted",maxFilesMessage:V=`Maximum of ${A} files allowed`,icon:H,dropzoneLabel:Q="Drag and drop files here to upload",browseButtonLabel:K="Browse files",removeFileLabel:Z="Remove",...se}=e,D=m(se,t),ne=i.useRef(null),[fe,R]=i.useState(!1),[re,ye]=i.useState(!1),te=O=>{if(g)return;const B=Array.from(O);if(B.length===0)return;const Y=(y==null?void 0:y.length)??0,de=[],Ge=[];let to=!1,$=!1;for(const ee of B){const oe=!Yo(ee,I);oe&&(to=!0);const X=E!==void 0&&ee.size>E,ue=A!==void 0&&Y+de.length>=A;ue&&($=!0),(oe||X||ue?Ge:de).push(ee)}R(to),ye($),de.length>0&&(b==null||b(de)),Ge.length>0&&(M==null||M(Ge))},ae=i.useRef(0),[he,be]=i.useState(!1),Ee=O=>{O.preventDefault(),ae.current+=1,be(!0)},Ne=O=>{O.preventDefault(),ae.current-=1,ae.current<=0&&(ae.current=0,be(!1))},Fe=O=>{O.preventDefault()},ke=O=>{O.preventDefault(),ae.current=0,be(!1),te(O.dataTransfer.files)},Ie=()=>{var O;g||(O=ne.current)==null||O.click()},oo=O=>{O.target.files&&te(O.target.files),O.target.value=""},[Ce,Be]=i.useState(0),Pe=i.useRef([]),Ue=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var B;const O=(y==null?void 0:y.length)??0;if(O>0&&O<Ue.current){const Y=Math.min(Ce,O-1);Be(Y),(B=Pe.current[Y])==null||B.focus()}Ue.current=O},[y]);const G=O=>{var de;const B=(y==null?void 0:y.length)??0;if(B===0)return;let Y;O.key==="ArrowRight"||O.key==="ArrowDown"?Y=(Ce+1)%B:(O.key==="ArrowLeft"||O.key==="ArrowUp")&&(Y=(Ce-1+B)%B),Y!==void 0&&(O.preventDefault(),Be(Y),(de=Pe.current[Y])==null||de.focus())},F=x??(fe?q:re?V:void 0),W=S?`${qe.layoutOverride} ${S}`:qe.layoutOverride;return o.jsx(uo,{overStyled:t,className:W,style:T,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:P,assistiveWithIcon:h,error:F,required:v,withAsterisk:j,id:N,children:o.jsxs("div",{ref:r,...D,className:qe.root,"data-disabled":g?"true":void 0,"data-error":F?"true":void 0,children:[!C&&o.jsxs("div",{className:qe.dropzone,"data-dragging":he?"true":void 0,onDragEnter:g?void 0:Ee,onDragLeave:g?void 0:Ne,onDragOver:g?void 0:Fe,onDrop:g?void 0:ke,children:[o.jsx("span",{className:qe.uploadIcon,children:H??o.jsx(En,{})}),o.jsx("span",{className:qe.dropzoneText,children:Q}),o.jsx(Je,{variant:"outline",disabled:g,onClick:Ie,children:K}),o.jsx("input",{ref:ne,type:"file",hidden:!0,accept:I,multiple:L,disabled:g,onChange:oo})]}),y&&y.length>0&&(C?o.jsx("div",{className:qe.fileList,children:y.map(O=>{const B=O.id??O.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,children:O.file.name},B)})}):o.jsx("div",{className:qe.fileList,onKeyDown:G,children:y.map((O,B)=>{const Y=O.id??O.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:Z,deleteTabIndex:B===Ce?0:-1,deleteIconRef:de=>{Pe.current[B]=de},onDelete:g?void 0:()=>w==null?void 0:w(Y),children:O.file.name},Y)})}))]})})});Kt.displayName="FileUpload";const Fn="Flex-module__root___yYser",fo={root:Fn},Yt=i.forwardRef(function({children:e,gap:r="rec-default",rowGap:t,columnGap:s,...n},l){const c={root:fo.root},d=n.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;c.root=f.root?`${fo.root} ${f.root}`:fo.root}const p=n.className,_=p?`${fo.root} ${p}`:fo.root;return o.jsx(u.Flex,{ref:l,className:_,classNames:c,...wo({gap:r,rowGap:t,columnGap:s,...n}),children:e})});Yt.displayName="Flex";const Bn=u.createPolymorphicComponent(Yt),Un="Grid-module__root___s-qPY",Gn="Grid-module__col___tbuNg",$e={root:Un,col:Gn},Zt=i.forwardRef(function({children:e,gap:r="rec-default",...t},s){const n={root:$e.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const f=l;n.root=f.root?`${$e.root} ${f.root}`:$e.root}const c=t.className,d=c?`${$e.root} ${c}`:$e.root,{gap:p,..._}=wo({gap:r,...t});return o.jsx(u.Grid,{ref:s,gutter:p,className:d,classNames:n,..._,children:e})});Zt.displayName="Grid";const Vn=u.createPolymorphicComponent(Zt),Xt=i.forwardRef(function({children:e,...r},t){const s={col:$e.col},n=r.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const d=n;s.col=d.col?`${$e.col} ${d.col}`:$e.col}const l=r.className,c=l?`${$e.col} ${l}`:$e.col;return o.jsx(u.Grid.Col,{ref:t,className:c,classNames:s,...wo(r),children:e})});Xt.displayName="GridCol";const Jt=u.createPolymorphicComponent(Xt),Qt=Vn;Qt.Col=Jt;const Hn="Group-module__root___ftO64",yo={root:Hn},es=i.forwardRef(function({children:e,gap:r="rec-default",...t},s){const n={root:yo.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;n.root=p.root?`${yo.root} ${p.root}`:yo.root}const c=t.className,d=c?`${yo.root} ${c}`:yo.root;return o.jsx(u.Group,{ref:s,className:d,classNames:n,...wo({gap:r,...t}),children:e})});es.displayName="Group";const qn="HoverCard-module__dropdown___FBPFW",Kn="HoverCard-module__arrow___S9AkE",xt={dropdown:qn,arrow:Kn},os=function({overStyled:e=!1,withBeak:r=!0,position:t="top",arrowSize:s=16,withArrow:n,...l}){const c=m(l,e),d=c,p=z({dropdown:xt.dropdown,arrow:xt.arrow},d.classNames),_=r??n;return o.jsx(u.HoverCard,{...c,position:t,arrowSize:s,withArrow:_,classNames:p})};os.displayName="HoverCard";const ts=function(e){return o.jsx(u.HoverCard.Target,{...e})};ts.displayName="HoverCardTarget";const ss=function({overStyled:e=!1,...r}){const t=m(r,e),s=t.className;return o.jsx(u.HoverCard.Dropdown,{...t,className:s})};ss.displayName="HoverCardDropdown";const et=os;et.Target=ts;et.Dropdown=ss;const Yn="Link-module__root___I0VGE",Zn="Link-module__iconWrapper___W-LlF",Xn="Link-module__labelText___wSvUy",ho={root:Yn,iconWrapper:Zn,labelText:Xn},rs=i.forwardRef(function({icon:e,children:r,overStyled:t=!1,...s},n){const l=m(s,t),c=l,d=z({root:ho.root},c.classNames),p=c.className,_=p?`${ho.root} ${p}`:ho.root;return o.jsxs(u.Anchor,{ref:n,...l,className:_,classNames:d,underline:"never",...e?{"data-has-icon":""}:{},children:[e&&o.jsx("span",{className:ho.iconWrapper,"aria-hidden":!0,children:e}),o.jsx("span",{className:ho.labelText,children:r})]})});rs.displayName="Link";const Jn=u.createPolymorphicComponent(rs),Qn="Menu-module__dropdown___j4xuA",el="Menu-module__item___NMXha",ol="Menu-module__itemLabel___zvcqC",tl="Menu-module__itemSection___pRIcn",sl="Menu-module__divider___wPiNq",rl="Menu-module__label___4FBGa",al="Menu-module__chevron___hEEiy",ro={dropdown:Qn,item:el,itemLabel:ol,itemSection:tl,divider:sl,label:rl,chevron:al},as=function({overStyled:e=!1,...r}){const t=m(r,e),s=t,n=z({dropdown:ro.dropdown,item:ro.item,itemLabel:ro.itemLabel,itemSection:ro.itemSection,divider:ro.divider,label:ro.label,chevron:ro.chevron},s.classNames);return o.jsx(u.Menu,{...t,classNames:n})};as.displayName="Menu";const ns=function({overStyled:e=!1,...r}){const t=m(r,e);return o.jsx(u.Menu.Target,{...t})};ns.displayName="MenuTarget";const ls=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className;return o.jsx(u.Menu.Dropdown,{...s,ref:t,className:n})});ls.displayName="MenuDropdown";const is=i.forwardRef(function({overStyled:e=!1,...r},t){const s=["color"],n=U(m(r,e),s),c=n.className;return o.jsx(u.Menu.Item,{...n,ref:t,className:c})});is.displayName="MenuItem";const nl=u.createPolymorphicComponent(is),cs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className;return o.jsx(u.Menu.Divider,{...s,ref:t,className:n})});cs.displayName="MenuDivider";const ds=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className;return o.jsx(u.Menu.Label,{...s,ref:t,className:n})});ds.displayName="MenuLabel";const us=function(e){return o.jsx(u.Menu.Sub,{...e})};us.displayName="MenuSub";const ps=function(e){return o.jsx(u.Menu.Sub.Target,{...e})};ps.displayName="MenuSubTarget";const ms=i.forwardRef(function({overStyled:e=!1,...r},t){const s=["color"],n=U(m(r,e),s),c=n.className;return o.jsx(u.Menu.Sub.Item,{...n,ref:t,className:c})});ms.displayName="MenuSubItem";const ll=u.createPolymorphicComponent(ms),_s=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className;return o.jsx(u.Menu.Sub.Dropdown,{...s,ref:t,className:n})});_s.displayName="MenuSubDropdown";const Do=us;Do.Target=ps;Do.Item=ll;Do.Dropdown=_s;const lo=as;lo.Target=ns;lo.Dropdown=ls;lo.Item=nl;lo.Divider=cs;lo.Label=ds;lo.Sub=Do;const il="Modal-module__root___ytPLl",cl="Modal-module__inner___SSUJE",dl="Modal-module__content___dWO-B",ul="Modal-module__header___ILG9i",pl="Modal-module__title___A5OeE",ml="Modal-module__bodyWrapper___5CCL-",_l="Modal-module__scrollArea___KD-hm",fl="Modal-module__footer___rro2w",yl="Modal-module__close___-ER1C",Me={root:il,inner:cl,content:dl,header:ul,title:pl,bodyWrapper:ml,scrollArea:_l,footer:fl,close:yl},fs=i.forwardRef(function({overStyled:e=!1,children:r,title:t,withCloseButton:s=!0,overlayProps:n,withOverlay:l=!0,closeButtonProps:c,...d},p){const _=["size","radius"],f=U(m(d,e),_),P=z({root:Me.root,inner:Me.inner,content:Me.content,header:Me.header,title:Me.title,close:Me.close},f.classNames);return o.jsxs(u.Modal.Root,{ref:p,...f,classNames:P,children:[l&&o.jsx(u.Modal.Overlay,{...n}),o.jsxs(u.Modal.Content,{children:[(t||s)&&o.jsxs(u.Modal.Header,{children:[t&&o.jsx(u.Modal.Title,{children:t}),s&&o.jsx(u.Modal.CloseButton,{...c})]}),o.jsx(tt,{children:r})]})]})});fs.displayName="Modal";const ot=i.forwardRef(function({overStyled:e=!1,className:r,...t},s){const n=m(t,e);return o.jsx("div",{ref:s,...n,className:`${Me.footer} ${r||""}`})});ot.displayName="Modal.Footer";const tt=i.forwardRef(function({overStyled:e=!1,className:r,onScroll:t,children:s,...n},l){const c=m(n,e),d=i.useRef(null),[p,_]=i.useState(!1),[f,P]=i.useState(!1),h=i.useCallback(()=>{if(d.current){const{scrollTop:N,scrollHeight:S,clientHeight:T}=d.current;_(N>0),P(Math.ceil(N+T)<S)}},[]);i.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,s]);const x=N=>{h(),t==null||t(N)};let v=null;const j=[];return i.Children.forEach(s,N=>{var S;i.isValidElement(N)&&(N.type===ot||((S=N.type)==null?void 0:S.displayName)==="Modal.Footer")?v=N:j.push(N)}),o.jsxs(u.Modal.Body,{...c,ref:N=>{typeof l=="function"?l(N):l&&(l.current=N)},className:`${Me.bodyWrapper} ${r||""}`,children:[o.jsx("div",{ref:d,onScroll:x,"data-scrolled-top":p||void 0,"data-scrolled-bottom":f||void 0,className:Me.scrollArea,children:j}),v]})});tt.displayName="Modal.Body";const hl=["size","radius"],ys=i.forwardRef(function({overStyled:e=!1,...r},t){const s=U(m(r,e),hl);return o.jsx(u.Modal.Root,{ref:t,...s})});ys.displayName="Modal.Root";const hs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Modal.Overlay,{ref:t,...s})});hs.displayName="Modal.Overlay";const vl=["radius"],vs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=U(m(r,e),vl);return o.jsx(u.Modal.Content,{ref:t,...s})});vs.displayName="Modal.Content";const xs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Modal.Header,{ref:t,...s})});xs.displayName="Modal.Header";const bs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Modal.Title,{ref:t,...s})});bs.displayName="Modal.Title";const xl=["size","radius"],Ns=i.forwardRef(function({overStyled:e=!1,...r},t){const s=U(m(r,e),xl);return o.jsx(u.Modal.CloseButton,{ref:t,...s})});Ns.displayName="Modal.CloseButton";const ze=fs;ze.Root=ys;ze.Overlay=hs;ze.Content=vs;ze.Header=xs;ze.Title=bs;ze.CloseButton=Ns;ze.Body=tt;ze.Footer=ot;const bl="NumberInput-module__layoutOverride___5-9T4",Nl="NumberInput-module__root___C6rAn",Cl="NumberInput-module__input___Ss8p7",Pl="NumberInput-module__section___MijP0",wl="NumberInput-module__controls___8UfQ2",gl="NumberInput-module__control___Qre9-",ao={layoutOverride:bl,root:Nl,input:Cl,section:Pl,controls:wl,control:gl},Tl=["size","variant","radius"],Cs=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,value:b,defaultValue:w,hideControls:I=!1,...L}=e,E=U(m(L,t),Tl),A=E,M={wrapper:ao.root,input:ao.input,section:ao.section,controls:ao.controls,control:ao.control},q=N?`${ao.layoutOverride} ${N}`:ao.layoutOverride;return o.jsx(me,{className:q,style:S,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:t,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?b==null?void 0:b.toString():w==null?void 0:w.toString(),readOnlyNativeProps:e,activeComponent:o.jsx(u.NumberInput,{ref:r,...E,classNames:M,disabled:T,value:b,defaultValue:w,hideControls:I,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":T?"true":void 0,"data-error":h?"true":void 0,"data-with-left-section":A.leftSection?"true":void 0,"data-with-right-section":A.rightSection||!I?"true":void 0}})})});Cs.displayName="NumberInput";const Sl="Pagination-module__root___ITRjt",$l="Pagination-module__control___40yNT",jl="Pagination-module__dots___Yl9da",Rl="Pagination-module__iconWithLabel___pLM4O",Ol="Pagination-module__baseIcon___Qw3bJ",je={root:Sl,control:$l,dots:jl,iconWithLabel:Rl,baseIcon:Ol},kl="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Il="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",Ll="M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z",Ml="M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z",Al={next:kl,prev:Il,first:Ll,last:Ml},go=({type:a,className:e,...r})=>o.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${je.baseIcon} ${e||""}`.trim(),...r,children:o.jsx("path",{d:Al[a],fill:"currentColor"})}),Ps=a=>o.jsxs("div",{className:je.iconWithLabel,children:[o.jsx("span",{children:"Next"}),o.jsx(go,{type:"next",...a})]}),ws=a=>o.jsxs("div",{className:je.iconWithLabel,children:[o.jsx(go,{type:"prev",...a}),o.jsx("span",{children:"Prev"})]}),gs=a=>o.jsxs("div",{className:je.iconWithLabel,children:[o.jsx(go,{type:"first",...a}),o.jsx("span",{children:"First"})]}),Ts=a=>o.jsxs("div",{className:je.iconWithLabel,children:[o.jsx("span",{children:"Last"}),o.jsx(go,{type:"last",...a})]});function Ss(a){const e=z({root:je.root,control:je.control,dots:je.dots},a.classNames),r=a.className;return{className:r?`${je.root} ${r}`:je.root,classNames:e}}const $s=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=Ss(s);return o.jsx(u.Pagination.Root,{ref:t,...s,className:n.className,classNames:n.classNames})});$s.displayName="Pagination.Root";const js=i.forwardRef(function({overStyled:e=!1,withLabel:r,icon:t,...s},n){const l=m(s,e),c=r?Ps:void 0;return o.jsx(u.Pagination.Next,{ref:n,...l,"data-variant":"text",icon:ce(c,t)})});js.displayName="Pagination.Next";const Rs=i.forwardRef(function({overStyled:e=!1,withLabel:r,icon:t,...s},n){const l=m(s,e),c=r?ws:void 0;return o.jsx(u.Pagination.Previous,{ref:n,...l,"data-variant":"text",icon:ce(c,t)})});Rs.displayName="Pagination.Previous";const Os=i.forwardRef(function({overStyled:e=!1,withLabel:r,icon:t,...s},n){const l=m(s,e),c=r?gs:void 0;return o.jsx(u.Pagination.First,{ref:n,...l,"data-variant":"text",icon:ce(c,t)})});Os.displayName="Pagination.First";const ks=i.forwardRef(function({overStyled:e=!1,withLabel:r,icon:t,...s},n){const l=m(s,e),c=r?Ts:void 0;return o.jsx(u.Pagination.Last,{ref:n,...l,"data-variant":"text",icon:ce(c,t)})});ks.displayName="Pagination.Last";const Is=i.forwardRef(function({overStyled:e=!1,getControlProps:r,withLabels:t,...s},n){const l=m(s,e),c=Ss(l),d=_=>{const f={"data-variant":"text"};return r?{...f,...r(_)}:f},p=t?{nextIcon:Ps,previousIcon:ws,firstIcon:gs,lastIcon:Ts}:{};return o.jsx(u.Pagination,{ref:n,...p,...l,className:c.className,classNames:c.classNames,getControlProps:d})});Is.displayName="Pagination";const Ls=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Pagination.Control,{ref:t,...s})});Ls.displayName="Pagination.Control";const Ms=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Pagination.Dots,{ref:t,...s})});Ms.displayName="Pagination.Dots";const Re=Is;Re.Root=$s;Re.Items=u.Pagination.Items;Re.Control=Ls;Re.Dots=Ms;Re.Next=js;Re.Previous=Rs;Re.First=Os;Re.Last=ks;Re.Icon=go;const Wl="Panel-module__content___wdGo-",zl="Panel-module__inner___ruA2b",Dl="Panel-module__header___o7SiC",El="Panel-module__title___181OP",Fl="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Bl="Panel-module__body___SEC3T",Ul="Panel-module__footer___t6-hz",Ze={content:Wl,inner:zl,header:Dl,title:El,titleTruncate:Fl,body:Bl,footer:Ul},As=function({overStyled:e=!1,placement:r="right",keepMounted:t=!0,wrapHeaderText:s=!1,...n}){const l=m(n,e),c=l,d=z({content:Ze.content,header:Ze.header,title:s?Ze.titleTruncate:Ze.title,body:Ze.body,inner:Ze.inner},c.classNames);return o.jsx(u.Drawer,{...l,position:r,keepMounted:t,closeOnClickOutside:ce(!!n.opened,n.closeOnClickOutside),classNames:d})};As.displayName="Panel";const st=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className,l=n?`${Ze.footer} ${n}`:Ze.footer;return o.jsx("div",{ref:t,...s,className:l})});st.displayName="PanelFooter";const Ws=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Drawer.Root,{ref:t,...s})});Ws.displayName="PanelRoot";const zs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Drawer.Overlay,{ref:t,...s})});zs.displayName="PanelOverlay";const Ds=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Drawer.Content,{ref:t,...s})});Ds.displayName="PanelContent";const Es=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Drawer.Header,{ref:t,...s})});Es.displayName="PanelHeader";const Fs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Drawer.Title,{ref:t,...s})});Fs.displayName="PanelTitle";const Bs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Drawer.CloseButton,{ref:t,...s})});Bs.displayName="PanelCloseButton";const Us=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Drawer.Body,{ref:t,...s})});Us.displayName="PanelBody";const Oe=As;Oe.Root=Ws;Oe.Overlay=zs;Oe.Content=Ds;Oe.Header=Es;Oe.Title=Fs;Oe.CloseButton=Bs;Oe.Body=Us;Oe.Stack=u.Drawer.Stack;Oe.Footer=st;const Gl="Popover-module__dropdown___svhS6",Vl="Popover-module__arrow___5A-0e",bt={dropdown:Gl,arrow:Vl},Gs=function({overStyled:e=!1,withBeak:r=!0,position:t="top",...s}){const n=m(s,e),l=n,c=z({dropdown:bt.dropdown,arrow:bt.arrow},l.classNames),d=ce(16,l.arrowSize),p=ce(r,l.withArrow);return o.jsx(u.Popover,{...n,position:t,arrowSize:d,withArrow:p,classNames:c})};Gs.displayName="Popover";const Vs=function(e){return o.jsx(u.Popover.Target,{...e})};Vs.displayName="PopoverTarget";const Hs=function({overStyled:e=!1,...r}){const t=m(r,e),s=t.className;return o.jsx(u.Popover.Dropdown,{...t,className:s})};Hs.displayName="PopoverDropdown";const rt=Gs;rt.Target=Vs;rt.Dropdown=Hs;const Hl="Radio-module__groupRoot___bfUii",ql="Radio-module__root___kAjTD",Kl="Radio-module__body___q2Wpj",Yl="Radio-module__inner___QaTBB",Zl="Radio-module__radio___MfgN-",Xl="Radio-module__icon___DWznm",Jl="Radio-module__labelWrapper___dB0Gi",Ql="Radio-module__label___vAFIP",Te={groupRoot:Hl,root:ql,body:Kl,inner:Yl,radio:Zl,icon:Xl,labelWrapper:Jl,label:Ql},at=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,children:g,readOnly:C,readOnlyComponent:y,emptyValueComponent:b,value:w,defaultValue:I,...L}=e,E=["size"],A=U(m(L,t),E),M=A;return o.jsx(me,{className:S,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,readOnly:C&&!!y,readOnlyComponent:y,emptyValueComponent:b,readOnlyType:"text",readOnlyValue:w!==void 0?w:I,readOnlyNativeProps:e,activeComponent:o.jsx(u.Radio.Group,{ref:r,...A,disabled:C||M.disabled,value:w,defaultValue:I,children:o.jsx("div",{className:Te.groupRoot,"data-layout":s,children:g})})})});at.displayName="RadioGroup";const ei=({className:a,style:e})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:a,style:e,children:o.jsx("circle",{cx:"8",cy:"8",r:"5"})}),nt=i.forwardRef(function(e,r){const{overStyled:t=!1,readOnly:s,readOnlyComponent:n,disabled:l,icon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...P}=e,h=["size","color","radius","variant","iconColor"],x=U(m(P,t),h),v=x,j=z({root:Te.root,body:Te.body,inner:Te.inner,radio:Te.radio,icon:Te.icon,labelWrapper:Te.labelWrapper,label:Te.label},v.classNames),N=v.className,S=N?`${Te.root} ${N}`:Te.root;if(s&&n){const g=!!(v.checked??v.defaultChecked),C=n,y=o.jsx(C,{...e,checked:g,label:v.label});return d?o.jsx(Ae,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:y}):o.jsx(o.Fragment,{children:y})}const T=o.jsx(u.Radio,{ref:r,...x,icon:ce(ei,c),className:S,classNames:j,disabled:s||l});return d?o.jsx(Ae,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:T}):T});nt.displayName="Radio";nt.Group=at;const oi="SegmentedControl-module__root___JFRhg",ti="SegmentedControl-module__label___mS17q",si="SegmentedControl-module__control___znOdQ",ri="SegmentedControl-module__indicator___ZMcJy",co={root:oi,label:ti,control:si,indicator:ri};function ai(a){const e=z({root:co.root,control:co.control,label:co.label,indicator:co.indicator},a.classNames),r=a.className;return{className:r?`${co.root} ${r}`:co.root,classNames:e}}const qs=i.forwardRef(function({overStyled:e=!1,orientation:r="horizontal",fullWidth:t,data:s=[],...n},l){const c=m(n,e),p=ai(c),_=s.map(f=>typeof f=="string"||!f.icon?f:{...f,label:o.jsxs(o.Fragment,{children:[f.icon,f.label]})});return o.jsx(u.SegmentedControl,{ref:l,...c,className:p.className,classNames:p.classNames,orientation:r,fullWidth:t,"data-orientation":r,data:_})});qs.displayName="SegmentedControl";const ni=qs,li="Slider-module__layoutOverride___zYPun",ii="Slider-module__sliderContainer___y8I0J",ci="Slider-module__sliderTrackWrapper___UHpVh",di="Slider-module__iconWrapper___uqHpC",ui="Slider-module__sliderRoot___LI86H",pi="Slider-module__sliderTrack___oqnlG",mi="Slider-module__sliderBar___TI4VY",_i="Slider-module__sliderThumb___OFn8p",fi="Slider-module__sliderMarkWrapper___Ufqhu",yi="Slider-module__sliderMark___1lM2B",hi="Slider-module__sliderMarkLabel___MMZrq",vi="Slider-module__minMaxGuide___TaGqz",xi="Slider-module__rightGuideContainer___8dOT8",bi="Slider-module__currentValue___dGV2T",Ni="Slider-module__inputField___6x578",Ci="Slider-module__readOnlyValue___-ZzMW",J={layoutOverride:li,sliderContainer:ii,sliderTrackWrapper:ci,iconWrapper:di,sliderRoot:ui,sliderTrack:pi,sliderBar:mi,sliderThumb:_i,sliderMarkWrapper:fi,sliderMark:yi,sliderMarkLabel:hi,minMaxGuide:vi,rightGuideContainer:xi,currentValue:bi,inputField:Ni,readOnlyValue:Ci},Pi=({value:a})=>{const e=Array.isArray(a)?`${a[0]} – ${a[1]}`:a;return o.jsx("div",{className:J.readOnlyValue,children:e})},Ks=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,tooltipLabel:P,assistiveText:h,assistiveWithIcon:x,error:v,required:j,withAsterisk:N,id:S,className:T,style:g,disabled:C,readOnly:y,readOnlyComponent:b,emptyValueComponent:w,value:I,defaultValue:L,icon:E,trailingIcon:A,showInput:M=!1,showMinMaxLabels:q=!0,min:V=0,max:H=100,minLabel:Q,maxLabel:K,step:Z=1,onChange:se,onChangeEnd:_e,...D}=e,[ne,fe]=i.useState(()=>I!==void 0?I:L!==void 0?L:V),R=I!==void 0?I:ne,re=Array.isArray(R),[ye,te]=i.useState(()=>Array.isArray(R)?[R[0].toString(),R[1].toString()]:R.toString());i.useEffect(()=>{te(Array.isArray(R)?[R[0].toString(),R[1].toString()]:R.toString())},[R]);const ae=F=>{I===void 0&&fe(F),se==null||se(F)},he=F=>{const W=F.target.value;te(W);const O=parseFloat(W);if(!isNaN(O)){const B=Math.max(V,Math.min(H,O));ae(B)}},be=()=>{te(R.toString())},Ee=F=>{const W=R,O=F.target.value;te([O,W[1].toString()]);const B=parseFloat(O);if(!isNaN(B)){const Y=Math.max(V,Math.min(W[1],B));ae([Y,W[1]])}},Ne=F=>{const W=R,O=F.target.value;te([W[0].toString(),O]);const B=parseFloat(O);if(!isNaN(B)){const Y=Math.max(W[0],Math.min(H,B));ae([W[0],Y])}},Fe=()=>{const F=R;te([F[0].toString(),F[1].toString()])},ke=["size","variant","radius","wrapperProps"],Ie=U(m(D,t),ke),oo=Ie,Ce=z({root:J.sliderRoot,track:J.sliderTrack,bar:J.sliderBar,thumb:J.sliderThumb,markWrapper:J.sliderMarkWrapper,mark:J.sliderMark,markLabel:J.sliderMarkLabel},oo.classNames),Be=T?`${J.layoutOverride} ${T}`:J.layoutOverride,Pe=E?o.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:E}):null,Ue=A?o.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:A}):null,G=Array.isArray(R)?typeof P=="function"?`${P(R[0])} – ${P(R[1])}`:`${R[0]} – ${R[1]}`:typeof P=="function"?P(R):R;return o.jsx(me,{ref:r,className:Be,style:g,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:h,assistiveWithIcon:x,error:v,required:j,withAsterisk:N,id:S,readOnly:y,readOnlyComponent:b||Pi,emptyValueComponent:w,readOnlyType:"text",readOnlyValue:R,readOnlyNativeProps:{value:R},activeComponent:o.jsxs("div",{className:J.sliderContainer,"data-form-layout":s,"data-disabled":C?"true":void 0,"data-error":v?"true":void 0,children:[re&&M&&o.jsx("input",{type:"number",className:J.inputField,value:ye[0],onChange:Ee,onBlur:Fe,min:V,max:R[1],step:Z,disabled:C,"data-error":v?"true":void 0,"aria-label":"Minimum value"}),Pe,q&&o.jsx("span",{className:J.minMaxGuide,children:Q??V}),o.jsx("div",{className:J.sliderTrackWrapper,children:re?o.jsx(u.RangeSlider,{...Ie,classNames:Ce,disabled:C,value:R,onChange:ae,onChangeEnd:_e,min:V,max:H,step:Z,label:P}):o.jsx(u.Slider,{...Ie,classNames:Ce,disabled:C,value:R,onChange:ae,onChangeEnd:_e,min:V,max:H,step:Z,label:P})}),o.jsxs("div",{className:J.rightGuideContainer,children:[!M&&o.jsx("span",{className:J.currentValue,children:G}),q&&o.jsx("span",{className:J.minMaxGuide,children:K??H})]}),Ue,M&&(re?o.jsx("input",{type:"number",className:J.inputField,value:ye[1],onChange:Ne,onBlur:Fe,min:R[0],max:H,step:Z,disabled:C,"data-error":v?"true":void 0,"aria-label":"Maximum value"}):o.jsx("input",{type:"number",className:J.inputField,value:ye,onChange:he,onBlur:be,min:V,max:H,step:Z,disabled:C,"data-error":v?"true":void 0}))]})})});Ks.displayName="Slider";const wi="Stack-module__root___NUN-x",vo={root:wi},Ys=i.forwardRef(function({children:e,gap:r="rec-default",...t},s){const n={root:vo.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;n.root=p.root?`${vo.root} ${p.root}`:vo.root}const c=t.className,d=c?`${vo.root} ${c}`:vo.root;return o.jsx(u.Stack,{ref:s,className:d,classNames:n,...wo({gap:r,...t}),children:e})});Ys.displayName="Stack";const gi=u.createPolymorphicComponent(Ys),Ti="Stepper-module__root___jbSYO",Si="Stepper-module__horizontal___USHT1",$i="Stepper-module__steps___4HPO6",ji="Stepper-module__step___s2nqL",Ri="Stepper-module__stepBody___TBvys",Oi="Stepper-module__stepLabel___N6nuy",ki="Stepper-module__stepDescription___DnDAy",Ii="Stepper-module__separator___pU0No",Li="Stepper-module__vertical___d4mOs",Mi="Stepper-module__large___J18-y",Ai="Stepper-module__small___Ub-zb",Wi="Stepper-module__stepIcon___YQHNq",zi="Stepper-module__stepCompletedIcon___B9MeL",Di="Stepper-module__verticalSeparator___frWc1",Ei="Stepper-module__content___J-h8X",le={root:Ti,horizontal:Si,steps:$i,step:ji,stepBody:Ri,stepLabel:Oi,stepDescription:ki,separator:Ii,vertical:Li,large:Mi,small:Ai,stepIcon:Wi,stepCompletedIcon:zi,verticalSeparator:Di,content:Ei},Zs=i.forwardRef(function(e,r){const{overStyled:t=!1,size:s="large",orientation:n="horizontal",className:l,style:c,...d}=e,p=m(d,t),_=p,f=z({steps:le.steps,step:le.step,stepIcon:le.stepIcon,stepCompletedIcon:le.stepCompletedIcon,stepBody:le.stepBody,stepLabel:le.stepLabel,stepDescription:le.stepDescription,separator:le.separator,verticalSeparator:le.verticalSeparator,content:le.content},_.classNames);return o.jsx(u.Stepper,{ref:r,...p,orientation:n,className:`${le.root} ${n==="horizontal"?le.horizontal:le.vertical} ${s==="large"?le.large:le.small} ${l||""}`,style:c,"data-size":s,"data-orientation":n,classNames:f})}),Xs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Stepper.Step,{ref:t,...s})});Xs.displayName="Stepper.Step";const Fi=Object.assign(Zs,{Step:Xs,Completed:u.Stepper.Completed});Zs.displayName="Stepper";const Bi="Switch-module__root___Y5Ydi",Ui="Switch-module__track___7ObdZ",Gi="Switch-module__body___Sw9Wr",Vi="Switch-module__thumb___-FTeK",Hi="Switch-module__labelWrapper___YSOwx",qi="Switch-module__label___LrH7V",Ki="Switch-module__thumbIconWrapper___sCY-1",Yi="Switch-module__checkIcon___ZBAQN",Zi="Switch-module__closeIcon___bLLGw",Xi="Switch-module__groupRoot___-Uepi",pe={root:Bi,track:Ui,body:Gi,thumb:Vi,labelWrapper:Hi,label:qi,thumbIconWrapper:Ki,checkIcon:Yi,closeIcon:Zi,groupRoot:Xi},lt=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,className:S,style:T,children:g,readOnly:C,readOnlyComponent:y,emptyValueComponent:b,value:w,defaultValue:I,...L}=e,E=["size"],A=U(m(L,t),E),M=A;return o.jsx(me,{className:S,style:T,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:P,assistiveWithIcon:h,error:x,required:v,withAsterisk:j,id:N,readOnly:C&&!!y,readOnlyComponent:y,emptyValueComponent:b,readOnlyType:"text",readOnlyValue:w!==void 0?w:I,readOnlyNativeProps:e,activeComponent:o.jsx(u.Switch.Group,{ref:r,...A,disabled:C||M.disabled,value:w,defaultValue:I,children:o.jsx("div",{className:pe.groupRoot,"data-layout":s,children:g})})})});lt.displayName="SwitchGroup";const it=i.forwardRef(function(e,r){const{overStyled:t=!1,readOnly:s,readOnlyComponent:n,disabled:l,thumbIcon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...P}=e,h=["size","color","radius","variant"],x=U(m(P,t),h),v=x,j=z({root:pe.root,body:pe.body,track:pe.track,thumb:pe.thumb,trackLabel:pe.trackLabel,labelWrapper:pe.labelWrapper,label:pe.label},v.classNames),N=$t({},v.styles),S=v.className,T=S?`${pe.root} ${S}`:pe.root;if(s&&n){const y=!!(v.checked??v.defaultChecked),b=n,w=o.jsx(b,{...e,checked:y,label:v.label});return d?o.jsx(Ae,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:w}):o.jsx(o.Fragment,{children:w})}const g=o.jsxs("div",{className:pe.thumbIconWrapper,children:[o.jsx(u.CheckIcon,{className:pe.checkIcon}),o.jsx(u.CloseIcon,{className:pe.closeIcon})]}),C=o.jsx(u.Switch,{ref:r,...x,className:T,classNames:j,styles:N,disabled:s||l,"data-disabled":s||l||void 0,thumbIcon:ce(g,c)});return d?o.jsx(Ae,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:C}):C});it.displayName="Switch";it.Group=lt;const Ji="Table-module__root___aMWWS",Qi="Table-module__sortIcon___V3-dH",Vo={root:Ji,sortIcon:Qi};function ec(a){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:o.jsx("polyline",{points:"18 15 12 9 6 15"})})}function oc(a){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})}const Js=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s.className,l=Vo.root,c=n?`${l} ${n}`:l;return o.jsx(u.Table,{ref:t,...s,className:c})});Js.displayName="Table";const Qs=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Table.Thead,{ref:t,...s})});Qs.displayName="TableThead";const er=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Table.Tbody,{ref:t,...s})});er.displayName="TableTbody";const or=i.forwardRef(function({overStyled:e=!1,selected:r=!1,disabled:t=!1,...s},n){const l=m(s,e);return o.jsx(u.Table.Tr,{ref:n,...l,"data-selected":r?"true":void 0,"data-disabled":t?"true":void 0})});or.displayName="TableTr";const tr=i.forwardRef(function({overStyled:e=!1,sorted:r=!1,disabled:t=!1,children:s,...n},l){const c=m(n,e);return o.jsxs(u.Table.Th,{ref:l,...c,"data-sorted":r?"true":void 0,"data-disabled":t?"true":void 0,"aria-sort":r==="asc"?"ascending":r==="desc"?"descending":void 0,children:[s,r==="asc"&&o.jsx(ec,{className:Vo.sortIcon}),r==="desc"&&o.jsx(oc,{className:Vo.sortIcon})]})});tr.displayName="TableTh";const sr=i.forwardRef(function({overStyled:e=!1,disabled:r=!1,variant:t="default",...s},n){const l=m(s,e);return o.jsx(u.Table.Td,{ref:n,...l,"data-disabled":r?"true":void 0,"data-currency":t==="currency"?"true":void 0})});sr.displayName="TableTd";const rr=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Table.Tfoot,{ref:t,...s})});rr.displayName="TableTfoot";const ar=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Table.Caption,{ref:t,...s})});ar.displayName="TableCaption";const nr=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Table.ScrollContainer,{ref:t,...s})});nr.displayName="TableScrollContainer";const De=Js;De.Thead=Qs;De.Tbody=er;De.Tr=or;De.Th=tr;De.Td=sr;De.Tfoot=rr;De.Caption=ar;De.ScrollContainer=nr;const tc="Tabs-module__root___-VKVI",sc="Tabs-module__list___qRVME",rc="Tabs-module__tab___IdDYc",ac="Tabs-module__panel___08i9c",jo={root:tc,list:sc,tab:rc,panel:ac},lr=i.forwardRef(function(e,r){const{variant:t="default",orientation:s="horizontal",overStyled:n=!1,className:l,...c}=e,d=m(c,n),p=d,_=z({list:jo.list,tab:jo.tab,panel:jo.panel},p.classNames);return o.jsx(u.Tabs,{ref:r,...d,variant:t,orientation:s,className:`${jo.root} ${l||""}`,"data-variant":t,"data-orientation":s,classNames:_})});lr.displayName="Tabs";const ir=i.forwardRef(function(e,r){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.List,{ref:r,...m(s,t)})});ir.displayName="Tabs.List";const cr=i.forwardRef(function(e,r){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.Tab,{ref:r,...m(s,t)})});cr.displayName="Tabs.Tab";const dr=i.forwardRef(function(e,r){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.Panel,{ref:r,...m(s,t)})});dr.displayName="Tabs.Panel";const nc=Object.assign(lr,{List:ir,Tab:cr,Panel:dr}),ur=i.forwardRef(function({overStyled:e=!1,variant:r="body",...t},s){const n=m(t,e),l=n.className,c=`recursica_brand_typography_${r}`,d=l?`${c} ${l}`:c;return o.jsx(u.Text,{ref:s,...n,className:d})});ur.displayName="Text";const lc=u.createPolymorphicComponent(ur),ic="TextArea-module__layoutOverride___4MCdm",cc="TextArea-module__root___3dyeu",dc="TextArea-module__input___8l36v",Ro={layoutOverride:ic,root:cc,input:dc},uc=["size","variant","radius"],pr=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,value:b,defaultValue:w,...I}=e,L=U(m(I,t),uc),E=L,A=z({wrapper:Ro.root,input:Ro.input},E.classNames),M=N?`${Ro.layoutOverride} ${N}`:Ro.layoutOverride;return o.jsx(me,{className:M,style:S,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:t,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?b:w,readOnlyNativeProps:e,activeComponent:o.jsx(u.Textarea,{ref:r,...L,classNames:A,disabled:T,value:b,defaultValue:w,label:void 0,description:void 0,error:!!h,required:void 0,withAsterisk:void 0})})});pr.displayName="TextArea";const pc="TextField-module__layoutOverride___SNZqc",mc="TextField-module__root___2ZYkG",_c="TextField-module__input___RL-My",fc="TextField-module__section___bCIJ0",xo={layoutOverride:pc,root:mc,input:_c,section:fc},yc=["size","variant","radius"],ct=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,value:b,defaultValue:w,...I}=e,L=U(m(I,t),yc),E=L,A=z({wrapper:xo.root,input:xo.input,section:xo.section},E.classNames),M=N?`${xo.layoutOverride} ${N}`:xo.layoutOverride;return o.jsx(me,{className:M,style:S,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:t,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:b!==void 0?b:w,readOnlyNativeProps:e,activeComponent:o.jsx(u.Input,{ref:r,...L,classNames:A,disabled:T,value:b,defaultValue:w,wrapperProps:{"data-disabled":T?"true":void 0,"data-error":h?"true":void 0}})})});ct.displayName="TextField";const hc=["size","variant","radius"],mr=i.forwardRef(function(e,r){const{overStyled:t=!1,className:s,disabled:n,error:l,...c}=e,d=U(m(c,t),hc),p=d,_=z({wrapper:s?`${ie.root} ${s}`:ie.root,input:ie.input,section:ie.section,dropdown:ie.dropdown,option:ie.option},p.classNames);return o.jsx(u.Select,{ref:r,...d,classNames:_,disabled:n,label:void 0,description:void 0,error:void 0,attributes:{wrapper:{"data-disabled":n?"true":void 0,"data-error":l?"true":void 0}}})});mr.displayName="BareDropdown";const vc="TimePicker-module__layoutOverride___zKo4Q",xc="TimePicker-module__root___BcvRu",bc="TimePicker-module__timeWrapper___hJVre",Nc="TimePicker-module__timeInput___FQysn",Cc="TimePicker-module__fieldsGroup___2yHhR",Pc="TimePicker-module__timeField___twRZd",wc="TimePicker-module__amPmSelect___mSdvt",Ke={layoutOverride:vc,root:xc,timeWrapper:bc,timeInput:Nc,fieldsGroup:Cc,timeField:Pc,amPmSelect:wc},gc=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Nt(a){if(!a)return;const e=parseInt(a.slice(0,2),10);return Number.isNaN(e)?void 0:e}function Tc(a,e){return`${String(e).padStart(2,"0")}${a.slice(2)}`}function Sc(a){if(!a)return;const[e,r,t]=a.split(":"),s=parseInt(e,10);if(Number.isNaN(s)||r===void 0)return a;const n=s>=12,l=s%12===0?12:s%12,c=t!==void 0?`${r}:${t}`:r;return`${l}:${c} ${n?"PM":"AM"}`}function $c(a,e){var t;const r=(t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value"))==null?void 0:t.set;r==null||r.call(a,e),a.dispatchEvent(new Event("change",{bubbles:!0}))}const jc=["size","variant","radius"],_r=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,className:N,style:S,disabled:T,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,value:b,defaultValue:w,onChange:I,withSeconds:L,minTime:E,maxTime:A,...M}=e,q=U(m(M,t),jc),V=q,[H,Q]=i.useState(()=>b??w);i.useEffect(()=>{b!==void 0&&Q(b)},[b]);const K=i.useRef(null);i.useEffect(()=>{Nt(b??w)===void 0&&K.current&&$c(K.current,"AM")},[]);const Z=R=>{Q(R),I==null||I(R)},se=Nt(H),_e=se!==void 0&&se>=12,D=R=>{Z(R)},ne=R=>{if(se===void 0||!H||!R)return;const re=R==="PM";if(re===_e)return;const ye=re?se+12:se-12;Z(Tc(H,ye))},fe=N?`${Ke.layoutOverride} ${N}`:Ke.layoutOverride;return o.jsx(me,{className:fe,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:P,error:h,required:x,withAsterisk:v,id:j,readOnly:g,readOnlyComponent:C,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:Sc(b!==void 0?b:w),readOnlyNativeProps:e,activeComponent:o.jsxs("div",{className:Ke.root,"data-disabled":T?"true":void 0,"data-error":h?"true":void 0,children:[o.jsx(gt.TimePicker,{ref:r,...q,classNames:z({wrapper:Ke.timeWrapper,input:Ke.timeInput,fieldsGroup:Ke.fieldsGroup,field:Ke.timeField},V.classNames),disabled:T,value:H,onChange:D,format:"12h",withSeconds:L,min:E,max:A,withDropdown:!1,amPmRef:K}),o.jsx(mr,{overStyled:!0,className:Ke.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:gc,value:_e?"PM":"AM",onChange:ne,disabled:T,error:!!h,"aria-label":"AM or PM"})]})})});_r.displayName="TimePicker";const Rc="Timeline-module__root___LwRdZ",Oc="Timeline-module__item___T5xdQ",kc="Timeline-module__itemBody___XAV-E",Ic="Timeline-module__itemBullet___rPXCy",Lc="Timeline-module__itemTitle___GgRRW",Mc="Timeline-module__itemContent___vurs-",Ac="Timeline-module__description___f9sxV",Wc="Timeline-module__timestamp___owiRu",Ye={root:Rc,item:Oc,itemBody:kc,itemBullet:Ic,itemTitle:Lc,itemContent:Mc,description:Ac,timestamp:Wc},dt=i.forwardRef(function({overStyled:e=!1,timestamp:r,bulletVariant:t="default",children:s,...n},l){const c=m(n,e),d=c,p=z({item:Ye.item,itemBody:Ye.itemBody,itemContent:Ye.itemContent,itemBullet:Ye.itemBullet,itemTitle:Ye.itemTitle},d.classNames),_=r?o.jsxs(o.Fragment,{children:[s&&o.jsx("div",{className:Ye.description,children:s}),o.jsx("div",{className:Ye.timestamp,children:r})]}):s;return o.jsx(u.TimelineItem,{ref:l,...c,classNames:p,"data-variant":t,children:_})});dt.displayName="TimelineItem";const fr=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e),n=s,l=z({root:Ye.root},n.classNames);return o.jsx(u.Timeline,{ref:t,...s,classNames:l})});fr.displayName="Timeline";const yr=fr;yr.Item=dt;const hr=i.forwardRef(function({overStyled:e=!1,order:r=1,...t},s){const n=["size"],l=U(m(t,e),n),c=l.className,d=`recursica_brand_typography_h${r}`,p=c?`${d} ${c}`:d;return o.jsx(u.Title,{ref:s,...l,order:r,className:p})});hr.displayName="Title";const zc="Toast-module__root___MUvfI",Dc="Toast-module__icon___VwvE1",Ec="Toast-module__loader___8Gxd-",Fc="Toast-module__title___-H6R2",Bc="Toast-module__description___-QwfC",Uc="Toast-module__closeButton___vGr7g",Gc="Toast-module__body___VLkXA",no={root:zc,icon:Dc,loader:Ec,title:Fc,description:Bc,closeButton:Uc,body:Gc},vr=i.forwardRef(function({overStyled:e=!1,variant:r="default",withCloseButton:t=!0,...s},n){const l=["color","radius","loading"],c=U(m(s,e),l),d=z({root:no.root,body:no.body,title:no.title,description:no.description,closeButton:no.closeButton,icon:no.icon,loader:no.loader},c.classNames);return o.jsx(u.Notification,{ref:n,...c,withCloseButton:t,withBorder:!1,"data-variant":r,classNames:d,loading:!1})});vr.displayName="Toast";const Vc="Tooltip-module__tooltip___UA7H9",Hc="Tooltip-module__arrow___4zROk",Ct={tooltip:Vc,arrow:Hc},xr=function({overStyled:e=!1,withBeak:r=!0,position:t="top",arrowSize:s=16,...n}){const l=m(n,e),c=l,d=z({tooltip:Ct.tooltip,arrow:Ct.arrow},c.classNames),p=c.withArrow,_=r??p;return o.jsx(u.Tooltip,{...l,position:t,arrowSize:s,withArrow:_,multiline:!0,classNames:d})};xr.displayName="Tooltip";const br=i.forwardRef(function({overStyled:e=!1,...r},t){const s=m(r,e);return o.jsx(u.Tooltip.Floating,{ref:t,...s})});br.displayName="TooltipFloating";const ut=xr;ut.Floating=br;ut.Group=u.Tooltip.Group;const qc="TransferList-module__layoutOverride___nkb32",Kc="TransferList-module__root___ikjI7",Yc="TransferList-module__panes___dtwkW",Zc="TransferList-module__pane___hy-kC",Xc="TransferList-module__paneHeader___HZrKX",Jc="TransferList-module__paneSearch___Xji-g",Qc="TransferList-module__paneList___v0rcJ",ed="TransferList-module__emptyState___azPw-",od="TransferList-module__transferColumn___3R2Ki",td="TransferList-module__chevron___l-KdI",xe={layoutOverride:qc,root:Kc,panes:Yc,pane:Zc,paneHeader:Xc,paneSearch:Jc,paneList:Qc,emptyState:ed,transferColumn:od,chevron:td};function Pt({direction:a}){return o.jsx("svg",{className:xe.chevron,"data-direction":a,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M6 3l5 5-5 5"})})}function wt({direction:a}){return o.jsx("svg",{className:xe.chevron,"data-direction":a,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M3 3l5 5-5 5M9 3l5 5-5 5"})})}function sd(a){const e={},r=[];return a.forEach(t=>{var s;t.group?(e[s=t.group]??(e[s]=[])).push(t):r.push(t)}),{groups:e,ungrouped:r}}const Nr=i.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:s="stacked",labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:P,description:h,helperText:x,assistiveWithIcon:v,error:j,required:N,id:S,readOnly:T,readOnlyComponent:g,emptyValueComponent:C,data:y,defaultData:b,onChange:w,sourceLabel:I="Available",targetLabel:L="Selected",searchable:E=!0,searchPlaceholder:A="Filter items...",disabled:M=!1,className:q,style:V,...H}=e,Q=m(H,t),K=i.useId(),Z=S||`recursica-transfer-list-${K}`,[se,_e]=i.useState(()=>b??y??[[],[]]),D=y!==void 0?y:se,ne=i.useCallback(G=>{y===void 0&&_e(G),w==null||w(G)},[y,w]),[fe,R]=i.useState(""),[re,ye]=i.useState(""),[te,ae]=i.useState(()=>new Set),[he,be]=i.useState(()=>new Set),Ee=i.useMemo(()=>{if(!fe)return D[0];const G=fe.toLowerCase();return D[0].filter(F=>F.label.toLowerCase().includes(G))},[D,fe]),Ne=i.useMemo(()=>{if(!re)return D[1];const G=re.toLowerCase();return D[1].filter(F=>F.label.toLowerCase().includes(G))},[D,re]),Fe=i.useCallback(()=>{if(te.size===0)return;const G=D[0].filter(W=>!te.has(W.value)),F=D[0].filter(W=>te.has(W.value));ae(new Set),ne([G,[...D[1],...F]])},[D,te,ne]),ke=i.useCallback(()=>{if(he.size===0)return;const G=D[1].filter(W=>!he.has(W.value)),F=D[1].filter(W=>he.has(W.value));be(new Set),ne([[...D[0],...F],G])},[D,he,ne]),Ie=i.useCallback(()=>{D[0].length!==0&&(ae(new Set),ne([[],[...D[1],...D[0]]]))},[D,ne]),oo=i.useCallback(()=>{D[1].length!==0&&(be(new Set),ne([[...D[0],...D[1]],[]]))},[D,ne]),Ce=i.useCallback(G=>{ae(F=>{const W=new Set(F);return W.has(G)?W.delete(G):W.add(G),W})},[]),Be=i.useCallback(G=>{be(F=>{const W=new Set(F);return W.has(G)?W.delete(G):W.add(G),W})},[]),Pe=(G,F,W,O,B,Y,de,Ge)=>{const{groups:to,ungrouped:$}=sd(W),ee=Object.keys(to).sort(),oe=B.size>0?`${B.size} / ${O.length}`:`${O.length}`;return o.jsxs("div",{className:xe.pane,"data-pane":G,children:[o.jsxs("div",{className:xe.paneHeader,children:[o.jsx("span",{children:F}),o.jsx(Lt,{children:oe})]}),E&&o.jsx("div",{className:xe.paneSearch,children:o.jsx(ct,{value:de,onChange:X=>Ge(X.currentTarget.value),placeholder:A,disabled:M,"aria-label":`Filter ${F.toLowerCase()}`})}),o.jsxs("div",{className:xe.paneList,children:[W.length===0&&o.jsx("div",{className:xe.emptyState,children:"No items"}),$.length>0&&o.jsx(No,{children:$.map(X=>o.jsx(Co,{id:`${Z}-${G}-${X.value}`,label:X.label,checked:B.has(X.value),onChange:()=>Y(X.value),disabled:M},X.value))}),ee.map(X=>o.jsx(No,{label:X,labelSize:"small",children:to[X].map(ue=>o.jsx(Co,{id:`${Z}-${G}-${ue.value}`,label:ue.label,checked:B.has(ue.value),onChange:()=>Y(ue.value),disabled:M},ue.value))},X))]})]})},Ue=q?`${xe.layoutOverride} ${q}`:xe.layoutOverride;return o.jsx(me,{ref:r,formLayout:s,labelSize:n,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:P,description:h,helperText:x,assistiveWithIcon:v,error:j,required:N,id:Z,className:Ue,style:V,overStyled:t,readOnly:T,readOnlyComponent:g,emptyValueComponent:C,readOnlyType:"text",readOnlyValue:D[1].map(G=>G.label),readOnlyNativeProps:e,activeComponent:o.jsx("div",{...Q,className:xe.root,"data-disabled":M?"true":void 0,"data-error":j?"true":void 0,children:o.jsxs("div",{className:xe.panes,children:[Pe("source",I,Ee,D[0],te,Ce,fe,R),o.jsxs("div",{className:xe.transferColumn,children:[o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"right"}),"aria-label":`Move all to ${L}`,disabled:M||D[0].length===0,onClick:Ie}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(Pt,{direction:"right"}),"aria-label":`Move selected to ${L}`,disabled:M||te.size===0,onClick:Fe}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(Pt,{direction:"left"}),"aria-label":`Move selected to ${I}`,disabled:M||he.size===0,onClick:ke}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"left"}),"aria-label":`Move all to ${I}`,disabled:M||D[1].length===0,onClick:oo})]}),Pe("target",L,Ne,D[1],he,Be,re,ye)]})})})});Nr.displayName="TransferList";const rd="Tree-module__root___ANcH3",ad="Tree-module__subtree___KoLT8",nd="Tree-module__node___Hvnjg",ld="Tree-module__row___sq5ff",id="Tree-module__label___zJDit",cd="Tree-module__expandButton___W0WTT",dd="Tree-module__expandGlyph___w8dDQ",Qe={root:rd,subtree:ad,node:nd,row:ld,label:id,expandButton:cd,expandGlyph:dd};function ud(){return o.jsx("svg",{className:Qe.expandGlyph,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M5 3l5 5-5 5"})})}function pd(a){return function({node:r,hasChildren:t,expanded:s,selected:n,tree:l,elementProps:c}){return o.jsxs("div",{...c,className:Qe.row,"data-has-children":t||void 0,"data-expanded":t&&s?!0:void 0,children:[o.jsx(Je,{overStyled:!0,variant:"text",size:"small",icon:o.jsx(ud,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:Qe.expandButton,onMouseDown:d=>d.preventDefault(),onClick:d=>{d.stopPropagation(),!a&&l.toggleExpanded(r.value)}}),o.jsx("span",{className:Qe.label,"data-selected":n||void 0,children:r.label})]})}}const Cr=i.forwardRef(function({overStyled:e=!1,data:r,initialExpandedValues:t,initialSelectedValues:s,multiple:n=!1,disabled:l=!1,onNodeExpand:c,onNodeCollapse:d,onSelectedChange:p,..._},f){const P=m(_,e),h=u.useTree({initialExpandedState:t?u.getTreeExpandedState(r,t):void 0,initialSelectedState:s,multiple:n,onNodeExpand:c,onNodeCollapse:d});i.useEffect(()=>{p==null||p(h.selectedState)},[h.selectedState,p]);const x=i.useRef(null);i.useEffect(()=>{const T=x.current;if(!T)return;const g=C=>{if(l||C.key!=="Enter"&&C.key!==" ")return;const y=C.target.closest('[role="treeitem"]'),b=y==null?void 0:y.dataset.value;b&&(C.preventDefault(),h.select(b))};return T.addEventListener("keydown",g),()=>T.removeEventListener("keydown",g)},[h.select,l]),i.useEffect(()=>{const T=x.current;if(!T||!l)return;const g=C=>{C.preventDefault(),C.stopPropagation()};return T.addEventListener("keydown",g,{capture:!0}),()=>T.removeEventListener("keydown",g,{capture:!0})},[l]);const v=wr.useMergedRef(f,x),j=P,N=j.className,S=N?`${Qe.root} ${N}`:Qe.root;return o.jsx(u.Tree,{ref:v,...P,data:r,tree:h,expandOnClick:!1,selectOnClick:!l,expandOnSpace:!1,renderNode:pd(l),"data-disabled":l||void 0,classNames:z({root:S,node:Qe.node,subtree:Qe.subtree},j.classNames)})});Cr.displayName="Tree";const md=Bn,_d=Qt,fd=Jt,yd=es,hd=gi,vd=Gt,xd=Jn,bd=lc,Nd=k(Wo),Cd=k(Zo),Pd=k(Mo),wd=k(Ao),gd=k(Io),Td=k(Ot),Sd=k(ba),$d=k(Lt),jd=k(Mt),Rd=k(Je),Od=k(za),kd=k(Co),Id=k(No),Ld=k(Po),Md=k(Vt),Ad=k(Ht),Wd=k(qt),zd=k(Kt),Dd=k(Ae),Ed=k(et),Fd=k(Qo),Bd=k(Xo),Ud=k(lo),Gd=k(ze),Vd=k(Cs),Hd=k(Re),qd=k(Oe),Kd=k(st),Yd=k(rt),Zd=k(nt),Xd=k(at),Jd=k(Jo),Qd=k(ni),eu=k(Ks),ou=k(Fi),tu=k(it),su=k(lt),ru=k(De),au=k(nc),nu=k(pr),lu=k(ct),iu=k(_r),cu=k(yr),du=k(dt),uu=k(hr),pu=k(vr),mu=k(ut),_u=k(Nr),fu=k(Cr);exports.Accordion=Nd;exports.AccordionControl=Pd;exports.AccordionItem=Cd;exports.AccordionPanel=wd;exports.AssistiveElement=gd;exports.AutoComplete=Td;exports.Avatar=Sd;exports.Badge=$d;exports.Breadcrumb=jd;exports.Button=Rd;exports.Card=Od;exports.Checkbox=kd;exports.CheckboxGroup=Id;exports.Chip=Ld;exports.Container=vd;exports.DatePicker=Md;exports.Dropdown=Ad;exports.EmptyValueRenderer=bo;exports.FileInput=Wd;exports.FileUpload=zd;exports.Flex=md;exports.FormControlLayout=Dd;exports.Grid=_d;exports.GridCol=fd;exports.Group=yd;exports.HoverCard=Ed;exports.IS_DEV=eo;exports.Label=Bd;exports.Layer=Ho;exports.Link=xd;exports.Loader=Fd;exports.Menu=Ud;exports.Modal=Gd;exports.NumberInput=Vd;exports.Pagination=Hd;exports.Panel=qd;exports.PanelFooter=Kd;exports.Popover=Yd;exports.RECURSICA_COMPONENTS=Rr;exports.Radio=Zd;exports.RadioGroup=Xd;exports.ReadOnlyField=Jd;exports.RecursicaThemeProvider=jr;exports.SegmentedControl=Qd;exports.Slider=eu;exports.Stack=hd;exports.Stepper=ou;exports.Switch=tu;exports.SwitchGroup=su;exports.Table=ru;exports.Tabs=au;exports.Text=bd;exports.TextArea=nu;exports.TextField=lu;exports.TimePicker=iu;exports.Timeline=cu;exports.TimelineItem=du;exports.Title=uu;exports.Toast=pu;exports.Tooltip=mu;exports.TransferList=_u;exports.Tree=fu;exports.copyToClipboard=Or;exports.fileMatchesAccept=Yo;exports.injectOverStyledStyles=qo;exports.isGlobalOverStyledActive=$r;exports.mergeClassNames=z;exports.mergeStyles=$t;exports.omitUnsupportedProps=U;exports.registerOverStyledConsoleCommand=Ko;exports.toggleGlobalOverStyled=Tt;exports.useGlobalOverStyled=St;exports.withCallerOverride=ce;exports.wrapComponent=k;
|
|
12
12
|
//# sourceMappingURL=mantine-adapter.cjs.map
|