@recursica/mantine-adapter 0.55.0 → 0.55.2

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