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