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