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