@recursica/mantine-adapter 0.55.0 → 0.55.1
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 +10 -0
- package/dist/index.d.ts +13 -9
- package/dist/mantine-adapter.cjs +2 -2
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.js +1483 -1476
- package/dist/mantine-adapter.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Dropdown/Dropdown.stories.tsx +2 -8
- package/src/components/Dropdown/Dropdown.tsx +2 -1
- package/src/components/FormControlLayout/FormControlLayout.stories.tsx +1 -1
- package/src/components/Label/Label.stories.tsx +1 -1
- package/src/components/Panel/Panel.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @recursica/mantine-adapter
|
|
2
2
|
|
|
3
|
+
## 0.55.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a104e8a: Removed `searchable` from `Dropdown`'s shared contract — not a supported feature (that's `AutoComplete`'s job). mantine-adapter now strips it at runtime like its other unsupported native props; mui-adapter never wired it up.
|
|
8
|
+
- a104e8a: Fixed `Panel`'s `wrapHeaderText` default (was `false`, contract documents `true`) in both adapters.
|
|
9
|
+
- Updated dependencies [a104e8a]
|
|
10
|
+
- Updated dependencies [a104e8a]
|
|
11
|
+
- @recursica/adapter-common@0.28.1
|
|
12
|
+
|
|
3
13
|
## 0.55.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1727,8 +1727,11 @@ export declare interface RecursicaAccordionItemProps {
|
|
|
1727
1727
|
leftIcon?: default_2.ReactNode;
|
|
1728
1728
|
/** Toggle visibility of the divider below the item */
|
|
1729
1729
|
divider?: boolean;
|
|
1730
|
-
/** Unique value identifier for this item
|
|
1731
|
-
|
|
1730
|
+
/** Unique value identifier for this item. Required — omitting it on multiple items collapses
|
|
1731
|
+
* them to the same identity and they toggle together (see beam-adapter's
|
|
1732
|
+
* docs/OPEN_DECISIONS.md #23b). Was optional in the type until 2026-08-29 even though every
|
|
1733
|
+
* real consumer already supplied it. */
|
|
1734
|
+
value: string;
|
|
1732
1735
|
/** Disables interaction with this item — it can't be expanded or collapsed, and is dimmed */
|
|
1733
1736
|
disabled?: boolean;
|
|
1734
1737
|
}
|
|
@@ -1978,7 +1981,7 @@ export declare interface RecursicaDatePickerProps extends Omit<DatePickerInputPr
|
|
|
1978
1981
|
declare interface RecursicaDatePickerProps_2 {
|
|
1979
1982
|
}
|
|
1980
1983
|
|
|
1981
|
-
export declare interface RecursicaDropdownProps extends Omit<SelectProps, "size" | "variant" | "radius" | "wrapperProps" | "data">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, RecursicaDropdownProps_2 {
|
|
1984
|
+
export declare interface RecursicaDropdownProps extends Omit<SelectProps, "size" | "variant" | "radius" | "wrapperProps" | "data" | "searchable">, Omit<RecursicaFormControlWrapperProps, "controlMaxWidth" | "controlMinWidth">, ReadOnlyControlProps, RecursicaDropdownProps_2 {
|
|
1982
1985
|
}
|
|
1983
1986
|
|
|
1984
1987
|
/**
|
|
@@ -1991,8 +1994,6 @@ declare interface RecursicaDropdownProps_2 {
|
|
|
1991
1994
|
* selected display text — stays a real string (a whole subtree can't be matched/written),
|
|
1992
1995
|
* unlike the `ReactNode` this was previously typed as. Falls back to `value` when omitted. */
|
|
1993
1996
|
data?: RecursicaComboboxData;
|
|
1994
|
-
/** Enable autocomplete search functionality */
|
|
1995
|
-
searchable?: boolean;
|
|
1996
1997
|
/** Show input clear option button */
|
|
1997
1998
|
clearable?: boolean;
|
|
1998
1999
|
/** Marks field with visual asterisk */
|
|
@@ -2195,8 +2196,9 @@ declare interface RecursicaFileUploadProps_2 extends Omit<default_2.HTMLAttribut
|
|
|
2195
2196
|
export declare interface RecursicaFormControlLayoutProps {
|
|
2196
2197
|
/** Layout structure direction */
|
|
2197
2198
|
formLayout?: "stacked" | "side-by-side";
|
|
2198
|
-
/** Label sizing constraint
|
|
2199
|
-
|
|
2199
|
+
/** Label sizing constraint. Only `small`/`default` are defined by Recursica's Label tokens —
|
|
2200
|
+
* `md` was never a real design size and has been removed. */
|
|
2201
|
+
labelSize?: "small" | "default";
|
|
2200
2202
|
/** Optional left section element (usually Label) */
|
|
2201
2203
|
leftSection?: default_2.ReactNode;
|
|
2202
2204
|
/** Main wrapper bounding maximum width */
|
|
@@ -2268,8 +2270,10 @@ export declare interface RecursicaHoverCardProps {
|
|
|
2268
2270
|
* Base properties for Recursica label indicators.
|
|
2269
2271
|
*/
|
|
2270
2272
|
export declare interface RecursicaLabelProps {
|
|
2271
|
-
/** Specifies the sizing metrics natively mapping the Label boundaries.
|
|
2272
|
-
|
|
2273
|
+
/** Specifies the sizing metrics natively mapping the Label boundaries. Only `default`/`small`
|
|
2274
|
+
* are defined by Recursica's Label tokens — `md` was never a real design size (no adapter had
|
|
2275
|
+
* a width rule for it) and has been removed; see docs/OPEN_DECISIONS.md #41 in beam-adapter. */
|
|
2276
|
+
labelSize?: "default" | "small";
|
|
2273
2277
|
/**
|
|
2274
2278
|
* Overall alignment directive for the label strings natively forcing Left/Right justification.
|
|
2275
2279
|
* Not renamed to Forge's `labelAlign`: our own vocabulary, not either kit's native term.
|
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"),Tt=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"),Tt=require("@mantine/dates"),$s=require("@mantine/hooks");var Fo=typeof document<"u"?document.currentScript:null;const js="_root_1qhn7_3",Rs="_contents_1qhn7_18",io={root:js,contents:Rs},Ho=i.forwardRef(function({layer:r,contentsOnly:e,children:n,className:t,style:s,...a},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(r)},...a,children:n})});Ho.displayName="Layer";const bo=({emptyText:r="N/A"})=>o.jsx(i.Fragment,{children:r});bo.displayName="EmptyValueRenderer";bo.check=r=>r==null||r===""||Array.isArray(r)&&r.length===0;const Os={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"},ze=(()=>{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}&&Os)return!0}catch{}if(typeof window<"u"){const r=window.location.hostname;return r==="localhost"||r==="127.0.0.1"||r.endsWith(".local")}return!1})(),Go=new Set;let Je=!1;function St(r){if(!ze)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(Je=r!==void 0?r:!Je,typeof document<"u"){const e=document.documentElement,n=Je?"0 0 0 2px cyan":"none";e.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${Je?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return Go.forEach(e=>e()),Je}function ks(){return ze&&Je}function $t(){const[r,e]=i.useState(Je);return i.useEffect(()=>{if(!ze)return;qo(),Ko();const n=()=>e(Je);return Go.add(n),()=>{Go.delete(n)}},[]),ze&&r}function qo(){if(!ze)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const r="recursica-over-styled-styles";let e=document.getElementById(r);e||(e=document.createElement("style"),e.id=r,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(!oo)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: ${St()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};r(window),window.parent&&window.parent!==window&&r(window.parent)}const ht="data-recursica-theme";function ks({children:r,theme:e="light",initLayer0:s=!0}){return i.useEffect(()=>{const t=document.documentElement;return t.setAttribute(ht,e),()=>{t.removeAttribute(ht)}},[e]),i.useEffect(()=>{qo(),Ko()},[]),s?o.jsx(Ho,{layer:0,children:r}):o.jsx(o.Fragment,{children:r})}const Is=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Box","Breadcrumb","Button","Card","Checkbox","CheckboxGroup","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","FileInput","FileUpload","Flex","FormControlLayout","FormControlWrapper","Grid","Group","Heading","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","Toast","Tooltip","TransferList","Tree","Typography"],Ls=(r,e)=>{const s=document.activeElement;return new Promise((t,n)=>{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),s&&s.focus(),l?t():n(new Error("Failed to copy"))}else n(new Error("Copy area reference is not defined"))})};function Yo(r,e){const s=(e??"").split(",").map(a=>a.trim().toLowerCase()).filter(Boolean);if(s.length===0)return!0;const t=r.name.toLowerCase(),n=r.type.toLowerCase();return s.some(a=>a.startsWith(".")?t.endsWith(a):a.endsWith("/*")?n.startsWith(a.slice(0,-1)):n===a)}function D(r,e){if(!e)return r;const s={...r},t=new Set([...Object.keys(r),...Object.keys(e)]);for(const n of t){const a=r[n],l=e[n];s[n]=[a,l].filter(Boolean).join(" ")||void 0}return s}function jt(r,e){if(!e)return r;const s={...r},t=new Set([...Object.keys(r),...Object.keys(e)]);for(const n of t){const a=r[n],l=e[n];s[n]=a||l?{...a,...l}:void 0}return s}function Zo(r){return r==null?void 0:r.map(e=>typeof e=="string"?e:{...e,label:e.label??e.value})}function U(r,e){const s={...r};for(const t of e)t in s&&delete s[t];return s}function ce(r,e){return e!==void 0?e:r}function I(r){if(!oo||typeof r!="function"&&!(r&&r.$$typeof))return r;const e=i.forwardRef((t,n)=>{const{overStyled:a}=t,l=$t(),c=i.createElement(r,{...t,ref:n});return a&&l?o.jsx("div",{className:"recursica-over-styled",children:c}):c});e.displayName=r.displayName||r.name||"Component";const s=Object.keys(r);for(const t of s){if(t==="render"||t==="$$typeof")continue;const n=r[t];(typeof n=="function"||n&&n.$$typeof)&&t[0]===t[0].toUpperCase()?e[t]=I(n):e[t]=n}return e}const Ms=["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"],Rt=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","gutter","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 go(r){const e={...r};for(const[s,t]of Object.entries(e))typeof t=="string"&&t.startsWith("rec-")&&Rt.has(s)&&t in ko&&(e[s]=ko[t]);return e}function m(r,e){if(e)return r;const s={...r};for(const t of Ms)t in s&&delete s[t];for(const[t,n]of Object.entries(s))typeof n=="string"&&n.startsWith("rec-")&&Rt.has(t)&&n in ko&&(s[t]=ko[n]);return s}const As="Accordion-module__root___Dem6d",Ws="Accordion-module__item___7ryVk",zs="Accordion-module__noDivider___Ni2tT",Ds="Accordion-module__control___b4wgX",Es="Accordion-module__label___Ss7uW",Fs="Accordion-module__icon___xfHxX",Bs="Accordion-module__chevron___i-HVZ",Us="Accordion-module__iconLeftWrapper___5oLen",Gs="Accordion-module__panel___Wx50w",Vs="Accordion-module__content___PEM9t",$e={root:As,item:Ws,noDivider:zs,control:Ds,label:Es,icon:Fs,chevron:Bs,iconLeftWrapper:Us,panel:Gs,content:Vs},vt={default:"unstyled"},Ot=function({variant:e="default",overStyled:s=!1,...t}){const n=typeof e=="string"&&vt[e]?vt[e]:e,a=m(t,s),l=a,c=D({root:$e.root,item:$e.item,control:$e.control,label:$e.label,chevron:$e.chevron,icon:$e.icon,panel:$e.panel,content:$e.content},l.classNames),d=l.className;return o.jsx(u.Accordion,{...a,variant:n,className:d,classNames:c})};Ot.displayName="Accordion";const Qo=i.forwardRef(function({title:e,leftIcon:s,divider:t=!0,children:n,disabled:a=!1,overStyled:l=!1,...c},d){const p=m(c,l),_=p.className,f=[t?void 0:$e.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:s,disabled:a,children:e}),o.jsx(Ao,{children:n})]}):n})});Qo.displayName="AccordionItem";const Hs=["icon"],Mo=i.forwardRef(function({leftIcon:e,children:s,overStyled:t=!1,...n},a){const l=U(m(n,t),Hs),c=l.className;return o.jsx(u.Accordion.Control,{ref:a,...l,className:c,icon:e?o.jsx("span",{className:$e.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,children:s})});Mo.displayName="AccordionControl";const Ao=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className;return o.jsx(u.Accordion.Panel,{ref:t,...n,className:a})});Ao.displayName="AccordionPanel";const Wo=Ot;Wo.Item=Qo;Wo.Control=Mo;Wo.Panel=Ao;const qs="AssistiveElement-module__root___WhQ43",Ks="AssistiveElement-module__textWrapper___sfy5E",Ys="AssistiveElement-module__iconWrapper___gObRF",Bo={root:qs,textWrapper:Ks,iconWrapper:Ys},Zs=()=>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"})]}),Qs=()=>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:s=!0,children:t,className:n,role:a,overStyled:l=!1,...c},d){const _=m(c,l),f=Bo.root,N=n?`${f} ${n}`:f,h=e==="error"?Qs:Zs,b=a??(e==="error"?"alert":void 0);return o.jsxs("div",{ref:d,..._,className:N,"data-variant":e,role:b,style:_.style,children:[s&&o.jsx("span",{className:Bo.iconWrapper,children:o.jsx(h,{})}),o.jsx("span",{className:Bo.textWrapper,children:t})]})});Io.displayName="AssistiveElement";const Xs="Label-module__root___e6HXZ",Js="Label-module__labelText___rieFR",er="Label-module__required___Ggrzc",or="Label-module__optionalText___Y2yun",tr="Label-module__actionAreaWrapper___ELoZK",nr="Label-module__editIconWrapper___NG2xW",qe={root:Xs,labelText:Js,required:er,optionalText:or,actionAreaWrapper:tr,editIconWrapper:nr},Xo=i.forwardRef(function({labelSize:e="default",labelAlignment:s,required:t=!1,labelOptionalText:n,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:c,children:d,overStyled:p=!1,..._},f){const N=s||"left";let h;t||(n===!0?h="optional":n&&(h=n));const b=["size"],x=U(m(_,p),b),$=x,C=D({label:qe.root,required:qe.required},$.classNames),w=$.className,S=w?`${qe.root} ${w}`:qe.root;return o.jsxs(u.Input.Label,{ref:f,...x,className:S,classNames:C,"data-size":e,"data-alignment":N,required:t&&!a,children:[o.jsx("span",{className:qe.labelText,children:d}),h&&o.jsx("span",{className:qe.optionalText,children:typeof h=="string"?`(${h})`:h}),l?o.jsx("span",{className:qe.actionAreaWrapper,children:l}):a?o.jsx("button",{type:"button",className:qe.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 sr="FormControlLayout-module__root___yNDhZ",rr="FormControlLayout-module__leftSection___GBM1r",ar="FormControlLayout-module__rightSection___bcL4v",So={root:sr,leftSection:rr,rightSection:ar},ze=i.forwardRef(function({formLayout:e="stacked",labelSize:s="default",controlMaxWidth:t,controlMinWidth:n,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}:{},...n?{"--form-control-min-width":n}:{}},...p,children:[h&&o.jsx("div",{className:So.leftSection,"data-size":s,children:a}),o.jsx("div",{className:So.rightSection,children:l})]})});ze.displayName="FormControlLayout";const lr="FormControlWrapper-module__root___c-UHo",ir="FormControlWrapper-module__inputSection___HenXk",xt={root:lr,inputSection:ir},uo=i.forwardRef(function({formLayout:e,labelSize:s,labelAlignment:t,labelOptionalText:n,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:c,label:d,description:p,assistiveText:_,assistiveWithIcon:f=!0,controlMaxWidth:N,controlMinWidth:h,error:b,required:x,withAsterisk:$,id:C,children:w,className:S,overStyled:g=!1,labelElement:P,...y},T){const v=i.useId(),R=C||`recursica-fc-${v}`,M=`${R}-label`,E=_||p,A=E?`${R}-assistive`:void 0,L=b?`${R}-error`:void 0,H=m(y,g),q=S||H.className,Q=xt.root,V=q?`${Q} ${q}`:Q,Y=i.isValidElement(w)?i.cloneElement(w,{...w.props.id?{}:{id:R},"aria-labelledby":M,...E&&!w.props["aria-describedby"]?{"aria-describedby":A}:{},...b&&!w.props["aria-errormessage"]?{"aria-errormessage":L}:{}}):w,J=d?o.jsx(Xo,{id:M,htmlFor:R,labelAlignment:t,labelOptionalText:n,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:c,required:$??x,...P==="div"?{as:"div"}:{},children:d}):void 0;return o.jsx(ze,{ref:T,className:V,formLayout:e,labelSize:s,controlMaxWidth:N,controlMinWidth:h,leftSection:J,...H,children:o.jsxs("div",{className:xt.inputSection,children:[Y,b&&o.jsx(Io,{id:L,assistiveVariant:"error",assistiveWithIcon:f,children:b}),!b&&E&&o.jsx(Io,{id:A,assistiveVariant:"help",assistiveWithIcon:f,children:E})]})})});uo.displayName="FormControlWrapper";const cr="ReadOnlyField-module__layoutOverride___9fSsG",dr="ReadOnlyField-module__textField___qKn25",Lo={layoutOverride:cr,textField:dr},Oo=({value:r,overStyled:e=!1,...s})=>{const t=m(s,e),n=t.className;return o.jsx(u.Box,{component:"p",...t,className:n?`${Lo.textField} ${n}`: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:s="text",emptyValueComponent:t,overStyled:n=!1,className:a,style:l,...c},d){let p=null;const _=m(c,n),f=t||bo,h=(f.check?f.check(e):bo.check(e))?o.jsx(f,{value:e}):e;switch(s){case"boolean":p=o.jsx(Oo,{value:e===!0?"True":e===!1?"False":h,overStyled:n});break;case"switch":p=o.jsx(Oo,{value:e===!0?"On":e===!1?"Off":h,overStyled:n});break;case"text":default:p=o.jsx(Oo,{value:h,overStyled:n});break}const b=a?`${Lo.layoutOverride} ${a}`:Lo.layoutOverride;return o.jsx(uo,{ref:d,..._,overStyled:n,className:b,style:l,children:p})});Jo.displayName="ReadOnlyField";const fe=i.forwardRef(function({readOnly:e,readOnlyComponent:s,readOnlyType:t="text",readOnlyValue:n,readOnlyNativeProps:a,emptyValueComponent:l,activeComponent:c,overStyled:d,onLabelEditClick:p,..._},f){if(e){if(s){const N=s;return o.jsx(uo,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:o.jsx(N,{...a})})}return o.jsx(Jo,{ref:f,..._,type:t,value:n,emptyValueComponent:l,onLabelEditClick:p,overStyled:d})}return o.jsx(uo,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:c})});fe.displayName="WithReadOnlyWrapper";function kt({option:r},e,s=!1){const{label:t,leadingIcon:n,supportingText:a}=r,l=t??r.value;if(!n&&!a)return l;const c=s?`${e.optionText} ${e.optionTextWrap}`:e.optionText;return o.jsxs("span",{className:e.optionContent,children:[n&&o.jsx("span",{className:e.optionIcon,children:n}),o.jsxs("span",{className:c,children:[o.jsx("span",{children:l}),a&&o.jsx("span",{className:e.optionSupportingText,children:a})]})]})}const ur="AutoComplete-module__layoutOverride___-K9WL",pr="AutoComplete-module__root___kANza",mr="AutoComplete-module__input___g51MC",_r="AutoComplete-module__section___WAbf1",fr="AutoComplete-module__dropdown___NqO3E",yr="AutoComplete-module__option___Y-Kja",hr="AutoComplete-module__optionContent___UAkUA",vr="AutoComplete-module__optionIcon___tbbmW",xr="AutoComplete-module__optionText___aQwHF",br="AutoComplete-module__optionTextWrap___RFICS",Nr="AutoComplete-module__optionSupportingText___OoA1N",ve={layoutOverride:ur,root:pr,input:mr,section:_r,dropdown:fr,option:yr,optionContent:hr,optionIcon:vr,optionText:xr,optionTextWrap:br,optionSupportingText:Nr},Cr=["size","variant","radius"],It=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,data:R,renderOption:M,wrapItemText:E=!1,...A}=e,L=U(m(A,t),Cr),K=L,H=Zo(R),q=D({wrapper:ve.root,input:ve.input,section:ve.section,dropdown:ve.dropdown,option:ve.option},K.classNames),Q={optionContent:ve.optionContent,optionIcon:ve.optionIcon,optionText:ve.optionText,optionTextWrap:ve.optionTextWrap,optionSupportingText:ve.optionSupportingText},V=C?`${ve.layoutOverride} ${C}`:ve.layoutOverride;return o.jsx(fe,{className:V,style:w,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:t,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Autocomplete,{ref:s,...L,classNames:q,disabled:S,value:T,defaultValue:v,error:!!h,data:H,renderOption:M??(Y=>kt(Y,Q,E))})})});It.displayName="AutoComplete";const Pr="Avatar-module__root___fXu-J",gr="Avatar-module__iconWrapper___ojly2",wr="Avatar-module__textWrapper___zp-jD",Tr="Avatar-module__image___ieqGp",Sr="Avatar-module__placeholder___IDW7-",po={root:Pr,iconWrapper:gr,textWrapper:wr,image:Tr,placeholder:Sr},Lt=i.forwardRef(function({size:e="default",variant:s="solid",icon:t,children:n,src:a,overStyled:l=!1,...c},d){const p={solid:"filled",outline:"outline",ghost:"transparent"},_={default:"md",small:"sm",large:"lg"},f=["color","radius"],N=U(m(c,l),f),h=N;let b="text";a?b="image":t&&(b="icon");const x=D({root:po.root,image:po.image,placeholder:po.placeholder},h.classNames),$=h.className;return o.jsx(u.Avatar,{ref:d,...N,className:$,classNames:x,variant:p[s],size:_[e],src:a,"data-variant":s,"data-size":e,"data-style":b,children:t!=null?o.jsx("span",{className:po.iconWrapper,"aria-hidden":!0,children:t}):n!=null?o.jsx("span",{className:po.textWrapper,children:n}):void 0})});Lt.displayName="Avatar";const $r=u.createPolymorphicComponent(Lt),jr="Badge-module__root___5osNT",mo={root:jr},Mt=i.forwardRef(function({variant:e="primary-color",overStyled:s=!1,...t},n){const a=m(t,s),l=D({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:n,...a,variant:"filled","data-variant":e,className:d,classNames:l})});Mt.displayName="Badge";const At=u.createPolymorphicComponent(Mt),Rr="Breadcrumb-module__root___x-9ln",Or="Breadcrumb-module__separator___qrUX-",$o={root:Rr,separator:Or},Wt=i.forwardRef(function({overStyled:e=!1,separator:s=">",...t},n){const a=m({separator:s,...t},e),l=D({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:n,...a,className:_,classNames:l,attributes:d})});Wt.displayName="Breadcrumb";const kr="Loader-module__root___6iYOP",Uo={root:kr},et=i.forwardRef(function({variant:e="oval",size:s="default",animate:t=!0,overStyled:n=!1,...a},l){const d={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[s]||"default",p=m(a,n),_=p,f=D({root:Uo.root},_.classNames),N=_.className,h=N?`${Uo.root} ${N}`:Uo.root;return o.jsx(u.Loader,{ref:l,...p,type:e,"data-variant":e,"data-size":d,"data-animate":t,className:h,classNames:f})});et.displayName="Loader";const Ir="Button-module__root___Q2R8-",Lr="Button-module__loader___X-9u-",Mr="Button-module__label___UJ3Zt",Ar="Button-module__labelText___rFV5p",Wr="Button-module__iconWrapper___uEKPa",zr="Button-module__section___f2mKr",Ke={root:Ir,loader:Lr,label:Mr,labelText:Ar,iconWrapper:Wr,section:zr};function Dr(r){return r==null||r===""?!1:typeof r=="string"?r.trim()!=="":!0}const zt=i.forwardRef(function({variant:e="solid",size:s="default",icon:t,children:n,overStyled:a=!1,loaderVariant:l="oval",loaderSize:c,useRecursicaLoader:d=!0,...p},_){const f={solid:"filled",outline:"outline",text:"subtle"},N={default:"md",small:"sm"},h=["fullWidth"],b=U(m(p,a),h),x=b,$=!!t||!!x.leftSection,C=!!x.rightSection,w=Dr(n),S=($||C)&&!w;let g="label";S?g="icon-only":($||C)&&(g="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&S&&!x["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const P=D({root:Ke.root,section:Ke.section,label:Ke.label,loader:Ke.loader},x.classNames),y=x.className,T=y?`${Ke.root} ${y}`:Ke.root,v=x.loaderProps,R=ce(s==="small"?"small":"default",c);let M=v;return d&&(M={children:o.jsx(et,{variant:l,size:R}),...v}),o.jsx(u.Button,{ref:_,...b,className:T,classNames:P,variant:f[e],size:N[s],loaderProps:M,leftSection:t!=null?o.jsx("span",{className:Ke.iconWrapper,"aria-hidden":!0,children:t}):void 0,"data-variant":e,"data-size":s,"data-content":g,disabled:!!x.disabled||!!x.loading,children:o.jsx("span",{className:Ke.labelText,children:n})})});zt.displayName="Button";const Je=u.createPolymorphicComponent(zt),Er="Card-module__root___c9KvZ",Fr="Card-module__header___PTXf2",Br="Card-module__footer___Mu-JC",Ur="Card-module__section___BRT8H",Gr="Card-module__content___oFIQa",De={root:Er,header:Fr,footer:Br,section:Ur,content:Gr},Vr=["radius","withBorder","padding"],Dt=i.forwardRef(function({overStyled:e=!1,...s},t){const n=U(m(s,e),Vr);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in s&&!(d in n)&&(n[d]=s[d])});const l=D({root:De.root},n.classNames),c=n.className;return o.jsx(u.Card,{ref:t,...n,className:c,classNames:l})});Dt.displayName="Card";const Et=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className;return o.jsx(u.Card.Section,{ref:t,...n,className:a?`${De.section} ${a}`:De.section})});Et.displayName="CardSection";const Ft=["withBorder","inheritPadding"],Bt=i.forwardRef(function({overStyled:e=!1,...s},t){const n=U(m(s,e),Ft),a=n.className;return o.jsx(u.Card.Section,{ref:t,...n,className:a?`${De.header} ${a}`:De.header})});Bt.displayName="CardHeader";const Ut=i.forwardRef(function({overStyled:e=!1,...s},t){const n=U(m(s,e),Ft),a=n.className;return o.jsx(u.Card.Section,{ref:t,...n,className:a?`${De.footer} ${a}`:De.footer})});Ut.displayName="CardFooter";const Gt=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className;return o.jsx("div",{ref:t,...n,className:a?`${De.content} ${a}`:De.content})});Gt.displayName="CardContent";const Vt=u.createPolymorphicComponent(Dt),zo=Vt;zo.Section=Et;zo.Header=Bt;zo.Footer=Ut;zo.Content=Gt;const Hr=Vt,qr="Checkbox-module__groupRoot___cBS0o",Kr="Checkbox-module__root___mY3qk",Yr="Checkbox-module__body___5yC7q",Zr="Checkbox-module__inner___rTke4",Qr="Checkbox-module__input___2kt-h",Xr="Checkbox-module__icon___-O7i6",Jr="Checkbox-module__labelWrapper___GpZkr",ea="Checkbox-module__label___cwRtI",Te={groupRoot:qr,root:Kr,body:Yr,inner:Zr,input:Qr,icon:Xr,labelWrapper:Jr,label:ea},No=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,children:g,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:R,...M}=e,E=["size"],A=U(m(M,t),E),L=A,K=v!==void 0||R!==void 0;return o.jsx(fe,{className:w,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:R,readOnlyNativeProps:e,activeComponent:K?o.jsx(u.Checkbox.Group,{ref:s,...A,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:Te.groupRoot,"data-layout":n,children:g})}):o.jsx("div",{ref:s,...A,role:"group",className:Te.groupRoot,"data-layout":n,children:g})})});No.displayName="CheckboxGroup";const Co=i.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:n,readOnlyComponent:a,disabled:l,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,...f}=e,N=["size","color","radius","variant","iconColor"],h=U(m(f,t),N),b=h,x=D({root:Te.root,body:Te.body,inner:Te.inner,input:Te.input,icon:Te.icon,labelWrapper:Te.labelWrapper,label:Te.label},b.classNames),$=b.className,C=$?`${Te.root} ${$}`:Te.root;if(n&&a){const S=!!(b.checked??b.defaultChecked),g=a,P=o.jsx(g,{...e,checked:S,label:b.label});return c?o.jsx(ze,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:P}):o.jsx(o.Fragment,{children:P})}const w=o.jsx(u.Checkbox,{ref:s,...h,className:C,classNames:x,disabled:n||l});return c?o.jsx(ze,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:w}):w});Co.displayName="Checkbox";Co.Group=No;const oa="Chip-module__root___f5pFk",ta="Chip-module__label___Ov9pg",na="Chip-module__mantineIconWrapper___KLSz6",sa="Chip-module__innerWrapper___EnrTF",ra="Chip-module__children___zbRAR",aa="Chip-module__leadingIcon___JBtjQ",la="Chip-module__deleteIcon___zPPsH",we={root:oa,label:ta,mantineIconWrapper:na,innerWrapper:sa,children:ra,leadingIcon:aa,deleteIcon:la};function ia(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:s,onDelete:t,deleteLabel:n="Delete",deleteTabIndex:a,deleteIconRef:l,children:c,checked:d,overStyled:p=!1,wrapperProps:_,tabIndex:f,"aria-hidden":N,...h},b){const x=m(h,p),$=x,C=D({root:we.root,label:we.label,input:we.input,iconWrapper:we.mantineIconWrapper,checkIcon:we.checkIcon},$.classNames),w=$.className,S=w?`${we.root} ${w}`:we.root,g=e?"":void 0,P=!c&&(!!s||!!t),y=t!==void 0||$.onClick!==void 0||$.onChange!==void 0,T={...g!==void 0?{"data-error":""}:{},...y?{"data-interactive":""}:{}};return o.jsx(u.Chip,{ref:b,...x,checked:d,className:S,classNames:C,wrapperProps:ce(T,_),"data-icon-only":P?"":void 0,tabIndex:ce(y?void 0:-1,f),"aria-hidden":ce(y?void 0:!0,N),children:o.jsxs("span",{className:we.innerWrapper,children:[s&&!d&&o.jsx("span",{className:we.leadingIcon,"aria-hidden":!0,children:s}),o.jsx("span",{className:we.children,children:c}),t&&o.jsx("span",{ref:l,role:"button",className:we.deleteIcon,onClick:v=>{v.preventDefault(),v.stopPropagation(),t(v)},"aria-label":n,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation(),t(v))},tabIndex:a??0,children:o.jsx(ia,{})})]})})});Po.displayName="Chip";const ca="Container-module__root___UVssr",_o={root:ca},Ht=i.forwardRef(function({children:e,size:s,...t},n){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof s=="string"&&a[s]?a[s]:s,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:n,size:l,className:_,classNames:c,...t,children:e})});Ht.displayName="Container";function da(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 ua="DatePicker-module__layoutOverride___X9yaM",pa="DatePicker-module__root___6XvRT",ma="DatePicker-module__input___pcSW8",_a="DatePicker-module__section___n3iWA",fa="DatePicker-module__dropdown___wjt08",ya="DatePicker-module__calendarHeader___KHxno",ha="DatePicker-module__calendarHeaderControl___q7UvJ",va="DatePicker-module__calendarHeaderLevel___ebdJ2",xa="DatePicker-module__calendarHeaderControlIcon___2tZOb",ba="DatePicker-module__weekday___H5lIj",Na="DatePicker-module__day___U03J2",xe={layoutOverride:ua,root:pa,input:ma,section:_a,dropdown:fa,calendarHeader:ya,calendarHeaderControl:ha,calendarHeaderLevel:va,calendarHeaderControlIcon:xa,weekday:ba,day:Na},Ca=["size","variant","radius","description"],qt=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,highlightToday:R=!0,valueFormat:M="MM/DD/YY",placeholder:E="MM / DD / YY",leftSection:A,...L}=e,K=U(m(L,t),Ca),H=K,q=D({wrapper:xe.root,input:xe.input,section:xe.section,day:xe.day,weekday:xe.weekday,calendarHeader:xe.calendarHeader,calendarHeaderControl:xe.calendarHeaderControl,calendarHeaderLevel:xe.calendarHeaderLevel,calendarHeaderControlIcon:xe.calendarHeaderControlIcon},H.classNames),Q=H.popoverProps,V=Q&&typeof Q=="object"&&!Array.isArray(Q)?Q:void 0,Y=V!=null&&V.classNames&&typeof V.classNames=="object"&&!Array.isArray(V.classNames)?V.classNames:void 0;delete H.popoverProps;const J={...V,classNames:D({dropdown:xe.dropdown},Y)},de=C?`${xe.layoutOverride} ${C}`:xe.layoutOverride;return o.jsx(fe,{className:de,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?String(T):v?String(v):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(Tt.DatePickerInput,{ref:s,...K,classNames:q,disabled:S,value:T,defaultValue:v,label:void 0,description:void 0,error:void 0,withAsterisk:!1,highlightToday:R,valueFormat:M,placeholder:E,leftSection:ce(o.jsx(da,{}),A),wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0},popoverProps:J})})});qt.displayName="DatePicker";const Pa="Dropdown-module__layoutOverride___FNcvP",ga="Dropdown-module__root___uVyL0",wa="Dropdown-module__input___dK4dN",Ta="Dropdown-module__section___j3MRB",Sa="Dropdown-module__clearButton___ODnIa",$a="Dropdown-module__dropdown___gG-Sw",ja="Dropdown-module__option___nAGU-",Ra="Dropdown-module__optionContent___QTwwg",Oa="Dropdown-module__optionIcon___2L56h",ka="Dropdown-module__optionText___cCDpI",Ia="Dropdown-module__optionTextWrap___L4OPI",La="Dropdown-module__optionSupportingText___2JIOV",oe={layoutOverride:Pa,root:ga,input:wa,section:Ta,clearButton:Sa,dropdown:$a,option:ja,optionContent:Ra,optionIcon:Oa,optionText:ka,optionTextWrap:Ia,optionSupportingText:La},Ma=["size","variant","radius"],Kt=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",containerWidth:a,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,disabled:g,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:R,data:M,clearButtonProps:E,renderOption:A,wrapItemText:L=!1,...K}=e,H=U(m(K,t),Ma),q=H,Q=Zo(M),V=E,Y={...V,className:V!=null&&V.className?`${oe.clearButton} ${V.className}`:oe.clearButton},J=D({wrapper:oe.root,input:oe.input,section:oe.section,dropdown:oe.dropdown,option:oe.option},q.classNames),de={optionContent:oe.optionContent,optionIcon:oe.optionIcon,optionText:oe.optionText,optionTextWrap:oe.optionTextWrap,optionSupportingText:oe.optionSupportingText},z={...S||{},width:a||"100%"},se=w?`${oe.layoutOverride} ${w}`:oe.layoutOverride;return o.jsx(fe,{className:se,style:z,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:t,formLayout:n,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?String(v):R?String(R):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(u.Select,{ref:s,...H,classNames:J,disabled:g,value:v,defaultValue:R,data:Q||[],renderOption:A??(ue=>kt(ue,de,L)),clearButtonProps:Y,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":b?"true":void 0}}})})});Kt.displayName="Dropdown";const Aa="FileInput-module__layoutOverride___HIOY6",Wa="FileInput-module__root___UvQj-",za="FileInput-module__leadingIcon___z75c4",Da="FileInput-module__content___Udsvh",Ea="FileInput-module__value___RX33R",Fa="FileInput-module__chipRow___My6TF",Ba="FileInput-module__chipWrapper___q2CDy",Ua="FileInput-module__trailingIcon___odGPm",Me={layoutOverride:Aa,root:Wa,leadingIcon:za,content:Da,value:Ea,chipRow:Fa,chipWrapper:Ba,trailingIcon:Ua};function Ga(){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 Va(){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 Yt=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,disabled:g,readOnly:P,files:y,onFilesAdded:T,onFileRemove:v,accept:R,multiple:M=!1,maxSize:E,maxFiles:A,onFilesRejected:L,invalidFileTypeMessage:K="File type not accepted",maxFilesMessage:H=M?`Maximum of ${A} files allowed`:"Only one file is allowed",icon:q,clearIcon:Q,placeholder:V="Select a file...",browseLabel:Y="Choose file",removeFileLabel:J="Remove",clearLabel:de="Clear",...z}=e,ue=m(z,t),O=!g&&!P,ae=!!y&&y.length>0,ye=i.useRef(null),[re,le]=i.useState(!1),[he,Ne]=i.useState(!1),Be=j=>{if(!O)return;const te=Array.from(j);if(te.length===0)return;const ne=M?A:1,X=M?(y==null?void 0:y.length)??0:0,me=[],To=[];let mt=!1,_t=!1;for(const Eo of te){const ft=!Yo(Eo,R);ft&&(mt=!0);const Ts=E!==void 0&&Eo.size>E,yt=ne!==void 0&&X+me.length>=ne;yt&&(_t=!0),(ft||Ts||yt?To:me).push(Eo)}le(mt),Ne(_t),me.length>0&&(T==null||T(me)),To.length>0&&(L==null||L(To))},Ce=i.useRef(0),[Ue,Ie]=i.useState(!1),Le=j=>{j.preventDefault(),Ce.current+=1,Ie(!0)},to=j=>{j.preventDefault(),Ce.current-=1,Ce.current<=0&&(Ce.current=0,Ie(!1))},Pe=j=>{j.preventDefault()},Ge=j=>{j.preventDefault(),Ce.current=0,Ie(!1),Be(j.dataTransfer.files)},ge=()=>{var j;O&&((j=ye.current)==null||j.click())},Ve=j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),ge())},G=j=>{j.target.files&&Be(j.target.files),j.target.value=""},F=()=>{!O||!y||y.length===0||y.forEach(j=>v==null?void 0:v(j.id??j.file.name))},[W,k]=i.useState(0),B=i.useRef([]),Z=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var te;const j=(y==null?void 0:y.length)??0;if(j>0&&j<Z.current){const ne=Math.min(W,j-1);k(ne),(te=B.current[ne])==null||te.focus()}Z.current=j},[y]);const pe=j=>{var X;const te=(y==null?void 0:y.length)??0;if(te===0)return;let ne;j.key==="ArrowRight"||j.key==="ArrowDown"?ne=(W+1)%te:(j.key==="ArrowLeft"||j.key==="ArrowUp")&&(ne=(W-1+te)%te),ne!==void 0&&(j.preventDefault(),j.stopPropagation(),k(ne),(X=B.current[ne])==null||X.focus())},He=b??(re?K:he?H:void 0),no=w?`${Me.layoutOverride} ${w}`:Me.layoutOverride;return o.jsx(uo,{overStyled:t,className:no,style:S,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:He,required:x,withAsterisk:$,id:C,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:o.jsxs("div",{ref:s,...ue,className:Me.root,role:"button","aria-label":Y,"aria-disabled":g?"true":void 0,tabIndex:O?0:-1,"data-disabled":g?"true":void 0,"data-readonly":P?"true":void 0,"data-error":He?"true":void 0,"data-dragging":Ue?"true":void 0,onClick:O?ge:void 0,onKeyDown:O?Ve:void 0,onDragEnter:O?Le:void 0,onDragLeave:O?to:void 0,onDragOver:O?Pe:void 0,onDrop:O?Ge:void 0,children:[o.jsx("span",{className:Me.leadingIcon,"aria-hidden":!0,children:q??o.jsx(Ga,{})}),o.jsxs("div",{className:Me.content,children:[!ae&&o.jsx("span",{className:Me.value,"data-placeholder":"true",children:V}),ae&&o.jsx("div",{className:Me.chipRow,onKeyDown:P?void 0:pe,children:y.map((j,te)=>{const ne=j.id??j.file.name;return o.jsx("span",{className:Me.chipWrapper,onClick:X=>X.stopPropagation(),children:o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:P?void 0:J,deleteTabIndex:!P&&te===W?0:-1,deleteIconRef:X=>{B.current[te]=X},onDelete:P||g?void 0:()=>v==null?void 0:v(ne),children:j.file.name})},ne)})})]}),ae&&!P&&o.jsx(Je,{overStyled:!0,variant:"text",size:"small",icon:Q??o.jsx(Va,{}),"aria-label":de,className:Me.trailingIcon,disabled:g,onClick:j=>{j.preventDefault(),j.stopPropagation(),F()},onKeyDown:j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.stopPropagation(),F())}}),o.jsx("input",{ref:ye,type:"file",hidden:!0,accept:R,multiple:M,disabled:!O,onChange:G})]})})});Yt.displayName="FileInput";const Ha="FileUpload-module__layoutOverride___bPpi8",qa="FileUpload-module__root___Q-vcm",Ka="FileUpload-module__dropzone___jqua0",Ya="FileUpload-module__uploadIcon___bb3Nc",Za="FileUpload-module__dropzoneText___L7vS-",Qa="FileUpload-module__fileList___XIWLl",Ye={layoutOverride:Ha,root:qa,dropzone:Ka,uploadIcon:Ya,dropzoneText:Za,fileList:Qa};function Xa(){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 Zt=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,disabled:g,readOnly:P,files:y,onFilesAdded:T,onFileRemove:v,accept:R,multiple:M=!0,maxSize:E,maxFiles:A,onFilesRejected:L,invalidFileTypeMessage:K="File type not accepted",maxFilesMessage:H=`Maximum of ${A} files allowed`,icon:q,dropzoneLabel:Q="Drag and drop files here to upload",browseButtonLabel:V="Browse files",removeFileLabel:Y="Remove",...J}=e,z=m(J,t),se=i.useRef(null),[ue,O]=i.useState(!1),[ae,ye]=i.useState(!1),re=k=>{if(g)return;const B=Array.from(k);if(B.length===0)return;const Z=(y==null?void 0:y.length)??0,pe=[],He=[];let no=!1,j=!1;for(const te of B){const ne=!Yo(te,R);ne&&(no=!0);const X=E!==void 0&&te.size>E,me=A!==void 0&&Z+pe.length>=A;me&&(j=!0),(ne||X||me?He:pe).push(te)}O(no),ye(j),pe.length>0&&(T==null||T(pe)),He.length>0&&(L==null||L(He))},le=i.useRef(0),[he,Ne]=i.useState(!1),Be=k=>{k.preventDefault(),le.current+=1,Ne(!0)},Ce=k=>{k.preventDefault(),le.current-=1,le.current<=0&&(le.current=0,Ne(!1))},Ue=k=>{k.preventDefault()},Ie=k=>{k.preventDefault(),le.current=0,Ne(!1),re(k.dataTransfer.files)},Le=()=>{var k;g||(k=se.current)==null||k.click()},to=k=>{k.target.files&&re(k.target.files),k.target.value=""},[Pe,Ge]=i.useState(0),ge=i.useRef([]),Ve=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var B;const k=(y==null?void 0:y.length)??0;if(k>0&&k<Ve.current){const Z=Math.min(Pe,k-1);Ge(Z),(B=ge.current[Z])==null||B.focus()}Ve.current=k},[y]);const G=k=>{var pe;const B=(y==null?void 0:y.length)??0;if(B===0)return;let Z;k.key==="ArrowRight"||k.key==="ArrowDown"?Z=(Pe+1)%B:(k.key==="ArrowLeft"||k.key==="ArrowUp")&&(Z=(Pe-1+B)%B),Z!==void 0&&(k.preventDefault(),Ge(Z),(pe=ge.current[Z])==null||pe.focus())},F=b??(ue?K:ae?H:void 0),W=w?`${Ye.layoutOverride} ${w}`:Ye.layoutOverride;return o.jsx(uo,{overStyled:t,className:W,style:S,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:F,required:x,withAsterisk:$,id:C,children:o.jsxs("div",{ref:s,...z,className:Ye.root,"data-disabled":g?"true":void 0,"data-error":F?"true":void 0,children:[!P&&o.jsxs("div",{className:Ye.dropzone,"data-dragging":he?"true":void 0,onDragEnter:g?void 0:Be,onDragLeave:g?void 0:Ce,onDragOver:g?void 0:Ue,onDrop:g?void 0:Ie,children:[o.jsx("span",{className:Ye.uploadIcon,children:q??o.jsx(Xa,{})}),o.jsx("span",{className:Ye.dropzoneText,children:Q}),o.jsx(Je,{variant:"outline",disabled:g,onClick:Le,children:V}),o.jsx("input",{ref:se,type:"file",hidden:!0,accept:R,multiple:M,disabled:g,onChange:to})]}),y&&y.length>0&&(P?o.jsx("div",{className:Ye.fileList,children:y.map(k=>{const B=k.id??k.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,children:k.file.name},B)})}):o.jsx("div",{className:Ye.fileList,onKeyDown:G,children:y.map((k,B)=>{const Z=k.id??k.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:Y,deleteTabIndex:B===Pe?0:-1,deleteIconRef:pe=>{ge.current[B]=pe},onDelete:g?void 0:()=>v==null?void 0:v(Z),children:k.file.name},Z)})}))]})})});Zt.displayName="FileUpload";const Ja="Flex-module__root___yYser",fo={root:Ja},Qt=i.forwardRef(function({children:e,gap:s="rec-default",rowGap:t,columnGap:n,...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,...go({gap:s,rowGap:t,columnGap:n,...a}),children:e})});Qt.displayName="Flex";const el=u.createPolymorphicComponent(Qt),ol="Grid-module__root___s-qPY",tl="Grid-module__col___tbuNg",je={root:ol,col:tl},Xt=i.forwardRef(function({children:e,gutter:s="rec-default",...t},n){const a={root:je.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const f=l;a.root=f.root?`${je.root} ${f.root}`:je.root}const c=t.className,d=c?`${je.root} ${c}`:je.root,{gutter:p,..._}=go({gutter:s,...t});return o.jsx(u.Grid,{ref:n,gutter:p,className:d,classNames:a,..._,children:e})});Xt.displayName="Grid";const nl=u.createPolymorphicComponent(Xt),Jt=i.forwardRef(function({children:e,...s},t){const n={col:je.col},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const d=a;n.col=d.col?`${je.col} ${d.col}`:je.col}const l=s.className,c=l?`${je.col} ${l}`:je.col;return o.jsx(u.Grid.Col,{ref:t,className:c,classNames:n,...go(s),children:e})});Jt.displayName="GridCol";const en=u.createPolymorphicComponent(Jt),on=nl;on.Col=en;const sl="Group-module__root___ftO64",yo={root:sl},tn=i.forwardRef(function({children:e,gap:s="rec-default",...t},n){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:n,className:d,classNames:a,...go({gap:s,...t}),children:e})});tn.displayName="Group";const rl="Heading-module__root___-To4U",al={root:rl},nn=i.forwardRef(function({overStyled:e=!1,order:s=1,...t},n){const a=["size"],l=U(m(t,e),a),c=l.className,p=[`recursica_brand_typography_h${s}`,al.root,c].filter(Boolean).join(" ");return o.jsx(u.Title,{ref:n,...l,order:s,className:p})});nn.displayName="Heading";const ll="HoverCard-module__dropdown___FBPFW",il="HoverCard-module__arrow___S9AkE",bt={dropdown:ll,arrow:il},sn=function({overStyled:e=!1,withBeak:s=!0,position:t="top",arrowSize:n=16,withArrow:a,...l}){const c=m(l,e),d=c,p=D({dropdown:bt.dropdown,arrow:bt.arrow},d.classNames),_=s??a;return o.jsx(u.HoverCard,{...c,position:t,arrowSize:n,withArrow:_,classNames:p})};sn.displayName="HoverCard";const rn=function(e){return o.jsx(u.HoverCard.Target,{...e})};rn.displayName="HoverCardTarget";const an=function({overStyled:e=!1,...s}){const t=m(s,e),n=t.className;return o.jsx(u.HoverCard.Dropdown,{...t,className:n})};an.displayName="HoverCardDropdown";const ot=sn;ot.Target=rn;ot.Dropdown=an;const cl="Link-module__root___I0VGE",dl="Link-module__iconWrapper___W-LlF",ul="Link-module__labelText___wSvUy",ho={root:cl,iconWrapper:dl,labelText:ul},ln=i.forwardRef(function({icon:e,children:s,overStyled:t=!1,...n},a){const l=m(n,t),c=l,d=D({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:s})]})});ln.displayName="Link";const pl=u.createPolymorphicComponent(ln),ml="Menu-module__dropdown___j4xuA",_l="Menu-module__item___NMXha",fl="Menu-module__itemLabel___zvcqC",yl="Menu-module__itemSection___pRIcn",hl="Menu-module__divider___wPiNq",vl="Menu-module__label___4FBGa",xl="Menu-module__chevron___hEEiy",so={dropdown:ml,item:_l,itemLabel:fl,itemSection:yl,divider:hl,label:vl,chevron:xl},cn=function({overStyled:e=!1,...s}){const n=m(s,e),{maxHeight:a,...l}=n,c=D({dropdown:so.dropdown,item:so.item,itemLabel:so.itemLabel,itemSection:so.itemSection,divider:so.divider,label:so.label,chevron:so.chevron},n.classNames),d=l.styles,p=a?{...d,dropdown:{...d==null?void 0:d.dropdown,maxHeight:a,overflowY:"auto"}}:d;return o.jsx(u.Menu,{...l,classNames:c,...p?{styles:p}:{}})};cn.displayName="Menu";const dn=function({overStyled:e=!1,...s}){const t=m(s,e);return o.jsx(u.Menu.Target,{...t})};dn.displayName="MenuTarget";const un=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className;return o.jsx(u.Menu.Dropdown,{...n,ref:t,className:a})});un.displayName="MenuDropdown";const pn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=["color"],a=U(m(s,e),n),c=a.className;return o.jsx(u.Menu.Item,{...a,ref:t,className:c})});pn.displayName="MenuItem";const bl=u.createPolymorphicComponent(pn),mn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className;return o.jsx(u.Menu.Divider,{...n,ref:t,className:a})});mn.displayName="MenuDivider";const _n=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className;return o.jsx(u.Menu.Label,{...n,ref:t,className:a})});_n.displayName="MenuLabel";const fn=function(e){return o.jsx(u.Menu.Sub,{...e})};fn.displayName="MenuSub";const yn=function(e){return o.jsx(u.Menu.Sub.Target,{...e})};yn.displayName="MenuSubTarget";const hn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=["color"],a=U(m(s,e),n),c=a.className;return o.jsx(u.Menu.Sub.Item,{...a,ref:t,className:c})});hn.displayName="MenuSubItem";const Nl=u.createPolymorphicComponent(hn),vn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className;return o.jsx(u.Menu.Sub.Dropdown,{...n,ref:t,className:a})});vn.displayName="MenuSubDropdown";const Do=fn;Do.Target=yn;Do.Item=Nl;Do.Dropdown=vn;const lo=cn;lo.Target=dn;lo.Dropdown=un;lo.Item=bl;lo.Divider=mn;lo.Label=_n;lo.Sub=Do;const Cl="Modal-module__root___ytPLl",Pl="Modal-module__inner___SSUJE",gl="Modal-module__content___dWO-B",wl="Modal-module__header___ILG9i",Tl="Modal-module__title___A5OeE",Sl="Modal-module__bodyWrapper___5CCL-",$l="Modal-module__scrollArea___KD-hm",jl="Modal-module__footer___rro2w",Rl="Modal-module__close___-ER1C",We={root:Cl,inner:Pl,content:gl,header:wl,title:Tl,bodyWrapper:Sl,scrollArea:$l,footer:jl,close:Rl},xn=i.forwardRef(function({overStyled:e=!1,children:s,title:t,withCloseButton:n=!0,overlayProps:a,withOverlay:l=!0,closeButtonProps:c,...d},p){const _=["size","radius"],f=U(m(d,e),_),N=D({root:We.root,inner:We.inner,content:We.content,header:We.header,title:We.title,close:We.close},f.classNames);return o.jsxs(u.Modal.Root,{ref:p,...f,classNames:N,children:[l&&o.jsx(u.Modal.Overlay,{...a}),o.jsxs(u.Modal.Content,{children:[(t||n)&&o.jsxs(u.Modal.Header,{children:[t&&o.jsx(u.Modal.Title,{children:t}),n&&o.jsx(u.Modal.CloseButton,{...c})]}),o.jsx(nt,{children:s})]})]})});xn.displayName="Modal";const tt=i.forwardRef(function({overStyled:e=!1,className:s,...t},n){const a=m(t,e);return o.jsx("div",{ref:n,...a,className:`${We.footer} ${s||""}`})});tt.displayName="Modal.Footer";const nt=i.forwardRef(function({overStyled:e=!1,className:s,onScroll:t,children:n,...a},l){const c=m(a,e),d=i.useRef(null),[p,_]=i.useState(!1),[f,N]=i.useState(!1),h=i.useCallback(()=>{if(d.current){const{scrollTop:C,scrollHeight:w,clientHeight:S}=d.current;_(C>0),N(Math.ceil(C+S)<w)}},[]);i.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,n]);const b=C=>{h(),t==null||t(C)};let x=null;const $=[];return i.Children.forEach(n,C=>{var w;i.isValidElement(C)&&(C.type===tt||((w=C.type)==null?void 0:w.displayName)==="Modal.Footer")?x=C:$.push(C)}),o.jsxs(u.Modal.Body,{...c,ref:C=>{typeof l=="function"?l(C):l&&(l.current=C)},className:`${We.bodyWrapper} ${s||""}`,children:[o.jsx("div",{ref:d,onScroll:b,"data-scrolled-top":p||void 0,"data-scrolled-bottom":f||void 0,className:We.scrollArea,children:$}),x]})});nt.displayName="Modal.Body";const Ol=["size","radius"],bn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=U(m(s,e),Ol);return o.jsx(u.Modal.Root,{ref:t,...n})});bn.displayName="Modal.Root";const Nn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Modal.Overlay,{ref:t,...n})});Nn.displayName="Modal.Overlay";const kl=["radius"],Cn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=U(m(s,e),kl);return o.jsx(u.Modal.Content,{ref:t,...n})});Cn.displayName="Modal.Content";const Pn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Modal.Header,{ref:t,...n})});Pn.displayName="Modal.Header";const gn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Modal.Title,{ref:t,...n})});gn.displayName="Modal.Title";const Il=["size","radius"],wn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=U(m(s,e),Il);return o.jsx(u.Modal.CloseButton,{ref:t,...n})});wn.displayName="Modal.CloseButton";const Ee=xn;Ee.Root=bn;Ee.Overlay=Nn;Ee.Content=Cn;Ee.Header=Pn;Ee.Title=gn;Ee.CloseButton=wn;Ee.Body=nt;Ee.Footer=tt;const Ll="NumberInput-module__layoutOverride___5-9T4",Ml="NumberInput-module__root___C6rAn",Al="NumberInput-module__input___Ss8p7",Wl="NumberInput-module__section___MijP0",zl="NumberInput-module__controls___8UfQ2",Dl="NumberInput-module__control___Qre9-",ro={layoutOverride:Ll,root:Ml,input:Al,section:Wl,controls:zl,control:Dl},El=["size","variant","radius"],Tn=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,hideControls:R=!1,...M}=e,E=U(m(M,t),El),A=E,L={wrapper:ro.root,input:ro.input,section:ro.section,controls:ro.controls,control:ro.control},K=C?`${ro.layoutOverride} ${C}`:ro.layoutOverride;return o.jsx(fe,{className:K,style:w,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:t,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T==null?void 0:T.toString():v==null?void 0:v.toString(),readOnlyNativeProps:e,activeComponent:o.jsx(u.NumberInput,{ref:s,...E,classNames:L,disabled:S,value:T,defaultValue:v,hideControls:R,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0,"data-with-left-section":A.leftSection?"true":void 0,"data-with-right-section":A.rightSection||!R?"true":void 0}})})});Tn.displayName="NumberInput";const Fl="Pagination-module__root___ITRjt",Bl="Pagination-module__control___40yNT",Ul="Pagination-module__dots___Yl9da",Gl="Pagination-module__iconWithLabel___pLM4O",Vl="Pagination-module__baseIcon___Qw3bJ",Re={root:Fl,control:Bl,dots:Ul,iconWithLabel:Gl,baseIcon:Vl},Hl="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",ql="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",Kl="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",Yl="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",Zl={next:Hl,prev:ql,first:Kl,last:Yl},wo=({type:r,className:e,...s})=>o.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${Re.baseIcon} ${e||""}`.trim(),...s,children:o.jsx("path",{d:Zl[r],fill:"currentColor"})}),Sn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx("span",{children:"Next"}),o.jsx(wo,{type:"next",...r})]}),$n=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx(wo,{type:"prev",...r}),o.jsx("span",{children:"Prev"})]}),jn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx(wo,{type:"first",...r}),o.jsx("span",{children:"First"})]}),Rn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx("span",{children:"Last"}),o.jsx(wo,{type:"last",...r})]});function On(r){const e=D({root:Re.root,control:Re.control,dots:Re.dots},r.classNames),s=r.className;return{className:s?`${Re.root} ${s}`:Re.root,classNames:e}}const kn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=On(n);return o.jsx(u.Pagination.Root,{ref:t,...n,className:a.className,classNames:a.classNames})});kn.displayName="Pagination.Root";const In=i.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...n},a){const l=m(n,e),c=s?Sn:void 0;return o.jsx(u.Pagination.Next,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});In.displayName="Pagination.Next";const Ln=i.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...n},a){const l=m(n,e),c=s?$n:void 0;return o.jsx(u.Pagination.Previous,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});Ln.displayName="Pagination.Previous";const Mn=i.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...n},a){const l=m(n,e),c=s?jn:void 0;return o.jsx(u.Pagination.First,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});Mn.displayName="Pagination.First";const An=i.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...n},a){const l=m(n,e),c=s?Rn:void 0;return o.jsx(u.Pagination.Last,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});An.displayName="Pagination.Last";const Wn=i.forwardRef(function({overStyled:e=!1,getControlProps:s,withLabels:t,...n},a){const l=m(n,e),c=On(l),d=_=>{const f={"data-variant":"text"};return s?{...f,...s(_)}:f},p=t?{nextIcon:Sn,previousIcon:$n,firstIcon:jn,lastIcon:Rn}:{};return o.jsx(u.Pagination,{ref:a,...p,...l,className:c.className,classNames:c.classNames,getControlProps:d})});Wn.displayName="Pagination";const zn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Pagination.Control,{ref:t,...n})});zn.displayName="Pagination.Control";const Dn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Pagination.Dots,{ref:t,...n})});Dn.displayName="Pagination.Dots";const Oe=Wn;Oe.Root=kn;Oe.Items=u.Pagination.Items;Oe.Control=zn;Oe.Dots=Dn;Oe.Next=In;Oe.Previous=Ln;Oe.First=Mn;Oe.Last=An;Oe.Icon=wo;const Ql="Panel-module__content___wdGo-",Xl="Panel-module__inner___ruA2b",Jl="Panel-module__header___o7SiC",ei="Panel-module__title___181OP",oi="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",ti="Panel-module__body___SEC3T",ni="Panel-module__footer___t6-hz",Qe={content:Ql,inner:Xl,header:Jl,title:ei,titleTruncate:oi,body:ti,footer:ni},En=function({overStyled:e=!1,placement:s="right",keepMounted:t=!0,wrapHeaderText:n=!1,...a}){const l=m(a,e),c=l,d=D({content:Qe.content,header:Qe.header,title:n?Qe.titleTruncate:Qe.title,body:Qe.body,inner:Qe.inner},c.classNames);return o.jsx(u.Drawer,{...l,position:s,keepMounted:t,closeOnClickOutside:ce(!!a.opened,a.closeOnClickOutside),classNames:d})};En.displayName="Panel";const st=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className,l=a?`${Qe.footer} ${a}`:Qe.footer;return o.jsx("div",{ref:t,...n,className:l})});st.displayName="PanelFooter";const Fn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Drawer.Root,{ref:t,...n})});Fn.displayName="PanelRoot";const Bn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Drawer.Overlay,{ref:t,...n})});Bn.displayName="PanelOverlay";const Un=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Drawer.Content,{ref:t,...n})});Un.displayName="PanelContent";const Gn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Drawer.Header,{ref:t,...n})});Gn.displayName="PanelHeader";const Vn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Drawer.Title,{ref:t,...n})});Vn.displayName="PanelTitle";const Hn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Drawer.CloseButton,{ref:t,...n})});Hn.displayName="PanelCloseButton";const qn=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Drawer.Body,{ref:t,...n})});qn.displayName="PanelBody";const ke=En;ke.Root=Fn;ke.Overlay=Bn;ke.Content=Un;ke.Header=Gn;ke.Title=Vn;ke.CloseButton=Hn;ke.Body=qn;ke.Stack=u.Drawer.Stack;ke.Footer=st;const si="Popover-module__dropdown___svhS6",ri="Popover-module__arrow___5A-0e",Nt={dropdown:si,arrow:ri},Kn=function({overStyled:e=!1,withBeak:s=!0,position:t="top",...n}){const a=m(n,e),l=a,c=D({dropdown:Nt.dropdown,arrow:Nt.arrow},l.classNames),d=ce(16,l.arrowSize),p=ce(s,l.withArrow);return o.jsx(u.Popover,{...a,position:t,arrowSize:d,withArrow:p,classNames:c})};Kn.displayName="Popover";const Yn=function(e){return o.jsx(u.Popover.Target,{...e})};Yn.displayName="PopoverTarget";const Zn=function({overStyled:e=!1,...s}){const t=m(s,e),n=t.className;return o.jsx(u.Popover.Dropdown,{...t,className:n})};Zn.displayName="PopoverDropdown";const rt=Kn;rt.Target=Yn;rt.Dropdown=Zn;const ai="Radio-module__groupRoot___bfUii",li="Radio-module__root___kAjTD",ii="Radio-module__body___q2Wpj",ci="Radio-module__inner___QaTBB",di="Radio-module__radio___MfgN-",ui="Radio-module__icon___DWznm",pi="Radio-module__labelWrapper___dB0Gi",mi="Radio-module__label___vAFIP",Se={groupRoot:ai,root:li,body:ii,inner:ci,radio:di,icon:ui,labelWrapper:pi,label:mi},at=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,children:g,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:R,...M}=e,E=["size"],A=U(m(M,t),E),L=A;return o.jsx(fe,{className:w,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:R,readOnlyNativeProps:e,activeComponent:o.jsx(u.Radio.Group,{ref:s,...A,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:Se.groupRoot,"data-layout":n,children:g})})})});at.displayName="RadioGroup";const _i=({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"})}),lt=i.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:n,readOnlyComponent:a,disabled:l,icon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...N}=e,h=["size","color","radius","variant","iconColor"],b=U(m(N,t),h),x=b,$=D({root:Se.root,body:Se.body,inner:Se.inner,radio:Se.radio,icon:Se.icon,labelWrapper:Se.labelWrapper,label:Se.label},x.classNames),C=x.className,w=C?`${Se.root} ${C}`:Se.root;if(n&&a){const g=!!(x.checked??x.defaultChecked),P=a,y=o.jsx(P,{...e,checked:g,label:x.label});return d?o.jsx(ze,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:y}):o.jsx(o.Fragment,{children:y})}const S=o.jsx(u.Radio,{ref:s,...b,icon:ce(_i,c),className:w,classNames:$,disabled:n||l});return d?o.jsx(ze,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:S}):S});lt.displayName="Radio";lt.Group=at;const fi="SegmentedControl-module__root___JFRhg",yi="SegmentedControl-module__label___mS17q",hi="SegmentedControl-module__control___znOdQ",vi="SegmentedControl-module__indicator___ZMcJy",co={root:fi,label:yi,control:hi,indicator:vi};function xi(r){const e=D({root:co.root,control:co.control,label:co.label,indicator:co.indicator},r.classNames),s=r.className;return{className:s?`${co.root} ${s}`:co.root,classNames:e}}const Qn=i.forwardRef(function({overStyled:e=!1,orientation:s="horizontal",fullWidth:t,data:n=[],...a},l){const c=m(a,e),p=xi(c),_=n.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:s,fullWidth:t,"data-orientation":s,data:_})});Qn.displayName="SegmentedControl";const bi=Qn,Ni="Slider-module__layoutOverride___zYPun",Ci="Slider-module__sliderContainer___y8I0J",Pi="Slider-module__sliderTrackWrapper___UHpVh",gi="Slider-module__iconWrapper___uqHpC",wi="Slider-module__sliderRoot___LI86H",Ti="Slider-module__sliderTrack___oqnlG",Si="Slider-module__sliderBar___TI4VY",$i="Slider-module__sliderThumb___OFn8p",ji="Slider-module__sliderMarkWrapper___Ufqhu",Ri="Slider-module__sliderMark___1lM2B",Oi="Slider-module__sliderMarkLabel___MMZrq",ki="Slider-module__minMaxGuide___TaGqz",Ii="Slider-module__rightGuideContainer___8dOT8",Li="Slider-module__currentValue___dGV2T",Mi="Slider-module__inputField___6x578",Ai="Slider-module__readOnlyValue___-ZzMW",ee={layoutOverride:Ni,sliderContainer:Ci,sliderTrackWrapper:Pi,iconWrapper:gi,sliderRoot:wi,sliderTrack:Ti,sliderBar:Si,sliderThumb:$i,sliderMarkWrapper:ji,sliderMark:Ri,sliderMarkLabel:Oi,minMaxGuide:ki,rightGuideContainer:Ii,currentValue:Li,inputField:Mi,readOnlyValue:Ai},Wi=({value:r})=>{const e=Array.isArray(r)?`${r[0]} – ${r[1]}`:r;return o.jsx("div",{className:ee.readOnlyValue,children:e})},Xn=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,tooltipLabel:N,assistiveText:h,assistiveWithIcon:b,error:x,required:$,withAsterisk:C,id:w,className:S,style:g,disabled:P,readOnly:y,readOnlyComponent:T,emptyValueComponent:v,value:R,defaultValue:M,icon:E,trailingIcon:A,showInput:L=!1,showMinMaxLabels:K=!0,min:H=0,max:q=100,minLabel:Q,maxLabel:V,step:Y=1,onChange:J,onChangeEnd:de,...z}=e,[se,ue]=i.useState(()=>R!==void 0?R:M!==void 0?M:H),O=R!==void 0?R:se,ae=Array.isArray(O),[ye,re]=i.useState(()=>Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString());i.useEffect(()=>{re(Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString())},[O]);const le=F=>{R===void 0&&ue(F),J==null||J(F)},he=F=>{const W=F.target.value;re(W);const k=parseFloat(W);if(!isNaN(k)){const B=Math.max(H,Math.min(q,k));le(B)}},Ne=()=>{re(O.toString())},Be=F=>{const W=O,k=F.target.value;re([k,W[1].toString()]);const B=parseFloat(k);if(!isNaN(B)){const Z=Math.max(H,Math.min(W[1],B));le([Z,W[1]])}},Ce=F=>{const W=O,k=F.target.value;re([W[0].toString(),k]);const B=parseFloat(k);if(!isNaN(B)){const Z=Math.max(W[0],Math.min(q,B));le([W[0],Z])}},Ue=()=>{const F=O;re([F[0].toString(),F[1].toString()])},Ie=["size","variant","radius","wrapperProps"],Le=U(m(z,t),Ie),to=Le,Pe=D({root:ee.sliderRoot,track:ee.sliderTrack,bar:ee.sliderBar,thumb:ee.sliderThumb,markWrapper:ee.sliderMarkWrapper,mark:ee.sliderMark,markLabel:ee.sliderMarkLabel},to.classNames),Ge=S?`${ee.layoutOverride} ${S}`:ee.layoutOverride,ge=E?o.jsx("span",{className:ee.iconWrapper,"aria-hidden":!0,children:E}):null,Ve=A?o.jsx("span",{className:ee.iconWrapper,"aria-hidden":!0,children:A}):null,G=Array.isArray(O)?typeof N=="function"?`${N(O[0])} – ${N(O[1])}`:`${O[0]} – ${O[1]}`:typeof N=="function"?N(O):O;return o.jsx(fe,{ref:s,className:Ge,style:g,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:h,assistiveWithIcon:b,error:x,required:$,withAsterisk:C,id:w,readOnly:y,readOnlyComponent:T||Wi,emptyValueComponent:v,readOnlyType:"text",readOnlyValue:O,readOnlyNativeProps:{value:O},activeComponent:o.jsxs("div",{className:ee.sliderContainer,"data-form-layout":n,"data-disabled":P?"true":void 0,"data-error":x?"true":void 0,children:[ae&&L&&o.jsx("input",{type:"number",className:ee.inputField,value:ye[0],onChange:Be,onBlur:Ue,min:H,max:O[1],step:Y,disabled:P,"data-error":x?"true":void 0,"aria-label":"Minimum value"}),ge,K&&o.jsx("span",{className:ee.minMaxGuide,children:Q??H}),o.jsx("div",{className:ee.sliderTrackWrapper,children:ae?o.jsx(u.RangeSlider,{...Le,classNames:Pe,disabled:P,value:O,onChange:le,onChangeEnd:de,min:H,max:q,step:Y,label:N}):o.jsx(u.Slider,{...Le,classNames:Pe,disabled:P,value:O,onChange:le,onChangeEnd:de,min:H,max:q,step:Y,label:N})}),o.jsxs("div",{className:ee.rightGuideContainer,children:[!L&&o.jsx("span",{className:ee.currentValue,children:G}),K&&o.jsx("span",{className:ee.minMaxGuide,children:V??q})]}),Ve,L&&(ae?o.jsx("input",{type:"number",className:ee.inputField,value:ye[1],onChange:Ce,onBlur:Ue,min:O[0],max:q,step:Y,disabled:P,"data-error":x?"true":void 0,"aria-label":"Maximum value"}):o.jsx("input",{type:"number",className:ee.inputField,value:ye,onChange:he,onBlur:Ne,min:H,max:q,step:Y,disabled:P,"data-error":x?"true":void 0}))]})})});Xn.displayName="Slider";const zi="Stack-module__root___NUN-x",vo={root:zi},Jn=i.forwardRef(function({children:e,gap:s="rec-default",...t},n){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:n,className:d,classNames:a,...go({gap:s,...t}),children:e})});Jn.displayName="Stack";const Di=u.createPolymorphicComponent(Jn),Ei="Stepper-module__root___jbSYO",Fi="Stepper-module__horizontal___USHT1",Bi="Stepper-module__steps___4HPO6",Ui="Stepper-module__step___s2nqL",Gi="Stepper-module__stepBody___TBvys",Vi="Stepper-module__stepLabel___N6nuy",Hi="Stepper-module__stepDescription___DnDAy",qi="Stepper-module__separator___pU0No",Ki="Stepper-module__vertical___d4mOs",Yi="Stepper-module__large___J18-y",Zi="Stepper-module__small___Ub-zb",Qi="Stepper-module__stepIcon___YQHNq",Xi="Stepper-module__stepCompletedIcon___B9MeL",Ji="Stepper-module__verticalSeparator___frWc1",ec="Stepper-module__content___J-h8X",ie={root:Ei,horizontal:Fi,steps:Bi,step:Ui,stepBody:Gi,stepLabel:Vi,stepDescription:Hi,separator:qi,vertical:Ki,large:Yi,small:Zi,stepIcon:Qi,stepCompletedIcon:Xi,verticalSeparator:Ji,content:ec},es=i.forwardRef(function(e,s){const{overStyled:t=!1,size:n="large",orientation:a="horizontal",className:l,style:c,...d}=e,p=m(d,t),_=p,f=D({steps:ie.steps,step:ie.step,stepIcon:ie.stepIcon,stepCompletedIcon:ie.stepCompletedIcon,stepBody:ie.stepBody,stepLabel:ie.stepLabel,stepDescription:ie.stepDescription,separator:ie.separator,verticalSeparator:ie.verticalSeparator,content:ie.content},_.classNames);return o.jsx(u.Stepper,{ref:s,...p,orientation:a,className:`${ie.root} ${a==="horizontal"?ie.horizontal:ie.vertical} ${n==="large"?ie.large:ie.small} ${l||""}`,style:c,"data-size":n,"data-orientation":a,classNames:f})}),os=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Stepper.Step,{ref:t,...n})});os.displayName="Stepper.Step";const oc=Object.assign(es,{Step:os,Completed:u.Stepper.Completed});es.displayName="Stepper";const tc="Switch-module__root___Y5Ydi",nc="Switch-module__track___7ObdZ",sc="Switch-module__body___Sw9Wr",rc="Switch-module__thumb___-FTeK",ac="Switch-module__labelWrapper___YSOwx",lc="Switch-module__label___LrH7V",ic="Switch-module__thumbIconWrapper___sCY-1",cc="Switch-module__checkIcon___ZBAQN",dc="Switch-module__closeIcon___bLLGw",uc="Switch-module__groupRoot___-Uepi",_e={root:tc,track:nc,body:sc,thumb:rc,labelWrapper:ac,label:lc,thumbIconWrapper:ic,checkIcon:cc,closeIcon:dc,groupRoot:uc},it=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,children:g,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:R,...M}=e,E=["size"],A=U(m(M,t),E),L=A;return o.jsx(fe,{className:w,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:R,readOnlyNativeProps:e,activeComponent:o.jsx(u.Switch.Group,{ref:s,...A,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:_e.groupRoot,"data-layout":n,children:g})})})});it.displayName="SwitchGroup";const ct=i.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:n,readOnlyComponent:a,disabled:l,thumbIcon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...N}=e,h=["size","color","radius","variant"],b=U(m(N,t),h),x=b,$=D({root:_e.root,body:_e.body,track:_e.track,thumb:_e.thumb,trackLabel:_e.trackLabel,labelWrapper:_e.labelWrapper,label:_e.label},x.classNames),C=jt({},x.styles),w=x.className,S=w?`${_e.root} ${w}`:_e.root;if(n&&a){const y=!!(x.checked??x.defaultChecked),T=a,v=o.jsx(T,{...e,checked:y,label:x.label});return d?o.jsx(ze,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:v}):o.jsx(o.Fragment,{children:v})}const g=o.jsxs("div",{className:_e.thumbIconWrapper,children:[o.jsx(u.CheckIcon,{className:_e.checkIcon}),o.jsx(u.CloseIcon,{className:_e.closeIcon})]}),P=o.jsx(u.Switch,{ref:s,...b,className:S,classNames:$,styles:C,disabled:n||l,"data-disabled":n||l||void 0,thumbIcon:ce(g,c)});return d?o.jsx(ze,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:P}):P});ct.displayName="Switch";ct.Group=it;const pc="Table-module__root___aMWWS",mc="Table-module__sortIcon___V3-dH",Vo={root:pc,sortIcon:mc};function _c(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 fc(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 ts=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className,l=Vo.root,c=a?`${l} ${a}`:l;return o.jsx(u.Table,{ref:t,...n,className:c})});ts.displayName="Table";const ns=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Table.Thead,{ref:t,...n})});ns.displayName="TableThead";const ss=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Table.Tbody,{ref:t,...n})});ss.displayName="TableTbody";const rs=i.forwardRef(function({overStyled:e=!1,selected:s=!1,disabled:t=!1,...n},a){const l=m(n,e);return o.jsx(u.Table.Tr,{ref:a,...l,"data-selected":s?"true":void 0,"data-disabled":t?"true":void 0})});rs.displayName="TableTr";const as=i.forwardRef(function({overStyled:e=!1,sorted:s=!1,disabled:t=!1,variant:n="default",children:a,...l},c){const d=m(l,e);return o.jsxs(u.Table.Th,{ref:c,...d,"data-sorted":s?"true":void 0,"data-disabled":t?"true":void 0,"data-currency":n==="currency"?"true":void 0,"aria-sort":s==="asc"?"ascending":s==="desc"?"descending":void 0,children:[a,s==="asc"&&o.jsx(_c,{className:Vo.sortIcon}),s==="desc"&&o.jsx(fc,{className:Vo.sortIcon})]})});as.displayName="TableTh";const ls=i.forwardRef(function({overStyled:e=!1,disabled:s=!1,variant:t="default",...n},a){const l=m(n,e);return o.jsx(u.Table.Td,{ref:a,...l,"data-disabled":s?"true":void 0,"data-currency":t==="currency"?"true":void 0})});ls.displayName="TableTd";const is=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Table.Tfoot,{ref:t,...n})});is.displayName="TableTfoot";const cs=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Table.Caption,{ref:t,...n})});cs.displayName="TableCaption";const ds=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Table.ScrollContainer,{ref:t,...n})});ds.displayName="TableScrollContainer";const Fe=ts;Fe.Thead=ns;Fe.Tbody=ss;Fe.Tr=rs;Fe.Th=as;Fe.Td=ls;Fe.Tfoot=is;Fe.Caption=cs;Fe.ScrollContainer=ds;const yc="Tabs-module__root___-VKVI",hc="Tabs-module__list___qRVME",vc="Tabs-module__tab___IdDYc",xc="Tabs-module__panel___08i9c",jo={root:yc,list:hc,tab:vc,panel:xc},us=i.forwardRef(function(e,s){const{variant:t="default",orientation:n="horizontal",overStyled:a=!1,className:l,...c}=e,d=m(c,a),p=d,_=D({list:jo.list,tab:jo.tab,panel:jo.panel},p.classNames);return o.jsx(u.Tabs,{ref:s,...d,variant:t,orientation:n,className:`${jo.root} ${l||""}`,"data-variant":t,"data-orientation":n,classNames:_})});us.displayName="Tabs";const ps=i.forwardRef(function(e,s){const{overStyled:t=!1,...n}=e;return o.jsx(u.Tabs.List,{ref:s,...m(n,t)})});ps.displayName="Tabs.List";const ms=i.forwardRef(function(e,s){const{overStyled:t=!1,...n}=e;return o.jsx(u.Tabs.Tab,{ref:s,...m(n,t)})});ms.displayName="Tabs.Tab";const _s=i.forwardRef(function(e,s){const{overStyled:t=!1,...n}=e;return o.jsx(u.Tabs.Panel,{ref:s,...m(n,t)})});_s.displayName="Tabs.Panel";const bc=Object.assign(us,{List:ps,Tab:ms,Panel:_s}),Nc="Text-module__root___rsBo7",Cc={root:Nc},fs=i.forwardRef(function({overStyled:e=!1,variant:s="body",...t},n){const a=m(t,e),l=a.className,d=[`recursica_brand_typography_${s}`,Cc.root,l].filter(Boolean).join(" ");return o.jsx(u.Text,{ref:n,...a,className:d})});fs.displayName="Text";const Pc=u.createPolymorphicComponent(fs),gc="TextArea-module__layoutOverride___4MCdm",wc="TextArea-module__root___3dyeu",Tc="TextArea-module__input___8l36v",Ro={layoutOverride:gc,root:wc,input:Tc},Sc=["size","variant","radius"],ys=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,...R}=e,M=U(m(R,t),Sc),E=M,A=D({wrapper:Ro.root,input:Ro.input},E.classNames),L=C?`${Ro.layoutOverride} ${C}`:Ro.layoutOverride;return o.jsx(fe,{className:L,style:w,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:t,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Textarea,{ref:s,...M,classNames:A,disabled:S,value:T,defaultValue:v,label:void 0,description:void 0,error:!!h,required:void 0,withAsterisk:void 0})})});ys.displayName="TextArea";const $c="TextField-module__layoutOverride___SNZqc",jc="TextField-module__root___2ZYkG",Rc="TextField-module__input___RL-My",Oc="TextField-module__section___bCIJ0",xo={layoutOverride:$c,root:jc,input:Rc,section:Oc},kc=["size","variant","radius"],dt=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,...R}=e,M=U(m(R,t),kc),E=M,A=D({wrapper:xo.root,input:xo.input,section:xo.section},E.classNames),L=C?`${xo.layoutOverride} ${C}`:xo.layoutOverride;return o.jsx(fe,{className:L,style:w,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:t,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Input,{ref:s,...M,classNames:A,disabled:S,value:T,defaultValue:v,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0}})})});dt.displayName="TextField";const Ic=["size","variant","radius"],hs=i.forwardRef(function(e,s){const{overStyled:t=!1,className:n,disabled:a,error:l,...c}=e,d=U(m(c,t),Ic),p=d,_=D({wrapper:n?`${oe.root} ${n}`:oe.root,input:oe.input,section:oe.section,dropdown:oe.dropdown,option:oe.option},p.classNames);return o.jsx(u.Select,{ref:s,...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}}})});hs.displayName="BareDropdown";const Lc="TimePicker-module__layoutOverride___zKo4Q",Mc="TimePicker-module__root___BcvRu",Ac="TimePicker-module__timeWrapper___hJVre",Wc="TimePicker-module__timeInput___FQysn",zc="TimePicker-module__fieldsGroup___2yHhR",Dc="TimePicker-module__section___VkSWB",Ec="TimePicker-module__timeField___twRZd",Fc="TimePicker-module__amPmSelect___mSdvt",Ae={layoutOverride:Lc,root:Mc,timeWrapper:Ac,timeInput:Wc,fieldsGroup:zc,section:Dc,timeField:Ec,amPmSelect:Fc},Bc=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Ct(r){if(!r)return;const e=parseInt(r.slice(0,2),10);return Number.isNaN(e)?void 0:e}function Uc(r,e){return`${String(e).padStart(2,"0")}${r.slice(2)}`}function Gc(r){if(!r)return;const[e,s,t]=r.split(":"),n=parseInt(e,10);if(Number.isNaN(n)||s===void 0)return r;const a=n>=12,l=n%12===0?12:n%12,c=t!==void 0?`${s}:${t}`:s;return`${l}:${c} ${a?"PM":"AM"}`}function Vc(r,e){var t;const s=(t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value"))==null?void 0:t.set;s==null||s.call(r,e),r.dispatchEvent(new Event("change",{bubbles:!0}))}const Hc=["size","variant","radius"],vs=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,onChange:R,withSeconds:M,minTime:E,maxTime:A,...L}=e,K=U(m(L,t),Hc),H=K,[q,Q]=i.useState(()=>T??v);i.useEffect(()=>{T!==void 0&&Q(T)},[T]);const V=i.useRef(null);i.useEffect(()=>{Ct(T??v)===void 0&&V.current&&Vc(V.current,"AM")},[]);const Y=O=>{Q(O),R==null||R(O)},J=Ct(q),de=J!==void 0&&J>=12,z=O=>{Y(O)},se=O=>{if(J===void 0||!q||!O)return;const ae=O==="PM";if(ae===de)return;const ye=ae?J+12:J-12;Y(Uc(q,ye))},ue=C?`${Ae.layoutOverride} ${C}`:Ae.layoutOverride;return o.jsx(fe,{className:ue,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:Gc(T!==void 0?T:v),readOnlyNativeProps:e,activeComponent:o.jsxs("div",{className:Ae.root,"data-disabled":S?"true":void 0,"data-error":h?"true":void 0,children:[o.jsx(Tt.TimePicker,{ref:s,...K,classNames:D({wrapper:Ae.timeWrapper,input:Ae.timeInput,section:Ae.section,fieldsGroup:Ae.fieldsGroup,field:Ae.timeField},H.classNames),disabled:S,value:q,onChange:z,format:"12h",withSeconds:M,min:E,max:A,withDropdown:!1,amPmRef:V}),o.jsx(hs,{overStyled:!0,className:Ae.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:Bc,value:de?"PM":"AM",onChange:se,disabled:S,error:!!h,"aria-label":"AM or PM"})]})})});vs.displayName="TimePicker";const qc="Timeline-module__root___LwRdZ",Kc="Timeline-module__item___T5xdQ",Yc="Timeline-module__itemBody___XAV-E",Zc="Timeline-module__itemBullet___rPXCy",Qc="Timeline-module__itemTitle___GgRRW",Xc="Timeline-module__itemContent___vurs-",Jc="Timeline-module__description___f9sxV",ed="Timeline-module__timestamp___owiRu",Ze={root:qc,item:Kc,itemBody:Yc,itemBullet:Zc,itemTitle:Qc,itemContent:Xc,description:Jc,timestamp:ed},ut=i.forwardRef(function({overStyled:e=!1,timestamp:s,bulletVariant:t="default",children:n,...a},l){const c=m(a,e),d=c,p=D({item:Ze.item,itemBody:Ze.itemBody,itemContent:Ze.itemContent,itemBullet:Ze.itemBullet,itemTitle:Ze.itemTitle},d.classNames),_=s?o.jsxs(o.Fragment,{children:[n&&o.jsx("div",{className:Ze.description,children:n}),o.jsx("div",{className:Ze.timestamp,children:s})]}):n;return o.jsx(u.TimelineItem,{ref:l,...c,classNames:p,"data-variant":t,children:_})});ut.displayName="TimelineItem";const xs=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n,l=D({root:Ze.root},a.classNames);return o.jsx(u.Timeline,{ref:t,...n,classNames:l})});xs.displayName="Timeline";const bs=xs;bs.Item=ut;const od="Toast-module__root___MUvfI",td="Toast-module__icon___VwvE1",nd="Toast-module__loader___8Gxd-",sd="Toast-module__title___-H6R2",rd="Toast-module__description___-QwfC",ad="Toast-module__closeButton___vGr7g",ld="Toast-module__body___VLkXA",ao={root:od,icon:td,loader:nd,title:sd,description:rd,closeButton:ad,body:ld},Ns=i.forwardRef(function({overStyled:e=!1,variant:s="default",withCloseButton:t=!0,...n},a){const l=["color","radius","loading"],c=U(m(n,e),l),d=D({root:ao.root,body:ao.body,title:ao.title,description:ao.description,closeButton:ao.closeButton,icon:ao.icon,loader:ao.loader},c.classNames);return o.jsx(u.Notification,{ref:a,...c,withCloseButton:t,withBorder:!1,"data-variant":s,classNames:d,loading:!1})});Ns.displayName="Toast";const id="Tooltip-module__tooltip___UA7H9",cd="Tooltip-module__arrow___4zROk",Pt={tooltip:id,arrow:cd},Cs=function({overStyled:e=!1,withBeak:s=!0,position:t="top",arrowSize:n=16,...a}){const l=m(a,e),c=l,d=D({tooltip:Pt.tooltip,arrow:Pt.arrow},c.classNames),p=c.withArrow,_=s??p;return o.jsx(u.Tooltip,{...l,position:t,arrowSize:n,withArrow:_,multiline:!0,classNames:d})};Cs.displayName="Tooltip";const Ps=i.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e);return o.jsx(u.Tooltip.Floating,{ref:t,...n})});Ps.displayName="TooltipFloating";const pt=Cs;pt.Floating=Ps;pt.Group=u.Tooltip.Group;const dd="TransferList-module__layoutOverride___nkb32",ud="TransferList-module__root___ikjI7",pd="TransferList-module__panes___dtwkW",md="TransferList-module__pane___hy-kC",_d="TransferList-module__paneHeader___HZrKX",fd="TransferList-module__paneSearch___Xji-g",yd="TransferList-module__paneList___v0rcJ",hd="TransferList-module__emptyState___azPw-",vd="TransferList-module__transferColumn___3R2Ki",xd="TransferList-module__chevron___l-KdI",be={layoutOverride:dd,root:ud,panes:pd,pane:md,paneHeader:_d,paneSearch:fd,paneList:yd,emptyState:hd,transferColumn:vd,chevron:xd};function gt({direction:r}){return o.jsx("svg",{className:be.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:be.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 bd(r){const e={},s=[];return r.forEach(t=>{var n;t.group?(e[n=t.group]??(e[n]=[])).push(t):s.push(t)}),{groups:e,ungrouped:s}}const gs=i.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,description:h,helperText:b,assistiveWithIcon:x,error:$,required:C,id:w,readOnly:S,readOnlyComponent:g,emptyValueComponent:P,data:y,defaultData:T,onChange:v,sourceLabel:R="Available",targetLabel:M="Selected",searchable:E=!0,searchPlaceholder:A="Filter items...",disabled:L=!1,className:K,style:H,...q}=e,Q=m(q,t),V=i.useId(),Y=w||`recursica-transfer-list-${V}`,[J,de]=i.useState(()=>T??y??[[],[]]),z=y!==void 0?y:J,se=i.useCallback(G=>{y===void 0&&de(G),v==null||v(G)},[y,v]),[ue,O]=i.useState(""),[ae,ye]=i.useState(""),[re,le]=i.useState(()=>new Set),[he,Ne]=i.useState(()=>new Set),Be=i.useMemo(()=>{if(!ue)return z[0];const G=ue.toLowerCase();return z[0].filter(F=>F.label.toLowerCase().includes(G))},[z,ue]),Ce=i.useMemo(()=>{if(!ae)return z[1];const G=ae.toLowerCase();return z[1].filter(F=>F.label.toLowerCase().includes(G))},[z,ae]),Ue=i.useCallback(()=>{if(re.size===0)return;const G=z[0].filter(W=>!re.has(W.value)),F=z[0].filter(W=>re.has(W.value));le(new Set),se([G,[...z[1],...F]])},[z,re,se]),Ie=i.useCallback(()=>{if(he.size===0)return;const G=z[1].filter(W=>!he.has(W.value)),F=z[1].filter(W=>he.has(W.value));Ne(new Set),se([[...z[0],...F],G])},[z,he,se]),Le=i.useCallback(()=>{z[0].length!==0&&(le(new Set),se([[],[...z[1],...z[0]]]))},[z,se]),to=i.useCallback(()=>{z[1].length!==0&&(Ne(new Set),se([[...z[0],...z[1]],[]]))},[z,se]),Pe=i.useCallback(G=>{le(F=>{const W=new Set(F);return W.has(G)?W.delete(G):W.add(G),W})},[]),Ge=i.useCallback(G=>{Ne(F=>{const W=new Set(F);return W.has(G)?W.delete(G):W.add(G),W})},[]),ge=(G,F,W,k,B,Z,pe,He)=>{const{groups:no,ungrouped:j}=bd(W),te=Object.keys(no).sort(),ne=B.size>0?`${B.size} / ${k.length}`:`${k.length}`;return o.jsxs("div",{className:be.pane,"data-pane":G,children:[o.jsxs("div",{className:be.paneHeader,children:[o.jsx("span",{children:F}),o.jsx(At,{children:ne})]}),E&&o.jsx("div",{className:be.paneSearch,children:o.jsx(dt,{value:pe,onChange:X=>He(X.currentTarget.value),placeholder:A,disabled:L,"aria-label":`Filter ${F.toLowerCase()}`})}),o.jsxs("div",{className:be.paneList,children:[W.length===0&&o.jsx("div",{className:be.emptyState,children:"No items"}),j.length>0&&o.jsx(No,{children:j.map(X=>o.jsx(Co,{id:`${Y}-${G}-${X.value}`,label:X.label,checked:B.has(X.value),onChange:()=>Z(X.value),disabled:L},X.value))}),te.map(X=>o.jsx(No,{label:X,labelSize:"small",children:no[X].map(me=>o.jsx(Co,{id:`${Y}-${G}-${me.value}`,label:me.label,checked:B.has(me.value),onChange:()=>Z(me.value),disabled:L},me.value))},X))]})]})},Ve=K?`${be.layoutOverride} ${K}`:be.layoutOverride;return o.jsx(fe,{ref:s,formLayout:n,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,description:h,helperText:b,assistiveWithIcon:x,error:$,required:C,id:Y,className:Ve,style:H,overStyled:t,readOnly:S,readOnlyComponent:g,emptyValueComponent:P,readOnlyType:"text",readOnlyValue:z[1].map(G=>G.label),readOnlyNativeProps:e,activeComponent:o.jsx("div",{...Q,className:be.root,"data-disabled":L?"true":void 0,"data-error":$?"true":void 0,children:o.jsxs("div",{className:be.panes,children:[ge("source",R,Be,z[0],re,Pe,ue,O),o.jsxs("div",{className:be.transferColumn,children:[o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"right"}),"aria-label":`Move all to ${M}`,disabled:L||z[0].length===0,onClick:Le}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(gt,{direction:"right"}),"aria-label":`Move selected to ${M}`,disabled:L||re.size===0,onClick:Ue}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(gt,{direction:"left"}),"aria-label":`Move selected to ${R}`,disabled:L||he.size===0,onClick:Ie}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"left"}),"aria-label":`Move all to ${R}`,disabled:L||z[1].length===0,onClick:to})]}),ge("target",M,Ce,z[1],he,Ge,ae,ye)]})})})});gs.displayName="TransferList";const Nd="Tree-module__root___ANcH3",Cd="Tree-module__subtree___KoLT8",Pd="Tree-module__node___Hvnjg",gd="Tree-module__row___sq5ff",wd="Tree-module__label___zJDit",Td="Tree-module__expandButton___W0WTT",Sd="Tree-module__expandGlyph___w8dDQ",eo={root:Nd,subtree:Cd,node:Pd,row:gd,label:wd,expandButton:Td,expandGlyph:Sd};function $d(){return o.jsx("svg",{className:eo.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 jd(r){return function({node:s,hasChildren:t,expanded:n,selected:a,tree:l,elementProps:c}){return o.jsxs("div",{...c,className:eo.row,"data-has-children":t||void 0,"data-expanded":t&&n?!0:void 0,children:[o.jsx(Je,{overStyled:!0,variant:"text",size:"small",icon:o.jsx($d,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:eo.expandButton,onMouseDown:d=>d.preventDefault(),onClick:d=>{d.stopPropagation(),!r&&l.toggleExpanded(s.value)}}),o.jsx("span",{className:eo.label,"data-selected":a||void 0,children:s.label})]})}}const ws=i.forwardRef(function({overStyled:e=!1,data:s,initialExpandedValues:t,initialSelectedValues:n,multiple:a=!1,disabled:l=!1,onNodeExpand:c,onNodeCollapse:d,onSelectedChange:p,..._},f){const N=m(_,e),h=u.useTree({initialExpandedState:t?u.getTreeExpandedState(s,t):void 0,initialSelectedState:n,multiple:a,onNodeExpand:c,onNodeCollapse:d});i.useEffect(()=>{p==null||p(h.selectedState)},[h.selectedState,p]);const b=i.useRef(null);i.useEffect(()=>{const S=b.current;if(!S)return;const g=P=>{if(l||P.key!=="Enter"&&P.key!==" ")return;const y=P.target.closest('[role="treeitem"]'),T=y==null?void 0:y.dataset.value;T&&(P.preventDefault(),h.select(T))};return S.addEventListener("keydown",g),()=>S.removeEventListener("keydown",g)},[h.select,l]),i.useEffect(()=>{const S=b.current;if(!S||!l)return;const g=P=>{P.preventDefault(),P.stopPropagation()};return S.addEventListener("keydown",g,{capture:!0}),()=>S.removeEventListener("keydown",g,{capture:!0})},[l]);const x=Ss.useMergedRef(f,b),$=N,C=$.className,w=C?`${eo.root} ${C}`:eo.root;return o.jsx(u.Tree,{ref:x,...N,data:s,tree:h,expandOnClick:!1,selectOnClick:!l,expandOnSpace:!1,renderNode:jd(l),"data-disabled":l||void 0,classNames:D({root:w,node:eo.node,subtree:eo.subtree},$.classNames)})});ws.displayName="Tree";const Rd=el,Od=on,kd=en,Id=tn,Ld=Di,Md=Ht,Ad=pl,Wd=Pc,zd=I(Wo),Dd=I(Qo),Ed=I(Mo),Fd=I(Ao),Bd=I(Io),Ud=I(It),Gd=I($r),Vd=I(At),Hd=I(Wt),qd=I(Je),Kd=I(Hr),Yd=I(Co),Zd=I(No),Qd=I(Po),Xd=I(qt),Jd=I(Kt),eu=I(Yt),ou=I(Zt),tu=I(ze),nu=I(nn),su=I(ot),ru=I(et),au=I(Xo),lu=I(lo),iu=I(Ee),cu=I(Tn),du=I(Oe),uu=I(ke),pu=I(st),mu=I(rt),_u=I(lt),fu=I(at),yu=I(Jo),hu=I(bi),vu=I(Xn),xu=I(oc),bu=I(ct),Nu=I(it),Cu=I(Fe),Pu=I(bc),gu=I(ys),wu=I(dt),Tu=I(vs),Su=I(bs),$u=I(ut),ju=I(Ns),Ru=I(pt),Ou=I(gs),ku=I(ws);exports.Accordion=zd;exports.AccordionControl=Ed;exports.AccordionItem=Dd;exports.AccordionPanel=Fd;exports.AssistiveElement=Bd;exports.AutoComplete=Ud;exports.Avatar=Gd;exports.Badge=Vd;exports.Breadcrumb=Hd;exports.Button=qd;exports.Card=Kd;exports.Checkbox=Yd;exports.CheckboxGroup=Zd;exports.Chip=Qd;exports.Container=Md;exports.DatePicker=Xd;exports.Dropdown=Jd;exports.EmptyValueRenderer=bo;exports.FileInput=eu;exports.FileUpload=ou;exports.Flex=Rd;exports.FormControlLayout=tu;exports.Grid=Od;exports.GridCol=kd;exports.Group=Id;exports.Heading=nu;exports.HoverCard=su;exports.IS_DEV=oo;exports.Label=au;exports.Layer=Ho;exports.Link=Ad;exports.Loader=ru;exports.Menu=lu;exports.Modal=iu;exports.NumberInput=cu;exports.Pagination=du;exports.Panel=uu;exports.PanelFooter=pu;exports.Popover=mu;exports.RECURSICA_COMPONENTS=Is;exports.Radio=_u;exports.RadioGroup=fu;exports.ReadOnlyField=yu;exports.RecursicaThemeProvider=ks;exports.SegmentedControl=hu;exports.Slider=vu;exports.Stack=Ld;exports.Stepper=xu;exports.Switch=bu;exports.SwitchGroup=Nu;exports.Table=Cu;exports.Tabs=Pu;exports.Text=Wd;exports.TextArea=gu;exports.TextField=wu;exports.TimePicker=Tu;exports.Timeline=Su;exports.TimelineItem=$u;exports.Toast=ju;exports.Tooltip=Ru;exports.TransferList=Ou;exports.Tree=ku;exports.copyToClipboard=Ls;exports.fileMatchesAccept=Yo;exports.injectOverStyledStyles=qo;exports.isGlobalOverStyledActive=Os;exports.mergeClassNames=D;exports.mergeStyles=jt;exports.normalizeComboboxData=Zo;exports.omitUnsupportedProps=U;exports.registerOverStyledConsoleCommand=Ko;exports.toggleGlobalOverStyled=St;exports.useGlobalOverStyled=$t;exports.withCallerOverride=ce;exports.wrapComponent=I;
|
|
11
|
+
`,document.head.appendChild(e))}function Ko(){if(!ze)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: ${St()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};r(window),window.parent&&window.parent!==window&&r(window.parent)}const ht="data-recursica-theme";function Is({children:r,theme:e="light",initLayer0:n=!0}){return i.useEffect(()=>{const t=document.documentElement;return t.setAttribute(ht,e),()=>{t.removeAttribute(ht)}},[e]),i.useEffect(()=>{qo(),Ko()},[]),n?o.jsx(Ho,{layer:0,children:r}):o.jsx(o.Fragment,{children:r})}const Ls=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Box","Breadcrumb","Button","Card","Checkbox","CheckboxGroup","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","FileInput","FileUpload","Flex","FormControlLayout","FormControlWrapper","Grid","Group","Heading","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","Toast","Tooltip","TransferList","Tree","Typography"],Ms=(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 D(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 jt(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 Zo(r){return r==null?void 0:r.map(e=>typeof e=="string"?e:{...e,label:e.label??e.value})}function U(r,e){const n={...r};for(const t of e)t in n&&delete n[t];return n}function ce(r,e){return e!==void 0?e:r}const As=Symbol.for("react.forward_ref"),Ws=Symbol.for("react.memo");function Rt(r){return r?r.prototype&&r.prototype.isReactComponent||r.$$typeof===As?!0:r.$$typeof===Ws?Rt(r.type):!1:!1}function I(r){if(!ze||typeof r!="function"&&!(r&&r.$$typeof))return r;const e=Rt(r),n=r.displayName||r.name||"Component",t=i.forwardRef((a,l)=>{const{overStyled:c}=a,d=$t();ze&&l&&!e&&console.warn(`[wrapComponent] "${n}" does not support refs (not a class component or forwardRef) — the ref passed to it was dropped instead of forcing React's "function components cannot be given refs" warning.`);const p=e?{...a,ref:l}:a,_=i.createElement(r,p);return c&&d?o.jsx("div",{className:"recursica-over-styled",children:_}):_});t.displayName=r.displayName||r.name||"Component";const s=Object.keys(r);for(const a of s){if(a==="render"||a==="$$typeof")continue;const l=r[a];(typeof l=="function"||l&&l.$$typeof)&&a[0]===a[0].toUpperCase()?t[a]=I(l):t[a]=l}return t}const zs=["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"],Ot=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","gutter","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 go(r){const e={...r};for(const[n,t]of Object.entries(e))typeof t=="string"&&t.startsWith("rec-")&&Ot.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 zs)t in n&&delete n[t];for(const[t,s]of Object.entries(n))typeof s=="string"&&s.startsWith("rec-")&&Ot.has(t)&&s in ko&&(n[t]=ko[s]);return n}const Ds="Accordion-module__root___Dem6d",Es="Accordion-module__item___7ryVk",Fs="Accordion-module__noDivider___Ni2tT",Bs="Accordion-module__control___b4wgX",Us="Accordion-module__label___Ss7uW",Gs="Accordion-module__icon___xfHxX",Vs="Accordion-module__chevron___i-HVZ",Hs="Accordion-module__iconLeftWrapper___5oLen",qs="Accordion-module__panel___Wx50w",Ks="Accordion-module__content___PEM9t",$e={root:Ds,item:Es,noDivider:Fs,control:Bs,label:Us,icon:Gs,chevron:Vs,iconLeftWrapper:Hs,panel:qs,content:Ks},vt={default:"unstyled"},kt=function({variant:e="default",overStyled:n=!1,...t}){const s=typeof e=="string"&&vt[e]?vt[e]:e,a=m(t,n),l=a,c=D({root:$e.root,item:$e.item,control:$e.control,label:$e.label,chevron:$e.chevron,icon:$e.icon,panel:$e.panel,content:$e.content},l.classNames),d=l.className;return o.jsx(u.Accordion,{...a,variant:s,className:d,classNames:c})};kt.displayName="Accordion";const Qo=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:$e.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})});Qo.displayName="AccordionItem";const Ys=["icon"],Mo=i.forwardRef(function({leftIcon:e,children:n,overStyled:t=!1,...s},a){const l=U(m(s,t),Ys),c=l.className;return o.jsx(u.Accordion.Control,{ref:a,...l,className:c,icon:e?o.jsx("span",{className:$e.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 Wo=kt;Wo.Item=Qo;Wo.Control=Mo;Wo.Panel=Ao;const Zs="AssistiveElement-module__root___WhQ43",Qs="AssistiveElement-module__textWrapper___sfy5E",Xs="AssistiveElement-module__iconWrapper___gObRF",Bo={root:Zs,textWrapper:Qs,iconWrapper:Xs},Js=()=>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"})]}),er=()=>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,N=s?`${f} ${s}`:f,h=e==="error"?er:Js,b=a??(e==="error"?"alert":void 0);return o.jsxs("div",{ref:d,..._,className:N,"data-variant":e,role:b,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 or="Label-module__root___e6HXZ",tr="Label-module__labelText___rieFR",nr="Label-module__required___Ggrzc",sr="Label-module__optionalText___Y2yun",rr="Label-module__actionAreaWrapper___ELoZK",ar="Label-module__editIconWrapper___NG2xW",Ke={root:or,labelText:tr,required:nr,optionalText:sr,actionAreaWrapper:rr,editIconWrapper:ar},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 N=n||"left";let h;t||(s===!0?h="optional":s&&(h=s));const b=["size"],x=U(m(_,p),b),$=x,C=D({label:Ke.root,required:Ke.required},$.classNames),w=$.className,S=w?`${Ke.root} ${w}`:Ke.root;return o.jsxs(u.Input.Label,{ref:f,...x,className:S,classNames:C,"data-size":e,"data-alignment":N,required:t&&!a,children:[o.jsx("span",{className:Ke.labelText,children:d}),h&&o.jsx("span",{className:Ke.optionalText,children:typeof h=="string"?`(${h})`:h}),l?o.jsx("span",{className:Ke.actionAreaWrapper,children:l}):a?o.jsx("button",{type:"button",className:Ke.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 lr="FormControlLayout-module__root___yNDhZ",ir="FormControlLayout-module__leftSection___GBM1r",cr="FormControlLayout-module__rightSection___bcL4v",So={root:lr,leftSection:ir,rightSection:cr},De=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})]})});De.displayName="FormControlLayout";const dr="FormControlWrapper-module__root___c-UHo",ur="FormControlWrapper-module__inputSection___HenXk",xt={root:dr,inputSection:ur},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:N,controlMinWidth:h,error:b,required:x,withAsterisk:$,id:C,children:w,className:S,overStyled:g=!1,labelElement:P,...y},T){const v=i.useId(),R=C||`recursica-fc-${v}`,M=`${R}-label`,E=_||p,A=E?`${R}-assistive`:void 0,L=b?`${R}-error`:void 0,H=m(y,g),q=S||H.className,Q=xt.root,V=q?`${Q} ${q}`:Q,Y=i.isValidElement(w)?i.cloneElement(w,{...w.props.id?{}:{id:R},"aria-labelledby":M,...E&&!w.props["aria-describedby"]?{"aria-describedby":A}:{},...b&&!w.props["aria-errormessage"]?{"aria-errormessage":L}:{}}):w,J=d?o.jsx(Xo,{id:M,htmlFor:R,labelAlignment:t,labelOptionalText:s,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:c,required:$??x,...P==="div"?{as:"div"}:{},children:d}):void 0;return o.jsx(De,{ref:T,className:V,formLayout:e,labelSize:n,controlMaxWidth:N,controlMinWidth:h,leftSection:J,...H,children:o.jsxs("div",{className:xt.inputSection,children:[Y,b&&o.jsx(Io,{id:L,assistiveVariant:"error",assistiveWithIcon:f,children:b}),!b&&E&&o.jsx(Io,{id:A,assistiveVariant:"help",assistiveWithIcon:f,children:E})]})})});uo.displayName="FormControlWrapper";const pr="ReadOnlyField-module__layoutOverride___9fSsG",mr="ReadOnlyField-module__textField___qKn25",Lo={layoutOverride:pr,textField:mr},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 b=a?`${Lo.layoutOverride} ${a}`:Lo.layoutOverride;return o.jsx(uo,{ref:d,..._,overStyled:s,className:b,style:l,children:p})});Jo.displayName="ReadOnlyField";const fe=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 N=n;return o.jsx(uo,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:o.jsx(N,{...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})});fe.displayName="WithReadOnlyWrapper";function It({option:r},e,n=!1){const{label:t,leadingIcon:s,supportingText:a}=r,l=t??r.value;if(!s&&!a)return l;const c=n?`${e.optionText} ${e.optionTextWrap}`:e.optionText;return o.jsxs("span",{className:e.optionContent,children:[s&&o.jsx("span",{className:e.optionIcon,children:s}),o.jsxs("span",{className:c,children:[o.jsx("span",{children:l}),a&&o.jsx("span",{className:e.optionSupportingText,children:a})]})]})}const _r="AutoComplete-module__layoutOverride___-K9WL",fr="AutoComplete-module__root___kANza",yr="AutoComplete-module__input___g51MC",hr="AutoComplete-module__section___WAbf1",vr="AutoComplete-module__dropdown___NqO3E",xr="AutoComplete-module__option___Y-Kja",br="AutoComplete-module__optionContent___UAkUA",Nr="AutoComplete-module__optionIcon___tbbmW",Cr="AutoComplete-module__optionText___aQwHF",Pr="AutoComplete-module__optionTextWrap___RFICS",gr="AutoComplete-module__optionSupportingText___OoA1N",ve={layoutOverride:_r,root:fr,input:yr,section:hr,dropdown:vr,option:xr,optionContent:br,optionIcon:Nr,optionText:Cr,optionTextWrap:Pr,optionSupportingText:gr},wr=["size","variant","radius"],Lt=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:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,data:R,renderOption:M,wrapItemText:E=!1,...A}=e,L=U(m(A,t),wr),K=L,H=Zo(R),q=D({wrapper:ve.root,input:ve.input,section:ve.section,dropdown:ve.dropdown,option:ve.option},K.classNames),Q={optionContent:ve.optionContent,optionIcon:ve.optionIcon,optionText:ve.optionText,optionTextWrap:ve.optionTextWrap,optionSupportingText:ve.optionSupportingText},V=C?`${ve.layoutOverride} ${C}`:ve.layoutOverride;return o.jsx(fe,{className:V,style:w,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:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Autocomplete,{ref:n,...L,classNames:q,disabled:S,value:T,defaultValue:v,error:!!h,data:H,renderOption:M??(Y=>It(Y,Q,E))})})});Lt.displayName="AutoComplete";const Tr="Avatar-module__root___fXu-J",Sr="Avatar-module__iconWrapper___ojly2",$r="Avatar-module__textWrapper___zp-jD",jr="Avatar-module__image___ieqGp",Rr="Avatar-module__placeholder___IDW7-",po={root:Tr,iconWrapper:Sr,textWrapper:$r,image:jr,placeholder:Rr},Mt=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"],N=U(m(c,l),f),h=N;let b="text";a?b="image":t&&(b="icon");const x=D({root:po.root,image:po.image,placeholder:po.placeholder},h.classNames),$=h.className;return o.jsx(u.Avatar,{ref:d,...N,className:$,classNames:x,variant:p[n],size:_[e],src:a,"data-variant":n,"data-size":e,"data-style":b,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})});Mt.displayName="Avatar";const Or=u.createPolymorphicComponent(Mt),kr="Badge-module__root___5osNT",mo={root:kr},At=i.forwardRef(function({variant:e="primary-color",overStyled:n=!1,...t},s){const a=m(t,n),l=D({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})});At.displayName="Badge";const Wt=u.createPolymorphicComponent(At),Ir="Breadcrumb-module__root___x-9ln",Lr="Breadcrumb-module__separator___qrUX-",$o={root:Ir,separator:Lr},zt=i.forwardRef(function({overStyled:e=!1,separator:n=">",...t},s){const a=m({separator:n,...t},e),l=D({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})});zt.displayName="Breadcrumb";const Mr="Loader-module__root___6iYOP",Uo={root:Mr},et=i.forwardRef(function({variant:e="oval",size:n="default",animate:t=!0,overStyled:s=!1,...a},l){const d={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",p=m(a,s),_=p,f=D({root:Uo.root},_.classNames),N=_.className,h=N?`${Uo.root} ${N}`:Uo.root;return o.jsx(u.Loader,{ref:l,...p,type:e,"data-variant":e,"data-size":d,"data-animate":t,className:h,classNames:f})});et.displayName="Loader";const Ar="Button-module__root___Q2R8-",Wr="Button-module__loader___X-9u-",zr="Button-module__label___UJ3Zt",Dr="Button-module__labelText___rFV5p",Er="Button-module__iconWrapper___uEKPa",Fr="Button-module__section___f2mKr",Ye={root:Ar,loader:Wr,label:zr,labelText:Dr,iconWrapper:Er,section:Fr};function Br(r){return r==null||r===""?!1:typeof r=="string"?r.trim()!=="":!0}const Dt=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"},N={default:"md",small:"sm"},h=["fullWidth"],b=U(m(p,a),h),x=b,$=!!t||!!x.leftSection,C=!!x.rightSection,w=Br(s),S=($||C)&&!w;let g="label";S?g="icon-only":($||C)&&(g="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&S&&!x["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const P=D({root:Ye.root,section:Ye.section,label:Ye.label,loader:Ye.loader},x.classNames),y=x.className,T=y?`${Ye.root} ${y}`:Ye.root,v=x.loaderProps,R=ce(n==="small"?"small":"default",c);let M=v;return d&&(M={children:o.jsx(et,{variant:l,size:R}),...v}),o.jsx(u.Button,{ref:_,...b,className:T,classNames:P,variant:f[e],size:N[n],loaderProps:M,leftSection:t!=null?o.jsx("span",{className:Ye.iconWrapper,"aria-hidden":!0,children:t}):void 0,"data-variant":e,"data-size":n,"data-content":g,disabled:!!x.disabled||!!x.loading,children:o.jsx("span",{className:Ye.labelText,children:s})})});Dt.displayName="Button";const eo=u.createPolymorphicComponent(Dt),Ur="Card-module__root___c9KvZ",Gr="Card-module__header___PTXf2",Vr="Card-module__footer___Mu-JC",Hr="Card-module__section___BRT8H",qr="Card-module__content___oFIQa",Ee={root:Ur,header:Gr,footer:Vr,section:Hr,content:qr},Kr=["radius","withBorder","padding"],Et=i.forwardRef(function({overStyled:e=!1,...n},t){const s=U(m(n,e),Kr);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in n&&!(d in s)&&(s[d]=n[d])});const l=D({root:Ee.root},s.classNames),c=s.className;return o.jsx(u.Card,{ref:t,...s,className:c,classNames:l})});Et.displayName="Card";const Ft=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?`${Ee.section} ${a}`:Ee.section})});Ft.displayName="CardSection";const Bt=["withBorder","inheritPadding"],Ut=i.forwardRef(function({overStyled:e=!1,...n},t){const s=U(m(n,e),Bt),a=s.className;return o.jsx(u.Card.Section,{ref:t,...s,className:a?`${Ee.header} ${a}`:Ee.header})});Ut.displayName="CardHeader";const Gt=i.forwardRef(function({overStyled:e=!1,...n},t){const s=U(m(n,e),Bt),a=s.className;return o.jsx(u.Card.Section,{ref:t,...s,className:a?`${Ee.footer} ${a}`:Ee.footer})});Gt.displayName="CardFooter";const Vt=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?`${Ee.content} ${a}`:Ee.content})});Vt.displayName="CardContent";const Ht=u.createPolymorphicComponent(Et),zo=Ht;zo.Section=Ft;zo.Header=Ut;zo.Footer=Gt;zo.Content=Vt;const Yr=Ht,Zr="Checkbox-module__groupRoot___cBS0o",Qr="Checkbox-module__root___mY3qk",Xr="Checkbox-module__body___5yC7q",Jr="Checkbox-module__inner___rTke4",ea="Checkbox-module__input___2kt-h",oa="Checkbox-module__icon___-O7i6",ta="Checkbox-module__labelWrapper___GpZkr",na="Checkbox-module__label___cwRtI",Te={groupRoot:Zr,root:Qr,body:Xr,inner:Jr,input:ea,icon:oa,labelWrapper:ta,label:na},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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,children:g,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:R,...M}=e,E=["size"],A=U(m(M,t),E),L=A,K=v!==void 0||R!==void 0;return o.jsx(fe,{className:w,style:S,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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:R,readOnlyNativeProps:e,activeComponent:K?o.jsx(u.Checkbox.Group,{ref:n,...A,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:Te.groupRoot,"data-layout":s,children:g})}):o.jsx("div",{ref:n,...A,role:"group",className:Te.groupRoot,"data-layout":s,children:g})})});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,N=["size","color","radius","variant","iconColor"],h=U(m(f,t),N),b=h,x=D({root:Te.root,body:Te.body,inner:Te.inner,input:Te.input,icon:Te.icon,labelWrapper:Te.labelWrapper,label:Te.label},b.classNames),$=b.className,C=$?`${Te.root} ${$}`:Te.root;if(s&&a){const S=!!(b.checked??b.defaultChecked),g=a,P=o.jsx(g,{...e,checked:S,label:b.label});return c?o.jsx(De,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:P}):o.jsx(o.Fragment,{children:P})}const w=o.jsx(u.Checkbox,{ref:n,...h,className:C,classNames:x,disabled:s||l});return c?o.jsx(De,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:w}):w});Co.displayName="Checkbox";Co.Group=No;const sa="Chip-module__root___f5pFk",ra="Chip-module__label___Ov9pg",aa="Chip-module__mantineIconWrapper___KLSz6",la="Chip-module__innerWrapper___EnrTF",ia="Chip-module__children___zbRAR",ca="Chip-module__leadingIcon___JBtjQ",da="Chip-module__deleteIcon___zPPsH",we={root:sa,label:ra,mantineIconWrapper:aa,innerWrapper:la,children:ia,leadingIcon:ca,deleteIcon:da};function ua(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,checked:d,overStyled:p=!1,wrapperProps:_,tabIndex:f,"aria-hidden":N,...h},b){const x=m(h,p),$=x,C=D({root:we.root,label:we.label,input:we.input,iconWrapper:we.mantineIconWrapper,checkIcon:we.checkIcon},$.classNames),w=$.className,S=w?`${we.root} ${w}`:we.root,g=e?"":void 0,P=!c&&(!!n||!!t),y=t!==void 0||$.onClick!==void 0||$.onChange!==void 0,T={...g!==void 0?{"data-error":""}:{},...y?{"data-interactive":""}:{}};return o.jsx(u.Chip,{ref:b,...x,checked:d,className:S,classNames:C,wrapperProps:ce(T,_),"data-icon-only":P?"":void 0,tabIndex:ce(y?void 0:-1,f),"aria-hidden":ce(y?void 0:!0,N),children:o.jsxs("span",{className:we.innerWrapper,children:[n&&!d&&o.jsx("span",{className:we.leadingIcon,"aria-hidden":!0,children:n}),o.jsx("span",{className:we.children,children:c}),t&&o.jsx("span",{ref:l,role:"button",className:we.deleteIcon,onClick:v=>{v.preventDefault(),v.stopPropagation(),t(v)},"aria-label":s,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation(),t(v))},tabIndex:a??0,children:o.jsx(ua,{})})]})})});Po.displayName="Chip";const pa="Container-module__root___UVssr",_o={root:pa},qt=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})});qt.displayName="Container";function ma(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 _a="DatePicker-module__layoutOverride___X9yaM",fa="DatePicker-module__root___6XvRT",ya="DatePicker-module__input___pcSW8",ha="DatePicker-module__section___n3iWA",va="DatePicker-module__dropdown___wjt08",xa="DatePicker-module__calendarHeader___KHxno",ba="DatePicker-module__calendarHeaderControl___q7UvJ",Na="DatePicker-module__calendarHeaderLevel___ebdJ2",Ca="DatePicker-module__calendarHeaderControlIcon___2tZOb",Pa="DatePicker-module__weekday___H5lIj",ga="DatePicker-module__day___U03J2",xe={layoutOverride:_a,root:fa,input:ya,section:ha,dropdown:va,calendarHeader:xa,calendarHeaderControl:ba,calendarHeaderLevel:Na,calendarHeaderControlIcon:Ca,weekday:Pa,day:ga},wa=["size","variant","radius","description"],Kt=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:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,highlightToday:R=!0,valueFormat:M="MM/DD/YY",placeholder:E="MM / DD / YY",leftSection:A,...L}=e,K=U(m(L,t),wa),H=K,q=D({wrapper:xe.root,input:xe.input,section:xe.section,day:xe.day,weekday:xe.weekday,calendarHeader:xe.calendarHeader,calendarHeaderControl:xe.calendarHeaderControl,calendarHeaderLevel:xe.calendarHeaderLevel,calendarHeaderControlIcon:xe.calendarHeaderControlIcon},H.classNames),Q=H.popoverProps,V=Q&&typeof Q=="object"&&!Array.isArray(Q)?Q:void 0,Y=V!=null&&V.classNames&&typeof V.classNames=="object"&&!Array.isArray(V.classNames)?V.classNames:void 0;delete H.popoverProps;const J={...V,classNames:D({dropdown:xe.dropdown},Y)},de=C?`${xe.layoutOverride} ${C}`:xe.layoutOverride;return o.jsx(fe,{className:de,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?String(T):v?String(v):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(Tt.DatePickerInput,{ref:n,...K,classNames:q,disabled:S,value:T,defaultValue:v,label:void 0,description:void 0,error:void 0,withAsterisk:!1,highlightToday:R,valueFormat:M,placeholder:E,leftSection:ce(o.jsx(ma,{}),A),wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0},popoverProps:J})})});Kt.displayName="DatePicker";const Ta="Dropdown-module__layoutOverride___FNcvP",Sa="Dropdown-module__root___uVyL0",$a="Dropdown-module__input___dK4dN",ja="Dropdown-module__section___j3MRB",Ra="Dropdown-module__clearButton___ODnIa",Oa="Dropdown-module__dropdown___gG-Sw",ka="Dropdown-module__option___nAGU-",Ia="Dropdown-module__optionContent___QTwwg",La="Dropdown-module__optionIcon___2L56h",Ma="Dropdown-module__optionText___cCDpI",Aa="Dropdown-module__optionTextWrap___L4OPI",Wa="Dropdown-module__optionSupportingText___2JIOV",oe={layoutOverride:Ta,root:Sa,input:$a,section:ja,clearButton:Ra,dropdown:Oa,option:ka,optionContent:Ia,optionIcon:La,optionText:Ma,optionTextWrap:Aa,optionSupportingText:Wa},za=["size","variant","radius","searchable"],Yt=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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,disabled:g,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:R,data:M,clearButtonProps:E,renderOption:A,wrapItemText:L=!1,...K}=e,H=U(m(K,t),za),q=H,Q=Zo(M),V=E,Y={...V,className:V!=null&&V.className?`${oe.clearButton} ${V.className}`:oe.clearButton},J=D({wrapper:oe.root,input:oe.input,section:oe.section,dropdown:oe.dropdown,option:oe.option},q.classNames),de={optionContent:oe.optionContent,optionIcon:oe.optionIcon,optionText:oe.optionText,optionTextWrap:oe.optionTextWrap,optionSupportingText:oe.optionSupportingText},z={...S||{},width:a||"100%"},se=w?`${oe.layoutOverride} ${w}`:oe.layoutOverride;return o.jsx(fe,{className:se,style:z,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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?String(v):R?String(R):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(u.Select,{ref:n,...H,classNames:J,disabled:g,value:v,defaultValue:R,data:Q||[],renderOption:A??(ue=>It(ue,de,L)),clearButtonProps:Y,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":b?"true":void 0}}})})});Yt.displayName="Dropdown";const Da="FileInput-module__layoutOverride___HIOY6",Ea="FileInput-module__root___UvQj-",Fa="FileInput-module__leadingIcon___z75c4",Ba="FileInput-module__content___Udsvh",Ua="FileInput-module__value___RX33R",Ga="FileInput-module__chipRow___My6TF",Va="FileInput-module__chipWrapper___q2CDy",Ha="FileInput-module__trailingIcon___odGPm",Me={layoutOverride:Da,root:Ea,leadingIcon:Fa,content:Ba,value:Ua,chipRow:Ga,chipWrapper:Va,trailingIcon:Ha};function qa(){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 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("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Zt=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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,disabled:g,readOnly:P,files:y,onFilesAdded:T,onFileRemove:v,accept:R,multiple:M=!1,maxSize:E,maxFiles:A,onFilesRejected:L,invalidFileTypeMessage:K="File type not accepted",maxFilesMessage:H=M?`Maximum of ${A} files allowed`:"Only one file is allowed",icon:q,clearIcon:Q,placeholder:V="Select a file...",browseLabel:Y="Choose file",removeFileLabel:J="Remove",clearLabel:de="Clear",...z}=e,ue=m(z,t),O=!g&&!P,ae=!!y&&y.length>0,ye=i.useRef(null),[re,le]=i.useState(!1),[he,Ne]=i.useState(!1),Ue=j=>{if(!O)return;const te=Array.from(j);if(te.length===0)return;const ne=M?A:1,X=M?(y==null?void 0:y.length)??0:0,me=[],To=[];let mt=!1,_t=!1;for(const Eo of te){const ft=!Yo(Eo,R);ft&&(mt=!0);const Ss=E!==void 0&&Eo.size>E,yt=ne!==void 0&&X+me.length>=ne;yt&&(_t=!0),(ft||Ss||yt?To:me).push(Eo)}le(mt),Ne(_t),me.length>0&&(T==null||T(me)),To.length>0&&(L==null||L(To))},Ce=i.useRef(0),[Ge,Ie]=i.useState(!1),Le=j=>{j.preventDefault(),Ce.current+=1,Ie(!0)},to=j=>{j.preventDefault(),Ce.current-=1,Ce.current<=0&&(Ce.current=0,Ie(!1))},Pe=j=>{j.preventDefault()},Ve=j=>{j.preventDefault(),Ce.current=0,Ie(!1),Ue(j.dataTransfer.files)},ge=()=>{var j;O&&((j=ye.current)==null||j.click())},He=j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),ge())},G=j=>{j.target.files&&Ue(j.target.files),j.target.value=""},F=()=>{!O||!y||y.length===0||y.forEach(j=>v==null?void 0:v(j.id??j.file.name))},[W,k]=i.useState(0),B=i.useRef([]),Z=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var te;const j=(y==null?void 0:y.length)??0;if(j>0&&j<Z.current){const ne=Math.min(W,j-1);k(ne),(te=B.current[ne])==null||te.focus()}Z.current=j},[y]);const pe=j=>{var X;const te=(y==null?void 0:y.length)??0;if(te===0)return;let ne;j.key==="ArrowRight"||j.key==="ArrowDown"?ne=(W+1)%te:(j.key==="ArrowLeft"||j.key==="ArrowUp")&&(ne=(W-1+te)%te),ne!==void 0&&(j.preventDefault(),j.stopPropagation(),k(ne),(X=B.current[ne])==null||X.focus())},qe=b??(re?K:he?H:void 0),no=w?`${Me.layoutOverride} ${w}`:Me.layoutOverride;return o.jsx(uo,{overStyled:t,className:no,style:S,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:qe,required:x,withAsterisk:$,id:C,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:o.jsxs("div",{ref:n,...ue,className:Me.root,role:"button","aria-label":Y,"aria-disabled":g?"true":void 0,tabIndex:O?0:-1,"data-disabled":g?"true":void 0,"data-readonly":P?"true":void 0,"data-error":qe?"true":void 0,"data-dragging":Ge?"true":void 0,onClick:O?ge:void 0,onKeyDown:O?He:void 0,onDragEnter:O?Le:void 0,onDragLeave:O?to:void 0,onDragOver:O?Pe:void 0,onDrop:O?Ve:void 0,children:[o.jsx("span",{className:Me.leadingIcon,"aria-hidden":!0,children:q??o.jsx(qa,{})}),o.jsxs("div",{className:Me.content,children:[!ae&&o.jsx("span",{className:Me.value,"data-placeholder":"true",children:V}),ae&&o.jsx("div",{className:Me.chipRow,onKeyDown:P?void 0:pe,children:y.map((j,te)=>{const ne=j.id??j.file.name;return o.jsx("span",{className:Me.chipWrapper,onClick:X=>X.stopPropagation(),children:o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:P?void 0:J,deleteTabIndex:!P&&te===W?0:-1,deleteIconRef:X=>{B.current[te]=X},onDelete:P||g?void 0:()=>v==null?void 0:v(ne),children:j.file.name})},ne)})})]}),ae&&!P&&o.jsx(eo,{overStyled:!0,variant:"text",size:"small",icon:Q??o.jsx(Ka,{}),"aria-label":de,className:Me.trailingIcon,disabled:g,onClick:j=>{j.preventDefault(),j.stopPropagation(),F()},onKeyDown:j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.stopPropagation(),F())}}),o.jsx("input",{ref:ye,type:"file",hidden:!0,accept:R,multiple:M,disabled:!O,onChange:G})]})})});Zt.displayName="FileInput";const Ya="FileUpload-module__layoutOverride___bPpi8",Za="FileUpload-module__root___Q-vcm",Qa="FileUpload-module__dropzone___jqua0",Xa="FileUpload-module__uploadIcon___bb3Nc",Ja="FileUpload-module__dropzoneText___L7vS-",el="FileUpload-module__fileList___XIWLl",Ze={layoutOverride:Ya,root:Za,dropzone:Qa,uploadIcon:Xa,dropzoneText:Ja,fileList:el};function ol(){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 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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,disabled:g,readOnly:P,files:y,onFilesAdded:T,onFileRemove:v,accept:R,multiple:M=!0,maxSize:E,maxFiles:A,onFilesRejected:L,invalidFileTypeMessage:K="File type not accepted",maxFilesMessage:H=`Maximum of ${A} files allowed`,icon:q,dropzoneLabel:Q="Drag and drop files here to upload",browseButtonLabel:V="Browse files",removeFileLabel:Y="Remove",...J}=e,z=m(J,t),se=i.useRef(null),[ue,O]=i.useState(!1),[ae,ye]=i.useState(!1),re=k=>{if(g)return;const B=Array.from(k);if(B.length===0)return;const Z=(y==null?void 0:y.length)??0,pe=[],qe=[];let no=!1,j=!1;for(const te of B){const ne=!Yo(te,R);ne&&(no=!0);const X=E!==void 0&&te.size>E,me=A!==void 0&&Z+pe.length>=A;me&&(j=!0),(ne||X||me?qe:pe).push(te)}O(no),ye(j),pe.length>0&&(T==null||T(pe)),qe.length>0&&(L==null||L(qe))},le=i.useRef(0),[he,Ne]=i.useState(!1),Ue=k=>{k.preventDefault(),le.current+=1,Ne(!0)},Ce=k=>{k.preventDefault(),le.current-=1,le.current<=0&&(le.current=0,Ne(!1))},Ge=k=>{k.preventDefault()},Ie=k=>{k.preventDefault(),le.current=0,Ne(!1),re(k.dataTransfer.files)},Le=()=>{var k;g||(k=se.current)==null||k.click()},to=k=>{k.target.files&&re(k.target.files),k.target.value=""},[Pe,Ve]=i.useState(0),ge=i.useRef([]),He=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var B;const k=(y==null?void 0:y.length)??0;if(k>0&&k<He.current){const Z=Math.min(Pe,k-1);Ve(Z),(B=ge.current[Z])==null||B.focus()}He.current=k},[y]);const G=k=>{var pe;const B=(y==null?void 0:y.length)??0;if(B===0)return;let Z;k.key==="ArrowRight"||k.key==="ArrowDown"?Z=(Pe+1)%B:(k.key==="ArrowLeft"||k.key==="ArrowUp")&&(Z=(Pe-1+B)%B),Z!==void 0&&(k.preventDefault(),Ve(Z),(pe=ge.current[Z])==null||pe.focus())},F=b??(ue?K:ae?H:void 0),W=w?`${Ze.layoutOverride} ${w}`:Ze.layoutOverride;return o.jsx(uo,{overStyled:t,className:W,style:S,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:F,required:x,withAsterisk:$,id:C,children:o.jsxs("div",{ref:n,...z,className:Ze.root,"data-disabled":g?"true":void 0,"data-error":F?"true":void 0,children:[!P&&o.jsxs("div",{className:Ze.dropzone,"data-dragging":he?"true":void 0,onDragEnter:g?void 0:Ue,onDragLeave:g?void 0:Ce,onDragOver:g?void 0:Ge,onDrop:g?void 0:Ie,children:[o.jsx("span",{className:Ze.uploadIcon,children:q??o.jsx(ol,{})}),o.jsx("span",{className:Ze.dropzoneText,children:Q}),o.jsx(eo,{variant:"outline",disabled:g,onClick:Le,children:V}),o.jsx("input",{ref:se,type:"file",hidden:!0,accept:R,multiple:M,disabled:g,onChange:to})]}),y&&y.length>0&&(P?o.jsx("div",{className:Ze.fileList,children:y.map(k=>{const B=k.id??k.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,children:k.file.name},B)})}):o.jsx("div",{className:Ze.fileList,onKeyDown:G,children:y.map((k,B)=>{const Z=k.id??k.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:Y,deleteTabIndex:B===Pe?0:-1,deleteIconRef:pe=>{ge.current[B]=pe},onDelete:g?void 0:()=>v==null?void 0:v(Z),children:k.file.name},Z)})}))]})})});Qt.displayName="FileUpload";const tl="Flex-module__root___yYser",fo={root:tl},Xt=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,...go({gap:n,rowGap:t,columnGap:s,...a}),children:e})});Xt.displayName="Flex";const nl=u.createPolymorphicComponent(Xt),sl="Grid-module__root___s-qPY",rl="Grid-module__col___tbuNg",je={root:sl,col:rl},Jt=i.forwardRef(function({children:e,gutter:n="rec-default",...t},s){const a={root:je.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const f=l;a.root=f.root?`${je.root} ${f.root}`:je.root}const c=t.className,d=c?`${je.root} ${c}`:je.root,{gutter:p,..._}=go({gutter:n,...t});return o.jsx(u.Grid,{ref:s,gutter:p,className:d,classNames:a,..._,children:e})});Jt.displayName="Grid";const al=u.createPolymorphicComponent(Jt),en=i.forwardRef(function({children:e,...n},t){const s={col:je.col},a=n.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const d=a;s.col=d.col?`${je.col} ${d.col}`:je.col}const l=n.className,c=l?`${je.col} ${l}`:je.col;return o.jsx(u.Grid.Col,{ref:t,className:c,classNames:s,...go(n),children:e})});en.displayName="GridCol";const on=u.createPolymorphicComponent(en),tn=al;tn.Col=on;const ll="Group-module__root___ftO64",yo={root:ll},nn=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,...go({gap:n,...t}),children:e})});nn.displayName="Group";const il="Heading-module__root___-To4U",cl={root:il},sn=i.forwardRef(function({overStyled:e=!1,order:n=1,...t},s){const a=["size"],l=U(m(t,e),a),c=l.className,p=[`recursica_brand_typography_h${n}`,cl.root,c].filter(Boolean).join(" ");return o.jsx(u.Title,{ref:s,...l,order:n,className:p})});sn.displayName="Heading";const dl="HoverCard-module__dropdown___FBPFW",ul="HoverCard-module__arrow___S9AkE",bt={dropdown:dl,arrow:ul},rn=function({overStyled:e=!1,withBeak:n=!0,position:t="top",arrowSize:s=16,withArrow:a,...l}){const c=m(l,e),d=c,p=D({dropdown:bt.dropdown,arrow:bt.arrow},d.classNames),_=n??a;return o.jsx(u.HoverCard,{...c,position:t,arrowSize:s,withArrow:_,classNames:p})};rn.displayName="HoverCard";const an=function(e){return o.jsx(u.HoverCard.Target,{...e})};an.displayName="HoverCardTarget";const ln=function({overStyled:e=!1,...n}){const t=m(n,e),s=t.className;return o.jsx(u.HoverCard.Dropdown,{...t,className:s})};ln.displayName="HoverCardDropdown";const ot=rn;ot.Target=an;ot.Dropdown=ln;const pl="Link-module__root___I0VGE",ml="Link-module__iconWrapper___W-LlF",_l="Link-module__labelText___wSvUy",ho={root:pl,iconWrapper:ml,labelText:_l},cn=i.forwardRef(function({icon:e,children:n,overStyled:t=!1,...s},a){const l=m(s,t),c=l,d=D({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})]})});cn.displayName="Link";const fl=u.createPolymorphicComponent(cn),yl="Menu-module__dropdown___j4xuA",hl="Menu-module__item___NMXha",vl="Menu-module__itemLabel___zvcqC",xl="Menu-module__itemSection___pRIcn",bl="Menu-module__divider___wPiNq",Nl="Menu-module__label___4FBGa",Cl="Menu-module__chevron___hEEiy",so={dropdown:yl,item:hl,itemLabel:vl,itemSection:xl,divider:bl,label:Nl,chevron:Cl},dn=function({overStyled:e=!1,...n}){const s=m(n,e),{maxHeight:a,...l}=s,c=D({dropdown:so.dropdown,item:so.item,itemLabel:so.itemLabel,itemSection:so.itemSection,divider:so.divider,label:so.label,chevron:so.chevron},s.classNames),d=l.styles,p=a?{...d,dropdown:{...d==null?void 0:d.dropdown,maxHeight:a,overflowY:"auto"}}:d;return o.jsx(u.Menu,{...l,classNames:c,...p?{styles:p}:{}})};dn.displayName="Menu";const un=function({overStyled:e=!1,...n}){const t=m(n,e);return o.jsx(u.Menu.Target,{...t})};un.displayName="MenuTarget";const pn=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})});pn.displayName="MenuDropdown";const mn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=["color"],a=U(m(n,e),s),c=a.className;return o.jsx(u.Menu.Item,{...a,ref:t,className:c})});mn.displayName="MenuItem";const Pl=u.createPolymorphicComponent(mn),_n=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})});_n.displayName="MenuDivider";const fn=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})});fn.displayName="MenuLabel";const yn=function(e){return o.jsx(u.Menu.Sub,{...e})};yn.displayName="MenuSub";const hn=function(e){return o.jsx(u.Menu.Sub.Target,{...e})};hn.displayName="MenuSubTarget";const vn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=["color"],a=U(m(n,e),s),c=a.className;return o.jsx(u.Menu.Sub.Item,{...a,ref:t,className:c})});vn.displayName="MenuSubItem";const gl=u.createPolymorphicComponent(vn),xn=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})});xn.displayName="MenuSubDropdown";const Do=yn;Do.Target=hn;Do.Item=gl;Do.Dropdown=xn;const lo=dn;lo.Target=un;lo.Dropdown=pn;lo.Item=Pl;lo.Divider=_n;lo.Label=fn;lo.Sub=Do;const wl="Modal-module__root___ytPLl",Tl="Modal-module__inner___SSUJE",Sl="Modal-module__content___dWO-B",$l="Modal-module__header___ILG9i",jl="Modal-module__title___A5OeE",Rl="Modal-module__bodyWrapper___5CCL-",Ol="Modal-module__scrollArea___KD-hm",kl="Modal-module__footer___rro2w",Il="Modal-module__close___-ER1C",We={root:wl,inner:Tl,content:Sl,header:$l,title:jl,bodyWrapper:Rl,scrollArea:Ol,footer:kl,close:Il},bn=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=U(m(d,e),_),N=D({root:We.root,inner:We.inner,content:We.content,header:We.header,title:We.title,close:We.close},f.classNames);return o.jsxs(u.Modal.Root,{ref:p,...f,classNames:N,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(nt,{children:n})]})]})});bn.displayName="Modal";const tt=i.forwardRef(function({overStyled:e=!1,className:n,...t},s){const a=m(t,e);return o.jsx("div",{ref:s,...a,className:`${We.footer} ${n||""}`})});tt.displayName="Modal.Footer";const nt=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,N]=i.useState(!1),h=i.useCallback(()=>{if(d.current){const{scrollTop:C,scrollHeight:w,clientHeight:S}=d.current;_(C>0),N(Math.ceil(C+S)<w)}},[]);i.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,s]);const b=C=>{h(),t==null||t(C)};let x=null;const $=[];return i.Children.forEach(s,C=>{var w;i.isValidElement(C)&&(C.type===tt||((w=C.type)==null?void 0:w.displayName)==="Modal.Footer")?x=C:$.push(C)}),o.jsxs(u.Modal.Body,{...c,ref:C=>{typeof l=="function"?l(C):l&&(l.current=C)},className:`${We.bodyWrapper} ${n||""}`,children:[o.jsx("div",{ref:d,onScroll:b,"data-scrolled-top":p||void 0,"data-scrolled-bottom":f||void 0,className:We.scrollArea,children:$}),x]})});nt.displayName="Modal.Body";const Ll=["size","radius"],Nn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=U(m(n,e),Ll);return o.jsx(u.Modal.Root,{ref:t,...s})});Nn.displayName="Modal.Root";const Cn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Modal.Overlay,{ref:t,...s})});Cn.displayName="Modal.Overlay";const Ml=["radius"],Pn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=U(m(n,e),Ml);return o.jsx(u.Modal.Content,{ref:t,...s})});Pn.displayName="Modal.Content";const gn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Modal.Header,{ref:t,...s})});gn.displayName="Modal.Header";const wn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Modal.Title,{ref:t,...s})});wn.displayName="Modal.Title";const Al=["size","radius"],Tn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=U(m(n,e),Al);return o.jsx(u.Modal.CloseButton,{ref:t,...s})});Tn.displayName="Modal.CloseButton";const Fe=bn;Fe.Root=Nn;Fe.Overlay=Cn;Fe.Content=Pn;Fe.Header=gn;Fe.Title=wn;Fe.CloseButton=Tn;Fe.Body=nt;Fe.Footer=tt;const Wl="NumberInput-module__layoutOverride___5-9T4",zl="NumberInput-module__root___C6rAn",Dl="NumberInput-module__input___Ss8p7",El="NumberInput-module__section___MijP0",Fl="NumberInput-module__controls___8UfQ2",Bl="NumberInput-module__control___Qre9-",ro={layoutOverride:Wl,root:zl,input:Dl,section:El,controls:Fl,control:Bl},Ul=["size","variant","radius"],Sn=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:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,hideControls:R=!1,...M}=e,E=U(m(M,t),Ul),A=E,L={wrapper:ro.root,input:ro.input,section:ro.section,controls:ro.controls,control:ro.control},K=C?`${ro.layoutOverride} ${C}`:ro.layoutOverride;return o.jsx(fe,{className:K,style:w,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:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T==null?void 0:T.toString():v==null?void 0:v.toString(),readOnlyNativeProps:e,activeComponent:o.jsx(u.NumberInput,{ref:n,...E,classNames:L,disabled:S,value:T,defaultValue:v,hideControls:R,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0,"data-with-left-section":A.leftSection?"true":void 0,"data-with-right-section":A.rightSection||!R?"true":void 0}})})});Sn.displayName="NumberInput";const Gl="Pagination-module__root___ITRjt",Vl="Pagination-module__control___40yNT",Hl="Pagination-module__dots___Yl9da",ql="Pagination-module__iconWithLabel___pLM4O",Kl="Pagination-module__baseIcon___Qw3bJ",Re={root:Gl,control:Vl,dots:Hl,iconWithLabel:ql,baseIcon:Kl},Yl="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Zl="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",Ql="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",Xl="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",Jl={next:Yl,prev:Zl,first:Ql,last:Xl},wo=({type:r,className:e,...n})=>o.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${Re.baseIcon} ${e||""}`.trim(),...n,children:o.jsx("path",{d:Jl[r],fill:"currentColor"})}),$n=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx("span",{children:"Next"}),o.jsx(wo,{type:"next",...r})]}),jn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx(wo,{type:"prev",...r}),o.jsx("span",{children:"Prev"})]}),Rn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx(wo,{type:"first",...r}),o.jsx("span",{children:"First"})]}),On=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx("span",{children:"Last"}),o.jsx(wo,{type:"last",...r})]});function kn(r){const e=D({root:Re.root,control:Re.control,dots:Re.dots},r.classNames),n=r.className;return{className:n?`${Re.root} ${n}`:Re.root,classNames:e}}const In=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=kn(s);return o.jsx(u.Pagination.Root,{ref:t,...s,className:a.className,classNames:a.classNames})});In.displayName="Pagination.Root";const Ln=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...s},a){const l=m(s,e),c=n?$n:void 0;return o.jsx(u.Pagination.Next,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});Ln.displayName="Pagination.Next";const Mn=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...s},a){const l=m(s,e),c=n?jn:void 0;return o.jsx(u.Pagination.Previous,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});Mn.displayName="Pagination.Previous";const An=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...s},a){const l=m(s,e),c=n?Rn:void 0;return o.jsx(u.Pagination.First,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});An.displayName="Pagination.First";const Wn=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...s},a){const l=m(s,e),c=n?On:void 0;return o.jsx(u.Pagination.Last,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});Wn.displayName="Pagination.Last";const zn=i.forwardRef(function({overStyled:e=!1,getControlProps:n,withLabels:t,...s},a){const l=m(s,e),c=kn(l),d=_=>{const f={"data-variant":"text"};return n?{...f,...n(_)}:f},p=t?{nextIcon:$n,previousIcon:jn,firstIcon:Rn,lastIcon:On}:{};return o.jsx(u.Pagination,{ref:a,...p,...l,className:c.className,classNames:c.classNames,getControlProps:d})});zn.displayName="Pagination";const Dn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Pagination.Control,{ref:t,...s})});Dn.displayName="Pagination.Control";const En=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Pagination.Dots,{ref:t,...s})});En.displayName="Pagination.Dots";const Oe=zn;Oe.Root=In;Oe.Items=u.Pagination.Items;Oe.Control=Dn;Oe.Dots=En;Oe.Next=Ln;Oe.Previous=Mn;Oe.First=An;Oe.Last=Wn;Oe.Icon=wo;const ei="Panel-module__content___wdGo-",oi="Panel-module__inner___ruA2b",ti="Panel-module__header___o7SiC",ni="Panel-module__title___181OP",si="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",ri="Panel-module__body___SEC3T",ai="Panel-module__footer___t6-hz",Xe={content:ei,inner:oi,header:ti,title:ni,titleTruncate:si,body:ri,footer:ai},Fn=function({overStyled:e=!1,placement:n="right",keepMounted:t=!0,wrapHeaderText:s=!0,...a}){const l=m(a,e),c=l,d=D({content:Xe.content,header:Xe.header,title:s?Xe.titleTruncate:Xe.title,body:Xe.body,inner:Xe.inner},c.classNames);return o.jsx(u.Drawer,{...l,position:n,keepMounted:t,closeOnClickOutside:ce(!!a.opened,a.closeOnClickOutside),classNames:d})};Fn.displayName="Panel";const st=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s.className,l=a?`${Xe.footer} ${a}`:Xe.footer;return o.jsx("div",{ref:t,...s,className:l})});st.displayName="PanelFooter";const Bn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Root,{ref:t,...s})});Bn.displayName="PanelRoot";const Un=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Overlay,{ref:t,...s})});Un.displayName="PanelOverlay";const Gn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Content,{ref:t,...s})});Gn.displayName="PanelContent";const Vn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Header,{ref:t,...s})});Vn.displayName="PanelHeader";const Hn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Title,{ref:t,...s})});Hn.displayName="PanelTitle";const qn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.CloseButton,{ref:t,...s})});qn.displayName="PanelCloseButton";const Kn=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Drawer.Body,{ref:t,...s})});Kn.displayName="PanelBody";const ke=Fn;ke.Root=Bn;ke.Overlay=Un;ke.Content=Gn;ke.Header=Vn;ke.Title=Hn;ke.CloseButton=qn;ke.Body=Kn;ke.Stack=u.Drawer.Stack;ke.Footer=st;const li="Popover-module__dropdown___svhS6",ii="Popover-module__arrow___5A-0e",Nt={dropdown:li,arrow:ii},Yn=function({overStyled:e=!1,withBeak:n=!0,position:t="top",...s}){const a=m(s,e),l=a,c=D({dropdown:Nt.dropdown,arrow:Nt.arrow},l.classNames),d=ce(16,l.arrowSize),p=ce(n,l.withArrow);return o.jsx(u.Popover,{...a,position:t,arrowSize:d,withArrow:p,classNames:c})};Yn.displayName="Popover";const Zn=function(e){return o.jsx(u.Popover.Target,{...e})};Zn.displayName="PopoverTarget";const Qn=function({overStyled:e=!1,...n}){const t=m(n,e),s=t.className;return o.jsx(u.Popover.Dropdown,{...t,className:s})};Qn.displayName="PopoverDropdown";const rt=Yn;rt.Target=Zn;rt.Dropdown=Qn;const ci="Radio-module__groupRoot___bfUii",di="Radio-module__root___kAjTD",ui="Radio-module__body___q2Wpj",pi="Radio-module__inner___QaTBB",mi="Radio-module__radio___MfgN-",_i="Radio-module__icon___DWznm",fi="Radio-module__labelWrapper___dB0Gi",yi="Radio-module__label___vAFIP",Se={groupRoot:ci,root:di,body:ui,inner:pi,radio:mi,icon:_i,labelWrapper:fi,label:yi},at=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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,children:g,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:R,...M}=e,E=["size"],A=U(m(M,t),E),L=A;return o.jsx(fe,{className:w,style:S,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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:R,readOnlyNativeProps:e,activeComponent:o.jsx(u.Radio.Group,{ref:n,...A,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:Se.groupRoot,"data-layout":s,children:g})})})});at.displayName="RadioGroup";const hi=({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"})}),lt=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:s,readOnlyComponent:a,disabled:l,icon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...N}=e,h=["size","color","radius","variant","iconColor"],b=U(m(N,t),h),x=b,$=D({root:Se.root,body:Se.body,inner:Se.inner,radio:Se.radio,icon:Se.icon,labelWrapper:Se.labelWrapper,label:Se.label},x.classNames),C=x.className,w=C?`${Se.root} ${C}`:Se.root;if(s&&a){const g=!!(x.checked??x.defaultChecked),P=a,y=o.jsx(P,{...e,checked:g,label:x.label});return d?o.jsx(De,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:y}):o.jsx(o.Fragment,{children:y})}const S=o.jsx(u.Radio,{ref:n,...b,icon:ce(hi,c),className:w,classNames:$,disabled:s||l});return d?o.jsx(De,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:S}):S});lt.displayName="Radio";lt.Group=at;const vi="SegmentedControl-module__root___JFRhg",xi="SegmentedControl-module__label___mS17q",bi="SegmentedControl-module__control___znOdQ",Ni="SegmentedControl-module__indicator___ZMcJy",co={root:vi,label:xi,control:bi,indicator:Ni};function Ci(r){const e=D({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 Xn=i.forwardRef(function({overStyled:e=!1,orientation:n="horizontal",fullWidth:t,data:s=[],...a},l){const c=m(a,e),p=Ci(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:_})});Xn.displayName="SegmentedControl";const Pi=Xn,gi="Slider-module__layoutOverride___zYPun",wi="Slider-module__sliderContainer___y8I0J",Ti="Slider-module__sliderTrackWrapper___UHpVh",Si="Slider-module__iconWrapper___uqHpC",$i="Slider-module__sliderRoot___LI86H",ji="Slider-module__sliderTrack___oqnlG",Ri="Slider-module__sliderBar___TI4VY",Oi="Slider-module__sliderThumb___OFn8p",ki="Slider-module__sliderMarkWrapper___Ufqhu",Ii="Slider-module__sliderMark___1lM2B",Li="Slider-module__sliderMarkLabel___MMZrq",Mi="Slider-module__minMaxGuide___TaGqz",Ai="Slider-module__rightGuideContainer___8dOT8",Wi="Slider-module__currentValue___dGV2T",zi="Slider-module__inputField___6x578",Di="Slider-module__readOnlyValue___-ZzMW",ee={layoutOverride:gi,sliderContainer:wi,sliderTrackWrapper:Ti,iconWrapper:Si,sliderRoot:$i,sliderTrack:ji,sliderBar:Ri,sliderThumb:Oi,sliderMarkWrapper:ki,sliderMark:Ii,sliderMarkLabel:Li,minMaxGuide:Mi,rightGuideContainer:Ai,currentValue:Wi,inputField:zi,readOnlyValue:Di},Ei=({value:r})=>{const e=Array.isArray(r)?`${r[0]} – ${r[1]}`:r;return o.jsx("div",{className:ee.readOnlyValue,children:e})},Jn=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:N,assistiveText:h,assistiveWithIcon:b,error:x,required:$,withAsterisk:C,id:w,className:S,style:g,disabled:P,readOnly:y,readOnlyComponent:T,emptyValueComponent:v,value:R,defaultValue:M,icon:E,trailingIcon:A,showInput:L=!1,showMinMaxLabels:K=!0,min:H=0,max:q=100,minLabel:Q,maxLabel:V,step:Y=1,onChange:J,onChangeEnd:de,...z}=e,[se,ue]=i.useState(()=>R!==void 0?R:M!==void 0?M:H),O=R!==void 0?R:se,ae=Array.isArray(O),[ye,re]=i.useState(()=>Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString());i.useEffect(()=>{re(Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString())},[O]);const le=F=>{R===void 0&&ue(F),J==null||J(F)},he=F=>{const W=F.target.value;re(W);const k=parseFloat(W);if(!isNaN(k)){const B=Math.max(H,Math.min(q,k));le(B)}},Ne=()=>{re(O.toString())},Ue=F=>{const W=O,k=F.target.value;re([k,W[1].toString()]);const B=parseFloat(k);if(!isNaN(B)){const Z=Math.max(H,Math.min(W[1],B));le([Z,W[1]])}},Ce=F=>{const W=O,k=F.target.value;re([W[0].toString(),k]);const B=parseFloat(k);if(!isNaN(B)){const Z=Math.max(W[0],Math.min(q,B));le([W[0],Z])}},Ge=()=>{const F=O;re([F[0].toString(),F[1].toString()])},Ie=["size","variant","radius","wrapperProps"],Le=U(m(z,t),Ie),to=Le,Pe=D({root:ee.sliderRoot,track:ee.sliderTrack,bar:ee.sliderBar,thumb:ee.sliderThumb,markWrapper:ee.sliderMarkWrapper,mark:ee.sliderMark,markLabel:ee.sliderMarkLabel},to.classNames),Ve=S?`${ee.layoutOverride} ${S}`:ee.layoutOverride,ge=E?o.jsx("span",{className:ee.iconWrapper,"aria-hidden":!0,children:E}):null,He=A?o.jsx("span",{className:ee.iconWrapper,"aria-hidden":!0,children:A}):null,G=Array.isArray(O)?typeof N=="function"?`${N(O[0])} – ${N(O[1])}`:`${O[0]} – ${O[1]}`:typeof N=="function"?N(O):O;return o.jsx(fe,{ref:n,className:Ve,style:g,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:b,error:x,required:$,withAsterisk:C,id:w,readOnly:y,readOnlyComponent:T||Ei,emptyValueComponent:v,readOnlyType:"text",readOnlyValue:O,readOnlyNativeProps:{value:O},activeComponent:o.jsxs("div",{className:ee.sliderContainer,"data-form-layout":s,"data-disabled":P?"true":void 0,"data-error":x?"true":void 0,children:[ae&&L&&o.jsx("input",{type:"number",className:ee.inputField,value:ye[0],onChange:Ue,onBlur:Ge,min:H,max:O[1],step:Y,disabled:P,"data-error":x?"true":void 0,"aria-label":"Minimum value"}),ge,K&&o.jsx("span",{className:ee.minMaxGuide,children:Q??H}),o.jsx("div",{className:ee.sliderTrackWrapper,children:ae?o.jsx(u.RangeSlider,{...Le,classNames:Pe,disabled:P,value:O,onChange:le,onChangeEnd:de,min:H,max:q,step:Y,label:N}):o.jsx(u.Slider,{...Le,classNames:Pe,disabled:P,value:O,onChange:le,onChangeEnd:de,min:H,max:q,step:Y,label:N})}),o.jsxs("div",{className:ee.rightGuideContainer,children:[!L&&o.jsx("span",{className:ee.currentValue,children:G}),K&&o.jsx("span",{className:ee.minMaxGuide,children:V??q})]}),He,L&&(ae?o.jsx("input",{type:"number",className:ee.inputField,value:ye[1],onChange:Ce,onBlur:Ge,min:O[0],max:q,step:Y,disabled:P,"data-error":x?"true":void 0,"aria-label":"Maximum value"}):o.jsx("input",{type:"number",className:ee.inputField,value:ye,onChange:he,onBlur:Ne,min:H,max:q,step:Y,disabled:P,"data-error":x?"true":void 0}))]})})});Jn.displayName="Slider";const Fi="Stack-module__root___NUN-x",vo={root:Fi},es=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,...go({gap:n,...t}),children:e})});es.displayName="Stack";const Bi=u.createPolymorphicComponent(es),Ui="Stepper-module__root___jbSYO",Gi="Stepper-module__horizontal___USHT1",Vi="Stepper-module__steps___4HPO6",Hi="Stepper-module__step___s2nqL",qi="Stepper-module__stepBody___TBvys",Ki="Stepper-module__stepLabel___N6nuy",Yi="Stepper-module__stepDescription___DnDAy",Zi="Stepper-module__separator___pU0No",Qi="Stepper-module__vertical___d4mOs",Xi="Stepper-module__large___J18-y",Ji="Stepper-module__small___Ub-zb",ec="Stepper-module__stepIcon___YQHNq",oc="Stepper-module__stepCompletedIcon___B9MeL",tc="Stepper-module__verticalSeparator___frWc1",nc="Stepper-module__content___J-h8X",ie={root:Ui,horizontal:Gi,steps:Vi,step:Hi,stepBody:qi,stepLabel:Ki,stepDescription:Yi,separator:Zi,vertical:Qi,large:Xi,small:Ji,stepIcon:ec,stepCompletedIcon:oc,verticalSeparator:tc,content:nc},os=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=D({steps:ie.steps,step:ie.step,stepIcon:ie.stepIcon,stepCompletedIcon:ie.stepCompletedIcon,stepBody:ie.stepBody,stepLabel:ie.stepLabel,stepDescription:ie.stepDescription,separator:ie.separator,verticalSeparator:ie.verticalSeparator,content:ie.content},_.classNames);return o.jsx(u.Stepper,{ref:n,...p,orientation:a,className:`${ie.root} ${a==="horizontal"?ie.horizontal:ie.vertical} ${s==="large"?ie.large:ie.small} ${l||""}`,style:c,"data-size":s,"data-orientation":a,classNames:f})}),ts=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Stepper.Step,{ref:t,...s})});ts.displayName="Stepper.Step";const sc=Object.assign(os,{Step:ts,Completed:u.Stepper.Completed});os.displayName="Stepper";const rc="Switch-module__root___Y5Ydi",ac="Switch-module__track___7ObdZ",lc="Switch-module__body___Sw9Wr",ic="Switch-module__thumb___-FTeK",cc="Switch-module__labelWrapper___YSOwx",dc="Switch-module__label___LrH7V",uc="Switch-module__thumbIconWrapper___sCY-1",pc="Switch-module__checkIcon___ZBAQN",mc="Switch-module__closeIcon___bLLGw",_c="Switch-module__groupRoot___-Uepi",_e={root:rc,track:ac,body:lc,thumb:ic,labelWrapper:cc,label:dc,thumbIconWrapper:uc,checkIcon:pc,closeIcon:mc,groupRoot:_c},it=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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,className:w,style:S,children:g,readOnly:P,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:R,...M}=e,E=["size"],A=U(m(M,t),E),L=A;return o.jsx(fe,{className:w,style:S,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:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:$,id:C,readOnly:P&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:R,readOnlyNativeProps:e,activeComponent:o.jsx(u.Switch.Group,{ref:n,...A,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:_e.groupRoot,"data-layout":s,children:g})})})});it.displayName="SwitchGroup";const ct=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:s,readOnlyComponent:a,disabled:l,thumbIcon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...N}=e,h=["size","color","radius","variant"],b=U(m(N,t),h),x=b,$=D({root:_e.root,body:_e.body,track:_e.track,thumb:_e.thumb,trackLabel:_e.trackLabel,labelWrapper:_e.labelWrapper,label:_e.label},x.classNames),C=jt({},x.styles),w=x.className,S=w?`${_e.root} ${w}`:_e.root;if(s&&a){const y=!!(x.checked??x.defaultChecked),T=a,v=o.jsx(T,{...e,checked:y,label:x.label});return d?o.jsx(De,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:v}):o.jsx(o.Fragment,{children:v})}const g=o.jsxs("div",{className:_e.thumbIconWrapper,children:[o.jsx(u.CheckIcon,{className:_e.checkIcon}),o.jsx(u.CloseIcon,{className:_e.closeIcon})]}),P=o.jsx(u.Switch,{ref:n,...b,className:S,classNames:$,styles:C,disabled:s||l,"data-disabled":s||l||void 0,thumbIcon:ce(g,c)});return d?o.jsx(De,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:P}):P});ct.displayName="Switch";ct.Group=it;const fc="Table-module__root___aMWWS",yc="Table-module__sortIcon___V3-dH",Vo={root:fc,sortIcon:yc};function hc(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 vc(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 ns=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})});ns.displayName="Table";const ss=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.Thead,{ref:t,...s})});ss.displayName="TableThead";const rs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.Tbody,{ref:t,...s})});rs.displayName="TableTbody";const as=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})});as.displayName="TableTr";const ls=i.forwardRef(function({overStyled:e=!1,sorted:n=!1,disabled:t=!1,variant:s="default",children:a,...l},c){const d=m(l,e);return o.jsxs(u.Table.Th,{ref:c,...d,"data-sorted":n?"true":void 0,"data-disabled":t?"true":void 0,"data-currency":s==="currency"?"true":void 0,"aria-sort":n==="asc"?"ascending":n==="desc"?"descending":void 0,children:[a,n==="asc"&&o.jsx(hc,{className:Vo.sortIcon}),n==="desc"&&o.jsx(vc,{className:Vo.sortIcon})]})});ls.displayName="TableTh";const is=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})});is.displayName="TableTd";const cs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.Tfoot,{ref:t,...s})});cs.displayName="TableTfoot";const ds=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.Caption,{ref:t,...s})});ds.displayName="TableCaption";const us=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Table.ScrollContainer,{ref:t,...s})});us.displayName="TableScrollContainer";const Be=ns;Be.Thead=ss;Be.Tbody=rs;Be.Tr=as;Be.Th=ls;Be.Td=is;Be.Tfoot=cs;Be.Caption=ds;Be.ScrollContainer=us;const xc="Tabs-module__root___-VKVI",bc="Tabs-module__list___qRVME",Nc="Tabs-module__tab___IdDYc",Cc="Tabs-module__panel___08i9c",jo={root:xc,list:bc,tab:Nc,panel:Cc},ps=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,_=D({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:_})});ps.displayName="Tabs";const ms=i.forwardRef(function(e,n){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.List,{ref:n,...m(s,t)})});ms.displayName="Tabs.List";const _s=i.forwardRef(function(e,n){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.Tab,{ref:n,...m(s,t)})});_s.displayName="Tabs.Tab";const fs=i.forwardRef(function(e,n){const{overStyled:t=!1,...s}=e;return o.jsx(u.Tabs.Panel,{ref:n,...m(s,t)})});fs.displayName="Tabs.Panel";const Pc=Object.assign(ps,{List:ms,Tab:_s,Panel:fs}),gc="Text-module__root___rsBo7",wc={root:gc},ys=i.forwardRef(function({overStyled:e=!1,variant:n="body",...t},s){const a=m(t,e),l=a.className,d=[`recursica_brand_typography_${n}`,wc.root,l].filter(Boolean).join(" ");return o.jsx(u.Text,{ref:s,...a,className:d})});ys.displayName="Text";const Tc=u.createPolymorphicComponent(ys),Sc="TextArea-module__layoutOverride___4MCdm",$c="TextArea-module__root___3dyeu",jc="TextArea-module__input___8l36v",Ro={layoutOverride:Sc,root:$c,input:jc},Rc=["size","variant","radius"],hs=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:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,...R}=e,M=U(m(R,t),Rc),E=M,A=D({wrapper:Ro.root,input:Ro.input},E.classNames),L=C?`${Ro.layoutOverride} ${C}`:Ro.layoutOverride;return o.jsx(fe,{className:L,style:w,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:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Textarea,{ref:n,...M,classNames:A,disabled:S,value:T,defaultValue:v,label:void 0,description:void 0,error:!!h,required:void 0,withAsterisk:void 0})})});hs.displayName="TextArea";const Oc="TextField-module__layoutOverride___SNZqc",kc="TextField-module__root___2ZYkG",Ic="TextField-module__input___RL-My",Lc="TextField-module__section___bCIJ0",xo={layoutOverride:Oc,root:kc,input:Ic,section:Lc},Mc=["size","variant","radius"],dt=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:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,...R}=e,M=U(m(R,t),Mc),E=M,A=D({wrapper:xo.root,input:xo.input,section:xo.section},E.classNames),L=C?`${xo.layoutOverride} ${C}`:xo.layoutOverride;return o.jsx(fe,{className:L,style:w,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:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Input,{ref:n,...M,classNames:A,disabled:S,value:T,defaultValue:v,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0}})})});dt.displayName="TextField";const Ac=["size","variant","radius"],vs=i.forwardRef(function(e,n){const{overStyled:t=!1,className:s,disabled:a,error:l,...c}=e,d=U(m(c,t),Ac),p=d,_=D({wrapper:s?`${oe.root} ${s}`:oe.root,input:oe.input,section:oe.section,dropdown:oe.dropdown,option:oe.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}}})});vs.displayName="BareDropdown";const Wc="TimePicker-module__layoutOverride___zKo4Q",zc="TimePicker-module__root___BcvRu",Dc="TimePicker-module__timeWrapper___hJVre",Ec="TimePicker-module__timeInput___FQysn",Fc="TimePicker-module__fieldsGroup___2yHhR",Bc="TimePicker-module__section___VkSWB",Uc="TimePicker-module__timeField___twRZd",Gc="TimePicker-module__amPmSelect___mSdvt",Ae={layoutOverride:Wc,root:zc,timeWrapper:Dc,timeInput:Ec,fieldsGroup:Fc,section:Bc,timeField:Uc,amPmSelect:Gc},Vc=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Ct(r){if(!r)return;const e=parseInt(r.slice(0,2),10);return Number.isNaN(e)?void 0:e}function Hc(r,e){return`${String(e).padStart(2,"0")}${r.slice(2)}`}function qc(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 Kc(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 Yc=["size","variant","radius"],xs=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:N,error:h,required:b,withAsterisk:x,id:$,className:C,style:w,disabled:S,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,value:T,defaultValue:v,onChange:R,withSeconds:M,minTime:E,maxTime:A,...L}=e,K=U(m(L,t),Yc),H=K,[q,Q]=i.useState(()=>T??v);i.useEffect(()=>{T!==void 0&&Q(T)},[T]);const V=i.useRef(null);i.useEffect(()=>{Ct(T??v)===void 0&&V.current&&Kc(V.current,"AM")},[]);const Y=O=>{Q(O),R==null||R(O)},J=Ct(q),de=J!==void 0&&J>=12,z=O=>{Y(O)},se=O=>{if(J===void 0||!q||!O)return;const ae=O==="PM";if(ae===de)return;const ye=ae?J+12:J-12;Y(Hc(q,ye))},ue=C?`${Ae.layoutOverride} ${C}`:Ae.layoutOverride;return o.jsx(fe,{className:ue,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:$,readOnly:g,readOnlyComponent:P,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:qc(T!==void 0?T:v),readOnlyNativeProps:e,activeComponent:o.jsxs("div",{className:Ae.root,"data-disabled":S?"true":void 0,"data-error":h?"true":void 0,children:[o.jsx(Tt.TimePicker,{ref:n,...K,classNames:D({wrapper:Ae.timeWrapper,input:Ae.timeInput,section:Ae.section,fieldsGroup:Ae.fieldsGroup,field:Ae.timeField},H.classNames),disabled:S,value:q,onChange:z,format:"12h",withSeconds:M,min:E,max:A,withDropdown:!1,amPmRef:V}),o.jsx(vs,{overStyled:!0,className:Ae.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:Vc,value:de?"PM":"AM",onChange:se,disabled:S,error:!!h,"aria-label":"AM or PM"})]})})});xs.displayName="TimePicker";const Zc="Timeline-module__root___LwRdZ",Qc="Timeline-module__item___T5xdQ",Xc="Timeline-module__itemBody___XAV-E",Jc="Timeline-module__itemBullet___rPXCy",ed="Timeline-module__itemTitle___GgRRW",od="Timeline-module__itemContent___vurs-",td="Timeline-module__description___f9sxV",nd="Timeline-module__timestamp___owiRu",Qe={root:Zc,item:Qc,itemBody:Xc,itemBullet:Jc,itemTitle:ed,itemContent:od,description:td,timestamp:nd},ut=i.forwardRef(function({overStyled:e=!1,timestamp:n,bulletVariant:t="default",children:s,...a},l){const c=m(a,e),d=c,p=D({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:_})});ut.displayName="TimelineItem";const bs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e),a=s,l=D({root:Qe.root},a.classNames);return o.jsx(u.Timeline,{ref:t,...s,classNames:l})});bs.displayName="Timeline";const Ns=bs;Ns.Item=ut;const sd="Toast-module__root___MUvfI",rd="Toast-module__icon___VwvE1",ad="Toast-module__loader___8Gxd-",ld="Toast-module__title___-H6R2",id="Toast-module__description___-QwfC",cd="Toast-module__closeButton___vGr7g",dd="Toast-module__body___VLkXA",ao={root:sd,icon:rd,loader:ad,title:ld,description:id,closeButton:cd,body:dd},Cs=i.forwardRef(function({overStyled:e=!1,variant:n="default",withCloseButton:t=!0,...s},a){const l=["color","radius","loading"],c=U(m(s,e),l),d=D({root:ao.root,body:ao.body,title:ao.title,description:ao.description,closeButton:ao.closeButton,icon:ao.icon,loader:ao.loader},c.classNames);return o.jsx(u.Notification,{ref:a,...c,withCloseButton:t,withBorder:!1,"data-variant":n,classNames:d,loading:!1})});Cs.displayName="Toast";const ud="Tooltip-module__tooltip___UA7H9",pd="Tooltip-module__arrow___4zROk",Pt={tooltip:ud,arrow:pd},Ps=function({overStyled:e=!1,withBeak:n=!0,position:t="top",arrowSize:s=16,...a}){const l=m(a,e),c=l,d=D({tooltip:Pt.tooltip,arrow:Pt.arrow},c.classNames),p=c.withArrow,_=n??p;return o.jsx(u.Tooltip,{...l,position:t,arrowSize:s,withArrow:_,multiline:!0,classNames:d})};Ps.displayName="Tooltip";const gs=i.forwardRef(function({overStyled:e=!1,...n},t){const s=m(n,e);return o.jsx(u.Tooltip.Floating,{ref:t,...s})});gs.displayName="TooltipFloating";const pt=Ps;pt.Floating=gs;pt.Group=u.Tooltip.Group;const md="TransferList-module__layoutOverride___nkb32",_d="TransferList-module__root___ikjI7",fd="TransferList-module__panes___dtwkW",yd="TransferList-module__pane___hy-kC",hd="TransferList-module__paneHeader___HZrKX",vd="TransferList-module__paneSearch___Xji-g",xd="TransferList-module__paneList___v0rcJ",bd="TransferList-module__emptyState___azPw-",Nd="TransferList-module__transferColumn___3R2Ki",Cd="TransferList-module__chevron___l-KdI",be={layoutOverride:md,root:_d,panes:fd,pane:yd,paneHeader:hd,paneSearch:vd,paneList:xd,emptyState:bd,transferColumn:Nd,chevron:Cd};function gt({direction:r}){return o.jsx("svg",{className:be.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:be.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 Pd(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 ws=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:N,description:h,helperText:b,assistiveWithIcon:x,error:$,required:C,id:w,readOnly:S,readOnlyComponent:g,emptyValueComponent:P,data:y,defaultData:T,onChange:v,sourceLabel:R="Available",targetLabel:M="Selected",searchable:E=!0,searchPlaceholder:A="Filter items...",disabled:L=!1,className:K,style:H,...q}=e,Q=m(q,t),V=i.useId(),Y=w||`recursica-transfer-list-${V}`,[J,de]=i.useState(()=>T??y??[[],[]]),z=y!==void 0?y:J,se=i.useCallback(G=>{y===void 0&&de(G),v==null||v(G)},[y,v]),[ue,O]=i.useState(""),[ae,ye]=i.useState(""),[re,le]=i.useState(()=>new Set),[he,Ne]=i.useState(()=>new Set),Ue=i.useMemo(()=>{if(!ue)return z[0];const G=ue.toLowerCase();return z[0].filter(F=>F.label.toLowerCase().includes(G))},[z,ue]),Ce=i.useMemo(()=>{if(!ae)return z[1];const G=ae.toLowerCase();return z[1].filter(F=>F.label.toLowerCase().includes(G))},[z,ae]),Ge=i.useCallback(()=>{if(re.size===0)return;const G=z[0].filter(W=>!re.has(W.value)),F=z[0].filter(W=>re.has(W.value));le(new Set),se([G,[...z[1],...F]])},[z,re,se]),Ie=i.useCallback(()=>{if(he.size===0)return;const G=z[1].filter(W=>!he.has(W.value)),F=z[1].filter(W=>he.has(W.value));Ne(new Set),se([[...z[0],...F],G])},[z,he,se]),Le=i.useCallback(()=>{z[0].length!==0&&(le(new Set),se([[],[...z[1],...z[0]]]))},[z,se]),to=i.useCallback(()=>{z[1].length!==0&&(Ne(new Set),se([[...z[0],...z[1]],[]]))},[z,se]),Pe=i.useCallback(G=>{le(F=>{const W=new Set(F);return W.has(G)?W.delete(G):W.add(G),W})},[]),Ve=i.useCallback(G=>{Ne(F=>{const W=new Set(F);return W.has(G)?W.delete(G):W.add(G),W})},[]),ge=(G,F,W,k,B,Z,pe,qe)=>{const{groups:no,ungrouped:j}=Pd(W),te=Object.keys(no).sort(),ne=B.size>0?`${B.size} / ${k.length}`:`${k.length}`;return o.jsxs("div",{className:be.pane,"data-pane":G,children:[o.jsxs("div",{className:be.paneHeader,children:[o.jsx("span",{children:F}),o.jsx(Wt,{children:ne})]}),E&&o.jsx("div",{className:be.paneSearch,children:o.jsx(dt,{value:pe,onChange:X=>qe(X.currentTarget.value),placeholder:A,disabled:L,"aria-label":`Filter ${F.toLowerCase()}`})}),o.jsxs("div",{className:be.paneList,children:[W.length===0&&o.jsx("div",{className:be.emptyState,children:"No items"}),j.length>0&&o.jsx(No,{children:j.map(X=>o.jsx(Co,{id:`${Y}-${G}-${X.value}`,label:X.label,checked:B.has(X.value),onChange:()=>Z(X.value),disabled:L},X.value))}),te.map(X=>o.jsx(No,{label:X,labelSize:"small",children:no[X].map(me=>o.jsx(Co,{id:`${Y}-${G}-${me.value}`,label:me.label,checked:B.has(me.value),onChange:()=>Z(me.value),disabled:L},me.value))},X))]})]})},He=K?`${be.layoutOverride} ${K}`:be.layoutOverride;return o.jsx(fe,{ref:n,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,description:h,helperText:b,assistiveWithIcon:x,error:$,required:C,id:Y,className:He,style:H,overStyled:t,readOnly:S,readOnlyComponent:g,emptyValueComponent:P,readOnlyType:"text",readOnlyValue:z[1].map(G=>G.label),readOnlyNativeProps:e,activeComponent:o.jsx("div",{...Q,className:be.root,"data-disabled":L?"true":void 0,"data-error":$?"true":void 0,children:o.jsxs("div",{className:be.panes,children:[ge("source",R,Ue,z[0],re,Pe,ue,O),o.jsxs("div",{className:be.transferColumn,children:[o.jsx(eo,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"right"}),"aria-label":`Move all to ${M}`,disabled:L||z[0].length===0,onClick:Le}),o.jsx(eo,{variant:"outline",size:"small",icon:o.jsx(gt,{direction:"right"}),"aria-label":`Move selected to ${M}`,disabled:L||re.size===0,onClick:Ge}),o.jsx(eo,{variant:"outline",size:"small",icon:o.jsx(gt,{direction:"left"}),"aria-label":`Move selected to ${R}`,disabled:L||he.size===0,onClick:Ie}),o.jsx(eo,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"left"}),"aria-label":`Move all to ${R}`,disabled:L||z[1].length===0,onClick:to})]}),ge("target",M,Ce,z[1],he,Ve,ae,ye)]})})})});ws.displayName="TransferList";const gd="Tree-module__root___ANcH3",wd="Tree-module__subtree___KoLT8",Td="Tree-module__node___Hvnjg",Sd="Tree-module__row___sq5ff",$d="Tree-module__label___zJDit",jd="Tree-module__expandButton___W0WTT",Rd="Tree-module__expandGlyph___w8dDQ",oo={root:gd,subtree:wd,node:Td,row:Sd,label:$d,expandButton:jd,expandGlyph:Rd};function Od(){return o.jsx("svg",{className:oo.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 kd(r){return function({node:n,hasChildren:t,expanded:s,selected:a,tree:l,elementProps:c}){return o.jsxs("div",{...c,className:oo.row,"data-has-children":t||void 0,"data-expanded":t&&s?!0:void 0,children:[o.jsx(eo,{overStyled:!0,variant:"text",size:"small",icon:o.jsx(Od,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:oo.expandButton,onMouseDown:d=>d.preventDefault(),onClick:d=>{d.stopPropagation(),!r&&l.toggleExpanded(n.value)}}),o.jsx("span",{className:oo.label,"data-selected":a||void 0,children:n.label})]})}}const Ts=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 N=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 b=i.useRef(null);i.useEffect(()=>{const S=b.current;if(!S)return;const g=P=>{if(l||P.key!=="Enter"&&P.key!==" ")return;const y=P.target.closest('[role="treeitem"]'),T=y==null?void 0:y.dataset.value;T&&(P.preventDefault(),h.select(T))};return S.addEventListener("keydown",g),()=>S.removeEventListener("keydown",g)},[h.select,l]),i.useEffect(()=>{const S=b.current;if(!S||!l)return;const g=P=>{P.preventDefault(),P.stopPropagation()};return S.addEventListener("keydown",g,{capture:!0}),()=>S.removeEventListener("keydown",g,{capture:!0})},[l]);const x=$s.useMergedRef(f,b),$=N,C=$.className,w=C?`${oo.root} ${C}`:oo.root;return o.jsx(u.Tree,{ref:x,...N,data:n,tree:h,expandOnClick:!1,selectOnClick:!l,expandOnSpace:!1,renderNode:kd(l),"data-disabled":l||void 0,classNames:D({root:w,node:oo.node,subtree:oo.subtree},$.classNames)})});Ts.displayName="Tree";const Id=nl,Ld=tn,Md=on,Ad=nn,Wd=Bi,zd=qt,Dd=fl,Ed=Tc,Fd=I(Wo),Bd=I(Qo),Ud=I(Mo),Gd=I(Ao),Vd=I(Io),Hd=I(Lt),qd=I(Or),Kd=I(Wt),Yd=I(zt),Zd=I(eo),Qd=I(Yr),Xd=I(Co),Jd=I(No),eu=I(Po),ou=I(Kt),tu=I(Yt),nu=I(Zt),su=I(Qt),ru=I(De),au=I(sn),lu=I(ot),iu=I(et),cu=I(Xo),du=I(lo),uu=I(Fe),pu=I(Sn),mu=I(Oe),_u=I(ke),fu=I(st),yu=I(rt),hu=I(lt),vu=I(at),xu=I(Jo),bu=I(Pi),Nu=I(Jn),Cu=I(sc),Pu=I(ct),gu=I(it),wu=I(Be),Tu=I(Pc),Su=I(hs),$u=I(dt),ju=I(xs),Ru=I(Ns),Ou=I(ut),ku=I(Cs),Iu=I(pt),Lu=I(ws),Mu=I(Ts);exports.Accordion=Fd;exports.AccordionControl=Ud;exports.AccordionItem=Bd;exports.AccordionPanel=Gd;exports.AssistiveElement=Vd;exports.AutoComplete=Hd;exports.Avatar=qd;exports.Badge=Kd;exports.Breadcrumb=Yd;exports.Button=Zd;exports.Card=Qd;exports.Checkbox=Xd;exports.CheckboxGroup=Jd;exports.Chip=eu;exports.Container=zd;exports.DatePicker=ou;exports.Dropdown=tu;exports.EmptyValueRenderer=bo;exports.FileInput=nu;exports.FileUpload=su;exports.Flex=Id;exports.FormControlLayout=ru;exports.Grid=Ld;exports.GridCol=Md;exports.Group=Ad;exports.Heading=au;exports.HoverCard=lu;exports.IS_DEV=ze;exports.Label=cu;exports.Layer=Ho;exports.Link=Dd;exports.Loader=iu;exports.Menu=du;exports.Modal=uu;exports.NumberInput=pu;exports.Pagination=mu;exports.Panel=_u;exports.PanelFooter=fu;exports.Popover=yu;exports.RECURSICA_COMPONENTS=Ls;exports.Radio=hu;exports.RadioGroup=vu;exports.ReadOnlyField=xu;exports.RecursicaThemeProvider=Is;exports.SegmentedControl=bu;exports.Slider=Nu;exports.Stack=Wd;exports.Stepper=Cu;exports.Switch=Pu;exports.SwitchGroup=gu;exports.Table=wu;exports.Tabs=Tu;exports.Text=Ed;exports.TextArea=Su;exports.TextField=$u;exports.TimePicker=ju;exports.Timeline=Ru;exports.TimelineItem=Ou;exports.Toast=ku;exports.Tooltip=Iu;exports.TransferList=Lu;exports.Tree=Mu;exports.copyToClipboard=Ms;exports.fileMatchesAccept=Yo;exports.injectOverStyledStyles=qo;exports.isGlobalOverStyledActive=ks;exports.mergeClassNames=D;exports.mergeStyles=jt;exports.normalizeComboboxData=Zo;exports.omitUnsupportedProps=U;exports.registerOverStyledConsoleCommand=Ko;exports.toggleGlobalOverStyled=St;exports.useGlobalOverStyled=$t;exports.withCallerOverride=ce;exports.wrapComponent=I;
|
|
12
12
|
//# sourceMappingURL=mantine-adapter.cjs.map
|