@recursica/mantine-adapter 0.50.6 → 0.51.0

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