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