@recursica/adapter-mantine-v8 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/adapter-mantine-v8.cjs +2 -2
- package/dist/adapter-mantine-v8.cjs.map +1 -1
- package/dist/adapter-mantine-v8.css +1 -1
- package/dist/adapter-mantine-v8.js +580 -574
- package/dist/adapter-mantine-v8.js.map +1 -1
- package/package.json +4 -4
- package/src/components/Checkbox/Checkbox.module.css +1 -3
- package/src/components/FileInput/FileInput.module.css +8 -0
- package/src/components/FileUpload/FileUpload.module.css +1 -0
- package/src/components/FileUpload/FileUpload.tsx +1 -0
- package/src/components/Menu/Menu.stories.tsx +0 -1
- package/src/components/Panel/PANEL_IMPLEMENTATION_NOTES.md +8 -0
- package/src/components/Panel/Panel.module.css +27 -2
- package/src/components/Panel/Panel.stories.tsx +4 -4
- package/src/components/Panel/Panel.tsx +10 -1
- package/src/components/Radio/Radio.module.css +2 -2
- package/src/components/SegmentedControl/SegmentedControl.module.css +26 -0
- package/src/components/Stepper/Stepper.module.css +15 -0
- package/src/components/Switch/Switch.module.css +5 -0
- package/src/components/Tabs/Tabs.module.css +5 -0
- package/src/components/Tabs/Tabs.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @recursica/adapter-mantine-v8
|
|
2
2
|
|
|
3
|
+
## 1.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4e1ecc2: Updated @recursica/adapter-common, adapter-tester and storybook-template to their latest releases.
|
|
8
|
+
- 4e1ecc2: FileUpload is now capped at the global form-field max-width instead of filling its whole container.
|
|
9
|
+
- 4e1ecc2: FileInput keeps a fixed height when a file is added, FileUpload width is also enforced at the layout level, and vertical Stepper, Tabs and Switch no longer add Mantine spacing on top of the Recursica gap tokens.
|
|
10
|
+
- 4e1ecc2: Menu WithSubmenus story no longer forces a 200px width, so it uses the Recursica menu min-width token.
|
|
11
|
+
- 4e1ecc2: Panel rounds only the corners facing the page, and RadioGroup/CheckboxGroup `side-by-side` layouts now stack vertically instead of wrapping in a row.
|
|
12
|
+
- 4e1ecc2: Panel width now follows the Forge `max-width` token (capped at the viewport width) instead of Mantine's 440px default.
|
|
13
|
+
- 4e1ecc2: Vertical SegmentedControl now uses a container radius concentric with its items and a correct horizontal divider between items.
|
|
14
|
+
|
|
3
15
|
## 1.3.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),p=require("@mantine/core"),Ho=require("@mantine/dates"),nn=require("@mantine/hooks");var Bo=typeof document<"u"?document.currentScript:null;const Dr="_root_1qhn7_3",Er="_contents_1qhn7_18",so={root:Dr,contents:Er},Yo=i.forwardRef(function({layer:a,contentsOnly:e,children:t,className:n,style:r,...s},l){const d=e?n?`${so.root} ${so.contents} ${n}`:`${so.root} ${so.contents}`:n?`${so.root} ${n}`:so.root;return o.jsx("div",{ref:l,className:d,style:r,...e?{}:{"data-recursica-layer":String(a)},...s,children:t})});Yo.displayName="Layer";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),i=require("react"),p=require("@mantine/core"),Ho=require("@mantine/dates"),nn=require("@mantine/hooks");var Bo=typeof document<"u"?document.currentScript:null;const Dr="_root_1qhn7_3",Er="_contents_1qhn7_18",so={root:Dr,contents:Er},Yo=i.forwardRef(function({layer:a,contentsOnly:e,children:t,className:n,style:r,...s},l){const d=e?n?`${so.root} ${so.contents} ${n}`:`${so.root} ${so.contents}`:n?`${so.root} ${n}`:so.root;return o.jsx("div",{ref:l,className:d,style:r,...e?{}:{"data-recursica-layer":String(a)},...s,children:t})});Yo.displayName="Layer";const Co=({emptyText:a="N/A"})=>o.jsx(i.Fragment,{children:a});Co.displayName="EmptyValueRenderer";Co.check=a=>a==null||a===""||Array.isArray(a)&&a.length===0;const Fr={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"},Oe=(()=>{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:Bo&&Bo.tagName.toUpperCase()==="SCRIPT"&&Bo.src||new URL("adapter-mantine-v8.cjs",document.baseURI).href}&&Fr)return!0}catch{}if(typeof window<"u"){const a=window.location.hostname;return a==="localhost"||a==="127.0.0.1"||a.endsWith(".local")}return!1})(),Go=new Set;let Qe=!1;function rn(a){if(!Oe)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(Qe=a!==void 0?a:!Qe,typeof document<"u"){const e=document.documentElement,t=Qe?"0 0 0 2px cyan":"none";e.style.setProperty("--recursica-over-styled-shadow",t),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 Go.forEach(e=>e()),Qe}function Br(){return Oe&&Qe}function an(){const[a,e]=i.useState(Qe);return i.useEffect(()=>{if(!Oe)return;Zo(),Xo();const t=()=>e(Qe);return Go.add(t),()=>{Go.delete(t)}},[]),Oe&&a}function Zo(){if(!Oe)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const a="recursica-over-styled-styles";let e=document.getElementById(a);e||(e=document.createElement("style"),e.id=a,e.textContent=`
|
|
2
2
|
:root {
|
|
3
3
|
--recursica-over-styled-shadow: none;
|
|
4
4
|
}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
.recursica-over-styled > * {
|
|
9
9
|
box-shadow: var(--recursica-over-styled-shadow) !important;
|
|
10
10
|
}
|
|
11
|
-
`,document.head.appendChild(e))}function Xo(){if(!$e)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const a=e=>{try{e.recursica=e.recursica||{},e.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${rn()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};a(window),window.parent&&window.parent!==window&&a(window.parent)}function sn(a){const e=i.Children.toArray(a),t=e.length-1;return e.map((n,r)=>{if(r!==t||!i.isValidElement(n))return n;const s=n.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(n,{"aria-current":"page",...l?{href:void 0,onClick:void 0,tabIndex:-1}:{}})})}const Qo=i.createContext(void 0);function ln(){const a=i.useContext(Qo);if(!a)throw new Error("This component needs the Recursica manifest: pass the parsed recursica_manifest.json as the `manifest` prop of RecursicaThemeProvider.");return a}const Gt="data-recursica-theme";function Ur({children:a,theme:e="light",initLayer0:t=!0,manifest:n}){i.useEffect(()=>{const s=document.documentElement;return s.setAttribute(Gt,e),()=>{s.removeAttribute(Gt)}},[e]),i.useEffect(()=>{Zo(),Xo()},[]);const r=t?o.jsx(Yo,{layer:0,children:a}):o.jsx(o.Fragment,{children:a});return o.jsx(Qo.Provider,{value:n,children:r})}const Vr=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Box","Breadcrumb","Button","Card","Checkbox","CheckboxGroup","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","FileInput","FileUpload","Flex","FormControlLayout","FormControlWrapper","Group","Heading","HoverCard","Label","Layer","LayoutGrid","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"],Hr=(a,e)=>{const t=document.activeElement;return new Promise((n,r)=>{if(e&&e.current){const s=document.createElement("textarea");s.readOnly=!0,s.defaultValue=a,e.current.appendChild(s),s.select();const l=document.execCommand("copy");e.current.removeChild(s),t&&t.focus(),l?n():r(new Error("Failed to copy"))}else r(new Error("Copy area reference is not defined"))})};function Jo(a,e){const t=(e??"").split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);if(t.length===0)return!0;const n=a.name.toLowerCase(),r=a.type.toLowerCase();return t.some(s=>s.startsWith(".")?n.endsWith(s):s.endsWith("/*")?r.startsWith(s.slice(0,-1)):r===s)}function D(a,e){if(!e)return a;const t={...a},n=new Set([...Object.keys(a),...Object.keys(e)]);for(const r of n){const s=a[r],l=e[r];t[r]=[s,l].filter(Boolean).join(" ")||void 0}return t}function cn(a,e){if(!e)return a;const t={...a},n=new Set([...Object.keys(a),...Object.keys(e)]);for(const r of n){const s=a[r],l=e[r];t[r]=s||l?{...s,...l}:void 0}return t}function et(a){return a==null?void 0:a.map(e=>typeof e=="string"?e:{...e,label:e.label??e.value})}function B(a,e){const t={...a};for(const n of e)n in t&&delete t[n];return t}function Te(a,e){return e!==void 0?e:a}const Gr=Symbol.for("react.forward_ref"),qr=Symbol.for("react.memo");function dn(a){return a?a.prototype&&a.prototype.isReactComponent||a.$$typeof===Gr?!0:a.$$typeof===qr?dn(a.type):!1:!1}function un(a){if(!$e||typeof a!="function"&&!(a&&a.$$typeof))return a;const e=dn(a),t=a.displayName||a.name||"Component",n=i.forwardRef((s,l)=>{const{overStyled:d}=s,c=an();$e&&l&&!e&&console.warn(`[wrapComponent] "${t}" 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 u=e?{...s,ref:l}:s,_=i.createElement(a,u);return d&&c?o.jsx("div",{className:"recursica-over-styled",children:_}):_});n.displayName=a.displayName||a.name||"Component";const r=Object.keys(a);for(const s of r){if(s==="render"||s==="$$typeof")continue;const l=a[s];(typeof l=="function"||l&&l.$$typeof)&&s[0]===s[0].toUpperCase()?n[s]=un(l):n[s]=l}return n}const Kr=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],pn=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 To(a){const e={...a};for(const[t,n]of Object.entries(e))typeof n=="string"&&n.startsWith("rec-")&&pn.has(t)&&n in ko&&(e[t]=ko[n]);return e}function f(a,e){if(e)return a;const t={...a};for(const n of Kr)n in t&&delete t[n];for(const[n,r]of Object.entries(t))typeof r=="string"&&r.startsWith("rec-")&&pn.has(n)&&r in ko&&(t[n]=ko[r]);return t}const Yr="Accordion-module__root___Dem6d",Zr="Accordion-module__item___7ryVk",Xr="Accordion-module__noDivider___Ni2tT",Qr="Accordion-module__control___b4wgX",Jr="Accordion-module__label___Ss7uW",ea="Accordion-module__icon___xfHxX",oa="Accordion-module__chevron___i-HVZ",ta="Accordion-module__iconLeftWrapper___5oLen",na="Accordion-module__panel___Wx50w",ra="Accordion-module__content___PEM9t",Re={root:Yr,item:Zr,noDivider:Xr,control:Qr,label:Jr,icon:ea,chevron:oa,iconLeftWrapper:ta,panel:na,content:ra},qt={default:"unstyled"},mn=function({variant:e="default",overStyled:t=!1,...n}){const r=typeof e=="string"&&qt[e]?qt[e]:e,s=f(n,t),l=s,d=D({root:Re.root,item:Re.item,control:Re.control,label:Re.label,chevron:Re.chevron,icon:Re.icon,panel:Re.panel,content:Re.content},l.classNames),c=l.className;return o.jsx(p.Accordion,{...s,variant:r,className:c,classNames:d})};mn.displayName="Accordion";const ot=i.forwardRef(function({title:e,leftIcon:t,divider:n=!0,children:r,disabled:s=!1,overStyled:l=!1,...d},c){const u=f(d,l),_=u.className,m=[n?void 0:Re.noDivider,_].filter(Boolean).join(" ")||void 0;return o.jsx(p.Accordion.Item,{ref:c,...u,className:m,"data-disabled":s||void 0,children:e?o.jsxs(o.Fragment,{children:[o.jsx(Mo,{leftIcon:t,disabled:s,children:e}),o.jsx(Ao,{children:r})]}):r})});ot.displayName="AccordionItem";const aa=["icon"],Mo=i.forwardRef(function({leftIcon:e,children:t,overStyled:n=!1,...r},s){const l=B(f(r,n),aa),d=l.className;return o.jsx(p.Accordion.Control,{ref:s,...l,className:d,icon:e?o.jsx("span",{className:Re.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,children:t})});Mo.displayName="AccordionControl";const Ao=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Accordion.Panel,{ref:n,...r,className:s})});Ao.displayName="AccordionPanel";const Wo=mn;Wo.Item=ot;Wo.Control=Mo;Wo.Panel=Ao;const sa="AssistiveElement-module__root___WhQ43",la="AssistiveElement-module__textWrapper___sfy5E",ia="AssistiveElement-module__iconWrapper___gObRF",Uo={root:sa,textWrapper:la,iconWrapper:ia},ca=()=>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"})]}),da=()=>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:t=!0,children:n,className:r,role:s,overStyled:l=!1,...d},c){const _=f(d,l),m=Uo.root,b=r?`${m} ${r}`:m,h=e==="error"?da:ca,N=s??(e==="error"?"alert":void 0);return o.jsxs("div",{ref:c,..._,className:b,"data-variant":e,role:N,style:_.style,children:[t&&o.jsx("span",{className:Uo.iconWrapper,children:o.jsx(h,{})}),o.jsx("span",{className:Uo.textWrapper,children:n})]})});Io.displayName="AssistiveElement";const ua="Label-module__root___e6HXZ",pa="Label-module__labelText___rieFR",ma="Label-module__required___Ggrzc",_a="Label-module__optionalText___Y2yun",fa="Label-module__actionAreaWrapper___ELoZK",ya="Label-module__editIconWrapper___NG2xW",qe={root:ua,labelText:pa,required:ma,optionalText:_a,actionAreaWrapper:fa,editIconWrapper:ya},tt=i.forwardRef(function({labelSize:e="default",labelAlignment:t,required:n=!1,labelOptionalText:r,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:d,children:c,overStyled:u=!1,..._},m){const b=t||"left";let h;n||(r===!0?h="optional":r&&(h=r));const N=["size"],v=B(f(_,u),N),w=v,C=D({label:qe.root,required:qe.required},w.classNames),P=w.className,R=P?`${qe.root} ${P}`:qe.root;return o.jsxs(p.Input.Label,{ref:m,...v,className:R,classNames:C,"data-size":e,"data-alignment":b,required:n&&!s,children:[o.jsx("span",{className:qe.labelText,children:c}),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":n?"true":void 0,onClick:d,"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]})});tt.displayName="Label";const ha="FormControlLayout-module__root___yNDhZ",va="FormControlLayout-module__leftSection___GBM1r",xa="FormControlLayout-module__rightSection___bcL4v",Ro={root:ha,leftSection:va,rightSection:xa},ze=i.forwardRef(function({formLayout:e="stacked",labelSize:t="default",controlMaxWidth:n,controlMinWidth:r,leftSection:s,children:l,className:d,style:c,...u},_){const m=d?`${Ro.root} ${d}`:Ro.root,h=s!=null||e==="side-by-side";return o.jsxs("div",{ref:_,className:m,"data-form-layout":e,style:{...c,...n?{"--form-control-max-width":n}:{},...r?{"--form-control-min-width":r}:{}},...u,children:[h&&o.jsx("div",{className:Ro.leftSection,"data-size":t,children:s}),o.jsx("div",{className:Ro.rightSection,children:l})]})});ze.displayName="FormControlLayout";const ba="FormControlWrapper-module__root___c-UHo",Na="FormControlWrapper-module__inputSection___HenXk",Kt={root:ba,inputSection:Na},co=i.forwardRef(function({formLayout:e,labelSize:t,labelAlignment:n,labelOptionalText:r,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:d,label:c,description:u,assistiveText:_,assistiveWithIcon:m=!0,controlMaxWidth:b,controlMinWidth:h,error:N,required:v,withAsterisk:w,id:C,children:P,className:R,overStyled:T=!1,labelElement:g,...y},S){const x=i.useId(),$=C||`recursica-fc-${x}`,L=`${$}-label`,z=_||u,A=z?`${$}-assistive`:void 0,I=N?`${$}-error`:void 0,H=f(y,T),G=R||H.className,Z=Kt.root,V=G?`${Z} ${G}`:Z,K=i.isValidElement(P)?i.cloneElement(P,{...P.props.id?{}:{id:$},"aria-labelledby":L,...z&&!P.props["aria-describedby"]?{"aria-describedby":A}:{},...N&&!P.props["aria-errormessage"]?{"aria-errormessage":I}:{}}):P,Q=c?o.jsx(tt,{id:L,htmlFor:$,labelAlignment:n,labelOptionalText:r,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:d,required:w??v,...g==="div"?{as:"div"}:{},children:c}):void 0;return o.jsx(ze,{ref:S,className:V,formLayout:e,labelSize:t,controlMaxWidth:b,controlMinWidth:h,leftSection:Q,...H,children:o.jsxs("div",{className:Kt.inputSection,children:[K,N&&o.jsx(Io,{id:I,assistiveVariant:"error",assistiveWithIcon:m,children:N}),!N&&z&&o.jsx(Io,{id:A,assistiveVariant:"help",assistiveWithIcon:m,children:z})]})})});co.displayName="FormControlWrapper";const Ca="ReadOnlyField-module__layoutOverride___9fSsG",ga="ReadOnlyField-module__textField___qKn25",uo={layoutOverride:Ca,textField:ga},bo=({value:a,overStyled:e=!1,...t})=>{const n=f(t,e),r=n.className;return o.jsx(p.Box,{component:"p",...n,className:r?`${uo.textField} ${r}`:uo.textField,children:a!=null?i.isValidElement(a)?a:Array.isArray(a)?a.join(", "):String(a):""})};bo.displayName="ReadOnlyTextField";const nt=i.forwardRef(function({value:e,type:t="text",emptyValueComponent:n,overStyled:r=!1,className:s,style:l,...d},c){let u=null;const _=f(d,r),m=n||No,h=(m.check?m.check(e):No.check(e))?o.jsx(m,{value:e}):e;switch(t){case"boolean":u=o.jsx(bo,{value:e===!0?"True":e===!1?"False":h,overStyled:r});break;case"switch":u=o.jsx(bo,{value:e===!0?"On":e===!1?"Off":h,overStyled:r});break;case"text":default:u=o.jsx(bo,{value:h,overStyled:r});break}const N=s?`${uo.layoutOverride} ${s}`:uo.layoutOverride;return o.jsx(co,{ref:c,..._,overStyled:r,className:N,style:l,children:u})});nt.displayName="ReadOnlyField";const ue=i.forwardRef(function({readOnly:e,readOnlyComponent:t,readOnlyType:n="text",readOnlyValue:r,readOnlyNativeProps:s,emptyValueComponent:l,activeComponent:d,overStyled:c,onLabelEditClick:u,..._},m){if(e){if(t){const b=t;return o.jsx(co,{ref:m,..._,onLabelEditClick:u,overStyled:c,children:o.jsx(b,{...s})})}return o.jsx(nt,{ref:m,..._,type:n,value:r,emptyValueComponent:l,onLabelEditClick:u,overStyled:c})}return o.jsx(co,{ref:m,..._,onLabelEditClick:u,overStyled:c,children:d})});ue.displayName="WithReadOnlyWrapper";function _n({option:a},e,t=!1){const{label:n,leadingIcon:r,supportingText:s}=a,l=n??a.value;if(!r&&!s)return l;const d=t?`${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:d,children:[o.jsx("span",{children:l}),s&&o.jsx("span",{className:e.optionSupportingText,children:s})]})]})}const wa="AutoComplete-module__layoutOverride___-K9WL",Pa="AutoComplete-module__root___kANza",Ta="AutoComplete-module__input___g51MC",Sa="AutoComplete-module__section___WAbf1",Ra="AutoComplete-module__dropdown___NqO3E",ja="AutoComplete-module__option___Y-Kja",$a="AutoComplete-module__optionContent___UAkUA",Oa="AutoComplete-module__optionIcon___tbbmW",ka="AutoComplete-module__optionText___aQwHF",Ia="AutoComplete-module__optionTextWrap___RFICS",La="AutoComplete-module__optionSupportingText___OoA1N",he={layoutOverride:wa,root:Pa,input:Ta,section:Sa,dropdown:Ra,option:ja,optionContent:$a,optionIcon:Oa,optionText:ka,optionTextWrap:Ia,optionSupportingText:La},Ma=["size","variant","radius"],fn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,data:$,renderOption:L,wrapItemText:z=!1,...A}=e,I=B(f(A,n),Ma),q=I,H=et($),G=D({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:P,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:S!==void 0?S:x,readOnlyNativeProps:e,activeComponent:o.jsx(p.Autocomplete,{ref:t,...I,classNames:G,disabled:R,value:S,defaultValue:x,error:!!h,data:H,renderOption:L??(K=>_n(K,Z,z))})})});fn.displayName="AutoComplete";const Aa="Avatar-module__root___fXu-J",Wa="Avatar-module__iconWrapper___ojly2",za="Avatar-module__textWrapper___zp-jD",Da="Avatar-module__image___ieqGp",Ea="Avatar-module__placeholder___IDW7-",po={root:Aa,iconWrapper:Wa,textWrapper:za,image:Da,placeholder:Ea},yn=i.forwardRef(function({size:e="default",variant:t="solid",icon:n,children:r,src:s,overStyled:l=!1,...d},c){const u={solid:"filled",outline:"outline",ghost:"transparent"},_={default:"md",small:"sm",large:"lg"},m=["color","radius"],b=B(f(d,l),m),h=b;let N="text";s?N="image":n&&(N="icon");const v=D({root:po.root,image:po.image,placeholder:po.placeholder},h.classNames),w=h.className;return o.jsx(p.Avatar,{ref:c,...b,className:w,classNames:v,variant:u[t],size:_[e],src:s,"data-variant":t,"data-size":e,"data-style":N,children:n!=null?o.jsx("span",{className:po.iconWrapper,"aria-hidden":!0,children:n}):r!=null?o.jsx("span",{className:po.textWrapper,children:r}):void 0})});yn.displayName="Avatar";const Fa=p.createPolymorphicComponent(yn),Ba="Badge-module__root___5osNT",mo={root:Ba},hn=i.forwardRef(function({variant:e="primary-color",overStyled:t=!1,...n},r){const s=f(n,t),l=D({root:mo.root,section:mo.section,label:mo.label},s.classNames),d=s.className,c=d?`${mo.root} ${d}`:mo.root;return o.jsx(p.Badge,{ref:r,...s,variant:"filled","data-variant":e,className:c,classNames:l})});hn.displayName="Badge";const vn=p.createPolymorphicComponent(hn),Ua="Breadcrumb-module__root___x-9ln",Va="Breadcrumb-module__separator___qrUX-",jo={root:Ua,separator:Va},xn=i.forwardRef(function({overStyled:e=!1,separator:t=">",children:n,...r},s){const l=f({separator:t,children:sn(n),...r},e),d=D({root:jo.root,separator:jo.separator},l.classNames),c=l.attributes,u={...c,separator:{"aria-hidden":!0,...c==null?void 0:c.separator}},_=l.className,m=_?`${jo.root} ${_}`:jo.root;return o.jsx(p.Breadcrumbs,{ref:s,...l,className:m,classNames:d,attributes:u})});xn.displayName="Breadcrumb";const Ha="Loader-module__root___6iYOP",Vo={root:Ha},rt=i.forwardRef(function({variant:e="oval",size:t="default",animate:n=!0,overStyled:r=!1,...s},l){const c={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[t]||"default",u=f(s,r),_=u,m=D({root:Vo.root},_.classNames),b=_.className,h=b?`${Vo.root} ${b}`:Vo.root;return o.jsx(p.Loader,{ref:l,...u,type:e,"data-variant":e,"data-size":c,"data-animate":n,className:h,classNames:m})});rt.displayName="Loader";const Ga="Button-module__root___Q2R8-",qa="Button-module__loader___X-9u-",Ka="Button-module__label___UJ3Zt",Ya="Button-module__labelText___rFV5p",Za="Button-module__iconWrapper___uEKPa",Xa="Button-module__section___f2mKr",Ke={root:Ga,loader:qa,label:Ka,labelText:Ya,iconWrapper:Za,section:Xa};function Qa(a){return a==null||a===""?!1:typeof a=="string"?a.trim()!=="":!0}const bn=i.forwardRef(function({variant:e="solid",size:t="default",icon:n,children:r,overStyled:s=!1,loaderVariant:l="oval",loaderSize:d,useRecursicaLoader:c=!0,...u},_){const m={solid:"filled",outline:"outline",text:"subtle"},b={default:"md",small:"sm"},h=["fullWidth"],N=B(f(u,s),h),v=N,w=!!n||!!v.leftSection,C=!!v.rightSection,P=Qa(r),R=(w||C)&&!P;let T="label";R?T="icon-only":(w||C)&&(T="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&R&&!v["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const g=D({root:Ke.root,section:Ke.section,label:Ke.label,loader:Ke.loader},v.classNames),y=v.className,S=y?`${Ke.root} ${y}`:Ke.root,x=v.loaderProps,$=Te(t==="small"?"small":"default",d);let L=x;return c&&(L={children:o.jsx(rt,{variant:l,size:$,overStyled:!0,color:"var(--button-color)"}),...x}),o.jsx(p.Button,{ref:_,...N,className:S,classNames:g,variant:m[e],size:b[t],loaderProps:L,leftSection:n!=null?o.jsx("span",{className:Ke.iconWrapper,"aria-hidden":!0,children:n}):void 0,"data-variant":e,"data-size":t,"data-content":T,disabled:!!v.disabled||!!v.loading,children:o.jsx("span",{className:Ke.labelText,children:r})})});bn.displayName="Button";const je=p.createPolymorphicComponent(bn),Ja="Card-module__root___c9KvZ",es="Card-module__header___PTXf2",os="Card-module__footer___Mu-JC",ts="Card-module__section___BRT8H",ns="Card-module__content___oFIQa",De={root:Ja,header:es,footer:os,section:ts,content:ns},rs=["radius","withBorder","padding"],Nn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),rs);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(c=>{c in t&&!(c in r)&&(r[c]=t[c])});const l=D({root:De.root},r.classNames),d=r.className;return o.jsx(p.Card,{ref:n,...r,className:d,classNames:l})});Nn.displayName="Card";const at=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Card.Section,{ref:n,...r,className:s?`${De.section} ${s}`:De.section})});at.displayName="CardSection";const Cn=["withBorder","inheritPadding"],st=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Cn),s=r.className;return o.jsx(p.Card.Section,{ref:n,...r,className:s?`${De.header} ${s}`:De.header})});st.displayName="CardHeader";const lt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Cn),s=r.className;return o.jsx(p.Card.Section,{ref:n,...r,className:s?`${De.footer} ${s}`:De.footer})});lt.displayName="CardFooter";const it=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx("div",{ref:n,...r,className:s?`${De.content} ${s}`:De.content})});it.displayName="CardContent";const gn=p.createPolymorphicComponent(Nn),zo=gn;zo.Section=at;zo.Header=st;zo.Footer=lt;zo.Content=it;const as=gn,ss="Checkbox-module__groupRoot___cBS0o",ls="Checkbox-module__root___mY3qk",is="Checkbox-module__body___5yC7q",cs="Checkbox-module__inner___rTke4",ds="Checkbox-module__input___2kt-h",us="Checkbox-module__icon___-O7i6",ps="Checkbox-module__labelWrapper___GpZkr",ms="Checkbox-module__label___cwRtI",Pe={groupRoot:ss,root:ls,body:is,inner:cs,input:ds,icon:us,labelWrapper:ps,label:ms},Co=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,children:T,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,value:x,defaultValue:$,...L}=e,z=["size"],A=B(f(L,n),z),I=A,q=x!==void 0||$!==void 0;return o.jsx(ue,{className:P,style:R,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:n,labelElement:"div",formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:x!==void 0?x:$,readOnlyNativeProps:e,activeComponent:q?o.jsx(p.Checkbox.Group,{ref:t,...A,disabled:g||I.disabled,value:x,defaultValue:$,children:o.jsx("div",{className:Pe.groupRoot,"data-layout":r,children:T})}):o.jsx("div",{ref:t,...A,role:"group",className:Pe.groupRoot,"data-layout":r,children:T})})});Co.displayName="CheckboxGroup";const go=i.forwardRef(function(e,t){const{overStyled:n=!1,readOnly:r,readOnlyComponent:s,disabled:l,formLayout:d,labelSize:c,controlMaxWidth:u,controlMinWidth:_,...m}=e,b=["size","color","radius","variant","iconColor"],h=B(f(m,n),b),N=h,v=D({root:Pe.root,body:Pe.body,inner:Pe.inner,input:Pe.input,icon:Pe.icon,labelWrapper:Pe.labelWrapper,label:Pe.label},N.classNames),w=N.className,C=w?`${Pe.root} ${w}`:Pe.root;if(r&&s){const R=!!(N.checked??N.defaultChecked),T=s,g=o.jsx(T,{...e,checked:R,label:N.label});return d?o.jsx(ze,{formLayout:d,labelSize:c,controlMaxWidth:u,controlMinWidth:_,children:g}):o.jsx(o.Fragment,{children:g})}const P=o.jsx(p.Checkbox,{ref:t,...h,className:C,classNames:v,disabled:r||l});return d?o.jsx(ze,{formLayout:d,labelSize:c,controlMaxWidth:u,controlMinWidth:_,children:P}):P});go.displayName="Checkbox";go.Group=Co;const _s="Chip-module__root___f5pFk",fs="Chip-module__label___Ov9pg",ys="Chip-module__mantineIconWrapper___KLSz6",hs="Chip-module__innerWrapper___EnrTF",vs="Chip-module__children___zbRAR",xs="Chip-module__leadingIcon___JBtjQ",bs="Chip-module__deleteIcon___zPPsH",we={root:_s,label:fs,mantineIconWrapper:ys,innerWrapper:hs,children:vs,leadingIcon:xs,deleteIcon:bs};function Ns(a){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...a,children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const wo=i.forwardRef(function({error:e=!1,icon:t,onDelete:n,deleteLabel:r="Delete",deleteTabIndex:s,deleteIconRef:l,children:d,checked:c,overStyled:u=!1,wrapperProps:_,tabIndex:m,"aria-hidden":b,...h},N){const v=f(h,u),w=v,C=D({root:we.root,label:we.label,input:we.input,iconWrapper:we.mantineIconWrapper,checkIcon:we.checkIcon},w.classNames),P=w.className,R=P?`${we.root} ${P}`:we.root,T=e?"":void 0,g=!d&&(!!t||!!n),y=n!==void 0||w.onClick!==void 0||w.onChange!==void 0,S={...T!==void 0?{"data-error":""}:{},...y?{"data-interactive":""}:{}};return o.jsx(p.Chip,{ref:N,...v,checked:c,className:R,classNames:C,wrapperProps:Te(S,_),"data-icon-only":g?"":void 0,tabIndex:Te(y?void 0:-1,m),"aria-hidden":Te(y?void 0:!0,b),children:o.jsxs("span",{className:we.innerWrapper,children:[t&&!c&&o.jsx("span",{className:we.leadingIcon,"aria-hidden":!0,children:t}),o.jsx("span",{className:we.children,children:d}),n&&o.jsx("span",{ref:l,role:"button",className:we.deleteIcon,onClick:x=>{x.preventDefault(),x.stopPropagation(),n(x)},"aria-label":r,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),n(x))},tabIndex:s??0,children:o.jsx(Ns,{})})]})})});wo.displayName="Chip";const Cs="Container-module__root___UVssr",_o={root:Cs},wn=i.forwardRef(function({children:e,size:t,...n},r){const s={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof t=="string"&&s[t]?s[t]:t,d={root:_o.root},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const m=c;d.root=m.root?`${_o.root} ${m.root}`:_o.root}const u=n.className,_=u?`${_o.root} ${u}`:_o.root;return o.jsx(p.Container,{ref:r,size:l,className:_,classNames:d,...n,children:e})});wn.displayName="Container";function gs(a){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:[o.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),o.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),o.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),o.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})}const ws="DatePicker-module__layoutOverride___X9yaM",Ps="DatePicker-module__root___6XvRT",Ts="DatePicker-module__input___pcSW8",Ss="DatePicker-module__section___n3iWA",Rs="DatePicker-module__dropdown___wjt08",js="DatePicker-module__calendarHeader___KHxno",$s="DatePicker-module__calendarHeaderControl___q7UvJ",Os="DatePicker-module__calendarHeaderLevel___ebdJ2",ks="DatePicker-module__calendarHeaderControlIcon___2tZOb",Is="DatePicker-module__weekday___H5lIj",Ls="DatePicker-module__day___U03J2",ve={layoutOverride:ws,root:Ps,input:Ts,section:Ss,dropdown:Rs,calendarHeader:js,calendarHeaderControl:$s,calendarHeaderLevel:Os,calendarHeaderControlIcon:ks,weekday:Is,day:Ls},Ms=["size","variant","radius","description"],Pn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,highlightToday:$=!0,valueFormat:L="MM/DD/YY",placeholder:z="MM / DD / YY",leftSection:A,...I}=e,q=B(f(I,n),Ms),H=q,G=D({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:D({dropdown:ve.dropdown},K)},ce=C?`${ve.layoutOverride} ${C}`:ve.layoutOverride;return o.jsx(ue,{className:ce,style:P,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:(()=>{const M=S!==void 0?S:x;return M?Ho.getFormattedDate({type:"default",date:M,locale:"en",format:L,labelSeparator:""}):void 0})(),readOnlyNativeProps:e,activeComponent:o.jsx(Ho.DatePickerInput,{ref:t,...q,classNames:G,disabled:R,value:S,defaultValue:x,label:void 0,description:void 0,error:void 0,withAsterisk:!1,highlightToday:$,valueFormat:L,placeholder:z,leftSection:Te(o.jsx(gs,{}),A),wrapperProps:{"data-disabled":R?"true":void 0,"data-error":h?"true":void 0},popoverProps:Q})})});Pn.displayName="DatePicker";const As="Dropdown-module__layoutOverride___FNcvP",Ws="Dropdown-module__root___uVyL0",zs="Dropdown-module__input___dK4dN",Ds="Dropdown-module__section___j3MRB",Es="Dropdown-module__clearButton___ODnIa",Fs="Dropdown-module__dropdown___gG-Sw",Bs="Dropdown-module__option___nAGU-",Us="Dropdown-module__optionContent___QTwwg",Vs="Dropdown-module__optionIcon___2L56h",Hs="Dropdown-module__optionText___cCDpI",Gs="Dropdown-module__optionTextWrap___L4OPI",qs="Dropdown-module__optionSupportingText___2JIOV",ee={layoutOverride:As,root:Ws,input:zs,section:Ds,clearButton:Es,dropdown:Fs,option:Bs,optionContent:Us,optionIcon:Vs,optionText:Hs,optionTextWrap:Gs,optionSupportingText:qs},Ks=["size","variant","radius","searchable"],Tn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",containerWidth:s,labelSize:l,labelAlignment:d,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,disabled:T,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,value:x,defaultValue:$,data:L,clearButtonProps:z,renderOption:A,wrapItemText:I=!1,...q}=e,H=B(f(q,n),Ks),G=H,Z=et(L),V=z,K={...V,className:V!=null&&V.className?`${ee.clearButton} ${V.className}`:ee.clearButton},Q=D({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={...R||{},width:s||"100%"},ne=P?`${ee.layoutOverride} ${P}`:ee.layoutOverride;return o.jsx(ue,{className:ne,style:M,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:n,formLayout:r,labelSize:l,labelAlignment:d,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:x!==void 0?String(x):$?String($):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(p.Select,{ref:t,...H,classNames:Q,disabled:T,value:x,defaultValue:$,data:Z||[],renderOption:A??(de=>_n(de,ce,I)),clearButtonProps:K,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,attributes:{wrapper:{"data-disabled":T?"true":void 0,"data-error":N?"true":void 0}}})})});Tn.displayName="Dropdown";const Ys="FileInput-module__layoutOverride___HIOY6",Zs="FileInput-module__root___UvQj-",Xs="FileInput-module__leadingIcon___z75c4",Qs="FileInput-module__content___Udsvh",Js="FileInput-module__value___RX33R",el="FileInput-module__chipRow___My6TF",ol="FileInput-module__chipWrapper___q2CDy",tl="FileInput-module__trailingIcon___odGPm",Me={layoutOverride:Ys,root:Zs,leadingIcon:Xs,content:Qs,value:Js,chipRow:el,chipWrapper:ol,trailingIcon:tl};function nl(){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 rl(){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 Sn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,disabled:T,readOnly:g,files:y,onFilesAdded:S,onFileRemove:x,accept:$,multiple:L=!1,maxSize:z,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=f(M,n),O=!T&&!g,ae=!!y&&y.length>0,fe=i.useRef(null),[re,se]=i.useState(!1),[ye,be]=i.useState(!1),Be=j=>{if(!O)return;const oe=Array.from(j);if(oe.length===0)return;const te=L?A:1,X=L?(y==null?void 0:y.length)??0:0,me=[],So=[];let Bt=!1,Ut=!1;for(const Fo of oe){const Vt=!Jo(Fo,$);Vt&&(Bt=!0);const zr=z!==void 0&&Fo.size>z,Ht=te!==void 0&&X+me.length>=te;Ht&&(Ut=!0),(Vt||zr||Ht?So:me).push(Fo)}se(Bt),be(Ut),me.length>0&&(S==null||S(me)),So.length>0&&(I==null||I(So))},Ne=i.useRef(0),[Ue,Ie]=i.useState(!1),Le=j=>{j.preventDefault(),Ne.current+=1,Ie(!0)},eo=j=>{j.preventDefault(),Ne.current-=1,Ne.current<=0&&(Ne.current=0,Ie(!1))},Ce=j=>{j.preventDefault()},Ve=j=>{j.preventDefault(),Ne.current=0,Ie(!1),Be(j.dataTransfer.files)},ge=()=>{var j;O&&((j=fe.current)==null||j.click())},He=j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),ge())},U=j=>{j.target.files&&Be(j.target.files),j.target.value=""},E=()=>{!O||!y||y.length===0||y.forEach(j=>x==null?void 0:x(j.id??j.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 j=(y==null?void 0:y.length)??0;if(j>0&&j<Y.current){const te=Math.min(W,j-1);k(te),(oe=F.current[te])==null||oe.focus()}Y.current=j},[y]);const pe=j=>{var X;const oe=(y==null?void 0:y.length)??0;if(oe===0)return;let te;j.key==="ArrowRight"||j.key==="ArrowDown"?te=(W+1)%oe:(j.key==="ArrowLeft"||j.key==="ArrowUp")&&(te=(W-1+oe)%oe),te!==void 0&&(j.preventDefault(),j.stopPropagation(),k(te),(X=F.current[te])==null||X.focus())},Ge=N??(re?q:ye?H:void 0),oo=P?`${Me.layoutOverride} ${P}`:Me.layoutOverride;return o.jsx(co,{overStyled:n,className:oo,style:R,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:Ge,required:v,withAsterisk:w,id:C,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:o.jsxs("div",{ref:t,...de,className:Me.root,role:"button","aria-label":K,"aria-disabled":T?"true":void 0,tabIndex:O?0:-1,"data-disabled":T?"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?eo: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(nl,{})}),o.jsxs("div",{className:Me.content,children:[!ae&&o.jsx("span",{className:Me.value,"data-placeholder":"true",children:V}),ae&&o.jsx("div",{className:Me.chipRow,onKeyDown:g?void 0:pe,children:y.map((j,oe)=>{const te=j.id??j.file.name;return o.jsx("span",{className:Me.chipWrapper,onClick:X=>X.stopPropagation(),children:o.jsx(wo,{checked:!1,tabIndex:-1,deleteLabel:g?void 0:Q,deleteTabIndex:!g&&oe===W?0:-1,deleteIconRef:X=>{F.current[oe]=X},onDelete:g||T?void 0:()=>x==null?void 0:x(te),children:j.file.name})},te)})})]}),ae&&!g&&o.jsx(je,{overStyled:!0,variant:"text",size:"small",icon:Z??o.jsx(rl,{}),"aria-label":ce,className:Me.trailingIcon,disabled:T,onClick:j=>{j.preventDefault(),j.stopPropagation(),E()},onKeyDown:j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.stopPropagation(),E())}}),o.jsx("input",{ref:fe,type:"file",hidden:!0,accept:$,multiple:L,disabled:!O,onChange:U})]})})});Sn.displayName="FileInput";const al="FileUpload-module__layoutOverride___bPpi8",sl="FileUpload-module__root___Q-vcm",ll="FileUpload-module__dropzone___jqua0",il="FileUpload-module__uploadIcon___bb3Nc",cl="FileUpload-module__dropzoneText___L7vS-",dl="FileUpload-module__fileList___XIWLl",Ye={layoutOverride:al,root:sl,dropzone:ll,uploadIcon:il,dropzoneText:cl,fileList:dl};function ul(){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 Rn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,disabled:T,readOnly:g,files:y,onFilesAdded:S,onFileRemove:x,accept:$,multiple:L=!0,maxSize:z,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=f(Q,n),ne=i.useRef(null),[de,O]=i.useState(!1),[ae,fe]=i.useState(!1),re=k=>{if(T)return;const F=Array.from(k);if(F.length===0)return;const Y=(y==null?void 0:y.length)??0,pe=[],Ge=[];let oo=!1,j=!1;for(const oe of F){const te=!Jo(oe,$);te&&(oo=!0);const X=z!==void 0&&oe.size>z,me=A!==void 0&&Y+pe.length>=A;me&&(j=!0),(te||X||me?Ge:pe).push(oe)}O(oo),fe(j),pe.length>0&&(S==null||S(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),re(k.dataTransfer.files)},Le=()=>{var k;T||(k=ne.current)==null||k.click()},eo=k=>{k.target.files&&re(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=N??(de?q:ae?H:void 0),W=P?`${Ye.layoutOverride} ${P}`:Ye.layoutOverride;return o.jsx(co,{overStyled:n,className:W,style:R,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:E,required:v,withAsterisk:w,id:C,children:o.jsxs("div",{ref:t,...M,className:Ye.root,"data-disabled":T?"true":void 0,"data-error":E?"true":void 0,children:[!g&&o.jsxs("div",{className:Ye.dropzone,"data-dragging":ye?"true":void 0,onDragEnter:T?void 0:Be,onDragLeave:T?void 0:Ne,onDragOver:T?void 0:Ue,onDrop:T?void 0:Ie,children:[o.jsx("span",{className:Ye.uploadIcon,children:G??o.jsx(ul,{})}),o.jsx("span",{className:Ye.dropzoneText,children:Z}),o.jsx(je,{variant:"outline",disabled:T,onClick:Le,children:V}),o.jsx("input",{ref:ne,type:"file",hidden:!0,accept:$,multiple:L,disabled:T,onChange:eo})]}),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(wo,{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(wo,{checked:!1,tabIndex:-1,deleteLabel:K,deleteTabIndex:F===Ce?0:-1,deleteIconRef:pe=>{ge.current[F]=pe},onDelete:T?void 0:()=>x==null?void 0:x(Y),children:k.file.name},Y)})}))]})})});Rn.displayName="FileUpload";const pl="Flex-module__root___yYser",fo={root:pl},jn=i.forwardRef(function({children:e,gap:t="rec-default",rowGap:n,columnGap:r,...s},l){const d={root:fo.root},c=s.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const m=c;d.root=m.root?`${fo.root} ${m.root}`:fo.root}const u=s.className,_=u?`${fo.root} ${u}`:fo.root;return o.jsx(p.Flex,{ref:l,className:_,classNames:d,...To({gap:t,rowGap:n,columnGap:r,...s}),children:e})});jn.displayName="Flex";const ml=p.createPolymorphicComponent(jn),_l="LayoutGrid-module__root___etcau",fl="LayoutGrid-module__inner___Oz2XL",yl="LayoutGrid-module__col___8EYKw",le={root:_l,inner:fl,col:yl},hl=1,$n=i.createContext({}),On=i.forwardRef(function({children:e,...t},n){const r={root:le.root,inner:le.inner,col:le.col},s=t.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const m=s;r.root=m.root?`${le.root} ${m.root}`:le.root,r.inner=m.inner?`${le.inner} ${m.inner}`:le.inner,r.col=m.col?`${le.col} ${m.col}`:le.col}const l=t.className,d=l?`${le.root} ${l}`:le.root,{gutter:c,...u}=t,_=To(u);return o.jsx($n.Provider,{value:{type:t.type,breakpoints:t.breakpoints},children:o.jsx(p.Grid,{ref:n,columns:hl,gutter:"var(--recursica_brand_layout-grids_column-gutter)","data-recursica-grow":t.grow?"":void 0,className:d,classNames:r,..._,children:e})})});On.displayName="LayoutGrid";const vl=p.createPolymorphicComponent(On),qo="var(--recursica_brand_layout-grids_columns)",xl=a=>{if(typeof a=="number"){const e=`calc(min(${a}, ${qo}) / ${qo} * 100%)`;return{"--rec-col-basis":e,"--rec-col-max-width":e}}return{"--rec-col-basis":"var(--col-flex-basis)","--rec-col-max-width":"var(--col-max-width)"}},bl=a=>({"--rec-col-offset":typeof a=="number"?`calc(${a} / ${qo} * 100%)`:"var(--col-offset)"}),Nl=a=>typeof a=="object"&&a!==null,io=(a,e)=>Nl(a)?a[e]:e==="base"?a:void 0,Yt=(a,e,t)=>({...io(a,t)===void 0?{}:xl(io(a,t)),...io(e,t)===void 0?{}:bl(io(e,t))});function Cl({selector:a,span:e,offset:t}){const n=p.useMantineTheme(),{type:r,breakpoints:s}=i.useContext($n),l=s??n.breakpoints,d=Object.keys(l).filter(u=>io(e,u)!==void 0||io(t,u)!==void 0),c=p.getSortedBreakpoints(d,l).map(({value:u})=>({query:r==="container"?`mantine-grid (min-width: ${l[u]})`:`(min-width: ${l[u]})`,styles:Yt(e,t,u)}));return o.jsx(p.InlineStyles,{selector:a,styles:Yt(e??12,t,"base"),media:r==="container"?void 0:c,container:r==="container"?c:void 0})}const kn=i.forwardRef(function({children:e,...t},n){const r={col:le.col},s=t.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const u=s;r.col=u.col?`${le.col} ${u.col}`:le.col}const l=t.className,d=l?`${le.col} ${l}`:le.col,c=p.useRandomClassName();return o.jsxs(o.Fragment,{children:[o.jsx(Cl,{selector:`.${c}`,span:t.span,offset:t.offset}),o.jsx(p.Grid.Col,{ref:n,className:`${d} ${c}`,classNames:r,...To(t),children:e})]})});kn.displayName="LayoutGridCol";const In=p.createPolymorphicComponent(kn),Ln=vl;Ln.Col=In;const gl="Group-module__root___ftO64",yo={root:gl},Mn=i.forwardRef(function({children:e,gap:t="rec-default",...n},r){const s={root:yo.root},l=n.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;s.root=u.root?`${yo.root} ${u.root}`:yo.root}const d=n.className,c=d?`${yo.root} ${d}`:yo.root;return o.jsx(p.Group,{ref:r,className:c,classNames:s,...To({gap:t,...n}),children:e})});Mn.displayName="Group";const wl="Heading-module__root___-To4U",Pl={root:wl},An=i.forwardRef(function({overStyled:e=!1,order:t=1,emphasis:n="high",color:r="default",...s},l){const d=["size"],c=B(f(s,e),d),u=c.className,m=[`recursica_brand_typography_h${t}`,Pl.root,u].filter(Boolean).join(" ");return o.jsx(p.Title,{ref:l,...c,order:t,"data-color":r,"data-emphasis":n,className:m})});An.displayName="Heading";const Tl="HoverCard-module__dropdown___FBPFW",Sl="HoverCard-module__arrow___S9AkE",Zt={dropdown:Tl,arrow:Sl},Wn=function({overStyled:e=!1,withBeak:t=!0,position:n="top",arrowSize:r=16,withArrow:s,...l}){const d=f(l,e),c=d,u=D({dropdown:Zt.dropdown,arrow:Zt.arrow},c.classNames),_=t??s;return o.jsx(p.HoverCard,{...d,position:n,arrowSize:r,withArrow:_,classNames:u})};Wn.displayName="HoverCard";const zn=function(e){return o.jsx(p.HoverCard.Target,{...e})};zn.displayName="HoverCardTarget";const Dn=function({overStyled:e=!1,...t}){const n=f(t,e),r=n.className;return o.jsx(p.HoverCard.Dropdown,{...n,className:r})};Dn.displayName="HoverCardDropdown";const ct=Wn;ct.Target=zn;ct.Dropdown=Dn;const Rl="Link-module__root___I0VGE",jl="Link-module__iconWrapper___W-LlF",$l="Link-module__labelText___wSvUy",ho={root:Rl,iconWrapper:jl,labelText:$l},En=i.forwardRef(function({icon:e,children:t,overStyled:n=!1,...r},s){const l=f(r,n),d=l,c=D({root:ho.root},d.classNames),u=d.className,_=u?`${ho.root} ${u}`:ho.root;return o.jsxs(p.Anchor,{ref:s,...l,className:_,classNames:c,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:t})]})});En.displayName="Link";const Ol=p.createPolymorphicComponent(En),kl="Menu-module__dropdown___j4xuA",Il="Menu-module__item___NMXha",Ll="Menu-module__itemLabel___zvcqC",Ml="Menu-module__itemSection___pRIcn",Al="Menu-module__divider___wPiNq",Wl="Menu-module__label___4FBGa",zl="Menu-module__chevron___hEEiy",to={dropdown:kl,item:Il,itemLabel:Ll,itemSection:Ml,divider:Al,label:Wl,chevron:zl},Fn=function({overStyled:e=!1,...t}){const r=f(t,e),{maxHeight:s,...l}=r,d=D({dropdown:to.dropdown,item:to.item,itemLabel:to.itemLabel,itemSection:to.itemSection,divider:to.divider,label:to.label,chevron:to.chevron},r.classNames),c=l.styles,u=s?{...c,dropdown:{...c==null?void 0:c.dropdown,maxHeight:s,overflowY:"auto"}}:c;return o.jsx(p.Menu,{...l,classNames:d,...u?{styles:u}:{}})};Fn.displayName="Menu";const Bn=function({overStyled:e=!1,...t}){const n=f(t,e);return o.jsx(p.Menu.Target,{...n})};Bn.displayName="MenuTarget";const Un=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Menu.Dropdown,{...r,ref:n,className:s})});Un.displayName="MenuDropdown";const Vn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=["color"],s=B(f(t,e),r),d=s.className;return o.jsx(p.Menu.Item,{...s,ref:n,className:d})});Vn.displayName="MenuItem";const Dl=p.createPolymorphicComponent(Vn),Hn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Menu.Divider,{...r,ref:n,className:s})});Hn.displayName="MenuDivider";const Gn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Menu.Label,{...r,ref:n,className:s})});Gn.displayName="MenuLabel";const qn=function(e){return o.jsx(p.Menu.Sub,{...e})};qn.displayName="MenuSub";const Kn=function(e){return o.jsx(p.Menu.Sub.Target,{...e})};Kn.displayName="MenuSubTarget";const Yn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=["color"],s=B(f(t,e),r),d=s.className;return o.jsx(p.Menu.Sub.Item,{...s,ref:n,className:d})});Yn.displayName="MenuSubItem";const El=p.createPolymorphicComponent(Yn),Zn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Menu.Sub.Dropdown,{...r,ref:n,className:s})});Zn.displayName="MenuSubDropdown";const Do=qn;Do.Target=Kn;Do.Item=El;Do.Dropdown=Zn;const ao=Fn;ao.Target=Bn;ao.Dropdown=Un;ao.Item=Dl;ao.Divider=Hn;ao.Label=Gn;ao.Sub=Do;const Fl="Modal-module__root___ytPLl",Bl="Modal-module__inner___SSUJE",Ul="Modal-module__content___dWO-B",Vl="Modal-module__header___ILG9i",Hl="Modal-module__title___A5OeE",Gl="Modal-module__bodyWrapper___5CCL-",ql="Modal-module__scrollArea___KD-hm",Kl="Modal-module__footer___rro2w",Yl="Modal-module__close___-ER1C",We={root:Fl,inner:Bl,content:Ul,header:Vl,title:Hl,bodyWrapper:Gl,scrollArea:ql,footer:Kl,close:Yl},Xn=i.forwardRef(function({overStyled:e=!1,children:t,title:n,withCloseButton:r=!0,overlayProps:s,withOverlay:l=!0,closeButtonProps:d,...c},u){const _=["size","radius"],m=B(f(c,e),_),b=D({root:We.root,inner:We.inner,content:We.content,header:We.header,title:We.title,close:We.close},m.classNames);return o.jsxs(p.Modal.Root,{ref:u,...m,classNames:b,children:[l&&o.jsx(p.Modal.Overlay,{...s}),o.jsxs(p.Modal.Content,{children:[(n||r)&&o.jsxs(p.Modal.Header,{children:[n&&o.jsx(p.Modal.Title,{children:n}),r&&o.jsx(p.Modal.CloseButton,{...d})]}),o.jsx(ut,{children:t})]})]})});Xn.displayName="Modal";const dt=i.forwardRef(function({overStyled:e=!1,className:t,...n},r){const s=f(n,e);return o.jsx("div",{ref:r,...s,className:`${We.footer} ${t||""}`})});dt.displayName="Modal.Footer";const ut=i.forwardRef(function({overStyled:e=!1,className:t,onScroll:n,children:r,...s},l){const d=f(s,e),c=i.useRef(null),[u,_]=i.useState(!1),[m,b]=i.useState(!1),h=i.useCallback(()=>{if(c.current){const{scrollTop:C,scrollHeight:P,clientHeight:R}=c.current;_(C>0),b(Math.ceil(C+R)<P)}},[]);i.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,r]);const N=C=>{h(),n==null||n(C)};let v=null;const w=[];return i.Children.forEach(r,C=>{var P;i.isValidElement(C)&&(C.type===dt||((P=C.type)==null?void 0:P.displayName)==="Modal.Footer")?v=C:w.push(C)}),o.jsxs(p.Modal.Body,{...d,ref:C=>{typeof l=="function"?l(C):l&&(l.current=C)},className:`${We.bodyWrapper} ${t||""}`,children:[o.jsx("div",{ref:c,onScroll:N,"data-scrolled-top":u||void 0,"data-scrolled-bottom":m||void 0,className:We.scrollArea,children:w}),v]})});ut.displayName="Modal.Body";const Zl=["size","radius"],Qn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Zl);return o.jsx(p.Modal.Root,{ref:n,...r})});Qn.displayName="Modal.Root";const Jn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Modal.Overlay,{ref:n,...r})});Jn.displayName="Modal.Overlay";const Xl=["radius"],er=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Xl);return o.jsx(p.Modal.Content,{ref:n,...r})});er.displayName="Modal.Content";const or=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Modal.Header,{ref:n,...r})});or.displayName="Modal.Header";const tr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Modal.Title,{ref:n,...r})});tr.displayName="Modal.Title";const Ql=["size","radius"],nr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Ql);return o.jsx(p.Modal.CloseButton,{ref:n,...r})});nr.displayName="Modal.CloseButton";const Ee=Xn;Ee.Root=Qn;Ee.Overlay=Jn;Ee.Content=er;Ee.Header=or;Ee.Title=tr;Ee.CloseButton=nr;Ee.Body=ut;Ee.Footer=dt;const Jl="NumberInput-module__layoutOverride___5-9T4",ei="NumberInput-module__root___C6rAn",oi="NumberInput-module__input___Ss8p7",ti="NumberInput-module__section___MijP0",ni="NumberInput-module__controls___8UfQ2",ri="NumberInput-module__control___Qre9-",no={layoutOverride:Jl,root:ei,input:oi,section:ti,controls:ni,control:ri},ai=["size","variant","radius"],rr=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,hideControls:$=!1,...L}=e,z=B(f(L,n),ai),A=z,I={wrapper:no.root,input:no.input,section:no.section,controls:no.controls,control:no.control},q=C?`${no.layoutOverride} ${C}`:no.layoutOverride;return o.jsx(ue,{className:q,style:P,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:S!==void 0?S==null?void 0:S.toString():x==null?void 0:x.toString(),readOnlyNativeProps:e,activeComponent:o.jsx(p.NumberInput,{ref:t,...z,classNames:I,disabled:R,value:S,defaultValue:x,hideControls:$,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":R?"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}})})});rr.displayName="NumberInput";const si="Pagination-module__root___ITRjt",li="Pagination-module__dots___Yl9da",ii="Pagination-module__baseIcon___Qw3bJ",ci="Pagination-module__rightIcon___aYC8M",Po={root:si,dots:li,baseIcon:ii,rightIcon:ci},di="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",ui="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",pi="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",mi="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",_i={next:di,prev:ui,first:pi,last:mi},ar=({type:a,className:e,...t})=>o.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${Po.baseIcon} ${e||""}`.trim(),...t,children:o.jsx("path",{d:_i[a],fill:"currentColor"})});function Lo(a){var n,r,s,l,d,c,u;const t=(u=(c=(d=(l=(s=(r=(n=ln()["ui-kit"])==null?void 0:n.components)==null?void 0:r.pagination)==null?void 0:s.properties)==null?void 0:l[a])==null?void 0:d.$extensions)==null?void 0:c["recursica.component"])==null?void 0:u["selected-variants"];if(!t)throw new Error(`Pagination: manifest has no ui-kit.components.pagination.properties.${a} selected-variants`);return{variant:t.style,size:t.size}}const sr=i.createContext(null);function pt(){const a=i.useContext(sr);if(!a)throw new Error("Pagination parts must be rendered inside Pagination.Root");return a}const mt=i.forwardRef(function({overStyled:e=!1,total:t,value:n,defaultValue:r,onChange:s,siblings:l,boundaries:d,disabled:c,getItemProps:u,getControlProps:_,dotsIcon:m,children:b,...h},N){const v=nn.usePagination({total:t,page:n,initialPage:r,onChange:s,siblings:l,boundaries:d}),w=f(h,e),C=w.className;return o.jsx(sr.Provider,{value:{total:t,active:v.active,range:v.range,disabled:c,setPage:v.setPage,first:v.first,previous:v.previous,next:v.next,last:v.last,getItemProps:u,getControlProps:_,dotsIcon:m},children:o.jsx("nav",{ref:N,"aria-label":"Pagination",...w,className:C?`${Po.root} ${C}`:Po.root,children:b})})});mt.displayName="Pagination.Root";const _t=i.forwardRef(function({active:e=!1,disabled:t,...n},r){const s=pt(),l=Lo("active-pages"),d=Lo("inactive-pages"),c=e?l:d;return o.jsx(je,{ref:r,variant:c.variant,size:c.size,disabled:t||s.disabled,"aria-current":e?"page":void 0,...n})});_t.displayName="Pagination.Control";const ft=i.forwardRef(function({icon:e,...t},n){const{size:r}=Lo("inactive-pages");return o.jsx("div",{ref:n,className:Po.dots,"data-size":r,...t,children:e??"…"})});ft.displayName="Pagination.Dots";function yt(){const a=pt();return o.jsx(o.Fragment,{children:a.range.map((e,t)=>{var n,r,s;return e==="dots"?o.jsx(ft,{icon:a.dotsIcon},t):o.jsx(_t,{active:e===a.active,"aria-label":`Page ${e}`,onClick:()=>a.setPage(e),...(n=a.getItemProps)==null?void 0:n.call(a,e),children:((s=(r=a.getItemProps)==null?void 0:r.call(a,e))==null?void 0:s.children)??e},t)})})}yt.displayName="Pagination.Items";const fi={first:"First page",previous:"Previous page",next:"Next page",last:"Last page"},yi={first:"First",previous:"Prev",next:"Next",last:"Last"};function Eo(a,e,t,n){const r=i.forwardRef(function({withLabel:l,icon:d,disabled:c,...u},_){var P;const m=pt(),b=Lo("navigation-controls"),h=m.active===1,N=m.active===m.total,v=c||m.disabled||(a==="first"||a==="previous")&&h||(a==="next"||a==="last")&&N,w=d??o.jsx(ar,{type:e}),C=l?t?{rightSection:o.jsx("span",{className:Po.rightIcon,children:w})}:{icon:w}:{icon:w};return o.jsx(je,{ref:_,variant:b.variant,size:b.size,"aria-label":fi[a],disabled:v,onClick:m[a],...C,...(P=m.getControlProps)==null?void 0:P.call(m,a),...u,children:l?yi[a]:void 0})});return r.displayName=n,r}const lr=Eo("first","first",!1,"Pagination.First"),ir=Eo("previous","prev",!1,"Pagination.Previous"),cr=Eo("next","next",!0,"Pagination.Next"),dr=Eo("last","last",!0,"Pagination.Last"),ur=i.forwardRef(function({withEdges:e,withControls:t=!0,withLabels:n,...r},s){return o.jsxs(mt,{ref:s,...r,children:[e&&o.jsx(lr,{withLabel:n}),t&&o.jsx(ir,{withLabel:n}),o.jsx(yt,{}),t&&o.jsx(cr,{withLabel:n}),e&&o.jsx(dr,{withLabel:n})]})});ur.displayName="Pagination";const Oe=ur;Oe.Root=mt;Oe.Items=yt;Oe.Control=_t;Oe.Dots=ft;Oe.Next=cr;Oe.Previous=ir;Oe.First=lr;Oe.Last=dr;Oe.Icon=ar;const hi="Panel-module__content___wdGo-",vi="Panel-module__inner___ruA2b",xi="Panel-module__header___o7SiC",bi="Panel-module__title___181OP",Ni="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Ci="Panel-module__body___SEC3T",gi="Panel-module__footer___t6-hz",Xe={content:hi,inner:vi,header:xi,title:bi,titleTruncate:Ni,body:Ci,footer:gi},pr=function({overStyled:e=!1,placement:t="right",keepMounted:n=!0,wrapHeaderText:r=!0,...s}){const l=f(s,e),d=l,c=D({content:Xe.content,header:Xe.header,title:r?Xe.titleTruncate:Xe.title,body:Xe.body,inner:Xe.inner},d.classNames);return o.jsx(p.Drawer,{...l,position:t,keepMounted:n,closeOnClickOutside:Te(!!s.opened,s.closeOnClickOutside),classNames:c})};pr.displayName="Panel";const ht=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className,l=s?`${Xe.footer} ${s}`:Xe.footer;return o.jsx("div",{ref:n,...r,className:l})});ht.displayName="PanelFooter";const vt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Root,{ref:n,...r})});vt.displayName="PanelRoot";const xt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Overlay,{ref:n,...r})});xt.displayName="PanelOverlay";const bt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Content,{ref:n,...r})});bt.displayName="PanelContent";const Nt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Header,{ref:n,...r})});Nt.displayName="PanelHeader";const Ct=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Title,{ref:n,...r})});Ct.displayName="PanelTitle";const gt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.CloseButton,{ref:n,...r})});gt.displayName="PanelCloseButton";const wt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Body,{ref:n,...r})});wt.displayName="PanelBody";const ke=pr;ke.Root=vt;ke.Overlay=xt;ke.Content=bt;ke.Header=Nt;ke.Title=Ct;ke.CloseButton=gt;ke.Body=wt;ke.Stack=p.Drawer.Stack;ke.Footer=ht;const wi="Popover-module__dropdown___svhS6",Pi="Popover-module__arrow___5A-0e",Xt={dropdown:wi,arrow:Pi},mr=function({overStyled:e=!1,withBeak:t=!0,position:n="top",...r}){const s=f(r,e),l=s,d=D({dropdown:Xt.dropdown,arrow:Xt.arrow},l.classNames),c=Te(16,l.arrowSize),u=Te(t,l.withArrow);return o.jsx(p.Popover,{...s,position:n,arrowSize:c,withArrow:u,classNames:d})};mr.displayName="Popover";const _r=function(e){return o.jsx(p.Popover.Target,{...e})};_r.displayName="PopoverTarget";const fr=function({overStyled:e=!1,...t}){const n=f(t,e),r=n.className;return o.jsx(p.Popover.Dropdown,{...n,className:r})};fr.displayName="PopoverDropdown";const Pt=mr;Pt.Target=_r;Pt.Dropdown=fr;const Ti="Radio-module__groupRoot___bfUii",Si="Radio-module__root___kAjTD",Ri="Radio-module__body___q2Wpj",ji="Radio-module__inner___QaTBB",$i="Radio-module__radio___MfgN-",Oi="Radio-module__icon___DWznm",ki="Radio-module__labelWrapper___dB0Gi",Ii="Radio-module__label___vAFIP",Se={groupRoot:Ti,root:Si,body:Ri,inner:ji,radio:$i,icon:Oi,labelWrapper:ki,label:Ii},Tt=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,children:T,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,value:x,defaultValue:$,...L}=e,z=["size"],A=B(f(L,n),z),I=A;return o.jsx(ue,{className:P,style:R,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:n,labelElement:"div",formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:x!==void 0?x:$,readOnlyNativeProps:e,activeComponent:o.jsx(p.Radio.Group,{ref:t,...A,disabled:g||I.disabled,value:x,defaultValue:$,children:o.jsx("div",{className:Se.groupRoot,"data-layout":r,children:T})})})});Tt.displayName="RadioGroup";const Li=({className:a,style:e})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:a,style:e,children:o.jsx("circle",{cx:"8",cy:"8",r:"5"})}),St=i.forwardRef(function(e,t){const{overStyled:n=!1,readOnly:r,readOnlyComponent:s,disabled:l,icon:d,formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,...b}=e,h=["size","color","radius","variant","iconColor"],N=B(f(b,n),h),v=N,w=D({root:Se.root,body:Se.body,inner:Se.inner,radio:Se.radio,icon:Se.icon,labelWrapper:Se.labelWrapper,label:Se.label},v.classNames),C=v.className,P=C?`${Se.root} ${C}`:Se.root;if(r&&s){const T=!!(v.checked??v.defaultChecked),g=s,y=o.jsx(g,{...e,checked:T,label:v.label});return c?o.jsx(ze,{formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,children:y}):o.jsx(o.Fragment,{children:y})}const R=o.jsx(p.Radio,{ref:t,...N,icon:Te(Li,d),className:P,classNames:w,disabled:r||l});return c?o.jsx(ze,{formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,children:R}):R});St.displayName="Radio";St.Group=Tt;const yr=({checked:a,label:e})=>o.jsxs(p.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:a?"On":"Off"})]});yr.displayName="ReadOnlySwitchField";const hr=({checked:a,label:e})=>o.jsxs(p.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:a?"True":"False"})]});hr.displayName="ReadOnlyBooleanField";const Mi="SegmentedControl-module__root___JFRhg",Ai="SegmentedControl-module__label___mS17q",Wi="SegmentedControl-module__control___znOdQ",zi="SegmentedControl-module__indicator___ZMcJy",lo={root:Mi,label:Ai,control:Wi,indicator:zi};function Di(a){const e=D({root:lo.root,control:lo.control,label:lo.label,indicator:lo.indicator},a.classNames),t=a.className;return{className:t?`${lo.root} ${t}`:lo.root,classNames:e}}const vr=i.forwardRef(function({overStyled:e=!1,orientation:t="horizontal",fullWidth:n,data:r=[],...s},l){const d=f(s,e),u=Di(d),_=r.map(m=>typeof m=="string"||!m.icon?m:{...m,label:o.jsxs(o.Fragment,{children:[m.icon,m.label]})});return o.jsx(p.SegmentedControl,{ref:l,...d,className:u.className,classNames:u.classNames,orientation:t,fullWidth:n,"data-orientation":t,data:_})});vr.displayName="SegmentedControl";const Ei=vr,Fi="Slider-module__layoutOverride___zYPun",Bi="Slider-module__sliderContainer___y8I0J",Ui="Slider-module__sliderTrackWrapper___UHpVh",Vi="Slider-module__iconWrapper___uqHpC",Hi="Slider-module__sliderRoot___LI86H",Gi="Slider-module__sliderTrack___oqnlG",qi="Slider-module__sliderBar___TI4VY",Ki="Slider-module__sliderThumb___OFn8p",Yi="Slider-module__sliderMarkWrapper___Ufqhu",Zi="Slider-module__sliderMark___1lM2B",Xi="Slider-module__sliderMarkLabel___MMZrq",Qi="Slider-module__minMaxGuide___TaGqz",Ji="Slider-module__rightGuideContainer___8dOT8",ec="Slider-module__currentValue___dGV2T",oc="Slider-module__inputField___6x578",tc="Slider-module__readOnlyValue___-ZzMW",J={layoutOverride:Fi,sliderContainer:Bi,sliderTrackWrapper:Ui,iconWrapper:Vi,sliderRoot:Hi,sliderTrack:Gi,sliderBar:qi,sliderThumb:Ki,sliderMarkWrapper:Yi,sliderMark:Zi,sliderMarkLabel:Xi,minMaxGuide:Qi,rightGuideContainer:Ji,currentValue:ec,inputField:oc,readOnlyValue:tc},nc=({value:a})=>{const e=Array.isArray(a)?`${a[0]} – ${a[1]}`:a;return o.jsx("div",{className:J.readOnlyValue,children:e})},xr=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,tooltipLabel:b,assistiveText:h,assistiveWithIcon:N,error:v,required:w,withAsterisk:C,id:P,className:R,style:T,disabled:g,readOnly:y,readOnlyComponent:S,emptyValueComponent:x,value:$,defaultValue:L,icon:z,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,ae=Array.isArray(O),[fe,re]=i.useState(()=>Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString());i.useEffect(()=>{re(Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString())},[O]);const se=E=>{$===void 0&&de(E),Q==null||Q(E)},ye=E=>{const W=E.target.value;re(W);const k=parseFloat(W);if(!isNaN(k)){const F=Math.max(H,Math.min(G,k));se(F)}},be=()=>{re(O.toString())},Be=E=>{const W=O,k=E.target.value;re([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;re([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;re([E[0].toString(),E[1].toString()])},Ie=["size","variant","radius","wrapperProps"],Le=B(f(M,n),Ie),eo=Le,Ce=D({root:J.sliderRoot,track:J.sliderTrack,bar:J.sliderBar,thumb:J.sliderThumb,markWrapper:J.sliderMarkWrapper,mark:J.sliderMark,markLabel:J.sliderMarkLabel},eo.classNames),Ve=R?`${J.layoutOverride} ${R}`:J.layoutOverride,ge=z?o.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:z}):null,He=A?o.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:A}):null,U=Array.isArray(O)?typeof b=="function"?`${b(O[0])} – ${b(O[1])}`:`${O[0]} – ${O[1]}`:typeof b=="function"?b(O):O;return o.jsx(ue,{ref:t,className:Ve,style:T,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:h,assistiveWithIcon:N,error:v,required:w,withAsterisk:C,id:P,readOnly:y,readOnlyComponent:S||nc,emptyValueComponent:x,readOnlyType:"text",readOnlyValue:O,readOnlyNativeProps:{value:O},activeComponent:o.jsxs("div",{className:J.sliderContainer,"data-form-layout":r,"data-disabled":g?"true":void 0,"data-error":v?"true":void 0,children:[ae&&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":v?"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:ae?o.jsx(p.RangeSlider,{...Le,classNames:Ce,disabled:g,value:O,onChange:se,onChangeEnd:ce,min:H,max:G,step:K,label:b}):o.jsx(p.Slider,{...Le,classNames:Ce,disabled:g,value:O,onChange:se,onChangeEnd:ce,min:H,max:G,step:K,label:b})}),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&&(ae?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":v?"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":v?"true":void 0}))]})})});xr.displayName="Slider";const rc="Stack-module__root___NUN-x",vo={root:rc},br=i.forwardRef(function({children:e,gap:t="rec-default",...n},r){const s={root:vo.root},l=n.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;s.root=u.root?`${vo.root} ${u.root}`:vo.root}const d=n.className,c=d?`${vo.root} ${d}`:vo.root;return o.jsx(p.Stack,{ref:r,className:c,classNames:s,...To({gap:t,...n}),children:e})});br.displayName="Stack";const ac=p.createPolymorphicComponent(br),sc="Stepper-module__root___jbSYO",lc="Stepper-module__horizontal___USHT1",ic="Stepper-module__steps___4HPO6",cc="Stepper-module__step___s2nqL",dc="Stepper-module__stepBody___TBvys",uc="Stepper-module__stepLabel___N6nuy",pc="Stepper-module__stepDescription___DnDAy",mc="Stepper-module__separator___pU0No",_c="Stepper-module__vertical___d4mOs",fc="Stepper-module__large___J18-y",yc="Stepper-module__small___Ub-zb",hc="Stepper-module__stepIcon___YQHNq",vc="Stepper-module__stepCompletedIcon___B9MeL",xc="Stepper-module__verticalSeparator___frWc1",bc="Stepper-module__content___J-h8X",ie={root:sc,horizontal:lc,steps:ic,step:cc,stepBody:dc,stepLabel:uc,stepDescription:pc,separator:mc,vertical:_c,large:fc,small:yc,stepIcon:hc,stepCompletedIcon:vc,verticalSeparator:xc,content:bc},Nr=i.forwardRef(function(e,t){const{overStyled:n=!1,size:r="large",orientation:s="horizontal",className:l,style:d,...c}=e,u=f(c,n),_=u,m=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(p.Stepper,{ref:t,...u,orientation:s,className:`${ie.root} ${s==="horizontal"?ie.horizontal:ie.vertical} ${r==="large"?ie.large:ie.small} ${l||""}`,style:d,"data-size":r,"data-orientation":s,classNames:m})}),Cr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Stepper.Step,{ref:n,...r})});Cr.displayName="Stepper.Step";const Nc=Object.assign(Nr,{Step:Cr,Completed:p.Stepper.Completed});Nr.displayName="Stepper";const Cc="Switch-module__root___Y5Ydi",gc="Switch-module__track___7ObdZ",wc="Switch-module__body___Sw9Wr",Pc="Switch-module__thumb___-FTeK",Tc="Switch-module__labelWrapper___YSOwx",Sc="Switch-module__label___LrH7V",Rc="Switch-module__thumbIconWrapper___sCY-1",jc="Switch-module__checkIcon___ZBAQN",$c="Switch-module__closeIcon___bLLGw",Oc="Switch-module__groupRoot___-Uepi",_e={root:Cc,track:gc,body:wc,thumb:Pc,labelWrapper:Tc,label:Sc,thumbIconWrapper:Rc,checkIcon:jc,closeIcon:$c,groupRoot:Oc},Rt=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,children:T,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,value:x,defaultValue:$,...L}=e,z=["size"],A=B(f(L,n),z),I=A;return o.jsx(ue,{className:P,style:R,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:n,labelElement:"div",formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:x!==void 0?x:$,readOnlyNativeProps:e,activeComponent:o.jsx(p.Switch.Group,{ref:t,...A,disabled:g||I.disabled,value:x,defaultValue:$,children:o.jsx("div",{className:_e.groupRoot,"data-layout":r,children:T})})})});Rt.displayName="SwitchGroup";const jt=i.forwardRef(function(e,t){const{overStyled:n=!1,readOnly:r,readOnlyComponent:s,disabled:l,thumbIcon:d,formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,...b}=e,h=["size","color","radius","variant"],N=B(f(b,n),h),v=N,w=D({root:_e.root,body:_e.body,track:_e.track,thumb:_e.thumb,trackLabel:_e.trackLabel,labelWrapper:_e.labelWrapper,label:_e.label},v.classNames),C=cn({},v.styles),P=v.className,R=P?`${_e.root} ${P}`:_e.root;if(r&&s){const y=!!(v.checked??v.defaultChecked),S=s,x=o.jsx(S,{...e,checked:y,label:v.label});return c?o.jsx(ze,{formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,children:x}):o.jsx(o.Fragment,{children:x})}const T=o.jsxs("div",{className:_e.thumbIconWrapper,children:[o.jsx(p.CheckIcon,{className:_e.checkIcon}),o.jsx(p.CloseIcon,{className:_e.closeIcon})]}),g=o.jsx(p.Switch,{ref:t,...N,className:R,classNames:w,styles:C,disabled:r||l,"data-disabled":r||l||void 0,thumbIcon:Te(T,d)});return c?o.jsx(ze,{formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,children:g}):g});jt.displayName="Switch";jt.Group=Rt;const kc="Table-module__root___aMWWS",Ic="Table-module__sortIcon___V3-dH",Ko={root:kc,sortIcon:Ic};function Lc(a){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:o.jsx("polyline",{points:"18 15 12 9 6 15"})})}function Mc(a){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})}const gr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className,l=Ko.root,d=s?`${l} ${s}`:l;return o.jsx(p.Table,{ref:n,...r,className:d})});gr.displayName="Table";const $t=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.Thead,{ref:n,...r})});$t.displayName="TableThead";const Ot=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.Tbody,{ref:n,...r})});Ot.displayName="TableTbody";const kt=i.forwardRef(function({overStyled:e=!1,selected:t=!1,disabled:n=!1,...r},s){const l=f(r,e);return o.jsx(p.Table.Tr,{ref:s,...l,"data-selected":t?"true":void 0,"data-disabled":n?"true":void 0})});kt.displayName="TableTr";const It=i.forwardRef(function({overStyled:e=!1,sorted:t=!1,disabled:n=!1,variant:r="default",children:s,...l},d){const c=f(l,e);return o.jsxs(p.Table.Th,{ref:d,...c,"data-sorted":t?"true":void 0,"data-disabled":n?"true":void 0,"data-currency":r==="currency"?"true":void 0,"aria-sort":t==="asc"?"ascending":t==="desc"?"descending":void 0,children:[s,t==="asc"&&o.jsx(Lc,{className:Ko.sortIcon}),t==="desc"&&o.jsx(Mc,{className:Ko.sortIcon})]})});It.displayName="TableTh";const Lt=i.forwardRef(function({overStyled:e=!1,disabled:t=!1,variant:n="default",...r},s){const l=f(r,e);return o.jsx(p.Table.Td,{ref:s,...l,"data-disabled":t?"true":void 0,"data-currency":n==="currency"?"true":void 0})});Lt.displayName="TableTd";const Mt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.Tfoot,{ref:n,...r})});Mt.displayName="TableTfoot";const At=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.Caption,{ref:n,...r})});At.displayName="TableCaption";const Wt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.ScrollContainer,{ref:n,...r})});Wt.displayName="TableScrollContainer";const Fe=gr;Fe.Thead=$t;Fe.Tbody=Ot;Fe.Tr=kt;Fe.Th=It;Fe.Td=Lt;Fe.Tfoot=Mt;Fe.Caption=At;Fe.ScrollContainer=Wt;const Ac="Tabs-module__root___-VKVI",Wc="Tabs-module__list___qRVME",zc="Tabs-module__tab___IdDYc",Dc="Tabs-module__panel___08i9c",$o={root:Ac,list:Wc,tab:zc,panel:Dc},wr=i.forwardRef(function(e,t){const{variant:n="default",orientation:r="horizontal",overStyled:s=!1,className:l,...d}=e,c=f(d,s),u=c,_=D({list:$o.list,tab:$o.tab,panel:$o.panel},u.classNames);return o.jsx(p.Tabs,{ref:t,...c,variant:n,orientation:r,className:`${$o.root} ${l||""}`,"data-variant":n,"data-orientation":r,classNames:_})});wr.displayName="Tabs";const Pr=i.forwardRef(function(e,t){const{overStyled:n=!1,...r}=e;return o.jsx(p.Tabs.List,{ref:t,...f(r,n)})});Pr.displayName="Tabs.List";const Tr=i.forwardRef(function(e,t){const{overStyled:n=!1,...r}=e;return o.jsx(p.Tabs.Tab,{ref:t,...f(r,n)})});Tr.displayName="Tabs.Tab";const Sr=i.forwardRef(function(e,t){const{overStyled:n=!1,...r}=e;return o.jsx(p.Tabs.Panel,{ref:t,...f(r,n)})});Sr.displayName="Tabs.Panel";const Ec=Object.assign(wr,{List:Pr,Tab:Tr,Panel:Sr}),Fc="Text-module__root___rsBo7",Bc={root:Fc},Rr=i.forwardRef(function({overStyled:e=!1,variant:t="body",emphasis:n="high",color:r="default",...s},l){const d=f(s,e),c=d.className,_=[`recursica_brand_typography_${t}`,Bc.root,c].filter(Boolean).join(" ");return o.jsx(p.Text,{ref:l,...d,"data-color":r,"data-emphasis":n,className:_})});Rr.displayName="Text";const Uc=p.createPolymorphicComponent(Rr),Vc="TextArea-module__layoutOverride___4MCdm",Hc="TextArea-module__root___3dyeu",Gc="TextArea-module__input___8l36v",Oo={layoutOverride:Vc,root:Hc,input:Gc},qc=["size","variant","radius"],jr=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,...$}=e,L=B(f($,n),qc),z=L,A=D({wrapper:Oo.root,input:Oo.input},z.classNames),I=C?`${Oo.layoutOverride} ${C}`:Oo.layoutOverride;return o.jsx(ue,{className:I,style:P,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:S!==void 0?S:x,readOnlyNativeProps:e,activeComponent:o.jsx(p.Textarea,{ref:t,...L,classNames:A,disabled:R,value:S,defaultValue:x,label:void 0,description:void 0,error:!!h,required:void 0,withAsterisk:void 0})})});jr.displayName="TextArea";const Kc="TextField-module__layoutOverride___SNZqc",Yc="TextField-module__root___2ZYkG",Zc="TextField-module__input___RL-My",Xc="TextField-module__section___bCIJ0",xo={layoutOverride:Kc,root:Yc,input:Zc,section:Xc},Qc=["size","variant","radius"],zt=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,...$}=e,L=B(f($,n),Qc),z=L,A=D({wrapper:xo.root,input:xo.input,section:xo.section},z.classNames),I=C?`${xo.layoutOverride} ${C}`:xo.layoutOverride;return o.jsx(ue,{className:I,style:P,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:S!==void 0?S:x,readOnlyNativeProps:e,activeComponent:o.jsx(p.Input,{ref:t,...L,classNames:A,disabled:R,value:S,defaultValue:x,wrapperProps:{"data-disabled":R?"true":void 0,"data-error":h?"true":void 0}})})});zt.displayName="TextField";const Jc=["size","variant","radius"],$r=i.forwardRef(function(e,t){const{overStyled:n=!1,className:r,disabled:s,error:l,...d}=e,c=B(f(d,n),Jc),u=c,_=D({wrapper:r?`${ee.root} ${r}`:ee.root,input:ee.input,section:ee.section,dropdown:ee.dropdown,option:ee.option},u.classNames);return o.jsx(p.Select,{ref:t,...c,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}}})});$r.displayName="BareDropdown";const ed="TimePicker-module__layoutOverride___zKo4Q",od="TimePicker-module__root___BcvRu",td="TimePicker-module__timeWrapper___hJVre",nd="TimePicker-module__timeInput___FQysn",rd="TimePicker-module__fieldsGroup___2yHhR",ad="TimePicker-module__section___VkSWB",sd="TimePicker-module__timeField___twRZd",ld="TimePicker-module__amPmSelect___mSdvt",Ae={layoutOverride:ed,root:od,timeWrapper:td,timeInput:nd,fieldsGroup:rd,section:ad,timeField:sd,amPmSelect:ld},id=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Qt(a){if(!a)return;const e=parseInt(a.slice(0,2),10);return Number.isNaN(e)?void 0:e}function cd(a,e){return`${String(e).padStart(2,"0")}${a.slice(2)}`}function dd(a){if(!a)return;const[e,t,n]=a.split(":"),r=parseInt(e,10);if(Number.isNaN(r)||t===void 0)return a;const s=r>=12,l=r%12===0?12:r%12,d=n!==void 0?`${t}:${n}`:t;return`${l}:${d} ${s?"PM":"AM"}`}function ud(a,e){var n;const t=(n=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value"))==null?void 0:n.set;t==null||t.call(a,e),a.dispatchEvent(new Event("change",{bubbles:!0}))}const pd=["size","variant","radius"],Or=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,onChange:$,withSeconds:L,minTime:z,maxTime:A,...I}=e,q=B(f(I,n),pd),H=q,[G,Z]=i.useState(()=>S??x);i.useEffect(()=>{S!==void 0&&Z(S)},[S]);const V=i.useRef(null);i.useEffect(()=>{Qt(S??x)===void 0&&V.current&&ud(V.current,"AM")},[]);const K=O=>{Z(O),$==null||$(O)},Q=Qt(G),ce=Q!==void 0&&Q>=12,M=O=>{K(O)},ne=O=>{if(Q===void 0||!G||!O)return;const ae=O==="PM";if(ae===ce)return;const fe=ae?Q+12:Q-12;K(cd(G,fe))},de=C?`${Ae.layoutOverride} ${C}`:Ae.layoutOverride;return o.jsx(ue,{className:de,style:P,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:dd(S!==void 0?S:x),readOnlyNativeProps:e,activeComponent:o.jsxs("div",{className:Ae.root,"data-disabled":R?"true":void 0,"data-error":h?"true":void 0,children:[o.jsx(Ho.TimePicker,{ref:t,...q,classNames:D({wrapper:Ae.timeWrapper,input:Ae.timeInput,section:Ae.section,fieldsGroup:Ae.fieldsGroup,field:Ae.timeField},H.classNames),disabled:R,value:G,onChange:M,format:"12h",withSeconds:L,min:z,max:A,withDropdown:!1,amPmRef:V}),o.jsx($r,{overStyled:!0,className:Ae.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:id,value:ce?"PM":"AM",onChange:ne,disabled:R,error:!!h,"aria-label":"AM or PM"})]})})});Or.displayName="TimePicker";const md="Timeline-module__root___LwRdZ",_d="Timeline-module__item___T5xdQ",fd="Timeline-module__itemBody___XAV-E",yd="Timeline-module__itemBullet___rPXCy",hd="Timeline-module__itemTitle___GgRRW",vd="Timeline-module__itemContent___vurs-",xd="Timeline-module__description___f9sxV",bd="Timeline-module__timestamp___owiRu",Ze={root:md,item:_d,itemBody:fd,itemBullet:yd,itemTitle:hd,itemContent:vd,description:xd,timestamp:bd},Dt=i.forwardRef(function({overStyled:e=!1,timestamp:t,bulletVariant:n="default",children:r,...s},l){const d=f(s,e),c=d,u=D({item:Ze.item,itemBody:Ze.itemBody,itemContent:Ze.itemContent,itemBullet:Ze.itemBullet,itemTitle:Ze.itemTitle},c.classNames),_=t?o.jsxs(o.Fragment,{children:[r&&o.jsx("div",{className:Ze.description,children:r}),o.jsx("div",{className:Ze.timestamp,children:t})]}):r;return o.jsx(p.TimelineItem,{ref:l,...d,classNames:u,"data-variant":n,children:_})});Dt.displayName="TimelineItem";const kr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r,l=D({root:Ze.root},s.classNames);return o.jsx(p.Timeline,{ref:n,...r,classNames:l})});kr.displayName="Timeline";const Ir=kr;Ir.Item=Dt;const Nd="Toast-module__root___MUvfI",Cd="Toast-module__icon___VwvE1",gd="Toast-module__loader___8Gxd-",wd="Toast-module__title___-H6R2",Pd="Toast-module__description___-QwfC",Td="Toast-module__closeButton___vGr7g",Sd="Toast-module__body___VLkXA",ro={root:Nd,icon:Cd,loader:gd,title:wd,description:Pd,closeButton:Td,body:Sd},Lr=i.forwardRef(function({overStyled:e=!1,variant:t="default",withCloseButton:n=!0,...r},s){const l=["color","radius","loading"],d=B(f(r,e),l),c=D({root:ro.root,body:ro.body,title:ro.title,description:ro.description,closeButton:ro.closeButton,icon:ro.icon,loader:ro.loader},d.classNames);return o.jsx(p.Notification,{ref:s,...d,withCloseButton:n,withBorder:!1,"data-variant":t,classNames:c,loading:!1})});Lr.displayName="Toast";const Rd="Tooltip-module__tooltip___UA7H9",jd="Tooltip-module__arrow___4zROk",Jt={tooltip:Rd,arrow:jd},Mr=function({overStyled:e=!1,withBeak:t=!0,position:n="top",arrowSize:r=16,...s}){const l=f(s,e),d=l,c=D({tooltip:Jt.tooltip,arrow:Jt.arrow},d.classNames),u=d.withArrow,_=t??u;return o.jsx(p.Tooltip,{...l,position:n,arrowSize:r,withArrow:_,multiline:!0,classNames:c})};Mr.displayName="Tooltip";const Et=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Tooltip.Floating,{ref:n,...r})});Et.displayName="TooltipFloating";const Ft=Mr;Ft.Floating=Et;Ft.Group=p.Tooltip.Group;const $d="TransferList-module__layoutOverride___nkb32",Od="TransferList-module__root___ikjI7",kd="TransferList-module__panes___dtwkW",Id="TransferList-module__pane___hy-kC",Ld="TransferList-module__paneHeader___HZrKX",Md="TransferList-module__paneSearch___Xji-g",Ad="TransferList-module__paneList___v0rcJ",Wd="TransferList-module__emptyState___azPw-",zd="TransferList-module__transferColumn___3R2Ki",Dd="TransferList-module__chevron___l-KdI",xe={layoutOverride:$d,root:Od,panes:kd,pane:Id,paneHeader:Ld,paneSearch:Md,paneList:Ad,emptyState:Wd,transferColumn:zd,chevron:Dd};function en({direction:a}){return o.jsx("svg",{className:xe.chevron,"data-direction":a,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M6 3l5 5-5 5"})})}function on({direction:a}){return o.jsx("svg",{className:xe.chevron,"data-direction":a,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M3 3l5 5-5 5M9 3l5 5-5 5"})})}function Ed(a){const e={},t=[];return a.forEach(n=>{var r;n.group?(e[r=n.group]??(e[r]=[])).push(n):t.push(n)}),{groups:e,ungrouped:t}}const Ar=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,description:h,helperText:N,assistiveWithIcon:v,error:w,required:C,id:P,readOnly:R,readOnlyComponent:T,emptyValueComponent:g,data:y,defaultData:S,onChange:x,sourceLabel:$="Available",targetLabel:L="Selected",searchable:z=!0,searchPlaceholder:A="Filter items...",disabled:I=!1,className:q,style:H,...G}=e,Z=f(G,n),V=i.useId(),K=P||`recursica-transfer-list-${V}`,[Q,ce]=i.useState(()=>S??y??[[],[]]),M=y!==void 0?y:Q,ne=i.useCallback(U=>{y===void 0&&ce(U),x==null||x(U)},[y,x]),[de,O]=i.useState(""),[ae,fe]=i.useState(""),[re,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(!ae)return M[1];const U=ae.toLowerCase();return M[1].filter(E=>E.label.toLowerCase().includes(U))},[M,ae]),Ue=i.useCallback(()=>{if(re.size===0)return;const U=M[0].filter(W=>!re.has(W.value)),E=M[0].filter(W=>re.has(W.value));se(new Set),ne([U,[...M[1],...E]])},[M,re,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]),eo=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:oo,ungrouped:j}=Ed(W),oe=Object.keys(oo).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(vn,{children:te})]}),z&&o.jsx("div",{className:xe.paneSearch,children:o.jsx(zt,{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"}),j.length>0&&o.jsx(Co,{children:j.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:oo[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:t,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,description:h,helperText:N,assistiveWithIcon:v,error:w,required:C,id:K,className:He,style:H,overStyled:n,readOnly:R,readOnlyComponent:T,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":w?"true":void 0,children:o.jsxs("div",{className:xe.panes,children:[ge("source",$,Be,M[0],re,Ce,de,O),o.jsxs("div",{className:xe.transferColumn,children:[o.jsx(je,{variant:"outline",size:"small",icon:o.jsx(on,{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(en,{direction:"right"}),"aria-label":`Move selected to ${L}`,disabled:I||re.size===0,onClick:Ue}),o.jsx(je,{variant:"outline",size:"small",icon:o.jsx(en,{direction:"left"}),"aria-label":`Move selected to ${$}`,disabled:I||ye.size===0,onClick:Ie}),o.jsx(je,{variant:"outline",size:"small",icon:o.jsx(on,{direction:"left"}),"aria-label":`Move all to ${$}`,disabled:I||M[1].length===0,onClick:eo})]}),ge("target",L,Ne,M[1],ye,Ve,ae,fe)]})})})});Ar.displayName="TransferList";const Fd="Tree-module__root___ANcH3",Bd="Tree-module__subtree___KoLT8",Ud="Tree-module__node___Hvnjg",Vd="Tree-module__row___sq5ff",Hd="Tree-module__label___zJDit",Gd="Tree-module__expandButton___W0WTT",qd="Tree-module__expandGlyph___w8dDQ",Je={root:Fd,subtree:Bd,node:Ud,row:Vd,label:Hd,expandButton:Gd,expandGlyph:qd};function Kd(){return o.jsx("svg",{className:Je.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 Yd(a){return function({node:t,hasChildren:n,expanded:r,selected:s,tree:l,elementProps:d}){return o.jsxs("div",{...d,className:Je.row,"data-has-children":n||void 0,"data-expanded":n&&r?!0:void 0,children:[o.jsx(je,{overStyled:!0,variant:"text",size:"small",icon:o.jsx(Kd,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:Je.expandButton,onMouseDown:c=>c.preventDefault(),onClick:c=>{c.stopPropagation(),!a&&l.toggleExpanded(t.value)}}),o.jsx("span",{className:Je.label,"data-selected":s||void 0,children:t.label})]})}}const Wr=i.forwardRef(function({overStyled:e=!1,data:t,initialExpandedValues:n,initialSelectedValues:r,multiple:s=!1,disabled:l=!1,onNodeExpand:d,onNodeCollapse:c,onSelectedChange:u,..._},m){const b=f(_,e),h=p.useTree({initialExpandedState:n?p.getTreeExpandedState(t,n):void 0,initialSelectedState:r,multiple:s,onNodeExpand:d,onNodeCollapse:c});i.useEffect(()=>{u==null||u(h.selectedState)},[h.selectedState,u]);const N=i.useRef(null);i.useEffect(()=>{const R=N.current;if(!R)return;const T=g=>{if(l||g.key!=="Enter"&&g.key!==" ")return;const y=g.target.closest('[role="treeitem"]'),S=y==null?void 0:y.dataset.value;S&&(g.preventDefault(),h.select(S))};return R.addEventListener("keydown",T),()=>R.removeEventListener("keydown",T)},[h.select,l]),i.useEffect(()=>{const R=N.current;if(!R||!l)return;const T=g=>{g.preventDefault(),g.stopPropagation()};return R.addEventListener("keydown",T,{capture:!0}),()=>R.removeEventListener("keydown",T,{capture:!0})},[l]);const v=nn.useMergedRef(m,N),w=b,C=w.className,P=C?`${Je.root} ${C}`:Je.root;return o.jsx(p.Tree,{ref:v,...b,data:t,tree:h,expandOnClick:!1,selectOnClick:!l,expandOnSpace:!1,renderNode:Yd(l),"data-disabled":l||void 0,classNames:D({root:P,node:Je.node,subtree:Je.subtree},w.classNames)})});Wr.displayName="Tree";function tn(a,e){var n;const t=(n=a[e])==null?void 0:n.$value;if(t!==void 0){if(typeof t!="number"||!Number.isFinite(t)||t<0)throw new Error(`layout-grid ${e} must be a non-negative number, got ${String(t)}`);return t}}function Zd(a){var r;const e=((r=a.brand)==null?void 0:r["layout-grids"])??{},t=[];let n;for(const[s,l]of Object.entries(e)){if(s==="default")continue;const d=tn(l,"min-width"),c=tn(l,"max-width");if(d===void 0&&c===void 0)throw new Error(`layout-grid "${s}" has neither min-width nor max-width`);c!==void 0&&(n===void 0||c>n)&&(n=c),t.push([s,d??0])}if(t.length>0){if(n===void 0)throw new Error('Cannot place the "default" layout-grid: no other grid has a max-width to start after');t.push(["default",n+1])}return Object.fromEntries(t.sort((s,l)=>s[1]-l[1]).map(([s,l])=>[s,`${l}px`]))}exports.Accordion=Wo;exports.AccordionControl=Mo;exports.AccordionItem=ot;exports.AccordionPanel=Ao;exports.AssistiveElement=Io;exports.AutoComplete=fn;exports.Avatar=Fa;exports.Badge=vn;exports.Breadcrumb=xn;exports.Button=je;exports.Card=as;exports.CardContent=it;exports.CardFooter=lt;exports.CardHeader=st;exports.CardSection=at;exports.Checkbox=go;exports.CheckboxGroup=Co;exports.Chip=wo;exports.Container=wn;exports.DatePicker=Pn;exports.Dropdown=Tn;exports.EmptyValueRenderer=No;exports.FileInput=Sn;exports.FileUpload=Rn;exports.Flex=ml;exports.FormControlLayout=ze;exports.Group=Mn;exports.Heading=An;exports.HoverCard=ct;exports.IS_DEV=$e;exports.Label=tt;exports.Layer=Yo;exports.LayoutGrid=Ln;exports.LayoutGridCol=In;exports.Link=Ol;exports.Loader=rt;exports.Menu=ao;exports.Modal=Ee;exports.NumberInput=rr;exports.Pagination=Oe;exports.Panel=ke;exports.PanelBody=wt;exports.PanelCloseButton=gt;exports.PanelContent=bt;exports.PanelFooter=ht;exports.PanelHeader=Nt;exports.PanelOverlay=xt;exports.PanelRoot=vt;exports.PanelTitle=Ct;exports.Popover=Pt;exports.RECURSICA_COMPONENTS=Vr;exports.Radio=St;exports.RadioGroup=Tt;exports.ReadOnlyBooleanField=hr;exports.ReadOnlyField=nt;exports.ReadOnlySwitchField=yr;exports.ReadOnlyTextField=bo;exports.RecursicaManifestContext=Qo;exports.RecursicaThemeProvider=Ur;exports.SegmentedControl=Ei;exports.Slider=xr;exports.Stack=ac;exports.Stepper=Nc;exports.Switch=jt;exports.SwitchGroup=Rt;exports.Table=Fe;exports.TableCaption=At;exports.TableScrollContainer=Wt;exports.TableTbody=Ot;exports.TableTd=Lt;exports.TableTfoot=Mt;exports.TableTh=It;exports.TableThead=$t;exports.TableTr=kt;exports.Tabs=Ec;exports.Text=Uc;exports.TextArea=jr;exports.TextField=zt;exports.TimePicker=Or;exports.Timeline=Ir;exports.TimelineItem=Dt;exports.Toast=Lr;exports.Tooltip=Ft;exports.TooltipFloating=Et;exports.TransferList=Ar;exports.Tree=Wr;exports.WithReadOnlyWrapper=ue;exports.breakpointsFromRecManifest=Zd;exports.copyToClipboard=Hr;exports.fileMatchesAccept=Jo;exports.injectOverStyledStyles=Zo;exports.isGlobalOverStyledActive=Br;exports.markCurrentPageItem=sn;exports.mergeClassNames=D;exports.mergeStyles=cn;exports.normalizeComboboxData=et;exports.omitUnsupportedProps=B;exports.registerOverStyledConsoleCommand=Xo;exports.toggleGlobalOverStyled=rn;exports.useGlobalOverStyled=an;exports.useRecursicaManifest=ln;exports.withCallerOverride=Te;exports.wrapComponent=un;
|
|
11
|
+
`,document.head.appendChild(e))}function Xo(){if(!Oe)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const a=e=>{try{e.recursica=e.recursica||{},e.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${rn()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};a(window),window.parent&&window.parent!==window&&a(window.parent)}function sn(a){const e=i.Children.toArray(a),t=e.length-1;return e.map((n,r)=>{if(r!==t||!i.isValidElement(n))return n;const s=n.props,l=s.href!==void 0||s.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(n,{"aria-current":"page",...l?{href:void 0,onClick:void 0,tabIndex:-1}:{}})})}const Qo=i.createContext(void 0);function ln(){const a=i.useContext(Qo);if(!a)throw new Error("This component needs the Recursica manifest: pass the parsed recursica_manifest.json as the `manifest` prop of RecursicaThemeProvider.");return a}const Gt="data-recursica-theme";function Ur({children:a,theme:e="light",initLayer0:t=!0,manifest:n}){i.useEffect(()=>{const s=document.documentElement;return s.setAttribute(Gt,e),()=>{s.removeAttribute(Gt)}},[e]),i.useEffect(()=>{Zo(),Xo()},[]);const r=t?o.jsx(Yo,{layer:0,children:a}):o.jsx(o.Fragment,{children:a});return o.jsx(Qo.Provider,{value:n,children:r})}const Vr=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Box","Breadcrumb","Button","Card","Checkbox","CheckboxGroup","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","FileInput","FileUpload","Flex","FormControlLayout","FormControlWrapper","Group","Heading","HoverCard","Label","Layer","LayoutGrid","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"],Hr=(a,e)=>{const t=document.activeElement;return new Promise((n,r)=>{if(e&&e.current){const s=document.createElement("textarea");s.readOnly=!0,s.defaultValue=a,e.current.appendChild(s),s.select();const l=document.execCommand("copy");e.current.removeChild(s),t&&t.focus(),l?n():r(new Error("Failed to copy"))}else r(new Error("Copy area reference is not defined"))})};function Jo(a,e){const t=(e??"").split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);if(t.length===0)return!0;const n=a.name.toLowerCase(),r=a.type.toLowerCase();return t.some(s=>s.startsWith(".")?n.endsWith(s):s.endsWith("/*")?r.startsWith(s.slice(0,-1)):r===s)}function D(a,e){if(!e)return a;const t={...a},n=new Set([...Object.keys(a),...Object.keys(e)]);for(const r of n){const s=a[r],l=e[r];t[r]=[s,l].filter(Boolean).join(" ")||void 0}return t}function cn(a,e){if(!e)return a;const t={...a},n=new Set([...Object.keys(a),...Object.keys(e)]);for(const r of n){const s=a[r],l=e[r];t[r]=s||l?{...s,...l}:void 0}return t}function et(a){return a==null?void 0:a.map(e=>typeof e=="string"?e:{...e,label:e.label??e.value})}function B(a,e){const t={...a};for(const n of e)n in t&&delete t[n];return t}function Se(a,e){return e!==void 0?e:a}const Gr=Symbol.for("react.forward_ref"),qr=Symbol.for("react.memo");function dn(a){return a?a.prototype&&a.prototype.isReactComponent||a.$$typeof===Gr?!0:a.$$typeof===qr?dn(a.type):!1:!1}function un(a){if(!Oe||typeof a!="function"&&!(a&&a.$$typeof))return a;const e=dn(a),t=a.displayName||a.name||"Component",n=i.forwardRef((s,l)=>{const{overStyled:d}=s,c=an();Oe&&l&&!e&&console.warn(`[wrapComponent] "${t}" 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 u=e?{...s,ref:l}:s,_=i.createElement(a,u);return d&&c?o.jsx("div",{className:"recursica-over-styled",children:_}):_});n.displayName=a.displayName||a.name||"Component";const r=Object.keys(a);for(const s of r){if(s==="render"||s==="$$typeof")continue;const l=a[s];(typeof l=="function"||l&&l.$$typeof)&&s[0]===s[0].toUpperCase()?n[s]=un(l):n[s]=l}return n}const Kr=["className","classNames","style","styles","vars","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","bd","bdw","bds","bdc","bdr","shadow","w","miw","maw","h","mih","mah"],pn=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 So(a){const e={...a};for(const[t,n]of Object.entries(e))typeof n=="string"&&n.startsWith("rec-")&&pn.has(t)&&n in ko&&(e[t]=ko[n]);return e}function f(a,e){if(e)return a;const t={...a};for(const n of Kr)n in t&&delete t[n];for(const[n,r]of Object.entries(t))typeof r=="string"&&r.startsWith("rec-")&&pn.has(n)&&r in ko&&(t[n]=ko[r]);return t}const Yr="Accordion-module__root___Dem6d",Zr="Accordion-module__item___7ryVk",Xr="Accordion-module__noDivider___Ni2tT",Qr="Accordion-module__control___b4wgX",Jr="Accordion-module__label___Ss7uW",ea="Accordion-module__icon___xfHxX",oa="Accordion-module__chevron___i-HVZ",ta="Accordion-module__iconLeftWrapper___5oLen",na="Accordion-module__panel___Wx50w",ra="Accordion-module__content___PEM9t",je={root:Yr,item:Zr,noDivider:Xr,control:Qr,label:Jr,icon:ea,chevron:oa,iconLeftWrapper:ta,panel:na,content:ra},qt={default:"unstyled"},mn=function({variant:e="default",overStyled:t=!1,...n}){const r=typeof e=="string"&&qt[e]?qt[e]:e,s=f(n,t),l=s,d=D({root:je.root,item:je.item,control:je.control,label:je.label,chevron:je.chevron,icon:je.icon,panel:je.panel,content:je.content},l.classNames),c=l.className;return o.jsx(p.Accordion,{...s,variant:r,className:c,classNames:d})};mn.displayName="Accordion";const ot=i.forwardRef(function({title:e,leftIcon:t,divider:n=!0,children:r,disabled:s=!1,overStyled:l=!1,...d},c){const u=f(d,l),_=u.className,m=[n?void 0:je.noDivider,_].filter(Boolean).join(" ")||void 0;return o.jsx(p.Accordion.Item,{ref:c,...u,className:m,"data-disabled":s||void 0,children:e?o.jsxs(o.Fragment,{children:[o.jsx(Mo,{leftIcon:t,disabled:s,children:e}),o.jsx(Ao,{children:r})]}):r})});ot.displayName="AccordionItem";const aa=["icon"],Mo=i.forwardRef(function({leftIcon:e,children:t,overStyled:n=!1,...r},s){const l=B(f(r,n),aa),d=l.className;return o.jsx(p.Accordion.Control,{ref:s,...l,className:d,icon:e?o.jsx("span",{className:je.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,children:t})});Mo.displayName="AccordionControl";const Ao=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Accordion.Panel,{ref:n,...r,className:s})});Ao.displayName="AccordionPanel";const Wo=mn;Wo.Item=ot;Wo.Control=Mo;Wo.Panel=Ao;const sa="AssistiveElement-module__root___WhQ43",la="AssistiveElement-module__textWrapper___sfy5E",ia="AssistiveElement-module__iconWrapper___gObRF",Uo={root:sa,textWrapper:la,iconWrapper:ia},ca=()=>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"})]}),da=()=>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:t=!0,children:n,className:r,role:s,overStyled:l=!1,...d},c){const _=f(d,l),m=Uo.root,b=r?`${m} ${r}`:m,h=e==="error"?da:ca,N=s??(e==="error"?"alert":void 0);return o.jsxs("div",{ref:c,..._,className:b,"data-variant":e,role:N,style:_.style,children:[t&&o.jsx("span",{className:Uo.iconWrapper,children:o.jsx(h,{})}),o.jsx("span",{className:Uo.textWrapper,children:n})]})});Io.displayName="AssistiveElement";const ua="Label-module__root___e6HXZ",pa="Label-module__labelText___rieFR",ma="Label-module__required___Ggrzc",_a="Label-module__optionalText___Y2yun",fa="Label-module__actionAreaWrapper___ELoZK",ya="Label-module__editIconWrapper___NG2xW",Ke={root:ua,labelText:pa,required:ma,optionalText:_a,actionAreaWrapper:fa,editIconWrapper:ya},tt=i.forwardRef(function({labelSize:e="default",labelAlignment:t,required:n=!1,labelOptionalText:r,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:d,children:c,overStyled:u=!1,..._},m){const b=t||"left";let h;n||(r===!0?h="optional":r&&(h=r));const N=["size"],v=B(f(_,u),N),w=v,C=D({label:Ke.root,required:Ke.required},w.classNames),P=w.className,R=P?`${Ke.root} ${P}`:Ke.root;return o.jsxs(p.Input.Label,{ref:m,...v,className:R,classNames:C,"data-size":e,"data-alignment":b,required:n&&!s,children:[o.jsx("span",{className:Ke.labelText,children:c}),h&&o.jsx("span",{className:Ke.optionalText,children:typeof h=="string"?`(${h})`:h}),l?o.jsx("span",{className:Ke.actionAreaWrapper,children:l}):s?o.jsx("button",{type:"button",className:Ke.editIconWrapper,"data-replaces-asterisk":n?"true":void 0,onClick:d,"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]})});tt.displayName="Label";const ha="FormControlLayout-module__root___yNDhZ",va="FormControlLayout-module__leftSection___GBM1r",xa="FormControlLayout-module__rightSection___bcL4v",jo={root:ha,leftSection:va,rightSection:xa},De=i.forwardRef(function({formLayout:e="stacked",labelSize:t="default",controlMaxWidth:n,controlMinWidth:r,leftSection:s,children:l,className:d,style:c,...u},_){const m=d?`${jo.root} ${d}`:jo.root,h=s!=null||e==="side-by-side";return o.jsxs("div",{ref:_,className:m,"data-form-layout":e,style:{...c,...n?{"--form-control-max-width":n}:{},...r?{"--form-control-min-width":r}:{}},...u,children:[h&&o.jsx("div",{className:jo.leftSection,"data-size":t,children:s}),o.jsx("div",{className:jo.rightSection,children:l})]})});De.displayName="FormControlLayout";const ba="FormControlWrapper-module__root___c-UHo",Na="FormControlWrapper-module__inputSection___HenXk",Kt={root:ba,inputSection:Na},co=i.forwardRef(function({formLayout:e,labelSize:t,labelAlignment:n,labelOptionalText:r,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:d,label:c,description:u,assistiveText:_,assistiveWithIcon:m=!0,controlMaxWidth:b,controlMinWidth:h,error:N,required:v,withAsterisk:w,id:C,children:P,className:R,overStyled:T=!1,labelElement:g,...y},S){const x=i.useId(),$=C||`recursica-fc-${x}`,L=`${$}-label`,z=_||u,A=z?`${$}-assistive`:void 0,I=N?`${$}-error`:void 0,H=f(y,T),G=R||H.className,Z=Kt.root,V=G?`${Z} ${G}`:Z,K=i.isValidElement(P)?i.cloneElement(P,{...P.props.id?{}:{id:$},"aria-labelledby":L,...z&&!P.props["aria-describedby"]?{"aria-describedby":A}:{},...N&&!P.props["aria-errormessage"]?{"aria-errormessage":I}:{}}):P,Q=c?o.jsx(tt,{id:L,htmlFor:$,labelAlignment:n,labelOptionalText:r,labelWithEditIcon:s,labelActionArea:l,onLabelEditClick:d,required:w??v,...g==="div"?{as:"div"}:{},children:c}):void 0;return o.jsx(De,{ref:S,className:V,formLayout:e,labelSize:t,controlMaxWidth:b,controlMinWidth:h,leftSection:Q,...H,children:o.jsxs("div",{className:Kt.inputSection,children:[K,N&&o.jsx(Io,{id:I,assistiveVariant:"error",assistiveWithIcon:m,children:N}),!N&&z&&o.jsx(Io,{id:A,assistiveVariant:"help",assistiveWithIcon:m,children:z})]})})});co.displayName="FormControlWrapper";const Ca="ReadOnlyField-module__layoutOverride___9fSsG",ga="ReadOnlyField-module__textField___qKn25",uo={layoutOverride:Ca,textField:ga},No=({value:a,overStyled:e=!1,...t})=>{const n=f(t,e),r=n.className;return o.jsx(p.Box,{component:"p",...n,className:r?`${uo.textField} ${r}`:uo.textField,children:a!=null?i.isValidElement(a)?a:Array.isArray(a)?a.join(", "):String(a):""})};No.displayName="ReadOnlyTextField";const nt=i.forwardRef(function({value:e,type:t="text",emptyValueComponent:n,overStyled:r=!1,className:s,style:l,...d},c){let u=null;const _=f(d,r),m=n||Co,h=(m.check?m.check(e):Co.check(e))?o.jsx(m,{value:e}):e;switch(t){case"boolean":u=o.jsx(No,{value:e===!0?"True":e===!1?"False":h,overStyled:r});break;case"switch":u=o.jsx(No,{value:e===!0?"On":e===!1?"Off":h,overStyled:r});break;case"text":default:u=o.jsx(No,{value:h,overStyled:r});break}const N=s?`${uo.layoutOverride} ${s}`:uo.layoutOverride;return o.jsx(co,{ref:c,..._,overStyled:r,className:N,style:l,children:u})});nt.displayName="ReadOnlyField";const ue=i.forwardRef(function({readOnly:e,readOnlyComponent:t,readOnlyType:n="text",readOnlyValue:r,readOnlyNativeProps:s,emptyValueComponent:l,activeComponent:d,overStyled:c,onLabelEditClick:u,..._},m){if(e){if(t){const b=t;return o.jsx(co,{ref:m,..._,onLabelEditClick:u,overStyled:c,children:o.jsx(b,{...s})})}return o.jsx(nt,{ref:m,..._,type:n,value:r,emptyValueComponent:l,onLabelEditClick:u,overStyled:c})}return o.jsx(co,{ref:m,..._,onLabelEditClick:u,overStyled:c,children:d})});ue.displayName="WithReadOnlyWrapper";function _n({option:a},e,t=!1){const{label:n,leadingIcon:r,supportingText:s}=a,l=n??a.value;if(!r&&!s)return l;const d=t?`${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:d,children:[o.jsx("span",{children:l}),s&&o.jsx("span",{className:e.optionSupportingText,children:s})]})]})}const wa="AutoComplete-module__layoutOverride___-K9WL",Pa="AutoComplete-module__root___kANza",Ta="AutoComplete-module__input___g51MC",Sa="AutoComplete-module__section___WAbf1",Ra="AutoComplete-module__dropdown___NqO3E",ja="AutoComplete-module__option___Y-Kja",$a="AutoComplete-module__optionContent___UAkUA",Oa="AutoComplete-module__optionIcon___tbbmW",ka="AutoComplete-module__optionText___aQwHF",Ia="AutoComplete-module__optionTextWrap___RFICS",La="AutoComplete-module__optionSupportingText___OoA1N",he={layoutOverride:wa,root:Pa,input:Ta,section:Sa,dropdown:Ra,option:ja,optionContent:$a,optionIcon:Oa,optionText:ka,optionTextWrap:Ia,optionSupportingText:La},Ma=["size","variant","radius"],fn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,data:$,renderOption:L,wrapItemText:z=!1,...A}=e,I=B(f(A,n),Ma),q=I,H=et($),G=D({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:P,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:S!==void 0?S:x,readOnlyNativeProps:e,activeComponent:o.jsx(p.Autocomplete,{ref:t,...I,classNames:G,disabled:R,value:S,defaultValue:x,error:!!h,data:H,renderOption:L??(K=>_n(K,Z,z))})})});fn.displayName="AutoComplete";const Aa="Avatar-module__root___fXu-J",Wa="Avatar-module__iconWrapper___ojly2",za="Avatar-module__textWrapper___zp-jD",Da="Avatar-module__image___ieqGp",Ea="Avatar-module__placeholder___IDW7-",po={root:Aa,iconWrapper:Wa,textWrapper:za,image:Da,placeholder:Ea},yn=i.forwardRef(function({size:e="default",variant:t="solid",icon:n,children:r,src:s,overStyled:l=!1,...d},c){const u={solid:"filled",outline:"outline",ghost:"transparent"},_={default:"md",small:"sm",large:"lg"},m=["color","radius"],b=B(f(d,l),m),h=b;let N="text";s?N="image":n&&(N="icon");const v=D({root:po.root,image:po.image,placeholder:po.placeholder},h.classNames),w=h.className;return o.jsx(p.Avatar,{ref:c,...b,className:w,classNames:v,variant:u[t],size:_[e],src:s,"data-variant":t,"data-size":e,"data-style":N,children:n!=null?o.jsx("span",{className:po.iconWrapper,"aria-hidden":!0,children:n}):r!=null?o.jsx("span",{className:po.textWrapper,children:r}):void 0})});yn.displayName="Avatar";const Fa=p.createPolymorphicComponent(yn),Ba="Badge-module__root___5osNT",mo={root:Ba},hn=i.forwardRef(function({variant:e="primary-color",overStyled:t=!1,...n},r){const s=f(n,t),l=D({root:mo.root,section:mo.section,label:mo.label},s.classNames),d=s.className,c=d?`${mo.root} ${d}`:mo.root;return o.jsx(p.Badge,{ref:r,...s,variant:"filled","data-variant":e,className:c,classNames:l})});hn.displayName="Badge";const vn=p.createPolymorphicComponent(hn),Ua="Breadcrumb-module__root___x-9ln",Va="Breadcrumb-module__separator___qrUX-",$o={root:Ua,separator:Va},xn=i.forwardRef(function({overStyled:e=!1,separator:t=">",children:n,...r},s){const l=f({separator:t,children:sn(n),...r},e),d=D({root:$o.root,separator:$o.separator},l.classNames),c=l.attributes,u={...c,separator:{"aria-hidden":!0,...c==null?void 0:c.separator}},_=l.className,m=_?`${$o.root} ${_}`:$o.root;return o.jsx(p.Breadcrumbs,{ref:s,...l,className:m,classNames:d,attributes:u})});xn.displayName="Breadcrumb";const Ha="Loader-module__root___6iYOP",Vo={root:Ha},rt=i.forwardRef(function({variant:e="oval",size:t="default",animate:n=!0,overStyled:r=!1,...s},l){const c={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[t]||"default",u=f(s,r),_=u,m=D({root:Vo.root},_.classNames),b=_.className,h=b?`${Vo.root} ${b}`:Vo.root;return o.jsx(p.Loader,{ref:l,...u,type:e,"data-variant":e,"data-size":c,"data-animate":n,className:h,classNames:m})});rt.displayName="Loader";const Ga="Button-module__root___Q2R8-",qa="Button-module__loader___X-9u-",Ka="Button-module__label___UJ3Zt",Ya="Button-module__labelText___rFV5p",Za="Button-module__iconWrapper___uEKPa",Xa="Button-module__section___f2mKr",Ye={root:Ga,loader:qa,label:Ka,labelText:Ya,iconWrapper:Za,section:Xa};function Qa(a){return a==null||a===""?!1:typeof a=="string"?a.trim()!=="":!0}const bn=i.forwardRef(function({variant:e="solid",size:t="default",icon:n,children:r,overStyled:s=!1,loaderVariant:l="oval",loaderSize:d,useRecursicaLoader:c=!0,...u},_){const m={solid:"filled",outline:"outline",text:"subtle"},b={default:"md",small:"sm"},h=["fullWidth"],N=B(f(u,s),h),v=N,w=!!n||!!v.leftSection,C=!!v.rightSection,P=Qa(r),R=(w||C)&&!P;let T="label";R?T="icon-only":(w||C)&&(T="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&R&&!v["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const g=D({root:Ye.root,section:Ye.section,label:Ye.label,loader:Ye.loader},v.classNames),y=v.className,S=y?`${Ye.root} ${y}`:Ye.root,x=v.loaderProps,$=Se(t==="small"?"small":"default",d);let L=x;return c&&(L={children:o.jsx(rt,{variant:l,size:$,overStyled:!0,color:"var(--button-color)"}),...x}),o.jsx(p.Button,{ref:_,...N,className:S,classNames:g,variant:m[e],size:b[t],loaderProps:L,leftSection:n!=null?o.jsx("span",{className:Ye.iconWrapper,"aria-hidden":!0,children:n}):void 0,"data-variant":e,"data-size":t,"data-content":T,disabled:!!v.disabled||!!v.loading,children:o.jsx("span",{className:Ye.labelText,children:r})})});bn.displayName="Button";const $e=p.createPolymorphicComponent(bn),Ja="Card-module__root___c9KvZ",es="Card-module__header___PTXf2",os="Card-module__footer___Mu-JC",ts="Card-module__section___BRT8H",ns="Card-module__content___oFIQa",Ee={root:Ja,header:es,footer:os,section:ts,content:ns},rs=["radius","withBorder","padding"],Nn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),rs);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(c=>{c in t&&!(c in r)&&(r[c]=t[c])});const l=D({root:Ee.root},r.classNames),d=r.className;return o.jsx(p.Card,{ref:n,...r,className:d,classNames:l})});Nn.displayName="Card";const at=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Card.Section,{ref:n,...r,className:s?`${Ee.section} ${s}`:Ee.section})});at.displayName="CardSection";const Cn=["withBorder","inheritPadding"],st=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Cn),s=r.className;return o.jsx(p.Card.Section,{ref:n,...r,className:s?`${Ee.header} ${s}`:Ee.header})});st.displayName="CardHeader";const lt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Cn),s=r.className;return o.jsx(p.Card.Section,{ref:n,...r,className:s?`${Ee.footer} ${s}`:Ee.footer})});lt.displayName="CardFooter";const it=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx("div",{ref:n,...r,className:s?`${Ee.content} ${s}`:Ee.content})});it.displayName="CardContent";const gn=p.createPolymorphicComponent(Nn),zo=gn;zo.Section=at;zo.Header=st;zo.Footer=lt;zo.Content=it;const as=gn,ss="Checkbox-module__groupRoot___cBS0o",ls="Checkbox-module__root___mY3qk",is="Checkbox-module__body___5yC7q",cs="Checkbox-module__inner___rTke4",ds="Checkbox-module__input___2kt-h",us="Checkbox-module__icon___-O7i6",ps="Checkbox-module__labelWrapper___GpZkr",ms="Checkbox-module__label___cwRtI",Te={groupRoot:ss,root:ls,body:is,inner:cs,input:ds,icon:us,labelWrapper:ps,label:ms},go=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,children:T,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,value:x,defaultValue:$,...L}=e,z=["size"],A=B(f(L,n),z),I=A,q=x!==void 0||$!==void 0;return o.jsx(ue,{className:P,style:R,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:n,labelElement:"div",formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:x!==void 0?x:$,readOnlyNativeProps:e,activeComponent:q?o.jsx(p.Checkbox.Group,{ref:t,...A,disabled:g||I.disabled,value:x,defaultValue:$,children:o.jsx("div",{className:Te.groupRoot,"data-layout":r,children:T})}):o.jsx("div",{ref:t,...A,role:"group",className:Te.groupRoot,"data-layout":r,children:T})})});go.displayName="CheckboxGroup";const wo=i.forwardRef(function(e,t){const{overStyled:n=!1,readOnly:r,readOnlyComponent:s,disabled:l,formLayout:d,labelSize:c,controlMaxWidth:u,controlMinWidth:_,...m}=e,b=["size","color","radius","variant","iconColor"],h=B(f(m,n),b),N=h,v=D({root:Te.root,body:Te.body,inner:Te.inner,input:Te.input,icon:Te.icon,labelWrapper:Te.labelWrapper,label:Te.label},N.classNames),w=N.className,C=w?`${Te.root} ${w}`:Te.root;if(r&&s){const R=!!(N.checked??N.defaultChecked),T=s,g=o.jsx(T,{...e,checked:R,label:N.label});return d?o.jsx(De,{formLayout:d,labelSize:c,controlMaxWidth:u,controlMinWidth:_,children:g}):o.jsx(o.Fragment,{children:g})}const P=o.jsx(p.Checkbox,{ref:t,...h,className:C,classNames:v,disabled:r||l});return d?o.jsx(De,{formLayout:d,labelSize:c,controlMaxWidth:u,controlMinWidth:_,children:P}):P});wo.displayName="Checkbox";wo.Group=go;const _s="Chip-module__root___f5pFk",fs="Chip-module__label___Ov9pg",ys="Chip-module__mantineIconWrapper___KLSz6",hs="Chip-module__innerWrapper___EnrTF",vs="Chip-module__children___zbRAR",xs="Chip-module__leadingIcon___JBtjQ",bs="Chip-module__deleteIcon___zPPsH",Pe={root:_s,label:fs,mantineIconWrapper:ys,innerWrapper:hs,children:vs,leadingIcon:xs,deleteIcon:bs};function Ns(a){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...a,children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const Po=i.forwardRef(function({error:e=!1,icon:t,onDelete:n,deleteLabel:r="Delete",deleteTabIndex:s,deleteIconRef:l,children:d,checked:c,overStyled:u=!1,wrapperProps:_,tabIndex:m,"aria-hidden":b,...h},N){const v=f(h,u),w=v,C=D({root:Pe.root,label:Pe.label,input:Pe.input,iconWrapper:Pe.mantineIconWrapper,checkIcon:Pe.checkIcon},w.classNames),P=w.className,R=P?`${Pe.root} ${P}`:Pe.root,T=e?"":void 0,g=!d&&(!!t||!!n),y=n!==void 0||w.onClick!==void 0||w.onChange!==void 0,S={...T!==void 0?{"data-error":""}:{},...y?{"data-interactive":""}:{}};return o.jsx(p.Chip,{ref:N,...v,checked:c,className:R,classNames:C,wrapperProps:Se(S,_),"data-icon-only":g?"":void 0,tabIndex:Se(y?void 0:-1,m),"aria-hidden":Se(y?void 0:!0,b),children:o.jsxs("span",{className:Pe.innerWrapper,children:[t&&!c&&o.jsx("span",{className:Pe.leadingIcon,"aria-hidden":!0,children:t}),o.jsx("span",{className:Pe.children,children:d}),n&&o.jsx("span",{ref:l,role:"button",className:Pe.deleteIcon,onClick:x=>{x.preventDefault(),x.stopPropagation(),n(x)},"aria-label":r,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),n(x))},tabIndex:s??0,children:o.jsx(Ns,{})})]})})});Po.displayName="Chip";const Cs="Container-module__root___UVssr",_o={root:Cs},wn=i.forwardRef(function({children:e,size:t,...n},r){const s={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof t=="string"&&s[t]?s[t]:t,d={root:_o.root},c=n.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const m=c;d.root=m.root?`${_o.root} ${m.root}`:_o.root}const u=n.className,_=u?`${_o.root} ${u}`:_o.root;return o.jsx(p.Container,{ref:r,size:l,className:_,classNames:d,...n,children:e})});wn.displayName="Container";function gs(a){return o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:[o.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),o.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),o.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),o.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})}const ws="DatePicker-module__layoutOverride___X9yaM",Ps="DatePicker-module__root___6XvRT",Ts="DatePicker-module__input___pcSW8",Ss="DatePicker-module__section___n3iWA",Rs="DatePicker-module__dropdown___wjt08",js="DatePicker-module__calendarHeader___KHxno",$s="DatePicker-module__calendarHeaderControl___q7UvJ",Os="DatePicker-module__calendarHeaderLevel___ebdJ2",ks="DatePicker-module__calendarHeaderControlIcon___2tZOb",Is="DatePicker-module__weekday___H5lIj",Ls="DatePicker-module__day___U03J2",ve={layoutOverride:ws,root:Ps,input:Ts,section:Ss,dropdown:Rs,calendarHeader:js,calendarHeaderControl:$s,calendarHeaderLevel:Os,calendarHeaderControlIcon:ks,weekday:Is,day:Ls},Ms=["size","variant","radius","description"],Pn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,highlightToday:$=!0,valueFormat:L="MM/DD/YY",placeholder:z="MM / DD / YY",leftSection:A,...I}=e,q=B(f(I,n),Ms),H=q,G=D({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:D({dropdown:ve.dropdown},K)},ce=C?`${ve.layoutOverride} ${C}`:ve.layoutOverride;return o.jsx(ue,{className:ce,style:P,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:(()=>{const M=S!==void 0?S:x;return M?Ho.getFormattedDate({type:"default",date:M,locale:"en",format:L,labelSeparator:""}):void 0})(),readOnlyNativeProps:e,activeComponent:o.jsx(Ho.DatePickerInput,{ref:t,...q,classNames:G,disabled:R,value:S,defaultValue:x,label:void 0,description:void 0,error:void 0,withAsterisk:!1,highlightToday:$,valueFormat:L,placeholder:z,leftSection:Se(o.jsx(gs,{}),A),wrapperProps:{"data-disabled":R?"true":void 0,"data-error":h?"true":void 0},popoverProps:Q})})});Pn.displayName="DatePicker";const As="Dropdown-module__layoutOverride___FNcvP",Ws="Dropdown-module__root___uVyL0",zs="Dropdown-module__input___dK4dN",Ds="Dropdown-module__section___j3MRB",Es="Dropdown-module__clearButton___ODnIa",Fs="Dropdown-module__dropdown___gG-Sw",Bs="Dropdown-module__option___nAGU-",Us="Dropdown-module__optionContent___QTwwg",Vs="Dropdown-module__optionIcon___2L56h",Hs="Dropdown-module__optionText___cCDpI",Gs="Dropdown-module__optionTextWrap___L4OPI",qs="Dropdown-module__optionSupportingText___2JIOV",ee={layoutOverride:As,root:Ws,input:zs,section:Ds,clearButton:Es,dropdown:Fs,option:Bs,optionContent:Us,optionIcon:Vs,optionText:Hs,optionTextWrap:Gs,optionSupportingText:qs},Ks=["size","variant","radius","searchable"],Tn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",containerWidth:s,labelSize:l,labelAlignment:d,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,disabled:T,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,value:x,defaultValue:$,data:L,clearButtonProps:z,renderOption:A,wrapItemText:I=!1,...q}=e,H=B(f(q,n),Ks),G=H,Z=et(L),V=z,K={...V,className:V!=null&&V.className?`${ee.clearButton} ${V.className}`:ee.clearButton},Q=D({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={...R||{},width:s||"100%"},ne=P?`${ee.layoutOverride} ${P}`:ee.layoutOverride;return o.jsx(ue,{className:ne,style:M,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:n,formLayout:r,labelSize:l,labelAlignment:d,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:x!==void 0?String(x):$?String($):void 0,readOnlyNativeProps:e,activeComponent:o.jsx(p.Select,{ref:t,...H,classNames:Q,disabled:T,value:x,defaultValue:$,data:Z||[],renderOption:A??(de=>_n(de,ce,I)),clearButtonProps:K,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,attributes:{wrapper:{"data-disabled":T?"true":void 0,"data-error":N?"true":void 0}}})})});Tn.displayName="Dropdown";const Ys="FileInput-module__layoutOverride___HIOY6",Zs="FileInput-module__root___UvQj-",Xs="FileInput-module__leadingIcon___z75c4",Qs="FileInput-module__content___Udsvh",Js="FileInput-module__value___RX33R",el="FileInput-module__chipRow___My6TF",ol="FileInput-module__chipWrapper___q2CDy",tl="FileInput-module__trailingIcon___odGPm",Ae={layoutOverride:Ys,root:Zs,leadingIcon:Xs,content:Qs,value:Js,chipRow:el,chipWrapper:ol,trailingIcon:tl};function nl(){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 rl(){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 Sn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,disabled:T,readOnly:g,files:y,onFilesAdded:S,onFileRemove:x,accept:$,multiple:L=!1,maxSize:z,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=f(M,n),O=!T&&!g,ae=!!y&&y.length>0,fe=i.useRef(null),[re,se]=i.useState(!1),[ye,Ne]=i.useState(!1),Ue=j=>{if(!O)return;const oe=Array.from(j);if(oe.length===0)return;const te=L?A:1,X=L?(y==null?void 0:y.length)??0:0,me=[],Ro=[];let Bt=!1,Ut=!1;for(const Fo of oe){const Vt=!Jo(Fo,$);Vt&&(Bt=!0);const zr=z!==void 0&&Fo.size>z,Ht=te!==void 0&&X+me.length>=te;Ht&&(Ut=!0),(Vt||zr||Ht?Ro:me).push(Fo)}se(Bt),Ne(Ut),me.length>0&&(S==null||S(me)),Ro.length>0&&(I==null||I(Ro))},Ce=i.useRef(0),[Ve,Le]=i.useState(!1),Me=j=>{j.preventDefault(),Ce.current+=1,Le(!0)},eo=j=>{j.preventDefault(),Ce.current-=1,Ce.current<=0&&(Ce.current=0,Le(!1))},ge=j=>{j.preventDefault()},He=j=>{j.preventDefault(),Ce.current=0,Le(!1),Ue(j.dataTransfer.files)},we=()=>{var j;O&&((j=fe.current)==null||j.click())},Ge=j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),we())},U=j=>{j.target.files&&Ue(j.target.files),j.target.value=""},E=()=>{!O||!y||y.length===0||y.forEach(j=>x==null?void 0:x(j.id??j.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 j=(y==null?void 0:y.length)??0;if(j>0&&j<Y.current){const te=Math.min(W,j-1);k(te),(oe=F.current[te])==null||oe.focus()}Y.current=j},[y]);const pe=j=>{var X;const oe=(y==null?void 0:y.length)??0;if(oe===0)return;let te;j.key==="ArrowRight"||j.key==="ArrowDown"?te=(W+1)%oe:(j.key==="ArrowLeft"||j.key==="ArrowUp")&&(te=(W-1+oe)%oe),te!==void 0&&(j.preventDefault(),j.stopPropagation(),k(te),(X=F.current[te])==null||X.focus())},qe=N??(re?q:ye?H:void 0),oo=P?`${Ae.layoutOverride} ${P}`:Ae.layoutOverride;return o.jsx(co,{overStyled:n,className:oo,style:R,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:qe,required:v,withAsterisk:w,id:C,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:o.jsxs("div",{ref:t,...de,className:Ae.root,role:"button","aria-label":K,"aria-disabled":T?"true":void 0,tabIndex:O?0:-1,"data-disabled":T?"true":void 0,"data-readonly":g?"true":void 0,"data-error":qe?"true":void 0,"data-dragging":Ve?"true":void 0,onClick:O?we:void 0,onKeyDown:O?Ge:void 0,onDragEnter:O?Me:void 0,onDragLeave:O?eo:void 0,onDragOver:O?ge:void 0,onDrop:O?He:void 0,children:[o.jsx("span",{className:Ae.leadingIcon,"aria-hidden":!0,children:G??o.jsx(nl,{})}),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:g?void 0:pe,children:y.map((j,oe)=>{const te=j.id??j.file.name;return o.jsx("span",{className:Ae.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||T?void 0:()=>x==null?void 0:x(te),children:j.file.name})},te)})})]}),ae&&!g&&o.jsx($e,{overStyled:!0,variant:"text",size:"small",icon:Z??o.jsx(rl,{}),"aria-label":ce,className:Ae.trailingIcon,disabled:T,onClick:j=>{j.preventDefault(),j.stopPropagation(),E()},onKeyDown:j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.stopPropagation(),E())}}),o.jsx("input",{ref:fe,type:"file",hidden:!0,accept:$,multiple:L,disabled:!O,onChange:U})]})})});Sn.displayName="FileInput";const al="FileUpload-module__layoutOverride___bPpi8",sl="FileUpload-module__root___Q-vcm",ll="FileUpload-module__dropzone___jqua0",il="FileUpload-module__uploadIcon___bb3Nc",cl="FileUpload-module__dropzoneText___L7vS-",dl="FileUpload-module__fileList___XIWLl",Ze={layoutOverride:al,root:sl,dropzone:ll,uploadIcon:il,dropzoneText:cl,fileList:dl};function ul(){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 Rn=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,disabled:T,readOnly:g,files:y,onFilesAdded:S,onFileRemove:x,accept:$,multiple:L=!0,maxSize:z,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=f(Q,n),ne=i.useRef(null),[de,O]=i.useState(!1),[ae,fe]=i.useState(!1),re=k=>{if(T)return;const F=Array.from(k);if(F.length===0)return;const Y=(y==null?void 0:y.length)??0,pe=[],qe=[];let oo=!1,j=!1;for(const oe of F){const te=!Jo(oe,$);te&&(oo=!0);const X=z!==void 0&&oe.size>z,me=A!==void 0&&Y+pe.length>=A;me&&(j=!0),(te||X||me?qe:pe).push(oe)}O(oo),fe(j),pe.length>0&&(S==null||S(pe)),qe.length>0&&(I==null||I(qe))},se=i.useRef(0),[ye,Ne]=i.useState(!1),Ue=k=>{k.preventDefault(),se.current+=1,Ne(!0)},Ce=k=>{k.preventDefault(),se.current-=1,se.current<=0&&(se.current=0,Ne(!1))},Ve=k=>{k.preventDefault()},Le=k=>{k.preventDefault(),se.current=0,Ne(!1),re(k.dataTransfer.files)},Me=()=>{var k;T||(k=ne.current)==null||k.click()},eo=k=>{k.target.files&&re(k.target.files),k.target.value=""},[ge,He]=i.useState(0),we=i.useRef([]),Ge=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<Ge.current){const Y=Math.min(ge,k-1);He(Y),(F=we.current[Y])==null||F.focus()}Ge.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=(ge+1)%F:(k.key==="ArrowLeft"||k.key==="ArrowUp")&&(Y=(ge-1+F)%F),Y!==void 0&&(k.preventDefault(),He(Y),(pe=we.current[Y])==null||pe.focus())},E=N??(de?q:ae?H:void 0),W=P?`${Ze.layoutOverride} ${P}`:Ze.layoutOverride;return o.jsx(co,{overStyled:n,className:W,style:R,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,assistiveWithIcon:h,error:E,required:v,withAsterisk:w,id:C,controlMaxWidth:"var(--recursica_ui-kit_globals_form_field_size_max-width)",children:o.jsxs("div",{ref:t,...M,className:Ze.root,"data-disabled":T?"true":void 0,"data-error":E?"true":void 0,children:[!g&&o.jsxs("div",{className:Ze.dropzone,"data-dragging":ye?"true":void 0,onDragEnter:T?void 0:Ue,onDragLeave:T?void 0:Ce,onDragOver:T?void 0:Ve,onDrop:T?void 0:Le,children:[o.jsx("span",{className:Ze.uploadIcon,children:G??o.jsx(ul,{})}),o.jsx("span",{className:Ze.dropzoneText,children:Z}),o.jsx($e,{variant:"outline",disabled:T,onClick:Me,children:V}),o.jsx("input",{ref:ne,type:"file",hidden:!0,accept:$,multiple:L,disabled:T,onChange:eo})]}),y&&y.length>0&&(g?o.jsx("div",{className:Ze.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:Ze.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===ge?0:-1,deleteIconRef:pe=>{we.current[F]=pe},onDelete:T?void 0:()=>x==null?void 0:x(Y),children:k.file.name},Y)})}))]})})});Rn.displayName="FileUpload";const pl="Flex-module__root___yYser",fo={root:pl},jn=i.forwardRef(function({children:e,gap:t="rec-default",rowGap:n,columnGap:r,...s},l){const d={root:fo.root},c=s.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const m=c;d.root=m.root?`${fo.root} ${m.root}`:fo.root}const u=s.className,_=u?`${fo.root} ${u}`:fo.root;return o.jsx(p.Flex,{ref:l,className:_,classNames:d,...So({gap:t,rowGap:n,columnGap:r,...s}),children:e})});jn.displayName="Flex";const ml=p.createPolymorphicComponent(jn),_l="LayoutGrid-module__root___etcau",fl="LayoutGrid-module__inner___Oz2XL",yl="LayoutGrid-module__col___8EYKw",le={root:_l,inner:fl,col:yl},hl=1,$n=i.createContext({}),On=i.forwardRef(function({children:e,...t},n){const r={root:le.root,inner:le.inner,col:le.col},s=t.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const m=s;r.root=m.root?`${le.root} ${m.root}`:le.root,r.inner=m.inner?`${le.inner} ${m.inner}`:le.inner,r.col=m.col?`${le.col} ${m.col}`:le.col}const l=t.className,d=l?`${le.root} ${l}`:le.root,{gutter:c,...u}=t,_=So(u);return o.jsx($n.Provider,{value:{type:t.type,breakpoints:t.breakpoints},children:o.jsx(p.Grid,{ref:n,columns:hl,gutter:"var(--recursica_brand_layout-grids_column-gutter)","data-recursica-grow":t.grow?"":void 0,className:d,classNames:r,..._,children:e})})});On.displayName="LayoutGrid";const vl=p.createPolymorphicComponent(On),qo="var(--recursica_brand_layout-grids_columns)",xl=a=>{if(typeof a=="number"){const e=`calc(min(${a}, ${qo}) / ${qo} * 100%)`;return{"--rec-col-basis":e,"--rec-col-max-width":e}}return{"--rec-col-basis":"var(--col-flex-basis)","--rec-col-max-width":"var(--col-max-width)"}},bl=a=>({"--rec-col-offset":typeof a=="number"?`calc(${a} / ${qo} * 100%)`:"var(--col-offset)"}),Nl=a=>typeof a=="object"&&a!==null,io=(a,e)=>Nl(a)?a[e]:e==="base"?a:void 0,Yt=(a,e,t)=>({...io(a,t)===void 0?{}:xl(io(a,t)),...io(e,t)===void 0?{}:bl(io(e,t))});function Cl({selector:a,span:e,offset:t}){const n=p.useMantineTheme(),{type:r,breakpoints:s}=i.useContext($n),l=s??n.breakpoints,d=Object.keys(l).filter(u=>io(e,u)!==void 0||io(t,u)!==void 0),c=p.getSortedBreakpoints(d,l).map(({value:u})=>({query:r==="container"?`mantine-grid (min-width: ${l[u]})`:`(min-width: ${l[u]})`,styles:Yt(e,t,u)}));return o.jsx(p.InlineStyles,{selector:a,styles:Yt(e??12,t,"base"),media:r==="container"?void 0:c,container:r==="container"?c:void 0})}const kn=i.forwardRef(function({children:e,...t},n){const r={col:le.col},s=t.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const u=s;r.col=u.col?`${le.col} ${u.col}`:le.col}const l=t.className,d=l?`${le.col} ${l}`:le.col,c=p.useRandomClassName();return o.jsxs(o.Fragment,{children:[o.jsx(Cl,{selector:`.${c}`,span:t.span,offset:t.offset}),o.jsx(p.Grid.Col,{ref:n,className:`${d} ${c}`,classNames:r,...So(t),children:e})]})});kn.displayName="LayoutGridCol";const In=p.createPolymorphicComponent(kn),Ln=vl;Ln.Col=In;const gl="Group-module__root___ftO64",yo={root:gl},Mn=i.forwardRef(function({children:e,gap:t="rec-default",...n},r){const s={root:yo.root},l=n.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;s.root=u.root?`${yo.root} ${u.root}`:yo.root}const d=n.className,c=d?`${yo.root} ${d}`:yo.root;return o.jsx(p.Group,{ref:r,className:c,classNames:s,...So({gap:t,...n}),children:e})});Mn.displayName="Group";const wl="Heading-module__root___-To4U",Pl={root:wl},An=i.forwardRef(function({overStyled:e=!1,order:t=1,emphasis:n="high",color:r="default",...s},l){const d=["size"],c=B(f(s,e),d),u=c.className,m=[`recursica_brand_typography_h${t}`,Pl.root,u].filter(Boolean).join(" ");return o.jsx(p.Title,{ref:l,...c,order:t,"data-color":r,"data-emphasis":n,className:m})});An.displayName="Heading";const Tl="HoverCard-module__dropdown___FBPFW",Sl="HoverCard-module__arrow___S9AkE",Zt={dropdown:Tl,arrow:Sl},Wn=function({overStyled:e=!1,withBeak:t=!0,position:n="top",arrowSize:r=16,withArrow:s,...l}){const d=f(l,e),c=d,u=D({dropdown:Zt.dropdown,arrow:Zt.arrow},c.classNames),_=t??s;return o.jsx(p.HoverCard,{...d,position:n,arrowSize:r,withArrow:_,classNames:u})};Wn.displayName="HoverCard";const zn=function(e){return o.jsx(p.HoverCard.Target,{...e})};zn.displayName="HoverCardTarget";const Dn=function({overStyled:e=!1,...t}){const n=f(t,e),r=n.className;return o.jsx(p.HoverCard.Dropdown,{...n,className:r})};Dn.displayName="HoverCardDropdown";const ct=Wn;ct.Target=zn;ct.Dropdown=Dn;const Rl="Link-module__root___I0VGE",jl="Link-module__iconWrapper___W-LlF",$l="Link-module__labelText___wSvUy",ho={root:Rl,iconWrapper:jl,labelText:$l},En=i.forwardRef(function({icon:e,children:t,overStyled:n=!1,...r},s){const l=f(r,n),d=l,c=D({root:ho.root},d.classNames),u=d.className,_=u?`${ho.root} ${u}`:ho.root;return o.jsxs(p.Anchor,{ref:s,...l,className:_,classNames:c,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:t})]})});En.displayName="Link";const Ol=p.createPolymorphicComponent(En),kl="Menu-module__dropdown___j4xuA",Il="Menu-module__item___NMXha",Ll="Menu-module__itemLabel___zvcqC",Ml="Menu-module__itemSection___pRIcn",Al="Menu-module__divider___wPiNq",Wl="Menu-module__label___4FBGa",zl="Menu-module__chevron___hEEiy",to={dropdown:kl,item:Il,itemLabel:Ll,itemSection:Ml,divider:Al,label:Wl,chevron:zl},Fn=function({overStyled:e=!1,...t}){const r=f(t,e),{maxHeight:s,...l}=r,d=D({dropdown:to.dropdown,item:to.item,itemLabel:to.itemLabel,itemSection:to.itemSection,divider:to.divider,label:to.label,chevron:to.chevron},r.classNames),c=l.styles,u=s?{...c,dropdown:{...c==null?void 0:c.dropdown,maxHeight:s,overflowY:"auto"}}:c;return o.jsx(p.Menu,{...l,classNames:d,...u?{styles:u}:{}})};Fn.displayName="Menu";const Bn=function({overStyled:e=!1,...t}){const n=f(t,e);return o.jsx(p.Menu.Target,{...n})};Bn.displayName="MenuTarget";const Un=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Menu.Dropdown,{...r,ref:n,className:s})});Un.displayName="MenuDropdown";const Vn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=["color"],s=B(f(t,e),r),d=s.className;return o.jsx(p.Menu.Item,{...s,ref:n,className:d})});Vn.displayName="MenuItem";const Dl=p.createPolymorphicComponent(Vn),Hn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Menu.Divider,{...r,ref:n,className:s})});Hn.displayName="MenuDivider";const Gn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Menu.Label,{...r,ref:n,className:s})});Gn.displayName="MenuLabel";const qn=function(e){return o.jsx(p.Menu.Sub,{...e})};qn.displayName="MenuSub";const Kn=function(e){return o.jsx(p.Menu.Sub.Target,{...e})};Kn.displayName="MenuSubTarget";const Yn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=["color"],s=B(f(t,e),r),d=s.className;return o.jsx(p.Menu.Sub.Item,{...s,ref:n,className:d})});Yn.displayName="MenuSubItem";const El=p.createPolymorphicComponent(Yn),Zn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className;return o.jsx(p.Menu.Sub.Dropdown,{...r,ref:n,className:s})});Zn.displayName="MenuSubDropdown";const Do=qn;Do.Target=Kn;Do.Item=El;Do.Dropdown=Zn;const ao=Fn;ao.Target=Bn;ao.Dropdown=Un;ao.Item=Dl;ao.Divider=Hn;ao.Label=Gn;ao.Sub=Do;const Fl="Modal-module__root___ytPLl",Bl="Modal-module__inner___SSUJE",Ul="Modal-module__content___dWO-B",Vl="Modal-module__header___ILG9i",Hl="Modal-module__title___A5OeE",Gl="Modal-module__bodyWrapper___5CCL-",ql="Modal-module__scrollArea___KD-hm",Kl="Modal-module__footer___rro2w",Yl="Modal-module__close___-ER1C",ze={root:Fl,inner:Bl,content:Ul,header:Vl,title:Hl,bodyWrapper:Gl,scrollArea:ql,footer:Kl,close:Yl},Xn=i.forwardRef(function({overStyled:e=!1,children:t,title:n,withCloseButton:r=!0,overlayProps:s,withOverlay:l=!0,closeButtonProps:d,...c},u){const _=["size","radius"],m=B(f(c,e),_),b=D({root:ze.root,inner:ze.inner,content:ze.content,header:ze.header,title:ze.title,close:ze.close},m.classNames);return o.jsxs(p.Modal.Root,{ref:u,...m,classNames:b,children:[l&&o.jsx(p.Modal.Overlay,{...s}),o.jsxs(p.Modal.Content,{children:[(n||r)&&o.jsxs(p.Modal.Header,{children:[n&&o.jsx(p.Modal.Title,{children:n}),r&&o.jsx(p.Modal.CloseButton,{...d})]}),o.jsx(ut,{children:t})]})]})});Xn.displayName="Modal";const dt=i.forwardRef(function({overStyled:e=!1,className:t,...n},r){const s=f(n,e);return o.jsx("div",{ref:r,...s,className:`${ze.footer} ${t||""}`})});dt.displayName="Modal.Footer";const ut=i.forwardRef(function({overStyled:e=!1,className:t,onScroll:n,children:r,...s},l){const d=f(s,e),c=i.useRef(null),[u,_]=i.useState(!1),[m,b]=i.useState(!1),h=i.useCallback(()=>{if(c.current){const{scrollTop:C,scrollHeight:P,clientHeight:R}=c.current;_(C>0),b(Math.ceil(C+R)<P)}},[]);i.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,r]);const N=C=>{h(),n==null||n(C)};let v=null;const w=[];return i.Children.forEach(r,C=>{var P;i.isValidElement(C)&&(C.type===dt||((P=C.type)==null?void 0:P.displayName)==="Modal.Footer")?v=C:w.push(C)}),o.jsxs(p.Modal.Body,{...d,ref:C=>{typeof l=="function"?l(C):l&&(l.current=C)},className:`${ze.bodyWrapper} ${t||""}`,children:[o.jsx("div",{ref:c,onScroll:N,"data-scrolled-top":u||void 0,"data-scrolled-bottom":m||void 0,className:ze.scrollArea,children:w}),v]})});ut.displayName="Modal.Body";const Zl=["size","radius"],Qn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Zl);return o.jsx(p.Modal.Root,{ref:n,...r})});Qn.displayName="Modal.Root";const Jn=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Modal.Overlay,{ref:n,...r})});Jn.displayName="Modal.Overlay";const Xl=["radius"],er=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Xl);return o.jsx(p.Modal.Content,{ref:n,...r})});er.displayName="Modal.Content";const or=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Modal.Header,{ref:n,...r})});or.displayName="Modal.Header";const tr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Modal.Title,{ref:n,...r})});tr.displayName="Modal.Title";const Ql=["size","radius"],nr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=B(f(t,e),Ql);return o.jsx(p.Modal.CloseButton,{ref:n,...r})});nr.displayName="Modal.CloseButton";const Fe=Xn;Fe.Root=Qn;Fe.Overlay=Jn;Fe.Content=er;Fe.Header=or;Fe.Title=tr;Fe.CloseButton=nr;Fe.Body=ut;Fe.Footer=dt;const Jl="NumberInput-module__layoutOverride___5-9T4",ei="NumberInput-module__root___C6rAn",oi="NumberInput-module__input___Ss8p7",ti="NumberInput-module__section___MijP0",ni="NumberInput-module__controls___8UfQ2",ri="NumberInput-module__control___Qre9-",no={layoutOverride:Jl,root:ei,input:oi,section:ti,controls:ni,control:ri},ai=["size","variant","radius"],rr=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,hideControls:$=!1,...L}=e,z=B(f(L,n),ai),A=z,I={wrapper:no.root,input:no.input,section:no.section,controls:no.controls,control:no.control},q=C?`${no.layoutOverride} ${C}`:no.layoutOverride;return o.jsx(ue,{className:q,style:P,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:S!==void 0?S==null?void 0:S.toString():x==null?void 0:x.toString(),readOnlyNativeProps:e,activeComponent:o.jsx(p.NumberInput,{ref:t,...z,classNames:I,disabled:R,value:S,defaultValue:x,hideControls:$,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":R?"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}})})});rr.displayName="NumberInput";const si="Pagination-module__root___ITRjt",li="Pagination-module__dots___Yl9da",ii="Pagination-module__baseIcon___Qw3bJ",ci="Pagination-module__rightIcon___aYC8M",To={root:si,dots:li,baseIcon:ii,rightIcon:ci},di="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",ui="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",pi="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",mi="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",_i={next:di,prev:ui,first:pi,last:mi},ar=({type:a,className:e,...t})=>o.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${To.baseIcon} ${e||""}`.trim(),...t,children:o.jsx("path",{d:_i[a],fill:"currentColor"})});function Lo(a){var n,r,s,l,d,c,u;const t=(u=(c=(d=(l=(s=(r=(n=ln()["ui-kit"])==null?void 0:n.components)==null?void 0:r.pagination)==null?void 0:s.properties)==null?void 0:l[a])==null?void 0:d.$extensions)==null?void 0:c["recursica.component"])==null?void 0:u["selected-variants"];if(!t)throw new Error(`Pagination: manifest has no ui-kit.components.pagination.properties.${a} selected-variants`);return{variant:t.style,size:t.size}}const sr=i.createContext(null);function pt(){const a=i.useContext(sr);if(!a)throw new Error("Pagination parts must be rendered inside Pagination.Root");return a}const mt=i.forwardRef(function({overStyled:e=!1,total:t,value:n,defaultValue:r,onChange:s,siblings:l,boundaries:d,disabled:c,getItemProps:u,getControlProps:_,dotsIcon:m,children:b,...h},N){const v=nn.usePagination({total:t,page:n,initialPage:r,onChange:s,siblings:l,boundaries:d}),w=f(h,e),C=w.className;return o.jsx(sr.Provider,{value:{total:t,active:v.active,range:v.range,disabled:c,setPage:v.setPage,first:v.first,previous:v.previous,next:v.next,last:v.last,getItemProps:u,getControlProps:_,dotsIcon:m},children:o.jsx("nav",{ref:N,"aria-label":"Pagination",...w,className:C?`${To.root} ${C}`:To.root,children:b})})});mt.displayName="Pagination.Root";const _t=i.forwardRef(function({active:e=!1,disabled:t,...n},r){const s=pt(),l=Lo("active-pages"),d=Lo("inactive-pages"),c=e?l:d;return o.jsx($e,{ref:r,variant:c.variant,size:c.size,disabled:t||s.disabled,"aria-current":e?"page":void 0,...n})});_t.displayName="Pagination.Control";const ft=i.forwardRef(function({icon:e,...t},n){const{size:r}=Lo("inactive-pages");return o.jsx("div",{ref:n,className:To.dots,"data-size":r,...t,children:e??"…"})});ft.displayName="Pagination.Dots";function yt(){const a=pt();return o.jsx(o.Fragment,{children:a.range.map((e,t)=>{var n,r,s;return e==="dots"?o.jsx(ft,{icon:a.dotsIcon},t):o.jsx(_t,{active:e===a.active,"aria-label":`Page ${e}`,onClick:()=>a.setPage(e),...(n=a.getItemProps)==null?void 0:n.call(a,e),children:((s=(r=a.getItemProps)==null?void 0:r.call(a,e))==null?void 0:s.children)??e},t)})})}yt.displayName="Pagination.Items";const fi={first:"First page",previous:"Previous page",next:"Next page",last:"Last page"},yi={first:"First",previous:"Prev",next:"Next",last:"Last"};function Eo(a,e,t,n){const r=i.forwardRef(function({withLabel:l,icon:d,disabled:c,...u},_){var P;const m=pt(),b=Lo("navigation-controls"),h=m.active===1,N=m.active===m.total,v=c||m.disabled||(a==="first"||a==="previous")&&h||(a==="next"||a==="last")&&N,w=d??o.jsx(ar,{type:e}),C=l?t?{rightSection:o.jsx("span",{className:To.rightIcon,children:w})}:{icon:w}:{icon:w};return o.jsx($e,{ref:_,variant:b.variant,size:b.size,"aria-label":fi[a],disabled:v,onClick:m[a],...C,...(P=m.getControlProps)==null?void 0:P.call(m,a),...u,children:l?yi[a]:void 0})});return r.displayName=n,r}const lr=Eo("first","first",!1,"Pagination.First"),ir=Eo("previous","prev",!1,"Pagination.Previous"),cr=Eo("next","next",!0,"Pagination.Next"),dr=Eo("last","last",!0,"Pagination.Last"),ur=i.forwardRef(function({withEdges:e,withControls:t=!0,withLabels:n,...r},s){return o.jsxs(mt,{ref:s,...r,children:[e&&o.jsx(lr,{withLabel:n}),t&&o.jsx(ir,{withLabel:n}),o.jsx(yt,{}),t&&o.jsx(cr,{withLabel:n}),e&&o.jsx(dr,{withLabel:n})]})});ur.displayName="Pagination";const ke=ur;ke.Root=mt;ke.Items=yt;ke.Control=_t;ke.Dots=ft;ke.Next=cr;ke.Previous=ir;ke.First=lr;ke.Last=dr;ke.Icon=ar;const hi="Panel-module__content___wdGo-",vi="Panel-module__contentRight___4bsdU",xi="Panel-module__contentLeft___bOgUu",bi="Panel-module__inner___ruA2b",Ni="Panel-module__header___o7SiC",Ci="Panel-module__title___181OP",gi="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",wi="Panel-module__body___SEC3T",Pi="Panel-module__footer___t6-hz",xe={content:hi,contentRight:vi,contentLeft:xi,inner:bi,header:Ni,title:Ci,titleTruncate:gi,body:wi,footer:Pi},pr=function({overStyled:e=!1,placement:t="right",keepMounted:n=!0,wrapHeaderText:r=!0,...s}){const l=f(s,e),d=l,c=D({content:`${xe.content} ${t==="right"?xe.contentRight:t==="left"?xe.contentLeft:t==="top"?xe.contentTop:xe.contentBottom}`,header:xe.header,title:r?xe.titleTruncate:xe.title,body:xe.body,inner:xe.inner},d.classNames);return o.jsx(p.Drawer,{...l,size:"var(--recursica_ui-kit_components_panel_properties_max-width)",position:t,keepMounted:n,closeOnClickOutside:Se(!!s.opened,s.closeOnClickOutside),classNames:c})};pr.displayName="Panel";const ht=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className,l=s?`${xe.footer} ${s}`:xe.footer;return o.jsx("div",{ref:n,...r,className:l})});ht.displayName="PanelFooter";const vt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Root,{ref:n,...r})});vt.displayName="PanelRoot";const xt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Overlay,{ref:n,...r})});xt.displayName="PanelOverlay";const bt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Content,{ref:n,...r})});bt.displayName="PanelContent";const Nt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Header,{ref:n,...r})});Nt.displayName="PanelHeader";const Ct=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Title,{ref:n,...r})});Ct.displayName="PanelTitle";const gt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.CloseButton,{ref:n,...r})});gt.displayName="PanelCloseButton";const wt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Drawer.Body,{ref:n,...r})});wt.displayName="PanelBody";const Ie=pr;Ie.Root=vt;Ie.Overlay=xt;Ie.Content=bt;Ie.Header=Nt;Ie.Title=Ct;Ie.CloseButton=gt;Ie.Body=wt;Ie.Stack=p.Drawer.Stack;Ie.Footer=ht;const Ti="Popover-module__dropdown___svhS6",Si="Popover-module__arrow___5A-0e",Xt={dropdown:Ti,arrow:Si},mr=function({overStyled:e=!1,withBeak:t=!0,position:n="top",...r}){const s=f(r,e),l=s,d=D({dropdown:Xt.dropdown,arrow:Xt.arrow},l.classNames),c=Se(16,l.arrowSize),u=Se(t,l.withArrow);return o.jsx(p.Popover,{...s,position:n,arrowSize:c,withArrow:u,classNames:d})};mr.displayName="Popover";const _r=function(e){return o.jsx(p.Popover.Target,{...e})};_r.displayName="PopoverTarget";const fr=function({overStyled:e=!1,...t}){const n=f(t,e),r=n.className;return o.jsx(p.Popover.Dropdown,{...n,className:r})};fr.displayName="PopoverDropdown";const Pt=mr;Pt.Target=_r;Pt.Dropdown=fr;const Ri="Radio-module__groupRoot___bfUii",ji="Radio-module__root___kAjTD",$i="Radio-module__body___q2Wpj",Oi="Radio-module__inner___QaTBB",ki="Radio-module__radio___MfgN-",Ii="Radio-module__icon___DWznm",Li="Radio-module__labelWrapper___dB0Gi",Mi="Radio-module__label___vAFIP",Re={groupRoot:Ri,root:ji,body:$i,inner:Oi,radio:ki,icon:Ii,labelWrapper:Li,label:Mi},Tt=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,children:T,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,value:x,defaultValue:$,...L}=e,z=["size"],A=B(f(L,n),z),I=A;return o.jsx(ue,{className:P,style:R,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:n,labelElement:"div",formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:x!==void 0?x:$,readOnlyNativeProps:e,activeComponent:o.jsx(p.Radio.Group,{ref:t,...A,disabled:g||I.disabled,value:x,defaultValue:$,children:o.jsx("div",{className:Re.groupRoot,"data-layout":r,children:T})})})});Tt.displayName="RadioGroup";const Ai=({className:a,style:e})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:a,style:e,children:o.jsx("circle",{cx:"8",cy:"8",r:"5"})}),St=i.forwardRef(function(e,t){const{overStyled:n=!1,readOnly:r,readOnlyComponent:s,disabled:l,icon:d,formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,...b}=e,h=["size","color","radius","variant","iconColor"],N=B(f(b,n),h),v=N,w=D({root:Re.root,body:Re.body,inner:Re.inner,radio:Re.radio,icon:Re.icon,labelWrapper:Re.labelWrapper,label:Re.label},v.classNames),C=v.className,P=C?`${Re.root} ${C}`:Re.root;if(r&&s){const T=!!(v.checked??v.defaultChecked),g=s,y=o.jsx(g,{...e,checked:T,label:v.label});return c?o.jsx(De,{formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,children:y}):o.jsx(o.Fragment,{children:y})}const R=o.jsx(p.Radio,{ref:t,...N,icon:Se(Ai,d),className:P,classNames:w,disabled:r||l});return c?o.jsx(De,{formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,children:R}):R});St.displayName="Radio";St.Group=Tt;const yr=({checked:a,label:e})=>o.jsxs(p.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:a?"On":"Off"})]});yr.displayName="ReadOnlySwitchField";const hr=({checked:a,label:e})=>o.jsxs(p.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:a?"True":"False"})]});hr.displayName="ReadOnlyBooleanField";const Wi="SegmentedControl-module__root___JFRhg",zi="SegmentedControl-module__label___mS17q",Di="SegmentedControl-module__control___znOdQ",Ei="SegmentedControl-module__indicator___ZMcJy",lo={root:Wi,label:zi,control:Di,indicator:Ei};function Fi(a){const e=D({root:lo.root,control:lo.control,label:lo.label,indicator:lo.indicator},a.classNames),t=a.className;return{className:t?`${lo.root} ${t}`:lo.root,classNames:e}}const vr=i.forwardRef(function({overStyled:e=!1,orientation:t="horizontal",fullWidth:n,data:r=[],...s},l){const d=f(s,e),u=Fi(d),_=r.map(m=>typeof m=="string"||!m.icon?m:{...m,label:o.jsxs(o.Fragment,{children:[m.icon,m.label]})});return o.jsx(p.SegmentedControl,{ref:l,...d,className:u.className,classNames:u.classNames,orientation:t,fullWidth:n,"data-orientation":t,data:_})});vr.displayName="SegmentedControl";const Bi=vr,Ui="Slider-module__layoutOverride___zYPun",Vi="Slider-module__sliderContainer___y8I0J",Hi="Slider-module__sliderTrackWrapper___UHpVh",Gi="Slider-module__iconWrapper___uqHpC",qi="Slider-module__sliderRoot___LI86H",Ki="Slider-module__sliderTrack___oqnlG",Yi="Slider-module__sliderBar___TI4VY",Zi="Slider-module__sliderThumb___OFn8p",Xi="Slider-module__sliderMarkWrapper___Ufqhu",Qi="Slider-module__sliderMark___1lM2B",Ji="Slider-module__sliderMarkLabel___MMZrq",ec="Slider-module__minMaxGuide___TaGqz",oc="Slider-module__rightGuideContainer___8dOT8",tc="Slider-module__currentValue___dGV2T",nc="Slider-module__inputField___6x578",rc="Slider-module__readOnlyValue___-ZzMW",J={layoutOverride:Ui,sliderContainer:Vi,sliderTrackWrapper:Hi,iconWrapper:Gi,sliderRoot:qi,sliderTrack:Ki,sliderBar:Yi,sliderThumb:Zi,sliderMarkWrapper:Xi,sliderMark:Qi,sliderMarkLabel:Ji,minMaxGuide:ec,rightGuideContainer:oc,currentValue:tc,inputField:nc,readOnlyValue:rc},ac=({value:a})=>{const e=Array.isArray(a)?`${a[0]} – ${a[1]}`:a;return o.jsx("div",{className:J.readOnlyValue,children:e})},xr=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,tooltipLabel:b,assistiveText:h,assistiveWithIcon:N,error:v,required:w,withAsterisk:C,id:P,className:R,style:T,disabled:g,readOnly:y,readOnlyComponent:S,emptyValueComponent:x,value:$,defaultValue:L,icon:z,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,ae=Array.isArray(O),[fe,re]=i.useState(()=>Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString());i.useEffect(()=>{re(Array.isArray(O)?[O[0].toString(),O[1].toString()]:O.toString())},[O]);const se=E=>{$===void 0&&de(E),Q==null||Q(E)},ye=E=>{const W=E.target.value;re(W);const k=parseFloat(W);if(!isNaN(k)){const F=Math.max(H,Math.min(G,k));se(F)}},Ne=()=>{re(O.toString())},Ue=E=>{const W=O,k=E.target.value;re([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]])}},Ce=E=>{const W=O,k=E.target.value;re([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])}},Ve=()=>{const E=O;re([E[0].toString(),E[1].toString()])},Le=["size","variant","radius","wrapperProps"],Me=B(f(M,n),Le),eo=Me,ge=D({root:J.sliderRoot,track:J.sliderTrack,bar:J.sliderBar,thumb:J.sliderThumb,markWrapper:J.sliderMarkWrapper,mark:J.sliderMark,markLabel:J.sliderMarkLabel},eo.classNames),He=R?`${J.layoutOverride} ${R}`:J.layoutOverride,we=z?o.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:z}):null,Ge=A?o.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:A}):null,U=Array.isArray(O)?typeof b=="function"?`${b(O[0])} – ${b(O[1])}`:`${O[0]} – ${O[1]}`:typeof b=="function"?b(O):O;return o.jsx(ue,{ref:t,className:He,style:T,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:h,assistiveWithIcon:N,error:v,required:w,withAsterisk:C,id:P,readOnly:y,readOnlyComponent:S||ac,emptyValueComponent:x,readOnlyType:"text",readOnlyValue:O,readOnlyNativeProps:{value:O},activeComponent:o.jsxs("div",{className:J.sliderContainer,"data-form-layout":r,"data-disabled":g?"true":void 0,"data-error":v?"true":void 0,children:[ae&&I&&o.jsx("input",{type:"number",className:J.inputField,value:fe[0],onChange:Ue,onBlur:Ve,min:H,max:O[1],step:K,disabled:g,"data-error":v?"true":void 0,"aria-label":"Minimum value"}),we,q&&o.jsx("span",{className:J.minMaxGuide,children:Z??H}),o.jsx("div",{className:J.sliderTrackWrapper,children:ae?o.jsx(p.RangeSlider,{...Me,classNames:ge,disabled:g,value:O,onChange:se,onChangeEnd:ce,min:H,max:G,step:K,label:b}):o.jsx(p.Slider,{...Me,classNames:ge,disabled:g,value:O,onChange:se,onChangeEnd:ce,min:H,max:G,step:K,label:b})}),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})]}),Ge,I&&(ae?o.jsx("input",{type:"number",className:J.inputField,value:fe[1],onChange:Ce,onBlur:Ve,min:O[0],max:G,step:K,disabled:g,"data-error":v?"true":void 0,"aria-label":"Maximum value"}):o.jsx("input",{type:"number",className:J.inputField,value:fe,onChange:ye,onBlur:Ne,min:H,max:G,step:K,disabled:g,"data-error":v?"true":void 0}))]})})});xr.displayName="Slider";const sc="Stack-module__root___NUN-x",vo={root:sc},br=i.forwardRef(function({children:e,gap:t="rec-default",...n},r){const s={root:vo.root},l=n.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;s.root=u.root?`${vo.root} ${u.root}`:vo.root}const d=n.className,c=d?`${vo.root} ${d}`:vo.root;return o.jsx(p.Stack,{ref:r,className:c,classNames:s,...So({gap:t,...n}),children:e})});br.displayName="Stack";const lc=p.createPolymorphicComponent(br),ic="Stepper-module__root___jbSYO",cc="Stepper-module__horizontal___USHT1",dc="Stepper-module__steps___4HPO6",uc="Stepper-module__step___s2nqL",pc="Stepper-module__stepBody___TBvys",mc="Stepper-module__stepLabel___N6nuy",_c="Stepper-module__stepDescription___DnDAy",fc="Stepper-module__separator___pU0No",yc="Stepper-module__vertical___d4mOs",hc="Stepper-module__large___J18-y",vc="Stepper-module__small___Ub-zb",xc="Stepper-module__stepIcon___YQHNq",bc="Stepper-module__stepCompletedIcon___B9MeL",Nc="Stepper-module__verticalSeparator___frWc1",Cc="Stepper-module__content___J-h8X",ie={root:ic,horizontal:cc,steps:dc,step:uc,stepBody:pc,stepLabel:mc,stepDescription:_c,separator:fc,vertical:yc,large:hc,small:vc,stepIcon:xc,stepCompletedIcon:bc,verticalSeparator:Nc,content:Cc},Nr=i.forwardRef(function(e,t){const{overStyled:n=!1,size:r="large",orientation:s="horizontal",className:l,style:d,...c}=e,u=f(c,n),_=u,m=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(p.Stepper,{ref:t,...u,orientation:s,className:`${ie.root} ${s==="horizontal"?ie.horizontal:ie.vertical} ${r==="large"?ie.large:ie.small} ${l||""}`,style:d,"data-size":r,"data-orientation":s,classNames:m})}),Cr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Stepper.Step,{ref:n,...r})});Cr.displayName="Stepper.Step";const gc=Object.assign(Nr,{Step:Cr,Completed:p.Stepper.Completed});Nr.displayName="Stepper";const wc="Switch-module__root___Y5Ydi",Pc="Switch-module__track___7ObdZ",Tc="Switch-module__body___Sw9Wr",Sc="Switch-module__thumb___-FTeK",Rc="Switch-module__labelWrapper___YSOwx",jc="Switch-module__label___LrH7V",$c="Switch-module__thumbIconWrapper___sCY-1",Oc="Switch-module__checkIcon___ZBAQN",kc="Switch-module__closeIcon___bLLGw",Ic="Switch-module__groupRoot___-Uepi",_e={root:wc,track:Pc,body:Tc,thumb:Sc,labelWrapper:Rc,label:jc,thumbIconWrapper:$c,checkIcon:Oc,closeIcon:kc,groupRoot:Ic},Rt=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,className:P,style:R,children:T,readOnly:g,readOnlyComponent:y,emptyValueComponent:S,value:x,defaultValue:$,...L}=e,z=["size"],A=B(f(L,n),z),I=A;return o.jsx(ue,{className:P,style:R,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:n,labelElement:"div",formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,description:m,assistiveText:b,assistiveWithIcon:h,error:N,required:v,withAsterisk:w,id:C,readOnly:g&&!!y,readOnlyComponent:y,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:x!==void 0?x:$,readOnlyNativeProps:e,activeComponent:o.jsx(p.Switch.Group,{ref:t,...A,disabled:g||I.disabled,value:x,defaultValue:$,children:o.jsx("div",{className:_e.groupRoot,"data-layout":r,children:T})})})});Rt.displayName="SwitchGroup";const jt=i.forwardRef(function(e,t){const{overStyled:n=!1,readOnly:r,readOnlyComponent:s,disabled:l,thumbIcon:d,formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,...b}=e,h=["size","color","radius","variant"],N=B(f(b,n),h),v=N,w=D({root:_e.root,body:_e.body,track:_e.track,thumb:_e.thumb,trackLabel:_e.trackLabel,labelWrapper:_e.labelWrapper,label:_e.label},v.classNames),C=cn({},v.styles),P=v.className,R=P?`${_e.root} ${P}`:_e.root;if(r&&s){const y=!!(v.checked??v.defaultChecked),S=s,x=o.jsx(S,{...e,checked:y,label:v.label});return c?o.jsx(De,{formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,children:x}):o.jsx(o.Fragment,{children:x})}const T=o.jsxs("div",{className:_e.thumbIconWrapper,children:[o.jsx(p.CheckIcon,{className:_e.checkIcon}),o.jsx(p.CloseIcon,{className:_e.closeIcon})]}),g=o.jsx(p.Switch,{ref:t,...N,className:R,classNames:w,styles:C,disabled:r||l,"data-disabled":r||l||void 0,thumbIcon:Se(T,d)});return c?o.jsx(De,{formLayout:c,labelSize:u,controlMaxWidth:_,controlMinWidth:m,children:g}):g});jt.displayName="Switch";jt.Group=Rt;const Lc="Table-module__root___aMWWS",Mc="Table-module__sortIcon___V3-dH",Ko={root:Lc,sortIcon:Mc};function Ac(a){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:o.jsx("polyline",{points:"18 15 12 9 6 15"})})}function Wc(a){return o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,...a,children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})}const gr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r.className,l=Ko.root,d=s?`${l} ${s}`:l;return o.jsx(p.Table,{ref:n,...r,className:d})});gr.displayName="Table";const $t=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.Thead,{ref:n,...r})});$t.displayName="TableThead";const Ot=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.Tbody,{ref:n,...r})});Ot.displayName="TableTbody";const kt=i.forwardRef(function({overStyled:e=!1,selected:t=!1,disabled:n=!1,...r},s){const l=f(r,e);return o.jsx(p.Table.Tr,{ref:s,...l,"data-selected":t?"true":void 0,"data-disabled":n?"true":void 0})});kt.displayName="TableTr";const It=i.forwardRef(function({overStyled:e=!1,sorted:t=!1,disabled:n=!1,variant:r="default",children:s,...l},d){const c=f(l,e);return o.jsxs(p.Table.Th,{ref:d,...c,"data-sorted":t?"true":void 0,"data-disabled":n?"true":void 0,"data-currency":r==="currency"?"true":void 0,"aria-sort":t==="asc"?"ascending":t==="desc"?"descending":void 0,children:[s,t==="asc"&&o.jsx(Ac,{className:Ko.sortIcon}),t==="desc"&&o.jsx(Wc,{className:Ko.sortIcon})]})});It.displayName="TableTh";const Lt=i.forwardRef(function({overStyled:e=!1,disabled:t=!1,variant:n="default",...r},s){const l=f(r,e);return o.jsx(p.Table.Td,{ref:s,...l,"data-disabled":t?"true":void 0,"data-currency":n==="currency"?"true":void 0})});Lt.displayName="TableTd";const Mt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.Tfoot,{ref:n,...r})});Mt.displayName="TableTfoot";const At=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.Caption,{ref:n,...r})});At.displayName="TableCaption";const Wt=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Table.ScrollContainer,{ref:n,...r})});Wt.displayName="TableScrollContainer";const Be=gr;Be.Thead=$t;Be.Tbody=Ot;Be.Tr=kt;Be.Th=It;Be.Td=Lt;Be.Tfoot=Mt;Be.Caption=At;Be.ScrollContainer=Wt;const zc="Tabs-module__root___-VKVI",Dc="Tabs-module__list___qRVME",Ec="Tabs-module__tab___IdDYc",Fc="Tabs-module__tabSection___Es-nf",Bc="Tabs-module__panel___08i9c",xo={root:zc,list:Dc,tab:Ec,tabSection:Fc,panel:Bc},wr=i.forwardRef(function(e,t){const{variant:n="default",orientation:r="horizontal",overStyled:s=!1,className:l,...d}=e,c=f(d,s),u=c,_=D({list:xo.list,tab:xo.tab,tabSection:xo.tabSection,panel:xo.panel},u.classNames);return o.jsx(p.Tabs,{ref:t,...c,variant:n,orientation:r,className:`${xo.root} ${l||""}`,"data-variant":n,"data-orientation":r,classNames:_})});wr.displayName="Tabs";const Pr=i.forwardRef(function(e,t){const{overStyled:n=!1,...r}=e;return o.jsx(p.Tabs.List,{ref:t,...f(r,n)})});Pr.displayName="Tabs.List";const Tr=i.forwardRef(function(e,t){const{overStyled:n=!1,...r}=e;return o.jsx(p.Tabs.Tab,{ref:t,...f(r,n)})});Tr.displayName="Tabs.Tab";const Sr=i.forwardRef(function(e,t){const{overStyled:n=!1,...r}=e;return o.jsx(p.Tabs.Panel,{ref:t,...f(r,n)})});Sr.displayName="Tabs.Panel";const Uc=Object.assign(wr,{List:Pr,Tab:Tr,Panel:Sr}),Vc="Text-module__root___rsBo7",Hc={root:Vc},Rr=i.forwardRef(function({overStyled:e=!1,variant:t="body",emphasis:n="high",color:r="default",...s},l){const d=f(s,e),c=d.className,_=[`recursica_brand_typography_${t}`,Hc.root,c].filter(Boolean).join(" ");return o.jsx(p.Text,{ref:l,...d,"data-color":r,"data-emphasis":n,className:_})});Rr.displayName="Text";const Gc=p.createPolymorphicComponent(Rr),qc="TextArea-module__layoutOverride___4MCdm",Kc="TextArea-module__root___3dyeu",Yc="TextArea-module__input___8l36v",Oo={layoutOverride:qc,root:Kc,input:Yc},Zc=["size","variant","radius"],jr=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,...$}=e,L=B(f($,n),Zc),z=L,A=D({wrapper:Oo.root,input:Oo.input},z.classNames),I=C?`${Oo.layoutOverride} ${C}`:Oo.layoutOverride;return o.jsx(ue,{className:I,style:P,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:S!==void 0?S:x,readOnlyNativeProps:e,activeComponent:o.jsx(p.Textarea,{ref:t,...L,classNames:A,disabled:R,value:S,defaultValue:x,label:void 0,description:void 0,error:!!h,required:void 0,withAsterisk:void 0})})});jr.displayName="TextArea";const Xc="TextField-module__layoutOverride___SNZqc",Qc="TextField-module__root___2ZYkG",Jc="TextField-module__input___RL-My",ed="TextField-module__section___bCIJ0",bo={layoutOverride:Xc,root:Qc,input:Jc,section:ed},od=["size","variant","radius"],zt=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,...$}=e,L=B(f($,n),od),z=L,A=D({wrapper:bo.root,input:bo.input,section:bo.section},z.classNames),I=C?`${bo.layoutOverride} ${C}`:bo.layoutOverride;return o.jsx(ue,{className:I,style:P,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:S!==void 0?S:x,readOnlyNativeProps:e,activeComponent:o.jsx(p.Input,{ref:t,...L,classNames:A,disabled:R,value:S,defaultValue:x,wrapperProps:{"data-disabled":R?"true":void 0,"data-error":h?"true":void 0}})})});zt.displayName="TextField";const td=["size","variant","radius"],$r=i.forwardRef(function(e,t){const{overStyled:n=!1,className:r,disabled:s,error:l,...d}=e,c=B(f(d,n),td),u=c,_=D({wrapper:r?`${ee.root} ${r}`:ee.root,input:ee.input,section:ee.section,dropdown:ee.dropdown,option:ee.option},u.classNames);return o.jsx(p.Select,{ref:t,...c,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}}})});$r.displayName="BareDropdown";const nd="TimePicker-module__layoutOverride___zKo4Q",rd="TimePicker-module__root___BcvRu",ad="TimePicker-module__timeWrapper___hJVre",sd="TimePicker-module__timeInput___FQysn",ld="TimePicker-module__fieldsGroup___2yHhR",id="TimePicker-module__section___VkSWB",cd="TimePicker-module__timeField___twRZd",dd="TimePicker-module__amPmSelect___mSdvt",We={layoutOverride:nd,root:rd,timeWrapper:ad,timeInput:sd,fieldsGroup:ld,section:id,timeField:cd,amPmSelect:dd},ud=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Qt(a){if(!a)return;const e=parseInt(a.slice(0,2),10);return Number.isNaN(e)?void 0:e}function pd(a,e){return`${String(e).padStart(2,"0")}${a.slice(2)}`}function md(a){if(!a)return;const[e,t,n]=a.split(":"),r=parseInt(e,10);if(Number.isNaN(r)||t===void 0)return a;const s=r>=12,l=r%12===0?12:r%12,d=n!==void 0?`${t}:${n}`:t;return`${l}:${d} ${s?"PM":"AM"}`}function _d(a,e){var n;const t=(n=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value"))==null?void 0:n.set;t==null||t.call(a,e),a.dispatchEvent(new Event("change",{bubbles:!0}))}const fd=["size","variant","radius"],Or=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,className:C,style:P,disabled:R,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,value:S,defaultValue:x,onChange:$,withSeconds:L,minTime:z,maxTime:A,...I}=e,q=B(f(I,n),fd),H=q,[G,Z]=i.useState(()=>S??x);i.useEffect(()=>{S!==void 0&&Z(S)},[S]);const V=i.useRef(null);i.useEffect(()=>{Qt(S??x)===void 0&&V.current&&_d(V.current,"AM")},[]);const K=O=>{Z(O),$==null||$(O)},Q=Qt(G),ce=Q!==void 0&&Q>=12,M=O=>{K(O)},ne=O=>{if(Q===void 0||!G||!O)return;const ae=O==="PM";if(ae===ce)return;const fe=ae?Q+12:Q-12;K(pd(G,fe))},de=C?`${We.layoutOverride} ${C}`:We.layoutOverride;return o.jsx(ue,{className:de,style:P,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:n,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,onLabelEditClick:u,label:_,assistiveText:m,assistiveWithIcon:b,error:h,required:N,withAsterisk:v,id:w,readOnly:T,readOnlyComponent:g,emptyValueComponent:y,readOnlyType:"text",readOnlyValue:md(S!==void 0?S:x),readOnlyNativeProps:e,activeComponent:o.jsxs("div",{className:We.root,"data-disabled":R?"true":void 0,"data-error":h?"true":void 0,children:[o.jsx(Ho.TimePicker,{ref:t,...q,classNames:D({wrapper:We.timeWrapper,input:We.timeInput,section:We.section,fieldsGroup:We.fieldsGroup,field:We.timeField},H.classNames),disabled:R,value:G,onChange:M,format:"12h",withSeconds:L,min:z,max:A,withDropdown:!1,amPmRef:V}),o.jsx($r,{overStyled:!0,className:We.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:ud,value:ce?"PM":"AM",onChange:ne,disabled:R,error:!!h,"aria-label":"AM or PM"})]})})});Or.displayName="TimePicker";const yd="Timeline-module__root___LwRdZ",hd="Timeline-module__item___T5xdQ",vd="Timeline-module__itemBody___XAV-E",xd="Timeline-module__itemBullet___rPXCy",bd="Timeline-module__itemTitle___GgRRW",Nd="Timeline-module__itemContent___vurs-",Cd="Timeline-module__description___f9sxV",gd="Timeline-module__timestamp___owiRu",Xe={root:yd,item:hd,itemBody:vd,itemBullet:xd,itemTitle:bd,itemContent:Nd,description:Cd,timestamp:gd},Dt=i.forwardRef(function({overStyled:e=!1,timestamp:t,bulletVariant:n="default",children:r,...s},l){const d=f(s,e),c=d,u=D({item:Xe.item,itemBody:Xe.itemBody,itemContent:Xe.itemContent,itemBullet:Xe.itemBullet,itemTitle:Xe.itemTitle},c.classNames),_=t?o.jsxs(o.Fragment,{children:[r&&o.jsx("div",{className:Xe.description,children:r}),o.jsx("div",{className:Xe.timestamp,children:t})]}):r;return o.jsx(p.TimelineItem,{ref:l,...d,classNames:u,"data-variant":n,children:_})});Dt.displayName="TimelineItem";const kr=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e),s=r,l=D({root:Xe.root},s.classNames);return o.jsx(p.Timeline,{ref:n,...r,classNames:l})});kr.displayName="Timeline";const Ir=kr;Ir.Item=Dt;const wd="Toast-module__root___MUvfI",Pd="Toast-module__icon___VwvE1",Td="Toast-module__loader___8Gxd-",Sd="Toast-module__title___-H6R2",Rd="Toast-module__description___-QwfC",jd="Toast-module__closeButton___vGr7g",$d="Toast-module__body___VLkXA",ro={root:wd,icon:Pd,loader:Td,title:Sd,description:Rd,closeButton:jd,body:$d},Lr=i.forwardRef(function({overStyled:e=!1,variant:t="default",withCloseButton:n=!0,...r},s){const l=["color","radius","loading"],d=B(f(r,e),l),c=D({root:ro.root,body:ro.body,title:ro.title,description:ro.description,closeButton:ro.closeButton,icon:ro.icon,loader:ro.loader},d.classNames);return o.jsx(p.Notification,{ref:s,...d,withCloseButton:n,withBorder:!1,"data-variant":t,classNames:c,loading:!1})});Lr.displayName="Toast";const Od="Tooltip-module__tooltip___UA7H9",kd="Tooltip-module__arrow___4zROk",Jt={tooltip:Od,arrow:kd},Mr=function({overStyled:e=!1,withBeak:t=!0,position:n="top",arrowSize:r=16,...s}){const l=f(s,e),d=l,c=D({tooltip:Jt.tooltip,arrow:Jt.arrow},d.classNames),u=d.withArrow,_=t??u;return o.jsx(p.Tooltip,{...l,position:n,arrowSize:r,withArrow:_,multiline:!0,classNames:c})};Mr.displayName="Tooltip";const Et=i.forwardRef(function({overStyled:e=!1,...t},n){const r=f(t,e);return o.jsx(p.Tooltip.Floating,{ref:n,...r})});Et.displayName="TooltipFloating";const Ft=Mr;Ft.Floating=Et;Ft.Group=p.Tooltip.Group;const Id="TransferList-module__layoutOverride___nkb32",Ld="TransferList-module__root___ikjI7",Md="TransferList-module__panes___dtwkW",Ad="TransferList-module__pane___hy-kC",Wd="TransferList-module__paneHeader___HZrKX",zd="TransferList-module__paneSearch___Xji-g",Dd="TransferList-module__paneList___v0rcJ",Ed="TransferList-module__emptyState___azPw-",Fd="TransferList-module__transferColumn___3R2Ki",Bd="TransferList-module__chevron___l-KdI",be={layoutOverride:Id,root:Ld,panes:Md,pane:Ad,paneHeader:Wd,paneSearch:zd,paneList:Dd,emptyState:Ed,transferColumn:Fd,chevron:Bd};function en({direction:a}){return o.jsx("svg",{className:be.chevron,"data-direction":a,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M6 3l5 5-5 5"})})}function on({direction:a}){return o.jsx("svg",{className:be.chevron,"data-direction":a,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M3 3l5 5-5 5M9 3l5 5-5 5"})})}function Ud(a){const e={},t=[];return a.forEach(n=>{var r;n.group?(e[r=n.group]??(e[r]=[])).push(n):t.push(n)}),{groups:e,ungrouped:t}}const Ar=i.forwardRef(function(e,t){const{overStyled:n=!1,formLayout:r="stacked",labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,description:h,helperText:N,assistiveWithIcon:v,error:w,required:C,id:P,readOnly:R,readOnlyComponent:T,emptyValueComponent:g,data:y,defaultData:S,onChange:x,sourceLabel:$="Available",targetLabel:L="Selected",searchable:z=!0,searchPlaceholder:A="Filter items...",disabled:I=!1,className:q,style:H,...G}=e,Z=f(G,n),V=i.useId(),K=P||`recursica-transfer-list-${V}`,[Q,ce]=i.useState(()=>S??y??[[],[]]),M=y!==void 0?y:Q,ne=i.useCallback(U=>{y===void 0&&ce(U),x==null||x(U)},[y,x]),[de,O]=i.useState(""),[ae,fe]=i.useState(""),[re,se]=i.useState(()=>new Set),[ye,Ne]=i.useState(()=>new Set),Ue=i.useMemo(()=>{if(!de)return M[0];const U=de.toLowerCase();return M[0].filter(E=>E.label.toLowerCase().includes(U))},[M,de]),Ce=i.useMemo(()=>{if(!ae)return M[1];const U=ae.toLowerCase();return M[1].filter(E=>E.label.toLowerCase().includes(U))},[M,ae]),Ve=i.useCallback(()=>{if(re.size===0)return;const U=M[0].filter(W=>!re.has(W.value)),E=M[0].filter(W=>re.has(W.value));se(new Set),ne([U,[...M[1],...E]])},[M,re,ne]),Le=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));Ne(new Set),ne([[...M[0],...E],U])},[M,ye,ne]),Me=i.useCallback(()=>{M[0].length!==0&&(se(new Set),ne([[],[...M[1],...M[0]]]))},[M,ne]),eo=i.useCallback(()=>{M[1].length!==0&&(Ne(new Set),ne([[...M[0],...M[1]],[]]))},[M,ne]),ge=i.useCallback(U=>{se(E=>{const W=new Set(E);return W.has(U)?W.delete(U):W.add(U),W})},[]),He=i.useCallback(U=>{Ne(E=>{const W=new Set(E);return W.has(U)?W.delete(U):W.add(U),W})},[]),we=(U,E,W,k,F,Y,pe,qe)=>{const{groups:oo,ungrouped:j}=Ud(W),oe=Object.keys(oo).sort(),te=F.size>0?`${F.size} / ${k.length}`:`${k.length}`;return o.jsxs("div",{className:be.pane,"data-pane":U,children:[o.jsxs("div",{className:be.paneHeader,children:[o.jsx("span",{children:E}),o.jsx(vn,{children:te})]}),z&&o.jsx("div",{className:be.paneSearch,children:o.jsx(zt,{value:pe,onChange:X=>qe(X.currentTarget.value),placeholder:A,disabled:I,"aria-label":`Filter ${E.toLowerCase()}`})}),o.jsxs("div",{className:be.paneList,children:[W.length===0&&o.jsx("div",{className:be.emptyState,children:"No items"}),j.length>0&&o.jsx(go,{children:j.map(X=>o.jsx(wo,{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(go,{label:X,labelSize:"small",children:oo[X].map(me=>o.jsx(wo,{id:`${K}-${U}-${me.value}`,label:me.label,checked:F.has(me.value),onChange:()=>Y(me.value),disabled:I},me.value))},X))]})]})},Ge=q?`${be.layoutOverride} ${q}`:be.layoutOverride;return o.jsx(ue,{ref:t,formLayout:r,labelSize:s,labelAlignment:l,labelOptionalText:d,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:_,label:m,assistiveText:b,description:h,helperText:N,assistiveWithIcon:v,error:w,required:C,id:K,className:Ge,style:H,overStyled:n,readOnly:R,readOnlyComponent:T,emptyValueComponent:g,readOnlyType:"text",readOnlyValue:M[1].map(U=>U.label),readOnlyNativeProps:e,activeComponent:o.jsx("div",{...Z,className:be.root,"data-disabled":I?"true":void 0,"data-error":w?"true":void 0,children:o.jsxs("div",{className:be.panes,children:[we("source",$,Ue,M[0],re,ge,de,O),o.jsxs("div",{className:be.transferColumn,children:[o.jsx($e,{variant:"outline",size:"small",icon:o.jsx(on,{direction:"right"}),"aria-label":`Move all to ${L}`,disabled:I||M[0].length===0,onClick:Me}),o.jsx($e,{variant:"outline",size:"small",icon:o.jsx(en,{direction:"right"}),"aria-label":`Move selected to ${L}`,disabled:I||re.size===0,onClick:Ve}),o.jsx($e,{variant:"outline",size:"small",icon:o.jsx(en,{direction:"left"}),"aria-label":`Move selected to ${$}`,disabled:I||ye.size===0,onClick:Le}),o.jsx($e,{variant:"outline",size:"small",icon:o.jsx(on,{direction:"left"}),"aria-label":`Move all to ${$}`,disabled:I||M[1].length===0,onClick:eo})]}),we("target",L,Ce,M[1],ye,He,ae,fe)]})})})});Ar.displayName="TransferList";const Vd="Tree-module__root___ANcH3",Hd="Tree-module__subtree___KoLT8",Gd="Tree-module__node___Hvnjg",qd="Tree-module__row___sq5ff",Kd="Tree-module__label___zJDit",Yd="Tree-module__expandButton___W0WTT",Zd="Tree-module__expandGlyph___w8dDQ",Je={root:Vd,subtree:Hd,node:Gd,row:qd,label:Kd,expandButton:Yd,expandGlyph:Zd};function Xd(){return o.jsx("svg",{className:Je.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 Qd(a){return function({node:t,hasChildren:n,expanded:r,selected:s,tree:l,elementProps:d}){return o.jsxs("div",{...d,className:Je.row,"data-has-children":n||void 0,"data-expanded":n&&r?!0:void 0,children:[o.jsx($e,{overStyled:!0,variant:"text",size:"small",icon:o.jsx(Xd,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:Je.expandButton,onMouseDown:c=>c.preventDefault(),onClick:c=>{c.stopPropagation(),!a&&l.toggleExpanded(t.value)}}),o.jsx("span",{className:Je.label,"data-selected":s||void 0,children:t.label})]})}}const Wr=i.forwardRef(function({overStyled:e=!1,data:t,initialExpandedValues:n,initialSelectedValues:r,multiple:s=!1,disabled:l=!1,onNodeExpand:d,onNodeCollapse:c,onSelectedChange:u,..._},m){const b=f(_,e),h=p.useTree({initialExpandedState:n?p.getTreeExpandedState(t,n):void 0,initialSelectedState:r,multiple:s,onNodeExpand:d,onNodeCollapse:c});i.useEffect(()=>{u==null||u(h.selectedState)},[h.selectedState,u]);const N=i.useRef(null);i.useEffect(()=>{const R=N.current;if(!R)return;const T=g=>{if(l||g.key!=="Enter"&&g.key!==" ")return;const y=g.target.closest('[role="treeitem"]'),S=y==null?void 0:y.dataset.value;S&&(g.preventDefault(),h.select(S))};return R.addEventListener("keydown",T),()=>R.removeEventListener("keydown",T)},[h.select,l]),i.useEffect(()=>{const R=N.current;if(!R||!l)return;const T=g=>{g.preventDefault(),g.stopPropagation()};return R.addEventListener("keydown",T,{capture:!0}),()=>R.removeEventListener("keydown",T,{capture:!0})},[l]);const v=nn.useMergedRef(m,N),w=b,C=w.className,P=C?`${Je.root} ${C}`:Je.root;return o.jsx(p.Tree,{ref:v,...b,data:t,tree:h,expandOnClick:!1,selectOnClick:!l,expandOnSpace:!1,renderNode:Qd(l),"data-disabled":l||void 0,classNames:D({root:P,node:Je.node,subtree:Je.subtree},w.classNames)})});Wr.displayName="Tree";function tn(a,e){var n;const t=(n=a[e])==null?void 0:n.$value;if(t!==void 0){if(typeof t!="number"||!Number.isFinite(t)||t<0)throw new Error(`layout-grid ${e} must be a non-negative number, got ${String(t)}`);return t}}function Jd(a){var r;const e=((r=a.brand)==null?void 0:r["layout-grids"])??{},t=[];let n;for(const[s,l]of Object.entries(e)){if(s==="default")continue;const d=tn(l,"min-width"),c=tn(l,"max-width");if(d===void 0&&c===void 0)throw new Error(`layout-grid "${s}" has neither min-width nor max-width`);c!==void 0&&(n===void 0||c>n)&&(n=c),t.push([s,d??0])}if(t.length>0){if(n===void 0)throw new Error('Cannot place the "default" layout-grid: no other grid has a max-width to start after');t.push(["default",n+1])}return Object.fromEntries(t.sort((s,l)=>s[1]-l[1]).map(([s,l])=>[s,`${l}px`]))}exports.Accordion=Wo;exports.AccordionControl=Mo;exports.AccordionItem=ot;exports.AccordionPanel=Ao;exports.AssistiveElement=Io;exports.AutoComplete=fn;exports.Avatar=Fa;exports.Badge=vn;exports.Breadcrumb=xn;exports.Button=$e;exports.Card=as;exports.CardContent=it;exports.CardFooter=lt;exports.CardHeader=st;exports.CardSection=at;exports.Checkbox=wo;exports.CheckboxGroup=go;exports.Chip=Po;exports.Container=wn;exports.DatePicker=Pn;exports.Dropdown=Tn;exports.EmptyValueRenderer=Co;exports.FileInput=Sn;exports.FileUpload=Rn;exports.Flex=ml;exports.FormControlLayout=De;exports.Group=Mn;exports.Heading=An;exports.HoverCard=ct;exports.IS_DEV=Oe;exports.Label=tt;exports.Layer=Yo;exports.LayoutGrid=Ln;exports.LayoutGridCol=In;exports.Link=Ol;exports.Loader=rt;exports.Menu=ao;exports.Modal=Fe;exports.NumberInput=rr;exports.Pagination=ke;exports.Panel=Ie;exports.PanelBody=wt;exports.PanelCloseButton=gt;exports.PanelContent=bt;exports.PanelFooter=ht;exports.PanelHeader=Nt;exports.PanelOverlay=xt;exports.PanelRoot=vt;exports.PanelTitle=Ct;exports.Popover=Pt;exports.RECURSICA_COMPONENTS=Vr;exports.Radio=St;exports.RadioGroup=Tt;exports.ReadOnlyBooleanField=hr;exports.ReadOnlyField=nt;exports.ReadOnlySwitchField=yr;exports.ReadOnlyTextField=No;exports.RecursicaManifestContext=Qo;exports.RecursicaThemeProvider=Ur;exports.SegmentedControl=Bi;exports.Slider=xr;exports.Stack=lc;exports.Stepper=gc;exports.Switch=jt;exports.SwitchGroup=Rt;exports.Table=Be;exports.TableCaption=At;exports.TableScrollContainer=Wt;exports.TableTbody=Ot;exports.TableTd=Lt;exports.TableTfoot=Mt;exports.TableTh=It;exports.TableThead=$t;exports.TableTr=kt;exports.Tabs=Uc;exports.Text=Gc;exports.TextArea=jr;exports.TextField=zt;exports.TimePicker=Or;exports.Timeline=Ir;exports.TimelineItem=Dt;exports.Toast=Lr;exports.Tooltip=Ft;exports.TooltipFloating=Et;exports.TransferList=Ar;exports.Tree=Wr;exports.WithReadOnlyWrapper=ue;exports.breakpointsFromRecManifest=Jd;exports.copyToClipboard=Hr;exports.fileMatchesAccept=Jo;exports.injectOverStyledStyles=Zo;exports.isGlobalOverStyledActive=Br;exports.markCurrentPageItem=sn;exports.mergeClassNames=D;exports.mergeStyles=cn;exports.normalizeComboboxData=et;exports.omitUnsupportedProps=B;exports.registerOverStyledConsoleCommand=Xo;exports.toggleGlobalOverStyled=rn;exports.useGlobalOverStyled=an;exports.useRecursicaManifest=ln;exports.withCallerOverride=Se;exports.wrapComponent=un;
|
|
12
12
|
//# sourceMappingURL=adapter-mantine-v8.cjs.map
|