@recursica/mantine-adapter 0.49.0 → 0.50.1
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.
- package/CHANGELOG.md +17 -0
- package/dist/index.d.ts +6 -0
- package/dist/mantine-adapter.cjs +2 -2
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +12 -4
- package/dist/mantine-adapter.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DatePicker/DATEPICKER_IMPLEMENTATION_NOTES.md +1 -0
- package/src/components/DatePicker/DatePicker.module.css +13 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +25 -0
- package/src/components/Menu/MENU_IMPLEMENTATION_NOTES.md +10 -0
- package/src/components/Menu/Menu.stories.tsx +42 -0
- package/src/components/Menu/Menu.tsx +24 -2
- package/src/components/Menu/USAGE.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @recursica/mantine-adapter
|
|
2
2
|
|
|
3
|
+
## 0.50.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a41c9ce: Fix DatePicker calendar day focus ring using the browser's default blue outline instead of a Recursica token.
|
|
8
|
+
|
|
9
|
+
## 0.50.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 2369301: Add optional `maxHeight` prop to Menu, overriding the token-driven dropdown max-height with an explicit pixel value.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [2369301]
|
|
18
|
+
- @recursica/adapter-common@0.25.0
|
|
19
|
+
|
|
3
20
|
## 0.49.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2351,6 +2351,12 @@ export declare interface RecursicaLoaderProps {
|
|
|
2351
2351
|
* Props for the Recursica Menu component.
|
|
2352
2352
|
*/
|
|
2353
2353
|
export declare interface RecursicaMenuProps {
|
|
2354
|
+
/**
|
|
2355
|
+
* Overrides the dropdown's token-driven max-height with an explicit pixel (or other CSS
|
|
2356
|
+
* length) value. Escape hatch for callers that need an arbitrary menu height the design
|
|
2357
|
+
* tokens don't express; leave unset to use the token default.
|
|
2358
|
+
*/
|
|
2359
|
+
maxHeight?: default_2.CSSProperties["maxHeight"];
|
|
2354
2360
|
}
|
|
2355
2361
|
|
|
2356
2362
|
/**
|
package/dist/mantine-adapter.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=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=c.forwardRef(function({layer:r,contentsOnly:e,children:s,className:t,style:n,...a},l){const i=e?t?`${io.root} ${io.contents} ${t}`:`${io.root} ${io.contents}`:t?`${io.root} ${t}`:io.root;return o.jsx("div",{ref:l,className:i,style:n,...e?{}:{"data-recursica-layer":String(r)},...a,children:s})});Ho.displayName="Layer";const bo=({emptyText:r="N/A"})=>o.jsx(c.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]=c.useState(Xe);return c.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(!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;
|
|
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 c.useEffect(()=>{const t=document.documentElement;return t.setAttribute(ht,e),()=>{t.removeAttribute(ht)}},[e]),c.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=c.forwardRef((t,n)=>{const{overStyled:a}=t,l=$t(),i=c.createElement(r,{...t,ref:n});return a&&l?o.jsx("div",{className:"recursica-over-styled",children:i}):i});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,i=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:i})};Ot.displayName="Accordion";const Qo=c.forwardRef(function({title:e,leftIcon:s,divider:t=!0,children:n,disabled:a=!1,overStyled:l=!1,...i},d){const p=m(i,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=c.forwardRef(function({leftIcon:e,children:s,overStyled:t=!1,...n},a){const l=U(m(n,t),Hs),i=l.className;return o.jsx(u.Accordion.Control,{ref:a,...l,className:i,icon:e?o.jsx("span",{className:$e.iconLeftWrapper,"aria-hidden":!0,children:e}):void 0,children:s})});Mo.displayName="AccordionControl";const Ao=c.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=c.forwardRef(function({assistiveVariant:e="help",assistiveWithIcon:s=!0,children:t,className:n,role:a,overStyled:l=!1,...i},d){const _=m(i,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=c.forwardRef(function({labelSize:e="default",labelAlignment:s,required:t=!1,labelOptionalText:n,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:i,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:i,"aria-label":"Edit",children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}):null]})});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=c.forwardRef(function({formLayout:e="stacked",labelSize:s="default",controlMaxWidth:t,controlMinWidth:n,leftSection:a,children:l,className:i,style:d,...p},_){const f=i?`${So.root} ${i}`: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=c.forwardRef(function({formLayout:e,labelSize:s,labelAlignment:t,labelOptionalText:n,labelWithEditIcon:a,labelActionArea:l,onLabelEditClick:i,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=c.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=c.isValidElement(S)?c.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:i,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?c.isValidElement(r)?r:Array.isArray(r)?r.join(", "):String(r):""})};Oo.displayName="ReadOnlyTextField";const Jo=c.forwardRef(function({value:e,type:s="text",emptyValueComponent:t,overStyled:n=!1,className:a,style:l,...i},d){let p=null;const _=m(i,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=c.forwardRef(function({readOnly:e,readOnlyComponent:s,readOnlyType:t="text",readOnlyValue:n,readOnlyNativeProps:a,emptyValueComponent:l,activeComponent:i,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:i})});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 i=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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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:i,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=c.forwardRef(function({size:e="default",variant:s="solid",icon:t,children:n,src:a,overStyled:l=!1,...i},d){const p={solid:"filled",outline:"outline",ghost:"transparent"},_={default:"md",small:"sm",large:"lg"},f=["color","radius"],P=U(m(i,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=c.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),i=a.className,d=i?`${mo.root} ${i}`: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=c.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),i=a.attributes,d={...i,separator:{"aria-hidden":!0,...i==null?void 0:i.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=c.forwardRef(function({variant:e="oval",size:s="default",overStyled:t=!1,...n},a){const i={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":i,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=c.forwardRef(function({variant:e="solid",size:s="default",icon:t,children:n,overStyled:a=!1,loaderVariant:l="oval",loaderSize:i,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",i);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=c.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),i=n.className;return o.jsx(u.Card,{ref:t,...n,className:i,classNames:l})});Dt.displayName="Card";const Et=c.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=c.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=c.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=c.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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:n,readOnlyComponent:a,disabled:l,formLayout:i,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 i?o.jsx(We,{formLayout:i,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 i?o.jsx(We,{formLayout:i,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=c.forwardRef(function({error:e=!1,icon:s,onDelete:t,deleteLabel:n="Delete",deleteTabIndex:a,deleteIconRef:l,children:i,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=!i&&(!!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:i}),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=c.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,i={root:_o.root},d=t.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;i.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:i,...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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",containerWidth:a,labelSize:l,labelAlignment:i,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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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=c.useRef(null),[re,le]=c.useState(!1),[he,Ne]=c.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=c.useRef(0),[Be,Ie]=c.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]=c.useState(0),B=c.useRef([]),Z=c.useRef((y==null?void 0:y.length)??0);c.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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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=c.useRef(null),[ue,R]=c.useState(!1),[ae,ye]=c.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=c.useRef(0),[he,Ne]=c.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]=c.useState(0),ge=c.useRef([]),Ge=c.useRef((y==null?void 0:y.length)??0);c.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:i,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=c.forwardRef(function({children:e,gap:s="rec-default",rowGap:t,columnGap:n,...a},l){const i={root:fo.root},d=a.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;i.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:i,...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=c.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 i=t.className,d=i?`${je.root} ${i}`: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=c.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,i=l?`${je.col} ${l}`:je.col;return o.jsx(u.Grid.Col,{ref:t,className:i,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=c.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 i=t.className,d=i?`${yo.root} ${i}`: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 i=m(l,e),d=i,p=D({dropdown:bt.dropdown,arrow:bt.arrow},d.classNames),_=s??a;return o.jsx(u.HoverCard,{...i,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=c.forwardRef(function({icon:e,children:s,overStyled:t=!1,...n},a){const l=m(n,t),i=l,d=D({root:ho.root},i.classNames),p=i.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 n=m(s,e),{maxHeight:a,...l}=n,i=D({dropdown:so.dropdown,item:so.item,itemLabel:so.itemLabel,itemSection:so.itemSection,divider:so.divider,label:so.label,chevron:so.chevron},n.classNames),d=l.styles,p=a?{...d,dropdown:{...d==null?void 0:d.dropdown,maxHeight:a,overflowY:"auto"}}:d;return o.jsx(u.Menu,{...l,classNames:i,...p?{styles:p}:{}})};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=c.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=c.forwardRef(function({overStyled:e=!1,...s},t){const n=["color"],a=U(m(s,e),n),i=a.className;return o.jsx(u.Menu.Item,{...a,ref:t,className:i})});un.displayName="MenuItem";const vl=u.createPolymorphicComponent(un),pn=c.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=c.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=c.forwardRef(function({overStyled:e=!1,...s},t){const n=["color"],a=U(m(s,e),n),i=a.className;return o.jsx(u.Menu.Sub.Item,{...a,ref:t,className:i})});yn.displayName="MenuSubItem";const xl=u.createPolymorphicComponent(yn),hn=c.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=c.forwardRef(function({overStyled:e=!1,children:s,title:t,withCloseButton:n=!0,overlayProps:a,withOverlay:l=!0,closeButtonProps:i,...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,{...i})]}),o.jsx(nt,{children:s})]})]})});vn.displayName="Modal";const tt=c.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=c.forwardRef(function({overStyled:e=!1,className:s,onScroll:t,children:n,...a},l){const i=m(a,e),d=c.useRef(null),[p,_]=c.useState(!1),[f,P]=c.useState(!1),h=c.useCallback(()=>{if(d.current){const{scrollTop:N,scrollHeight:S,clientHeight:T}=d.current;_(N>0),P(Math.ceil(N+T)<S)}},[]);c.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 c.Children.forEach(n,N=>{var S;c.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,{...i,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=c.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=c.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=c.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=c.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=c.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=c.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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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:i,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=c.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=c.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...n},a){const l=m(n,e),i=s?Tn:void 0;return o.jsx(u.Pagination.Next,{ref:a,...l,"data-variant":"text",icon:ce(i,t)})});kn.displayName="Pagination.Next";const In=c.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...n},a){const l=m(n,e),i=s?Sn:void 0;return o.jsx(u.Pagination.Previous,{ref:a,...l,"data-variant":"text",icon:ce(i,t)})});In.displayName="Pagination.Previous";const Ln=c.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...n},a){const l=m(n,e),i=s?$n:void 0;return o.jsx(u.Pagination.First,{ref:a,...l,"data-variant":"text",icon:ce(i,t)})});Ln.displayName="Pagination.First";const Mn=c.forwardRef(function({overStyled:e=!1,withLabel:s,icon:t,...n},a){const l=m(n,e),i=s?jn:void 0;return o.jsx(u.Pagination.Last,{ref:a,...l,"data-variant":"text",icon:ce(i,t)})});Mn.displayName="Pagination.Last";const An=c.forwardRef(function({overStyled:e=!1,getControlProps:s,withLabels:t,...n},a){const l=m(n,e),i=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:i.className,classNames:i.classNames,getControlProps:d})});An.displayName="Pagination";const Wn=c.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=c.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),i=l,d=D({content:Qe.content,header:Qe.header,title:n?Qe.titleTruncate:Qe.title,body:Qe.body,inner:Qe.inner},i.classNames);return o.jsx(u.Drawer,{...l,position:s,keepMounted:t,closeOnClickOutside:ce(!!a.opened,a.closeOnClickOutside),classNames:d})};Dn.displayName="Panel";const st=c.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=c.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=c.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=c.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=c.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=c.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=c.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=c.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,i=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:i})};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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:n,readOnlyComponent:a,disabled:l,icon:i,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,i),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=c.forwardRef(function({overStyled:e=!1,orientation:s="horizontal",fullWidth:t,data:n=[],...a},l){const i=m(a,e),p=hi(i),_=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,...i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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]=c.useState(()=>I!==void 0?I:L!==void 0?L:H),R=I!==void 0?I:se,ae=Array.isArray(R),[ye,re]=c.useState(()=>Array.isArray(R)?[R[0].toString(),R[1].toString()]:R.toString());c.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:i,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=c.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 i=t.className,d=i?`${vo.root} ${i}`: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=c.forwardRef(function(e,s){const{overStyled:t=!1,size:n="large",orientation:a="horizontal",className:l,style:i,...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:i,"data-size":n,"data-orientation":a,classNames:f})}),es=c.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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,readOnly:n,readOnlyComponent:a,disabled:l,thumbIcon:i,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,i)});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=c.forwardRef(function({overStyled:e=!1,...s},t){const n=m(s,e),a=n.className,l=Vo.root,i=a?`${l} ${a}`:l;return o.jsx(u.Table,{ref:t,...n,className:i})});os.displayName="Table";const ts=c.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=c.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=c.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=c.forwardRef(function({overStyled:e=!1,sorted:s=!1,disabled:t=!1,children:n,...a},l){const i=m(a,e);return o.jsxs(u.Table.Th,{ref:l,...i,"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=c.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=c.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=c.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=c.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=c.forwardRef(function(e,s){const{variant:t="default",orientation:n="horizontal",overStyled:a=!1,className:l,...i}=e,d=m(i,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=c.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=c.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=c.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=c.forwardRef(function({overStyled:e=!1,variant:s="body",...t},n){const a=m(t,e),l=a.className,i=`recursica_brand_typography_${s}`,d=l?`${i} ${l}`:i;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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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:i,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=c.forwardRef(function(e,s){const{overStyled:t=!1,className:n,disabled:a,error:l,...i}=e,d=U(m(i,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,i=t!==void 0?`${s}:${t}`:s;return`${l}:${i} ${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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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]=c.useState(()=>b??g);c.useEffect(()=>{b!==void 0&&X(b)},[b]);const V=c.useRef(null);c.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:i,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=c.forwardRef(function({overStyled:e=!1,timestamp:s,bulletVariant:t="default",children:n,...a},l){const i=m(a,e),d=i,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,...i,classNames:p,"data-variant":t,children:_})});ut.displayName="TimelineItem";const vs=c.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=c.forwardRef(function({overStyled:e=!1,order:s=1,...t},n){const a=["size"],l=U(m(t,e),a),i=l.className,d=`recursica_brand_typography_h${s}`,p=i?`${d} ${i}`: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=c.forwardRef(function({overStyled:e=!1,variant:s="default",withCloseButton:t=!0,...n},a){const l=["color","radius","loading"],i=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},i.classNames);return o.jsx(u.Notification,{ref:a,...i,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),i=l,d=D({tooltip:Pt.tooltip,arrow:Pt.arrow},i.classNames),p=i.withArrow,_=s??p;return o.jsx(u.Tooltip,{...l,position:t,arrowSize:n,withArrow:_,multiline:!0,classNames:d})};Cs.displayName="Tooltip";const Ps=c.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=c.forwardRef(function(e,s){const{overStyled:t=!1,formLayout:n="stacked",labelSize:a,labelAlignment:l,labelOptionalText:i,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=c.useId(),Y=S||`recursica-transfer-list-${V}`,[oe,de]=c.useState(()=>b??y??[[],[]]),z=y!==void 0?y:oe,se=c.useCallback(G=>{y===void 0&&de(G),g==null||g(G)},[y,g]),[ue,R]=c.useState(""),[ae,ye]=c.useState(""),[re,le]=c.useState(()=>new Set),[he,Ne]=c.useState(()=>new Set),Fe=c.useMemo(()=>{if(!ue)return z[0];const G=ue.toLowerCase();return z[0].filter(F=>F.label.toLowerCase().includes(G))},[z,ue]),Ce=c.useMemo(()=>{if(!ae)return z[1];const G=ae.toLowerCase();return z[1].filter(F=>F.label.toLowerCase().includes(G))},[z,ae]),Be=c.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=c.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=c.useCallback(()=>{z[0].length!==0&&(le(new Set),se([[],[...z[1],...z[0]]]))},[z,se]),to=c.useCallback(()=>{z[1].length!==0&&(Ne(new Set),se([[...z[0],...z[1]],[]]))},[z,se]),Pe=c.useCallback(G=>{le(F=>{const W=new Set(F);return W.has(G)?W.delete(G):W.add(G),W})},[]),Ue=c.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:i,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:i}){return o.jsxs("div",{...i,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=c.forwardRef(function({overStyled:e=!1,data:s,initialExpandedValues:t,initialSelectedValues:n,multiple:a=!1,disabled:l=!1,onNodeExpand:i,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:i,onNodeCollapse:d});c.useEffect(()=>{p==null||p(h.selectedState)},[h.selectedState,p]);const x=c.useRef(null);c.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]),c.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
|