@recursica/mantine-adapter 0.36.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +3 -3
  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 +2352 -2099
  7. package/dist/mantine-adapter.js.map +1 -1
  8. package/dist/src/components/Dropdown/BareDropdown.d.ts +19 -0
  9. package/dist/src/components/TimePicker/TimePicker.d.ts +9 -3
  10. package/dist/src/components/Tree/Tree.d.ts +5 -0
  11. package/dist/src/index.d.ts +1 -1
  12. package/docs/PHILOSOPHY.md +39 -0
  13. package/package.json +3 -2
  14. package/src/components/Accordion/USAGE.md +2 -41
  15. package/src/components/AutoComplete/USAGE.md +2 -18
  16. package/src/components/Avatar/USAGE.md +0 -27
  17. package/src/components/Badge/USAGE.md +3 -6
  18. package/src/components/Breadcrumb/USAGE.md +1 -5
  19. package/src/components/Button/Button.tsx +5 -0
  20. package/src/components/Button/IMPLEMENTATION_NOTES.md +8 -0
  21. package/src/components/Button/USAGE.md +5 -25
  22. package/src/components/Card/USAGE.md +4 -12
  23. package/src/components/Checkbox/USAGE.md +4 -20
  24. package/src/components/Chip/USAGE.md +3 -32
  25. package/src/components/DatePicker/USAGE.md +2 -12
  26. package/src/components/Dropdown/BareDropdown.tsx +85 -0
  27. package/src/components/Dropdown/Dropdown.tsx +12 -3
  28. package/src/components/Dropdown/USAGE.md +2 -6
  29. package/src/components/Flex/USAGE.md +1 -1
  30. package/src/components/FormControlWrapper/USAGE.md +3 -31
  31. package/src/components/Grid/USAGE.md +1 -1
  32. package/src/components/Group/USAGE.md +1 -1
  33. package/src/components/HoverCard/USAGE.md +3 -72
  34. package/src/components/Label/USAGE.md +8 -48
  35. package/src/components/Link/USAGE.md +4 -10
  36. package/src/components/Loader/USAGE.md +4 -23
  37. package/src/components/Menu/USAGE.md +3 -73
  38. package/src/components/Modal/USAGE.md +3 -3
  39. package/src/components/NumberInput/USAGE.md +5 -8
  40. package/src/components/Pagination/USAGE.md +0 -19
  41. package/src/components/Panel/USAGE.md +6 -95
  42. package/src/components/Popover/USAGE.md +6 -66
  43. package/src/components/ReadOnlyField/USAGE.md +2 -10
  44. package/src/components/SegmentedControl/USAGE.md +1 -15
  45. package/src/components/Slider/USAGE.md +1 -45
  46. package/src/components/Stack/USAGE.md +1 -1
  47. package/src/components/Switch/USAGE.md +1 -24
  48. package/src/components/TextArea/USAGE.md +2 -2
  49. package/src/components/TextField/USAGE.md +1 -17
  50. package/src/components/TimePicker/TIMEPICKER_IMPLEMENTATION_NOTES.md +72 -0
  51. package/src/components/TimePicker/TimePicker.module.css +225 -41
  52. package/src/components/TimePicker/TimePicker.stories.tsx +105 -4
  53. package/src/components/TimePicker/TimePicker.tsx +287 -7
  54. package/src/components/TimePicker/USAGE.md +23 -2
  55. package/src/components/Timeline/USAGE.md +2 -10
  56. package/src/components/Toast/USAGE.md +3 -33
  57. package/src/components/Tooltip/USAGE.md +7 -51
  58. package/src/components/Tree/IMPLEMENTATION_NOTES.md +31 -3
  59. package/src/components/Tree/Tree.module.css +84 -40
  60. package/src/components/Tree/Tree.stories.tsx +13 -0
  61. package/src/components/Tree/Tree.tsx +116 -27
  62. package/src/components/Tree/USAGE.md +18 -1
  63. package/src/index.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @recursica/mantine-adapter
2
2
 
3
+ ## 0.38.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8322c0a: Updated Tree component
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [8322c0a]
12
+ - @recursica/adapter-common@0.14.0
13
+
14
+ ## 0.37.0
15
+
16
+ ### Minor Changes
17
+
18
+ - a4a45ff: Implement `TimePicker` (previously a stub) in both adapters, using `@mantine/dates`'s own `TimePicker` and `@mui/x-date-pickers`'s `TimePicker` respectively. Defaults to 12-hour format with a dedicated AM/PM selector (Recursica-specific); pass the new `hideAmPm` prop for a plain 24-hour input.
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [a4a45ff]
23
+ - @recursica/adapter-common@0.13.1
24
+
25
+ ## 0.36.1
26
+
27
+ ### Patch Changes
28
+
29
+ - 5c10166: Split shared contributor docs (`COMPONENT_DEV_GUIDE.md`, `COMPONENT_STORYBOOK_GUIDE.md`) into a canonical version in `adapter-common` plus thin per-adapter deltas, and publish `docs/PHILOSOPHY.md` to npm.
30
+
3
31
  ## 0.36.0
4
32
 
5
33
  ### Minor Changes
package/README.md CHANGED
@@ -28,10 +28,10 @@ Please read [PHILOSOPHY.md](./docs/PHILOSOPHY.md) to understand the core princip
28
28
 
29
29
  ## Developer & AI Guidelines
30
30
 
31
- This repository provides dedicated routing documents for both human developers and AI Agents to ensure strict adherence to our design system constraints.
31
+ This repository provides dedicated routing documents for both human developers and AI Agents to ensure strict adherence to our design system constraints. These are contributor-facing docs that live in the [recursica monorepo](https://github.com/borderux/recursica) rather than in this published package, so they're linked here as GitHub URLs rather than relative paths.
32
32
 
33
- - **For Human Developers:** This `README.md` acts as your primary routing document. If you are integrating this library into an application, please read [USAGE.md](./USAGE.md). If you are building or modifying components inside this library, please read [CONTRIBUTING.md](./CONTRIBUTING.md).
34
- - **For AI Agents:** All AI Agents operating in this repository must start by reading [AGENT.md](./AGENT.md), which serves as the primary routing document for AI workflows.
33
+ - **For Human Developers:** This `README.md` acts as your primary routing document. If you are integrating this library into an application, please read [USAGE.md](./USAGE.md) (published alongside this README). If you are building or modifying components inside this library, please read [CONTRIBUTING.md](https://github.com/borderux/recursica/blob/main/packages/mantine-adapter/CONTRIBUTING.md).
34
+ - **For AI Agents:** All AI Agents operating in the monorepo must start by reading [AGENT.md](https://github.com/borderux/recursica/blob/main/packages/mantine-adapter/AGENT.md), which serves as the primary routing document for AI workflows.
35
35
 
36
36
  ## Development and Architecture
37
37
 
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),m=require("react"),u=require("@mantine/core"),Rs=require("@mantine/dates");var Je=typeof document<"u"?document.currentScript:null;const As=["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"],Ao=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Fe={"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 We(n){const e={...n};for(const[s,t]of Object.entries(e))typeof t=="string"&&t.startsWith("rec-")&&Ao.has(s)&&t in Fe&&(e[s]=Fe[t]);return e}function f(n,e){if(e)return n;const s={...n};for(const t of As)t in s&&delete s[t];for(const[t,o]of Object.entries(s))typeof o=="string"&&o.startsWith("rec-")&&Ao.has(t)&&o in Fe&&(s[t]=Fe[o]);return s}const Os="Accordion-module__root___Dem6d",Ls="Accordion-module__item___7ryVk",Is="Accordion-module__noDivider___Ni2tT",Ws="Accordion-module__control___b4wgX",Ms="Accordion-module__label___Ss7uW",ks="Accordion-module__icon___xfHxX",zs="Accordion-module__chevron___i-HVZ",Bs="Accordion-module__iconLeftWrapper___5oLen",Es="Accordion-module__panel___Wx50w",Fs="Accordion-module__content___PEM9t",oe={root:Os,item:Ls,noDivider:Is,control:Ws,label:Ms,icon:ks,chevron:zs,iconLeftWrapper:Bs,panel:Es,content:Fs},Oo=function({variant:e="unstyled",overStyled:s=!1,...t}){const o=f(t,s),a={root:oe.root,item:oe.item,control:oe.control,label:oe.label,chevron:oe.chevron,icon:oe.icon,panel:oe.panel,content:oe.content},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const c=l;Object.keys(c).forEach(d=>{a[d]?a[d]=`${a[d]} ${c[d]}`:a[d]=c[d]})}const i=o.className;return r.jsx(u.Accordion,{variant:e,className:i,classNames:a,...o})};Oo.displayName="Accordion";const oo=m.forwardRef(function({title:e,leftIcon:s,divider:t=!0,children:o,overStyled:a=!1,...l},i){const c=f(l,a),d=c.className,p=[t?void 0:oe.noDivider,d].filter(Boolean).join(" ")||void 0;return r.jsx(u.Accordion.Item,{ref:i,className:p,...c,children:e?r.jsxs(r.Fragment,{children:[r.jsx(He,{leftIcon:s,children:e}),r.jsx(qe,{children:o})]}):o})});oo.displayName="AccordionItem";const He=m.forwardRef(function({leftIcon:e,children:s,overStyled:t=!1,...o},a){const l=f(o,t),i=l.className;return r.jsx(u.Accordion.Control,{ref:a,className:i,icon:e?r.jsx("span",{className:oe.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...l,children:s})});He.displayName="AccordionControl";const qe=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx(u.Accordion.Panel,{ref:t,className:a,...o})});qe.displayName="AccordionPanel";const Ue=Oo;Ue.Item=oo;Ue.Control=He;Ue.Panel=qe;const Ds="AssistiveElement-module__root___WhQ43",Gs="AssistiveElement-module__textWrapper___sfy5E",Vs="AssistiveElement-module__iconWrapper___gObRF",Qe={root:Ds,textWrapper:Gs,iconWrapper:Vs},Hs=()=>r.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:[r.jsx("circle",{cx:"12",cy:"12",r:"10"}),r.jsx("path",{d:"M12 16v-4"}),r.jsx("path",{d:"M12 8h.01"})]}),qs=()=>r.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:[r.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"}),r.jsx("path",{d:"M12 9v4"}),r.jsx("path",{d:"M12 17h.01"})]}),De=m.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:s=!0,children:t,className:o,overStyled:a=!1,...l},i){const d=f(l,a),p=Qe.root,_=o?`${p} ${o}`:p,$=e==="error"?qs:Hs;return r.jsxs("div",{ref:i,className:_,"data-variant":e,style:d.style,...d,children:[s&&r.jsx("span",{className:Qe.iconWrapper,children:r.jsx($,{})}),r.jsx("span",{className:Qe.textWrapper,children:t})]})});De.displayName="AssistiveElement";const Us="Label-module__root___e6HXZ",Ys="Label-module__labelText___rieFR",Ks="Label-module__required___Ggrzc",Zs="Label-module__optionalText___Y2yun",Xs="Label-module__actionAreaWrapper___ELoZK",Js="Label-module__editIconWrapper___NG2xW",Z={root:Us,labelText:Ys,required:Ks,optionalText:Zs,actionAreaWrapper:Xs,editIconWrapper:Js},to=m.forwardRef(function({labelSize:e="default",labelAlignment:s,required:t=!1,labelOptionalText:o,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:i,children:c,overStyled:d=!1,...p},_){const $=s||"left";let b;t||(o===!0?b="optional":o&&(b=o));const y=f(p,d),N=y,P={label:Z.root,required:Z.required},C=N.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const R=C;P.label=R.label?`${Z.root} ${R.label}`:Z.root,P.required=R.required?`${Z.required} ${R.required}`:Z.required}const x=N.className,h=x?`${Z.root} ${x}`:Z.root;return r.jsxs(u.Input.Label,{ref:_,className:h,classNames:P,"data-size":e,"data-alignment":$,required:t&&!a,...y,children:[r.jsx("span",{className:Z.labelText,children:c}),b&&r.jsx("span",{className:Z.optionalText,children:typeof b=="string"?`(${b})`:b}),l?r.jsx("span",{className:Z.actionAreaWrapper,children:l}):a?r.jsx("button",{type:"button",className:Z.editIconWrapper,"data-replaces-asterisk":t?"true":void 0,onClick:i,"aria-label":"Edit",children:r.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.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]})});to.displayName="Label";const Qs="FormControlLayout-module__root___yNDhZ",er="FormControlLayout-module__leftSection___GBM1r",or="FormControlLayout-module__rightSection___bcL4v",ze={root:Qs,leftSection:er,rightSection:or},le=m.forwardRef(function({formLayout:e="stacked",labelSize:s="default",controlMaxWidth:t,controlMinWidth:o,leftSection:a,children:l,className:i,style:c,...d},p){const _=i?`${ze.root} ${i}`:ze.root,b=a!=null||e==="side-by-side";return r.jsxs("div",{ref:p,className:_,"data-form-layout":e,style:{...c,...t?{"--form-control-max-width":t}:{},...o?{"--form-control-min-width":o}:{}},...d,children:[b&&r.jsx("div",{className:ze.leftSection,"data-size":s,children:a}),r.jsx("div",{className:ze.rightSection,children:l})]})});le.displayName="FormControlLayout";const tr="FormControlWrapper-module__root___c-UHo",sr="FormControlWrapper-module__inputSection___HenXk",To={root:tr,inputSection:sr},Ge=m.forwardRef(function({formLayout:e,labelSize:s,labelAlignment:t,labelOptionalText:o,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:i,label:c,description:d,assistiveText:p,assistiveWithIcon:_=!0,controlMaxWidth:$,controlMinWidth:b,error:y,required:N,withAsterisk:P,id:C,children:x,className:h,overStyled:R=!1,labelElement:v,...W},A){const S=m.useId(),O=C||`recursica-fc-${S}`,L=p||d,T=L?`${O}-assistive`:void 0,g=y?`${O}-error`:void 0,z=f(W,R),j=h||z.className,Ne=To.root,he=j?`${Ne} ${j}`:Ne,U=m.isValidElement(x)?m.cloneElement(x,{...L&&!x.props["aria-describedby"]?{"aria-describedby":T}:{},...y&&!x.props["aria-errormessage"]?{"aria-errormessage":g}:{}}):x,Ze=c?r.jsx(to,{id:O,labelAlignment:t,labelOptionalText:o,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:i,required:P??N,...v==="div"?{as:"div"}:{},children:c}):void 0;return r.jsx(le,{ref:A,className:he,formLayout:e,labelSize:s,controlMaxWidth:$,controlMinWidth:b,leftSection:Ze,...z,children:r.jsxs("div",{className:To.inputSection,children:[U,y&&r.jsx(De,{id:g,assistiveVariant:"error",assistiveWithIcon:_,children:y}),!y&&L&&r.jsx(De,{id:T,assistiveVariant:"help",assistiveWithIcon:_,children:L})]})})});Ge.displayName="FormControlWrapper";const rr="_root_1qhn7_3",ar="_contents_1qhn7_18",ge={root:rr,contents:ar},so=m.forwardRef(function({layer:n,contentsOnly:e,children:s,className:t,style:o,...a},l){const i=e?t?`${ge.root} ${ge.contents} ${t}`:`${ge.root} ${ge.contents}`:t?`${ge.root} ${t}`:ge.root;return r.jsx("div",{ref:l,className:i,style:o,...e?{}:{"data-recursica-layer":String(n)},...a,children:s})});so.displayName="Layer";const Ie=({emptyText:n="N/A"})=>r.jsx(m.Fragment,{children:n});Ie.displayName="EmptyValueRenderer";Ie.check=n=>n==null||n===""||Array.isArray(n)&&n.length===0;const nr={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"},be=(()=>{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:Je&&Je.tagName.toUpperCase()==="SCRIPT"&&Je.src||new URL("mantine-adapter.cjs",document.baseURI).href}&&nr)return!0}catch{}if(typeof window<"u"){const n=window.location.hostname;return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")}return!1})(),eo=new Set;let ye=!1;function Lo(n){if(!be)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(ye=n!==void 0?n:!ye,typeof document<"u"){const e=document.documentElement,s=ye?"0 0 0 2px cyan":"none";e.style.setProperty("--recursica-over-styled-shadow",s),console.log(`[Recursica] Highlight outlines toggled: ${ye?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return eo.forEach(e=>e()),ye}function lr(){return be&&ye}function Io(){const[n,e]=m.useState(ye);return m.useEffect(()=>{if(!be)return;ro(),ao();const s=()=>e(ye);return eo.add(s),()=>{eo.delete(s)}},[]),be&&n}function ro(){if(!be)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const n="recursica-over-styled-styles";let e=document.getElementById(n);e||(e=document.createElement("style"),e.id=n,e.textContent=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("react"),m=require("@mantine/core"),zo=require("@mantine/dates"),Ir=require("@mantine/hooks");var ao=typeof document<"u"?document.currentScript:null;const Wr=["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"],Eo=new Set(["m","my","mx","mt","mb","ml","mr","gap","rowGap","columnGap","top","left","bottom","right"]),Ke={"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 Be(n){const e={...n};for(const[r,t]of Object.entries(e))typeof t=="string"&&t.startsWith("rec-")&&Eo.has(r)&&t in Ke&&(e[r]=Ke[t]);return e}function f(n,e){if(e)return n;const r={...n};for(const t of Wr)t in r&&delete r[t];for(const[t,o]of Object.entries(r))typeof o=="string"&&o.startsWith("rec-")&&Eo.has(t)&&o in Ke&&(r[t]=Ke[o]);return r}const zr="Accordion-module__root___Dem6d",Er="Accordion-module__item___7ryVk",Br="Accordion-module__noDivider___Ni2tT",Fr="Accordion-module__control___b4wgX",Dr="Accordion-module__label___Ss7uW",Gr="Accordion-module__icon___xfHxX",Vr="Accordion-module__chevron___i-HVZ",Hr="Accordion-module__iconLeftWrapper___5oLen",qr="Accordion-module__panel___Wx50w",Ur="Accordion-module__content___PEM9t",ae={root:zr,item:Er,noDivider:Br,control:Fr,label:Dr,icon:Gr,chevron:Vr,iconLeftWrapper:Hr,panel:qr,content:Ur},Bo=function({variant:e="unstyled",overStyled:r=!1,...t}){const o=f(t,r),a={root:ae.root,item:ae.item,control:ae.control,label:ae.label,chevron:ae.chevron,icon:ae.icon,panel:ae.panel,content:ae.content},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const c=l;Object.keys(c).forEach(d=>{a[d]?a[d]=`${a[d]} ${c[d]}`:a[d]=c[d]})}const i=o.className;return s.jsx(m.Accordion,{variant:e,className:i,classNames:a,...o})};Bo.displayName="Accordion";const io=u.forwardRef(function({title:e,leftIcon:r,divider:t=!0,children:o,overStyled:a=!1,...l},i){const c=f(l,a),d=c.className,p=[t?void 0:ae.noDivider,d].filter(Boolean).join(" ")||void 0;return s.jsx(m.Accordion.Item,{ref:i,className:p,...c,children:e?s.jsxs(s.Fragment,{children:[s.jsx(Xe,{leftIcon:r,children:e}),s.jsx(Je,{children:o})]}):o})});io.displayName="AccordionItem";const Xe=u.forwardRef(function({leftIcon:e,children:r,overStyled:t=!1,...o},a){const l=f(o,t),i=l.className;return s.jsx(m.Accordion.Control,{ref:a,className:i,icon:e?s.jsx("span",{className:ae.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,...l,children:r})});Xe.displayName="AccordionControl";const Je=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx(m.Accordion.Panel,{ref:t,className:a,...o})});Je.displayName="AccordionPanel";const eo=Bo;eo.Item=io;eo.Control=Xe;eo.Panel=Je;const Kr="AssistiveElement-module__root___WhQ43",Yr="AssistiveElement-module__textWrapper___sfy5E",Zr="AssistiveElement-module__iconWrapper___gObRF",no={root:Kr,textWrapper:Yr,iconWrapper:Zr},Qr=()=>s.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:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M12 16v-4"}),s.jsx("path",{d:"M12 8h.01"})]}),Xr=()=>s.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:[s.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"}),s.jsx("path",{d:"M12 9v4"}),s.jsx("path",{d:"M12 17h.01"})]}),Ye=u.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:r=!0,children:t,className:o,overStyled:a=!1,...l},i){const d=f(l,a),p=no.root,_=o?`${p} ${o}`:p,v=e==="error"?Xr:Qr;return s.jsxs("div",{ref:i,className:_,"data-variant":e,style:d.style,...d,children:[r&&s.jsx("span",{className:no.iconWrapper,children:s.jsx(v,{})}),s.jsx("span",{className:no.textWrapper,children:t})]})});Ye.displayName="AssistiveElement";const Jr="Label-module__root___e6HXZ",es="Label-module__labelText___rieFR",os="Label-module__required___Ggrzc",ts="Label-module__optionalText___Y2yun",rs="Label-module__actionAreaWrapper___ELoZK",ss="Label-module__editIconWrapper___NG2xW",Q={root:Jr,labelText:es,required:os,optionalText:ts,actionAreaWrapper:rs,editIconWrapper:ss},co=u.forwardRef(function({labelSize:e="default",labelAlignment:r,required:t=!1,labelOptionalText:o,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:i,children:c,overStyled:d=!1,...p},_){const v=r||"left";let y;t||(o===!0?y="optional":o&&(y=o));const b=f(p,d),h=b,w={label:Q.root,required:Q.required},C=h.classNames;if(C&&typeof C=="object"&&!Array.isArray(C)){const T=C;w.label=T.label?`${Q.root} ${T.label}`:Q.root,w.required=T.required?`${Q.required} ${T.required}`:Q.required}const $=h.className,N=$?`${Q.root} ${$}`:Q.root;return s.jsxs(m.Input.Label,{ref:_,className:N,classNames:w,"data-size":e,"data-alignment":v,required:t&&!a,...b,children:[s.jsx("span",{className:Q.labelText,children:c}),y&&s.jsx("span",{className:Q.optionalText,children:typeof y=="string"?`(${y})`:y}),l?s.jsx("span",{className:Q.actionAreaWrapper,children:l}):a?s.jsx("button",{type:"button",className:Q.editIconWrapper,"data-replaces-asterisk":t?"true":void 0,onClick:i,"aria-label":"Edit",children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.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]})});co.displayName="Label";const as="FormControlLayout-module__root___yNDhZ",ns="FormControlLayout-module__leftSection___GBM1r",ls="FormControlLayout-module__rightSection___bcL4v",He={root:as,leftSection:ns,rightSection:ls},pe=u.forwardRef(function({formLayout:e="stacked",labelSize:r="default",controlMaxWidth:t,controlMinWidth:o,leftSection:a,children:l,className:i,style:c,...d},p){const _=i?`${He.root} ${i}`:He.root,y=a!=null||e==="side-by-side";return s.jsxs("div",{ref:p,className:_,"data-form-layout":e,style:{...c,...t?{"--form-control-max-width":t}:{},...o?{"--form-control-min-width":o}:{}},...d,children:[y&&s.jsx("div",{className:He.leftSection,"data-size":r,children:a}),s.jsx("div",{className:He.rightSection,children:l})]})});pe.displayName="FormControlLayout";const is="FormControlWrapper-module__root___c-UHo",cs="FormControlWrapper-module__inputSection___HenXk",Oo={root:is,inputSection:cs},Ze=u.forwardRef(function({formLayout:e,labelSize:r,labelAlignment:t,labelOptionalText:o,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:i,label:c,description:d,assistiveText:p,assistiveWithIcon:_=!0,controlMaxWidth:v,controlMinWidth:y,error:b,required:h,withAsterisk:w,id:C,children:$,className:N,overStyled:T=!1,labelElement:x,...L},j){const A=u.useId(),O=C||`recursica-fc-${A}`,M=p||d,g=M?`${O}-assistive`:void 0,S=b?`${O}-error`:void 0,W=f(L,T),R=N||W.className,Z=Oo.root,te=R?`${Z} ${R}`:Z,D=u.isValidElement($)?u.cloneElement($,{...M&&!$.props["aria-describedby"]?{"aria-describedby":g}:{},...b&&!$.props["aria-errormessage"]?{"aria-errormessage":S}:{}}):$,Re=c?s.jsx(co,{id:O,labelAlignment:t,labelOptionalText:o,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:i,required:w??h,...x==="div"?{as:"div"}:{},children:c}):void 0;return s.jsx(pe,{ref:j,className:te,formLayout:e,labelSize:r,controlMaxWidth:v,controlMinWidth:y,leftSection:Re,...W,children:s.jsxs("div",{className:Oo.inputSection,children:[D,b&&s.jsx(Ye,{id:S,assistiveVariant:"error",assistiveWithIcon:_,children:b}),!b&&M&&s.jsx(Ye,{id:g,assistiveVariant:"help",assistiveWithIcon:_,children:M})]})})});Ze.displayName="FormControlWrapper";const ds="_root_1qhn7_3",ps="_contents_1qhn7_18",Ae={root:ds,contents:ps},po=u.forwardRef(function({layer:n,contentsOnly:e,children:r,className:t,style:o,...a},l){const i=e?t?`${Ae.root} ${Ae.contents} ${t}`:`${Ae.root} ${Ae.contents}`:t?`${Ae.root} ${t}`:Ae.root;return s.jsx("div",{ref:l,className:i,style:o,...e?{}:{"data-recursica-layer":String(n)},...a,children:r})});po.displayName="Layer";const Ee=({emptyText:n="N/A"})=>s.jsx(u.Fragment,{children:n});Ee.displayName="EmptyValueRenderer";Ee.check=n=>n==null||n===""||Array.isArray(n)&&n.length===0;const us={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"},Ce=(()=>{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:ao&&ao.tagName.toUpperCase()==="SCRIPT"&&ao.src||new URL("mantine-adapter.cjs",document.baseURI).href}&&us)return!0}catch{}if(typeof window<"u"){const n=window.location.hostname;return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")}return!1})(),lo=new Set;let $e=!1;function Fo(n){if(!Ce)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if($e=n!==void 0?n:!$e,typeof document<"u"){const e=document.documentElement,r=$e?"0 0 0 2px cyan":"none";e.style.setProperty("--recursica-over-styled-shadow",r),console.log(`[Recursica] Highlight outlines toggled: ${$e?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return lo.forEach(e=>e()),$e}function ms(){return Ce&&$e}function Do(){const[n,e]=u.useState($e);return u.useEffect(()=>{if(!Ce)return;uo(),mo();const r=()=>e($e);return lo.add(r),()=>{lo.delete(r)}},[]),Ce&&n}function uo(){if(!Ce)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const n="recursica-over-styled-styles";let e=document.getElementById(n);e||(e=document.createElement("style"),e.id=n,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 ao(){if(!be)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const n=e=>{try{e.recursica=e.recursica||{},e.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Lo()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};n(window),window.parent&&window.parent!==window&&n(window.parent)}const go="data-recursica-theme";function ir({children:n,theme:e="light",initLayer0:s=!0}){return m.useEffect(()=>{const t=document.documentElement;return t.setAttribute(go,e),()=>{t.removeAttribute(go)}},[e]),m.useEffect(()=>{ro(),ao()},[]),s?r.jsx(so,{layer:0,children:n}):r.jsx(r.Fragment,{children:n})}const cr=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],dr=(n,e)=>{const s=document.activeElement;return new Promise((t,o)=>{if(e&&e.current){const a=document.createElement("textarea");a.readOnly=!0,a.defaultValue=n,e.current.appendChild(a),a.select();const l=document.execCommand("copy");e.current.removeChild(a),s&&s.focus(),l?t():o(new Error("Failed to copy"))}else o(new Error("Copy area reference is not defined"))})};function w(n){if(!be||typeof n!="function"&&!(n&&n.$$typeof))return n;const e=m.forwardRef((t,o)=>{const{overStyled:a}=t,l=Io(),i=m.createElement(n,{...t,ref:o});return a&&l?r.jsx("div",{className:"recursica-over-styled",children:i}):i});e.displayName=n.displayName||n.name||"Component";const s=Object.keys(n);for(const t of s){if(t==="render"||t==="$$typeof")continue;const o=n[t];(typeof o=="function"||o&&o.$$typeof)&&t[0]===t[0].toUpperCase()?e[t]=w(o):e[t]=o}return e}const pr="ReadOnlyField-module__layoutOverride___9fSsG",ur="ReadOnlyField-module__textField___qKn25",Ve={layoutOverride:pr,textField:ur},Ee=({value:n,overStyled:e=!1,...s})=>{const t=f(s,e),o=t.className;return r.jsx(u.Box,{component:"p",className:o?`${Ve.textField} ${o}`:Ve.textField,...t,children:n!=null?m.isValidElement(n)?n:Array.isArray(n)?n.join(", "):String(n):""})};Ee.displayName="ReadOnlyTextField";const no=m.forwardRef(function({value:e,type:s="text",emptyValueComponent:t,overStyled:o=!1,className:a,style:l,...i},c){let d=null;const p=f(i,o),_=t||Ie,b=(_.check?_.check(e):Ie.check(e))?r.jsx(_,{value:e}):e;switch(s){case"boolean":d=r.jsx(Ee,{value:e===!0?"True":e===!1?"False":b,overStyled:o});break;case"switch":d=r.jsx(Ee,{value:e===!0?"On":e===!1?"Off":b,overStyled:o});break;case"text":default:d=r.jsx(Ee,{value:b,overStyled:o});break}const y=a?`${Ve.layoutOverride} ${a}`:Ve.layoutOverride;return r.jsx(Ge,{ref:c,overStyled:o,className:y,style:l,...p,children:d})});no.displayName="ReadOnlyField";const ee=m.forwardRef(function({readOnly:e,readOnlyComponent:s,readOnlyType:t="text",readOnlyValue:o,readOnlyNativeProps:a,emptyValueComponent:l,activeComponent:i,overStyled:c,onLabelEditClick:d,...p},_){if(e){if(s){const $=s;return r.jsx(Ge,{ref:_,...p,onLabelEditClick:d,overStyled:c,children:r.jsx($,{...a})})}return r.jsx(no,{ref:_,type:t,value:o,emptyValueComponent:l,onLabelEditClick:d,overStyled:c,...p})}return r.jsx(Ge,{ref:_,...p,onLabelEditClick:d,overStyled:c,children:i})});ee.displayName="WithReadOnlyWrapper";const mr="AutoComplete-module__layoutOverride___-K9WL",_r="AutoComplete-module__root___kANza",fr="AutoComplete-module__input___g51MC",yr="AutoComplete-module__section___WAbf1",br="AutoComplete-module__dropdown___NqO3E",Nr="AutoComplete-module__option___Y-Kja",D={layoutOverride:mr,root:_r,input:fr,section:yr,dropdown:br,option:Nr},Wo=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,className:C,style:x,disabled:h,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,value:A,defaultValue:S,...O}=e,L=f(O,t),T=L;delete T.size,delete T.variant,delete T.radius;const g={wrapper:D.root,input:D.input,section:D.section,dropdown:D.dropdown,option:D.option},I=T.classNames;if(I&&typeof I=="object"&&!Array.isArray(I)){const j=I;g.wrapper=j.wrapper?`${D.root} ${j.wrapper}`:D.root,g.input=j.input?`${D.input} ${j.input}`:D.input,g.section=j.section?`${D.section} ${j.section}`:D.section,g.dropdown=j.dropdown?`${D.dropdown} ${j.dropdown}`:D.dropdown,g.option=j.option?`${D.option} ${j.option}`:D.option}const z=C?`${D.layoutOverride} ${C}`:D.layoutOverride;return r.jsx(ee,{className:z,style:x,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?A:S,readOnlyNativeProps:e,activeComponent:r.jsx(u.Autocomplete,{ref:s,classNames:g,disabled:h,value:A,defaultValue:S,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":b?"true":void 0},...L})})});Wo.displayName="AutoComplete";const hr="Avatar-module__root___fXu-J",$r="Avatar-module__iconWrapper___ojly2",xr="Avatar-module__textWrapper___zp-jD",vr="Avatar-module__image___ieqGp",Cr="Avatar-module__placeholder___IDW7-",J={root:hr,iconWrapper:$r,textWrapper:xr,image:vr,placeholder:Cr},Mo=m.forwardRef(function({size:e="default",variant:s="solid",icon:t,children:o,src:a,overStyled:l=!1,...i},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},_=f(i,l),$=_;let b="text";a?b="image":t&&(b="icon");const y={root:J.root,image:J.image,placeholder:J.placeholder},N=$.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const C=N;y.root=C.root?`${J.root} ${C.root}`:J.root,y.image=C.image?`${J.image} ${C.image}`:J.image,y.placeholder=C.placeholder?`${J.placeholder} ${C.placeholder}`:J.placeholder}const P=$.className;return r.jsx(u.Avatar,{ref:c,className:P,classNames:y,variant:d[s],size:p[e],src:a,"data-variant":s,"data-size":e,"data-style":b,..._,children:t!=null?r.jsx("span",{className:J.iconWrapper,"aria-hidden":!0,children:t}):o!=null?r.jsx("span",{className:J.textWrapper,children:o}):void 0})});Mo.displayName="Avatar";const wr=u.createPolymorphicComponent(Mo),Pr="Badge-module__root___5osNT",ae={root:Pr},ko=m.forwardRef(function({variant:e="primary-color",overStyled:s=!1,...t},o){const a=f(t,s),l={root:ae.root,section:ae.section,label:ae.label},i=a.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${ae.root} ${p.root}`:ae.root,l.section=p.section??ae.section,l.label=p.label??ae.label}const c=a.className,d=c?`${ae.root} ${c}`:ae.root;return r.jsx(u.Badge,{ref:o,variant:"filled","data-variant":e,...a,className:d,classNames:l})});ko.displayName="Badge";const Tr=u.createPolymorphicComponent(ko),gr="Breadcrumb-module__root___x-9ln",jr="Breadcrumb-module__separator___qrUX-",ue={root:gr,separator:jr},zo=m.forwardRef(function({overStyled:e=!1,separator:s=">",...t},o){const a=f({separator:s,...t},e),l={root:ue.root,separator:ue.separator},i=a.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${ue.root} ${p.root}`:ue.root,l.separator=p.separator?`${ue.separator} ${p.separator}`:ue.separator}const c=a.className,d=c?`${ue.root} ${c}`:ue.root;return r.jsx(u.Breadcrumbs,{ref:o,...a,className:d,classNames:l})});zo.displayName="Breadcrumb";const Sr="Loader-module__root___6iYOP",Se={root:Sr},lo=m.forwardRef(function({variant:e="oval",size:s="default",overStyled:t=!1,...o},a){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[s]||"default",c=f(o,t),d={root:Se.root},p=c.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const b=p;d.root=b.root?`${Se.root} ${b.root}`:Se.root}const _=c.className,$=_?`${Se.root} ${_}`:Se.root;return r.jsx(u.Loader,{ref:a,type:e,"data-variant":e,"data-size":i,...c,className:$,classNames:d})});lo.displayName="Loader";const Rr="Button-module__root___Q2R8-",Ar="Button-module__loader___X-9u-",Or="Button-module__label___UJ3Zt",Lr="Button-module__labelText___rFV5p",Ir="Button-module__iconWrapper___uEKPa",Wr="Button-module__section___f2mKr",X={root:Rr,loader:Ar,label:Or,labelText:Lr,iconWrapper:Ir,section:Wr};function Mr(n){return n==null||n===""?!1:typeof n=="string"?n.trim()!=="":!0}const Bo=m.forwardRef(function({variant:e="solid",size:s="default",icon:t,children:o,overStyled:a=!1,loaderVariant:l="oval",loaderSize:i,useRecursicaLoader:c=!0,...d},p){const _={solid:"filled",outline:"outline",text:"subtle"},$={default:"md",small:"sm"},b=f(d,a),y=b;delete y.fullWidth;const N=!!t||!!y.leftSection,P=!!y.rightSection,C=Mr(o),x=(N||P)&&!C;let h="label";x?h="icon-only":(N||P)&&(h="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&x&&!y["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const R={root:X.root,section:X.section,label:X.label,loader:X.loader},v=y.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const T=v;R.root=T.root?`${X.root} ${T.root}`:X.root,R.section=T.section??X.section,R.label=T.label??X.label}const W=y.className,A=W?`${X.root} ${W}`:X.root,S=y.loaderProps,O=i??(s==="small"?"small":"default");let L=S;return c&&(L={children:r.jsx(lo,{variant:l,size:O}),...S}),r.jsx(u.Button,{ref:p,className:A,classNames:R,variant:_[e],size:$[s],loaderProps:L,leftSection:t!=null?r.jsx("span",{className:X.iconWrapper,"aria-hidden":!0,children:t}):void 0,"data-variant":e,"data-size":s,"data-content":h,...b,disabled:!!y.disabled||!!y.loading,children:r.jsx("span",{className:X.labelText,children:o})})});Bo.displayName="Button";const kr=u.createPolymorphicComponent(Bo),zr="Card-module__root___c9KvZ",Br="Card-module__header___PTXf2",Er="Card-module__footer___Mu-JC",Fr="Card-module__section___BRT8H",Dr="Card-module__content___oFIQa",ie={root:zr,header:Br,footer:Er,section:Fr,content:Dr},Eo=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in s&&!(d in o)&&(o[d]=s[d])});const l={root:ie.root},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(p=>{l[p]?l[p]=`${l[p]} ${d[p]}`:l[p]=d[p]})}const c=o.className;return r.jsx(u.Card,{ref:t,className:c,classNames:l,...o})});Eo.displayName="Card";const Fo=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx(u.Card.Section,{ref:t,className:a?`${ie.section} ${a}`:ie.section,...o})});Fo.displayName="CardSection";const Do=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx(u.Card.Section,{ref:t,className:a?`${ie.header} ${a}`:ie.header,...o})});Do.displayName="CardHeader";const Go=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx(u.Card.Section,{ref:t,className:a?`${ie.footer} ${a}`:ie.footer,...o})});Go.displayName="CardFooter";const Vo=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx("div",{ref:t,className:a?`${ie.content} ${a}`:ie.content,...o})});Vo.displayName="CardContent";const Ho=u.createPolymorphicComponent(Eo),Ye=Ho;Ye.Section=Fo;Ye.Header=Do;Ye.Footer=Go;Ye.Content=Vo;const Gr=Ho,Vr="Checkbox-module__groupRoot___cBS0o",Hr="Checkbox-module__root___mY3qk",qr="Checkbox-module__body___5yC7q",Ur="Checkbox-module__inner___rTke4",Yr="Checkbox-module__input___2kt-h",Kr="Checkbox-module__icon___-O7i6",Zr="Checkbox-module__labelWrapper___GpZkr",Xr="Checkbox-module__label___cwRtI",B={groupRoot:Vr,root:Hr,body:qr,inner:Ur,input:Yr,icon:Kr,labelWrapper:Zr,label:Xr},io=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:$,assistiveWithIcon:b,error:y,required:N,withAsterisk:P,id:C,className:x,style:h,children:R,readOnly:v,readOnlyComponent:W,emptyValueComponent:A,value:S,defaultValue:O,...L}=e,T=f(L,t),g=T;return delete g.size,r.jsx(ee,{className:x,style:h,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:$,assistiveWithIcon:b,error:y,required:N,withAsterisk:P,id:C,readOnly:v&&!!W,readOnlyComponent:W,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:S!==void 0?S:O,readOnlyNativeProps:e,activeComponent:r.jsx(u.Checkbox.Group,{ref:s,...T,disabled:v||g.disabled,value:S,defaultValue:O,children:r.jsx("div",{className:B.groupRoot,"data-layout":o,children:R})})})});io.displayName="CheckboxGroup";const co=m.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:o,readOnlyComponent:a,disabled:l,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,..._}=e,$=f(_,t),b=$;delete b.size,delete b.color,delete b.radius,delete b.variant,delete b.iconColor;const y={root:B.root,body:B.body,inner:B.inner,input:B.input,icon:B.icon,labelWrapper:B.labelWrapper,label:B.label},N=b.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const h=N;y.root=h.root?`${B.root} ${h.root}`:B.root,y.body=h.body?`${B.body} ${h.body}`:B.body,y.inner=h.inner?`${B.inner} ${h.inner}`:B.inner,y.input=h.input?`${B.input} ${h.input}`:B.input,y.icon=h.icon?`${B.icon} ${h.icon}`:B.icon,y.labelWrapper=h.labelWrapper?`${B.labelWrapper} ${h.labelWrapper}`:B.labelWrapper,y.label=h.label?`${B.label} ${h.label}`:B.label}const P=b.className,C=P?`${B.root} ${P}`:B.root;if(o&&a){const h=!!(b.checked??b.defaultChecked),R=a,v=r.jsx(R,{...e,checked:h,label:b.label});return i?r.jsx(le,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:v}):r.jsx(r.Fragment,{children:v})}const x=r.jsx(u.Checkbox,{ref:s,className:C,classNames:y,disabled:o||l,...$});return i?r.jsx(le,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:x}):x});co.displayName="Checkbox";co.Group=io;const Jr="Chip-module__root___f5pFk",Qr="Chip-module__label___Ov9pg",ea="Chip-module__mantineIconWrapper___KLSz6",oa="Chip-module__innerWrapper___EnrTF",ta="Chip-module__children___zbRAR",sa="Chip-module__leadingIcon___JBtjQ",ra="Chip-module__removeIcon___pVju-",H={root:Jr,label:Qr,mantineIconWrapper:ea,innerWrapper:oa,children:ta,leadingIcon:sa,removeIcon:ra};function aa(n){return r.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",...n,children:[r.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const qo=m.forwardRef(function({error:e=!1,icon:s,onRemove:t,removeLabel:o="Remove",children:a,overStyled:l=!1,...i},c){const d=f(i,l),p=d,_={root:H.root,label:H.label,input:H.input,iconWrapper:H.mantineIconWrapper,checkIcon:H.checkIcon},$=p.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const x=$;_.root=x.root?`${H.root} ${x.root}`:H.root,_.label=x.label?`${H.label} ${x.label}`:H.label}const b=p.className,y=b?`${H.root} ${b}`:H.root,N=e?"":void 0,P=!a&&(!!s||!!t),C=p.checked!==void 0||p.defaultChecked!==void 0||t!==void 0||p.onClick!==void 0;return r.jsx(u.Chip,{ref:c,className:y,classNames:_,wrapperProps:N!==void 0?{"data-error":""}:void 0,...P?{"data-icon-only":""}:{},...C?{}:{tabIndex:-1,"aria-hidden":!0},...d,children:r.jsxs("span",{className:H.innerWrapper,children:[s&&r.jsx("span",{className:H.leadingIcon,"aria-hidden":!0,children:s}),r.jsx("span",{className:H.children,children:a}),t&&r.jsx("span",{role:"button",className:H.removeIcon,onClick:x=>{x.preventDefault(),x.stopPropagation(),t(x)},"aria-label":o,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),t(x))},tabIndex:0,children:r.jsx(aa,{})})]})})});qo.displayName="Chip";const na="Container-module__root___UVssr",Re={root:na},Uo=m.forwardRef(function({children:e,size:s,...t},o){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,i={root:Re.root},c=t.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${Re.root} ${_.root}`:Re.root}const d=t.className,p=d?`${Re.root} ${d}`:Re.root;return r.jsx(u.Container,{ref:o,size:l,className:p,classNames:i,...t,children:e})});Uo.displayName="Container";const la="DatePicker-module__layoutOverride___X9yaM",ia="DatePicker-module__root___6XvRT",ca="DatePicker-module__input___pcSW8",da="DatePicker-module__section___n3iWA",pa="DatePicker-module__dropdown___wjt08",ua="DatePicker-module__calendarHeader___KHxno",ma="DatePicker-module__day___U03J2",Y={layoutOverride:la,root:ia,input:ca,section:da,dropdown:pa,calendarHeader:ua,day:ma},Yo=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,className:C,style:x,disabled:h,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,value:A,defaultValue:S,...O}=e,L=f(O,t),T=L;delete T.size,delete T.variant,delete T.radius,delete T.description;const g={wrapper:Y.root,input:Y.input,section:Y.section,dropdown:Y.dropdown,day:Y.day,calendarHeader:Y.calendarHeader},I=T.classNames;if(I&&typeof I=="object"&&!Array.isArray(I)){const j=I;g.wrapper=j.wrapper?`${Y.root} ${j.wrapper}`:Y.root,g.input=j.input?`${Y.input} ${j.input}`:Y.input,g.section=j.section?`${Y.section} ${j.section}`:Y.section}const z=C?`${Y.layoutOverride} ${C}`:Y.layoutOverride;return r.jsx(ee,{className:z,style:x,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):S?String(S):void 0,readOnlyNativeProps:e,activeComponent:r.jsx(Rs.DatePickerInput,{ref:s,classNames:g,disabled:h,value:A,defaultValue:S,label:void 0,description:void 0,error:void 0,withAsterisk:!1,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":b?"true":void 0},...L})})});Yo.displayName="DatePicker";const _a="Dropdown-module__layoutOverride___FNcvP",fa="Dropdown-module__root___uVyL0",ya="Dropdown-module__input___dK4dN",ba="Dropdown-module__section___j3MRB",Na="Dropdown-module__dropdown___gG-Sw",ha="Dropdown-module__option___nAGU-",G={layoutOverride:_a,root:fa,input:ya,section:ba,dropdown:Na,option:ha},Ko=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",containerWidth:a,labelSize:l,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:$,assistiveWithIcon:b,error:y,required:N,withAsterisk:P,id:C,className:x,style:h,disabled:R,readOnly:v,readOnlyComponent:W,emptyValueComponent:A,value:S,defaultValue:O,data:L,...T}=e,g=f(T,t),I=g;delete I.size,delete I.variant,delete I.radius;const z={wrapper:G.root,input:G.input,section:G.section,dropdown:G.dropdown,option:G.option},j=I.classNames;if(j&&typeof j=="object"&&!Array.isArray(j)){const U=j;z.wrapper=U.wrapper?`${G.root} ${U.wrapper}`:G.root,z.input=U.input?`${G.input} ${U.input}`:G.input,z.section=U.section?`${G.section} ${U.section}`:G.section,z.dropdown=U.dropdown?`${G.dropdown} ${U.dropdown}`:G.dropdown,z.option=U.option?`${G.option} ${U.option}`:G.option}const Ne={...h||{},width:a||"100%"},he=x?`${G.layoutOverride} ${x}`:G.layoutOverride;return r.jsx(ee,{className:he,style:Ne,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:t,formLayout:o,labelSize:l,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:$,assistiveWithIcon:b,error:y,required:N,withAsterisk:P,id:C,readOnly:v,readOnlyComponent:W,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:S!==void 0?String(S):O?String(O):void 0,readOnlyNativeProps:e,activeComponent:r.jsx(u.Select,{ref:s,classNames:z,disabled:R,value:S,defaultValue:O,data:L||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":R?"true":void 0,"data-error":y?"true":void 0},...g})})});Ko.displayName="Dropdown";const $a=n=>r.jsx("div",{...n,children:"FileInput"}),xa=n=>r.jsx("div",{...n,children:"FileUpload"}),va="Flex-module__root___yYser",Ae={root:va},Zo=m.forwardRef(function({children:e,gap:s="rec-default",rowGap:t,columnGap:o,...a},l){const i={root:Ae.root},c=a.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${Ae.root} ${_.root}`:Ae.root}const d=a.className,p=d?`${Ae.root} ${d}`:Ae.root;return r.jsx(u.Flex,{ref:l,className:p,classNames:i,...We({gap:s,rowGap:t,columnGap:o,...a}),children:e})});Zo.displayName="Flex";const Ca=u.createPolymorphicComponent(Zo),wa="Grid-module__root___s-qPY",Pa="Grid-module__col___tbuNg",te={root:wa,col:Pa},Xo=m.forwardRef(function({children:e,gap:s="rec-default",...t},o){const a={root:te.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const _=l;a.root=_.root?`${te.root} ${_.root}`:te.root}const i=t.className,c=i?`${te.root} ${i}`:te.root,{gap:d,...p}=We({gap:s,...t});return r.jsx(u.Grid,{ref:o,gutter:d,className:c,classNames:a,...p,children:e})});Xo.displayName="Grid";const Ta=u.createPolymorphicComponent(Xo),Jo=m.forwardRef(function({children:e,...s},t){const o={col:te.col},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const c=a;o.col=c.col?`${te.col} ${c.col}`:te.col}const l=s.className,i=l?`${te.col} ${l}`:te.col;return r.jsx(u.Grid.Col,{ref:t,className:i,classNames:o,...We(s),children:e})});Jo.displayName="GridCol";const Qo=u.createPolymorphicComponent(Jo),et=Ta;et.Col=Qo;const ga="Group-module__root___ftO64",Oe={root:ga},ot=m.forwardRef(function({children:e,gap:s="rec-default",...t},o){const a={root:Oe.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${Oe.root} ${d.root}`:Oe.root}const i=t.className,c=i?`${Oe.root} ${i}`:Oe.root;return r.jsx(u.Group,{ref:o,className:c,classNames:a,...We({gap:s,...t}),children:e})});ot.displayName="Group";const ja="HoverCard-module__dropdown___FBPFW",Sa="HoverCard-module__arrow___S9AkE",jo={dropdown:ja,arrow:Sa},tt=function({overStyled:e=!1,withBeak:s=!0,...t}){const o=f(t,e),a={dropdown:jo.dropdown,arrow:jo.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(_=>{a[_]?a[_]=`${a[_]} ${p[_]}`:a[_]=p[_]})}const i=o.arrowSize??16,c=o.withArrow,d=s??c;return r.jsx(u.HoverCard,{position:"top",arrowSize:i,withArrow:d,classNames:a,...o})};tt.displayName="HoverCard";const st=function(e){return r.jsx(u.HoverCard.Target,{...e})};st.displayName="HoverCardTarget";const rt=function({overStyled:e=!1,...s}){const t=f(s,e),o=t.className;return r.jsx(u.HoverCard.Dropdown,{className:o,...t})};rt.displayName="HoverCardDropdown";const po=tt;po.Target=st;po.Dropdown=rt;const Ra="Link-module__root___I0VGE",Aa="Link-module__iconWrapper___W-LlF",Oa="Link-module__labelText___wSvUy",xe={root:Ra,iconWrapper:Aa,labelText:Oa},at=m.forwardRef(function({icon:e,children:s,overStyled:t=!1,...o},a){const l=f(o,t),i=l,c={root:xe.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const $=d;c.root=$.root?`${xe.root} ${$.root}`:xe.root}const p=i.className,_=p?`${xe.root} ${p}`:xe.root;return r.jsxs(u.Anchor,{ref:a,className:_,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...l,children:[e&&r.jsx("span",{className:xe.iconWrapper,"aria-hidden":!0,children:e}),r.jsx("span",{className:xe.labelText,children:s})]})});at.displayName="Link";const La=u.createPolymorphicComponent(at),Ia="Menu-module__dropdown___j4xuA",Wa="Menu-module__item___NMXha",Ma="Menu-module__itemLabel___zvcqC",ka="Menu-module__itemSection___pRIcn",za="Menu-module__divider___wPiNq",Ba="Menu-module__label___4FBGa",Ea="Menu-module__chevron___hEEiy",ve={dropdown:Ia,item:Wa,itemLabel:Ma,itemSection:ka,divider:za,label:Ba,chevron:Ea},nt=function({overStyled:e=!1,...s}){const t=f(s,e),o={dropdown:ve.dropdown,item:ve.item,itemLabel:ve.itemLabel,itemSection:ve.itemSection,divider:ve.divider,label:ve.label,chevron:ve.chevron},a=t.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const l=a;Object.keys(l).forEach(i=>{o[i]?o[i]=`${o[i]} ${l[i]}`:o[i]=l[i]})}return r.jsx(u.Menu,{classNames:o,...t})};nt.displayName="Menu";const lt=function(e){return r.jsx(u.Menu.Target,{...e})};lt.displayName="MenuTarget";const it=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx(u.Menu.Dropdown,{ref:t,className:a,...o})});it.displayName="MenuDropdown";const ct=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o;e||delete a.color;const l=a.className;return r.jsx(u.Menu.Item,{ref:t,className:l,...o})});ct.displayName="MenuItem";const Fa=u.createPolymorphicComponent(ct),dt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx(u.Menu.Divider,{ref:t,className:a,...o})});dt.displayName="MenuDivider";const pt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx(u.Menu.Label,{ref:t,className:a,...o})});pt.displayName="MenuLabel";const ut=function(e){return r.jsx(u.Menu.Sub,{...e})};ut.displayName="MenuSub";const mt=function(e){return r.jsx(u.Menu.Sub.Target,{...e})};mt.displayName="MenuSubTarget";const _t=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o;e||delete a.color;const l=a.className;return r.jsx(u.Menu.Sub.Item,{ref:t,className:l,...o})});_t.displayName="MenuSubItem";const Da=u.createPolymorphicComponent(_t),ft=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className;return r.jsx(u.Menu.Sub.Dropdown,{ref:t,className:a,...o})});ft.displayName="MenuSubDropdown";const Ke=ut;Ke.Target=mt;Ke.Item=Da;Ke.Dropdown=ft;const Te=nt;Te.Target=lt;Te.Dropdown=it;Te.Item=Fa;Te.Divider=dt;Te.Label=pt;Te.Sub=Ke;const Ga="Modal-module__root___ytPLl",Va="Modal-module__inner___SSUJE",Ha="Modal-module__content___dWO-B",qa="Modal-module__header___ILG9i",Ua="Modal-module__title___A5OeE",Ya="Modal-module__bodyWrapper___5CCL-",Ka="Modal-module__scrollArea___KD-hm",Za="Modal-module__footer___rro2w",Xa="Modal-module__close___-ER1C",ne={root:Ga,inner:Va,content:Ha,header:qa,title:Ua,bodyWrapper:Ya,scrollArea:Ka,footer:Za,close:Xa},yt=m.forwardRef(function({overStyled:e=!1,children:s,title:t,withCloseButton:o=!0,overlayProps:a,withOverlay:l=!0,closeButtonProps:i,...c},d){const p=f(c,e),_={root:ne.root,inner:ne.inner,content:ne.content,header:ne.header,title:ne.title,close:ne.close},$=p.classNames;if($&&typeof $=="object"&&!Array.isArray($)){const b=$;Object.keys(b).forEach(y=>{_[y]?_[y]=`${_[y]} ${b[y]}`:_[y]=b[y]})}return r.jsxs(u.Modal.Root,{ref:d,classNames:_,...p,children:[l&&r.jsx(u.Modal.Overlay,{...a}),r.jsxs(u.Modal.Content,{children:[(t||o)&&r.jsxs(u.Modal.Header,{children:[t&&r.jsx(u.Modal.Title,{children:t}),o&&r.jsx(u.Modal.CloseButton,{...i})]}),r.jsx(mo,{children:s})]})]})});yt.displayName="Modal";const uo=m.forwardRef(function({overStyled:e=!1,className:s,...t},o){const a=f(t,e);return r.jsx("div",{ref:o,className:`${ne.footer} ${s||""}`,...a})});uo.displayName="Modal.Footer";const mo=m.forwardRef(function({className:e,onScroll:s,children:t,...o},a){const l=m.useRef(null),[i,c]=m.useState(!1),[d,p]=m.useState(!1),_=m.useCallback(()=>{if(l.current){const{scrollTop:N,scrollHeight:P,clientHeight:C}=l.current;c(N>0),p(Math.ceil(N+C)<P)}},[]);m.useEffect(()=>(_(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_,t]);const $=N=>{_(),s==null||s(N)};let b=null;const y=[];return m.Children.forEach(t,N=>{var P;m.isValidElement(N)&&(N.type===uo||((P=N.type)==null?void 0:P.displayName)==="Modal.Footer")?b=N:y.push(N)}),r.jsxs(u.Modal.Body,{...o,ref:N=>{typeof a=="function"?a(N):a&&(a.current=N)},className:`${ne.bodyWrapper} ${e||""}`,children:[r.jsx("div",{ref:l,onScroll:$,"data-scrolled-top":i||void 0,"data-scrolled-bottom":d||void 0,className:ne.scrollArea,children:y}),b]})});mo.displayName="Modal.Body";const bt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Modal.Root,{ref:t,...o})});bt.displayName="Modal.Root";const Nt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Modal.Overlay,{ref:t,...o})});Nt.displayName="Modal.Overlay";const ht=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Modal.Content,{ref:t,...o})});ht.displayName="Modal.Content";const $t=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Modal.Header,{ref:t,...o})});$t.displayName="Modal.Header";const xt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Modal.Title,{ref:t,...o})});xt.displayName="Modal.Title";const vt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Modal.CloseButton,{ref:t,...o})});vt.displayName="Modal.CloseButton";const ce=yt;ce.Root=bt;ce.Overlay=Nt;ce.Content=ht;ce.Header=$t;ce.Title=xt;ce.CloseButton=vt;ce.Body=mo;ce.Footer=uo;const Ja="NumberInput-module__layoutOverride___5-9T4",Qa="NumberInput-module__root___C6rAn",en="NumberInput-module__input___Ss8p7",on="NumberInput-module__section___MijP0",tn="NumberInput-module__controls___8UfQ2",sn="NumberInput-module__control___Qre9-",Ce={layoutOverride:Ja,root:Qa,input:en,section:on,controls:tn,control:sn},Ct=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,className:C,style:x,disabled:h,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,value:A,defaultValue:S,hideControls:O=!1,...L}=e,T=f(L,t),g=T;delete g.size,delete g.variant,delete g.radius;const I={wrapper:Ce.root,input:Ce.input,section:Ce.section,controls:Ce.controls,control:Ce.control},z=C?`${Ce.layoutOverride} ${C}`:Ce.layoutOverride;return r.jsx(ee,{className:z,style:x,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?A==null?void 0:A.toString():S==null?void 0:S.toString(),readOnlyNativeProps:e,activeComponent:r.jsx(u.NumberInput,{ref:s,classNames:I,disabled:h,value:A,defaultValue:S,hideControls:O,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":b?"true":void 0,"data-with-left-section":g.leftSection?"true":void 0,"data-with-right-section":g.rightSection||!O?"true":void 0},...T})})});Ct.displayName="NumberInput";const rn="Pagination-module__root___ITRjt",an="Pagination-module__control___40yNT",nn="Pagination-module__dots___Yl9da",ln="Pagination-module__iconWithLabel___pLM4O",cn="Pagination-module__baseIcon___Qw3bJ",V={root:rn,control:an,dots:nn,iconWithLabel:ln,baseIcon:cn},dn="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",pn="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",un="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",mn="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",_n={next:dn,prev:pn,first:un,last:mn},Me=({type:n,className:e,...s})=>r.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${V.baseIcon} ${e||""}`.trim(),...s,children:r.jsx("path",{d:_n[n],fill:"currentColor"})}),wt=n=>r.jsxs("div",{className:V.iconWithLabel,children:[r.jsx("span",{children:"Next"}),r.jsx(Me,{type:"next",...n})]}),Pt=n=>r.jsxs("div",{className:V.iconWithLabel,children:[r.jsx(Me,{type:"prev",...n}),r.jsx("span",{children:"Prev"})]}),Tt=n=>r.jsxs("div",{className:V.iconWithLabel,children:[r.jsx(Me,{type:"first",...n}),r.jsx("span",{children:"First"})]}),gt=n=>r.jsxs("div",{className:V.iconWithLabel,children:[r.jsx("span",{children:"Last"}),r.jsx(Me,{type:"last",...n})]});function jt(n){const e={root:V.root,control:V.control,dots:V.dots},s=n.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const a=s;e.root=a.root?`${V.root} ${a.root}`:V.root,e.control=a.control?`${V.control} ${a.control}`:V.control,e.dots=a.dots?`${V.dots} ${a.dots}`:V.dots}const t=n.className;return{className:t?`${V.root} ${t}`:V.root,classNames:e}}const St=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=jt(o);return r.jsx(u.Pagination.Root,{ref:t,className:a.className,classNames:a.classNames,...o})});St.displayName="Pagination.Root";const Rt=m.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...o},a){const l=f(o,e),i=t||(s?wt:void 0);return r.jsx(u.Pagination.Next,{ref:a,"data-variant":"text",icon:i,...l})});Rt.displayName="Pagination.Next";const At=m.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...o},a){const l=f(o,e),i=t||(s?Pt:void 0);return r.jsx(u.Pagination.Previous,{ref:a,"data-variant":"text",icon:i,...l})});At.displayName="Pagination.Previous";const Ot=m.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...o},a){const l=f(o,e),i=t||(s?Tt:void 0);return r.jsx(u.Pagination.First,{ref:a,"data-variant":"text",icon:i,...l})});Ot.displayName="Pagination.First";const Lt=m.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...o},a){const l=f(o,e),i=t||(s?gt:void 0);return r.jsx(u.Pagination.Last,{ref:a,"data-variant":"text",icon:i,...l})});Lt.displayName="Pagination.Last";const It=m.forwardRef(function({overStyled:e=!1,getControlProps:s,withLabels:t,...o},a){const l=f(o,e),i=jt(l),c=p=>{const _={"data-variant":"text"};return s?{..._,...s(p)}:_},d=t?{nextIcon:wt,previousIcon:Pt,firstIcon:Tt,lastIcon:gt}:{};return r.jsx(u.Pagination,{ref:a,className:i.className,classNames:i.classNames,getControlProps:c,...d,...l})});It.displayName="Pagination";const Wt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Pagination.Control,{ref:t,...o})});Wt.displayName="Pagination.Control";const Mt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Pagination.Dots,{ref:t,...o})});Mt.displayName="Pagination.Dots";const se=It;se.Root=St;se.Items=u.Pagination.Items;se.Control=Wt;se.Dots=Mt;se.Next=Rt;se.Previous=At;se.First=Ot;se.Last=Lt;se.Icon=Me;const fn="Panel-module__content___wdGo-",yn="Panel-module__inner___ruA2b",bn="Panel-module__header___o7SiC",Nn="Panel-module__title___181OP",hn="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",$n="Panel-module__body___SEC3T",xn="Panel-module__footer___t6-hz",fe={content:fn,inner:yn,header:bn,title:Nn,titleTruncate:hn,body:$n,footer:xn},kt=function({overStyled:e=!1,placement:s="right",keepMounted:t=!0,wrapHeaderText:o=!1,...a}){const l=f(a,e),i={content:fe.content,header:fe.header,title:o?fe.titleTruncate:fe.title,body:fe.body,inner:fe.inner},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{i[p]?i[p]=`${i[p]} ${d[p]}`:i[p]=d[p]})}return r.jsx(u.Drawer,{position:s,keepMounted:t,closeOnClickOutside:a.closeOnClickOutside??!!a.opened,...l,classNames:i})};kt.displayName="Panel";const _o=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className,l=a?`${fe.footer} ${a}`:fe.footer;return r.jsx("div",{ref:t,className:l,...o})});_o.displayName="PanelFooter";const zt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Drawer.Root,{ref:t,...o})});zt.displayName="PanelRoot";const Bt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Drawer.Overlay,{ref:t,...o})});Bt.displayName="PanelOverlay";const Et=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Drawer.Content,{ref:t,...o})});Et.displayName="PanelContent";const Ft=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Drawer.Header,{ref:t,...o})});Ft.displayName="PanelHeader";const Dt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Drawer.Title,{ref:t,...o})});Dt.displayName="PanelTitle";const Gt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Drawer.CloseButton,{ref:t,...o})});Gt.displayName="PanelCloseButton";const Vt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Drawer.Body,{ref:t,...o})});Vt.displayName="PanelBody";const re=kt;re.Root=zt;re.Overlay=Bt;re.Content=Et;re.Header=Ft;re.Title=Dt;re.CloseButton=Gt;re.Body=Vt;re.Stack=u.Drawer.Stack;re.Footer=_o;const vn="Popover-module__dropdown___svhS6",Cn="Popover-module__arrow___5A-0e",So={dropdown:vn,arrow:Cn},Ht=function({overStyled:e=!1,withBeak:s=!0,...t}){const o=f(t,e),a={dropdown:So.dropdown,arrow:So.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(_=>{a[_]?a[_]=`${a[_]} ${p[_]}`:a[_]=p[_]})}const i=o.arrowSize??16,c=o.withArrow,d=s??c;return r.jsx(u.Popover,{position:"top",arrowSize:i,withArrow:d,classNames:a,...o})};Ht.displayName="Popover";const qt=function(e){return r.jsx(u.Popover.Target,{...e})};qt.displayName="PopoverTarget";const Ut=function({overStyled:e=!1,...s}){const t=f(s,e),o=t.className;return r.jsx(u.Popover.Dropdown,{className:o,...t})};Ut.displayName="PopoverDropdown";const fo=Ht;fo.Target=qt;fo.Dropdown=Ut;const wn="Radio-module__groupRoot___bfUii",Pn="Radio-module__root___kAjTD",Tn="Radio-module__body___q2Wpj",gn="Radio-module__inner___QaTBB",jn="Radio-module__radio___MfgN-",Sn="Radio-module__icon___DWznm",Rn="Radio-module__labelWrapper___dB0Gi",An="Radio-module__label___vAFIP",E={groupRoot:wn,root:Pn,body:Tn,inner:gn,radio:jn,icon:Sn,labelWrapper:Rn,label:An},yo=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:$,assistiveWithIcon:b,error:y,required:N,withAsterisk:P,id:C,className:x,style:h,children:R,readOnly:v,readOnlyComponent:W,emptyValueComponent:A,value:S,defaultValue:O,...L}=e,T=f(L,t),g=T;return delete g.size,r.jsx(ee,{className:x,style:h,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:$,assistiveWithIcon:b,error:y,required:N,withAsterisk:P,id:C,readOnly:v&&!!W,readOnlyComponent:W,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:S!==void 0?S:O,readOnlyNativeProps:e,activeComponent:r.jsx(u.Radio.Group,{ref:s,...T,disabled:v||g.disabled,value:S,defaultValue:O,children:r.jsx("div",{className:E.groupRoot,"data-layout":o,children:R})})})});yo.displayName="RadioGroup";const On=({className:n,style:e})=>r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:n,style:e,children:r.jsx("circle",{cx:"8",cy:"8",r:"5"})}),bo=m.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:o,readOnlyComponent:a,disabled:l,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,..._}=e,$=f(_,t),b=$;delete b.size,delete b.color,delete b.radius,delete b.variant,delete b.iconColor;const y={root:E.root,body:E.body,inner:E.inner,radio:E.radio,icon:E.icon,labelWrapper:E.labelWrapper,label:E.label},N=b.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const h=N;y.root=h.root?`${E.root} ${h.root}`:E.root,y.body=h.body?`${E.body} ${h.body}`:E.body,y.inner=h.inner?`${E.inner} ${h.inner}`:E.inner,y.radio=h.radio?`${E.radio} ${h.radio}`:E.radio,y.icon=h.icon?`${E.icon} ${h.icon}`:E.icon,y.labelWrapper=h.labelWrapper?`${E.labelWrapper} ${h.labelWrapper}`:E.labelWrapper,y.label=h.label?`${E.label} ${h.label}`:E.label}const P=b.className,C=P?`${E.root} ${P}`:E.root;if(o&&a){const h=!!(b.checked??b.defaultChecked),R=a,v=r.jsx(R,{...e,checked:h,label:b.label});return i?r.jsx(le,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:v}):r.jsx(r.Fragment,{children:v})}const x=r.jsx(u.Radio,{ref:s,icon:On,className:C,classNames:y,disabled:o||l,...$});return i?r.jsx(le,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:x}):x});bo.displayName="Radio";bo.Group=yo;const Ln="SegmentedControl-module__root___JFRhg",In="SegmentedControl-module__label___mS17q",Wn="SegmentedControl-module__control___znOdQ",Mn="SegmentedControl-module__indicator___ZMcJy",K={root:Ln,label:In,control:Wn,indicator:Mn};function kn(n){const e={root:K.root,control:K.control,label:K.label,indicator:K.indicator},s=n.classNames;if(s&&typeof s=="object"&&!Array.isArray(s)){const a=s;e.root=a.root?`${K.root} ${a.root}`:K.root,e.control=a.control?`${K.control} ${a.control}`:K.control,e.label=a.label?`${K.label} ${a.label}`:K.label,e.indicator=a.indicator?`${K.indicator} ${a.indicator}`:K.indicator}const t=n.className;return{className:t?`${K.root} ${t}`:K.root,classNames:e}}const Yt=m.forwardRef(function({overStyled:e=!1,orientation:s="horizontal",fullWidth:t,...o},a){const l=f(o,e),i=l;delete i.disabled;const c=kn(i);return r.jsx(u.SegmentedControl,{ref:a,className:c.className,classNames:c.classNames,orientation:s,fullWidth:t,"data-orientation":s,...l})});Yt.displayName="SegmentedControl";const zn=Yt,Bn="Slider-module__layoutOverride___zYPun",En="Slider-module__sliderContainer___y8I0J",Fn="Slider-module__sliderTrackWrapper___UHpVh",Dn="Slider-module__iconWrapper___uqHpC",Gn="Slider-module__sliderRoot___LI86H",Vn="Slider-module__sliderTrack___oqnlG",Hn="Slider-module__sliderBar___TI4VY",qn="Slider-module__sliderThumb___OFn8p",Un="Slider-module__sliderMark___1lM2B",Yn="Slider-module__minMaxGuide___TaGqz",Kn="Slider-module__rightGuideContainer___8dOT8",Zn="Slider-module__currentValue___dGV2T",Xn="Slider-module__inputField___6x578",Jn="Slider-module__readOnlyValue___-ZzMW",M={layoutOverride:Bn,sliderContainer:En,sliderTrackWrapper:Fn,iconWrapper:Dn,sliderRoot:Gn,sliderTrack:Vn,sliderBar:Hn,sliderThumb:qn,sliderMark:Un,minMaxGuide:Yn,rightGuideContainer:Kn,currentValue:Zn,inputField:Xn,readOnlyValue:Jn},Qn=({value:n})=>r.jsx("div",{className:M.readOnlyValue,children:n}),Kt=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:_,tooltipLabel:$,assistiveText:b,assistiveWithIcon:y,error:N,required:P,withAsterisk:C,id:x,className:h,style:R,disabled:v,readOnly:W,readOnlyComponent:A,emptyValueComponent:S,value:O,defaultValue:L,icon:T,showInput:g=!1,showMinMaxLabels:I=!0,min:z=0,max:j=100,step:Ne=1,onChange:he,onChangeEnd:U,...Ze}=e,[vs,Cs]=m.useState(()=>O!==void 0?O:L!==void 0?L:z),pe=O!==void 0?O:vs,[ws,Xe]=m.useState(pe.toString());m.useEffect(()=>{Xe(pe.toString())},[pe]);const vo=F=>{O===void 0&&Cs(F),he==null||he(F)},Ps=F=>{const wo=F.target.value;Xe(wo);const Po=parseFloat(wo);if(!isNaN(Po)){const Ss=Math.max(z,Math.min(j,Po));vo(Ss)}},Ts=()=>{Xe(pe.toString())},Co=f(Ze,t),je=Co;delete je.size,delete je.variant,delete je.radius,delete je.wrapperProps;const $e={root:M.sliderRoot,track:M.sliderTrack,bar:M.sliderBar,thumb:M.sliderThumb,mark:M.sliderMark,markLabel:M.sliderMarkLabel},ke=je.classNames;if(ke&&typeof ke=="object"&&!Array.isArray(ke)){const F=ke;$e.root=F.root?`${M.sliderRoot} ${F.root}`:M.sliderRoot,$e.track=F.track?`${M.sliderTrack} ${F.track}`:M.sliderTrack,$e.bar=F.bar?`${M.sliderBar} ${F.bar}`:M.sliderBar,$e.thumb=F.thumb?`${M.sliderThumb} ${F.thumb}`:M.sliderThumb,$e.mark=F.mark?`${M.sliderMark} ${F.mark}`:M.sliderMark,$e.markLabel=F.markLabel?`${M.sliderMarkLabel} ${F.markLabel}`:M.sliderMarkLabel}const gs=h?`${M.layoutOverride} ${h}`:M.layoutOverride,js=T?r.jsx("span",{className:M.iconWrapper,"aria-hidden":!0,children:T}):null;return r.jsx(ee,{ref:s,className:gs,style:R,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:_,assistiveText:b,assistiveWithIcon:y,error:N,required:P,withAsterisk:C,id:x,readOnly:W,readOnlyComponent:A||Qn,emptyValueComponent:S,readOnlyType:"text",readOnlyValue:pe,readOnlyNativeProps:{value:pe},activeComponent:r.jsxs("div",{className:M.sliderContainer,"data-form-layout":o,"data-disabled":v?"true":void 0,"data-error":N?"true":void 0,children:[js,I&&r.jsx("span",{className:M.minMaxGuide,children:z}),r.jsx("div",{className:M.sliderTrackWrapper,children:r.jsx(u.Slider,{classNames:$e,disabled:v,value:pe,onChange:vo,onChangeEnd:U,min:z,max:j,step:Ne,label:$,...Co})}),r.jsxs("div",{className:M.rightGuideContainer,children:[!g&&r.jsx("span",{className:M.currentValue,children:pe}),I&&r.jsx("span",{className:M.minMaxGuide,children:j})]}),g&&r.jsx("input",{type:"number",className:M.inputField,value:ws,onChange:Ps,onBlur:Ts,min:z,max:j,step:Ne,disabled:v,"data-error":N?"true":void 0})]})})});Kt.displayName="Slider";const el="Stack-module__root___NUN-x",Le={root:el},Zt=m.forwardRef(function({children:e,gap:s="rec-default",...t},o){const a={root:Le.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${Le.root} ${d.root}`:Le.root}const i=t.className,c=i?`${Le.root} ${i}`:Le.root;return r.jsx(u.Stack,{ref:o,className:c,classNames:a,...We({gap:s,...t}),children:e})});Zt.displayName="Stack";const ol=u.createPolymorphicComponent(Zt),tl="Stepper-module__root___jbSYO",sl="Stepper-module__horizontal___USHT1",rl="Stepper-module__steps___4HPO6",al="Stepper-module__step___s2nqL",nl="Stepper-module__stepBody___TBvys",ll="Stepper-module__stepLabel___N6nuy",il="Stepper-module__stepDescription___DnDAy",cl="Stepper-module__separator___pU0No",dl="Stepper-module__vertical___d4mOs",pl="Stepper-module__large___J18-y",ul="Stepper-module__small___Ub-zb",ml="Stepper-module__stepIcon___YQHNq",_l="Stepper-module__stepCompletedIcon___B9MeL",fl="Stepper-module__verticalSeparator___frWc1",yl="Stepper-module__content___J-h8X",q={root:tl,horizontal:sl,steps:rl,step:al,stepBody:nl,stepLabel:ll,stepDescription:il,separator:cl,vertical:dl,large:pl,small:ul,stepIcon:ml,stepCompletedIcon:_l,verticalSeparator:fl,content:yl},Xt=m.forwardRef(function(e,s){const{overStyled:t=!1,size:o="large",orientation:a="horizontal",className:l,style:i,...c}=e,d=f(c,t);return r.jsx(u.Stepper,{ref:s,orientation:a,className:`${q.root} ${a==="horizontal"?q.horizontal:q.vertical} ${o==="large"?q.large:q.small} ${l||""}`,style:i,"data-size":o,"data-orientation":a,classNames:{steps:q.steps,step:q.step,stepIcon:q.stepIcon,stepCompletedIcon:q.stepCompletedIcon,stepBody:q.stepBody,stepLabel:q.stepLabel,stepDescription:q.stepDescription,separator:q.separator,verticalSeparator:q.verticalSeparator,content:q.content},...d})}),Jt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Stepper.Step,{ref:t,...o})});Jt.displayName="Stepper.Step";const bl=Object.assign(Xt,{Step:Jt,Completed:u.Stepper.Completed});Xt.displayName="Stepper";const Nl="Switch-module__root___Y5Ydi",hl="Switch-module__track___7ObdZ",$l="Switch-module__body___Sw9Wr",xl="Switch-module__thumb___-FTeK",vl="Switch-module__labelWrapper___YSOwx",Cl="Switch-module__label___LrH7V",wl="Switch-module__thumbIconWrapper___sCY-1",Pl="Switch-module__checkIcon___ZBAQN",Tl="Switch-module__closeIcon___bLLGw",gl="Switch-module__groupRoot___-Uepi",k={root:Nl,track:hl,body:$l,thumb:xl,labelWrapper:vl,label:Cl,thumbIconWrapper:wl,checkIcon:Pl,closeIcon:Tl,groupRoot:gl},No=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:$,assistiveWithIcon:b,error:y,required:N,withAsterisk:P,id:C,className:x,style:h,children:R,readOnly:v,readOnlyComponent:W,emptyValueComponent:A,value:S,defaultValue:O,...L}=e,T=f(L,t),g=T;return delete g.size,r.jsx(ee,{className:x,style:h,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:$,assistiveWithIcon:b,error:y,required:N,withAsterisk:P,id:C,readOnly:v&&!!W,readOnlyComponent:W,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:S!==void 0?S:O,readOnlyNativeProps:e,activeComponent:r.jsx(u.Switch.Group,{ref:s,...T,disabled:v||g.disabled,value:S,defaultValue:O,children:r.jsx("div",{className:k.groupRoot,"data-layout":o,children:R})})})});No.displayName="SwitchGroup";const ho=m.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:o,readOnlyComponent:a,disabled:l,thumbIcon:i,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,...$}=e,b=f($,t),y=b;delete y.size,delete y.color,delete y.radius,delete y.variant;const N={root:k.root,body:k.body,track:k.track,thumb:k.thumb,trackLabel:k.trackLabel,labelWrapper:k.labelWrapper,label:k.label},P=y.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const v=P;N.root=v.root?`${k.root} ${v.root}`:k.root,N.body=v.body?`${k.body} ${v.body}`:k.body,N.track=v.track?`${k.track} ${v.track}`:k.track,N.thumb=v.thumb?`${k.thumb} ${v.thumb}`:k.thumb,N.trackLabel=v.trackLabel?`${k.trackLabel} ${v.trackLabel}`:k.trackLabel,N.labelWrapper=v.labelWrapper?`${k.labelWrapper} ${v.labelWrapper}`:k.labelWrapper,N.label=v.label?`${k.label} ${v.label}`:k.label}const C=y.className,x=C?`${k.root} ${C}`:k.root;if(o&&a){const v=!!(y.checked??y.defaultChecked),W=a,A=r.jsx(W,{...e,checked:v,label:y.label});return c?r.jsx(le,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:A}):r.jsx(r.Fragment,{children:A})}const h=r.jsxs("div",{className:k.thumbIconWrapper,children:[r.jsx(u.CheckIcon,{className:k.checkIcon}),r.jsx(u.CloseIcon,{className:k.closeIcon})]}),R=r.jsx(u.Switch,{ref:s,className:x,classNames:N,disabled:o||l,"data-disabled":o||l||void 0,thumbIcon:i??h,...b});return c?r.jsx(le,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:R}):R});ho.displayName="Switch";ho.Group=No;const jl="Table-module__root___aMWWS",Sl={root:jl},Qt=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a=o.className,l=Sl.root,i=a?`${l} ${a}`:l;return r.jsx(u.Table,{ref:t,className:i,...o})});Qt.displayName="Table";const es=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Table.Thead,{ref:t,...o})});es.displayName="TableThead";const os=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Table.Tbody,{ref:t,...o})});os.displayName="TableTbody";const ts=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Table.Tr,{ref:t,...o})});ts.displayName="TableTr";const ss=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Table.Th,{ref:t,...o})});ss.displayName="TableTh";const rs=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Table.Td,{ref:t,...o})});rs.displayName="TableTd";const as=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Table.Tfoot,{ref:t,...o})});as.displayName="TableTfoot";const ns=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Table.Caption,{ref:t,...o})});ns.displayName="TableCaption";const ls=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Table.ScrollContainer,{ref:t,...o})});ls.displayName="TableScrollContainer";const de=Qt;de.Thead=es;de.Tbody=os;de.Tr=ts;de.Th=ss;de.Td=rs;de.Tfoot=as;de.Caption=ns;de.ScrollContainer=ls;const Rl="Tabs-module__root___-VKVI",Al="Tabs-module__list___qRVME",Ol="Tabs-module__tab___IdDYc",Ll="Tabs-module__panel___08i9c",Be={root:Rl,list:Al,tab:Ol,panel:Ll},is=m.forwardRef(function(e,s){const{variant:t="default",orientation:o="horizontal",overStyled:a=!1,className:l,...i}=e,c=f(i,a);return r.jsx(u.Tabs,{ref:s,variant:t,orientation:o,className:`${Be.root} ${l||""}`,"data-variant":t,"data-orientation":o,classNames:{list:Be.list,tab:Be.tab,panel:Be.panel},...c})});is.displayName="Tabs";const cs=m.forwardRef(function(e,s){const{overStyled:t=!1,...o}=e;return r.jsx(u.Tabs.List,{ref:s,...f(o,t)})});cs.displayName="Tabs.List";const ds=m.forwardRef(function(e,s){const{overStyled:t=!1,...o}=e;return r.jsx(u.Tabs.Tab,{ref:s,...f(o,t)})});ds.displayName="Tabs.Tab";const ps=m.forwardRef(function(e,s){const{overStyled:t=!1,...o}=e;return r.jsx(u.Tabs.Panel,{ref:s,...f(o,t)})});ps.displayName="Tabs.Panel";const Il=Object.assign(is,{List:cs,Tab:ds,Panel:ps}),us=m.forwardRef(function({overStyled:e=!1,variant:s="body",...t},o){const a=f(t,e),l=a.className,i=`recursica_brand_typography_${s}`,c=l?`${i} ${l}`:i;return r.jsx(u.Text,{ref:o,className:c,...a})});us.displayName="Text";const Wl=u.createPolymorphicComponent(us),Ml="TextArea-module__layoutOverride___4MCdm",kl="TextArea-module__root___3dyeu",zl="TextArea-module__input___8l36v",me={layoutOverride:Ml,root:kl,input:zl},ms=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,className:C,style:x,disabled:h,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,value:A,defaultValue:S,...O}=e,L=f(O,t),T=L;delete T.size,delete T.variant,delete T.radius;const g={wrapper:me.root,input:me.input},I=T.classNames;if(I&&typeof I=="object"&&!Array.isArray(I)){const j=I;g.wrapper=j.wrapper?`${me.root} ${j.wrapper}`:me.root,g.input=j.input?`${me.input} ${j.input}`:me.input}const z=C?`${me.layoutOverride} ${C}`:me.layoutOverride;return r.jsx(ee,{className:z,style:x,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?A:S,readOnlyNativeProps:e,activeComponent:r.jsx(u.Textarea,{ref:s,classNames:g,disabled:h,value:A,defaultValue:S,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":b?"true":void 0},...L})})});ms.displayName="TextArea";const Bl="TextField-module__layoutOverride___SNZqc",El="TextField-module__root___2ZYkG",Fl="TextField-module__input___RL-My",Dl="TextField-module__section___bCIJ0",Q={layoutOverride:Bl,root:El,input:Fl,section:Dl},_s=m.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,className:C,style:x,disabled:h,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,value:A,defaultValue:S,...O}=e,L=f(O,t),T=L;delete T.size,delete T.variant,delete T.radius;const g={wrapper:Q.root,input:Q.input,section:Q.section},I=T.classNames;if(I&&typeof I=="object"&&!Array.isArray(I)){const j=I;g.wrapper=j.wrapper?`${Q.root} ${j.wrapper}`:Q.root,g.input=j.input?`${Q.input} ${j.input}`:Q.input,g.section=j.section?`${Q.section} ${j.section}`:Q.section}const z=C?`${Q.layoutOverride} ${C}`:Q.layoutOverride;return r.jsx(ee,{className:z,style:x,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:$,error:b,required:y,withAsterisk:N,id:P,readOnly:R,readOnlyComponent:v,emptyValueComponent:W,readOnlyType:"text",readOnlyValue:A!==void 0?A:S,readOnlyNativeProps:e,activeComponent:r.jsx(u.Input,{ref:s,classNames:g,disabled:h,value:A,defaultValue:S,wrapperProps:{"data-disabled":h?"true":void 0,"data-error":b?"true":void 0},...L})})});_s.displayName="TextField";const Gl=n=>r.jsx("div",{...n,children:"TimePicker"}),Vl="Timeline-module__root___LwRdZ",Hl="Timeline-module__item___T5xdQ",ql="Timeline-module__itemBody___XAV-E",Ul="Timeline-module__itemBullet___rPXCy",Yl="Timeline-module__itemTitle___GgRRW",Kl="Timeline-module__itemContent___vurs-",Zl="Timeline-module__description___f9sxV",Xl="Timeline-module__timestamp___owiRu",_e={root:Vl,item:Hl,itemBody:ql,itemBullet:Ul,itemTitle:Yl,itemContent:Kl,description:Zl,timestamp:Xl},$o=m.forwardRef(function({overStyled:e=!1,timestamp:s,bulletVariant:t="default",children:o,...a},l){const i=f(a,e),c={item:_e.item,itemBody:_e.itemBody,itemContent:_e.itemContent,itemBullet:_e.itemBullet,itemTitle:_e.itemTitle},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const _=d;Object.keys(_).forEach($=>{c[$]?c[$]=`${c[$]} ${_[$]}`:c[$]=_[$]})}const p=s?r.jsxs(r.Fragment,{children:[o&&r.jsx("div",{className:_e.description,children:o}),r.jsx("div",{className:_e.timestamp,children:s})]}):o;return r.jsx(u.TimelineItem,{ref:l,classNames:c,"data-variant":t,...i,children:p})});$o.displayName="TimelineItem";const fs=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e),a={root:_e.root},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const i=l;Object.keys(i).forEach(c=>{a[c]?a[c]=`${a[c]} ${i[c]}`:a[c]=i[c]})}return r.jsx(u.Timeline,{ref:t,classNames:a,...o})});fs.displayName="Timeline";const ys=fs;ys.Item=$o;const bs=m.forwardRef(function({overStyled:e=!1,order:s=1,...t},o){const a=f(t,e),l=a.className,i=`recursica_brand_typography_h${s}`,c=l?`${i} ${l}`:i;return r.jsx(u.Title,{ref:o,order:s,className:c,...a})});bs.displayName="Title";const Jl="Toast-module__root___MUvfI",Ql="Toast-module__icon___VwvE1",ei="Toast-module__loader___8Gxd-",oi="Toast-module__title___-H6R2",ti="Toast-module__description___-QwfC",si="Toast-module__closeButton___vGr7g",ri="Toast-module__body___VLkXA",we={root:Jl,icon:Ql,loader:ei,title:oi,description:ti,closeButton:si,body:ri},Ns=m.forwardRef(function({overStyled:e=!1,variant:s="default",withCloseButton:t=!0,...o},a){const l=f(o,e),i={root:we.root,body:we.body,title:we.title,description:we.description,closeButton:we.closeButton,icon:we.icon,loader:we.loader},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{i[p]?i[p]=`${i[p]} ${d[p]}`:i[p]=d[p]})}return r.jsx(u.Notification,{ref:a,withCloseButton:t,withBorder:!1,"data-variant":s,classNames:i,loading:!1,...l})});Ns.displayName="Toast";const ai="Tooltip-module__tooltip___UA7H9",ni="Tooltip-module__arrow___4zROk",Ro={tooltip:ai,arrow:ni},hs=function({overStyled:e=!1,withBeak:s=!0,...t}){const o=f(t,e),a={tooltip:Ro.tooltip,arrow:Ro.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(_=>{a[_]?a[_]=`${a[_]} ${p[_]}`:a[_]=p[_]})}const i=o.arrowSize??16,c=o.withArrow,d=s??c;return r.jsx(u.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:d,classNames:a,...o})};hs.displayName="Tooltip";const $s=m.forwardRef(function({overStyled:e=!1,...s},t){const o=f(s,e);return r.jsx(u.Tooltip.Floating,{ref:t,...o})});$s.displayName="TooltipFloating";const xo=hs;xo.Floating=$s;xo.Group=u.Tooltip.Group;const li=n=>r.jsx("div",{...n,children:"TransferList"}),ii="Tree-module__root___ANcH3",ci="Tree-module__subtree___KoLT8",di="Tree-module__node___Hvnjg",pi="Tree-module__row___sq5ff",ui="Tree-module__expandIcon___Rc3Fe",mi="Tree-module__label___zJDit",Pe={root:ii,subtree:ci,node:di,row:pi,expandIcon:ui,label:mi};function _i(){return r.jsx("svg",{viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:r.jsx("path",{d:"M5 3l5 5-5 5"})})}function fi({node:n,hasChildren:e,expanded:s,elementProps:t}){return r.jsxs("div",{...t,className:Pe.row,"data-has-children":e||void 0,"data-expanded":e&&s?!0:void 0,children:[r.jsx("span",{className:Pe.expandIcon,"aria-hidden":"true",children:e&&r.jsx(_i,{})}),r.jsx("span",{className:Pe.label,children:n.label})]})}const xs=m.forwardRef(function({overStyled:e=!1,data:s,initialExpandedValues:t,initialSelectedValues:o,multiple:a=!1,expandOnClick:l=!0,selectOnClick:i=!0,onNodeExpand:c,onNodeCollapse:d,onSelectedChange:p,..._},$){const b=f(_,e),y=u.useTree({initialExpandedState:t?u.getTreeExpandedState(s,t):void 0,initialSelectedState:o,multiple:a,onNodeExpand:c,onNodeCollapse:d});m.useEffect(()=>{p==null||p(y.selectedState)},[y.selectedState,p]);const N=b.className,P=N?`${Pe.root} ${N}`:Pe.root;return r.jsx(u.Tree,{ref:$,data:s,tree:y,expandOnClick:l,selectOnClick:i,renderNode:fi,classNames:{root:P,node:Pe.node,subtree:Pe.subtree},...b})});xs.displayName="Tree";const yi=Ca,bi=et,Ni=Qo,hi=ot,$i=ol,xi=Uo,vi=La,Ci=Wl,wi=w(Ue),Pi=w(oo),Ti=w(He),gi=w(qe),ji=w(De),Si=w(Wo),Ri=w(wr),Ai=w(Tr),Oi=w(zo),Li=w(kr),Ii=w(Gr),Wi=w(co),Mi=w(io),ki=w(qo),zi=w(Yo),Bi=w(Ko),Ei=w($a),Fi=w(xa),Di=w(le),Gi=w(po),Vi=w(lo),Hi=w(to),qi=w(Te),Ui=w(ce),Yi=w(Ct),Ki=w(se),Zi=w(re),Xi=w(_o),Ji=w(fo),Qi=w(bo),ec=w(yo),oc=w(no),tc=w(zn),sc=w(Kt),rc=w(bl),ac=w(ho),nc=w(No),lc=w(de),ic=w(Il),cc=w(ms),dc=w(_s),pc=w(Gl),uc=w(ys),mc=w($o),_c=w(bs),fc=w(Ns),yc=w(xo),bc=w(li),Nc=w(xs);exports.Accordion=wi;exports.AccordionControl=Ti;exports.AccordionItem=Pi;exports.AccordionPanel=gi;exports.AssistiveElement=ji;exports.AutoComplete=Si;exports.Avatar=Ri;exports.Badge=Ai;exports.Breadcrumb=Oi;exports.Button=Li;exports.Card=Ii;exports.Checkbox=Wi;exports.CheckboxGroup=Mi;exports.Chip=ki;exports.Container=xi;exports.DatePicker=zi;exports.Dropdown=Bi;exports.EmptyValueRenderer=Ie;exports.FileInput=Ei;exports.FileUpload=Fi;exports.Flex=yi;exports.FormControlLayout=Di;exports.Grid=bi;exports.GridCol=Ni;exports.Group=hi;exports.HoverCard=Gi;exports.IS_DEV=be;exports.Label=Hi;exports.Layer=so;exports.Link=vi;exports.Loader=Vi;exports.Menu=qi;exports.Modal=Ui;exports.NumberInput=Yi;exports.Pagination=Ki;exports.Panel=Zi;exports.PanelFooter=Xi;exports.Popover=Ji;exports.RECURSICA_COMPONENTS=cr;exports.Radio=Qi;exports.RadioGroup=ec;exports.ReadOnlyField=oc;exports.RecursicaThemeProvider=ir;exports.SegmentedControl=tc;exports.Slider=sc;exports.Stack=$i;exports.Stepper=rc;exports.Switch=ac;exports.SwitchGroup=nc;exports.Table=lc;exports.Tabs=ic;exports.Text=Ci;exports.TextArea=cc;exports.TextField=dc;exports.TimePicker=pc;exports.Timeline=uc;exports.TimelineItem=mc;exports.Title=_c;exports.Toast=fc;exports.Tooltip=yc;exports.TransferList=bc;exports.Tree=Nc;exports.copyToClipboard=dr;exports.injectOverStyledStyles=ro;exports.isGlobalOverStyledActive=lr;exports.registerOverStyledConsoleCommand=ao;exports.toggleGlobalOverStyled=Lo;exports.useGlobalOverStyled=Io;exports.wrapComponent=w;
11
+ `,document.head.appendChild(e))}function mo(){if(!Ce)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const n=e=>{try{e.recursica=e.recursica||{},e.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Fo()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};n(window),window.parent&&window.parent!==window&&n(window.parent)}const Lo="data-recursica-theme";function _s({children:n,theme:e="light",initLayer0:r=!0}){return u.useEffect(()=>{const t=document.documentElement;return t.setAttribute(Lo,e),()=>{t.removeAttribute(Lo)}},[e]),u.useEffect(()=>{uo(),mo()},[]),r?s.jsx(po,{layer:0,children:n}):s.jsx(s.Fragment,{children:n})}const fs=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],ys=(n,e)=>{const r=document.activeElement;return new Promise((t,o)=>{if(e&&e.current){const a=document.createElement("textarea");a.readOnly=!0,a.defaultValue=n,e.current.appendChild(a),a.select();const l=document.execCommand("copy");e.current.removeChild(a),r&&r.focus(),l?t():o(new Error("Failed to copy"))}else o(new Error("Copy area reference is not defined"))})};function P(n){if(!Ce||typeof n!="function"&&!(n&&n.$$typeof))return n;const e=u.forwardRef((t,o)=>{const{overStyled:a}=t,l=Do(),i=u.createElement(n,{...t,ref:o});return a&&l?s.jsx("div",{className:"recursica-over-styled",children:i}):i});e.displayName=n.displayName||n.name||"Component";const r=Object.keys(n);for(const t of r){if(t==="render"||t==="$$typeof")continue;const o=n[t];(typeof o=="function"||o&&o.$$typeof)&&t[0]===t[0].toUpperCase()?e[t]=P(o):e[t]=o}return e}const bs="ReadOnlyField-module__layoutOverride___9fSsG",Ns="ReadOnlyField-module__textField___qKn25",Qe={layoutOverride:bs,textField:Ns},Ue=({value:n,overStyled:e=!1,...r})=>{const t=f(r,e),o=t.className;return s.jsx(m.Box,{component:"p",className:o?`${Qe.textField} ${o}`:Qe.textField,...t,children:n!=null?u.isValidElement(n)?n:Array.isArray(n)?n.join(", "):String(n):""})};Ue.displayName="ReadOnlyTextField";const _o=u.forwardRef(function({value:e,type:r="text",emptyValueComponent:t,overStyled:o=!1,className:a,style:l,...i},c){let d=null;const p=f(i,o),_=t||Ee,y=(_.check?_.check(e):Ee.check(e))?s.jsx(_,{value:e}):e;switch(r){case"boolean":d=s.jsx(Ue,{value:e===!0?"True":e===!1?"False":y,overStyled:o});break;case"switch":d=s.jsx(Ue,{value:e===!0?"On":e===!1?"Off":y,overStyled:o});break;case"text":default:d=s.jsx(Ue,{value:y,overStyled:o});break}const b=a?`${Qe.layoutOverride} ${a}`:Qe.layoutOverride;return s.jsx(Ze,{ref:c,overStyled:o,className:b,style:l,...p,children:d})});_o.displayName="ReadOnlyField";const J=u.forwardRef(function({readOnly:e,readOnlyComponent:r,readOnlyType:t="text",readOnlyValue:o,readOnlyNativeProps:a,emptyValueComponent:l,activeComponent:i,overStyled:c,onLabelEditClick:d,...p},_){if(e){if(r){const v=r;return s.jsx(Ze,{ref:_,...p,onLabelEditClick:d,overStyled:c,children:s.jsx(v,{...a})})}return s.jsx(_o,{ref:_,type:t,value:o,emptyValueComponent:l,onLabelEditClick:d,overStyled:c,...p})}return s.jsx(Ze,{ref:_,...p,onLabelEditClick:d,overStyled:c,children:i})});J.displayName="WithReadOnlyWrapper";const hs="AutoComplete-module__layoutOverride___-K9WL",vs="AutoComplete-module__root___kANza",$s="AutoComplete-module__input___g51MC",xs="AutoComplete-module__section___WAbf1",Cs="AutoComplete-module__dropdown___NqO3E",ws="AutoComplete-module__option___Y-Kja",V={layoutOverride:hs,root:vs,input:$s,section:xs,dropdown:Cs,option:ws},Go=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,className:C,style:$,disabled:N,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,value:j,defaultValue:A,...O}=e,M=f(O,t),g=M;delete g.size,delete g.variant,delete g.radius;const S={wrapper:V.root,input:V.input,section:V.section,dropdown:V.dropdown,option:V.option},k=g.classNames;if(k&&typeof k=="object"&&!Array.isArray(k)){const R=k;S.wrapper=R.wrapper?`${V.root} ${R.wrapper}`:V.root,S.input=R.input?`${V.input} ${R.input}`:V.input,S.section=R.section?`${V.section} ${R.section}`:V.section,S.dropdown=R.dropdown?`${V.dropdown} ${R.dropdown}`:V.dropdown,S.option=R.option?`${V.option} ${R.option}`:V.option}const W=C?`${V.layoutOverride} ${C}`:V.layoutOverride;return s.jsx(J,{className:W,style:$,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:j!==void 0?j:A,readOnlyNativeProps:e,activeComponent:s.jsx(m.Autocomplete,{ref:r,classNames:S,disabled:N,value:j,defaultValue:A,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":y?"true":void 0},...M})})});Go.displayName="AutoComplete";const Ps="Avatar-module__root___fXu-J",Ts="Avatar-module__iconWrapper___ojly2",gs="Avatar-module__textWrapper___zp-jD",js="Avatar-module__image___ieqGp",Ss="Avatar-module__placeholder___IDW7-",ee={root:Ps,iconWrapper:Ts,textWrapper:gs,image:js,placeholder:Ss},Vo=u.forwardRef(function({size:e="default",variant:r="solid",icon:t,children:o,src:a,overStyled:l=!1,...i},c){const d={solid:"filled",outline:"outline",ghost:"transparent"},p={default:"md",small:"sm",large:"lg"},_=f(i,l),v=_;let y="text";a?y="image":t&&(y="icon");const b={root:ee.root,image:ee.image,placeholder:ee.placeholder},h=v.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const C=h;b.root=C.root?`${ee.root} ${C.root}`:ee.root,b.image=C.image?`${ee.image} ${C.image}`:ee.image,b.placeholder=C.placeholder?`${ee.placeholder} ${C.placeholder}`:ee.placeholder}const w=v.className;return s.jsx(m.Avatar,{ref:c,className:w,classNames:b,variant:d[r],size:p[e],src:a,"data-variant":r,"data-size":e,"data-style":y,..._,children:t!=null?s.jsx("span",{className:ee.iconWrapper,"aria-hidden":!0,children:t}):o!=null?s.jsx("span",{className:ee.textWrapper,children:o}):void 0})});Vo.displayName="Avatar";const Rs=m.createPolymorphicComponent(Vo),As="Badge-module__root___5osNT",ce={root:As},Ho=u.forwardRef(function({variant:e="primary-color",overStyled:r=!1,...t},o){const a=f(t,r),l={root:ce.root,section:ce.section,label:ce.label},i=a.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${ce.root} ${p.root}`:ce.root,l.section=p.section??ce.section,l.label=p.label??ce.label}const c=a.className,d=c?`${ce.root} ${c}`:ce.root;return s.jsx(m.Badge,{ref:o,variant:"filled","data-variant":e,...a,className:d,classNames:l})});Ho.displayName="Badge";const Os=m.createPolymorphicComponent(Ho),Ls="Breadcrumb-module__root___x-9ln",Ms="Breadcrumb-module__separator___qrUX-",ye={root:Ls,separator:Ms},qo=u.forwardRef(function({overStyled:e=!1,separator:r=">",...t},o){const a=f({separator:r,...t},e),l={root:ye.root,separator:ye.separator},i=a.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;l.root=p.root?`${ye.root} ${p.root}`:ye.root,l.separator=p.separator?`${ye.separator} ${p.separator}`:ye.separator}const c=a.className,d=c?`${ye.root} ${c}`:ye.root;return s.jsx(m.Breadcrumbs,{ref:o,...a,className:d,classNames:l})});qo.displayName="Breadcrumb";const ks="Loader-module__root___6iYOP",Me={root:ks},fo=u.forwardRef(function({variant:e="oval",size:r="default",overStyled:t=!1,...o},a){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[r]||"default",c=f(o,t),d={root:Me.root},p=c.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const y=p;d.root=y.root?`${Me.root} ${y.root}`:Me.root}const _=c.className,v=_?`${Me.root} ${_}`:Me.root;return s.jsx(m.Loader,{ref:a,type:e,"data-variant":e,"data-size":i,...c,className:v,classNames:d})});fo.displayName="Loader";const Is="Button-module__root___Q2R8-",Ws="Button-module__loader___X-9u-",zs="Button-module__label___UJ3Zt",Es="Button-module__labelText___rFV5p",Bs="Button-module__iconWrapper___uEKPa",Fs="Button-module__section___f2mKr",X={root:Is,loader:Ws,label:zs,labelText:Es,iconWrapper:Bs,section:Fs};function Ds(n){return n==null||n===""?!1:typeof n=="string"?n.trim()!=="":!0}const Uo=u.forwardRef(function({variant:e="solid",size:r="default",icon:t,children:o,overStyled:a=!1,loaderVariant:l="oval",loaderSize:i,useRecursicaLoader:c=!0,...d},p){const _={solid:"filled",outline:"outline",text:"subtle"},v={default:"md",small:"sm"},y=f(d,a),b=y;delete b.fullWidth;const h=!!t||!!b.leftSection,w=!!b.rightSection,C=Ds(o),$=(h||w)&&!C;let N="label";$?N="icon-only":(h||w)&&(N="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&$&&!b["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const T={root:X.root,section:X.section,label:X.label,loader:X.loader},x=b.classNames;if(x&&typeof x=="object"&&!Array.isArray(x)){const g=x;T.root=g.root?`${X.root} ${g.root}`:X.root,T.section=g.section??X.section,T.label=g.label??X.label}const L=b.className,j=L?`${X.root} ${L}`:X.root;delete b.className;const A=b.loaderProps,O=i??(r==="small"?"small":"default");let M=A;return c&&(M={children:s.jsx(fo,{variant:l,size:O}),...A}),s.jsx(m.Button,{ref:p,className:j,classNames:T,variant:_[e],size:v[r],loaderProps:M,leftSection:t!=null?s.jsx("span",{className:X.iconWrapper,"aria-hidden":!0,children:t}):void 0,"data-variant":e,"data-size":r,"data-content":N,...y,disabled:!!b.disabled||!!b.loading,children:s.jsx("span",{className:X.labelText,children:o})})});Uo.displayName="Button";const Ko=m.createPolymorphicComponent(Uo),Gs="Card-module__root___c9KvZ",Vs="Card-module__header___PTXf2",Hs="Card-module__footer___Mu-JC",qs="Card-module__section___BRT8H",Us="Card-module__content___oFIQa",ue={root:Gs,header:Vs,footer:Hs,section:qs,content:Us},Yo=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(d=>{d in r&&!(d in o)&&(o[d]=r[d])});const l={root:ue.root},i=o.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const d=i;Object.keys(d).forEach(p=>{l[p]?l[p]=`${l[p]} ${d[p]}`:l[p]=d[p]})}const c=o.className;return s.jsx(m.Card,{ref:t,className:c,classNames:l,...o})});Yo.displayName="Card";const Zo=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx(m.Card.Section,{ref:t,className:a?`${ue.section} ${a}`:ue.section,...o})});Zo.displayName="CardSection";const Qo=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx(m.Card.Section,{ref:t,className:a?`${ue.header} ${a}`:ue.header,...o})});Qo.displayName="CardHeader";const Xo=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx(m.Card.Section,{ref:t,className:a?`${ue.footer} ${a}`:ue.footer,...o})});Xo.displayName="CardFooter";const Jo=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx("div",{ref:t,className:a?`${ue.content} ${a}`:ue.content,...o})});Jo.displayName="CardContent";const et=m.createPolymorphicComponent(Yo),oo=et;oo.Section=Zo;oo.Header=Qo;oo.Footer=Xo;oo.Content=Jo;const Ks=et,Ys="Checkbox-module__groupRoot___cBS0o",Zs="Checkbox-module__root___mY3qk",Qs="Checkbox-module__body___5yC7q",Xs="Checkbox-module__inner___rTke4",Js="Checkbox-module__input___2kt-h",ea="Checkbox-module__icon___-O7i6",oa="Checkbox-module__labelWrapper___GpZkr",ta="Checkbox-module__label___cwRtI",E={groupRoot:Ys,root:Zs,body:Qs,inner:Xs,input:Js,icon:ea,labelWrapper:oa,label:ta},yo=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:v,assistiveWithIcon:y,error:b,required:h,withAsterisk:w,id:C,className:$,style:N,children:T,readOnly:x,readOnlyComponent:L,emptyValueComponent:j,value:A,defaultValue:O,...M}=e,g=f(M,t),S=g;return delete S.size,s.jsx(J,{className:$,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:v,assistiveWithIcon:y,error:b,required:h,withAsterisk:w,id:C,readOnly:x&&!!L,readOnlyComponent:L,emptyValueComponent:j,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:e,activeComponent:s.jsx(m.Checkbox.Group,{ref:r,...g,disabled:x||S.disabled,value:A,defaultValue:O,children:s.jsx("div",{className:E.groupRoot,"data-layout":o,children:T})})})});yo.displayName="CheckboxGroup";const bo=u.forwardRef(function(e,r){const{overStyled:t=!1,readOnly:o,readOnlyComponent:a,disabled:l,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,..._}=e,v=f(_,t),y=v;delete y.size,delete y.color,delete y.radius,delete y.variant,delete y.iconColor;const b={root:E.root,body:E.body,inner:E.inner,input:E.input,icon:E.icon,labelWrapper:E.labelWrapper,label:E.label},h=y.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const N=h;b.root=N.root?`${E.root} ${N.root}`:E.root,b.body=N.body?`${E.body} ${N.body}`:E.body,b.inner=N.inner?`${E.inner} ${N.inner}`:E.inner,b.input=N.input?`${E.input} ${N.input}`:E.input,b.icon=N.icon?`${E.icon} ${N.icon}`:E.icon,b.labelWrapper=N.labelWrapper?`${E.labelWrapper} ${N.labelWrapper}`:E.labelWrapper,b.label=N.label?`${E.label} ${N.label}`:E.label}const w=y.className,C=w?`${E.root} ${w}`:E.root;if(o&&a){const N=!!(y.checked??y.defaultChecked),T=a,x=s.jsx(T,{...e,checked:N,label:y.label});return i?s.jsx(pe,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:x}):s.jsx(s.Fragment,{children:x})}const $=s.jsx(m.Checkbox,{ref:r,className:C,classNames:b,disabled:o||l,...v});return i?s.jsx(pe,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:$}):$});bo.displayName="Checkbox";bo.Group=yo;const ra="Chip-module__root___f5pFk",sa="Chip-module__label___Ov9pg",aa="Chip-module__mantineIconWrapper___KLSz6",na="Chip-module__innerWrapper___EnrTF",la="Chip-module__children___zbRAR",ia="Chip-module__leadingIcon___JBtjQ",ca="Chip-module__removeIcon___pVju-",q={root:ra,label:sa,mantineIconWrapper:aa,innerWrapper:na,children:la,leadingIcon:ia,removeIcon:ca};function da(n){return s.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",...n,children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const ot=u.forwardRef(function({error:e=!1,icon:r,onRemove:t,removeLabel:o="Remove",children:a,overStyled:l=!1,...i},c){const d=f(i,l),p=d,_={root:q.root,label:q.label,input:q.input,iconWrapper:q.mantineIconWrapper,checkIcon:q.checkIcon},v=p.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const $=v;_.root=$.root?`${q.root} ${$.root}`:q.root,_.label=$.label?`${q.label} ${$.label}`:q.label}const y=p.className,b=y?`${q.root} ${y}`:q.root,h=e?"":void 0,w=!a&&(!!r||!!t),C=p.checked!==void 0||p.defaultChecked!==void 0||t!==void 0||p.onClick!==void 0;return s.jsx(m.Chip,{ref:c,className:b,classNames:_,wrapperProps:h!==void 0?{"data-error":""}:void 0,...w?{"data-icon-only":""}:{},...C?{}:{tabIndex:-1,"aria-hidden":!0},...d,children:s.jsxs("span",{className:q.innerWrapper,children:[r&&s.jsx("span",{className:q.leadingIcon,"aria-hidden":!0,children:r}),s.jsx("span",{className:q.children,children:a}),t&&s.jsx("span",{role:"button",className:q.removeIcon,onClick:$=>{$.preventDefault(),$.stopPropagation(),t($)},"aria-label":o,onKeyDown:$=>{($.key==="Enter"||$.key===" ")&&($.preventDefault(),$.stopPropagation(),t($))},tabIndex:0,children:s.jsx(da,{})})]})})});ot.displayName="Chip";const pa="Container-module__root___UVssr",ke={root:pa},tt=u.forwardRef(function({children:e,size:r,...t},o){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=typeof r=="string"&&a[r]?a[r]:r,i={root:ke.root},c=t.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${ke.root} ${_.root}`:ke.root}const d=t.className,p=d?`${ke.root} ${d}`:ke.root;return s.jsx(m.Container,{ref:o,size:l,className:p,classNames:i,...t,children:e})});tt.displayName="Container";const ua="DatePicker-module__layoutOverride___X9yaM",ma="DatePicker-module__root___6XvRT",_a="DatePicker-module__input___pcSW8",fa="DatePicker-module__section___n3iWA",ya="DatePicker-module__dropdown___wjt08",ba="DatePicker-module__calendarHeader___KHxno",Na="DatePicker-module__day___U03J2",K={layoutOverride:ua,root:ma,input:_a,section:fa,dropdown:ya,calendarHeader:ba,day:Na},rt=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,className:C,style:$,disabled:N,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,value:j,defaultValue:A,...O}=e,M=f(O,t),g=M;delete g.size,delete g.variant,delete g.radius,delete g.description;const S={wrapper:K.root,input:K.input,section:K.section,dropdown:K.dropdown,day:K.day,calendarHeader:K.calendarHeader},k=g.classNames;if(k&&typeof k=="object"&&!Array.isArray(k)){const R=k;S.wrapper=R.wrapper?`${K.root} ${R.wrapper}`:K.root,S.input=R.input?`${K.input} ${R.input}`:K.input,S.section=R.section?`${K.section} ${R.section}`:K.section}const W=C?`${K.layoutOverride} ${C}`:K.layoutOverride;return s.jsx(J,{className:W,style:$,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:j!==void 0?String(j):A?String(A):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(zo.DatePickerInput,{ref:r,classNames:S,disabled:N,value:j,defaultValue:A,label:void 0,description:void 0,error:void 0,withAsterisk:!1,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":y?"true":void 0},...M})})});rt.displayName="DatePicker";const ha="Dropdown-module__layoutOverride___FNcvP",va="Dropdown-module__root___uVyL0",$a="Dropdown-module__input___dK4dN",xa="Dropdown-module__section___j3MRB",Ca="Dropdown-module__dropdown___gG-Sw",wa="Dropdown-module__option___nAGU-",F={layoutOverride:ha,root:va,input:$a,section:xa,dropdown:Ca,option:wa},st=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",containerWidth:a,labelSize:l,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:v,assistiveWithIcon:y,error:b,required:h,withAsterisk:w,id:C,className:$,style:N,disabled:T,readOnly:x,readOnlyComponent:L,emptyValueComponent:j,value:A,defaultValue:O,data:M,...g}=e,S=f(g,t),k=S;delete k.size,delete k.variant,delete k.radius;const W={wrapper:F.root,input:F.input,section:F.section,dropdown:F.dropdown,option:F.option},R=k.classNames;if(R&&typeof R=="object"&&!Array.isArray(R)){const D=R;W.wrapper=D.wrapper?`${F.root} ${D.wrapper}`:F.root,W.input=D.input?`${F.input} ${D.input}`:F.input,W.section=D.section?`${F.section} ${D.section}`:F.section,W.dropdown=D.dropdown?`${F.dropdown} ${D.dropdown}`:F.dropdown,W.option=D.option?`${F.option} ${D.option}`:F.option}const Z={...N||{},width:a||"100%"},te=$?`${F.layoutOverride} ${$}`:F.layoutOverride;return s.jsx(J,{className:te,style:Z,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:t,formLayout:o,labelSize:l,labelAlignment:i,labelOptionalText:c,labelWithEditIcon:d,onLabelEditClick:p,label:_,assistiveText:v,assistiveWithIcon:y,error:b,required:h,withAsterisk:w,id:C,readOnly:x,readOnlyComponent:L,emptyValueComponent:j,readOnlyType:"text",readOnlyValue:A!==void 0?String(A):O?String(O):void 0,readOnlyNativeProps:e,activeComponent:s.jsx(m.Select,{ref:r,classNames:W,disabled:T,value:A,defaultValue:O,data:M||[],label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,attributes:{wrapper:{"data-disabled":T?"true":void 0,"data-error":b?"true":void 0}},...S})})});st.displayName="Dropdown";const Pa=n=>s.jsx("div",{...n,children:"FileInput"}),Ta=n=>s.jsx("div",{...n,children:"FileUpload"}),ga="Flex-module__root___yYser",Ie={root:ga},at=u.forwardRef(function({children:e,gap:r="rec-default",rowGap:t,columnGap:o,...a},l){const i={root:Ie.root},c=a.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const _=c;i.root=_.root?`${Ie.root} ${_.root}`:Ie.root}const d=a.className,p=d?`${Ie.root} ${d}`:Ie.root;return s.jsx(m.Flex,{ref:l,className:p,classNames:i,...Be({gap:r,rowGap:t,columnGap:o,...a}),children:e})});at.displayName="Flex";const ja=m.createPolymorphicComponent(at),Sa="Grid-module__root___s-qPY",Ra="Grid-module__col___tbuNg",ne={root:Sa,col:Ra},nt=u.forwardRef(function({children:e,gap:r="rec-default",...t},o){const a={root:ne.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const _=l;a.root=_.root?`${ne.root} ${_.root}`:ne.root}const i=t.className,c=i?`${ne.root} ${i}`:ne.root,{gap:d,...p}=Be({gap:r,...t});return s.jsx(m.Grid,{ref:o,gutter:d,className:c,classNames:a,...p,children:e})});nt.displayName="Grid";const Aa=m.createPolymorphicComponent(nt),lt=u.forwardRef(function({children:e,...r},t){const o={col:ne.col},a=r.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const c=a;o.col=c.col?`${ne.col} ${c.col}`:ne.col}const l=r.className,i=l?`${ne.col} ${l}`:ne.col;return s.jsx(m.Grid.Col,{ref:t,className:i,classNames:o,...Be(r),children:e})});lt.displayName="GridCol";const it=m.createPolymorphicComponent(lt),ct=Aa;ct.Col=it;const Oa="Group-module__root___ftO64",We={root:Oa},dt=u.forwardRef(function({children:e,gap:r="rec-default",...t},o){const a={root:We.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${We.root} ${d.root}`:We.root}const i=t.className,c=i?`${We.root} ${i}`:We.root;return s.jsx(m.Group,{ref:o,className:c,classNames:a,...Be({gap:r,...t}),children:e})});dt.displayName="Group";const La="HoverCard-module__dropdown___FBPFW",Ma="HoverCard-module__arrow___S9AkE",Mo={dropdown:La,arrow:Ma},pt=function({overStyled:e=!1,withBeak:r=!0,...t}){const o=f(t,e),a={dropdown:Mo.dropdown,arrow:Mo.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(_=>{a[_]?a[_]=`${a[_]} ${p[_]}`:a[_]=p[_]})}const i=o.arrowSize??16,c=o.withArrow,d=r??c;return s.jsx(m.HoverCard,{position:"top",arrowSize:i,withArrow:d,classNames:a,...o})};pt.displayName="HoverCard";const ut=function(e){return s.jsx(m.HoverCard.Target,{...e})};ut.displayName="HoverCardTarget";const mt=function({overStyled:e=!1,...r}){const t=f(r,e),o=t.className;return s.jsx(m.HoverCard.Dropdown,{className:o,...t})};mt.displayName="HoverCardDropdown";const No=pt;No.Target=ut;No.Dropdown=mt;const ka="Link-module__root___I0VGE",Ia="Link-module__iconWrapper___W-LlF",Wa="Link-module__labelText___wSvUy",Pe={root:ka,iconWrapper:Ia,labelText:Wa},_t=u.forwardRef(function({icon:e,children:r,overStyled:t=!1,...o},a){const l=f(o,t),i=l,c={root:Pe.root},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const v=d;c.root=v.root?`${Pe.root} ${v.root}`:Pe.root}const p=i.className,_=p?`${Pe.root} ${p}`:Pe.root;return s.jsxs(m.Anchor,{ref:a,className:_,classNames:c,underline:"never",...e?{"data-has-icon":""}:{},...l,children:[e&&s.jsx("span",{className:Pe.iconWrapper,"aria-hidden":!0,children:e}),s.jsx("span",{className:Pe.labelText,children:r})]})});_t.displayName="Link";const za=m.createPolymorphicComponent(_t),Ea="Menu-module__dropdown___j4xuA",Ba="Menu-module__item___NMXha",Fa="Menu-module__itemLabel___zvcqC",Da="Menu-module__itemSection___pRIcn",Ga="Menu-module__divider___wPiNq",Va="Menu-module__label___4FBGa",Ha="Menu-module__chevron___hEEiy",Te={dropdown:Ea,item:Ba,itemLabel:Fa,itemSection:Da,divider:Ga,label:Va,chevron:Ha},ft=function({overStyled:e=!1,...r}){const t=f(r,e),o={dropdown:Te.dropdown,item:Te.item,itemLabel:Te.itemLabel,itemSection:Te.itemSection,divider:Te.divider,label:Te.label,chevron:Te.chevron},a=t.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const l=a;Object.keys(l).forEach(i=>{o[i]?o[i]=`${o[i]} ${l[i]}`:o[i]=l[i]})}return s.jsx(m.Menu,{classNames:o,...t})};ft.displayName="Menu";const yt=function(e){return s.jsx(m.Menu.Target,{...e})};yt.displayName="MenuTarget";const bt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx(m.Menu.Dropdown,{ref:t,className:a,...o})});bt.displayName="MenuDropdown";const Nt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o;e||delete a.color;const l=a.className;return s.jsx(m.Menu.Item,{ref:t,className:l,...o})});Nt.displayName="MenuItem";const qa=m.createPolymorphicComponent(Nt),ht=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx(m.Menu.Divider,{ref:t,className:a,...o})});ht.displayName="MenuDivider";const vt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx(m.Menu.Label,{ref:t,className:a,...o})});vt.displayName="MenuLabel";const $t=function(e){return s.jsx(m.Menu.Sub,{...e})};$t.displayName="MenuSub";const xt=function(e){return s.jsx(m.Menu.Sub.Target,{...e})};xt.displayName="MenuSubTarget";const Ct=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o;e||delete a.color;const l=a.className;return s.jsx(m.Menu.Sub.Item,{ref:t,className:l,...o})});Ct.displayName="MenuSubItem";const Ua=m.createPolymorphicComponent(Ct),wt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className;return s.jsx(m.Menu.Sub.Dropdown,{ref:t,className:a,...o})});wt.displayName="MenuSubDropdown";const to=$t;to.Target=xt;to.Item=Ua;to.Dropdown=wt;const Se=ft;Se.Target=yt;Se.Dropdown=bt;Se.Item=qa;Se.Divider=ht;Se.Label=vt;Se.Sub=to;const Ka="Modal-module__root___ytPLl",Ya="Modal-module__inner___SSUJE",Za="Modal-module__content___dWO-B",Qa="Modal-module__header___ILG9i",Xa="Modal-module__title___A5OeE",Ja="Modal-module__bodyWrapper___5CCL-",en="Modal-module__scrollArea___KD-hm",on="Modal-module__footer___rro2w",tn="Modal-module__close___-ER1C",de={root:Ka,inner:Ya,content:Za,header:Qa,title:Xa,bodyWrapper:Ja,scrollArea:en,footer:on,close:tn},Pt=u.forwardRef(function({overStyled:e=!1,children:r,title:t,withCloseButton:o=!0,overlayProps:a,withOverlay:l=!0,closeButtonProps:i,...c},d){const p=f(c,e),_={root:de.root,inner:de.inner,content:de.content,header:de.header,title:de.title,close:de.close},v=p.classNames;if(v&&typeof v=="object"&&!Array.isArray(v)){const y=v;Object.keys(y).forEach(b=>{_[b]?_[b]=`${_[b]} ${y[b]}`:_[b]=y[b]})}return s.jsxs(m.Modal.Root,{ref:d,classNames:_,...p,children:[l&&s.jsx(m.Modal.Overlay,{...a}),s.jsxs(m.Modal.Content,{children:[(t||o)&&s.jsxs(m.Modal.Header,{children:[t&&s.jsx(m.Modal.Title,{children:t}),o&&s.jsx(m.Modal.CloseButton,{...i})]}),s.jsx(vo,{children:r})]})]})});Pt.displayName="Modal";const ho=u.forwardRef(function({overStyled:e=!1,className:r,...t},o){const a=f(t,e);return s.jsx("div",{ref:o,className:`${de.footer} ${r||""}`,...a})});ho.displayName="Modal.Footer";const vo=u.forwardRef(function({className:e,onScroll:r,children:t,...o},a){const l=u.useRef(null),[i,c]=u.useState(!1),[d,p]=u.useState(!1),_=u.useCallback(()=>{if(l.current){const{scrollTop:h,scrollHeight:w,clientHeight:C}=l.current;c(h>0),p(Math.ceil(h+C)<w)}},[]);u.useEffect(()=>(_(),window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_,t]);const v=h=>{_(),r==null||r(h)};let y=null;const b=[];return u.Children.forEach(t,h=>{var w;u.isValidElement(h)&&(h.type===ho||((w=h.type)==null?void 0:w.displayName)==="Modal.Footer")?y=h:b.push(h)}),s.jsxs(m.Modal.Body,{...o,ref:h=>{typeof a=="function"?a(h):a&&(a.current=h)},className:`${de.bodyWrapper} ${e||""}`,children:[s.jsx("div",{ref:l,onScroll:v,"data-scrolled-top":i||void 0,"data-scrolled-bottom":d||void 0,className:de.scrollArea,children:b}),y]})});vo.displayName="Modal.Body";const Tt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Modal.Root,{ref:t,...o})});Tt.displayName="Modal.Root";const gt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Modal.Overlay,{ref:t,...o})});gt.displayName="Modal.Overlay";const jt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Modal.Content,{ref:t,...o})});jt.displayName="Modal.Content";const St=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Modal.Header,{ref:t,...o})});St.displayName="Modal.Header";const Rt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Modal.Title,{ref:t,...o})});Rt.displayName="Modal.Title";const At=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Modal.CloseButton,{ref:t,...o})});At.displayName="Modal.CloseButton";const me=Pt;me.Root=Tt;me.Overlay=gt;me.Content=jt;me.Header=St;me.Title=Rt;me.CloseButton=At;me.Body=vo;me.Footer=ho;const rn="NumberInput-module__layoutOverride___5-9T4",sn="NumberInput-module__root___C6rAn",an="NumberInput-module__input___Ss8p7",nn="NumberInput-module__section___MijP0",ln="NumberInput-module__controls___8UfQ2",cn="NumberInput-module__control___Qre9-",ge={layoutOverride:rn,root:sn,input:an,section:nn,controls:ln,control:cn},Ot=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,className:C,style:$,disabled:N,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,value:j,defaultValue:A,hideControls:O=!1,...M}=e,g=f(M,t),S=g;delete S.size,delete S.variant,delete S.radius;const k={wrapper:ge.root,input:ge.input,section:ge.section,controls:ge.controls,control:ge.control},W=C?`${ge.layoutOverride} ${C}`:ge.layoutOverride;return s.jsx(J,{className:W,style:$,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:j!==void 0?j==null?void 0:j.toString():A==null?void 0:A.toString(),readOnlyNativeProps:e,activeComponent:s.jsx(m.NumberInput,{ref:r,classNames:k,disabled:N,value:j,defaultValue:A,hideControls:O,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":y?"true":void 0,"data-with-left-section":S.leftSection?"true":void 0,"data-with-right-section":S.rightSection||!O?"true":void 0},...g})})});Ot.displayName="NumberInput";const dn="Pagination-module__root___ITRjt",pn="Pagination-module__control___40yNT",un="Pagination-module__dots___Yl9da",mn="Pagination-module__iconWithLabel___pLM4O",_n="Pagination-module__baseIcon___Qw3bJ",H={root:dn,control:pn,dots:un,iconWithLabel:mn,baseIcon:_n},fn="M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z",yn="M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z",bn="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",Nn="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",hn={next:fn,prev:yn,first:bn,last:Nn},Fe=({type:n,className:e,...r})=>s.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:`${H.baseIcon} ${e||""}`.trim(),...r,children:s.jsx("path",{d:hn[n],fill:"currentColor"})}),Lt=n=>s.jsxs("div",{className:H.iconWithLabel,children:[s.jsx("span",{children:"Next"}),s.jsx(Fe,{type:"next",...n})]}),Mt=n=>s.jsxs("div",{className:H.iconWithLabel,children:[s.jsx(Fe,{type:"prev",...n}),s.jsx("span",{children:"Prev"})]}),kt=n=>s.jsxs("div",{className:H.iconWithLabel,children:[s.jsx(Fe,{type:"first",...n}),s.jsx("span",{children:"First"})]}),It=n=>s.jsxs("div",{className:H.iconWithLabel,children:[s.jsx("span",{children:"Last"}),s.jsx(Fe,{type:"last",...n})]});function Wt(n){const e={root:H.root,control:H.control,dots:H.dots},r=n.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const a=r;e.root=a.root?`${H.root} ${a.root}`:H.root,e.control=a.control?`${H.control} ${a.control}`:H.control,e.dots=a.dots?`${H.dots} ${a.dots}`:H.dots}const t=n.className;return{className:t?`${H.root} ${t}`:H.root,classNames:e}}const zt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=Wt(o);return s.jsx(m.Pagination.Root,{ref:t,className:a.className,classNames:a.classNames,...o})});zt.displayName="Pagination.Root";const Et=u.forwardRef(function({overStyled:e=!1,withLabel:r,icon:t,...o},a){const l=f(o,e),i=t||(r?Lt:void 0);return s.jsx(m.Pagination.Next,{ref:a,"data-variant":"text",icon:i,...l})});Et.displayName="Pagination.Next";const Bt=u.forwardRef(function({overStyled:e=!1,withLabel:r,icon:t,...o},a){const l=f(o,e),i=t||(r?Mt:void 0);return s.jsx(m.Pagination.Previous,{ref:a,"data-variant":"text",icon:i,...l})});Bt.displayName="Pagination.Previous";const Ft=u.forwardRef(function({overStyled:e=!1,withLabel:r,icon:t,...o},a){const l=f(o,e),i=t||(r?kt:void 0);return s.jsx(m.Pagination.First,{ref:a,"data-variant":"text",icon:i,...l})});Ft.displayName="Pagination.First";const Dt=u.forwardRef(function({overStyled:e=!1,withLabel:r,icon:t,...o},a){const l=f(o,e),i=t||(r?It:void 0);return s.jsx(m.Pagination.Last,{ref:a,"data-variant":"text",icon:i,...l})});Dt.displayName="Pagination.Last";const Gt=u.forwardRef(function({overStyled:e=!1,getControlProps:r,withLabels:t,...o},a){const l=f(o,e),i=Wt(l),c=p=>{const _={"data-variant":"text"};return r?{..._,...r(p)}:_},d=t?{nextIcon:Lt,previousIcon:Mt,firstIcon:kt,lastIcon:It}:{};return s.jsx(m.Pagination,{ref:a,className:i.className,classNames:i.classNames,getControlProps:c,...d,...l})});Gt.displayName="Pagination";const Vt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Pagination.Control,{ref:t,...o})});Vt.displayName="Pagination.Control";const Ht=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Pagination.Dots,{ref:t,...o})});Ht.displayName="Pagination.Dots";const le=Gt;le.Root=zt;le.Items=m.Pagination.Items;le.Control=Vt;le.Dots=Ht;le.Next=Et;le.Previous=Bt;le.First=Ft;le.Last=Dt;le.Icon=Fe;const vn="Panel-module__content___wdGo-",$n="Panel-module__inner___ruA2b",xn="Panel-module__header___o7SiC",Cn="Panel-module__title___181OP",wn="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Pn="Panel-module__body___SEC3T",Tn="Panel-module__footer___t6-hz",ve={content:vn,inner:$n,header:xn,title:Cn,titleTruncate:wn,body:Pn,footer:Tn},qt=function({overStyled:e=!1,placement:r="right",keepMounted:t=!0,wrapHeaderText:o=!1,...a}){const l=f(a,e),i={content:ve.content,header:ve.header,title:o?ve.titleTruncate:ve.title,body:ve.body,inner:ve.inner},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{i[p]?i[p]=`${i[p]} ${d[p]}`:i[p]=d[p]})}return s.jsx(m.Drawer,{position:r,keepMounted:t,closeOnClickOutside:a.closeOnClickOutside??!!a.opened,...l,classNames:i})};qt.displayName="Panel";const $o=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className,l=a?`${ve.footer} ${a}`:ve.footer;return s.jsx("div",{ref:t,className:l,...o})});$o.displayName="PanelFooter";const Ut=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Drawer.Root,{ref:t,...o})});Ut.displayName="PanelRoot";const Kt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Drawer.Overlay,{ref:t,...o})});Kt.displayName="PanelOverlay";const Yt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Drawer.Content,{ref:t,...o})});Yt.displayName="PanelContent";const Zt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Drawer.Header,{ref:t,...o})});Zt.displayName="PanelHeader";const Qt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Drawer.Title,{ref:t,...o})});Qt.displayName="PanelTitle";const Xt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Drawer.CloseButton,{ref:t,...o})});Xt.displayName="PanelCloseButton";const Jt=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Drawer.Body,{ref:t,...o})});Jt.displayName="PanelBody";const ie=qt;ie.Root=Ut;ie.Overlay=Kt;ie.Content=Yt;ie.Header=Zt;ie.Title=Qt;ie.CloseButton=Xt;ie.Body=Jt;ie.Stack=m.Drawer.Stack;ie.Footer=$o;const gn="Popover-module__dropdown___svhS6",jn="Popover-module__arrow___5A-0e",ko={dropdown:gn,arrow:jn},er=function({overStyled:e=!1,withBeak:r=!0,...t}){const o=f(t,e),a={dropdown:ko.dropdown,arrow:ko.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(_=>{a[_]?a[_]=`${a[_]} ${p[_]}`:a[_]=p[_]})}const i=o.arrowSize??16,c=o.withArrow,d=r??c;return s.jsx(m.Popover,{position:"top",arrowSize:i,withArrow:d,classNames:a,...o})};er.displayName="Popover";const or=function(e){return s.jsx(m.Popover.Target,{...e})};or.displayName="PopoverTarget";const tr=function({overStyled:e=!1,...r}){const t=f(r,e),o=t.className;return s.jsx(m.Popover.Dropdown,{className:o,...t})};tr.displayName="PopoverDropdown";const xo=er;xo.Target=or;xo.Dropdown=tr;const Sn="Radio-module__groupRoot___bfUii",Rn="Radio-module__root___kAjTD",An="Radio-module__body___q2Wpj",On="Radio-module__inner___QaTBB",Ln="Radio-module__radio___MfgN-",Mn="Radio-module__icon___DWznm",kn="Radio-module__labelWrapper___dB0Gi",In="Radio-module__label___vAFIP",B={groupRoot:Sn,root:Rn,body:An,inner:On,radio:Ln,icon:Mn,labelWrapper:kn,label:In},Co=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:v,assistiveWithIcon:y,error:b,required:h,withAsterisk:w,id:C,className:$,style:N,children:T,readOnly:x,readOnlyComponent:L,emptyValueComponent:j,value:A,defaultValue:O,...M}=e,g=f(M,t),S=g;return delete S.size,s.jsx(J,{className:$,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:v,assistiveWithIcon:y,error:b,required:h,withAsterisk:w,id:C,readOnly:x&&!!L,readOnlyComponent:L,emptyValueComponent:j,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:e,activeComponent:s.jsx(m.Radio.Group,{ref:r,...g,disabled:x||S.disabled,value:A,defaultValue:O,children:s.jsx("div",{className:B.groupRoot,"data-layout":o,children:T})})})});Co.displayName="RadioGroup";const Wn=({className:n,style:e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:n,style:e,children:s.jsx("circle",{cx:"8",cy:"8",r:"5"})}),wo=u.forwardRef(function(e,r){const{overStyled:t=!1,readOnly:o,readOnlyComponent:a,disabled:l,formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,..._}=e,v=f(_,t),y=v;delete y.size,delete y.color,delete y.radius,delete y.variant,delete y.iconColor;const b={root:B.root,body:B.body,inner:B.inner,radio:B.radio,icon:B.icon,labelWrapper:B.labelWrapper,label:B.label},h=y.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const N=h;b.root=N.root?`${B.root} ${N.root}`:B.root,b.body=N.body?`${B.body} ${N.body}`:B.body,b.inner=N.inner?`${B.inner} ${N.inner}`:B.inner,b.radio=N.radio?`${B.radio} ${N.radio}`:B.radio,b.icon=N.icon?`${B.icon} ${N.icon}`:B.icon,b.labelWrapper=N.labelWrapper?`${B.labelWrapper} ${N.labelWrapper}`:B.labelWrapper,b.label=N.label?`${B.label} ${N.label}`:B.label}const w=y.className,C=w?`${B.root} ${w}`:B.root;if(o&&a){const N=!!(y.checked??y.defaultChecked),T=a,x=s.jsx(T,{...e,checked:N,label:y.label});return i?s.jsx(pe,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:x}):s.jsx(s.Fragment,{children:x})}const $=s.jsx(m.Radio,{ref:r,icon:Wn,className:C,classNames:b,disabled:o||l,...v});return i?s.jsx(pe,{formLayout:i,labelSize:c,controlMaxWidth:d,controlMinWidth:p,children:$}):$});wo.displayName="Radio";wo.Group=Co;const zn="SegmentedControl-module__root___JFRhg",En="SegmentedControl-module__label___mS17q",Bn="SegmentedControl-module__control___znOdQ",Fn="SegmentedControl-module__indicator___ZMcJy",Y={root:zn,label:En,control:Bn,indicator:Fn};function Dn(n){const e={root:Y.root,control:Y.control,label:Y.label,indicator:Y.indicator},r=n.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const a=r;e.root=a.root?`${Y.root} ${a.root}`:Y.root,e.control=a.control?`${Y.control} ${a.control}`:Y.control,e.label=a.label?`${Y.label} ${a.label}`:Y.label,e.indicator=a.indicator?`${Y.indicator} ${a.indicator}`:Y.indicator}const t=n.className;return{className:t?`${Y.root} ${t}`:Y.root,classNames:e}}const rr=u.forwardRef(function({overStyled:e=!1,orientation:r="horizontal",fullWidth:t,...o},a){const l=f(o,e),i=l;delete i.disabled;const c=Dn(i);return s.jsx(m.SegmentedControl,{ref:a,className:c.className,classNames:c.classNames,orientation:r,fullWidth:t,"data-orientation":r,...l})});rr.displayName="SegmentedControl";const Gn=rr,Vn="Slider-module__layoutOverride___zYPun",Hn="Slider-module__sliderContainer___y8I0J",qn="Slider-module__sliderTrackWrapper___UHpVh",Un="Slider-module__iconWrapper___uqHpC",Kn="Slider-module__sliderRoot___LI86H",Yn="Slider-module__sliderTrack___oqnlG",Zn="Slider-module__sliderBar___TI4VY",Qn="Slider-module__sliderThumb___OFn8p",Xn="Slider-module__sliderMark___1lM2B",Jn="Slider-module__minMaxGuide___TaGqz",el="Slider-module__rightGuideContainer___8dOT8",ol="Slider-module__currentValue___dGV2T",tl="Slider-module__inputField___6x578",rl="Slider-module__readOnlyValue___-ZzMW",I={layoutOverride:Vn,sliderContainer:Hn,sliderTrackWrapper:qn,iconWrapper:Un,sliderRoot:Kn,sliderTrack:Yn,sliderBar:Zn,sliderThumb:Qn,sliderMark:Xn,minMaxGuide:Jn,rightGuideContainer:el,currentValue:ol,inputField:tl,readOnlyValue:rl},sl=({value:n})=>s.jsx("div",{className:I.readOnlyValue,children:n}),sr=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:_,tooltipLabel:v,assistiveText:y,assistiveWithIcon:b,error:h,required:w,withAsterisk:C,id:$,className:N,style:T,disabled:x,readOnly:L,readOnlyComponent:j,emptyValueComponent:A,value:O,defaultValue:M,icon:g,showInput:S=!1,showMinMaxLabels:k=!0,min:W=0,max:R=100,step:Z=1,onChange:te,onChangeEnd:D,...Re}=e,[fe,De]=u.useState(()=>O!==void 0?O:M!==void 0?M:W),re=O!==void 0?O:fe,[ro,Oe]=u.useState(re.toString());u.useEffect(()=>{Oe(re.toString())},[re]);const se=G=>{O===void 0&&De(G),te==null||te(G)},Ge=G=>{const Ro=G.target.value;Oe(Ro);const Ao=parseFloat(Ro);if(!isNaN(Ao)){const kr=Math.max(W,Math.min(R,Ao));se(kr)}},so=()=>{Oe(re.toString())},So=f(Re,t),Le=So;delete Le.size,delete Le.variant,delete Le.radius,delete Le.wrapperProps;const we={root:I.sliderRoot,track:I.sliderTrack,bar:I.sliderBar,thumb:I.sliderThumb,mark:I.sliderMark,markLabel:I.sliderMarkLabel},Ve=Le.classNames;if(Ve&&typeof Ve=="object"&&!Array.isArray(Ve)){const G=Ve;we.root=G.root?`${I.sliderRoot} ${G.root}`:I.sliderRoot,we.track=G.track?`${I.sliderTrack} ${G.track}`:I.sliderTrack,we.bar=G.bar?`${I.sliderBar} ${G.bar}`:I.sliderBar,we.thumb=G.thumb?`${I.sliderThumb} ${G.thumb}`:I.sliderThumb,we.mark=G.mark?`${I.sliderMark} ${G.mark}`:I.sliderMark,we.markLabel=G.markLabel?`${I.sliderMarkLabel} ${G.markLabel}`:I.sliderMarkLabel}const Lr=N?`${I.layoutOverride} ${N}`:I.layoutOverride,Mr=g?s.jsx("span",{className:I.iconWrapper,"aria-hidden":!0,children:g}):null;return s.jsx(J,{ref:r,className:Lr,style:T,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,labelActionArea:d,onLabelEditClick:p,label:_,assistiveText:y,assistiveWithIcon:b,error:h,required:w,withAsterisk:C,id:$,readOnly:L,readOnlyComponent:j||sl,emptyValueComponent:A,readOnlyType:"text",readOnlyValue:re,readOnlyNativeProps:{value:re},activeComponent:s.jsxs("div",{className:I.sliderContainer,"data-form-layout":o,"data-disabled":x?"true":void 0,"data-error":h?"true":void 0,children:[Mr,k&&s.jsx("span",{className:I.minMaxGuide,children:W}),s.jsx("div",{className:I.sliderTrackWrapper,children:s.jsx(m.Slider,{classNames:we,disabled:x,value:re,onChange:se,onChangeEnd:D,min:W,max:R,step:Z,label:v,...So})}),s.jsxs("div",{className:I.rightGuideContainer,children:[!S&&s.jsx("span",{className:I.currentValue,children:re}),k&&s.jsx("span",{className:I.minMaxGuide,children:R})]}),S&&s.jsx("input",{type:"number",className:I.inputField,value:ro,onChange:Ge,onBlur:so,min:W,max:R,step:Z,disabled:x,"data-error":h?"true":void 0})]})})});sr.displayName="Slider";const al="Stack-module__root___NUN-x",ze={root:al},ar=u.forwardRef(function({children:e,gap:r="rec-default",...t},o){const a={root:ze.root},l=t.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${ze.root} ${d.root}`:ze.root}const i=t.className,c=i?`${ze.root} ${i}`:ze.root;return s.jsx(m.Stack,{ref:o,className:c,classNames:a,...Be({gap:r,...t}),children:e})});ar.displayName="Stack";const nl=m.createPolymorphicComponent(ar),ll="Stepper-module__root___jbSYO",il="Stepper-module__horizontal___USHT1",cl="Stepper-module__steps___4HPO6",dl="Stepper-module__step___s2nqL",pl="Stepper-module__stepBody___TBvys",ul="Stepper-module__stepLabel___N6nuy",ml="Stepper-module__stepDescription___DnDAy",_l="Stepper-module__separator___pU0No",fl="Stepper-module__vertical___d4mOs",yl="Stepper-module__large___J18-y",bl="Stepper-module__small___Ub-zb",Nl="Stepper-module__stepIcon___YQHNq",hl="Stepper-module__stepCompletedIcon___B9MeL",vl="Stepper-module__verticalSeparator___frWc1",$l="Stepper-module__content___J-h8X",U={root:ll,horizontal:il,steps:cl,step:dl,stepBody:pl,stepLabel:ul,stepDescription:ml,separator:_l,vertical:fl,large:yl,small:bl,stepIcon:Nl,stepCompletedIcon:hl,verticalSeparator:vl,content:$l},nr=u.forwardRef(function(e,r){const{overStyled:t=!1,size:o="large",orientation:a="horizontal",className:l,style:i,...c}=e,d=f(c,t);return s.jsx(m.Stepper,{ref:r,orientation:a,className:`${U.root} ${a==="horizontal"?U.horizontal:U.vertical} ${o==="large"?U.large:U.small} ${l||""}`,style:i,"data-size":o,"data-orientation":a,classNames:{steps:U.steps,step:U.step,stepIcon:U.stepIcon,stepCompletedIcon:U.stepCompletedIcon,stepBody:U.stepBody,stepLabel:U.stepLabel,stepDescription:U.stepDescription,separator:U.separator,verticalSeparator:U.verticalSeparator,content:U.content},...d})}),lr=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Stepper.Step,{ref:t,...o})});lr.displayName="Stepper.Step";const xl=Object.assign(nr,{Step:lr,Completed:m.Stepper.Completed});nr.displayName="Stepper";const Cl="Switch-module__root___Y5Ydi",wl="Switch-module__track___7ObdZ",Pl="Switch-module__body___Sw9Wr",Tl="Switch-module__thumb___-FTeK",gl="Switch-module__labelWrapper___YSOwx",jl="Switch-module__label___LrH7V",Sl="Switch-module__thumbIconWrapper___sCY-1",Rl="Switch-module__checkIcon___ZBAQN",Al="Switch-module__closeIcon___bLLGw",Ol="Switch-module__groupRoot___-Uepi",z={root:Cl,track:wl,body:Pl,thumb:Tl,labelWrapper:gl,label:jl,thumbIconWrapper:Sl,checkIcon:Rl,closeIcon:Al,groupRoot:Ol},Po=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:v,assistiveWithIcon:y,error:b,required:h,withAsterisk:w,id:C,className:$,style:N,children:T,readOnly:x,readOnlyComponent:L,emptyValueComponent:j,value:A,defaultValue:O,...M}=e,g=f(M,t),S=g;return delete S.size,s.jsx(J,{className:$,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:t,labelElement:"div",formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,description:_,assistiveText:v,assistiveWithIcon:y,error:b,required:h,withAsterisk:w,id:C,readOnly:x&&!!L,readOnlyComponent:L,emptyValueComponent:j,readOnlyType:"text",readOnlyValue:A!==void 0?A:O,readOnlyNativeProps:e,activeComponent:s.jsx(m.Switch.Group,{ref:r,...g,disabled:x||S.disabled,value:A,defaultValue:O,children:s.jsx("div",{className:z.groupRoot,"data-layout":o,children:T})})})});Po.displayName="SwitchGroup";const To=u.forwardRef(function(e,r){const{overStyled:t=!1,readOnly:o,readOnlyComponent:a,disabled:l,thumbIcon:i,formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,...v}=e,y=f(v,t),b=y;delete b.size,delete b.color,delete b.radius,delete b.variant;const h={root:z.root,body:z.body,track:z.track,thumb:z.thumb,trackLabel:z.trackLabel,labelWrapper:z.labelWrapper,label:z.label},w=b.classNames;if(w&&typeof w=="object"&&!Array.isArray(w)){const x=w;h.root=x.root?`${z.root} ${x.root}`:z.root,h.body=x.body?`${z.body} ${x.body}`:z.body,h.track=x.track?`${z.track} ${x.track}`:z.track,h.thumb=x.thumb?`${z.thumb} ${x.thumb}`:z.thumb,h.trackLabel=x.trackLabel?`${z.trackLabel} ${x.trackLabel}`:z.trackLabel,h.labelWrapper=x.labelWrapper?`${z.labelWrapper} ${x.labelWrapper}`:z.labelWrapper,h.label=x.label?`${z.label} ${x.label}`:z.label}const C=b.className,$=C?`${z.root} ${C}`:z.root;if(o&&a){const x=!!(b.checked??b.defaultChecked),L=a,j=s.jsx(L,{...e,checked:x,label:b.label});return c?s.jsx(pe,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:j}):s.jsx(s.Fragment,{children:j})}const N=s.jsxs("div",{className:z.thumbIconWrapper,children:[s.jsx(m.CheckIcon,{className:z.checkIcon}),s.jsx(m.CloseIcon,{className:z.closeIcon})]}),T=s.jsx(m.Switch,{ref:r,className:$,classNames:h,disabled:o||l,"data-disabled":o||l||void 0,thumbIcon:i??N,...y});return c?s.jsx(pe,{formLayout:c,labelSize:d,controlMaxWidth:p,controlMinWidth:_,children:T}):T});To.displayName="Switch";To.Group=Po;const Ll="Table-module__root___aMWWS",Ml={root:Ll},ir=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a=o.className,l=Ml.root,i=a?`${l} ${a}`:l;return s.jsx(m.Table,{ref:t,className:i,...o})});ir.displayName="Table";const cr=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Table.Thead,{ref:t,...o})});cr.displayName="TableThead";const dr=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Table.Tbody,{ref:t,...o})});dr.displayName="TableTbody";const pr=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Table.Tr,{ref:t,...o})});pr.displayName="TableTr";const ur=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Table.Th,{ref:t,...o})});ur.displayName="TableTh";const mr=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Table.Td,{ref:t,...o})});mr.displayName="TableTd";const _r=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Table.Tfoot,{ref:t,...o})});_r.displayName="TableTfoot";const fr=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Table.Caption,{ref:t,...o})});fr.displayName="TableCaption";const yr=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Table.ScrollContainer,{ref:t,...o})});yr.displayName="TableScrollContainer";const _e=ir;_e.Thead=cr;_e.Tbody=dr;_e.Tr=pr;_e.Th=ur;_e.Td=mr;_e.Tfoot=_r;_e.Caption=fr;_e.ScrollContainer=yr;const kl="Tabs-module__root___-VKVI",Il="Tabs-module__list___qRVME",Wl="Tabs-module__tab___IdDYc",zl="Tabs-module__panel___08i9c",qe={root:kl,list:Il,tab:Wl,panel:zl},br=u.forwardRef(function(e,r){const{variant:t="default",orientation:o="horizontal",overStyled:a=!1,className:l,...i}=e,c=f(i,a);return s.jsx(m.Tabs,{ref:r,variant:t,orientation:o,className:`${qe.root} ${l||""}`,"data-variant":t,"data-orientation":o,classNames:{list:qe.list,tab:qe.tab,panel:qe.panel},...c})});br.displayName="Tabs";const Nr=u.forwardRef(function(e,r){const{overStyled:t=!1,...o}=e;return s.jsx(m.Tabs.List,{ref:r,...f(o,t)})});Nr.displayName="Tabs.List";const hr=u.forwardRef(function(e,r){const{overStyled:t=!1,...o}=e;return s.jsx(m.Tabs.Tab,{ref:r,...f(o,t)})});hr.displayName="Tabs.Tab";const vr=u.forwardRef(function(e,r){const{overStyled:t=!1,...o}=e;return s.jsx(m.Tabs.Panel,{ref:r,...f(o,t)})});vr.displayName="Tabs.Panel";const El=Object.assign(br,{List:Nr,Tab:hr,Panel:vr}),$r=u.forwardRef(function({overStyled:e=!1,variant:r="body",...t},o){const a=f(t,e),l=a.className,i=`recursica_brand_typography_${r}`,c=l?`${i} ${l}`:i;return s.jsx(m.Text,{ref:o,className:c,...a})});$r.displayName="Text";const Bl=m.createPolymorphicComponent($r),Fl="TextArea-module__layoutOverride___4MCdm",Dl="TextArea-module__root___3dyeu",Gl="TextArea-module__input___8l36v",be={layoutOverride:Fl,root:Dl,input:Gl},xr=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,className:C,style:$,disabled:N,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,value:j,defaultValue:A,...O}=e,M=f(O,t),g=M;delete g.size,delete g.variant,delete g.radius;const S={wrapper:be.root,input:be.input},k=g.classNames;if(k&&typeof k=="object"&&!Array.isArray(k)){const R=k;S.wrapper=R.wrapper?`${be.root} ${R.wrapper}`:be.root,S.input=R.input?`${be.input} ${R.input}`:be.input}const W=C?`${be.layoutOverride} ${C}`:be.layoutOverride;return s.jsx(J,{className:W,style:$,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:j!==void 0?j:A,readOnlyNativeProps:e,activeComponent:s.jsx(m.Textarea,{ref:r,classNames:S,disabled:N,value:j,defaultValue:A,label:void 0,description:void 0,error:void 0,required:void 0,withAsterisk:void 0,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":y?"true":void 0},...M})})});xr.displayName="TextArea";const Vl="TextField-module__layoutOverride___SNZqc",Hl="TextField-module__root___2ZYkG",ql="TextField-module__input___RL-My",Ul="TextField-module__section___bCIJ0",oe={layoutOverride:Vl,root:Hl,input:ql,section:Ul},Cr=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,className:C,style:$,disabled:N,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,value:j,defaultValue:A,...O}=e,M=f(O,t),g=M;delete g.size,delete g.variant,delete g.radius;const S={wrapper:oe.root,input:oe.input,section:oe.section},k=g.classNames;if(k&&typeof k=="object"&&!Array.isArray(k)){const R=k;S.wrapper=R.wrapper?`${oe.root} ${R.wrapper}`:oe.root,S.input=R.input?`${oe.input} ${R.input}`:oe.input,S.section=R.section?`${oe.section} ${R.section}`:oe.section}const W=C?`${oe.layoutOverride} ${C}`:oe.layoutOverride;return s.jsx(J,{className:W,style:$,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:j!==void 0?j:A,readOnlyNativeProps:e,activeComponent:s.jsx(m.Input,{ref:r,classNames:S,disabled:N,value:j,defaultValue:A,wrapperProps:{"data-disabled":N?"true":void 0,"data-error":y?"true":void 0},...M})})});Cr.displayName="TextField";const wr=u.forwardRef(function(e,r){const{overStyled:t=!1,className:o,disabled:a,error:l,...i}=e,c=f(i,t),d=c;delete d.size,delete d.variant,delete d.radius;const p={wrapper:o?`${F.root} ${o}`:F.root,input:F.input,section:F.section,dropdown:F.dropdown,option:F.option};return s.jsx(m.Select,{ref:r,classNames:p,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}},...c})});wr.displayName="BareDropdown";const Kl="TimePicker-module__layoutOverride___zKo4Q",Yl="TimePicker-module__root___BcvRu",Zl="TimePicker-module__timeWrapper___hJVre",Ql="TimePicker-module__timeInput___FQysn",Xl="TimePicker-module__fieldsGroup___2yHhR",Jl="TimePicker-module__timeField___twRZd",ei="TimePicker-module__amPmSelect___mSdvt",Ne={layoutOverride:Kl,root:Yl,timeWrapper:Zl,timeInput:Ql,fieldsGroup:Xl,timeField:Jl,amPmSelect:ei},oi=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Io(n){if(!n)return;const e=parseInt(n.slice(0,2),10);return Number.isNaN(e)?void 0:e}function ti(n,e){return`${String(e).padStart(2,"0")}${n.slice(2)}`}function ri(n){if(!n)return;const[e,r,t]=n.split(":"),o=parseInt(e,10);if(Number.isNaN(o)||r===void 0)return n;const a=o>=12,l=o%12===0?12:o%12,i=t!==void 0?`${r}:${t}`:r;return`${l}:${i} ${a?"PM":"AM"}`}function si(n,e){var t;const r=(t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value"))==null?void 0:t.set;r==null||r.call(n,e),n.dispatchEvent(new Event("change",{bubbles:!0}))}const Pr=u.forwardRef(function(e,r){const{overStyled:t=!1,formLayout:o="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,className:C,style:$,disabled:N,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,value:j,defaultValue:A,onChange:O,withSeconds:M,minTime:g,maxTime:S,...k}=e,W=f(k,t),R=W;delete R.size,delete R.variant,delete R.radius;const[Z,te]=u.useState(()=>j??A);u.useEffect(()=>{j!==void 0&&te(j)},[j]);const D=u.useRef(null);u.useEffect(()=>{Io(j??A)===void 0&&D.current&&si(D.current,"AM")},[]);const Re=se=>{te(se),O==null||O(se)},fe=Io(Z),De=fe!==void 0&&fe>=12,re=se=>{Re(se)},ro=se=>{if(fe===void 0||!Z||!se)return;const Ge=se==="PM";if(Ge===De)return;const so=Ge?fe+12:fe-12;Re(ti(Z,so))},Oe=C?`${Ne.layoutOverride} ${C}`:Ne.layoutOverride;return s.jsx(J,{className:Oe,style:$,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:t,formLayout:o,labelSize:a,labelAlignment:l,labelOptionalText:i,labelWithEditIcon:c,onLabelEditClick:d,label:p,assistiveText:_,assistiveWithIcon:v,error:y,required:b,withAsterisk:h,id:w,readOnly:T,readOnlyComponent:x,emptyValueComponent:L,readOnlyType:"text",readOnlyValue:ri(j!==void 0?j:A),readOnlyNativeProps:e,activeComponent:s.jsxs("div",{className:Ne.root,"data-disabled":N?"true":void 0,"data-error":y?"true":void 0,children:[s.jsx(zo.TimePicker,{ref:r,classNames:{wrapper:Ne.timeWrapper,input:Ne.timeInput,fieldsGroup:Ne.fieldsGroup,field:Ne.timeField},disabled:N,value:Z,onChange:re,format:"12h",withSeconds:M,min:g,max:S,withDropdown:!1,amPmRef:D,...W}),s.jsx(wr,{overStyled:!0,className:Ne.amPmSelect,styles:{wrapper:{width:"fit-content"}},data:oi,value:fe===void 0?null:De?"PM":"AM",onChange:ro,disabled:N,error:!!y,"aria-label":"AM or PM"})]})})});Pr.displayName="TimePicker";const ai="Timeline-module__root___LwRdZ",ni="Timeline-module__item___T5xdQ",li="Timeline-module__itemBody___XAV-E",ii="Timeline-module__itemBullet___rPXCy",ci="Timeline-module__itemTitle___GgRRW",di="Timeline-module__itemContent___vurs-",pi="Timeline-module__description___f9sxV",ui="Timeline-module__timestamp___owiRu",he={root:ai,item:ni,itemBody:li,itemBullet:ii,itemTitle:ci,itemContent:di,description:pi,timestamp:ui},go=u.forwardRef(function({overStyled:e=!1,timestamp:r,bulletVariant:t="default",children:o,...a},l){const i=f(a,e),c={item:he.item,itemBody:he.itemBody,itemContent:he.itemContent,itemBullet:he.itemBullet,itemTitle:he.itemTitle},d=i.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const _=d;Object.keys(_).forEach(v=>{c[v]?c[v]=`${c[v]} ${_[v]}`:c[v]=_[v]})}const p=r?s.jsxs(s.Fragment,{children:[o&&s.jsx("div",{className:he.description,children:o}),s.jsx("div",{className:he.timestamp,children:r})]}):o;return s.jsx(m.TimelineItem,{ref:l,classNames:c,"data-variant":t,...i,children:p})});go.displayName="TimelineItem";const Tr=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e),a={root:he.root},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const i=l;Object.keys(i).forEach(c=>{a[c]?a[c]=`${a[c]} ${i[c]}`:a[c]=i[c]})}return s.jsx(m.Timeline,{ref:t,classNames:a,...o})});Tr.displayName="Timeline";const gr=Tr;gr.Item=go;const jr=u.forwardRef(function({overStyled:e=!1,order:r=1,...t},o){const a=f(t,e),l=a.className,i=`recursica_brand_typography_h${r}`,c=l?`${i} ${l}`:i;return s.jsx(m.Title,{ref:o,order:r,className:c,...a})});jr.displayName="Title";const mi="Toast-module__root___MUvfI",_i="Toast-module__icon___VwvE1",fi="Toast-module__loader___8Gxd-",yi="Toast-module__title___-H6R2",bi="Toast-module__description___-QwfC",Ni="Toast-module__closeButton___vGr7g",hi="Toast-module__body___VLkXA",je={root:mi,icon:_i,loader:fi,title:yi,description:bi,closeButton:Ni,body:hi},Sr=u.forwardRef(function({overStyled:e=!1,variant:r="default",withCloseButton:t=!0,...o},a){const l=f(o,e),i={root:je.root,body:je.body,title:je.title,description:je.description,closeButton:je.closeButton,icon:je.icon,loader:je.loader},c=l.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const d=c;Object.keys(d).forEach(p=>{i[p]?i[p]=`${i[p]} ${d[p]}`:i[p]=d[p]})}return s.jsx(m.Notification,{ref:a,withCloseButton:t,withBorder:!1,"data-variant":r,classNames:i,loading:!1,...l})});Sr.displayName="Toast";const vi="Tooltip-module__tooltip___UA7H9",$i="Tooltip-module__arrow___4zROk",Wo={tooltip:vi,arrow:$i},Rr=function({overStyled:e=!1,withBeak:r=!0,...t}){const o=f(t,e),a={tooltip:Wo.tooltip,arrow:Wo.arrow},l=o.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const p=l;Object.keys(p).forEach(_=>{a[_]?a[_]=`${a[_]} ${p[_]}`:a[_]=p[_]})}const i=o.arrowSize??16,c=o.withArrow,d=r??c;return s.jsx(m.Tooltip,{position:"top",multiline:!0,arrowSize:i,withArrow:d,classNames:a,...o})};Rr.displayName="Tooltip";const Ar=u.forwardRef(function({overStyled:e=!1,...r},t){const o=f(r,e);return s.jsx(m.Tooltip.Floating,{ref:t,...o})});Ar.displayName="TooltipFloating";const jo=Rr;jo.Floating=Ar;jo.Group=m.Tooltip.Group;const xi=n=>s.jsx("div",{...n,children:"TransferList"}),Ci="Tree-module__root___ANcH3",wi="Tree-module__subtree___KoLT8",Pi="Tree-module__node___Hvnjg",Ti="Tree-module__row___sq5ff",gi="Tree-module__label___zJDit",ji="Tree-module__expandButton___W0WTT",Si="Tree-module__expandGlyph___w8dDQ",xe={root:Ci,subtree:wi,node:Pi,row:Ti,label:gi,expandButton:ji,expandGlyph:Si};function Ri(){return s.jsx("svg",{className:xe.expandGlyph,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:s.jsx("path",{d:"M5 3l5 5-5 5"})})}function Ai(n){return function({node:r,hasChildren:t,expanded:o,selected:a,tree:l,elementProps:i}){return s.jsxs("div",{...i,className:xe.row,"data-has-children":t||void 0,"data-expanded":t&&o?!0:void 0,children:[s.jsx(Ko,{overStyled:!0,variant:"text",size:"small",icon:s.jsx(Ri,{}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:xe.expandButton,onClick:c=>{c.stopPropagation(),!n&&l.toggleExpanded(r.value)}}),s.jsx("span",{className:xe.label,"data-selected":a||void 0,children:r.label})]})}}const Or=u.forwardRef(function({overStyled:e=!1,data:r,initialExpandedValues:t,initialSelectedValues:o,multiple:a=!1,disabled:l=!1,onNodeExpand:i,onNodeCollapse:c,onSelectedChange:d,...p},_){const v=f(p,e),y=m.useTree({initialExpandedState:t?m.getTreeExpandedState(r,t):void 0,initialSelectedState:o,multiple:a,onNodeExpand:i,onNodeCollapse:c});u.useEffect(()=>{d==null||d(y.selectedState)},[y.selectedState,d]);const b=u.useRef(null);u.useEffect(()=>{const $=b.current;if(!$)return;const N=T=>{if(l||T.key!=="Enter"&&T.key!==" ")return;const x=T.target.closest('[role="treeitem"]'),L=x==null?void 0:x.dataset.value;L&&(T.preventDefault(),y.select(L))};return $.addEventListener("keydown",N),()=>$.removeEventListener("keydown",N)},[y.select,l]),u.useEffect(()=>{const $=b.current;if(!$||!l)return;const N=T=>{T.preventDefault(),T.stopPropagation()};return $.addEventListener("keydown",N,{capture:!0}),()=>$.removeEventListener("keydown",N,{capture:!0})},[l]);const h=Ir.useMergedRef(_,b),w=v.className,C=w?`${xe.root} ${w}`:xe.root;return s.jsx(m.Tree,{ref:h,data:r,tree:y,expandOnClick:!1,selectOnClick:!l,expandOnSpace:!1,renderNode:Ai(l),"data-disabled":l||void 0,classNames:{root:C,node:xe.node,subtree:xe.subtree},...v})});Or.displayName="Tree";const Oi=ja,Li=ct,Mi=it,ki=dt,Ii=nl,Wi=tt,zi=za,Ei=Bl,Bi=P(eo),Fi=P(io),Di=P(Xe),Gi=P(Je),Vi=P(Ye),Hi=P(Go),qi=P(Rs),Ui=P(Os),Ki=P(qo),Yi=P(Ko),Zi=P(Ks),Qi=P(bo),Xi=P(yo),Ji=P(ot),ec=P(rt),oc=P(st),tc=P(Pa),rc=P(Ta),sc=P(pe),ac=P(No),nc=P(fo),lc=P(co),ic=P(Se),cc=P(me),dc=P(Ot),pc=P(le),uc=P(ie),mc=P($o),_c=P(xo),fc=P(wo),yc=P(Co),bc=P(_o),Nc=P(Gn),hc=P(sr),vc=P(xl),$c=P(To),xc=P(Po),Cc=P(_e),wc=P(El),Pc=P(xr),Tc=P(Cr),gc=P(Pr),jc=P(gr),Sc=P(go),Rc=P(jr),Ac=P(Sr),Oc=P(jo),Lc=P(xi),Mc=P(Or);exports.Accordion=Bi;exports.AccordionControl=Di;exports.AccordionItem=Fi;exports.AccordionPanel=Gi;exports.AssistiveElement=Vi;exports.AutoComplete=Hi;exports.Avatar=qi;exports.Badge=Ui;exports.Breadcrumb=Ki;exports.Button=Yi;exports.Card=Zi;exports.Checkbox=Qi;exports.CheckboxGroup=Xi;exports.Chip=Ji;exports.Container=Wi;exports.DatePicker=ec;exports.Dropdown=oc;exports.EmptyValueRenderer=Ee;exports.FileInput=tc;exports.FileUpload=rc;exports.Flex=Oi;exports.FormControlLayout=sc;exports.Grid=Li;exports.GridCol=Mi;exports.Group=ki;exports.HoverCard=ac;exports.IS_DEV=Ce;exports.Label=lc;exports.Layer=po;exports.Link=zi;exports.Loader=nc;exports.Menu=ic;exports.Modal=cc;exports.NumberInput=dc;exports.Pagination=pc;exports.Panel=uc;exports.PanelFooter=mc;exports.Popover=_c;exports.RECURSICA_COMPONENTS=fs;exports.Radio=fc;exports.RadioGroup=yc;exports.ReadOnlyField=bc;exports.RecursicaThemeProvider=_s;exports.SegmentedControl=Nc;exports.Slider=hc;exports.Stack=Ii;exports.Stepper=vc;exports.Switch=$c;exports.SwitchGroup=xc;exports.Table=Cc;exports.Tabs=wc;exports.Text=Ei;exports.TextArea=Pc;exports.TextField=Tc;exports.TimePicker=gc;exports.Timeline=jc;exports.TimelineItem=Sc;exports.Title=Rc;exports.Toast=Ac;exports.Tooltip=Oc;exports.TransferList=Lc;exports.Tree=Mc;exports.copyToClipboard=ys;exports.injectOverStyledStyles=uo;exports.isGlobalOverStyledActive=ms;exports.registerOverStyledConsoleCommand=mo;exports.toggleGlobalOverStyled=Fo;exports.useGlobalOverStyled=Do;exports.wrapComponent=P;
12
12
  //# sourceMappingURL=mantine-adapter.cjs.map