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