@recursica/adapter-mantine-v8 1.0.1 → 1.0.2
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 +8 -0
- package/OVERSTYLING.md +0 -12
- package/dist/adapter-mantine-v8.cjs +2 -2
- package/dist/adapter-mantine-v8.cjs.map +1 -1
- package/dist/adapter-mantine-v8.js +1998 -2041
- package/dist/adapter-mantine-v8.js.map +1 -1
- package/dist/index.d.ts +245 -755
- package/package.json +1 -1
- package/src/Introduction.stories.tsx +2 -7
- package/src/components/RecursicaThemeProvider/USAGE.md +0 -6
- package/src/components/index.ts +18 -0
- package/src/index.ts +1 -177
- package/src/OverStyling.tsx +0 -79
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @recursica/adapter-mantine-v8
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 246b87f: Removed `wrapComponent` and the `overStyled` dev-mode highlight/console-toggle usage — overly complicated for what it did. Components are now exported directly, unwrapped. The `overStyled={true}` escape-hatch prop is unchanged. Dropped the "Over Styling" Storybook story and the matching sections of `OVERSTYLING.md`/`RecursicaThemeProvider`'s `USAGE.md` that described the removed console command.
|
|
8
|
+
|
|
9
|
+
Also simplified `src/index.ts`: it now just imports `@recursica/adapter-common/style.css` and re-exports `./components`, instead of manually re-exporting every component by name. `src/components/index.ts` re-exports `@recursica/adapter-common` directly. No consumer-facing behavior change beyond the removed dev-mode highlight.
|
|
10
|
+
|
|
3
11
|
## 1.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/OVERSTYLING.md
CHANGED
|
@@ -42,15 +42,3 @@ Available Recursica layout tokens:
|
|
|
42
42
|
Unlike complex UI components (Buttons, Tabs, Inputs) which are strictly protected, **Primitive Layout Components** (`Flex`, `Stack`, `Group`, `Container`, `Grid`) are entirely exempt from the `RecursicaOverStyled` gatekeeper.
|
|
43
43
|
|
|
44
44
|
Because the entire functional purpose of these components is structural layout composition, developers are free to pass any standard Mantine width, height, padding, margin, gap, and alignment property directly to them without needing to flag `overStyled={true}`. The internal custom token mapper (such as converting `gap="rec-md"`) is still active natively on these wrappers.
|
|
45
|
-
|
|
46
|
-
## Visual Auditing & Highlights (Development Only)
|
|
47
|
-
|
|
48
|
-
To make it easy to spot technical debt and design system violations, Recursica automatically tracks any component that uses the `overStyled={true}` prop.
|
|
49
|
-
|
|
50
|
-
In **development builds**, you can highlight all over-styled components on the page. Open your browser's developer console and run:
|
|
51
|
-
|
|
52
|
-
```js
|
|
53
|
-
recursica.toggleOverStyled();
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
This toggles a **cyan 2px box shadow** outline around the children of all over-styled components. The wrapping elements use `display: contents` under the hood to ensure they occupy zero DOM space and do not affect flex, grid, or absolute positioning flow. In production builds, this debugging helper is completely disabled and stripped with zero performance overhead.
|
|
@@ -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"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),u=require("@mantine/core"),Uo=require("@mantine/dates"),Oa=require("@mantine/hooks");var Eo=typeof document<"u"?document.currentScript:null;const ka="_root_1qhn7_3",Ia="_contents_1qhn7_18",lo={root:ka,contents:Ia},Go=i.forwardRef(function({layer:r,contentsOnly:e,children:n,className:t,style:a,...s},l){const c=e?t?`${lo.root} ${lo.contents} ${t}`:`${lo.root} ${lo.contents}`:t?`${lo.root} ${t}`:lo.root;return o.jsx("div",{ref:l,className:c,style:a,...e?{}:{"data-recursica-layer":String(r)},...s,children:n})});Go.displayName="Layer";const No=({emptyText:r="N/A"})=>o.jsx(i.Fragment,{children:r});No.displayName="EmptyValueRenderer";No.check=r=>r==null||r===""||Array.isArray(r)&&r.length===0;const La={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"},$e=(()=>{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:Eo&&Eo.tagName.toUpperCase()==="SCRIPT"&&Eo.src||new URL("adapter-mantine-v8.cjs",document.baseURI).href}&&La)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})(),Vo=new Set;let Qe=!1;function Gt(r){if(!$e)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(Qe=r!==void 0?r:!Qe,typeof document<"u"){const e=document.documentElement,n=Qe?"0 0 0 2px cyan":"none";e.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${Qe?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return Vo.forEach(e=>e()),Qe}function Ma(){return $e&&Qe}function qt(){const[r,e]=i.useState(Qe);return i.useEffect(()=>{if(!$e)return;qo(),Ko();const n=()=>e(Qe);return Vo.add(n),()=>{Vo.delete(n)}},[]),$e&&r}function qo(){if(!$e)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 Yo(){if(!Oe)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const s=e=>{try{e.recursica=e.recursica||{},e.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${St()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};s(window),window.parent&&window.parent!==window&&s(window.parent)}function jt(s){const e=i.Children.toArray(s),n=e.length-1;return e.map((t,r)=>{if(r!==n||!i.isValidElement(t))return t;const a=t.props,l=a.href!==void 0||a.onClick!==void 0;return Oe&&l&&console.warn(`[Breadcrumb] The last item represents the current page and should be plain, non-interactive text (e.g. a <span>), not a link. Breadcrumb stripped its href/onClick and added aria-current="page", but this can't stop a custom Link component (e.g. a router Link) that navigates from its own internal handler rather than these props.`),i.cloneElement(t,{"aria-current":"page",...l?{href:void 0,onClick:void 0,tabIndex:-1}:{}})})}const vt="data-recursica-theme";function Lr({children:s,theme:e="light",initLayer0:n=!0}){return i.useEffect(()=>{const t=document.documentElement;return t.setAttribute(vt,e),()=>{t.removeAttribute(vt)}},[e]),i.useEffect(()=>{Ko(),Yo()},[]),n?o.jsx(qo,{layer:0,children:s}):o.jsx(o.Fragment,{children:s})}const Mr=["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"],Ar=(s,e)=>{const n=document.activeElement;return new Promise((t,r)=>{if(e&&e.current){const a=document.createElement("textarea");a.readOnly=!0,a.defaultValue=s,e.current.appendChild(a),a.select();const l=document.execCommand("copy");e.current.removeChild(a),n&&n.focus(),l?t():r(new Error("Failed to copy"))}else r(new Error("Copy area reference is not defined"))})};function Zo(s,e){const n=(e??"").split(",").map(a=>a.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;const t=s.name.toLowerCase(),r=s.type.toLowerCase();return n.some(a=>a.startsWith(".")?t.endsWith(a):a.endsWith("/*")?r.startsWith(a.slice(0,-1)):r===a)}function D(s,e){if(!e)return s;const n={...s},t=new Set([...Object.keys(s),...Object.keys(e)]);for(const r of t){const a=s[r],l=e[r];n[r]=[a,l].filter(Boolean).join(" ")||void 0}return n}function Rt(s,e){if(!e)return s;const n={...s},t=new Set([...Object.keys(s),...Object.keys(e)]);for(const r of t){const a=s[r],l=e[r];n[r]=a||l?{...a,...l}:void 0}return n}function Xo(s){return s==null?void 0:s.map(e=>typeof e=="string"?e:{...e,label:e.label??e.value})}function U(s,e){const n={...s};for(const t of e)t in n&&delete n[t];return n}function ce(s,e){return e!==void 0?e:s}const Wr=Symbol.for("react.forward_ref"),zr=Symbol.for("react.memo");function Ot(s){return s?s.prototype&&s.prototype.isReactComponent||s.$$typeof===Wr?!0:s.$$typeof===zr?Ot(s.type):!1:!1}function I(s){if(!Oe||typeof s!="function"&&!(s&&s.$$typeof))return s;const e=Ot(s),n=s.displayName||s.name||"Component",t=i.forwardRef((a,l)=>{const{overStyled:c}=a,d=$t();Oe&&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(s,p);return c&&d?o.jsx("div",{className:"recursica-over-styled",children:_}):_});t.displayName=s.displayName||s.name||"Component";const r=Object.keys(s);for(const a of r){if(a==="render"||a==="$$typeof")continue;const l=s[a];(typeof l=="function"||l&&l.$$typeof)&&a[0]===a[0].toUpperCase()?t[a]=I(l):t[a]=l}return t}const Dr=["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"],kt=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(s){const e={...s};for(const[n,t]of Object.entries(e))typeof t=="string"&&t.startsWith("rec-")&&kt.has(n)&&t in ko&&(e[n]=ko[t]);return e}function m(s,e){if(e)return s;const n={...s};for(const t of Dr)t in n&&delete n[t];for(const[t,r]of Object.entries(n))typeof r=="string"&&r.startsWith("rec-")&&kt.has(t)&&r in ko&&(n[t]=ko[r]);return n}const Er="Accordion-module__root___Dem6d",Fr="Accordion-module__item___7ryVk",Br="Accordion-module__noDivider___Ni2tT",Ur="Accordion-module__control___b4wgX",Gr="Accordion-module__label___Ss7uW",Vr="Accordion-module__icon___xfHxX",Hr="Accordion-module__chevron___i-HVZ",qr="Accordion-module__iconLeftWrapper___5oLen",Kr="Accordion-module__panel___Wx50w",Yr="Accordion-module__content___PEM9t",$e={root:Er,item:Fr,noDivider:Br,control:Ur,label:Gr,icon:Vr,chevron:Hr,iconLeftWrapper:qr,panel:Kr,content:Yr},xt={default:"unstyled"},It=function({variant:e="default",overStyled:n=!1,...t}){const r=typeof e=="string"&&xt[e]?xt[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:r,className:d,classNames:c})};It.displayName="Accordion";const Qo=i.forwardRef(function({title:e,leftIcon:n,divider:t=!0,children:r,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:r})]}):r})});Qo.displayName="AccordionItem";const Zr=["icon"],Mo=i.forwardRef(function({leftIcon:e,children:n,overStyled:t=!1,...r},a){const l=U(m(r,t),Zr),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 r=m(n,e),a=r.className;return o.jsx(u.Accordion.Panel,{ref:t,...r,className:a})});Ao.displayName="AccordionPanel";const Wo=It;Wo.Item=Qo;Wo.Control=Mo;Wo.Panel=Ao;const Xr="AssistiveElement-module__root___WhQ43",Qr="AssistiveElement-module__textWrapper___sfy5E",Jr="AssistiveElement-module__iconWrapper___gObRF",Bo={root:Xr,textWrapper:Qr,iconWrapper:Jr},es=()=>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"})]}),os=()=>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:r,role:a,overStyled:l=!1,...c},d){const _=m(c,l),f=Bo.root,N=r?`${f} ${r}`:f,h=e==="error"?os:es,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 ts="Label-module__root___e6HXZ",ns="Label-module__labelText___rieFR",rs="Label-module__required___Ggrzc",ss="Label-module__optionalText___Y2yun",as="Label-module__actionAreaWrapper___ELoZK",ls="Label-module__editIconWrapper___NG2xW",Ke={root:ts,labelText:ns,required:rs,optionalText:ss,actionAreaWrapper:as,editIconWrapper:ls},Jo=i.forwardRef(function({labelSize:e="default",labelAlignment:n,required:t=!1,labelOptionalText:r,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:c,children:d,overStyled:p=!1,..._},f){const N=n||"left";let h;t||(r===!0?h="optional":r&&(h=r));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]})});Jo.displayName="Label";const is="FormControlLayout-module__root___yNDhZ",cs="FormControlLayout-module__leftSection___GBM1r",ds="FormControlLayout-module__rightSection___bcL4v",So={root:is,leftSection:cs,rightSection:ds},De=i.forwardRef(function({formLayout:e="stacked",labelSize:n="default",controlMaxWidth:t,controlMinWidth:r,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}:{},...r?{"--form-control-min-width":r}:{}},...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 us="FormControlWrapper-module__root___c-UHo",ps="FormControlWrapper-module__inputSection___HenXk",bt={root:us,inputSection:ps},uo=i.forwardRef(function({formLayout:e,labelSize:n,labelAlignment:t,labelOptionalText:r,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,W=E?`${R}-assistive`:void 0,L=b?`${R}-error`:void 0,H=m(y,g),q=S||H.className,X=bt.root,V=q?`${X} ${q}`:X,Y=i.isValidElement(w)?i.cloneElement(w,{...w.props.id?{}:{id:R},"aria-labelledby":M,...E&&!w.props["aria-describedby"]?{"aria-describedby":W}:{},...b&&!w.props["aria-errormessage"]?{"aria-errormessage":L}:{}}):w,J=d?o.jsx(Jo,{id:M,htmlFor:R,labelAlignment:t,labelOptionalText:r,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:bt.inputSection,children:[Y,b&&o.jsx(Io,{id:L,assistiveVariant:"error",assistiveWithIcon:f,children:b}),!b&&E&&o.jsx(Io,{id:W,assistiveVariant:"help",assistiveWithIcon:f,children:E})]})})});uo.displayName="FormControlWrapper";const ms="ReadOnlyField-module__layoutOverride___9fSsG",_s="ReadOnlyField-module__textField___qKn25",Lo={layoutOverride:ms,textField:_s},Oo=({value:s,overStyled:e=!1,...n})=>{const t=m(n,e),r=t.className;return o.jsx(u.Box,{component:"p",...t,className:r?`${Lo.textField} ${r}`:Lo.textField,children:s!=null?i.isValidElement(s)?s:Array.isArray(s)?s.join(", "):String(s):""})};Oo.displayName="ReadOnlyTextField";const et=i.forwardRef(function({value:e,type:n="text",emptyValueComponent:t,overStyled:r=!1,className:a,style:l,...c},d){let p=null;const _=m(c,r),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:r});break;case"switch":p=o.jsx(Oo,{value:e===!0?"On":e===!1?"Off":h,overStyled:r});break;case"text":default:p=o.jsx(Oo,{value:h,overStyled:r});break}const b=a?`${Lo.layoutOverride} ${a}`:Lo.layoutOverride;return o.jsx(uo,{ref:d,..._,overStyled:r,className:b,style:l,children:p})});et.displayName="ReadOnlyField";const fe=i.forwardRef(function({readOnly:e,readOnlyComponent:n,readOnlyType:t="text",readOnlyValue:r,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(et,{ref:f,..._,type:t,value:r,emptyValueComponent:l,onLabelEditClick:p,overStyled:d})}return o.jsx(uo,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:c})});fe.displayName="WithReadOnlyWrapper";function Lt({option:s},e,n=!1){const{label:t,leadingIcon:r,supportingText:a}=s,l=t??s.value;if(!r&&!a)return l;const c=n?`${e.optionText} ${e.optionTextWrap}`:e.optionText;return o.jsxs("span",{className:e.optionContent,children:[r&&o.jsx("span",{className:e.optionIcon,children:r}),o.jsxs("span",{className:c,children:[o.jsx("span",{children:l}),a&&o.jsx("span",{className:e.optionSupportingText,children:a})]})]})}const fs="AutoComplete-module__layoutOverride___-K9WL",ys="AutoComplete-module__root___kANza",hs="AutoComplete-module__input___g51MC",vs="AutoComplete-module__section___WAbf1",xs="AutoComplete-module__dropdown___NqO3E",bs="AutoComplete-module__option___Y-Kja",Ns="AutoComplete-module__optionContent___UAkUA",Cs="AutoComplete-module__optionIcon___tbbmW",Ps="AutoComplete-module__optionText___aQwHF",gs="AutoComplete-module__optionTextWrap___RFICS",ws="AutoComplete-module__optionSupportingText___OoA1N",ve={layoutOverride:fs,root:ys,input:hs,section:vs,dropdown:xs,option:bs,optionContent:Ns,optionIcon:Cs,optionText:Ps,optionTextWrap:gs,optionSupportingText:ws},Ts=["size","variant","radius"],Mt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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,...W}=e,L=U(m(W,t),Ts),K=L,H=Xo(R),q=D({wrapper:ve.root,input:ve.input,section:ve.section,dropdown:ve.dropdown,option:ve.option},K.classNames),X={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:r,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=>Lt(Y,X,E))})})});Mt.displayName="AutoComplete";const Ss="Avatar-module__root___fXu-J",$s="Avatar-module__iconWrapper___ojly2",js="Avatar-module__textWrapper___zp-jD",Rs="Avatar-module__image___ieqGp",Os="Avatar-module__placeholder___IDW7-",po={root:Ss,iconWrapper:$s,textWrapper:js,image:Rs,placeholder:Os},At=i.forwardRef(function({size:e="default",variant:n="solid",icon:t,children:r,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}):r!=null?o.jsx("span",{className:po.textWrapper,children:r}):void 0})});At.displayName="Avatar";const ks=u.createPolymorphicComponent(At),Is="Badge-module__root___5osNT",mo={root:Is},Wt=i.forwardRef(function({variant:e="primary-color",overStyled:n=!1,...t},r){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:r,...a,variant:"filled","data-variant":e,className:d,classNames:l})});Wt.displayName="Badge";const zt=u.createPolymorphicComponent(Wt),Ls="Breadcrumb-module__root___x-9ln",Ms="Breadcrumb-module__separator___qrUX-",$o={root:Ls,separator:Ms},Dt=i.forwardRef(function({overStyled:e=!1,separator:n=">",children:t,...r},a){const l=m({separator:n,children:jt(t),...r},e),c=D({root:$o.root,separator:$o.separator},l.classNames),d=l.attributes,p={...d,separator:{"aria-hidden":!0,...d==null?void 0:d.separator}},_=l.className,f=_?`${$o.root} ${_}`:$o.root;return o.jsx(u.Breadcrumbs,{ref:a,...l,className:f,classNames:c,attributes:p})});Dt.displayName="Breadcrumb";const As="Loader-module__root___6iYOP",Uo={root:As},ot=i.forwardRef(function({variant:e="oval",size:n="default",animate:t=!0,overStyled:r=!1,...a},l){const d={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",p=m(a,r),_=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})});ot.displayName="Loader";const Ws="Button-module__root___Q2R8-",zs="Button-module__loader___X-9u-",Ds="Button-module__label___UJ3Zt",Es="Button-module__labelText___rFV5p",Fs="Button-module__iconWrapper___uEKPa",Bs="Button-module__section___f2mKr",Ye={root:Ws,loader:zs,label:Ds,labelText:Es,iconWrapper:Fs,section:Bs};function Us(s){return s==null||s===""?!1:typeof s=="string"?s.trim()!=="":!0}const Et=i.forwardRef(function({variant:e="solid",size:n="default",icon:t,children:r,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=Us(r),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(ot,{variant:l,size:R,overStyled:!0,color:"var(--button-color)"}),...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:r})})});Et.displayName="Button";const eo=u.createPolymorphicComponent(Et),Gs="Card-module__root___c9KvZ",Vs="Card-module__header___PTXf2",Hs="Card-module__footer___Mu-JC",qs="Card-module__section___BRT8H",Ks="Card-module__content___oFIQa",Ee={root:Gs,header:Vs,footer:Hs,section:qs,content:Ks},Ys=["radius","withBorder","padding"],Ft=i.forwardRef(function({overStyled:e=!1,...n},t){const r=U(m(n,e),Ys);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in n&&!(d in r)&&(r[d]=n[d])});const l=D({root:Ee.root},r.classNames),c=r.className;return o.jsx(u.Card,{ref:t,...r,className:c,classNames:l})});Ft.displayName="Card";const Bt=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r.className;return o.jsx(u.Card.Section,{ref:t,...r,className:a?`${Ee.section} ${a}`:Ee.section})});Bt.displayName="CardSection";const Ut=["withBorder","inheritPadding"],Gt=i.forwardRef(function({overStyled:e=!1,...n},t){const r=U(m(n,e),Ut),a=r.className;return o.jsx(u.Card.Section,{ref:t,...r,className:a?`${Ee.header} ${a}`:Ee.header})});Gt.displayName="CardHeader";const Vt=i.forwardRef(function({overStyled:e=!1,...n},t){const r=U(m(n,e),Ut),a=r.className;return o.jsx(u.Card.Section,{ref:t,...r,className:a?`${Ee.footer} ${a}`:Ee.footer})});Vt.displayName="CardFooter";const Ht=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r.className;return o.jsx("div",{ref:t,...r,className:a?`${Ee.content} ${a}`:Ee.content})});Ht.displayName="CardContent";const qt=u.createPolymorphicComponent(Ft),zo=qt;zo.Section=Bt;zo.Header=Gt;zo.Footer=Vt;zo.Content=Ht;const Zs=qt,Xs="Checkbox-module__groupRoot___cBS0o",Qs="Checkbox-module__root___mY3qk",Js="Checkbox-module__body___5yC7q",ea="Checkbox-module__inner___rTke4",oa="Checkbox-module__input___2kt-h",ta="Checkbox-module__icon___-O7i6",na="Checkbox-module__labelWrapper___GpZkr",ra="Checkbox-module__label___cwRtI",Te={groupRoot:Xs,root:Qs,body:Js,inner:ea,input:oa,icon:ta,labelWrapper:na,label:ra},No=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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"],W=U(m(M,t),E),L=W,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:r,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,...W,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:Te.groupRoot,"data-layout":r,children:g})}):o.jsx("div",{ref:n,...W,role:"group",className:Te.groupRoot,"data-layout":r,children:g})})});No.displayName="CheckboxGroup";const Co=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:r,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(r&&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:r||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",aa="Chip-module__label___Ov9pg",la="Chip-module__mantineIconWrapper___KLSz6",ia="Chip-module__innerWrapper___EnrTF",ca="Chip-module__children___zbRAR",da="Chip-module__leadingIcon___JBtjQ",ua="Chip-module__deleteIcon___zPPsH",we={root:sa,label:aa,mantineIconWrapper:la,innerWrapper:ia,children:ca,leadingIcon:da,deleteIcon:ua};function pa(s){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",...s,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:r="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":r,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation(),t(v))},tabIndex:a??0,children:o.jsx(pa,{})})]})})});Po.displayName="Chip";const ma="Container-module__root___UVssr",_o={root:ma},Kt=i.forwardRef(function({children:e,size:n,...t},r){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:r,size:l,className:_,classNames:c,...t,children:e})});Kt.displayName="Container";function _a(s){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...s,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 fa="DatePicker-module__layoutOverride___X9yaM",ya="DatePicker-module__root___6XvRT",ha="DatePicker-module__input___pcSW8",va="DatePicker-module__section___n3iWA",xa="DatePicker-module__dropdown___wjt08",ba="DatePicker-module__calendarHeader___KHxno",Na="DatePicker-module__calendarHeaderControl___q7UvJ",Ca="DatePicker-module__calendarHeaderLevel___ebdJ2",Pa="DatePicker-module__calendarHeaderControlIcon___2tZOb",ga="DatePicker-module__weekday___H5lIj",wa="DatePicker-module__day___U03J2",xe={layoutOverride:fa,root:ya,input:ha,section:va,dropdown:xa,calendarHeader:ba,calendarHeaderControl:Na,calendarHeaderLevel:Ca,calendarHeaderControlIcon:Pa,weekday:ga,day:wa},Ta=["size","variant","radius","description"],Yt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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:W,...L}=e,K=U(m(L,t),Ta),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),X=H.popoverProps,V=X&&typeof X=="object"&&!Array.isArray(X)?X: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:r,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:(()=>{const A=T!==void 0?T:v;return A?Go.getFormattedDate({type:"default",date:A,locale:"en",format:M,labelSeparator:""}):void 0})(),readOnlyNativeProps:e,activeComponent:o.jsx(Go.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(_a,{}),W),wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0},popoverProps:J})})});Yt.displayName="DatePicker";const Sa="Dropdown-module__layoutOverride___FNcvP",$a="Dropdown-module__root___uVyL0",ja="Dropdown-module__input___dK4dN",Ra="Dropdown-module__section___j3MRB",Oa="Dropdown-module__clearButton___ODnIa",ka="Dropdown-module__dropdown___gG-Sw",Ia="Dropdown-module__option___nAGU-",La="Dropdown-module__optionContent___QTwwg",Ma="Dropdown-module__optionIcon___2L56h",Aa="Dropdown-module__optionText___cCDpI",Wa="Dropdown-module__optionTextWrap___L4OPI",za="Dropdown-module__optionSupportingText___2JIOV",oe={layoutOverride:Sa,root:$a,input:ja,section:Ra,clearButton:Oa,dropdown:ka,option:Ia,optionContent:La,optionIcon:Ma,optionText:Aa,optionTextWrap:Wa,optionSupportingText:za},Da=["size","variant","radius","searchable"],Zt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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:W,wrapItemText:L=!1,...K}=e,H=U(m(K,t),Da),q=H,X=Xo(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},A={...S||{},width:a||"100%"},re=w?`${oe.layoutOverride} ${w}`:oe.layoutOverride;return o.jsx(fe,{className:re,style:A,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:t,formLayout:r,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:X||[],renderOption:W??(ue=>Lt(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}}})})});Zt.displayName="Dropdown";const Ea="FileInput-module__layoutOverride___HIOY6",Fa="FileInput-module__root___UvQj-",Ba="FileInput-module__leadingIcon___z75c4",Ua="FileInput-module__content___Udsvh",Ga="FileInput-module__value___RX33R",Va="FileInput-module__chipRow___My6TF",Ha="FileInput-module__chipWrapper___q2CDy",qa="FileInput-module__trailingIcon___odGPm",Ae={layoutOverride:Ea,root:Fa,leadingIcon:Ba,content:Ua,value:Ga,chipRow:Va,chipWrapper:Ha,trailingIcon:qa};function Ka(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[o.jsx("path",{d:"M12 3v12"}),o.jsx("path",{d:"M7 8l5-5 5 5"}),o.jsx("path",{d:"M4 21h16"})]})}function Ya(){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 Xt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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:W,onFilesRejected:L,invalidFileTypeMessage:K="File type not accepted",maxFilesMessage:H=M?`Maximum of ${W} files allowed`:"Only one file is allowed",icon:q,clearIcon:X,placeholder:V="Select a file...",browseLabel:Y="Choose file",removeFileLabel:J="Remove",clearLabel:de="Clear",...A}=e,ue=m(A,t),O=!g&&!P,ae=!!y&&y.length>0,ye=i.useRef(null),[se,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?W:1,Q=M?(y==null?void 0:y.length)??0:0,me=[],To=[];let _t=!1,ft=!1;for(const Eo of te){const yt=!Zo(Eo,R);yt&&(_t=!0);const $r=E!==void 0&&Eo.size>E,ht=ne!==void 0&&Q+me.length>=ne;ht&&(ft=!0),(yt||$r||ht?To:me).push(Eo)}le(_t),Ne(ft),me.length>0&&(T==null||T(me)),To.length>0&&(L==null||L(To))},Ce=i.useRef(0),[Ge,Le]=i.useState(!1),Me=j=>{j.preventDefault(),Ce.current+=1,Le(!0)},to=j=>{j.preventDefault(),Ce.current-=1,Ce.current<=0&&(Ce.current=0,Le(!1))},Pe=j=>{j.preventDefault()},Ve=j=>{j.preventDefault(),Ce.current=0,Le(!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))},[z,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(z,j-1);k(ne),(te=B.current[ne])==null||te.focus()}Z.current=j},[y]);const pe=j=>{var Q;const te=(y==null?void 0:y.length)??0;if(te===0)return;let ne;j.key==="ArrowRight"||j.key==="ArrowDown"?ne=(z+1)%te:(j.key==="ArrowLeft"||j.key==="ArrowUp")&&(ne=(z-1+te)%te),ne!==void 0&&(j.preventDefault(),j.stopPropagation(),k(ne),(Q=B.current[ne])==null||Q.focus())},qe=b??(se?K:he?H:void 0),no=w?`${Ae.layoutOverride} ${w}`:Ae.layoutOverride;return o.jsx(uo,{overStyled:t,className:no,style:S,formLayout:r,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:Ae.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?Me:void 0,onDragLeave:O?to:void 0,onDragOver:O?Pe:void 0,onDrop:O?Ve:void 0,children:[o.jsx("span",{className:Ae.leadingIcon,"aria-hidden":!0,children:q??o.jsx(Ka,{})}),o.jsxs("div",{className:Ae.content,children:[!ae&&o.jsx("span",{className:Ae.value,"data-placeholder":"true",children:V}),ae&&o.jsx("div",{className:Ae.chipRow,onKeyDown:P?void 0:pe,children:y.map((j,te)=>{const ne=j.id??j.file.name;return o.jsx("span",{className:Ae.chipWrapper,onClick:Q=>Q.stopPropagation(),children:o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:P?void 0:J,deleteTabIndex:!P&&te===z?0:-1,deleteIconRef:Q=>{B.current[te]=Q},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:X??o.jsx(Ya,{}),"aria-label":de,className:Ae.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})]})})});Xt.displayName="FileInput";const Za="FileUpload-module__layoutOverride___bPpi8",Xa="FileUpload-module__root___Q-vcm",Qa="FileUpload-module__dropzone___jqua0",Ja="FileUpload-module__uploadIcon___bb3Nc",el="FileUpload-module__dropzoneText___L7vS-",ol="FileUpload-module__fileList___XIWLl",Ze={layoutOverride:Za,root:Xa,dropzone:Qa,uploadIcon:Ja,dropzoneText:el,fileList:ol};function tl(){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:r="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:W,onFilesRejected:L,invalidFileTypeMessage:K="File type not accepted",maxFilesMessage:H=`Maximum of ${W} files allowed`,icon:q,dropzoneLabel:X="Drag and drop files here to upload",browseButtonLabel:V="Browse files",removeFileLabel:Y="Remove",...J}=e,A=m(J,t),re=i.useRef(null),[ue,O]=i.useState(!1),[ae,ye]=i.useState(!1),se=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=!Zo(te,R);ne&&(no=!0);const Q=E!==void 0&&te.size>E,me=W!==void 0&&Z+pe.length>=W;me&&(j=!0),(ne||Q||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()},Le=k=>{k.preventDefault(),le.current=0,Ne(!1),se(k.dataTransfer.files)},Me=()=>{var k;g||(k=re.current)==null||k.click()},to=k=>{k.target.files&&se(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),z=w?`${Ze.layoutOverride} ${w}`:Ze.layoutOverride;return o.jsx(uo,{overStyled:t,className:z,style:S,formLayout:r,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,...A,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:Le,children:[o.jsx("span",{className:Ze.uploadIcon,children:q??o.jsx(tl,{})}),o.jsx("span",{className:Ze.dropzoneText,children:X}),o.jsx(eo,{variant:"outline",disabled:g,onClick:Me,children:V}),o.jsx("input",{ref:re,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 nl="Flex-module__root___yYser",fo={root:nl},Jt=i.forwardRef(function({children:e,gap:n="rec-default",rowGap:t,columnGap:r,...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:r,...a}),children:e})});Jt.displayName="Flex";const rl=u.createPolymorphicComponent(Jt),sl="Grid-module__root___s-qPY",al="Grid-module__col___tbuNg",je={root:sl,col:al},en=i.forwardRef(function({children:e,gutter:n="rec-default",...t},r){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:r,gutter:p,className:d,classNames:a,..._,children:e})});en.displayName="Grid";const ll=u.createPolymorphicComponent(en),on=i.forwardRef(function({children:e,...n},t){const r={col:je.col},a=n.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const d=a;r.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:r,...go(n),children:e})});on.displayName="GridCol";const tn=u.createPolymorphicComponent(on),nn=ll;nn.Col=tn;const il="Group-module__root___ftO64",yo={root:il},rn=i.forwardRef(function({children:e,gap:n="rec-default",...t},r){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:r,className:d,classNames:a,...go({gap:n,...t}),children:e})});rn.displayName="Group";const cl="Heading-module__root___-To4U",dl={root:cl},sn=i.forwardRef(function({overStyled:e=!1,order:n=1,...t},r){const a=["size"],l=U(m(t,e),a),c=l.className,p=[`recursica_brand_typography_h${n}`,dl.root,c].filter(Boolean).join(" ");return o.jsx(u.Title,{ref:r,...l,order:n,className:p})});sn.displayName="Heading";const ul="HoverCard-module__dropdown___FBPFW",pl="HoverCard-module__arrow___S9AkE",Nt={dropdown:ul,arrow:pl},an=function({overStyled:e=!1,withBeak:n=!0,position:t="top",arrowSize:r=16,withArrow:a,...l}){const c=m(l,e),d=c,p=D({dropdown:Nt.dropdown,arrow:Nt.arrow},d.classNames),_=n??a;return o.jsx(u.HoverCard,{...c,position:t,arrowSize:r,withArrow:_,classNames:p})};an.displayName="HoverCard";const ln=function(e){return o.jsx(u.HoverCard.Target,{...e})};ln.displayName="HoverCardTarget";const cn=function({overStyled:e=!1,...n}){const t=m(n,e),r=t.className;return o.jsx(u.HoverCard.Dropdown,{...t,className:r})};cn.displayName="HoverCardDropdown";const tt=an;tt.Target=ln;tt.Dropdown=cn;const ml="Link-module__root___I0VGE",_l="Link-module__iconWrapper___W-LlF",fl="Link-module__labelText___wSvUy",ho={root:ml,iconWrapper:_l,labelText:fl},dn=i.forwardRef(function({icon:e,children:n,overStyled:t=!1,...r},a){const l=m(r,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})]})});dn.displayName="Link";const yl=u.createPolymorphicComponent(dn),hl="Menu-module__dropdown___j4xuA",vl="Menu-module__item___NMXha",xl="Menu-module__itemLabel___zvcqC",bl="Menu-module__itemSection___pRIcn",Nl="Menu-module__divider___wPiNq",Cl="Menu-module__label___4FBGa",Pl="Menu-module__chevron___hEEiy",ro={dropdown:hl,item:vl,itemLabel:xl,itemSection:bl,divider:Nl,label:Cl,chevron:Pl},un=function({overStyled:e=!1,...n}){const r=m(n,e),{maxHeight:a,...l}=r,c=D({dropdown:ro.dropdown,item:ro.item,itemLabel:ro.itemLabel,itemSection:ro.itemSection,divider:ro.divider,label:ro.label,chevron:ro.chevron},r.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}:{}})};un.displayName="Menu";const pn=function({overStyled:e=!1,...n}){const t=m(n,e);return o.jsx(u.Menu.Target,{...t})};pn.displayName="MenuTarget";const mn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r.className;return o.jsx(u.Menu.Dropdown,{...r,ref:t,className:a})});mn.displayName="MenuDropdown";const _n=i.forwardRef(function({overStyled:e=!1,...n},t){const r=["color"],a=U(m(n,e),r),c=a.className;return o.jsx(u.Menu.Item,{...a,ref:t,className:c})});_n.displayName="MenuItem";const gl=u.createPolymorphicComponent(_n),fn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r.className;return o.jsx(u.Menu.Divider,{...r,ref:t,className:a})});fn.displayName="MenuDivider";const yn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r.className;return o.jsx(u.Menu.Label,{...r,ref:t,className:a})});yn.displayName="MenuLabel";const hn=function(e){return o.jsx(u.Menu.Sub,{...e})};hn.displayName="MenuSub";const vn=function(e){return o.jsx(u.Menu.Sub.Target,{...e})};vn.displayName="MenuSubTarget";const xn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=["color"],a=U(m(n,e),r),c=a.className;return o.jsx(u.Menu.Sub.Item,{...a,ref:t,className:c})});xn.displayName="MenuSubItem";const wl=u.createPolymorphicComponent(xn),bn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r.className;return o.jsx(u.Menu.Sub.Dropdown,{...r,ref:t,className:a})});bn.displayName="MenuSubDropdown";const Do=hn;Do.Target=vn;Do.Item=wl;Do.Dropdown=bn;const lo=un;lo.Target=pn;lo.Dropdown=mn;lo.Item=gl;lo.Divider=fn;lo.Label=yn;lo.Sub=Do;const Tl="Modal-module__root___ytPLl",Sl="Modal-module__inner___SSUJE",$l="Modal-module__content___dWO-B",jl="Modal-module__header___ILG9i",Rl="Modal-module__title___A5OeE",Ol="Modal-module__bodyWrapper___5CCL-",kl="Modal-module__scrollArea___KD-hm",Il="Modal-module__footer___rro2w",Ll="Modal-module__close___-ER1C",ze={root:Tl,inner:Sl,content:$l,header:jl,title:Rl,bodyWrapper:Ol,scrollArea:kl,footer:Il,close:Ll},Nn=i.forwardRef(function({overStyled:e=!1,children:n,title:t,withCloseButton:r=!0,overlayProps:a,withOverlay:l=!0,closeButtonProps:c,...d},p){const _=["size","radius"],f=U(m(d,e),_),N=D({root:ze.root,inner:ze.inner,content:ze.content,header:ze.header,title:ze.title,close:ze.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||r)&&o.jsxs(u.Modal.Header,{children:[t&&o.jsx(u.Modal.Title,{children:t}),r&&o.jsx(u.Modal.CloseButton,{...c})]}),o.jsx(rt,{children:n})]})]})});Nn.displayName="Modal";const nt=i.forwardRef(function({overStyled:e=!1,className:n,...t},r){const a=m(t,e);return o.jsx("div",{ref:r,...a,className:`${ze.footer} ${n||""}`})});nt.displayName="Modal.Footer";const rt=i.forwardRef(function({overStyled:e=!1,className:n,onScroll:t,children:r,...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,r]);const b=C=>{h(),t==null||t(C)};let x=null;const $=[];return i.Children.forEach(r,C=>{var w;i.isValidElement(C)&&(C.type===nt||((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:`${ze.bodyWrapper} ${n||""}`,children:[o.jsx("div",{ref:d,onScroll:b,"data-scrolled-top":p||void 0,"data-scrolled-bottom":f||void 0,className:ze.scrollArea,children:$}),x]})});rt.displayName="Modal.Body";const Ml=["size","radius"],Cn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=U(m(n,e),Ml);return o.jsx(u.Modal.Root,{ref:t,...r})});Cn.displayName="Modal.Root";const Pn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Modal.Overlay,{ref:t,...r})});Pn.displayName="Modal.Overlay";const Al=["radius"],gn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=U(m(n,e),Al);return o.jsx(u.Modal.Content,{ref:t,...r})});gn.displayName="Modal.Content";const wn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Modal.Header,{ref:t,...r})});wn.displayName="Modal.Header";const Tn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Modal.Title,{ref:t,...r})});Tn.displayName="Modal.Title";const Wl=["size","radius"],Sn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=U(m(n,e),Wl);return o.jsx(u.Modal.CloseButton,{ref:t,...r})});Sn.displayName="Modal.CloseButton";const Fe=Nn;Fe.Root=Cn;Fe.Overlay=Pn;Fe.Content=gn;Fe.Header=wn;Fe.Title=Tn;Fe.CloseButton=Sn;Fe.Body=rt;Fe.Footer=nt;const zl="NumberInput-module__layoutOverride___5-9T4",Dl="NumberInput-module__root___C6rAn",El="NumberInput-module__input___Ss8p7",Fl="NumberInput-module__section___MijP0",Bl="NumberInput-module__controls___8UfQ2",Ul="NumberInput-module__control___Qre9-",so={layoutOverride:zl,root:Dl,input:El,section:Fl,controls:Bl,control:Ul},Gl=["size","variant","radius"],$n=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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),Gl),W=E,L={wrapper:so.root,input:so.input,section:so.section,controls:so.controls,control:so.control},K=C?`${so.layoutOverride} ${C}`:so.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:r,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":W.leftSection?"true":void 0,"data-with-right-section":W.rightSection||!R?"true":void 0}})})});$n.displayName="NumberInput";const Vl="Pagination-module__root___ITRjt",Hl="Pagination-module__control___40yNT",ql="Pagination-module__dots___Yl9da",Kl="Pagination-module__iconWithLabel___pLM4O",Yl="Pagination-module__baseIcon___Qw3bJ",Re={root:Vl,control:Hl,dots:ql,iconWithLabel:Kl,baseIcon:Yl},Zl="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Xl="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",Jl="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",ei={next:Zl,prev:Xl,first:Ql,last:Jl},wo=({type:s,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:ei[s],fill:"currentColor"})}),jn=s=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx("span",{children:"Next"}),o.jsx(wo,{type:"next",...s})]}),Rn=s=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx(wo,{type:"prev",...s}),o.jsx("span",{children:"Prev"})]}),On=s=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx(wo,{type:"first",...s}),o.jsx("span",{children:"First"})]}),kn=s=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx("span",{children:"Last"}),o.jsx(wo,{type:"last",...s})]});function In(s){const e=D({root:Re.root,control:Re.control,dots:Re.dots},s.classNames),n=s.className;return{className:n?`${Re.root} ${n}`:Re.root,classNames:e}}const Ln=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=In(r);return o.jsx(u.Pagination.Root,{ref:t,...r,className:a.className,classNames:a.classNames})});Ln.displayName="Pagination.Root";const Mn=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...r},a){const l=m(r,e),c=n?jn:void 0;return o.jsx(u.Pagination.Next,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});Mn.displayName="Pagination.Next";const An=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...r},a){const l=m(r,e),c=n?Rn:void 0;return o.jsx(u.Pagination.Previous,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});An.displayName="Pagination.Previous";const Wn=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...r},a){const l=m(r,e),c=n?On:void 0;return o.jsx(u.Pagination.First,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});Wn.displayName="Pagination.First";const zn=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...r},a){const l=m(r,e),c=n?kn:void 0;return o.jsx(u.Pagination.Last,{ref:a,...l,"data-variant":"text",icon:ce(c,t)})});zn.displayName="Pagination.Last";const Dn=i.forwardRef(function({overStyled:e=!1,getControlProps:n,withLabels:t,...r},a){const l=m(r,e),c=In(l),d=_=>{const f={"data-variant":"text"};return n?{...f,...n(_)}:f},p=t?{nextIcon:jn,previousIcon:Rn,firstIcon:On,lastIcon:kn}:{};return o.jsx(u.Pagination,{ref:a,...p,...l,className:c.className,classNames:c.classNames,getControlProps:d})});Dn.displayName="Pagination";const En=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Pagination.Control,{ref:t,...r})});En.displayName="Pagination.Control";const Fn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Pagination.Dots,{ref:t,...r})});Fn.displayName="Pagination.Dots";const ke=Dn;ke.Root=Ln;ke.Items=u.Pagination.Items;ke.Control=En;ke.Dots=Fn;ke.Next=Mn;ke.Previous=An;ke.First=Wn;ke.Last=zn;ke.Icon=wo;const oi="Panel-module__content___wdGo-",ti="Panel-module__inner___ruA2b",ni="Panel-module__header___o7SiC",ri="Panel-module__title___181OP",si="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",ai="Panel-module__body___SEC3T",li="Panel-module__footer___t6-hz",Qe={content:oi,inner:ti,header:ni,title:ri,titleTruncate:si,body:ai,footer:li},Bn=function({overStyled:e=!1,placement:n="right",keepMounted:t=!0,wrapHeaderText:r=!0,...a}){const l=m(a,e),c=l,d=D({content:Qe.content,header:Qe.header,title:r?Qe.titleTruncate:Qe.title,body:Qe.body,inner:Qe.inner},c.classNames);return o.jsx(u.Drawer,{...l,position:n,keepMounted:t,closeOnClickOutside:ce(!!a.opened,a.closeOnClickOutside),classNames:d})};Bn.displayName="Panel";const st=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r.className,l=a?`${Qe.footer} ${a}`:Qe.footer;return o.jsx("div",{ref:t,...r,className:l})});st.displayName="PanelFooter";const Un=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Drawer.Root,{ref:t,...r})});Un.displayName="PanelRoot";const Gn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Drawer.Overlay,{ref:t,...r})});Gn.displayName="PanelOverlay";const Vn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Drawer.Content,{ref:t,...r})});Vn.displayName="PanelContent";const Hn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Drawer.Header,{ref:t,...r})});Hn.displayName="PanelHeader";const qn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Drawer.Title,{ref:t,...r})});qn.displayName="PanelTitle";const Kn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Drawer.CloseButton,{ref:t,...r})});Kn.displayName="PanelCloseButton";const Yn=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Drawer.Body,{ref:t,...r})});Yn.displayName="PanelBody";const Ie=Bn;Ie.Root=Un;Ie.Overlay=Gn;Ie.Content=Vn;Ie.Header=Hn;Ie.Title=qn;Ie.CloseButton=Kn;Ie.Body=Yn;Ie.Stack=u.Drawer.Stack;Ie.Footer=st;const ii="Popover-module__dropdown___svhS6",ci="Popover-module__arrow___5A-0e",Ct={dropdown:ii,arrow:ci},Zn=function({overStyled:e=!1,withBeak:n=!0,position:t="top",...r}){const a=m(r,e),l=a,c=D({dropdown:Ct.dropdown,arrow:Ct.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})};Zn.displayName="Popover";const Xn=function(e){return o.jsx(u.Popover.Target,{...e})};Xn.displayName="PopoverTarget";const Qn=function({overStyled:e=!1,...n}){const t=m(n,e),r=t.className;return o.jsx(u.Popover.Dropdown,{...t,className:r})};Qn.displayName="PopoverDropdown";const at=Zn;at.Target=Xn;at.Dropdown=Qn;const di="Radio-module__groupRoot___bfUii",ui="Radio-module__root___kAjTD",pi="Radio-module__body___q2Wpj",mi="Radio-module__inner___QaTBB",_i="Radio-module__radio___MfgN-",fi="Radio-module__icon___DWznm",yi="Radio-module__labelWrapper___dB0Gi",hi="Radio-module__label___vAFIP",Se={groupRoot:di,root:ui,body:pi,inner:mi,radio:_i,icon:fi,labelWrapper:yi,label:hi},lt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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"],W=U(m(M,t),E),L=W;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:r,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,...W,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:Se.groupRoot,"data-layout":r,children:g})})})});lt.displayName="RadioGroup";const vi=({className:s,style:e})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:s,style:e,children:o.jsx("circle",{cx:"8",cy:"8",r:"5"})}),it=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:r,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(r&&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(vi,c),className:w,classNames:$,disabled:r||l});return d?o.jsx(De,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:S}):S});it.displayName="Radio";it.Group=lt;const xi="SegmentedControl-module__root___JFRhg",bi="SegmentedControl-module__label___mS17q",Ni="SegmentedControl-module__control___znOdQ",Ci="SegmentedControl-module__indicator___ZMcJy",co={root:xi,label:bi,control:Ni,indicator:Ci};function Pi(s){const e=D({root:co.root,control:co.control,label:co.label,indicator:co.indicator},s.classNames),n=s.className;return{className:n?`${co.root} ${n}`:co.root,classNames:e}}const Jn=i.forwardRef(function({overStyled:e=!1,orientation:n="horizontal",fullWidth:t,data:r=[],...a},l){const c=m(a,e),p=Pi(c),_=r.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:_})});Jn.displayName="SegmentedControl";const gi=Jn,wi="Slider-module__layoutOverride___zYPun",Ti="Slider-module__sliderContainer___y8I0J",Si="Slider-module__sliderTrackWrapper___UHpVh",$i="Slider-module__iconWrapper___uqHpC",ji="Slider-module__sliderRoot___LI86H",Ri="Slider-module__sliderTrack___oqnlG",Oi="Slider-module__sliderBar___TI4VY",ki="Slider-module__sliderThumb___OFn8p",Ii="Slider-module__sliderMarkWrapper___Ufqhu",Li="Slider-module__sliderMark___1lM2B",Mi="Slider-module__sliderMarkLabel___MMZrq",Ai="Slider-module__minMaxGuide___TaGqz",Wi="Slider-module__rightGuideContainer___8dOT8",zi="Slider-module__currentValue___dGV2T",Di="Slider-module__inputField___6x578",Ei="Slider-module__readOnlyValue___-ZzMW",ee={layoutOverride:wi,sliderContainer:Ti,sliderTrackWrapper:Si,iconWrapper:$i,sliderRoot:ji,sliderTrack:Ri,sliderBar:Oi,sliderThumb:ki,sliderMarkWrapper:Ii,sliderMark:Li,sliderMarkLabel:Mi,minMaxGuide:Ai,rightGuideContainer:Wi,currentValue:zi,inputField:Di,readOnlyValue:Ei},Fi=({value:s})=>{const e=Array.isArray(s)?`${s[0]} – ${s[1]}`:s;return o.jsx("div",{className:ee.readOnlyValue,children:e})},er=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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:W,showInput:L=!1,showMinMaxLabels:K=!0,min:H=0,max:q=100,minLabel:X,maxLabel:V,step:Y=1,onChange:J,onChangeEnd:de,...A}=e,[re,ue]=i.useState(()=>R!==void 0?R:M!==void 0?M:H),O=R!==void 0?R:re,ae=Array.isArray(O),[ye,se]=i.useState(()=>Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString());i.useEffect(()=>{se(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 z=F.target.value;se(z);const k=parseFloat(z);if(!isNaN(k)){const B=Math.max(H,Math.min(q,k));le(B)}},Ne=()=>{se(O.toString())},Ue=F=>{const z=O,k=F.target.value;se([k,z[1].toString()]);const B=parseFloat(k);if(!isNaN(B)){const Z=Math.max(H,Math.min(z[1],B));le([Z,z[1]])}},Ce=F=>{const z=O,k=F.target.value;se([z[0].toString(),k]);const B=parseFloat(k);if(!isNaN(B)){const Z=Math.max(z[0],Math.min(q,B));le([z[0],Z])}},Ge=()=>{const F=O;se([F[0].toString(),F[1].toString()])},Le=["size","variant","radius","wrapperProps"],Me=U(m(A,t),Le),to=Me,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=W?o.jsx("span",{className:ee.iconWrapper,"aria-hidden":!0,children:W}):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:r,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||Fi,emptyValueComponent:v,readOnlyType:"text",readOnlyValue:O,readOnlyNativeProps:{value:O},activeComponent:o.jsxs("div",{className:ee.sliderContainer,"data-form-layout":r,"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:X??H}),o.jsx("div",{className:ee.sliderTrackWrapper,children:ae?o.jsx(u.RangeSlider,{...Me,classNames:Pe,disabled:P,value:O,onChange:le,onChangeEnd:de,min:H,max:q,step:Y,label:N}):o.jsx(u.Slider,{...Me,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}))]})})});er.displayName="Slider";const Bi="Stack-module__root___NUN-x",vo={root:Bi},or=i.forwardRef(function({children:e,gap:n="rec-default",...t},r){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:r,className:d,classNames:a,...go({gap:n,...t}),children:e})});or.displayName="Stack";const Ui=u.createPolymorphicComponent(or),Gi="Stepper-module__root___jbSYO",Vi="Stepper-module__horizontal___USHT1",Hi="Stepper-module__steps___4HPO6",qi="Stepper-module__step___s2nqL",Ki="Stepper-module__stepBody___TBvys",Yi="Stepper-module__stepLabel___N6nuy",Zi="Stepper-module__stepDescription___DnDAy",Xi="Stepper-module__separator___pU0No",Qi="Stepper-module__vertical___d4mOs",Ji="Stepper-module__large___J18-y",ec="Stepper-module__small___Ub-zb",oc="Stepper-module__stepIcon___YQHNq",tc="Stepper-module__stepCompletedIcon___B9MeL",nc="Stepper-module__verticalSeparator___frWc1",rc="Stepper-module__content___J-h8X",ie={root:Gi,horizontal:Vi,steps:Hi,step:qi,stepBody:Ki,stepLabel:Yi,stepDescription:Zi,separator:Xi,vertical:Qi,large:Ji,small:ec,stepIcon:oc,stepCompletedIcon:tc,verticalSeparator:nc,content:rc},tr=i.forwardRef(function(e,n){const{overStyled:t=!1,size:r="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} ${r==="large"?ie.large:ie.small} ${l||""}`,style:c,"data-size":r,"data-orientation":a,classNames:f})}),nr=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Stepper.Step,{ref:t,...r})});nr.displayName="Stepper.Step";const sc=Object.assign(tr,{Step:nr,Completed:u.Stepper.Completed});tr.displayName="Stepper";const ac="Switch-module__root___Y5Ydi",lc="Switch-module__track___7ObdZ",ic="Switch-module__body___Sw9Wr",cc="Switch-module__thumb___-FTeK",dc="Switch-module__labelWrapper___YSOwx",uc="Switch-module__label___LrH7V",pc="Switch-module__thumbIconWrapper___sCY-1",mc="Switch-module__checkIcon___ZBAQN",_c="Switch-module__closeIcon___bLLGw",fc="Switch-module__groupRoot___-Uepi",_e={root:ac,track:lc,body:ic,thumb:cc,labelWrapper:dc,label:uc,thumbIconWrapper:pc,checkIcon:mc,closeIcon:_c,groupRoot:fc},ct=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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"],W=U(m(M,t),E),L=W;return o.jsx(fe,{className:w,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:r,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,...W,disabled:P||L.disabled,value:v,defaultValue:R,children:o.jsx("div",{className:_e.groupRoot,"data-layout":r,children:g})})})});ct.displayName="SwitchGroup";const dt=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:r,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=Rt({},x.styles),w=x.className,S=w?`${_e.root} ${w}`:_e.root;if(r&&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:r||l,"data-disabled":r||l||void 0,thumbIcon:ce(g,c)});return d?o.jsx(De,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:P}):P});dt.displayName="Switch";dt.Group=ct;const yc="Table-module__root___aMWWS",hc="Table-module__sortIcon___V3-dH",Ho={root:yc,sortIcon:hc};function vc(s){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...s,children:o.jsx("polyline",{points:"18 15 12 9 6 15"})})}function xc(s){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...s,children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})}const rr=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r.className,l=Ho.root,c=a?`${l} ${a}`:l;return o.jsx(u.Table,{ref:t,...r,className:c})});rr.displayName="Table";const sr=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Table.Thead,{ref:t,...r})});sr.displayName="TableThead";const ar=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Table.Tbody,{ref:t,...r})});ar.displayName="TableTbody";const lr=i.forwardRef(function({overStyled:e=!1,selected:n=!1,disabled:t=!1,...r},a){const l=m(r,e);return o.jsx(u.Table.Tr,{ref:a,...l,"data-selected":n?"true":void 0,"data-disabled":t?"true":void 0})});lr.displayName="TableTr";const ir=i.forwardRef(function({overStyled:e=!1,sorted:n=!1,disabled:t=!1,variant:r="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":r==="currency"?"true":void 0,"aria-sort":n==="asc"?"ascending":n==="desc"?"descending":void 0,children:[a,n==="asc"&&o.jsx(vc,{className:Ho.sortIcon}),n==="desc"&&o.jsx(xc,{className:Ho.sortIcon})]})});ir.displayName="TableTh";const cr=i.forwardRef(function({overStyled:e=!1,disabled:n=!1,variant:t="default",...r},a){const l=m(r,e);return o.jsx(u.Table.Td,{ref:a,...l,"data-disabled":n?"true":void 0,"data-currency":t==="currency"?"true":void 0})});cr.displayName="TableTd";const dr=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Table.Tfoot,{ref:t,...r})});dr.displayName="TableTfoot";const ur=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Table.Caption,{ref:t,...r})});ur.displayName="TableCaption";const pr=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Table.ScrollContainer,{ref:t,...r})});pr.displayName="TableScrollContainer";const Be=rr;Be.Thead=sr;Be.Tbody=ar;Be.Tr=lr;Be.Th=ir;Be.Td=cr;Be.Tfoot=dr;Be.Caption=ur;Be.ScrollContainer=pr;const bc="Tabs-module__root___-VKVI",Nc="Tabs-module__list___qRVME",Cc="Tabs-module__tab___IdDYc",Pc="Tabs-module__panel___08i9c",jo={root:bc,list:Nc,tab:Cc,panel:Pc},mr=i.forwardRef(function(e,n){const{variant:t="default",orientation:r="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:r,className:`${jo.root} ${l||""}`,"data-variant":t,"data-orientation":r,classNames:_})});mr.displayName="Tabs";const _r=i.forwardRef(function(e,n){const{overStyled:t=!1,...r}=e;return o.jsx(u.Tabs.List,{ref:n,...m(r,t)})});_r.displayName="Tabs.List";const fr=i.forwardRef(function(e,n){const{overStyled:t=!1,...r}=e;return o.jsx(u.Tabs.Tab,{ref:n,...m(r,t)})});fr.displayName="Tabs.Tab";const yr=i.forwardRef(function(e,n){const{overStyled:t=!1,...r}=e;return o.jsx(u.Tabs.Panel,{ref:n,...m(r,t)})});yr.displayName="Tabs.Panel";const gc=Object.assign(mr,{List:_r,Tab:fr,Panel:yr}),wc="Text-module__root___rsBo7",Tc={root:wc},hr=i.forwardRef(function({overStyled:e=!1,variant:n="body",...t},r){const a=m(t,e),l=a.className,d=[`recursica_brand_typography_${n}`,Tc.root,l].filter(Boolean).join(" ");return o.jsx(u.Text,{ref:r,...a,className:d})});hr.displayName="Text";const Sc=u.createPolymorphicComponent(hr),$c="TextArea-module__layoutOverride___4MCdm",jc="TextArea-module__root___3dyeu",Rc="TextArea-module__input___8l36v",Ro={layoutOverride:$c,root:jc,input:Rc},Oc=["size","variant","radius"],vr=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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),Oc),E=M,W=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:r,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:W,disabled:S,value:T,defaultValue:v,label:void 0,description:void 0,error:!!h,required:void 0,withAsterisk:void 0})})});vr.displayName="TextArea";const kc="TextField-module__layoutOverride___SNZqc",Ic="TextField-module__root___2ZYkG",Lc="TextField-module__input___RL-My",Mc="TextField-module__section___bCIJ0",xo={layoutOverride:kc,root:Ic,input:Lc,section:Mc},Ac=["size","variant","radius"],ut=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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),Ac),E=M,W=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:r,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:W,disabled:S,value:T,defaultValue:v,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0}})})});ut.displayName="TextField";const Wc=["size","variant","radius"],xr=i.forwardRef(function(e,n){const{overStyled:t=!1,className:r,disabled:a,error:l,...c}=e,d=U(m(c,t),Wc),p=d,_=D({wrapper:r?`${oe.root} ${r}`: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}}})});xr.displayName="BareDropdown";const zc="TimePicker-module__layoutOverride___zKo4Q",Dc="TimePicker-module__root___BcvRu",Ec="TimePicker-module__timeWrapper___hJVre",Fc="TimePicker-module__timeInput___FQysn",Bc="TimePicker-module__fieldsGroup___2yHhR",Uc="TimePicker-module__section___VkSWB",Gc="TimePicker-module__timeField___twRZd",Vc="TimePicker-module__amPmSelect___mSdvt",We={layoutOverride:zc,root:Dc,timeWrapper:Ec,timeInput:Fc,fieldsGroup:Bc,section:Uc,timeField:Gc,amPmSelect:Vc},Hc=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Pt(s){if(!s)return;const e=parseInt(s.slice(0,2),10);return Number.isNaN(e)?void 0:e}function qc(s,e){return`${String(e).padStart(2,"0")}${s.slice(2)}`}function Kc(s){if(!s)return;const[e,n,t]=s.split(":"),r=parseInt(e,10);if(Number.isNaN(r)||n===void 0)return s;const a=r>=12,l=r%12===0?12:r%12,c=t!==void 0?`${n}:${t}`:n;return`${l}:${c} ${a?"PM":"AM"}`}function Yc(s,e){var t;const n=(t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value"))==null?void 0:t.set;n==null||n.call(s,e),s.dispatchEvent(new Event("change",{bubbles:!0}))}const Zc=["size","variant","radius"],br=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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:W,...L}=e,K=U(m(L,t),Zc),H=K,[q,X]=i.useState(()=>T??v);i.useEffect(()=>{T!==void 0&&X(T)},[T]);const V=i.useRef(null);i.useEffect(()=>{Pt(T??v)===void 0&&V.current&&Yc(V.current,"AM")},[]);const Y=O=>{X(O),R==null||R(O)},J=Pt(q),de=J!==void 0&&J>=12,A=O=>{Y(O)},re=O=>{if(J===void 0||!q||!O)return;const ae=O==="PM";if(ae===de)return;const ye=ae?J+12:J-12;Y(qc(q,ye))},ue=C?`${We.layoutOverride} ${C}`:We.layoutOverride;return o.jsx(fe,{className:ue,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:r,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:Kc(T!==void 0?T:v),readOnlyNativeProps:e,activeComponent:o.jsxs("div",{className:We.root,"data-disabled":S?"true":void 0,"data-error":h?"true":void 0,children:[o.jsx(Go.TimePicker,{ref:n,...K,classNames:D({wrapper:We.timeWrapper,input:We.timeInput,section:We.section,fieldsGroup:We.fieldsGroup,field:We.timeField},H.classNames),disabled:S,value:q,onChange:A,format:"12h",withSeconds:M,min:E,max:W,withDropdown:!1,amPmRef:V}),o.jsx(xr,{overStyled:!0,className:We.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:Hc,value:de?"PM":"AM",onChange:re,disabled:S,error:!!h,"aria-label":"AM or PM"})]})})});br.displayName="TimePicker";const Xc="Timeline-module__root___LwRdZ",Qc="Timeline-module__item___T5xdQ",Jc="Timeline-module__itemBody___XAV-E",ed="Timeline-module__itemBullet___rPXCy",od="Timeline-module__itemTitle___GgRRW",td="Timeline-module__itemContent___vurs-",nd="Timeline-module__description___f9sxV",rd="Timeline-module__timestamp___owiRu",Xe={root:Xc,item:Qc,itemBody:Jc,itemBullet:ed,itemTitle:od,itemContent:td,description:nd,timestamp:rd},pt=i.forwardRef(function({overStyled:e=!1,timestamp:n,bulletVariant:t="default",children:r,...a},l){const c=m(a,e),d=c,p=D({item:Xe.item,itemBody:Xe.itemBody,itemContent:Xe.itemContent,itemBullet:Xe.itemBullet,itemTitle:Xe.itemTitle},d.classNames),_=n?o.jsxs(o.Fragment,{children:[r&&o.jsx("div",{className:Xe.description,children:r}),o.jsx("div",{className:Xe.timestamp,children:n})]}):r;return o.jsx(u.TimelineItem,{ref:l,...c,classNames:p,"data-variant":t,children:_})});pt.displayName="TimelineItem";const Nr=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e),a=r,l=D({root:Xe.root},a.classNames);return o.jsx(u.Timeline,{ref:t,...r,classNames:l})});Nr.displayName="Timeline";const Cr=Nr;Cr.Item=pt;const sd="Toast-module__root___MUvfI",ad="Toast-module__icon___VwvE1",ld="Toast-module__loader___8Gxd-",id="Toast-module__title___-H6R2",cd="Toast-module__description___-QwfC",dd="Toast-module__closeButton___vGr7g",ud="Toast-module__body___VLkXA",ao={root:sd,icon:ad,loader:ld,title:id,description:cd,closeButton:dd,body:ud},Pr=i.forwardRef(function({overStyled:e=!1,variant:n="default",withCloseButton:t=!0,...r},a){const l=["color","radius","loading"],c=U(m(r,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})});Pr.displayName="Toast";const pd="Tooltip-module__tooltip___UA7H9",md="Tooltip-module__arrow___4zROk",gt={tooltip:pd,arrow:md},gr=function({overStyled:e=!1,withBeak:n=!0,position:t="top",arrowSize:r=16,...a}){const l=m(a,e),c=l,d=D({tooltip:gt.tooltip,arrow:gt.arrow},c.classNames),p=c.withArrow,_=n??p;return o.jsx(u.Tooltip,{...l,position:t,arrowSize:r,withArrow:_,multiline:!0,classNames:d})};gr.displayName="Tooltip";const wr=i.forwardRef(function({overStyled:e=!1,...n},t){const r=m(n,e);return o.jsx(u.Tooltip.Floating,{ref:t,...r})});wr.displayName="TooltipFloating";const mt=gr;mt.Floating=wr;mt.Group=u.Tooltip.Group;const _d="TransferList-module__layoutOverride___nkb32",fd="TransferList-module__root___ikjI7",yd="TransferList-module__panes___dtwkW",hd="TransferList-module__pane___hy-kC",vd="TransferList-module__paneHeader___HZrKX",xd="TransferList-module__paneSearch___Xji-g",bd="TransferList-module__paneList___v0rcJ",Nd="TransferList-module__emptyState___azPw-",Cd="TransferList-module__transferColumn___3R2Ki",Pd="TransferList-module__chevron___l-KdI",be={layoutOverride:_d,root:fd,panes:yd,pane:hd,paneHeader:vd,paneSearch:xd,paneList:bd,emptyState:Nd,transferColumn:Cd,chevron:Pd};function wt({direction:s}){return o.jsx("svg",{className:be.chevron,"data-direction":s,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 Tt({direction:s}){return o.jsx("svg",{className:be.chevron,"data-direction":s,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 gd(s){const e={},n=[];return s.forEach(t=>{var r;t.group?(e[r=t.group]??(e[r]=[])).push(t):n.push(t)}),{groups:e,ungrouped:n}}const Tr=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:r="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:W="Filter items...",disabled:L=!1,className:K,style:H,...q}=e,X=m(q,t),V=i.useId(),Y=w||`recursica-transfer-list-${V}`,[J,de]=i.useState(()=>T??y??[[],[]]),A=y!==void 0?y:J,re=i.useCallback(G=>{y===void 0&&de(G),v==null||v(G)},[y,v]),[ue,O]=i.useState(""),[ae,ye]=i.useState(""),[se,le]=i.useState(()=>new Set),[he,Ne]=i.useState(()=>new Set),Ue=i.useMemo(()=>{if(!ue)return A[0];const G=ue.toLowerCase();return A[0].filter(F=>F.label.toLowerCase().includes(G))},[A,ue]),Ce=i.useMemo(()=>{if(!ae)return A[1];const G=ae.toLowerCase();return A[1].filter(F=>F.label.toLowerCase().includes(G))},[A,ae]),Ge=i.useCallback(()=>{if(se.size===0)return;const G=A[0].filter(z=>!se.has(z.value)),F=A[0].filter(z=>se.has(z.value));le(new Set),re([G,[...A[1],...F]])},[A,se,re]),Le=i.useCallback(()=>{if(he.size===0)return;const G=A[1].filter(z=>!he.has(z.value)),F=A[1].filter(z=>he.has(z.value));Ne(new Set),re([[...A[0],...F],G])},[A,he,re]),Me=i.useCallback(()=>{A[0].length!==0&&(le(new Set),re([[],[...A[1],...A[0]]]))},[A,re]),to=i.useCallback(()=>{A[1].length!==0&&(Ne(new Set),re([[...A[0],...A[1]],[]]))},[A,re]),Pe=i.useCallback(G=>{le(F=>{const z=new Set(F);return z.has(G)?z.delete(G):z.add(G),z})},[]),Ve=i.useCallback(G=>{Ne(F=>{const z=new Set(F);return z.has(G)?z.delete(G):z.add(G),z})},[]),ge=(G,F,z,k,B,Z,pe,qe)=>{const{groups:no,ungrouped:j}=gd(z),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(zt,{children:ne})]}),E&&o.jsx("div",{className:be.paneSearch,children:o.jsx(ut,{value:pe,onChange:Q=>qe(Q.currentTarget.value),placeholder:W,disabled:L,"aria-label":`Filter ${F.toLowerCase()}`})}),o.jsxs("div",{className:be.paneList,children:[z.length===0&&o.jsx("div",{className:be.emptyState,children:"No items"}),j.length>0&&o.jsx(No,{children:j.map(Q=>o.jsx(Co,{id:`${Y}-${G}-${Q.value}`,label:Q.label,checked:B.has(Q.value),onChange:()=>Z(Q.value),disabled:L},Q.value))}),te.map(Q=>o.jsx(No,{label:Q,labelSize:"small",children:no[Q].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))},Q))]})]})},He=K?`${be.layoutOverride} ${K}`:be.layoutOverride;return o.jsx(fe,{ref:n,formLayout:r,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:A[1].map(G=>G.label),readOnlyNativeProps:e,activeComponent:o.jsx("div",{...X,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,A[0],se,Pe,ue,O),o.jsxs("div",{className:be.transferColumn,children:[o.jsx(eo,{variant:"outline",size:"small",icon:o.jsx(Tt,{direction:"right"}),"aria-label":`Move all to ${M}`,disabled:L||A[0].length===0,onClick:Me}),o.jsx(eo,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"right"}),"aria-label":`Move selected to ${M}`,disabled:L||se.size===0,onClick:Ge}),o.jsx(eo,{variant:"outline",size:"small",icon:o.jsx(wt,{direction:"left"}),"aria-label":`Move selected to ${R}`,disabled:L||he.size===0,onClick:Le}),o.jsx(eo,{variant:"outline",size:"small",icon:o.jsx(Tt,{direction:"left"}),"aria-label":`Move all to ${R}`,disabled:L||A[1].length===0,onClick:to})]}),ge("target",M,Ce,A[1],he,Ve,ae,ye)]})})})});Tr.displayName="TransferList";const wd="Tree-module__root___ANcH3",Td="Tree-module__subtree___KoLT8",Sd="Tree-module__node___Hvnjg",$d="Tree-module__row___sq5ff",jd="Tree-module__label___zJDit",Rd="Tree-module__expandButton___W0WTT",Od="Tree-module__expandGlyph___w8dDQ",oo={root:wd,subtree:Td,node:Sd,row:$d,label:jd,expandButton:Rd,expandGlyph:Od};function kd(){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 Id(s){return function({node:n,hasChildren:t,expanded:r,selected:a,tree:l,elementProps:c}){return o.jsxs("div",{...c,className:oo.row,"data-has-children":t||void 0,"data-expanded":t&&r?!0:void 0,children:[o.jsx(eo,{overStyled:!0,variant:"text",size:"small",icon:o.jsx(kd,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:oo.expandButton,onMouseDown:d=>d.preventDefault(),onClick:d=>{d.stopPropagation(),!s&&l.toggleExpanded(n.value)}}),o.jsx("span",{className:oo.label,"data-selected":a||void 0,children:n.label})]})}}const Sr=i.forwardRef(function({overStyled:e=!1,data:n,initialExpandedValues:t,initialSelectedValues:r,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:r,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=jr.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:Id(l),"data-disabled":l||void 0,classNames:D({root:w,node:oo.node,subtree:oo.subtree},$.classNames)})});Sr.displayName="Tree";const Ld=rl,Md=nn,Ad=tn,Wd=rn,zd=Ui,Dd=Kt,Ed=yl,Fd=Sc,Bd=I(Wo),Ud=I(Qo),Gd=I(Mo),Vd=I(Ao),Hd=I(Io),qd=I(Mt),Kd=I(ks),Yd=I(zt),Zd=I(Dt),Xd=I(eo),Qd=I(Zs),Jd=I(Co),eu=I(No),ou=I(Po),tu=I(Yt),nu=I(Zt),ru=I(Xt),su=I(Qt),au=I(De),lu=I(sn),iu=I(tt),cu=I(ot),du=I(Jo),uu=I(lo),pu=I(Fe),mu=I($n),_u=I(ke),fu=I(Ie),yu=I(st),hu=I(at),vu=I(it),xu=I(lt),bu=I(et),Nu=I(gi),Cu=I(er),Pu=I(sc),gu=I(dt),wu=I(ct),Tu=I(Be),Su=I(gc),$u=I(vr),ju=I(ut),Ru=I(br),Ou=I(Cr),ku=I(pt),Iu=I(Pr),Lu=I(mt),Mu=I(Tr),Au=I(Sr);exports.Accordion=Bd;exports.AccordionControl=Gd;exports.AccordionItem=Ud;exports.AccordionPanel=Vd;exports.AssistiveElement=Hd;exports.AutoComplete=qd;exports.Avatar=Kd;exports.Badge=Yd;exports.Breadcrumb=Zd;exports.Button=Xd;exports.Card=Qd;exports.Checkbox=Jd;exports.CheckboxGroup=eu;exports.Chip=ou;exports.Container=Dd;exports.DatePicker=tu;exports.Dropdown=nu;exports.EmptyValueRenderer=bo;exports.FileInput=ru;exports.FileUpload=su;exports.Flex=Ld;exports.FormControlLayout=au;exports.Grid=Md;exports.GridCol=Ad;exports.Group=Wd;exports.Heading=lu;exports.HoverCard=iu;exports.IS_DEV=Oe;exports.Label=du;exports.Layer=qo;exports.Link=Ed;exports.Loader=cu;exports.Menu=uu;exports.Modal=pu;exports.NumberInput=mu;exports.Pagination=_u;exports.Panel=fu;exports.PanelFooter=yu;exports.Popover=hu;exports.RECURSICA_COMPONENTS=Mr;exports.Radio=vu;exports.RadioGroup=xu;exports.ReadOnlyField=bu;exports.RecursicaThemeProvider=Lr;exports.SegmentedControl=Nu;exports.Slider=Cu;exports.Stack=zd;exports.Stepper=Pu;exports.Switch=gu;exports.SwitchGroup=wu;exports.Table=Tu;exports.Tabs=Su;exports.Text=Fd;exports.TextArea=$u;exports.TextField=ju;exports.TimePicker=Ru;exports.Timeline=Ou;exports.TimelineItem=ku;exports.Toast=Iu;exports.Tooltip=Lu;exports.TransferList=Mu;exports.Tree=Au;exports.copyToClipboard=Ar;exports.fileMatchesAccept=Zo;exports.injectOverStyledStyles=Ko;exports.isGlobalOverStyledActive=Ir;exports.markCurrentPageItem=jt;exports.mergeClassNames=D;exports.mergeStyles=Rt;exports.normalizeComboboxData=Xo;exports.omitUnsupportedProps=U;exports.registerOverStyledConsoleCommand=Yo;exports.toggleGlobalOverStyled=St;exports.useGlobalOverStyled=$t;exports.withCallerOverride=ce;exports.wrapComponent=I;
|
|
11
|
+
`,document.head.appendChild(e))}function Ko(){if(!$e)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: ${Gt()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};r(window),window.parent&&window.parent!==window&&r(window.parent)}function Kt(r){const e=i.Children.toArray(r),n=e.length-1;return e.map((t,a)=>{if(a!==n||!i.isValidElement(t))return t;const s=t.props,l=s.href!==void 0||s.onClick!==void 0;return $e&&l&&console.warn(`[Breadcrumb] The last item represents the current page and should be plain, non-interactive text (e.g. a <span>), not a link. Breadcrumb stripped its href/onClick and added aria-current="page", but this can't stop a custom Link component (e.g. a router Link) that navigates from its own internal handler rather than these props.`),i.cloneElement(t,{"aria-current":"page",...l?{href:void 0,onClick:void 0,tabIndex:-1}:{}})})}const Wt="data-recursica-theme";function Aa({children:r,theme:e="light",initLayer0:n=!0}){return i.useEffect(()=>{const t=document.documentElement;return t.setAttribute(Wt,e),()=>{t.removeAttribute(Wt)}},[e]),i.useEffect(()=>{qo(),Ko()},[]),n?o.jsx(Go,{layer:0,children:r}):o.jsx(o.Fragment,{children:r})}const Wa=["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"],za=(r,e)=>{const n=document.activeElement;return new Promise((t,a)=>{if(e&&e.current){const s=document.createElement("textarea");s.readOnly=!0,s.defaultValue=r,e.current.appendChild(s),s.select();const l=document.execCommand("copy");e.current.removeChild(s),n&&n.focus(),l?t():a(new Error("Failed to copy"))}else a(new Error("Copy area reference is not defined"))})};function Yo(r,e){const n=(e??"").split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;const t=r.name.toLowerCase(),a=r.type.toLowerCase();return n.some(s=>s.startsWith(".")?t.endsWith(s):s.endsWith("/*")?a.startsWith(s.slice(0,-1)):a===s)}function z(r,e){if(!e)return r;const n={...r},t=new Set([...Object.keys(r),...Object.keys(e)]);for(const a of t){const s=r[a],l=e[a];n[a]=[s,l].filter(Boolean).join(" ")||void 0}return n}function Yt(r,e){if(!e)return r;const n={...r},t=new Set([...Object.keys(r),...Object.keys(e)]);for(const a of t){const s=r[a],l=e[a];n[a]=s||l?{...s,...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 B(r,e){const n={...r};for(const t of e)t in n&&delete n[t];return n}function ie(r,e){return e!==void 0?e:r}const Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.memo");function Zt(r){return r?r.prototype&&r.prototype.isReactComponent||r.$$typeof===Da?!0:r.$$typeof===Ea?Zt(r.type):!1:!1}function Xt(r){if(!$e||typeof r!="function"&&!(r&&r.$$typeof))return r;const e=Zt(r),n=r.displayName||r.name||"Component",t=i.forwardRef((s,l)=>{const{overStyled:c}=s,d=qt();$e&&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?{...s,ref:l}:s,_=i.createElement(r,p);return c&&d?o.jsx("div",{className:"recursica-over-styled",children:_}):_});t.displayName=r.displayName||r.name||"Component";const a=Object.keys(r);for(const s of a){if(s==="render"||s==="$$typeof")continue;const l=r[s];(typeof l=="function"||l&&l.$$typeof)&&s[0]===s[0].toUpperCase()?t[s]=Xt(l):t[s]=l}return t}const Fa=["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"],Qt=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 wo(r){const e={...r};for(const[n,t]of Object.entries(e))typeof t=="string"&&t.startsWith("rec-")&&Qt.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 Fa)t in n&&delete n[t];for(const[t,a]of Object.entries(n))typeof a=="string"&&a.startsWith("rec-")&&Qt.has(t)&&a in ko&&(n[t]=ko[a]);return n}const Ba="Accordion-module__root___Dem6d",Ua="Accordion-module__item___7ryVk",Va="Accordion-module__noDivider___Ni2tT",Ha="Accordion-module__control___b4wgX",Ga="Accordion-module__label___Ss7uW",qa="Accordion-module__icon___xfHxX",Ka="Accordion-module__chevron___i-HVZ",Ya="Accordion-module__iconLeftWrapper___5oLen",Za="Accordion-module__panel___Wx50w",Xa="Accordion-module__content___PEM9t",Se={root:Ba,item:Ua,noDivider:Va,control:Ha,label:Ga,icon:qa,chevron:Ka,iconLeftWrapper:Ya,panel:Za,content:Xa},zt={default:"unstyled"},Jt=function({variant:e="default",overStyled:n=!1,...t}){const a=typeof e=="string"&&zt[e]?zt[e]:e,s=m(t,n),l=s,c=z({root:Se.root,item:Se.item,control:Se.control,label:Se.label,chevron:Se.chevron,icon:Se.icon,panel:Se.panel,content:Se.content},l.classNames),d=l.className;return o.jsx(u.Accordion,{...s,variant:a,className:d,classNames:c})};Jt.displayName="Accordion";const Xo=i.forwardRef(function({title:e,leftIcon:n,divider:t=!0,children:a,disabled:s=!1,overStyled:l=!1,...c},d){const p=m(c,l),_=p.className,f=[t?void 0:Se.noDivider,_].filter(Boolean).join(" ")||void 0;return o.jsx(u.Accordion.Item,{ref:d,...p,className:f,"data-disabled":s||void 0,children:e?o.jsxs(o.Fragment,{children:[o.jsx(Lo,{leftIcon:n,disabled:s,children:e}),o.jsx(Mo,{children:a})]}):a})});Xo.displayName="AccordionItem";const Qa=["icon"],Lo=i.forwardRef(function({leftIcon:e,children:n,overStyled:t=!1,...a},s){const l=B(m(a,t),Qa),c=l.className;return o.jsx(u.Accordion.Control,{ref:s,...l,className:c,icon:e?o.jsx("span",{className:Se.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,children:n})});Lo.displayName="AccordionControl";const Mo=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className;return o.jsx(u.Accordion.Panel,{ref:t,...a,className:s})});Mo.displayName="AccordionPanel";const Ao=Jt;Ao.Item=Xo;Ao.Control=Lo;Ao.Panel=Mo;const Ja="AssistiveElement-module__root___WhQ43",er="AssistiveElement-module__textWrapper___sfy5E",or="AssistiveElement-module__iconWrapper___gObRF",Fo={root:Ja,textWrapper:er,iconWrapper:or},tr=()=>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"})]}),nr=()=>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:a,role:s,overStyled:l=!1,...c},d){const _=m(c,l),f=Fo.root,N=a?`${f} ${a}`:f,h=e==="error"?nr:tr,b=s??(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:Fo.iconWrapper,children:o.jsx(h,{})}),o.jsx("span",{className:Fo.textWrapper,children:t})]})});Io.displayName="AssistiveElement";const ar="Label-module__root___e6HXZ",rr="Label-module__labelText___rieFR",sr="Label-module__required___Ggrzc",lr="Label-module__optionalText___Y2yun",ir="Label-module__actionAreaWrapper___ELoZK",cr="Label-module__editIconWrapper___NG2xW",qe={root:ar,labelText:rr,required:sr,optionalText:lr,actionAreaWrapper:ir,editIconWrapper:cr},Qo=i.forwardRef(function({labelSize:e="default",labelAlignment:n,required:t=!1,labelOptionalText:a,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:c,children:d,overStyled:p=!1,..._},f){const N=n||"left";let h;t||(a===!0?h="optional":a&&(h=a));const b=["size"],x=B(m(_,p),b),j=x,C=z({label:qe.root,required:qe.required},j.classNames),w=j.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&&!s,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}):s?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]})});Qo.displayName="Label";const dr="FormControlLayout-module__root___yNDhZ",ur="FormControlLayout-module__leftSection___GBM1r",pr="FormControlLayout-module__rightSection___bcL4v",jo={root:dr,leftSection:ur,rightSection:pr},ze=i.forwardRef(function({formLayout:e="stacked",labelSize:n="default",controlMaxWidth:t,controlMinWidth:a,leftSection:s,children:l,className:c,style:d,...p},_){const f=c?`${jo.root} ${c}`:jo.root,h=s!=null||e==="side-by-side";return o.jsxs("div",{ref:_,className:f,"data-form-layout":e,style:{...d,...t?{"--form-control-max-width":t}:{},...a?{"--form-control-min-width":a}:{}},...p,children:[h&&o.jsx("div",{className:jo.leftSection,"data-size":n,children:s}),o.jsx("div",{className:jo.rightSection,children:l})]})});ze.displayName="FormControlLayout";const mr="FormControlWrapper-module__root___c-UHo",_r="FormControlWrapper-module__inputSection___HenXk",Dt={root:mr,inputSection:_r},co=i.forwardRef(function({formLayout:e,labelSize:n,labelAlignment:t,labelOptionalText:a,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:c,label:d,description:p,assistiveText:_,assistiveWithIcon:f=!0,controlMaxWidth:N,controlMinWidth:h,error:b,required:x,withAsterisk:j,id:C,children:w,className:S,overStyled:P=!1,labelElement:g,...y},T){const v=i.useId(),$=C||`recursica-fc-${v}`,L=`${$}-label`,D=_||p,A=D?`${$}-assistive`:void 0,I=b?`${$}-error`:void 0,H=m(y,P),G=S||H.className,Z=Dt.root,V=G?`${Z} ${G}`:Z,K=i.isValidElement(w)?i.cloneElement(w,{...w.props.id?{}:{id:$},"aria-labelledby":L,...D&&!w.props["aria-describedby"]?{"aria-describedby":A}:{},...b&&!w.props["aria-errormessage"]?{"aria-errormessage":I}:{}}):w,Q=d?o.jsx(Qo,{id:L,htmlFor:$,labelAlignment:t,labelOptionalText:a,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:c,required:j??x,...g==="div"?{as:"div"}:{},children:d}):void 0;return o.jsx(ze,{ref:T,className:V,formLayout:e,labelSize:n,controlMaxWidth:N,controlMinWidth:h,leftSection:Q,...H,children:o.jsxs("div",{className:Dt.inputSection,children:[K,b&&o.jsx(Io,{id:I,assistiveVariant:"error",assistiveWithIcon:f,children:b}),!b&&D&&o.jsx(Io,{id:A,assistiveVariant:"help",assistiveWithIcon:f,children:D})]})})});co.displayName="FormControlWrapper";const fr="ReadOnlyField-module__layoutOverride___9fSsG",yr="ReadOnlyField-module__textField___qKn25",uo={layoutOverride:fr,textField:yr},bo=({value:r,overStyled:e=!1,...n})=>{const t=m(n,e),a=t.className;return o.jsx(u.Box,{component:"p",...t,className:a?`${uo.textField} ${a}`:uo.textField,children:r!=null?i.isValidElement(r)?r:Array.isArray(r)?r.join(", "):String(r):""})};bo.displayName="ReadOnlyTextField";const Jo=i.forwardRef(function({value:e,type:n="text",emptyValueComponent:t,overStyled:a=!1,className:s,style:l,...c},d){let p=null;const _=m(c,a),f=t||No,h=(f.check?f.check(e):No.check(e))?o.jsx(f,{value:e}):e;switch(n){case"boolean":p=o.jsx(bo,{value:e===!0?"True":e===!1?"False":h,overStyled:a});break;case"switch":p=o.jsx(bo,{value:e===!0?"On":e===!1?"Off":h,overStyled:a});break;case"text":default:p=o.jsx(bo,{value:h,overStyled:a});break}const b=s?`${uo.layoutOverride} ${s}`:uo.layoutOverride;return o.jsx(co,{ref:d,..._,overStyled:a,className:b,style:l,children:p})});Jo.displayName="ReadOnlyField";const ue=i.forwardRef(function({readOnly:e,readOnlyComponent:n,readOnlyType:t="text",readOnlyValue:a,readOnlyNativeProps:s,emptyValueComponent:l,activeComponent:c,overStyled:d,onLabelEditClick:p,..._},f){if(e){if(n){const N=n;return o.jsx(co,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:o.jsx(N,{...s})})}return o.jsx(Jo,{ref:f,..._,type:t,value:a,emptyValueComponent:l,onLabelEditClick:p,overStyled:d})}return o.jsx(co,{ref:f,..._,onLabelEditClick:p,overStyled:d,children:c})});ue.displayName="WithReadOnlyWrapper";function en({option:r},e,n=!1){const{label:t,leadingIcon:a,supportingText:s}=r,l=t??r.value;if(!a&&!s)return l;const c=n?`${e.optionText} ${e.optionTextWrap}`:e.optionText;return o.jsxs("span",{className:e.optionContent,children:[a&&o.jsx("span",{className:e.optionIcon,children:a}),o.jsxs("span",{className:c,children:[o.jsx("span",{children:l}),s&&o.jsx("span",{className:e.optionSupportingText,children:s})]})]})}const hr="AutoComplete-module__layoutOverride___-K9WL",vr="AutoComplete-module__root___kANza",xr="AutoComplete-module__input___g51MC",br="AutoComplete-module__section___WAbf1",Nr="AutoComplete-module__dropdown___NqO3E",Cr="AutoComplete-module__option___Y-Kja",gr="AutoComplete-module__optionContent___UAkUA",Pr="AutoComplete-module__optionIcon___tbbmW",wr="AutoComplete-module__optionText___aQwHF",Tr="AutoComplete-module__optionTextWrap___RFICS",Sr="AutoComplete-module__optionSupportingText___OoA1N",he={layoutOverride:hr,root:vr,input:xr,section:br,dropdown:Nr,option:Cr,optionContent:gr,optionIcon:Pr,optionText:wr,optionTextWrap:Tr,optionSupportingText:Sr},jr=["size","variant","radius"],on=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,className:C,style:w,disabled:S,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,value:T,defaultValue:v,data:$,renderOption:L,wrapItemText:D=!1,...A}=e,I=B(m(A,t),jr),q=I,H=Zo($),G=z({wrapper:he.root,input:he.input,section:he.section,dropdown:he.dropdown,option:he.option},q.classNames),Z={optionContent:he.optionContent,optionIcon:he.optionIcon,optionText:he.optionText,optionTextWrap:he.optionTextWrap,optionSupportingText:he.optionSupportingText},V=C?`${he.layoutOverride} ${C}`:he.layoutOverride;return o.jsx(ue,{className:V,style:w,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:t,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Autocomplete,{ref:n,...I,classNames:G,disabled:S,value:T,defaultValue:v,error:!!h,data:H,renderOption:L??(K=>en(K,Z,D))})})});on.displayName="AutoComplete";const Rr="Avatar-module__root___fXu-J",$r="Avatar-module__iconWrapper___ojly2",Or="Avatar-module__textWrapper___zp-jD",kr="Avatar-module__image___ieqGp",Ir="Avatar-module__placeholder___IDW7-",po={root:Rr,iconWrapper:$r,textWrapper:Or,image:kr,placeholder:Ir},tn=i.forwardRef(function({size:e="default",variant:n="solid",icon:t,children:a,src:s,overStyled:l=!1,...c},d){const p={solid:"filled",outline:"outline",ghost:"transparent"},_={default:"md",small:"sm",large:"lg"},f=["color","radius"],N=B(m(c,l),f),h=N;let b="text";s?b="image":t&&(b="icon");const x=z({root:po.root,image:po.image,placeholder:po.placeholder},h.classNames),j=h.className;return o.jsx(u.Avatar,{ref:d,...N,className:j,classNames:x,variant:p[n],size:_[e],src:s,"data-variant":n,"data-size":e,"data-style":b,children:t!=null?o.jsx("span",{className:po.iconWrapper,"aria-hidden":!0,children:t}):a!=null?o.jsx("span",{className:po.textWrapper,children:a}):void 0})});tn.displayName="Avatar";const Lr=u.createPolymorphicComponent(tn),Mr="Badge-module__root___5osNT",mo={root:Mr},nn=i.forwardRef(function({variant:e="primary-color",overStyled:n=!1,...t},a){const s=m(t,n),l=z({root:mo.root,section:mo.section,label:mo.label},s.classNames),c=s.className,d=c?`${mo.root} ${c}`:mo.root;return o.jsx(u.Badge,{ref:a,...s,variant:"filled","data-variant":e,className:d,classNames:l})});nn.displayName="Badge";const an=u.createPolymorphicComponent(nn),Ar="Breadcrumb-module__root___x-9ln",Wr="Breadcrumb-module__separator___qrUX-",Ro={root:Ar,separator:Wr},rn=i.forwardRef(function({overStyled:e=!1,separator:n=">",children:t,...a},s){const l=m({separator:n,children:Kt(t),...a},e),c=z({root:Ro.root,separator:Ro.separator},l.classNames),d=l.attributes,p={...d,separator:{"aria-hidden":!0,...d==null?void 0:d.separator}},_=l.className,f=_?`${Ro.root} ${_}`:Ro.root;return o.jsx(u.Breadcrumbs,{ref:s,...l,className:f,classNames:c,attributes:p})});rn.displayName="Breadcrumb";const zr="Loader-module__root___6iYOP",Bo={root:zr},et=i.forwardRef(function({variant:e="oval",size:n="default",animate:t=!0,overStyled:a=!1,...s},l){const d={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",p=m(s,a),_=p,f=z({root:Bo.root},_.classNames),N=_.className,h=N?`${Bo.root} ${N}`:Bo.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 Dr="Button-module__root___Q2R8-",Er="Button-module__loader___X-9u-",Fr="Button-module__label___UJ3Zt",Br="Button-module__labelText___rFV5p",Ur="Button-module__iconWrapper___uEKPa",Vr="Button-module__section___f2mKr",Ke={root:Dr,loader:Er,label:Fr,labelText:Br,iconWrapper:Ur,section:Vr};function Hr(r){return r==null||r===""?!1:typeof r=="string"?r.trim()!=="":!0}const sn=i.forwardRef(function({variant:e="solid",size:n="default",icon:t,children:a,overStyled:s=!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=B(m(p,s),h),x=b,j=!!t||!!x.leftSection,C=!!x.rightSection,w=Hr(a),S=(j||C)&&!w;let P="label";S?P="icon-only":(j||C)&&(P="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 g=z({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,$=ie(n==="small"?"small":"default",c);let L=v;return d&&(L={children:o.jsx(et,{variant:l,size:$,overStyled:!0,color:"var(--button-color)"}),...v}),o.jsx(u.Button,{ref:_,...b,className:T,classNames:g,variant:f[e],size:N[n],loaderProps:L,leftSection:t!=null?o.jsx("span",{className:Ke.iconWrapper,"aria-hidden":!0,children:t}):void 0,"data-variant":e,"data-size":n,"data-content":P,disabled:!!x.disabled||!!x.loading,children:o.jsx("span",{className:Ke.labelText,children:a})})});sn.displayName="Button";const Je=u.createPolymorphicComponent(sn),Gr="Card-module__root___c9KvZ",qr="Card-module__header___PTXf2",Kr="Card-module__footer___Mu-JC",Yr="Card-module__section___BRT8H",Zr="Card-module__content___oFIQa",De={root:Gr,header:qr,footer:Kr,section:Yr,content:Zr},Xr=["radius","withBorder","padding"],ln=i.forwardRef(function({overStyled:e=!1,...n},t){const a=B(m(n,e),Xr);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in n&&!(d in a)&&(a[d]=n[d])});const l=z({root:De.root},a.classNames),c=a.className;return o.jsx(u.Card,{ref:t,...a,className:c,classNames:l})});ln.displayName="Card";const ot=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className;return o.jsx(u.Card.Section,{ref:t,...a,className:s?`${De.section} ${s}`:De.section})});ot.displayName="CardSection";const cn=["withBorder","inheritPadding"],tt=i.forwardRef(function({overStyled:e=!1,...n},t){const a=B(m(n,e),cn),s=a.className;return o.jsx(u.Card.Section,{ref:t,...a,className:s?`${De.header} ${s}`:De.header})});tt.displayName="CardHeader";const nt=i.forwardRef(function({overStyled:e=!1,...n},t){const a=B(m(n,e),cn),s=a.className;return o.jsx(u.Card.Section,{ref:t,...a,className:s?`${De.footer} ${s}`:De.footer})});nt.displayName="CardFooter";const at=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className;return o.jsx("div",{ref:t,...a,className:s?`${De.content} ${s}`:De.content})});at.displayName="CardContent";const dn=u.createPolymorphicComponent(ln),Wo=dn;Wo.Section=ot;Wo.Header=tt;Wo.Footer=nt;Wo.Content=at;const Qr=dn,Jr="Checkbox-module__groupRoot___cBS0o",es="Checkbox-module__root___mY3qk",os="Checkbox-module__body___5yC7q",ts="Checkbox-module__inner___rTke4",ns="Checkbox-module__input___2kt-h",as="Checkbox-module__icon___-O7i6",rs="Checkbox-module__labelWrapper___GpZkr",ss="Checkbox-module__label___cwRtI",we={groupRoot:Jr,root:es,body:os,inner:ts,input:ns,icon:as,labelWrapper:rs,label:ss},Co=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,className:w,style:S,children:P,readOnly:g,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:$,...L}=e,D=["size"],A=B(m(L,t),D),I=A,q=v!==void 0||$!==void 0;return o.jsx(ue,{className:w,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:$,readOnlyNativeProps:e,activeComponent:q?o.jsx(u.Checkbox.Group,{ref:n,...A,disabled:g||I.disabled,value:v,defaultValue:$,children:o.jsx("div",{className:we.groupRoot,"data-layout":a,children:P})}):o.jsx("div",{ref:n,...A,role:"group",className:we.groupRoot,"data-layout":a,children:P})})});Co.displayName="CheckboxGroup";const go=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:a,readOnlyComponent:s,disabled:l,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,...f}=e,N=["size","color","radius","variant","iconColor"],h=B(m(f,t),N),b=h,x=z({root:we.root,body:we.body,inner:we.inner,input:we.input,icon:we.icon,labelWrapper:we.labelWrapper,label:we.label},b.classNames),j=b.className,C=j?`${we.root} ${j}`:we.root;if(a&&s){const S=!!(b.checked??b.defaultChecked),P=s,g=o.jsx(P,{...e,checked:S,label:b.label});return c?o.jsx(ze,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:g}):o.jsx(o.Fragment,{children:g})}const w=o.jsx(u.Checkbox,{ref:n,...h,className:C,classNames:x,disabled:a||l});return c?o.jsx(ze,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:w}):w});go.displayName="Checkbox";go.Group=Co;const ls="Chip-module__root___f5pFk",is="Chip-module__label___Ov9pg",cs="Chip-module__mantineIconWrapper___KLSz6",ds="Chip-module__innerWrapper___EnrTF",us="Chip-module__children___zbRAR",ps="Chip-module__leadingIcon___JBtjQ",ms="Chip-module__deleteIcon___zPPsH",Pe={root:ls,label:is,mantineIconWrapper:cs,innerWrapper:ds,children:us,leadingIcon:ps,deleteIcon:ms};function _s(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:a="Delete",deleteTabIndex:s,deleteIconRef:l,children:c,checked:d,overStyled:p=!1,wrapperProps:_,tabIndex:f,"aria-hidden":N,...h},b){const x=m(h,p),j=x,C=z({root:Pe.root,label:Pe.label,input:Pe.input,iconWrapper:Pe.mantineIconWrapper,checkIcon:Pe.checkIcon},j.classNames),w=j.className,S=w?`${Pe.root} ${w}`:Pe.root,P=e?"":void 0,g=!c&&(!!n||!!t),y=t!==void 0||j.onClick!==void 0||j.onChange!==void 0,T={...P!==void 0?{"data-error":""}:{},...y?{"data-interactive":""}:{}};return o.jsx(u.Chip,{ref:b,...x,checked:d,className:S,classNames:C,wrapperProps:ie(T,_),"data-icon-only":g?"":void 0,tabIndex:ie(y?void 0:-1,f),"aria-hidden":ie(y?void 0:!0,N),children:o.jsxs("span",{className:Pe.innerWrapper,children:[n&&!d&&o.jsx("span",{className:Pe.leadingIcon,"aria-hidden":!0,children:n}),o.jsx("span",{className:Pe.children,children:c}),t&&o.jsx("span",{ref:l,role:"button",className:Pe.deleteIcon,onClick:v=>{v.preventDefault(),v.stopPropagation(),t(v)},"aria-label":a,onKeyDown:v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation(),t(v))},tabIndex:s??0,children:o.jsx(_s,{})})]})})});Po.displayName="Chip";const fs="Container-module__root___UVssr",_o={root:fs},un=i.forwardRef(function({children:e,size:n,...t},a){const s={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof n=="string"&&s[n]?s[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:a,size:l,className:_,classNames:c,...t,children:e})});un.displayName="Container";function ys(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 hs="DatePicker-module__layoutOverride___X9yaM",vs="DatePicker-module__root___6XvRT",xs="DatePicker-module__input___pcSW8",bs="DatePicker-module__section___n3iWA",Ns="DatePicker-module__dropdown___wjt08",Cs="DatePicker-module__calendarHeader___KHxno",gs="DatePicker-module__calendarHeaderControl___q7UvJ",Ps="DatePicker-module__calendarHeaderLevel___ebdJ2",ws="DatePicker-module__calendarHeaderControlIcon___2tZOb",Ts="DatePicker-module__weekday___H5lIj",Ss="DatePicker-module__day___U03J2",ve={layoutOverride:hs,root:vs,input:xs,section:bs,dropdown:Ns,calendarHeader:Cs,calendarHeaderControl:gs,calendarHeaderLevel:Ps,calendarHeaderControlIcon:ws,weekday:Ts,day:Ss},js=["size","variant","radius","description"],pn=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,className:C,style:w,disabled:S,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,value:T,defaultValue:v,highlightToday:$=!0,valueFormat:L="MM/DD/YY",placeholder:D="MM / DD / YY",leftSection:A,...I}=e,q=B(m(I,t),js),H=q,G=z({wrapper:ve.root,input:ve.input,section:ve.section,day:ve.day,weekday:ve.weekday,calendarHeader:ve.calendarHeader,calendarHeaderControl:ve.calendarHeaderControl,calendarHeaderLevel:ve.calendarHeaderLevel,calendarHeaderControlIcon:ve.calendarHeaderControlIcon},H.classNames),Z=H.popoverProps,V=Z&&typeof Z=="object"&&!Array.isArray(Z)?Z:void 0,K=V!=null&&V.classNames&&typeof V.classNames=="object"&&!Array.isArray(V.classNames)?V.classNames:void 0;delete H.popoverProps;const Q={...V,classNames:z({dropdown:ve.dropdown},K)},ce=C?`${ve.layoutOverride} ${C}`:ve.layoutOverride;return o.jsx(ue,{className:ce,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:(()=>{const M=T!==void 0?T:v;return M?Uo.getFormattedDate({type:"default",date:M,locale:"en",format:L,labelSeparator:""}):void 0})(),readOnlyNativeProps:e,activeComponent:o.jsx(Uo.DatePickerInput,{ref:n,...q,classNames:G,disabled:S,value:T,defaultValue:v,label:void 0,description:void 0,error:void 0,withAsterisk:!1,highlightToday:$,valueFormat:L,placeholder:D,leftSection:ie(o.jsx(ys,{}),A),wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0},popoverProps:Q})})});pn.displayName="DatePicker";const Rs="Dropdown-module__layoutOverride___FNcvP",$s="Dropdown-module__root___uVyL0",Os="Dropdown-module__input___dK4dN",ks="Dropdown-module__section___j3MRB",Is="Dropdown-module__clearButton___ODnIa",Ls="Dropdown-module__dropdown___gG-Sw",Ms="Dropdown-module__option___nAGU-",As="Dropdown-module__optionContent___QTwwg",Ws="Dropdown-module__optionIcon___2L56h",zs="Dropdown-module__optionText___cCDpI",Ds="Dropdown-module__optionTextWrap___L4OPI",Es="Dropdown-module__optionSupportingText___2JIOV",ee={layoutOverride:Rs,root:$s,input:Os,section:ks,clearButton:Is,dropdown:Ls,option:Ms,optionContent:As,optionIcon:Ws,optionText:zs,optionTextWrap:Ds,optionSupportingText:Es},Fs=["size","variant","radius","searchable"],mn=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",containerWidth:s,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,className:w,style:S,disabled:P,readOnly:g,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:$,data:L,clearButtonProps:D,renderOption:A,wrapItemText:I=!1,...q}=e,H=B(m(q,t),Fs),G=H,Z=Zo(L),V=D,K={...V,className:V!=null&&V.className?`${ee.clearButton} ${V.className}`:ee.clearButton},Q=z({wrapper:ee.root,input:ee.input,section:ee.section,dropdown:ee.dropdown,option:ee.option},G.classNames),ce={optionContent:ee.optionContent,optionIcon:ee.optionIcon,optionText:ee.optionText,optionTextWrap:ee.optionTextWrap,optionSupportingText:ee.optionSupportingText},M={...S||{},width:s||"100%"},ne=w?`${ee.layoutOverride} ${w}`:ee.layoutOverride;return o.jsx(ue,{className:ne,style:M,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:t,formLayout:a,labelSize:l,labelAlignment:c,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,readOnly:g,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?String(v):$?String($):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(u.Select,{ref:n,...H,classNames:Q,disabled:P,value:v,defaultValue:$,data:Z||[],renderOption:A??(de=>en(de,ce,I)),clearButtonProps:K,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,attributes:{wrapper:{"data-disabled":P?"true":void 0,"data-error":b?"true":void 0}}})})});mn.displayName="Dropdown";const Bs="FileInput-module__layoutOverride___HIOY6",Us="FileInput-module__root___UvQj-",Vs="FileInput-module__leadingIcon___z75c4",Hs="FileInput-module__content___Udsvh",Gs="FileInput-module__value___RX33R",qs="FileInput-module__chipRow___My6TF",Ks="FileInput-module__chipWrapper___q2CDy",Ys="FileInput-module__trailingIcon___odGPm",Me={layoutOverride:Bs,root:Us,leadingIcon:Vs,content:Hs,value:Gs,chipRow:qs,chipWrapper:Ks,trailingIcon:Ys};function Zs(){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 Xs(){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 _n=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,className:w,style:S,disabled:P,readOnly:g,files:y,onFilesAdded:T,onFileRemove:v,accept:$,multiple:L=!1,maxSize:D,maxFiles:A,onFilesRejected:I,invalidFileTypeMessage:q="File type not accepted",maxFilesMessage:H=L?`Maximum of ${A} files allowed`:"Only one file is allowed",icon:G,clearIcon:Z,placeholder:V="Select a file...",browseLabel:K="Choose file",removeFileLabel:Q="Remove",clearLabel:ce="Clear",...M}=e,de=m(M,t),O=!P&&!g,re=!!y&&y.length>0,fe=i.useRef(null),[ae,se]=i.useState(!1),[ye,be]=i.useState(!1),Be=R=>{if(!O)return;const oe=Array.from(R);if(oe.length===0)return;const te=L?A:1,X=L?(y==null?void 0:y.length)??0:0,me=[],So=[];let It=!1,Lt=!1;for(const Do of oe){const Mt=!Yo(Do,$);Mt&&(It=!0);const $a=D!==void 0&&Do.size>D,At=te!==void 0&&X+me.length>=te;At&&(Lt=!0),(Mt||$a||At?So:me).push(Do)}se(It),be(Lt),me.length>0&&(T==null||T(me)),So.length>0&&(I==null||I(So))},Ne=i.useRef(0),[Ue,Ie]=i.useState(!1),Le=R=>{R.preventDefault(),Ne.current+=1,Ie(!0)},oo=R=>{R.preventDefault(),Ne.current-=1,Ne.current<=0&&(Ne.current=0,Ie(!1))},Ce=R=>{R.preventDefault()},Ve=R=>{R.preventDefault(),Ne.current=0,Ie(!1),Be(R.dataTransfer.files)},ge=()=>{var R;O&&((R=fe.current)==null||R.click())},He=R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),ge())},U=R=>{R.target.files&&Be(R.target.files),R.target.value=""},E=()=>{!O||!y||y.length===0||y.forEach(R=>v==null?void 0:v(R.id??R.file.name))},[W,k]=i.useState(0),F=i.useRef([]),Y=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var oe;const R=(y==null?void 0:y.length)??0;if(R>0&&R<Y.current){const te=Math.min(W,R-1);k(te),(oe=F.current[te])==null||oe.focus()}Y.current=R},[y]);const pe=R=>{var X;const oe=(y==null?void 0:y.length)??0;if(oe===0)return;let te;R.key==="ArrowRight"||R.key==="ArrowDown"?te=(W+1)%oe:(R.key==="ArrowLeft"||R.key==="ArrowUp")&&(te=(W-1+oe)%oe),te!==void 0&&(R.preventDefault(),R.stopPropagation(),k(te),(X=F.current[te])==null||X.focus())},Ge=b??(ae?q:ye?H:void 0),to=w?`${Me.layoutOverride} ${w}`:Me.layoutOverride;return o.jsx(co,{overStyled:t,className:to,style:S,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:Ge,required:x,withAsterisk:j,id:C,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:o.jsxs("div",{ref:n,...de,className:Me.root,role:"button","aria-label":K,"aria-disabled":P?"true":void 0,tabIndex:O?0:-1,"data-disabled":P?"true":void 0,"data-readonly":g?"true":void 0,"data-error":Ge?"true":void 0,"data-dragging":Ue?"true":void 0,onClick:O?ge:void 0,onKeyDown:O?He:void 0,onDragEnter:O?Le:void 0,onDragLeave:O?oo:void 0,onDragOver:O?Ce:void 0,onDrop:O?Ve:void 0,children:[o.jsx("span",{className:Me.leadingIcon,"aria-hidden":!0,children:G??o.jsx(Zs,{})}),o.jsxs("div",{className:Me.content,children:[!re&&o.jsx("span",{className:Me.value,"data-placeholder":"true",children:V}),re&&o.jsx("div",{className:Me.chipRow,onKeyDown:g?void 0:pe,children:y.map((R,oe)=>{const te=R.id??R.file.name;return o.jsx("span",{className:Me.chipWrapper,onClick:X=>X.stopPropagation(),children:o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:g?void 0:Q,deleteTabIndex:!g&&oe===W?0:-1,deleteIconRef:X=>{F.current[oe]=X},onDelete:g||P?void 0:()=>v==null?void 0:v(te),children:R.file.name})},te)})})]}),re&&!g&&o.jsx(Je,{overStyled:!0,variant:"text",size:"small",icon:Z??o.jsx(Xs,{}),"aria-label":ce,className:Me.trailingIcon,disabled:P,onClick:R=>{R.preventDefault(),R.stopPropagation(),E()},onKeyDown:R=>{R.key!=="Enter"&&R.key!==" "||(R.preventDefault(),R.stopPropagation(),E())}}),o.jsx("input",{ref:fe,type:"file",hidden:!0,accept:$,multiple:L,disabled:!O,onChange:U})]})})});_n.displayName="FileInput";const Qs="FileUpload-module__layoutOverride___bPpi8",Js="FileUpload-module__root___Q-vcm",el="FileUpload-module__dropzone___jqua0",ol="FileUpload-module__uploadIcon___bb3Nc",tl="FileUpload-module__dropzoneText___L7vS-",nl="FileUpload-module__fileList___XIWLl",Ye={layoutOverride:Qs,root:Js,dropzone:el,uploadIcon:ol,dropzoneText:tl,fileList:nl};function al(){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 fn=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,className:w,style:S,disabled:P,readOnly:g,files:y,onFilesAdded:T,onFileRemove:v,accept:$,multiple:L=!0,maxSize:D,maxFiles:A,onFilesRejected:I,invalidFileTypeMessage:q="File type not accepted",maxFilesMessage:H=`Maximum of ${A} files allowed`,icon:G,dropzoneLabel:Z="Drag and drop files here to upload",browseButtonLabel:V="Browse files",removeFileLabel:K="Remove",...Q}=e,M=m(Q,t),ne=i.useRef(null),[de,O]=i.useState(!1),[re,fe]=i.useState(!1),ae=k=>{if(P)return;const F=Array.from(k);if(F.length===0)return;const Y=(y==null?void 0:y.length)??0,pe=[],Ge=[];let to=!1,R=!1;for(const oe of F){const te=!Yo(oe,$);te&&(to=!0);const X=D!==void 0&&oe.size>D,me=A!==void 0&&Y+pe.length>=A;me&&(R=!0),(te||X||me?Ge:pe).push(oe)}O(to),fe(R),pe.length>0&&(T==null||T(pe)),Ge.length>0&&(I==null||I(Ge))},se=i.useRef(0),[ye,be]=i.useState(!1),Be=k=>{k.preventDefault(),se.current+=1,be(!0)},Ne=k=>{k.preventDefault(),se.current-=1,se.current<=0&&(se.current=0,be(!1))},Ue=k=>{k.preventDefault()},Ie=k=>{k.preventDefault(),se.current=0,be(!1),ae(k.dataTransfer.files)},Le=()=>{var k;P||(k=ne.current)==null||k.click()},oo=k=>{k.target.files&&ae(k.target.files),k.target.value=""},[Ce,Ve]=i.useState(0),ge=i.useRef([]),He=i.useRef((y==null?void 0:y.length)??0);i.useEffect(()=>{var F;const k=(y==null?void 0:y.length)??0;if(k>0&&k<He.current){const Y=Math.min(Ce,k-1);Ve(Y),(F=ge.current[Y])==null||F.focus()}He.current=k},[y]);const U=k=>{var pe;const F=(y==null?void 0:y.length)??0;if(F===0)return;let Y;k.key==="ArrowRight"||k.key==="ArrowDown"?Y=(Ce+1)%F:(k.key==="ArrowLeft"||k.key==="ArrowUp")&&(Y=(Ce-1+F)%F),Y!==void 0&&(k.preventDefault(),Ve(Y),(pe=ge.current[Y])==null||pe.focus())},E=b??(de?q:re?H:void 0),W=w?`${Ye.layoutOverride} ${w}`:Ye.layoutOverride;return o.jsx(co,{overStyled:t,className:W,style:S,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,assistiveWithIcon:h,error:E,required:x,withAsterisk:j,id:C,children:o.jsxs("div",{ref:n,...M,className:Ye.root,"data-disabled":P?"true":void 0,"data-error":E?"true":void 0,children:[!g&&o.jsxs("div",{className:Ye.dropzone,"data-dragging":ye?"true":void 0,onDragEnter:P?void 0:Be,onDragLeave:P?void 0:Ne,onDragOver:P?void 0:Ue,onDrop:P?void 0:Ie,children:[o.jsx("span",{className:Ye.uploadIcon,children:G??o.jsx(al,{})}),o.jsx("span",{className:Ye.dropzoneText,children:Z}),o.jsx(Je,{variant:"outline",disabled:P,onClick:Le,children:V}),o.jsx("input",{ref:ne,type:"file",hidden:!0,accept:$,multiple:L,disabled:P,onChange:oo})]}),y&&y.length>0&&(g?o.jsx("div",{className:Ye.fileList,children:y.map(k=>{const F=k.id??k.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,children:k.file.name},F)})}):o.jsx("div",{className:Ye.fileList,onKeyDown:U,children:y.map((k,F)=>{const Y=k.id??k.file.name;return o.jsx(Po,{checked:!1,tabIndex:-1,deleteLabel:K,deleteTabIndex:F===Ce?0:-1,deleteIconRef:pe=>{ge.current[F]=pe},onDelete:P?void 0:()=>v==null?void 0:v(Y),children:k.file.name},Y)})}))]})})});fn.displayName="FileUpload";const rl="Flex-module__root___yYser",fo={root:rl},yn=i.forwardRef(function({children:e,gap:n="rec-default",rowGap:t,columnGap:a,...s},l){const c={root:fo.root},d=s.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;c.root=f.root?`${fo.root} ${f.root}`:fo.root}const p=s.className,_=p?`${fo.root} ${p}`:fo.root;return o.jsx(u.Flex,{ref:l,className:_,classNames:c,...wo({gap:n,rowGap:t,columnGap:a,...s}),children:e})});yn.displayName="Flex";const sl=u.createPolymorphicComponent(yn),ll="Grid-module__root___s-qPY",il="Grid-module__col___tbuNg",je={root:ll,col:il},hn=i.forwardRef(function({children:e,gutter:n="rec-default",...t},a){const s={root:je.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const f=l;s.root=f.root?`${je.root} ${f.root}`:je.root}const c=t.className,d=c?`${je.root} ${c}`:je.root,{gutter:p,..._}=wo({gutter:n,...t});return o.jsx(u.Grid,{ref:a,gutter:p,className:d,classNames:s,..._,children:e})});hn.displayName="Grid";const cl=u.createPolymorphicComponent(hn),vn=i.forwardRef(function({children:e,...n},t){const a={col:je.col},s=n.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const d=s;a.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:a,...wo(n),children:e})});vn.displayName="GridCol";const xn=u.createPolymorphicComponent(vn),bn=cl;bn.Col=xn;const dl="Group-module__root___ftO64",yo={root:dl},Nn=i.forwardRef(function({children:e,gap:n="rec-default",...t},a){const s={root:yo.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;s.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:a,className:d,classNames:s,...wo({gap:n,...t}),children:e})});Nn.displayName="Group";const ul="Heading-module__root___-To4U",pl={root:ul},Cn=i.forwardRef(function({overStyled:e=!1,order:n=1,...t},a){const s=["size"],l=B(m(t,e),s),c=l.className,p=[`recursica_brand_typography_h${n}`,pl.root,c].filter(Boolean).join(" ");return o.jsx(u.Title,{ref:a,...l,order:n,className:p})});Cn.displayName="Heading";const ml="HoverCard-module__dropdown___FBPFW",_l="HoverCard-module__arrow___S9AkE",Et={dropdown:ml,arrow:_l},gn=function({overStyled:e=!1,withBeak:n=!0,position:t="top",arrowSize:a=16,withArrow:s,...l}){const c=m(l,e),d=c,p=z({dropdown:Et.dropdown,arrow:Et.arrow},d.classNames),_=n??s;return o.jsx(u.HoverCard,{...c,position:t,arrowSize:a,withArrow:_,classNames:p})};gn.displayName="HoverCard";const Pn=function(e){return o.jsx(u.HoverCard.Target,{...e})};Pn.displayName="HoverCardTarget";const wn=function({overStyled:e=!1,...n}){const t=m(n,e),a=t.className;return o.jsx(u.HoverCard.Dropdown,{...t,className:a})};wn.displayName="HoverCardDropdown";const rt=gn;rt.Target=Pn;rt.Dropdown=wn;const fl="Link-module__root___I0VGE",yl="Link-module__iconWrapper___W-LlF",hl="Link-module__labelText___wSvUy",ho={root:fl,iconWrapper:yl,labelText:hl},Tn=i.forwardRef(function({icon:e,children:n,overStyled:t=!1,...a},s){const l=m(a,t),c=l,d=z({root:ho.root},c.classNames),p=c.className,_=p?`${ho.root} ${p}`:ho.root;return o.jsxs(u.Anchor,{ref:s,...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})]})});Tn.displayName="Link";const vl=u.createPolymorphicComponent(Tn),xl="Menu-module__dropdown___j4xuA",bl="Menu-module__item___NMXha",Nl="Menu-module__itemLabel___zvcqC",Cl="Menu-module__itemSection___pRIcn",gl="Menu-module__divider___wPiNq",Pl="Menu-module__label___4FBGa",wl="Menu-module__chevron___hEEiy",no={dropdown:xl,item:bl,itemLabel:Nl,itemSection:Cl,divider:gl,label:Pl,chevron:wl},Sn=function({overStyled:e=!1,...n}){const a=m(n,e),{maxHeight:s,...l}=a,c=z({dropdown:no.dropdown,item:no.item,itemLabel:no.itemLabel,itemSection:no.itemSection,divider:no.divider,label:no.label,chevron:no.chevron},a.classNames),d=l.styles,p=s?{...d,dropdown:{...d==null?void 0:d.dropdown,maxHeight:s,overflowY:"auto"}}:d;return o.jsx(u.Menu,{...l,classNames:c,...p?{styles:p}:{}})};Sn.displayName="Menu";const jn=function({overStyled:e=!1,...n}){const t=m(n,e);return o.jsx(u.Menu.Target,{...t})};jn.displayName="MenuTarget";const Rn=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className;return o.jsx(u.Menu.Dropdown,{...a,ref:t,className:s})});Rn.displayName="MenuDropdown";const $n=i.forwardRef(function({overStyled:e=!1,...n},t){const a=["color"],s=B(m(n,e),a),c=s.className;return o.jsx(u.Menu.Item,{...s,ref:t,className:c})});$n.displayName="MenuItem";const Tl=u.createPolymorphicComponent($n),On=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className;return o.jsx(u.Menu.Divider,{...a,ref:t,className:s})});On.displayName="MenuDivider";const kn=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className;return o.jsx(u.Menu.Label,{...a,ref:t,className:s})});kn.displayName="MenuLabel";const In=function(e){return o.jsx(u.Menu.Sub,{...e})};In.displayName="MenuSub";const Ln=function(e){return o.jsx(u.Menu.Sub.Target,{...e})};Ln.displayName="MenuSubTarget";const Mn=i.forwardRef(function({overStyled:e=!1,...n},t){const a=["color"],s=B(m(n,e),a),c=s.className;return o.jsx(u.Menu.Sub.Item,{...s,ref:t,className:c})});Mn.displayName="MenuSubItem";const Sl=u.createPolymorphicComponent(Mn),An=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className;return o.jsx(u.Menu.Sub.Dropdown,{...a,ref:t,className:s})});An.displayName="MenuSubDropdown";const zo=In;zo.Target=Ln;zo.Item=Sl;zo.Dropdown=An;const so=Sn;so.Target=jn;so.Dropdown=Rn;so.Item=Tl;so.Divider=On;so.Label=kn;so.Sub=zo;const jl="Modal-module__root___ytPLl",Rl="Modal-module__inner___SSUJE",$l="Modal-module__content___dWO-B",Ol="Modal-module__header___ILG9i",kl="Modal-module__title___A5OeE",Il="Modal-module__bodyWrapper___5CCL-",Ll="Modal-module__scrollArea___KD-hm",Ml="Modal-module__footer___rro2w",Al="Modal-module__close___-ER1C",We={root:jl,inner:Rl,content:$l,header:Ol,title:kl,bodyWrapper:Il,scrollArea:Ll,footer:Ml,close:Al},Wn=i.forwardRef(function({overStyled:e=!1,children:n,title:t,withCloseButton:a=!0,overlayProps:s,withOverlay:l=!0,closeButtonProps:c,...d},p){const _=["size","radius"],f=B(m(d,e),_),N=z({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,{...s}),o.jsxs(u.Modal.Content,{children:[(t||a)&&o.jsxs(u.Modal.Header,{children:[t&&o.jsx(u.Modal.Title,{children:t}),a&&o.jsx(u.Modal.CloseButton,{...c})]}),o.jsx(lt,{children:n})]})]})});Wn.displayName="Modal";const st=i.forwardRef(function({overStyled:e=!1,className:n,...t},a){const s=m(t,e);return o.jsx("div",{ref:a,...s,className:`${We.footer} ${n||""}`})});st.displayName="Modal.Footer";const lt=i.forwardRef(function({overStyled:e=!1,className:n,onScroll:t,children:a,...s},l){const c=m(s,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,a]);const b=C=>{h(),t==null||t(C)};let x=null;const j=[];return i.Children.forEach(a,C=>{var w;i.isValidElement(C)&&(C.type===st||((w=C.type)==null?void 0:w.displayName)==="Modal.Footer")?x=C:j.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:j}),x]})});lt.displayName="Modal.Body";const Wl=["size","radius"],zn=i.forwardRef(function({overStyled:e=!1,...n},t){const a=B(m(n,e),Wl);return o.jsx(u.Modal.Root,{ref:t,...a})});zn.displayName="Modal.Root";const Dn=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Modal.Overlay,{ref:t,...a})});Dn.displayName="Modal.Overlay";const zl=["radius"],En=i.forwardRef(function({overStyled:e=!1,...n},t){const a=B(m(n,e),zl);return o.jsx(u.Modal.Content,{ref:t,...a})});En.displayName="Modal.Content";const Fn=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Modal.Header,{ref:t,...a})});Fn.displayName="Modal.Header";const Bn=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Modal.Title,{ref:t,...a})});Bn.displayName="Modal.Title";const Dl=["size","radius"],Un=i.forwardRef(function({overStyled:e=!1,...n},t){const a=B(m(n,e),Dl);return o.jsx(u.Modal.CloseButton,{ref:t,...a})});Un.displayName="Modal.CloseButton";const Ee=Wn;Ee.Root=zn;Ee.Overlay=Dn;Ee.Content=En;Ee.Header=Fn;Ee.Title=Bn;Ee.CloseButton=Un;Ee.Body=lt;Ee.Footer=st;const El="NumberInput-module__layoutOverride___5-9T4",Fl="NumberInput-module__root___C6rAn",Bl="NumberInput-module__input___Ss8p7",Ul="NumberInput-module__section___MijP0",Vl="NumberInput-module__controls___8UfQ2",Hl="NumberInput-module__control___Qre9-",ao={layoutOverride:El,root:Fl,input:Bl,section:Ul,controls:Vl,control:Hl},Gl=["size","variant","radius"],Vn=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,className:C,style:w,disabled:S,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,value:T,defaultValue:v,hideControls:$=!1,...L}=e,D=B(m(L,t),Gl),A=D,I={wrapper:ao.root,input:ao.input,section:ao.section,controls:ao.controls,control:ao.control},q=C?`${ao.layoutOverride} ${C}`:ao.layoutOverride;return o.jsx(ue,{className:q,style:w,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:t,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,readOnly:P,readOnlyComponent:g,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,...D,classNames:I,disabled:S,value:T,defaultValue:v,hideControls:$,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||!$?"true":void 0}})})});Vn.displayName="NumberInput";const ql="Pagination-module__root___ITRjt",Kl="Pagination-module__control___40yNT",Yl="Pagination-module__dots___Yl9da",Zl="Pagination-module__iconWithLabel___pLM4O",Xl="Pagination-module__baseIcon___Qw3bJ",Re={root:ql,control:Kl,dots:Yl,iconWithLabel:Zl,baseIcon:Xl},Ql="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",Jl="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",ei="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",oi="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",ti={next:Ql,prev:Jl,first:ei,last:oi},To=({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:ti[r],fill:"currentColor"})}),Hn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx("span",{children:"Next"}),o.jsx(To,{type:"next",...r})]}),Gn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx(To,{type:"prev",...r}),o.jsx("span",{children:"Prev"})]}),qn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx(To,{type:"first",...r}),o.jsx("span",{children:"First"})]}),Kn=r=>o.jsxs("div",{className:Re.iconWithLabel,children:[o.jsx("span",{children:"Last"}),o.jsx(To,{type:"last",...r})]});function Yn(r){const e=z({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 Zn=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=Yn(a);return o.jsx(u.Pagination.Root,{ref:t,...a,className:s.className,classNames:s.classNames})});Zn.displayName="Pagination.Root";const Xn=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...a},s){const l=m(a,e),c=n?Hn:void 0;return o.jsx(u.Pagination.Next,{ref:s,...l,"data-variant":"text",icon:ie(c,t)})});Xn.displayName="Pagination.Next";const Qn=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...a},s){const l=m(a,e),c=n?Gn:void 0;return o.jsx(u.Pagination.Previous,{ref:s,...l,"data-variant":"text",icon:ie(c,t)})});Qn.displayName="Pagination.Previous";const Jn=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...a},s){const l=m(a,e),c=n?qn:void 0;return o.jsx(u.Pagination.First,{ref:s,...l,"data-variant":"text",icon:ie(c,t)})});Jn.displayName="Pagination.First";const ea=i.forwardRef(function({overStyled:e=!1,withLabel:n,icon:t,...a},s){const l=m(a,e),c=n?Kn:void 0;return o.jsx(u.Pagination.Last,{ref:s,...l,"data-variant":"text",icon:ie(c,t)})});ea.displayName="Pagination.Last";const oa=i.forwardRef(function({overStyled:e=!1,getControlProps:n,withLabels:t,...a},s){const l=m(a,e),c=Yn(l),d=_=>{const f={"data-variant":"text"};return n?{...f,...n(_)}:f},p=t?{nextIcon:Hn,previousIcon:Gn,firstIcon:qn,lastIcon:Kn}:{};return o.jsx(u.Pagination,{ref:s,...p,...l,className:c.className,classNames:c.classNames,getControlProps:d})});oa.displayName="Pagination";const ta=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Pagination.Control,{ref:t,...a})});ta.displayName="Pagination.Control";const na=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Pagination.Dots,{ref:t,...a})});na.displayName="Pagination.Dots";const Oe=oa;Oe.Root=Zn;Oe.Items=u.Pagination.Items;Oe.Control=ta;Oe.Dots=na;Oe.Next=Xn;Oe.Previous=Qn;Oe.First=Jn;Oe.Last=ea;Oe.Icon=To;const ni="Panel-module__content___wdGo-",ai="Panel-module__inner___ruA2b",ri="Panel-module__header___o7SiC",si="Panel-module__title___181OP",li="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",ii="Panel-module__body___SEC3T",ci="Panel-module__footer___t6-hz",Xe={content:ni,inner:ai,header:ri,title:si,titleTruncate:li,body:ii,footer:ci},aa=function({overStyled:e=!1,placement:n="right",keepMounted:t=!0,wrapHeaderText:a=!0,...s}){const l=m(s,e),c=l,d=z({content:Xe.content,header:Xe.header,title:a?Xe.titleTruncate:Xe.title,body:Xe.body,inner:Xe.inner},c.classNames);return o.jsx(u.Drawer,{...l,position:n,keepMounted:t,closeOnClickOutside:ie(!!s.opened,s.closeOnClickOutside),classNames:d})};aa.displayName="Panel";const it=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className,l=s?`${Xe.footer} ${s}`:Xe.footer;return o.jsx("div",{ref:t,...a,className:l})});it.displayName="PanelFooter";const ct=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Drawer.Root,{ref:t,...a})});ct.displayName="PanelRoot";const dt=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Drawer.Overlay,{ref:t,...a})});dt.displayName="PanelOverlay";const ut=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Drawer.Content,{ref:t,...a})});ut.displayName="PanelContent";const pt=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Drawer.Header,{ref:t,...a})});pt.displayName="PanelHeader";const mt=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Drawer.Title,{ref:t,...a})});mt.displayName="PanelTitle";const _t=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Drawer.CloseButton,{ref:t,...a})});_t.displayName="PanelCloseButton";const ft=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Drawer.Body,{ref:t,...a})});ft.displayName="PanelBody";const ke=aa;ke.Root=ct;ke.Overlay=dt;ke.Content=ut;ke.Header=pt;ke.Title=mt;ke.CloseButton=_t;ke.Body=ft;ke.Stack=u.Drawer.Stack;ke.Footer=it;const di="Popover-module__dropdown___svhS6",ui="Popover-module__arrow___5A-0e",Ft={dropdown:di,arrow:ui},ra=function({overStyled:e=!1,withBeak:n=!0,position:t="top",...a}){const s=m(a,e),l=s,c=z({dropdown:Ft.dropdown,arrow:Ft.arrow},l.classNames),d=ie(16,l.arrowSize),p=ie(n,l.withArrow);return o.jsx(u.Popover,{...s,position:t,arrowSize:d,withArrow:p,classNames:c})};ra.displayName="Popover";const sa=function(e){return o.jsx(u.Popover.Target,{...e})};sa.displayName="PopoverTarget";const la=function({overStyled:e=!1,...n}){const t=m(n,e),a=t.className;return o.jsx(u.Popover.Dropdown,{...t,className:a})};la.displayName="PopoverDropdown";const yt=ra;yt.Target=sa;yt.Dropdown=la;const pi="Radio-module__groupRoot___bfUii",mi="Radio-module__root___kAjTD",_i="Radio-module__body___q2Wpj",fi="Radio-module__inner___QaTBB",yi="Radio-module__radio___MfgN-",hi="Radio-module__icon___DWznm",vi="Radio-module__labelWrapper___dB0Gi",xi="Radio-module__label___vAFIP",Te={groupRoot:pi,root:mi,body:_i,inner:fi,radio:yi,icon:hi,labelWrapper:vi,label:xi},ht=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,className:w,style:S,children:P,readOnly:g,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:$,...L}=e,D=["size"],A=B(m(L,t),D),I=A;return o.jsx(ue,{className:w,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:$,readOnlyNativeProps:e,activeComponent:o.jsx(u.Radio.Group,{ref:n,...A,disabled:g||I.disabled,value:v,defaultValue:$,children:o.jsx("div",{className:Te.groupRoot,"data-layout":a,children:P})})})});ht.displayName="RadioGroup";const bi=({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"})}),vt=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:a,readOnlyComponent:s,disabled:l,icon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...N}=e,h=["size","color","radius","variant","iconColor"],b=B(m(N,t),h),x=b,j=z({root:Te.root,body:Te.body,inner:Te.inner,radio:Te.radio,icon:Te.icon,labelWrapper:Te.labelWrapper,label:Te.label},x.classNames),C=x.className,w=C?`${Te.root} ${C}`:Te.root;if(a&&s){const P=!!(x.checked??x.defaultChecked),g=s,y=o.jsx(g,{...e,checked:P,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:n,...b,icon:ie(bi,c),className:w,classNames:j,disabled:a||l});return d?o.jsx(ze,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:S}):S});vt.displayName="Radio";vt.Group=ht;const ia=({checked:r,label:e})=>o.jsxs(u.Box,{component:"span",className:uo.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&o.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),o.jsx("span",{children:r?"On":"Off"})]});ia.displayName="ReadOnlySwitchField";const ca=({checked:r,label:e})=>o.jsxs(u.Box,{component:"span",className:uo.textField,style:{display:"inline-flex",gap:"8px",alignItems:"baseline"},children:[e&&o.jsxs("span",{style:{fontWeight:500},children:[e,":"]}),o.jsx("span",{children:r?"True":"False"})]});ca.displayName="ReadOnlyBooleanField";const Ni="SegmentedControl-module__root___JFRhg",Ci="SegmentedControl-module__label___mS17q",gi="SegmentedControl-module__control___znOdQ",Pi="SegmentedControl-module__indicator___ZMcJy",io={root:Ni,label:Ci,control:gi,indicator:Pi};function wi(r){const e=z({root:io.root,control:io.control,label:io.label,indicator:io.indicator},r.classNames),n=r.className;return{className:n?`${io.root} ${n}`:io.root,classNames:e}}const da=i.forwardRef(function({overStyled:e=!1,orientation:n="horizontal",fullWidth:t,data:a=[],...s},l){const c=m(s,e),p=wi(c),_=a.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:_})});da.displayName="SegmentedControl";const Ti=da,Si="Slider-module__layoutOverride___zYPun",ji="Slider-module__sliderContainer___y8I0J",Ri="Slider-module__sliderTrackWrapper___UHpVh",$i="Slider-module__iconWrapper___uqHpC",Oi="Slider-module__sliderRoot___LI86H",ki="Slider-module__sliderTrack___oqnlG",Ii="Slider-module__sliderBar___TI4VY",Li="Slider-module__sliderThumb___OFn8p",Mi="Slider-module__sliderMarkWrapper___Ufqhu",Ai="Slider-module__sliderMark___1lM2B",Wi="Slider-module__sliderMarkLabel___MMZrq",zi="Slider-module__minMaxGuide___TaGqz",Di="Slider-module__rightGuideContainer___8dOT8",Ei="Slider-module__currentValue___dGV2T",Fi="Slider-module__inputField___6x578",Bi="Slider-module__readOnlyValue___-ZzMW",J={layoutOverride:Si,sliderContainer:ji,sliderTrackWrapper:Ri,iconWrapper:$i,sliderRoot:Oi,sliderTrack:ki,sliderBar:Ii,sliderThumb:Li,sliderMarkWrapper:Mi,sliderMark:Ai,sliderMarkLabel:Wi,minMaxGuide:zi,rightGuideContainer:Di,currentValue:Ei,inputField:Fi,readOnlyValue:Bi},Ui=({value:r})=>{const e=Array.isArray(r)?`${r[0]} – ${r[1]}`:r;return o.jsx("div",{className:J.readOnlyValue,children:e})},ua=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,tooltipLabel:N,assistiveText:h,assistiveWithIcon:b,error:x,required:j,withAsterisk:C,id:w,className:S,style:P,disabled:g,readOnly:y,readOnlyComponent:T,emptyValueComponent:v,value:$,defaultValue:L,icon:D,trailingIcon:A,showInput:I=!1,showMinMaxLabels:q=!0,min:H=0,max:G=100,minLabel:Z,maxLabel:V,step:K=1,onChange:Q,onChangeEnd:ce,...M}=e,[ne,de]=i.useState(()=>$!==void 0?$:L!==void 0?L:H),O=$!==void 0?$:ne,re=Array.isArray(O),[fe,ae]=i.useState(()=>Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString());i.useEffect(()=>{ae(Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString())},[O]);const se=E=>{$===void 0&&de(E),Q==null||Q(E)},ye=E=>{const W=E.target.value;ae(W);const k=parseFloat(W);if(!isNaN(k)){const F=Math.max(H,Math.min(G,k));se(F)}},be=()=>{ae(O.toString())},Be=E=>{const W=O,k=E.target.value;ae([k,W[1].toString()]);const F=parseFloat(k);if(!isNaN(F)){const Y=Math.max(H,Math.min(W[1],F));se([Y,W[1]])}},Ne=E=>{const W=O,k=E.target.value;ae([W[0].toString(),k]);const F=parseFloat(k);if(!isNaN(F)){const Y=Math.max(W[0],Math.min(G,F));se([W[0],Y])}},Ue=()=>{const E=O;ae([E[0].toString(),E[1].toString()])},Ie=["size","variant","radius","wrapperProps"],Le=B(m(M,t),Ie),oo=Le,Ce=z({root:J.sliderRoot,track:J.sliderTrack,bar:J.sliderBar,thumb:J.sliderThumb,markWrapper:J.sliderMarkWrapper,mark:J.sliderMark,markLabel:J.sliderMarkLabel},oo.classNames),Ve=S?`${J.layoutOverride} ${S}`:J.layoutOverride,ge=D?o.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:D}):null,He=A?o.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:A}):null,U=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(ue,{ref:n,className:Ve,style:P,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:h,assistiveWithIcon:b,error:x,required:j,withAsterisk:C,id:w,readOnly:y,readOnlyComponent:T||Ui,emptyValueComponent:v,readOnlyType:"text",readOnlyValue:O,readOnlyNativeProps:{value:O},activeComponent:o.jsxs("div",{className:J.sliderContainer,"data-form-layout":a,"data-disabled":g?"true":void 0,"data-error":x?"true":void 0,children:[re&&I&&o.jsx("input",{type:"number",className:J.inputField,value:fe[0],onChange:Be,onBlur:Ue,min:H,max:O[1],step:K,disabled:g,"data-error":x?"true":void 0,"aria-label":"Minimum value"}),ge,q&&o.jsx("span",{className:J.minMaxGuide,children:Z??H}),o.jsx("div",{className:J.sliderTrackWrapper,children:re?o.jsx(u.RangeSlider,{...Le,classNames:Ce,disabled:g,value:O,onChange:se,onChangeEnd:ce,min:H,max:G,step:K,label:N}):o.jsx(u.Slider,{...Le,classNames:Ce,disabled:g,value:O,onChange:se,onChangeEnd:ce,min:H,max:G,step:K,label:N})}),o.jsxs("div",{className:J.rightGuideContainer,children:[!I&&o.jsx("span",{className:J.currentValue,children:U}),q&&o.jsx("span",{className:J.minMaxGuide,children:V??G})]}),He,I&&(re?o.jsx("input",{type:"number",className:J.inputField,value:fe[1],onChange:Ne,onBlur:Ue,min:O[0],max:G,step:K,disabled:g,"data-error":x?"true":void 0,"aria-label":"Maximum value"}):o.jsx("input",{type:"number",className:J.inputField,value:fe,onChange:ye,onBlur:be,min:H,max:G,step:K,disabled:g,"data-error":x?"true":void 0}))]})})});ua.displayName="Slider";const Vi="Stack-module__root___NUN-x",vo={root:Vi},pa=i.forwardRef(function({children:e,gap:n="rec-default",...t},a){const s={root:vo.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;s.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:a,className:d,classNames:s,...wo({gap:n,...t}),children:e})});pa.displayName="Stack";const Hi=u.createPolymorphicComponent(pa),Gi="Stepper-module__root___jbSYO",qi="Stepper-module__horizontal___USHT1",Ki="Stepper-module__steps___4HPO6",Yi="Stepper-module__step___s2nqL",Zi="Stepper-module__stepBody___TBvys",Xi="Stepper-module__stepLabel___N6nuy",Qi="Stepper-module__stepDescription___DnDAy",Ji="Stepper-module__separator___pU0No",ec="Stepper-module__vertical___d4mOs",oc="Stepper-module__large___J18-y",tc="Stepper-module__small___Ub-zb",nc="Stepper-module__stepIcon___YQHNq",ac="Stepper-module__stepCompletedIcon___B9MeL",rc="Stepper-module__verticalSeparator___frWc1",sc="Stepper-module__content___J-h8X",le={root:Gi,horizontal:qi,steps:Ki,step:Yi,stepBody:Zi,stepLabel:Xi,stepDescription:Qi,separator:Ji,vertical:ec,large:oc,small:tc,stepIcon:nc,stepCompletedIcon:ac,verticalSeparator:rc,content:sc},ma=i.forwardRef(function(e,n){const{overStyled:t=!1,size:a="large",orientation:s="horizontal",className:l,style:c,...d}=e,p=m(d,t),_=p,f=z({steps:le.steps,step:le.step,stepIcon:le.stepIcon,stepCompletedIcon:le.stepCompletedIcon,stepBody:le.stepBody,stepLabel:le.stepLabel,stepDescription:le.stepDescription,separator:le.separator,verticalSeparator:le.verticalSeparator,content:le.content},_.classNames);return o.jsx(u.Stepper,{ref:n,...p,orientation:s,className:`${le.root} ${s==="horizontal"?le.horizontal:le.vertical} ${a==="large"?le.large:le.small} ${l||""}`,style:c,"data-size":a,"data-orientation":s,classNames:f})}),_a=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Stepper.Step,{ref:t,...a})});_a.displayName="Stepper.Step";const lc=Object.assign(ma,{Step:_a,Completed:u.Stepper.Completed});ma.displayName="Stepper";const ic="Switch-module__root___Y5Ydi",cc="Switch-module__track___7ObdZ",dc="Switch-module__body___Sw9Wr",uc="Switch-module__thumb___-FTeK",pc="Switch-module__labelWrapper___YSOwx",mc="Switch-module__label___LrH7V",_c="Switch-module__thumbIconWrapper___sCY-1",fc="Switch-module__checkIcon___ZBAQN",yc="Switch-module__closeIcon___bLLGw",hc="Switch-module__groupRoot___-Uepi",_e={root:ic,track:cc,body:dc,thumb:uc,labelWrapper:pc,label:mc,thumbIconWrapper:_c,checkIcon:fc,closeIcon:yc,groupRoot:hc},xt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,className:w,style:S,children:P,readOnly:g,readOnlyComponent:y,emptyValueComponent:T,value:v,defaultValue:$,...L}=e,D=["size"],A=B(m(L,t),D),I=A;return o.jsx(ue,{className:w,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,description:f,assistiveText:N,assistiveWithIcon:h,error:b,required:x,withAsterisk:j,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:v!==void 0?v:$,readOnlyNativeProps:e,activeComponent:o.jsx(u.Switch.Group,{ref:n,...A,disabled:g||I.disabled,value:v,defaultValue:$,children:o.jsx("div",{className:_e.groupRoot,"data-layout":a,children:P})})})});xt.displayName="SwitchGroup";const bt=i.forwardRef(function(e,n){const{overStyled:t=!1,readOnly:a,readOnlyComponent:s,disabled:l,thumbIcon:c,formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,...N}=e,h=["size","color","radius","variant"],b=B(m(N,t),h),x=b,j=z({root:_e.root,body:_e.body,track:_e.track,thumb:_e.thumb,trackLabel:_e.trackLabel,labelWrapper:_e.labelWrapper,label:_e.label},x.classNames),C=Yt({},x.styles),w=x.className,S=w?`${_e.root} ${w}`:_e.root;if(a&&s){const y=!!(x.checked??x.defaultChecked),T=s,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 P=o.jsxs("div",{className:_e.thumbIconWrapper,children:[o.jsx(u.CheckIcon,{className:_e.checkIcon}),o.jsx(u.CloseIcon,{className:_e.closeIcon})]}),g=o.jsx(u.Switch,{ref:n,...b,className:S,classNames:j,styles:C,disabled:a||l,"data-disabled":a||l||void 0,thumbIcon:ie(P,c)});return d?o.jsx(ze,{formLayout:d,labelSize:p,controlMaxWidth:_,controlMinWidth:f,children:g}):g});bt.displayName="Switch";bt.Group=xt;const vc="Table-module__root___aMWWS",xc="Table-module__sortIcon___V3-dH",Ho={root:vc,sortIcon:xc};function bc(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 Nc(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 fa=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a.className,l=Ho.root,c=s?`${l} ${s}`:l;return o.jsx(u.Table,{ref:t,...a,className:c})});fa.displayName="Table";const Nt=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Table.Thead,{ref:t,...a})});Nt.displayName="TableThead";const Ct=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Table.Tbody,{ref:t,...a})});Ct.displayName="TableTbody";const gt=i.forwardRef(function({overStyled:e=!1,selected:n=!1,disabled:t=!1,...a},s){const l=m(a,e);return o.jsx(u.Table.Tr,{ref:s,...l,"data-selected":n?"true":void 0,"data-disabled":t?"true":void 0})});gt.displayName="TableTr";const Pt=i.forwardRef(function({overStyled:e=!1,sorted:n=!1,disabled:t=!1,variant:a="default",children:s,...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":a==="currency"?"true":void 0,"aria-sort":n==="asc"?"ascending":n==="desc"?"descending":void 0,children:[s,n==="asc"&&o.jsx(bc,{className:Ho.sortIcon}),n==="desc"&&o.jsx(Nc,{className:Ho.sortIcon})]})});Pt.displayName="TableTh";const wt=i.forwardRef(function({overStyled:e=!1,disabled:n=!1,variant:t="default",...a},s){const l=m(a,e);return o.jsx(u.Table.Td,{ref:s,...l,"data-disabled":n?"true":void 0,"data-currency":t==="currency"?"true":void 0})});wt.displayName="TableTd";const Tt=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Table.Tfoot,{ref:t,...a})});Tt.displayName="TableTfoot";const St=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Table.Caption,{ref:t,...a})});St.displayName="TableCaption";const jt=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Table.ScrollContainer,{ref:t,...a})});jt.displayName="TableScrollContainer";const Fe=fa;Fe.Thead=Nt;Fe.Tbody=Ct;Fe.Tr=gt;Fe.Th=Pt;Fe.Td=wt;Fe.Tfoot=Tt;Fe.Caption=St;Fe.ScrollContainer=jt;const Cc="Tabs-module__root___-VKVI",gc="Tabs-module__list___qRVME",Pc="Tabs-module__tab___IdDYc",wc="Tabs-module__panel___08i9c",$o={root:Cc,list:gc,tab:Pc,panel:wc},ya=i.forwardRef(function(e,n){const{variant:t="default",orientation:a="horizontal",overStyled:s=!1,className:l,...c}=e,d=m(c,s),p=d,_=z({list:$o.list,tab:$o.tab,panel:$o.panel},p.classNames);return o.jsx(u.Tabs,{ref:n,...d,variant:t,orientation:a,className:`${$o.root} ${l||""}`,"data-variant":t,"data-orientation":a,classNames:_})});ya.displayName="Tabs";const ha=i.forwardRef(function(e,n){const{overStyled:t=!1,...a}=e;return o.jsx(u.Tabs.List,{ref:n,...m(a,t)})});ha.displayName="Tabs.List";const va=i.forwardRef(function(e,n){const{overStyled:t=!1,...a}=e;return o.jsx(u.Tabs.Tab,{ref:n,...m(a,t)})});va.displayName="Tabs.Tab";const xa=i.forwardRef(function(e,n){const{overStyled:t=!1,...a}=e;return o.jsx(u.Tabs.Panel,{ref:n,...m(a,t)})});xa.displayName="Tabs.Panel";const Tc=Object.assign(ya,{List:ha,Tab:va,Panel:xa}),Sc="Text-module__root___rsBo7",jc={root:Sc},ba=i.forwardRef(function({overStyled:e=!1,variant:n="body",...t},a){const s=m(t,e),l=s.className,d=[`recursica_brand_typography_${n}`,jc.root,l].filter(Boolean).join(" ");return o.jsx(u.Text,{ref:a,...s,className:d})});ba.displayName="Text";const Rc=u.createPolymorphicComponent(ba),$c="TextArea-module__layoutOverride___4MCdm",Oc="TextArea-module__root___3dyeu",kc="TextArea-module__input___8l36v",Oo={layoutOverride:$c,root:Oc,input:kc},Ic=["size","variant","radius"],Na=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,className:C,style:w,disabled:S,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,value:T,defaultValue:v,...$}=e,L=B(m($,t),Ic),D=L,A=z({wrapper:Oo.root,input:Oo.input},D.classNames),I=C?`${Oo.layoutOverride} ${C}`:Oo.layoutOverride;return o.jsx(ue,{className:I,style:w,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:t,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Textarea,{ref:n,...L,classNames:A,disabled:S,value:T,defaultValue:v,label:void 0,description:void 0,error:!!h,required:void 0,withAsterisk:void 0})})});Na.displayName="TextArea";const Lc="TextField-module__layoutOverride___SNZqc",Mc="TextField-module__root___2ZYkG",Ac="TextField-module__input___RL-My",Wc="TextField-module__section___bCIJ0",xo={layoutOverride:Lc,root:Mc,input:Ac,section:Wc},zc=["size","variant","radius"],Rt=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,className:C,style:w,disabled:S,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,value:T,defaultValue:v,...$}=e,L=B(m($,t),zc),D=L,A=z({wrapper:xo.root,input:xo.input,section:xo.section},D.classNames),I=C?`${xo.layoutOverride} ${C}`:xo.layoutOverride;return o.jsx(ue,{className:I,style:w,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:t,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:T!==void 0?T:v,readOnlyNativeProps:e,activeComponent:o.jsx(u.Input,{ref:n,...L,classNames:A,disabled:S,value:T,defaultValue:v,wrapperProps:{"data-disabled":S?"true":void 0,"data-error":h?"true":void 0}})})});Rt.displayName="TextField";const Dc=["size","variant","radius"],Ca=i.forwardRef(function(e,n){const{overStyled:t=!1,className:a,disabled:s,error:l,...c}=e,d=B(m(c,t),Dc),p=d,_=z({wrapper:a?`${ee.root} ${a}`:ee.root,input:ee.input,section:ee.section,dropdown:ee.dropdown,option:ee.option},p.classNames);return o.jsx(u.Select,{ref:n,...d,classNames:_,disabled:s,label:void 0,description:void 0,error:void 0,attributes:{wrapper:{"data-disabled":s?"true":void 0,"data-error":l?"true":void 0}}})});Ca.displayName="BareDropdown";const Ec="TimePicker-module__layoutOverride___zKo4Q",Fc="TimePicker-module__root___BcvRu",Bc="TimePicker-module__timeWrapper___hJVre",Uc="TimePicker-module__timeInput___FQysn",Vc="TimePicker-module__fieldsGroup___2yHhR",Hc="TimePicker-module__section___VkSWB",Gc="TimePicker-module__timeField___twRZd",qc="TimePicker-module__amPmSelect___mSdvt",Ae={layoutOverride:Ec,root:Fc,timeWrapper:Bc,timeInput:Uc,fieldsGroup:Vc,section:Hc,timeField:Gc,amPmSelect:qc},Kc=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Bt(r){if(!r)return;const e=parseInt(r.slice(0,2),10);return Number.isNaN(e)?void 0:e}function Yc(r,e){return`${String(e).padStart(2,"0")}${r.slice(2)}`}function Zc(r){if(!r)return;const[e,n,t]=r.split(":"),a=parseInt(e,10);if(Number.isNaN(a)||n===void 0)return r;const s=a>=12,l=a%12===0?12:a%12,c=t!==void 0?`${n}:${t}`:n;return`${l}:${c} ${s?"PM":"AM"}`}function Xc(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 Qc=["size","variant","radius"],ga=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,className:C,style:w,disabled:S,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,value:T,defaultValue:v,onChange:$,withSeconds:L,minTime:D,maxTime:A,...I}=e,q=B(m(I,t),Qc),H=q,[G,Z]=i.useState(()=>T??v);i.useEffect(()=>{T!==void 0&&Z(T)},[T]);const V=i.useRef(null);i.useEffect(()=>{Bt(T??v)===void 0&&V.current&&Xc(V.current,"AM")},[]);const K=O=>{Z(O),$==null||$(O)},Q=Bt(G),ce=Q!==void 0&&Q>=12,M=O=>{K(O)},ne=O=>{if(Q===void 0||!G||!O)return;const re=O==="PM";if(re===ce)return;const fe=re?Q+12:Q-12;K(Yc(G,fe))},de=C?`${Ae.layoutOverride} ${C}`:Ae.layoutOverride;return o.jsx(ue,{className:de,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:f,assistiveWithIcon:N,error:h,required:b,withAsterisk:x,id:j,readOnly:P,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:Zc(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(Uo.TimePicker,{ref:n,...q,classNames:z({wrapper:Ae.timeWrapper,input:Ae.timeInput,section:Ae.section,fieldsGroup:Ae.fieldsGroup,field:Ae.timeField},H.classNames),disabled:S,value:G,onChange:M,format:"12h",withSeconds:L,min:D,max:A,withDropdown:!1,amPmRef:V}),o.jsx(Ca,{overStyled:!0,className:Ae.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:Kc,value:ce?"PM":"AM",onChange:ne,disabled:S,error:!!h,"aria-label":"AM or PM"})]})})});ga.displayName="TimePicker";const Jc="Timeline-module__root___LwRdZ",ed="Timeline-module__item___T5xdQ",od="Timeline-module__itemBody___XAV-E",td="Timeline-module__itemBullet___rPXCy",nd="Timeline-module__itemTitle___GgRRW",ad="Timeline-module__itemContent___vurs-",rd="Timeline-module__description___f9sxV",sd="Timeline-module__timestamp___owiRu",Ze={root:Jc,item:ed,itemBody:od,itemBullet:td,itemTitle:nd,itemContent:ad,description:rd,timestamp:sd},$t=i.forwardRef(function({overStyled:e=!1,timestamp:n,bulletVariant:t="default",children:a,...s},l){const c=m(s,e),d=c,p=z({item:Ze.item,itemBody:Ze.itemBody,itemContent:Ze.itemContent,itemBullet:Ze.itemBullet,itemTitle:Ze.itemTitle},d.classNames),_=n?o.jsxs(o.Fragment,{children:[a&&o.jsx("div",{className:Ze.description,children:a}),o.jsx("div",{className:Ze.timestamp,children:n})]}):a;return o.jsx(u.TimelineItem,{ref:l,...c,classNames:p,"data-variant":t,children:_})});$t.displayName="TimelineItem";const Pa=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e),s=a,l=z({root:Ze.root},s.classNames);return o.jsx(u.Timeline,{ref:t,...a,classNames:l})});Pa.displayName="Timeline";const wa=Pa;wa.Item=$t;const ld="Toast-module__root___MUvfI",id="Toast-module__icon___VwvE1",cd="Toast-module__loader___8Gxd-",dd="Toast-module__title___-H6R2",ud="Toast-module__description___-QwfC",pd="Toast-module__closeButton___vGr7g",md="Toast-module__body___VLkXA",ro={root:ld,icon:id,loader:cd,title:dd,description:ud,closeButton:pd,body:md},Ta=i.forwardRef(function({overStyled:e=!1,variant:n="default",withCloseButton:t=!0,...a},s){const l=["color","radius","loading"],c=B(m(a,e),l),d=z({root:ro.root,body:ro.body,title:ro.title,description:ro.description,closeButton:ro.closeButton,icon:ro.icon,loader:ro.loader},c.classNames);return o.jsx(u.Notification,{ref:s,...c,withCloseButton:t,withBorder:!1,"data-variant":n,classNames:d,loading:!1})});Ta.displayName="Toast";const _d="Tooltip-module__tooltip___UA7H9",fd="Tooltip-module__arrow___4zROk",Ut={tooltip:_d,arrow:fd},Sa=function({overStyled:e=!1,withBeak:n=!0,position:t="top",arrowSize:a=16,...s}){const l=m(s,e),c=l,d=z({tooltip:Ut.tooltip,arrow:Ut.arrow},c.classNames),p=c.withArrow,_=n??p;return o.jsx(u.Tooltip,{...l,position:t,arrowSize:a,withArrow:_,multiline:!0,classNames:d})};Sa.displayName="Tooltip";const Ot=i.forwardRef(function({overStyled:e=!1,...n},t){const a=m(n,e);return o.jsx(u.Tooltip.Floating,{ref:t,...a})});Ot.displayName="TooltipFloating";const kt=Sa;kt.Floating=Ot;kt.Group=u.Tooltip.Group;const yd="TransferList-module__layoutOverride___nkb32",hd="TransferList-module__root___ikjI7",vd="TransferList-module__panes___dtwkW",xd="TransferList-module__pane___hy-kC",bd="TransferList-module__paneHeader___HZrKX",Nd="TransferList-module__paneSearch___Xji-g",Cd="TransferList-module__paneList___v0rcJ",gd="TransferList-module__emptyState___azPw-",Pd="TransferList-module__transferColumn___3R2Ki",wd="TransferList-module__chevron___l-KdI",xe={layoutOverride:yd,root:hd,panes:vd,pane:xd,paneHeader:bd,paneSearch:Nd,paneList:Cd,emptyState:gd,transferColumn:Pd,chevron:wd};function Vt({direction:r}){return o.jsx("svg",{className:xe.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 Ht({direction:r}){return o.jsx("svg",{className:xe.chevron,"data-direction":r,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M3 3l5 5-5 5M9 3l5 5-5 5"})})}function Td(r){const e={},n=[];return r.forEach(t=>{var a;t.group?(e[a=t.group]??(e[a]=[])).push(t):n.push(t)}),{groups:e,ungrouped:n}}const ja=i.forwardRef(function(e,n){const{overStyled:t=!1,formLayout:a="stacked",labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,description:h,helperText:b,assistiveWithIcon:x,error:j,required:C,id:w,readOnly:S,readOnlyComponent:P,emptyValueComponent:g,data:y,defaultData:T,onChange:v,sourceLabel:$="Available",targetLabel:L="Selected",searchable:D=!0,searchPlaceholder:A="Filter items...",disabled:I=!1,className:q,style:H,...G}=e,Z=m(G,t),V=i.useId(),K=w||`recursica-transfer-list-${V}`,[Q,ce]=i.useState(()=>T??y??[[],[]]),M=y!==void 0?y:Q,ne=i.useCallback(U=>{y===void 0&&ce(U),v==null||v(U)},[y,v]),[de,O]=i.useState(""),[re,fe]=i.useState(""),[ae,se]=i.useState(()=>new Set),[ye,be]=i.useState(()=>new Set),Be=i.useMemo(()=>{if(!de)return M[0];const U=de.toLowerCase();return M[0].filter(E=>E.label.toLowerCase().includes(U))},[M,de]),Ne=i.useMemo(()=>{if(!re)return M[1];const U=re.toLowerCase();return M[1].filter(E=>E.label.toLowerCase().includes(U))},[M,re]),Ue=i.useCallback(()=>{if(ae.size===0)return;const U=M[0].filter(W=>!ae.has(W.value)),E=M[0].filter(W=>ae.has(W.value));se(new Set),ne([U,[...M[1],...E]])},[M,ae,ne]),Ie=i.useCallback(()=>{if(ye.size===0)return;const U=M[1].filter(W=>!ye.has(W.value)),E=M[1].filter(W=>ye.has(W.value));be(new Set),ne([[...M[0],...E],U])},[M,ye,ne]),Le=i.useCallback(()=>{M[0].length!==0&&(se(new Set),ne([[],[...M[1],...M[0]]]))},[M,ne]),oo=i.useCallback(()=>{M[1].length!==0&&(be(new Set),ne([[...M[0],...M[1]],[]]))},[M,ne]),Ce=i.useCallback(U=>{se(E=>{const W=new Set(E);return W.has(U)?W.delete(U):W.add(U),W})},[]),Ve=i.useCallback(U=>{be(E=>{const W=new Set(E);return W.has(U)?W.delete(U):W.add(U),W})},[]),ge=(U,E,W,k,F,Y,pe,Ge)=>{const{groups:to,ungrouped:R}=Td(W),oe=Object.keys(to).sort(),te=F.size>0?`${F.size} / ${k.length}`:`${k.length}`;return o.jsxs("div",{className:xe.pane,"data-pane":U,children:[o.jsxs("div",{className:xe.paneHeader,children:[o.jsx("span",{children:E}),o.jsx(an,{children:te})]}),D&&o.jsx("div",{className:xe.paneSearch,children:o.jsx(Rt,{value:pe,onChange:X=>Ge(X.currentTarget.value),placeholder:A,disabled:I,"aria-label":`Filter ${E.toLowerCase()}`})}),o.jsxs("div",{className:xe.paneList,children:[W.length===0&&o.jsx("div",{className:xe.emptyState,children:"No items"}),R.length>0&&o.jsx(Co,{children:R.map(X=>o.jsx(go,{id:`${K}-${U}-${X.value}`,label:X.label,checked:F.has(X.value),onChange:()=>Y(X.value),disabled:I},X.value))}),oe.map(X=>o.jsx(Co,{label:X,labelSize:"small",children:to[X].map(me=>o.jsx(go,{id:`${K}-${U}-${me.value}`,label:me.label,checked:F.has(me.value),onChange:()=>Y(me.value),disabled:I},me.value))},X))]})]})},He=q?`${xe.layoutOverride} ${q}`:xe.layoutOverride;return o.jsx(ue,{ref:n,formLayout:a,labelSize:s,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:_,label:f,assistiveText:N,description:h,helperText:b,assistiveWithIcon:x,error:j,required:C,id:K,className:He,style:H,overStyled:t,readOnly:S,readOnlyComponent:P,emptyValueComponent:g,readOnlyType:"text",readOnlyValue:M[1].map(U=>U.label),readOnlyNativeProps:e,activeComponent:o.jsx("div",{...Z,className:xe.root,"data-disabled":I?"true":void 0,"data-error":j?"true":void 0,children:o.jsxs("div",{className:xe.panes,children:[ge("source",$,Be,M[0],ae,Ce,de,O),o.jsxs("div",{className:xe.transferColumn,children:[o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(Ht,{direction:"right"}),"aria-label":`Move all to ${L}`,disabled:I||M[0].length===0,onClick:Le}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(Vt,{direction:"right"}),"aria-label":`Move selected to ${L}`,disabled:I||ae.size===0,onClick:Ue}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(Vt,{direction:"left"}),"aria-label":`Move selected to ${$}`,disabled:I||ye.size===0,onClick:Ie}),o.jsx(Je,{variant:"outline",size:"small",icon:o.jsx(Ht,{direction:"left"}),"aria-label":`Move all to ${$}`,disabled:I||M[1].length===0,onClick:oo})]}),ge("target",L,Ne,M[1],ye,Ve,re,fe)]})})})});ja.displayName="TransferList";const Sd="Tree-module__root___ANcH3",jd="Tree-module__subtree___KoLT8",Rd="Tree-module__node___Hvnjg",$d="Tree-module__row___sq5ff",Od="Tree-module__label___zJDit",kd="Tree-module__expandButton___W0WTT",Id="Tree-module__expandGlyph___w8dDQ",eo={root:Sd,subtree:jd,node:Rd,row:$d,label:Od,expandButton:kd,expandGlyph:Id};function Ld(){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 Md(r){return function({node:n,hasChildren:t,expanded:a,selected:s,tree:l,elementProps:c}){return o.jsxs("div",{...c,className:eo.row,"data-has-children":t||void 0,"data-expanded":t&&a?!0:void 0,children:[o.jsx(Je,{overStyled:!0,variant:"text",size:"small",icon:o.jsx(Ld,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:eo.expandButton,onMouseDown:d=>d.preventDefault(),onClick:d=>{d.stopPropagation(),!r&&l.toggleExpanded(n.value)}}),o.jsx("span",{className:eo.label,"data-selected":s||void 0,children:n.label})]})}}const Ra=i.forwardRef(function({overStyled:e=!1,data:n,initialExpandedValues:t,initialSelectedValues:a,multiple:s=!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:a,multiple:s,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 P=g=>{if(l||g.key!=="Enter"&&g.key!==" ")return;const y=g.target.closest('[role="treeitem"]'),T=y==null?void 0:y.dataset.value;T&&(g.preventDefault(),h.select(T))};return S.addEventListener("keydown",P),()=>S.removeEventListener("keydown",P)},[h.select,l]),i.useEffect(()=>{const S=b.current;if(!S||!l)return;const P=g=>{g.preventDefault(),g.stopPropagation()};return S.addEventListener("keydown",P,{capture:!0}),()=>S.removeEventListener("keydown",P,{capture:!0})},[l]);const x=Oa.useMergedRef(f,b),j=N,C=j.className,w=C?`${eo.root} ${C}`:eo.root;return o.jsx(u.Tree,{ref:x,...N,data:n,tree:h,expandOnClick:!1,selectOnClick:!l,expandOnSpace:!1,renderNode:Md(l),"data-disabled":l||void 0,classNames:z({root:w,node:eo.node,subtree:eo.subtree},j.classNames)})});Ra.displayName="Tree";exports.Accordion=Ao;exports.AccordionControl=Lo;exports.AccordionItem=Xo;exports.AccordionPanel=Mo;exports.AssistiveElement=Io;exports.AutoComplete=on;exports.Avatar=Lr;exports.Badge=an;exports.Breadcrumb=rn;exports.Button=Je;exports.Card=Qr;exports.CardContent=at;exports.CardFooter=nt;exports.CardHeader=tt;exports.CardSection=ot;exports.Checkbox=go;exports.CheckboxGroup=Co;exports.Chip=Po;exports.Container=un;exports.DatePicker=pn;exports.Dropdown=mn;exports.EmptyValueRenderer=No;exports.FileInput=_n;exports.FileUpload=fn;exports.Flex=sl;exports.FormControlLayout=ze;exports.Grid=bn;exports.GridCol=xn;exports.Group=Nn;exports.Heading=Cn;exports.HoverCard=rt;exports.IS_DEV=$e;exports.Label=Qo;exports.Layer=Go;exports.Link=vl;exports.Loader=et;exports.Menu=so;exports.Modal=Ee;exports.NumberInput=Vn;exports.Pagination=Oe;exports.Panel=ke;exports.PanelBody=ft;exports.PanelCloseButton=_t;exports.PanelContent=ut;exports.PanelFooter=it;exports.PanelHeader=pt;exports.PanelOverlay=dt;exports.PanelRoot=ct;exports.PanelTitle=mt;exports.Popover=yt;exports.RECURSICA_COMPONENTS=Wa;exports.Radio=vt;exports.RadioGroup=ht;exports.ReadOnlyBooleanField=ca;exports.ReadOnlyField=Jo;exports.ReadOnlySwitchField=ia;exports.ReadOnlyTextField=bo;exports.RecursicaThemeProvider=Aa;exports.SegmentedControl=Ti;exports.Slider=ua;exports.Stack=Hi;exports.Stepper=lc;exports.Switch=bt;exports.SwitchGroup=xt;exports.Table=Fe;exports.TableCaption=St;exports.TableScrollContainer=jt;exports.TableTbody=Ct;exports.TableTd=wt;exports.TableTfoot=Tt;exports.TableTh=Pt;exports.TableThead=Nt;exports.TableTr=gt;exports.Tabs=Tc;exports.Text=Rc;exports.TextArea=Na;exports.TextField=Rt;exports.TimePicker=ga;exports.Timeline=wa;exports.TimelineItem=$t;exports.Toast=Ta;exports.Tooltip=kt;exports.TooltipFloating=Ot;exports.TransferList=ja;exports.Tree=Ra;exports.WithReadOnlyWrapper=ue;exports.copyToClipboard=za;exports.fileMatchesAccept=Yo;exports.injectOverStyledStyles=qo;exports.isGlobalOverStyledActive=Ma;exports.markCurrentPageItem=Kt;exports.mergeClassNames=z;exports.mergeStyles=Yt;exports.normalizeComboboxData=Zo;exports.omitUnsupportedProps=B;exports.registerOverStyledConsoleCommand=Ko;exports.toggleGlobalOverStyled=Gt;exports.useGlobalOverStyled=qt;exports.withCallerOverride=ie;exports.wrapComponent=Xt;
|
|
12
12
|
//# sourceMappingURL=adapter-mantine-v8.cjs.map
|