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