@recursica/mantine-adapter 0.55.2 → 0.55.3

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