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