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