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