plume-ui-react 0.4.0 → 0.5.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 (36) hide show
  1. package/README.md +1 -1
  2. package/dist/chunk-EAIGXNMG.mjs +1 -0
  3. package/dist/chunk-LFT6MZ6P.mjs +1 -0
  4. package/dist/chunk-O5UHJVHD.mjs +1 -0
  5. package/dist/components/overlay/modal/index.mjs +1 -0
  6. package/dist/components/overlay/modal/modal-body.mjs +1 -0
  7. package/dist/components/overlay/modal/modal-close.mjs +1 -0
  8. package/dist/components/overlay/modal/modal-content.mjs +1 -0
  9. package/dist/components/overlay/modal/modal-context.mjs +1 -0
  10. package/dist/components/overlay/modal/modal-footer.mjs +1 -0
  11. package/dist/components/overlay/modal/modal-header.mjs +1 -0
  12. package/dist/components/overlay/modal/modal-trigger.mjs +1 -0
  13. package/dist/components/overlay/modal/modal.mjs +1 -0
  14. package/dist/components/overlay/popover/index.mjs +1 -0
  15. package/dist/components/overlay/popover/popover-close.mjs +1 -0
  16. package/dist/components/overlay/popover/popover-content.mjs +1 -0
  17. package/dist/components/overlay/popover/popover-context.mjs +1 -0
  18. package/dist/components/overlay/popover/popover-trigger.mjs +1 -0
  19. package/dist/components/overlay/popover/popover.mjs +1 -0
  20. package/dist/components/overlay/toast/index.mjs +1 -0
  21. package/dist/components/overlay/toast/toast-context.mjs +1 -0
  22. package/dist/components/overlay/toast/toast-item.mjs +1 -0
  23. package/dist/components/overlay/toast/toast-provider.mjs +1 -0
  24. package/dist/components/overlay/toast/use-toast-timer.mjs +1 -0
  25. package/dist/components/overlay/tooltip/index.mjs +1 -0
  26. package/dist/components/overlay/tooltip/tooltip.mjs +1 -0
  27. package/dist/components/presentation/icon/icon.mjs +1 -1
  28. package/dist/index.d.mts +146 -1
  29. package/dist/index.d.ts +146 -1
  30. package/dist/index.js +7 -7
  31. package/dist/index.mjs +1 -1
  32. package/dist/overlay/overlay-close.mjs +1 -0
  33. package/dist/overlay/trigger.mjs +1 -0
  34. package/dist/overlay/use-open-state.mjs +1 -0
  35. package/dist/styles.css +1 -1
  36. package/package.json +1 -1
package/README.md CHANGED
@@ -38,7 +38,7 @@ export function App() {
38
38
 
39
39
  ## Components
40
40
 
41
- `Badge`, `Button`, `Card` (with `CardHeader`, `CardBody` and `CardFooter`), `Checkbox`, `DatePicker`, `Field`, `Icon`, `Input`, `List` (with `ListDivider`, `ListItem`, `ListItemButton`, `ListItemIcon`, `ListItemText` and `ListSubheader`), `Radio`, `RadioGroup`, `Spinner`, `Tabs` (with `TabList`, `Tab`, `TabPanels` and `TabPanel`), `Textarea` and `Toggle`.
41
+ `Badge`, `Button`, `Card` (with `CardHeader`, `CardBody` and `CardFooter`), `Checkbox`, `DatePicker`, `Field`, `Icon`, `Input`, `List` (with `ListDivider`, `ListItem`, `ListItemButton`, `ListItemIcon`, `ListItemText` and `ListSubheader`), `Modal` (with `ModalBody`, `ModalClose`, `ModalContent`, `ModalFooter`, `ModalHeader` and `ModalTrigger`), `Popover` (with `PopoverClose`, `PopoverContent` and `PopoverTrigger`), `Radio`, `RadioGroup`, `Spinner`, `Tabs` (with `TabList`, `Tab`, `TabPanels` and `TabPanel`), `Textarea`, `ToastProvider` (with the `useToast` hook), `Toggle` and `Tooltip`.
42
42
 
43
43
  The [documentation site](https://darioegb.github.io/plume-ui-react/) has a live playground, props and examples for each one, plus the color palette, design tokens and framework integration guides.
44
44
 
@@ -0,0 +1 @@
1
+ var _={region:"_region_1ild0_1","top-start":"_top-start_1ild0_17",top:"_top_1ild0_17","top-end":"_top-end_1ild0_19","center-start":"_center-start_1ild0_24",center:"_center_1ild0_24","center-end":"_center-end_1ild0_26","bottom-start":"_bottom-start_1ild0_31",bottom:"_bottom_1ild0_31","bottom-end":"_bottom-end_1ild0_33",toast:"_toast_1ild0_63",solid:"_solid_1ild0_77",subtle:"_subtle_1ild0_82",outline:"_outline_1ild0_87",icon:"_icon_1ild0_94",content:"_content_1ild0_100",title:"_title_1ild0_105",description:"_description_1ild0_106",action:"_action_1ild0_114",dismiss:"_dismiss_1ild0_127","toast-in":"_toast-in_1ild0_1"};export{_ as a};
@@ -0,0 +1 @@
1
+ var _={content:"_content_1426p_15",sm:"_sm_1426p_29",md:"_md_1426p_33",lg:"_lg_1426p_37",elevated:"_elevated_1426p_41",outline:"_outline_1426p_45",close:"_close_1426p_49","content-in":"_content-in_1426p_1"};export{_ as a};
@@ -0,0 +1 @@
1
+ var _={backdrop:"_backdrop_1k06m_15",content:"_content_1k06m_27",sm:"_sm_1k06m_43",md:"_md_1k06m_47",lg:"_lg_1k06m_51",header:"_header_1k06m_55",body:"_body_1k06m_63",footer:"_footer_1k06m_74",close:"_close_1k06m_83","backdrop-in":"_backdrop-in_1k06m_1","content-in":"_content-in_1k06m_1"};export{_ as a};
@@ -0,0 +1 @@
1
+ import{Modal as e}from"./modal.mjs";import{ModalBody as t}from"./modal-body.mjs";import{ModalClose as a}from"./modal-close.mjs";import{ModalContent as M}from"./modal-content.mjs";import{ModalFooter as y}from"./modal-footer.mjs";import{ModalHeader as m}from"./modal-header.mjs";import{ModalTrigger as P}from"./modal-trigger.mjs";export{e as Modal,t as ModalBody,a as ModalClose,M as ModalContent,y as ModalFooter,m as ModalHeader,P as ModalTrigger};
@@ -0,0 +1 @@
1
+ "use client";import{a as s}from"../../../chunk-O5UHJVHD.mjs";import{forwardRef as u,useEffect as M,useRef as b,useState as B}from"react";import{mergeRefs as H}from"../../../overlay/trigger.mjs";import{useModalContext as R}from"./modal-context.mjs";import{jsx as L}from"react/jsx-runtime";var P=u(({children:l,className:n="",style:d},i)=>{let{bodyId:a,isStyled:c,titleId:m}=R("ModalBody"),o=b(null),[f,p]=B(!1),y=[c&&s.body,n].filter(Boolean).join(" ");return M(()=>{let e=o.current;if(!e)return;let t=()=>p(e.scrollHeight>e.clientHeight);t();let r=typeof ResizeObserver>"u"?void 0:new ResizeObserver(t);return r?.observe(e),()=>r?.disconnect()},[]),L("section",{...f?{"aria-labelledby":m,tabIndex:0}:void 0,className:y,id:a,ref:H(o,i),style:d,children:l})});P.displayName="ModalBody";export{P as ModalBody};
@@ -0,0 +1 @@
1
+ "use client";import{a as e}from"../../../chunk-O5UHJVHD.mjs";import{forwardRef as t}from"react";import{OverlayClose as a}from"../../../overlay/overlay-close.mjs";import{useModalContext as p}from"./modal-context.mjs";import{jsx as m}from"react/jsx-runtime";var d=t((o,l)=>{let{isStyled:r,setOpen:s}=p("ModalClose");return m(a,{...o,closeClassName:r?e.close:void 0,onClose:()=>s(!1),ref:l})});d.displayName="ModalClose";export{d as ModalClose};
@@ -0,0 +1 @@
1
+ "use client";import{a as o}from"../../../chunk-O5UHJVHD.mjs";import{forwardRef as P,useState as L}from"react";import{Portal as T,useDismiss as R,useFocusTrap as D,useLayer as H,useScrollLock as E}from"../../../overlay/index.mjs";import{mergeRefs as F}from"../../../overlay/trigger.mjs";import{useModalContext as N}from"./modal-context.mjs";import{jsx as n}from"react/jsx-runtime";var O=P(({children:r,className:d="",style:c,...l},m)=>{let t=N("ModalContent"),{closeOnEscape:p,closeOnOutside:u,contentId:f,initialFocus:b,isStyled:a,open:e,setOpen:M}=t,[s,y]=L(null),i=H(e);if(E(e),R({enabled:e,onDismiss:()=>M(!1),elements:[s],isTopmost:i,escapeKey:p,outsidePress:u}),D(s,{active:e,initialFocus:b?.current??null,isTopmost:i,returnFocus:t.trigger}),!e)return null;let g=[a&&o.content,a&&o[t.size],d].filter(Boolean).join(" "),C=l["aria-labelledby"]??(l["aria-label"]?void 0:t.titleId);return n(T,{children:n("div",{className:a?o.backdrop:void 0,children:n("dialog",{...l,"aria-labelledby":C,"aria-modal":"true",className:g,"data-plume-dialog":"",id:f,open:!0,ref:F(y,m),style:c,children:r})})})});O.displayName="ModalContent";export{O as ModalContent};
@@ -0,0 +1 @@
1
+ "use client";import{createContext as n,useContext as o}from"react";var l=n(void 0);function r(t){let e=o(l);if(!e)throw new Error(`${t} must be used within a <Modal>`);return e}export{l as ModalContext,r as useModalContext};
@@ -0,0 +1 @@
1
+ "use client";import{a as o}from"../../../chunk-O5UHJVHD.mjs";import{forwardRef as d}from"react";import{useModalContext as p}from"./modal-context.mjs";import{jsx as m}from"react/jsx-runtime";var a=d(({children:t,className:e="",style:r},s)=>{let{isStyled:i}=p("ModalFooter"),l=[i&&o.footer,e].filter(Boolean).join(" ");return m("div",{className:l,ref:s,style:r,children:t})});a.displayName="ModalFooter";export{a as ModalFooter};
@@ -0,0 +1 @@
1
+ "use client";import{a as e}from"../../../chunk-O5UHJVHD.mjs";import{createElement as n,forwardRef as p}from"react";import{useModalContext as m}from"./modal-context.mjs";var H=p(({as:o="h2",children:t,className:r="",style:a},d)=>{let{isStyled:s,titleId:l}=m("ModalHeader"),i=[s&&e.header,r].filter(Boolean).join(" ");return n(o,{className:i,id:l,ref:d,style:a},t)});H.displayName="ModalHeader";export{H as ModalHeader};
@@ -0,0 +1 @@
1
+ "use client";import{forwardRef as s,isValidElement as d}from"react";import{cloneWithProps as l,mergeRefs as p}from"../../../overlay/trigger.mjs";import{useModalContext as m}from"./modal-context.mjs";import{jsx as c}from"react/jsx-runtime";var g=s(({children:e,className:a},r)=>{let{open:n,setOpen:i,setTrigger:t}=m("ModalTrigger"),o={"aria-expanded":n,"aria-haspopup":"dialog",onClick:()=>i(!0)};return d(e)?l(e,o,t,r):c("button",{...o,className:a,ref:p(t,r),type:"button",children:e})});g.displayName="ModalTrigger";export{g as ModalTrigger};
@@ -0,0 +1 @@
1
+ "use client";import{useId as b,useMemo as M,useState as y}from"react";import{useOpenState as O}from"../../../overlay/use-open-state.mjs";import{ModalContext as R}from"./modal-context.mjs";import{jsx as g}from"react/jsx-runtime";function v({children:i,closeOnEscape:o=!0,closeOnOutside:t=!0,defaultOpen:s=!1,initialFocus:n,onOpenChange:u,open:c,size:l="md",variant:a="default"}){let e=b(),[r,m]=y(null),[d,p]=O({defaultOpen:s,onOpenChange:u,open:c}),f=M(()=>({bodyId:`${e}-body`,closeOnEscape:o,closeOnOutside:t,contentId:`${e}-content`,initialFocus:n,isStyled:a!=="unstyled",open:d,setOpen:p,setTrigger:m,size:l,titleId:`${e}-title`,trigger:r}),[e,o,t,n,d,p,l,r,a]);return g(R.Provider,{value:f,children:i})}export{v as Modal};
@@ -0,0 +1 @@
1
+ import{Popover as e}from"./popover.mjs";import{PopoverClose as t}from"./popover-close.mjs";import{PopoverContent as v}from"./popover-content.mjs";import{PopoverTrigger as f}from"./popover-trigger.mjs";export{e as Popover,t as PopoverClose,v as PopoverContent,f as PopoverTrigger};
@@ -0,0 +1 @@
1
+ "use client";import{a as e}from"../../../chunk-LFT6MZ6P.mjs";import{forwardRef as p}from"react";import{OverlayClose as t}from"../../../overlay/overlay-close.mjs";import{usePopoverContext as m}from"./popover-context.mjs";import{jsx as f}from"react/jsx-runtime";var a=p((o,r)=>{let{isStyled:s,setOpen:l}=m("PopoverClose");return f(t,{...o,closeClassName:s?e.close:void 0,onClose:()=>l(!1),ref:r})});a.displayName="PopoverClose";export{a as PopoverClose};
@@ -0,0 +1 @@
1
+ "use client";import{a as o}from"../../../chunk-LFT6MZ6P.mjs";import{forwardRef as L,useState as R}from"react";import{Portal as D,useDismiss as H,useFocusTrap as M,useLayer as E,usePosition as h}from"../../../overlay/index.mjs";import{mergeRefs as x}from"../../../overlay/trigger.mjs";import{usePopoverContext as A}from"./popover-context.mjs";import{jsx as l}from"react/jsx-runtime";var F=L(({children:p,className:m="",style:c,...d},f)=>{let t=A("PopoverContent"),{contentId:u,flip:P,isStyled:n,offset:y,open:e,placement:g,setOpen:b,shift:v,trigger:r}=t,[s,C]=R(null),a=E(e),i=h({anchor:r,floating:s,enabled:e,placement:g,offset:y,flip:P,shift:v});if(H({enabled:e,onDismiss:()=>b(!1),elements:[r,s],isTopmost:a}),M(s,{active:e,isTopmost:a,returnFocus:r}),!e)return null;let T=[n&&o.content,n&&o[t.size],n&&o[t.variant],m].filter(Boolean).join(" ");return l(D,{children:l("dialog",{...d,className:T,"data-placement":i.placement,"data-plume-dialog":"",id:u,open:!0,ref:x(C,f),style:{...i.style,opacity:i.isPositioned?void 0:0,...c},children:p})})});F.displayName="PopoverContent";export{F as PopoverContent};
@@ -0,0 +1 @@
1
+ "use client";import{createContext as o,useContext as n}from"react";var r=o(void 0);function l(t){let e=n(r);if(!e)throw new Error(`${t} must be used within a <Popover>`);return e}export{r as PopoverContext,l as usePopoverContext};
@@ -0,0 +1 @@
1
+ "use client";import{forwardRef as i,isValidElement as s}from"react";import{cloneWithProps as m,mergeRefs as g}from"../../../overlay/trigger.mjs";import{usePopoverContext as c}from"./popover-context.mjs";import{jsx as l}from"react/jsx-runtime";var d=i(({children:e,className:p},r)=>{let{open:o,setOpen:a,setTrigger:t}=c("PopoverTrigger"),n={"aria-expanded":o,"aria-haspopup":"dialog",onClick:()=>a(!o)};return s(e)?m(e,n,t,r):l("button",{...n,className:p,ref:g(t,r),type:"button",children:e})});d.displayName="PopoverTrigger";export{d as PopoverTrigger};
@@ -0,0 +1 @@
1
+ "use client";import{useId as f,useMemo as b,useState as y}from"react";import{useOpenState as g}from"../../../overlay/use-open-state.mjs";import{PopoverContext as S}from"./popover-context.mjs";import{jsx as x}from"react/jsx-runtime";function C({children:c,defaultOpen:d=!1,flip:o=!0,offset:t=8,onOpenChange:s,open:u,placement:n="bottom",shift:r=!0,size:p="md",variant:e="elevated"}){let a=f(),[l,P]=y(null),[m,i]=g({defaultOpen:d,onOpenChange:s,open:u}),v=b(()=>({contentId:`${a}-content`,flip:o,isStyled:e!=="unstyled",offset:t,open:m,placement:n,setOpen:i,setTrigger:P,shift:r,size:p,trigger:l,variant:e}),[a,o,t,m,n,i,r,p,l,e]);return x(S.Provider,{value:v,children:c})}export{C as Popover};
@@ -0,0 +1 @@
1
+ import{ToastProvider as s}from"./toast-provider.mjs";import{useToast as a}from"./toast-context.mjs";export{s as ToastProvider,a as useToast};
@@ -0,0 +1 @@
1
+ "use client";import{createContext as o,useContext as s}from"react";var n=o(void 0);function i(){let t=s(n);if(!t)throw new Error("useToast must be used within a <ToastProvider>");return t}export{n as ToastContext,i as useToast};
@@ -0,0 +1 @@
1
+ "use client";import{a as r}from"../../../chunk-EAIGXNMG.mjs";import{useCallback as N}from"react";import{useToastTimer as y}from"./use-toast-timer.mjs";import{jsx as s,jsxs as p}from"react/jsx-runtime";var k={error:"M15 9l-6 6M9 9l6 6M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z",info:"M12 16v-4m0-4h.01M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z",success:"M22 11.1V12a10 10 0 1 1-5.9-9.1M22 4 12 14l-3-3",warning:"M12 9v4m0 4h.01M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z"};function M({status:e}){return s("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1.25em",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1.25em",children:s("path",{d:k[e]})})}function S(e,o){if(e.icon!==void 0)return e.icon;if(o===!1)return null;let a=o?.[e.status];return a!==void 0?a:e.status==="neutral"?null:s(M,{status:e.status})}var R={error:"error",info:"info",neutral:"secondary",success:"success",warning:"warning"};function C(e){let o=R[e];return{"--toast-contrast":`var(--plume-color-${o}-solid-contrast)`,"--toast-solid":`var(--plume-color-${o}-solid)`,"--toast-tint":`var(--plume-color-${o}-tint)`,"--toast-tint-text":`var(--plume-color-${o}-tint-text)`}}function E({className:e,dismissLabel:o,icons:a,isStyled:c,onDismiss:u,toast:t}){let{duration:f,id:d}=t,i=N(()=>u(d),[d,u]),v=y(f,i),b=l=>{l.key==="Escape"&&t.dismissible&&i()},h=()=>{t.action?.onClick?.(),i()},n=l=>c?r[l]:void 0,m=S(t,a),T=t.status==="error",g=[c&&r.toast,c&&r[t.status],e].filter(Boolean).join(" ")||void 0;return p("div",{className:g,...v,onKeyDown:b,role:T?"alert":"status",style:C(t.status),children:[m?s("span",{"aria-hidden":"true",className:n("icon"),children:m}):null,p("div",{className:n("content"),children:[t.title?s("span",{className:n("title"),children:t.title}):null,t.description?s("span",{className:n("description"),children:t.description}):null,t.action?s("button",{className:n("action"),onClick:h,type:"button",children:t.action.label}):null]}),t.dismissible?s("button",{"aria-label":o,className:n("dismiss"),onClick:i,type:"button",children:s("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1em",children:s("path",{d:"M6 6l12 12M18 6 6 18"})})}):null]})}export{E as ToastItem,C as toastColorVars};
@@ -0,0 +1 @@
1
+ "use client";import{a as d}from"../../../chunk-EAIGXNMG.mjs";import{isValidElement as V,useCallback as C,useId as h,useMemo as k,useRef as D,useState as j}from"react";import{Portal as B}from"../../../overlay/index.mjs";import{ToastContext as E}from"./toast-context.mjs";import{ToastItem as M}from"./toast-item.mjs";import{jsx as T,jsxs as z}from"react/jsx-runtime";var q=i=>typeof i=="object"&&i!==null&&!V(i)&&!Array.isArray(i);function Q({children:i,className:N="",dismissLabel:O="Dismiss notification",duration:f=5e3,icons:A,max:y=5,position:I="bottom-end",regionLabel:R="Notifications",toastClassName:S="",variant:b="subtle"}){let v=h(),g=D(0),[$,l]=j([]),n=b!=="unstyled",m=D({duration:f,max:y});m.current={duration:f,max:y};let p=C(t=>{l(s=>{let r=s.find(o=>o.id===t);return r?(r.onDismiss?.(),s.filter(o=>o.id!==t)):s})},[]),e=C((t,s={},r)=>{let o=q(t)?{...t,...s}:{title:t,...s};g.current+=1;let a=o.id??`${v}-${g.current}`,P={action:o.action,description:o.description,dismissible:o.dismissible??!0,duration:o.duration??m.current.duration,icon:o.icon,id:a,onDismiss:o.onDismiss,status:o.status??r??"neutral",title:o.title};return l(u=>{let x=u.find(c=>c.id===a);return x?u.map(c=>c.id===a?{...P,revision:x.revision+1}:c):[...u,{...P,revision:0}].slice(-m.current.max)}),a},[v]),w=k(()=>({dismiss:p,dismissAll:()=>l([]),error:(t,s)=>e(t,s,"error"),info:(t,s)=>e(t,s,"info"),success:(t,s)=>e(t,s,"success"),toast:(t,s)=>e(t,s),warning:(t,s)=>e(t,s,"warning")}),[p,e]),L=[n&&d.region,n&&d[I],n&&d[b],N].filter(Boolean).join(" ");return z(E.Provider,{value:w,children:[i,T(B,{children:T("section",{"aria-label":R,"aria-live":"polite",className:L||void 0,children:$.map(t=>T(M,{dismissLabel:O,className:S,icons:A,isStyled:n,onDismiss:p,toast:t},`${t.id}-${t.revision}`))})})]})}export{Q as ToastProvider};
@@ -0,0 +1 @@
1
+ "use client";import{useCallback as a,useEffect as f,useRef as r}from"react";function l(n,c){let s=r(n),d=r(0),e=r(void 0),o=r(!1),i=r(!1),t=a(()=>{e.current!==void 0&&(window.clearTimeout(e.current),e.current=void 0,s.current-=Date.now()-d.current)},[]),u=a(()=>{e.current!==void 0||o.current||i.current||!Number.isFinite(n)||n<=0||(d.current=Date.now(),e.current=window.setTimeout(c,Math.max(s.current,0)))},[n,c]);return f(()=>(u(),t),[t,u]),{onBlur:()=>{i.current=!1,u()},onFocus:()=>{i.current=!0,t()},onPointerEnter:()=>{o.current=!0,t()},onPointerLeave:()=>{o.current=!1,u()}}}export{l as useToastTimer};
@@ -0,0 +1 @@
1
+ import{Tooltip as t}from"./tooltip.mjs";export{t as Tooltip};
@@ -0,0 +1 @@
1
+ "use client";import{useCallback as u,useEffect as I,useId as V,useRef as k,useState as p}from"react";import{Portal as W,useDismiss as q,useLayer as x,usePosition as A}from"../../../overlay/index.mjs";import{cloneWithProps as G}from"../../../overlay/trigger.mjs";var s={tooltip:"_tooltip_1c9fj_1",sm:"_sm_1c9fj_12",md:"_md_1c9fj_16",lg:"_lg_1c9fj_21",solid:"_solid_1c9fj_26",outline:"_outline_1c9fj_31","tooltip-in":"_tooltip-in_1c9fj_1"};import{Fragment as K,jsx as E,jsxs as Q}from"react/jsx-runtime";var J=i=>{try{return i.matches(":focus-visible")}catch{return!0}};function te({children:i,className:g="",closeDelay:m=100,content:h,defaultOpen:j=!1,disabled:L=!1,offset:S=6,onOpenChange:f,open:b,openDelay:R=300,placement:B="top",size:H="md",style:M,variant:y="solid"}){let _=V(),[N,w]=p(j),[P,C]=p(null),[T,D]=p(null),l=k(void 0),r=b!==void 0,t=!L&&(r?b:N),a=y!=="unstyled",n=u(e=>{r||w(e),e!==t&&f?.(e)},[r,f,t]),o=u(()=>{window.clearTimeout(l.current),l.current=void 0},[]),c=u((e,v)=>{o(),v<=0?n(e):l.current=window.setTimeout(()=>n(e),v)},[o,n]);I(()=>o,[o]);let F=x(t),d=A({anchor:P,floating:T,enabled:t,placement:B,offset:S});q({enabled:t,onDismiss:()=>{o(),n(!1)},elements:[P,T],isTopmost:F});let O=G(i,{...{onBlur:()=>{o(),n(!1)},onFocus:e=>{o(),J(e.currentTarget)&&n(!0)},onPointerEnter:e=>{e.pointerType!=="touch"&&c(!0,R)},onPointerLeave:()=>c(!1,m)},"aria-describedby":(e=>[e,t?_:void 0].filter(Boolean).join(" ")||void 0)(i.props["aria-describedby"])},C),z=[a&&s.tooltip,a&&s[H],a&&s[y],g].filter(Boolean).join(" ");return Q(K,{children:[O,t?E(W,{children:E("div",{className:z,"data-placement":d.placement,id:_,onPointerEnter:o,onPointerLeave:()=>c(!1,m),ref:D,role:"tooltip",style:{...d.style,opacity:d.isPositioned?void 0:0,...M},children:h})}):null]})}export{te as Tooltip};
@@ -1 +1 @@
1
- import{forwardRef as a}from"react";var t={icon:"_icon_c6d4m_1",sm:"_sm_c6d4m_18",md:"_md_c6d4m_22",lg:"_lg_c6d4m_26"};import{jsx as f}from"react/jsx-runtime";var d=(e,o)=>({...e?{"--icon-color":`var(--plume-color-${e}-text)`}:{},...o}),l=a(({children:e,className:o="",colorScheme:n,label:r,size:i="md",style:p,...s},c)=>{let m=[t.icon,t[i],o].filter(Boolean).join(" ");return f("span",{"aria-hidden":r?void 0:!0,"aria-label":r,className:m,ref:c,role:r?"img":void 0,style:d(n,p),...s,children:e})});l.displayName="Icon";export{l as Icon};
1
+ import{forwardRef as c}from"react";var o={icon:"_icon_mz2on_1",glyph:"_glyph_mz2on_13",label:"_label_mz2on_25",sm:"_sm_mz2on_37",md:"_md_mz2on_41",lg:"_lg_mz2on_45"};import{jsx as t,jsxs as S}from"react/jsx-runtime";var d=(e,n)=>({...e?{"--icon-color":`var(--plume-color-${e}-text)`}:{},...n}),_=c(({children:e,className:n="",colorScheme:s,label:r,size:p="md",style:i,...l},m)=>{let a=[o.icon,o[p],n].filter(Boolean).join(" ");return S("span",{"aria-hidden":r?void 0:!0,className:a,ref:m,style:d(s,i),...l,children:[t("span",{"aria-hidden":"true",className:o.glyph,children:e}),r?t("span",{className:o.label,children:r}):null]})});_.displayName="Icon";export{_ as Icon};
package/dist/index.d.mts CHANGED
@@ -430,6 +430,87 @@ type ListSubheaderRootAttributes = Pick<LiHTMLAttributes<HTMLLIElement>, 'childr
430
430
  type ListSubheaderProps = Omit<ComponentProps, 'index'> & ListSubheaderRootAttributes;
431
431
  declare const ListSubheader: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ListSubheaderRootAttributes & react.RefAttributes<HTMLLIElement>>;
432
432
 
433
+ interface ModalProps {
434
+ children: ReactNode;
435
+ closeOnEscape?: boolean;
436
+ closeOnOutside?: boolean;
437
+ defaultOpen?: boolean;
438
+ initialFocus?: RefObject<HTMLElement | null>;
439
+ onOpenChange?: (open: boolean) => void;
440
+ open?: boolean;
441
+ size?: Size;
442
+ variant?: ModalVariant;
443
+ }
444
+ type ModalVariant = 'default' | 'unstyled';
445
+ declare function Modal({ children, closeOnEscape, closeOnOutside, defaultOpen, initialFocus, onOpenChange, open: openProp, size, variant, }: Readonly<ModalProps>): ReactNode;
446
+
447
+ type ModalBodyRootAttributes = Pick<HTMLAttributes<HTMLElement>, 'children'>;
448
+ type ModalBodyProps = Omit<ComponentProps, 'index'> & ModalBodyRootAttributes;
449
+ declare const ModalBody: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ModalBodyRootAttributes & react.RefAttributes<HTMLElement>>;
450
+
451
+ interface OverlayCloseOwnProps {
452
+ children?: ReactNode;
453
+ label?: string;
454
+ }
455
+ type OverlayCloseProps = Omit<ComponentProps, 'index'> & OverlayCloseOwnProps;
456
+
457
+ type ModalCloseProps = OverlayCloseProps;
458
+ declare const ModalClose: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & OverlayCloseOwnProps & react.RefAttributes<HTMLElement>>;
459
+
460
+ type ModalContentRootAttributes = Pick<HTMLAttributes<HTMLDialogElement>, 'aria-describedby' | 'aria-label' | 'aria-labelledby' | 'children'>;
461
+ type ModalContentProps = Omit<ComponentProps, 'index'> & ModalContentRootAttributes;
462
+ declare const ModalContent: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ModalContentRootAttributes & react.RefAttributes<HTMLDialogElement>>;
463
+
464
+ type ModalFooterRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'children'>;
465
+ type ModalFooterProps = Omit<ComponentProps, 'index'> & ModalFooterRootAttributes;
466
+ declare const ModalFooter: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ModalFooterRootAttributes & react.RefAttributes<HTMLDivElement>>;
467
+
468
+ interface ModalHeaderOwnProps {
469
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
470
+ }
471
+ type ModalHeaderRootAttributes = Pick<HTMLAttributes<HTMLHeadingElement>, 'children'>;
472
+ type ModalHeaderProps = Omit<ComponentProps, 'index'> & ModalHeaderRootAttributes & ModalHeaderOwnProps;
473
+ declare const ModalHeader: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ModalHeaderRootAttributes & ModalHeaderOwnProps & react.RefAttributes<HTMLHeadingElement>>;
474
+
475
+ interface ModalTriggerProps {
476
+ children: ReactNode;
477
+ className?: string;
478
+ }
479
+ declare const ModalTrigger: react.ForwardRefExoticComponent<ModalTriggerProps & react.RefAttributes<HTMLElement>>;
480
+
481
+ type Side = 'top' | 'bottom' | 'left' | 'right';
482
+ type Align = 'start' | 'center' | 'end';
483
+ type Placement = Side | `${Side}-${Align}`;
484
+
485
+ type PopoverVariant = 'elevated' | 'outline' | 'unstyled';
486
+
487
+ interface PopoverProps {
488
+ children: ReactNode;
489
+ defaultOpen?: boolean;
490
+ flip?: boolean;
491
+ offset?: number;
492
+ onOpenChange?: (open: boolean) => void;
493
+ open?: boolean;
494
+ placement?: Placement;
495
+ shift?: boolean;
496
+ size?: Size;
497
+ variant?: PopoverVariant;
498
+ }
499
+ declare function Popover({ children, defaultOpen, flip, offset, onOpenChange, open: openProp, placement, shift, size, variant, }: Readonly<PopoverProps>): ReactNode;
500
+
501
+ type PopoverCloseProps = OverlayCloseProps;
502
+ declare const PopoverClose: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & OverlayCloseOwnProps & react.RefAttributes<HTMLElement>>;
503
+
504
+ type PopoverContentRootAttributes = Pick<HTMLAttributes<HTMLDialogElement>, 'aria-describedby' | 'aria-label' | 'aria-labelledby' | 'children'>;
505
+ type PopoverContentProps = Omit<ComponentProps, 'index'> & PopoverContentRootAttributes;
506
+ declare const PopoverContent: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & PopoverContentRootAttributes & react.RefAttributes<HTMLDialogElement>>;
507
+
508
+ interface PopoverTriggerProps {
509
+ children: ReactNode;
510
+ className?: string;
511
+ }
512
+ declare const PopoverTrigger: react.ForwardRefExoticComponent<PopoverTriggerProps & react.RefAttributes<HTMLElement>>;
513
+
433
514
  interface RadioOwnProps {
434
515
  colorScheme?: ColorScheme;
435
516
  readOnly?: boolean;
@@ -522,6 +603,51 @@ type TextareaRootAttributes = Pick<TextareaHTMLAttributes<HTMLTextAreaElement>,
522
603
  type TextareaProps = Omit<ComponentProps, 'index'> & TextareaRootAttributes & TextareaOwnProps;
523
604
  declare const Textarea: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & TextareaRootAttributes & TextareaOwnProps & react.RefAttributes<HTMLTextAreaElement>>;
524
605
 
606
+ type ToastStatus = 'neutral' | 'info' | 'success' | 'warning' | 'error';
607
+ interface ToastAction {
608
+ label: string;
609
+ onClick?: () => void;
610
+ }
611
+ type ToastIcons = Partial<Record<ToastStatus, ReactNode>>;
612
+ interface ToastOptions {
613
+ action?: ToastAction;
614
+ description?: ReactNode;
615
+ dismissible?: boolean;
616
+ duration?: number;
617
+ icon?: ReactNode;
618
+ id?: string;
619
+ onDismiss?: () => void;
620
+ status?: ToastStatus;
621
+ title?: ReactNode;
622
+ }
623
+ type ToastContent = ReactNode | ToastOptions;
624
+ interface ToastApi {
625
+ dismiss: (id: string) => void;
626
+ dismissAll: () => void;
627
+ error: (content: ToastContent, options?: ToastOptions) => string;
628
+ info: (content: ToastContent, options?: ToastOptions) => string;
629
+ success: (content: ToastContent, options?: ToastOptions) => string;
630
+ toast: (content: ToastContent, options?: ToastOptions) => string;
631
+ warning: (content: ToastContent, options?: ToastOptions) => string;
632
+ }
633
+ declare function useToast(): ToastApi;
634
+
635
+ type ToastPosition = 'top-start' | 'top' | 'top-end' | 'center-start' | 'center' | 'center-end' | 'bottom-start' | 'bottom' | 'bottom-end';
636
+ type ToastVariant = 'solid' | 'subtle' | 'outline' | 'unstyled';
637
+ interface ToastProviderProps {
638
+ children: ReactNode;
639
+ className?: string;
640
+ dismissLabel?: string;
641
+ duration?: number;
642
+ icons?: false | ToastIcons;
643
+ max?: number;
644
+ position?: ToastPosition;
645
+ regionLabel?: string;
646
+ toastClassName?: string;
647
+ variant?: ToastVariant;
648
+ }
649
+ declare function ToastProvider({ children, className, dismissLabel, duration, icons, max, position, regionLabel, toastClassName, variant, }: Readonly<ToastProviderProps>): ReactNode;
650
+
525
651
  interface ToggleOwnProps {
526
652
  colorScheme?: ColorScheme;
527
653
  readOnly?: boolean;
@@ -535,4 +661,23 @@ declare const Toggle: react.ForwardRefExoticComponent<Omit<ComponentProps, "inde
535
661
  labelsItself: boolean;
536
662
  };
537
663
 
538
- export { Badge, type BadgeProps, type Breakpoints, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, type ColorMode, type ColorModeSetting, type ColorPalette, type ColorScheme, type ColorShade, type ComponentProps, DatePicker, type DatePickerConfig, type DatePickerProps, type DateRange, type DeepPartial, Field, type FieldControlProps, type FieldOrientation, type FieldProps, type FontSizes, type FontWeights, Icon, type IconProps, Input, type InputProps, type LazyLoadedComponent, type LineHeights, List, ListDivider, type ListDividerProps, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, type MaskChangeHandler, type Radii, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type SemanticColors, type Shade, type ShadeLevel, type Shadows, type Shape, type Size, type Sizes, type Spaces, Spinner, type SpinnerProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Tabs, type TabsProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, Toggle, type ToggleProps, type Typography, type UseClickOutsideProps, type UseDebounceProps, type UseMaskProps, type UseMaskResult, type ZIndeces, applyMask, colorVar, deepMerge, defaultDarkTheme, defaultTheme, formatDate, getContrastColor, getContrastRatio, getDarkenColor, getDateFormatByLanguage, getDateFromDateString, getDateStringByLanguage, getDaysOfWeekByLanguage, getLightenColor, getMonthsByLanguage, lazyLoadContent, themeToCssVars, useClickOutside, useDebounce, useMask, useTheme, validateFormatDate };
664
+ interface TooltipProps {
665
+ children: ReactElement;
666
+ className?: string;
667
+ closeDelay?: number;
668
+ content: ReactNode;
669
+ defaultOpen?: boolean;
670
+ disabled?: boolean;
671
+ offset?: number;
672
+ onOpenChange?: (open: boolean) => void;
673
+ open?: boolean;
674
+ openDelay?: number;
675
+ placement?: Placement;
676
+ size?: Size;
677
+ style?: CSSProperties;
678
+ variant?: TooltipVariant;
679
+ }
680
+ type TooltipVariant = 'solid' | 'outline' | 'unstyled';
681
+ declare function Tooltip({ children, className, closeDelay, content, defaultOpen, disabled, offset, onOpenChange, open: openProp, openDelay, placement, size, style, variant, }: Readonly<TooltipProps>): ReactNode;
682
+
683
+ export { Badge, type BadgeProps, type Breakpoints, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, type ColorMode, type ColorModeSetting, type ColorPalette, type ColorScheme, type ColorShade, type ComponentProps, DatePicker, type DatePickerConfig, type DatePickerProps, type DateRange, type DeepPartial, Field, type FieldControlProps, type FieldOrientation, type FieldProps, type FontSizes, type FontWeights, Icon, type IconProps, Input, type InputProps, type LazyLoadedComponent, type LineHeights, List, ListDivider, type ListDividerProps, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, type MaskChangeHandler, Modal, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalContent, type ModalContentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalTrigger, type ModalTriggerProps, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, type Radii, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type SemanticColors, type Shade, type ShadeLevel, type Shadows, type Shape, type Size, type Sizes, type Spaces, Spinner, type SpinnerProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Tabs, type TabsProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, type ToastAction, type ToastApi, type ToastContent, type ToastIcons, type ToastOptions, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastStatus, type ToastVariant, Toggle, type ToggleProps, Tooltip, type TooltipProps, type Typography, type UseClickOutsideProps, type UseDebounceProps, type UseMaskProps, type UseMaskResult, type ZIndeces, applyMask, colorVar, deepMerge, defaultDarkTheme, defaultTheme, formatDate, getContrastColor, getContrastRatio, getDarkenColor, getDateFormatByLanguage, getDateFromDateString, getDateStringByLanguage, getDaysOfWeekByLanguage, getLightenColor, getMonthsByLanguage, lazyLoadContent, themeToCssVars, useClickOutside, useDebounce, useMask, useTheme, useToast, validateFormatDate };
package/dist/index.d.ts CHANGED
@@ -430,6 +430,87 @@ type ListSubheaderRootAttributes = Pick<LiHTMLAttributes<HTMLLIElement>, 'childr
430
430
  type ListSubheaderProps = Omit<ComponentProps, 'index'> & ListSubheaderRootAttributes;
431
431
  declare const ListSubheader: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ListSubheaderRootAttributes & react.RefAttributes<HTMLLIElement>>;
432
432
 
433
+ interface ModalProps {
434
+ children: ReactNode;
435
+ closeOnEscape?: boolean;
436
+ closeOnOutside?: boolean;
437
+ defaultOpen?: boolean;
438
+ initialFocus?: RefObject<HTMLElement | null>;
439
+ onOpenChange?: (open: boolean) => void;
440
+ open?: boolean;
441
+ size?: Size;
442
+ variant?: ModalVariant;
443
+ }
444
+ type ModalVariant = 'default' | 'unstyled';
445
+ declare function Modal({ children, closeOnEscape, closeOnOutside, defaultOpen, initialFocus, onOpenChange, open: openProp, size, variant, }: Readonly<ModalProps>): ReactNode;
446
+
447
+ type ModalBodyRootAttributes = Pick<HTMLAttributes<HTMLElement>, 'children'>;
448
+ type ModalBodyProps = Omit<ComponentProps, 'index'> & ModalBodyRootAttributes;
449
+ declare const ModalBody: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ModalBodyRootAttributes & react.RefAttributes<HTMLElement>>;
450
+
451
+ interface OverlayCloseOwnProps {
452
+ children?: ReactNode;
453
+ label?: string;
454
+ }
455
+ type OverlayCloseProps = Omit<ComponentProps, 'index'> & OverlayCloseOwnProps;
456
+
457
+ type ModalCloseProps = OverlayCloseProps;
458
+ declare const ModalClose: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & OverlayCloseOwnProps & react.RefAttributes<HTMLElement>>;
459
+
460
+ type ModalContentRootAttributes = Pick<HTMLAttributes<HTMLDialogElement>, 'aria-describedby' | 'aria-label' | 'aria-labelledby' | 'children'>;
461
+ type ModalContentProps = Omit<ComponentProps, 'index'> & ModalContentRootAttributes;
462
+ declare const ModalContent: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ModalContentRootAttributes & react.RefAttributes<HTMLDialogElement>>;
463
+
464
+ type ModalFooterRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'children'>;
465
+ type ModalFooterProps = Omit<ComponentProps, 'index'> & ModalFooterRootAttributes;
466
+ declare const ModalFooter: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ModalFooterRootAttributes & react.RefAttributes<HTMLDivElement>>;
467
+
468
+ interface ModalHeaderOwnProps {
469
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
470
+ }
471
+ type ModalHeaderRootAttributes = Pick<HTMLAttributes<HTMLHeadingElement>, 'children'>;
472
+ type ModalHeaderProps = Omit<ComponentProps, 'index'> & ModalHeaderRootAttributes & ModalHeaderOwnProps;
473
+ declare const ModalHeader: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & ModalHeaderRootAttributes & ModalHeaderOwnProps & react.RefAttributes<HTMLHeadingElement>>;
474
+
475
+ interface ModalTriggerProps {
476
+ children: ReactNode;
477
+ className?: string;
478
+ }
479
+ declare const ModalTrigger: react.ForwardRefExoticComponent<ModalTriggerProps & react.RefAttributes<HTMLElement>>;
480
+
481
+ type Side = 'top' | 'bottom' | 'left' | 'right';
482
+ type Align = 'start' | 'center' | 'end';
483
+ type Placement = Side | `${Side}-${Align}`;
484
+
485
+ type PopoverVariant = 'elevated' | 'outline' | 'unstyled';
486
+
487
+ interface PopoverProps {
488
+ children: ReactNode;
489
+ defaultOpen?: boolean;
490
+ flip?: boolean;
491
+ offset?: number;
492
+ onOpenChange?: (open: boolean) => void;
493
+ open?: boolean;
494
+ placement?: Placement;
495
+ shift?: boolean;
496
+ size?: Size;
497
+ variant?: PopoverVariant;
498
+ }
499
+ declare function Popover({ children, defaultOpen, flip, offset, onOpenChange, open: openProp, placement, shift, size, variant, }: Readonly<PopoverProps>): ReactNode;
500
+
501
+ type PopoverCloseProps = OverlayCloseProps;
502
+ declare const PopoverClose: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & OverlayCloseOwnProps & react.RefAttributes<HTMLElement>>;
503
+
504
+ type PopoverContentRootAttributes = Pick<HTMLAttributes<HTMLDialogElement>, 'aria-describedby' | 'aria-label' | 'aria-labelledby' | 'children'>;
505
+ type PopoverContentProps = Omit<ComponentProps, 'index'> & PopoverContentRootAttributes;
506
+ declare const PopoverContent: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & PopoverContentRootAttributes & react.RefAttributes<HTMLDialogElement>>;
507
+
508
+ interface PopoverTriggerProps {
509
+ children: ReactNode;
510
+ className?: string;
511
+ }
512
+ declare const PopoverTrigger: react.ForwardRefExoticComponent<PopoverTriggerProps & react.RefAttributes<HTMLElement>>;
513
+
433
514
  interface RadioOwnProps {
434
515
  colorScheme?: ColorScheme;
435
516
  readOnly?: boolean;
@@ -522,6 +603,51 @@ type TextareaRootAttributes = Pick<TextareaHTMLAttributes<HTMLTextAreaElement>,
522
603
  type TextareaProps = Omit<ComponentProps, 'index'> & TextareaRootAttributes & TextareaOwnProps;
523
604
  declare const Textarea: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & TextareaRootAttributes & TextareaOwnProps & react.RefAttributes<HTMLTextAreaElement>>;
524
605
 
606
+ type ToastStatus = 'neutral' | 'info' | 'success' | 'warning' | 'error';
607
+ interface ToastAction {
608
+ label: string;
609
+ onClick?: () => void;
610
+ }
611
+ type ToastIcons = Partial<Record<ToastStatus, ReactNode>>;
612
+ interface ToastOptions {
613
+ action?: ToastAction;
614
+ description?: ReactNode;
615
+ dismissible?: boolean;
616
+ duration?: number;
617
+ icon?: ReactNode;
618
+ id?: string;
619
+ onDismiss?: () => void;
620
+ status?: ToastStatus;
621
+ title?: ReactNode;
622
+ }
623
+ type ToastContent = ReactNode | ToastOptions;
624
+ interface ToastApi {
625
+ dismiss: (id: string) => void;
626
+ dismissAll: () => void;
627
+ error: (content: ToastContent, options?: ToastOptions) => string;
628
+ info: (content: ToastContent, options?: ToastOptions) => string;
629
+ success: (content: ToastContent, options?: ToastOptions) => string;
630
+ toast: (content: ToastContent, options?: ToastOptions) => string;
631
+ warning: (content: ToastContent, options?: ToastOptions) => string;
632
+ }
633
+ declare function useToast(): ToastApi;
634
+
635
+ type ToastPosition = 'top-start' | 'top' | 'top-end' | 'center-start' | 'center' | 'center-end' | 'bottom-start' | 'bottom' | 'bottom-end';
636
+ type ToastVariant = 'solid' | 'subtle' | 'outline' | 'unstyled';
637
+ interface ToastProviderProps {
638
+ children: ReactNode;
639
+ className?: string;
640
+ dismissLabel?: string;
641
+ duration?: number;
642
+ icons?: false | ToastIcons;
643
+ max?: number;
644
+ position?: ToastPosition;
645
+ regionLabel?: string;
646
+ toastClassName?: string;
647
+ variant?: ToastVariant;
648
+ }
649
+ declare function ToastProvider({ children, className, dismissLabel, duration, icons, max, position, regionLabel, toastClassName, variant, }: Readonly<ToastProviderProps>): ReactNode;
650
+
525
651
  interface ToggleOwnProps {
526
652
  colorScheme?: ColorScheme;
527
653
  readOnly?: boolean;
@@ -535,4 +661,23 @@ declare const Toggle: react.ForwardRefExoticComponent<Omit<ComponentProps, "inde
535
661
  labelsItself: boolean;
536
662
  };
537
663
 
538
- export { Badge, type BadgeProps, type Breakpoints, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, type ColorMode, type ColorModeSetting, type ColorPalette, type ColorScheme, type ColorShade, type ComponentProps, DatePicker, type DatePickerConfig, type DatePickerProps, type DateRange, type DeepPartial, Field, type FieldControlProps, type FieldOrientation, type FieldProps, type FontSizes, type FontWeights, Icon, type IconProps, Input, type InputProps, type LazyLoadedComponent, type LineHeights, List, ListDivider, type ListDividerProps, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, type MaskChangeHandler, type Radii, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type SemanticColors, type Shade, type ShadeLevel, type Shadows, type Shape, type Size, type Sizes, type Spaces, Spinner, type SpinnerProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Tabs, type TabsProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, Toggle, type ToggleProps, type Typography, type UseClickOutsideProps, type UseDebounceProps, type UseMaskProps, type UseMaskResult, type ZIndeces, applyMask, colorVar, deepMerge, defaultDarkTheme, defaultTheme, formatDate, getContrastColor, getContrastRatio, getDarkenColor, getDateFormatByLanguage, getDateFromDateString, getDateStringByLanguage, getDaysOfWeekByLanguage, getLightenColor, getMonthsByLanguage, lazyLoadContent, themeToCssVars, useClickOutside, useDebounce, useMask, useTheme, validateFormatDate };
664
+ interface TooltipProps {
665
+ children: ReactElement;
666
+ className?: string;
667
+ closeDelay?: number;
668
+ content: ReactNode;
669
+ defaultOpen?: boolean;
670
+ disabled?: boolean;
671
+ offset?: number;
672
+ onOpenChange?: (open: boolean) => void;
673
+ open?: boolean;
674
+ openDelay?: number;
675
+ placement?: Placement;
676
+ size?: Size;
677
+ style?: CSSProperties;
678
+ variant?: TooltipVariant;
679
+ }
680
+ type TooltipVariant = 'solid' | 'outline' | 'unstyled';
681
+ declare function Tooltip({ children, className, closeDelay, content, defaultOpen, disabled, offset, onOpenChange, open: openProp, openDelay, placement, size, style, variant, }: Readonly<TooltipProps>): ReactNode;
682
+
683
+ export { Badge, type BadgeProps, type Breakpoints, Button, type ButtonProps, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Checkbox, type CheckboxProps, type ColorMode, type ColorModeSetting, type ColorPalette, type ColorScheme, type ColorShade, type ComponentProps, DatePicker, type DatePickerConfig, type DatePickerProps, type DateRange, type DeepPartial, Field, type FieldControlProps, type FieldOrientation, type FieldProps, type FontSizes, type FontWeights, Icon, type IconProps, Input, type InputProps, type LazyLoadedComponent, type LineHeights, List, ListDivider, type ListDividerProps, ListItem, ListItemButton, type ListItemButtonProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemText, type ListItemTextProps, type ListProps, ListSubheader, type ListSubheaderProps, type MaskChangeHandler, Modal, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalContent, type ModalContentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, ModalTrigger, type ModalTriggerProps, Popover, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, type Radii, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type SemanticColors, type Shade, type ShadeLevel, type Shadows, type Shape, type Size, type Sizes, type Spaces, Spinner, type SpinnerProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Tabs, type TabsProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, type ToastAction, type ToastApi, type ToastContent, type ToastIcons, type ToastOptions, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastStatus, type ToastVariant, Toggle, type ToggleProps, Tooltip, type TooltipProps, type Typography, type UseClickOutsideProps, type UseDebounceProps, type UseMaskProps, type UseMaskResult, type ZIndeces, applyMask, colorVar, deepMerge, defaultDarkTheme, defaultTheme, formatDate, getContrastColor, getContrastRatio, getDarkenColor, getDateFormatByLanguage, getDateFromDateString, getDateStringByLanguage, getDaysOfWeekByLanguage, getLightenColor, getMonthsByLanguage, lazyLoadContent, themeToCssVars, useClickOutside, useDebounce, useMask, useTheme, useToast, validateFormatDate };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";var dt=Object.defineProperty;var ur=Object.getOwnPropertyDescriptor;var mr=Object.getOwnPropertyNames;var br=Object.prototype.hasOwnProperty;var fr=(e,t)=>{for(var o in t)dt(e,o,{get:t[o],enumerable:!0})},gr=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of mr(t))!br.call(e,a)&&a!==o&&dt(e,a,{get:()=>t[a],enumerable:!(r=ur(t,a))||r.enumerable});return e};var vr=e=>gr(dt({},"__esModule",{value:!0}),e);var Zr={};fr(Zr,{Badge:()=>Tt,Button:()=>E,Card:()=>Pt,CardBody:()=>zt,CardFooter:()=>St,CardHeader:()=>Lt,Checkbox:()=>wo,DatePicker:()=>Ht,Field:()=>Ot,Icon:()=>Bt,Input:()=>Be,List:()=>$t,ListDivider:()=>jt,ListItem:()=>Ft,ListItemButton:()=>Vt,ListItemIcon:()=>Gt,ListItemText:()=>Yt,ListSubheader:()=>Ut,Radio:()=>Jo,RadioGroup:()=>Xt,Spinner:()=>Se,Tab:()=>to,TabList:()=>eo,TabPanel:()=>ro,TabPanels:()=>oo,Tabs:()=>Qt,Textarea:()=>ao,ThemeProvider:()=>Cr,Toggle:()=>pr,applyMask:()=>We,colorVar:()=>_t,deepMerge:()=>He,defaultDarkTheme:()=>pt,defaultTheme:()=>ct,formatDate:()=>ue,getContrastColor:()=>ut,getContrastRatio:()=>_e,getDarkenColor:()=>Le,getDateFormatByLanguage:()=>Pe,getDateFromDateString:()=>me,getDateStringByLanguage:()=>Ze,getDaysOfWeekByLanguage:()=>xt,getLightenColor:()=>Ve,getMonthsByLanguage:()=>yt,lazyLoadContent:()=>kt,themeToCssVars:()=>bt,useClickOutside:()=>gt,useDebounce:()=>vt,useMask:()=>ht,useTheme:()=>Tr,validateFormatDate:()=>Oe});module.exports=vr(Zr);var ct={colors:{primary:{50:"#ecf2ff",100:"#dce8ff",200:"#c1d2ff",300:"#9bb4ff",400:"#738bff",500:"#5263ff",600:"#3a3df8",700:"#2727db",800:"#2223b1",900:"#24278b",950:"#151551"},secondary:{50:"#f5f6f6",100:"#e5e7e8",200:"#cdd1d4",300:"#aab0b6",400:"#808990",500:"#6c757d",600:"#565c64",700:"#4a4f54",800:"#414449",900:"#3a3c3f",950:"#242628"},info:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c6fd",400:"#60a6fa",500:"#3b83f6",600:"#2564eb",700:"#1d4fd8",800:"#1e41af",900:"#1e3b8a",950:"#172554"},warning:{50:"#fef9e8",100:"#fef0c3",200:"#fee28a",300:"#fdd147",400:"#fac215",500:"#eab308",600:"#ca9a04",700:"#a17c07",800:"#85680e",900:"#715a12",950:"#423306"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},success:{50:"#f0fdf5",100:"#dcfce8",200:"#bbf7d1",300:"#86efad",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803c",800:"#166533",900:"#14532b",950:"#052e14"},brown:{50:"#f6f3f0",100:"#e9e1d8",200:"#d4c5b4",300:"#bba289",400:"#a78568",500:"#98745a",600:"#825f4c",700:"#6d4c41",800:"#5a3f39",900:"#4f3834",950:"#2c1e1c"},pink:{50:"#fff1f3",100:"#ffe3e7",200:"#ffc0cb",300:"#ffa2b3",400:"#fe6e8b",500:"#f83b66",600:"#e51951",700:"#c20e43",800:"#a20f40",900:"#8a113c",950:"#4d041c"},purple:{50:"#fcf4ff",100:"#f9e6ff",200:"#f3d2ff",300:"#eaaeff",400:"#dd7bff",500:"#d149ff",600:"#c325f8",700:"#ab15db",800:"#8f17b2",900:"#74148f",950:"#680085"},teal:{50:"#eefffc",100:"#c5fffa",200:"#8bfff5",300:"#4afef0",400:"#15ece2",500:"#00d0c9",600:"#00a8a5",700:"#008080",800:"#066769",900:"#0a5757",950:"#003235"},yellow:{50:"#fcffe7",100:"#f5ffc1",200:"#f0ff86",300:"#efff41",400:"#f6ff0d",500:"#f0ec00",600:"#d1bb00",700:"#a68802",800:"#896a0a",900:"#74560f",950:"#442f04"}},semantic:{background:"#ffffff",surface:"#ffffff",surfaceMuted:"#f3f4f6",foreground:"#18181b",muted:"#6e6e77",border:"#d4d4d8",borderStrong:"#80808a"},typography:{fontFamily:"'Inter', sans-serif",fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"},fontWeights:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2}},spaces:{0:"0rem",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",13:"3.25rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",68:"17rem",72:"18rem",76:"19rem",80:"20rem",84:"21rem",88:"22rem",92:"23rem",96:"24rem"},sizes:{max:"max-content",min:"min-content",full:"100%"},radii:{0:"0px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",full:"9999px"},zIndeces:{0:0,1:10,2:20,3:30,4:40,5:50,6:60,7:70,8:80,9:90,10:100},shadows:{none:"none",sm:"0 1px 2px rgba(0, 0, 0, 0.05)",md:"0 4px 6px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px rgba(0, 0, 0, 0.15)",xl:"0 20px 25px rgba(0, 0, 0, 0.2)","2xl":"0 25px 50px rgba(0, 0, 0, 0.25)"},breakpoints:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"}},pt={semantic:{background:"#18181b",surface:"#27272a",surfaceMuted:"#3f3f46",foreground:"#fafafa",muted:"#acacb5",border:"#3f3f46",borderStrong:"#9a9aa3"}};function _t(e){if(e.includes(".")){let[t,o]=e.split(".");return`var(--plume-color-${t}-${o})`}return`var(--plume-color-${e}-500)`}function qe(e){let t=xr(e)?.groups;return e.startsWith("#")&&t?[parseInt(t.red,16),parseInt(t.green,16),parseInt(t.blue,16)]:hr(e)?.map(Number)||[]}function hr(e){return e.match(/\d+/g)}function xr(e){return/^#?(?<red>[a-f\d]{2})(?<green>[a-f\d]{2})(?<blue>[a-f\d]{2})$/i.exec(e)}function ut(e){let t=qe(e);if(t.length<3)return"#000000";let[o,r,a]=t;return(o*299+r*587+a*114)/1e3>140?"#000000":"#ffffff"}function io(e){let t=qe(e);if(t.length<3)return 0;let[o,r,a]=t.map(n=>{let i=n/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4});return .2126*o+.7152*r+.0722*a}function _e(e,t){let o=io(e),r=io(t),[a,n]=o>=r?[o,r]:[r,o];return(a+.05)/(n+.05)}function Ve(e,t=10){let o=qe(e);return o.length<3?e:`rgb(${o.map(a=>Math.min(255,a+(255-a)*(t/100))).join(", ")})`}function Le(e,t=10){let o=qe(e);return o.length<3?e:`rgb(${o.map(a=>Math.max(0,a-a*t/100)).join(", ")})`}var R="--plume",we="#ffffff",mt="#000000",Ge=4.5,so=e=>_e(we,e)>=_e(mt,e);function yr(e){for(let o of["500","600","700"]){let r=String(e[o]);if(_e(we,r)>=Ge)return{bg:r,fg:we}}let t=String(e[500]);if(_e(mt,t)>=Ge)return{bg:t,fg:mt};for(let o of["800","900"]){let r=String(e[o]);if(_e(we,r)>=Ge)return{bg:r,fg:we}}return{bg:String(e[900]),fg:we}}function lo(e,t){let o=so(t[0]),r=o?["500","400","300","200","100","50"]:["500","600","700","800","900","950"];for(let a of r){let n=String(e[a]);if(t.every(i=>_e(n,i)>=Ge))return n}return String(e[o?"50":"950"])}function J(e,t,o){for(let[r,a]of Object.entries(t))o[`${e}-${r}`]=String(a)}var kr=e=>e.replace(/(?<lower>[a-z0-9])(?<upper>[A-Z])/g,"$<lower>-$<upper>").toLowerCase();function bt(e){let t={},{background:o,surface:r,surfaceMuted:a}=e.semantic,n=[o,r,a],i=so(o),d=e.colors;for(let[s,c]of Object.entries(d)){J(`${R}-color-${s}`,c,t),t[`${R}-color-${s}-contrast`]=ut(String(c[500]));let{bg:_,fg:h}=yr(c);t[`${R}-color-${s}-solid`]=_,t[`${R}-color-${s}-solid-contrast`]=h,t[`${R}-color-${s}-solid-hover`]=Le(_,12),t[`${R}-color-${s}-solid-active`]=Le(_,24);let p=lo(c,n);t[`${R}-color-${s}-text`]=p,t[`${R}-color-${s}-text-hover`]=i?Ve(p,12):Le(p,12),t[`${R}-color-${s}-text-active`]=i?Ve(p,24):Le(p,24);let g=String(c[i?"900":"100"]),u=String(c[i?"800":"200"]);t[`${R}-color-${s}-tint`]=g,t[`${R}-color-${s}-tint-strong`]=u,t[`${R}-color-${s}-tint-text`]=lo(c,[g,u])}let l=e.semantic;for(let[s,c]of Object.entries(l))t[`${R}-${kr(s)}`]=c;return t[`${R}-font-family`]=e.typography.fontFamily,J(`${R}-font-size`,e.typography.fontSizes,t),J(`${R}-font-weight`,e.typography.fontWeights,t),J(`${R}-line-height`,e.typography.lineHeights,t),J(`${R}-space`,e.spaces,t),J(`${R}-size`,e.sizes,t),J(`${R}-radius`,e.radii,t),J(`${R}-z`,e.zIndeces,t),J(`${R}-shadow`,e.shadows,t),J(`${R}-breakpoint`,e.breakpoints,t),t}var O=require("react");function He(e,...t){function o(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)}function r(n,i){if(!o(n)||!o(i))return i;let d={...n};for(let l of Object.keys(i))d[l]=l in n?r(n[l],i[l]):i[l];return d}let a=o(e)?{...e}:e;for(let n of t)n!==void 0&&(a=r(a,n));return a}var ft=require("react"),co=(0,ft.createContext)(void 0);var Ye=require("react/jsx-runtime"),po=(0,O.createContext)(null);function Tr(){let e=(0,O.useContext)(po);if(!e)throw new Error("useTheme must be used within a <ThemeProvider>");return e}function Cr({children:e,theme:t,darkTheme:o,defaultColorMode:r="light",applyToBody:a=!0,className:n="",style:i}){let d=(0,O.useMemo)(()=>He(ct,t??{}),[t]),l=(0,O.useMemo)(()=>He(He(d,pt),o??{}),[d,o]),[s,c]=(0,O.useState)(r),[_,h]=(0,O.useState)(null),[p,g]=(0,O.useState)(r==="system"?"light":r);(0,O.useEffect)(()=>{if(s!=="system"){g(s);return}let T=window.matchMedia("(prefers-color-scheme: dark)"),k=()=>g(T.matches?"dark":"light");return k(),T.addEventListener("change",k),()=>T.removeEventListener("change",k)},[s]);let u=p==="dark"?l:d,b=(0,O.useMemo)(()=>bt(u),[u]);(0,O.useEffect)(()=>{if(!a||typeof document>"u")return;let{documentElement:T,body:k}=document,z=T.getAttribute("data-plume-color-mode"),m=k.style.backgroundColor,f=k.style.color;return T.setAttribute("data-plume-color-mode",p),k.style.backgroundColor=u.semantic.background,k.style.color=u.semantic.foreground,()=>{z===null?T.removeAttribute("data-plume-color-mode"):T.setAttribute("data-plume-color-mode",z),k.style.backgroundColor=m,k.style.color=f}},[a,p,u]);let y=(0,O.useMemo)(()=>({theme:u,colorMode:p,setColorMode:c}),[u,p]);return(0,Ye.jsx)(po.Provider,{value:y,children:(0,Ye.jsx)("div",{className:`plume-root ${n}`.trim(),"data-plume-color-mode":p,ref:h,style:{...b,backgroundColor:"var(--plume-background)",color:"var(--plume-foreground)",...i},children:(0,Ye.jsx)(co.Provider,{value:_,children:e})})})}var Ue=require("react");function gt({callback:e}){let t=(0,Ue.useRef)(null);return(0,Ue.useEffect)(()=>{function o(r){t.current&&!t.current.contains(r.target)&&e()}return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}},[t,e]),t}var Re=require("react");function vt({value:e,delay:t}){let[o,r]=(0,Re.useState)(e),a=(0,Re.useRef)(null);return(0,Re.useEffect)(()=>(a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{r(e)},t),()=>{a.current&&clearTimeout(a.current)}),[e,t]),o}var uo=require("react"),_o={"#":/^[0-9]$/,A:/^\p{L}$/u,"*":/^[\p{L}0-9]$/u};function Pr(e){let t=[];for(let o=0;o<e.length;o+=1){let r=e[o];r==="\\"&&o+1<e.length?(o+=1,t.push({literal:e[o]})):r in _o?t.push({slot:_o[r]}):t.push({literal:r})}return t}function We(e,t){if(!t)return e;let o="",r="",a=0;for(let n of Pr(t)){if(a>=e.length)break;if("literal"in n){r+=n.literal,e[a]===n.literal&&(a+=1);continue}for(;a<e.length&&!n.slot.test(e[a]);)a+=1;if(a>=e.length)break;o+=r+e[a],r="",a+=1}return o}function ht({mask:e,value:t,defaultValue:o="",onChange:r}){let a=t!==void 0,[n,i]=(0,uo.useState)(()=>We(o,e??"")),d=l=>{if(e){let s=We(l.target.value,e);l.target.value=s,a||i(s)}r?.(l)};return e?{value:a?We(t,e):n,onChange:d}:{value:t,onChange:d}}function Ke(e){if(e){if(e.length===2)return`${e}-${e.toUpperCase()}`}else return navigator.language;return e}function zr(e){let t={dd:"\\d{2}",mm:"\\d{2}",yyyy:"\\d{4}"},o=e.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/dd|mm|yyyy/g,r=>t[r]);return new RegExp(`^${o}$`)}function Pe(e){let t=Ke(e),r=new Intl.DateTimeFormat(t,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date),a=r.map(d=>d.type),n={year:"yyyy",month:"MM",day:"dd"};return a.map((d,l)=>n[d]||r[l].value).join("").toLocaleLowerCase()}function xt(e){let t=Ke(e),o=[],r=new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"});for(let a=0;a<7;a++){let n=new Date(Date.UTC(2024,0,1+a)),i=r.format(n).replace(/^\w/,d=>d.toUpperCase());o.push(i)}return o}function yt(e){let t=Ke(e),o=new Intl.DateTimeFormat(t,{month:"long"});return Array.from({length:12},(r,a)=>{let n=new Date;return n.setMonth(a),o.format(n).replace(/^\w/,i=>i.toUpperCase())})}function Ze({displayFormat:e,isRange:t,startDate:o,endDate:r,language:a}){let n={year:"numeric",month:"2-digit",day:"2-digit"};if(e)return t&&o&&r?`${ue(o,e)} - ${ue(r,e)}`:o?ue(o,e):"";let i=Ke(a);return t&&o&&r?`${new Intl.DateTimeFormat(i,n).format(o)} - ${new Intl.DateTimeFormat(i,n).format(r)}`:o?new Intl.DateTimeFormat(i,n).format(o):""}function ue(e,t){let o={yyyy:String(e.getFullYear()),mm:String(e.getMonth()+1).padStart(2,"0"),dd:String(e.getDate()).padStart(2,"0")};return t.replace(/yyyy|mm|dd/gi,r=>o[r.toLowerCase()])}function Oe(e,t,o){let r=o??Pe(t);if(!zr(r).test(e))return!1;let a=me(e,r);return!Number.isNaN(a.getTime())&&ue(a,r)===e}function me(e,t="mm/dd/yyyy"){let o=t.toLowerCase(),r=a=>{let n=o.indexOf(a);return n===-1?Number.NaN:Number(e.slice(n,n+a.length))};return new Date(r("yyyy"),r("mm")-1,r("dd"))}var mo=require("react");function kt(e){return(0,mo.lazy)(()=>new Promise(t=>{t({default:()=>e})}))}var bo=require("react");var ze={badge:"_badge_lalgz_1",sm:"_sm_lalgz_12",md:"_md_lalgz_17",lg:"_lg_lalgz_22",rounded:"_rounded_lalgz_27",pill:"_pill_lalgz_31",solid:"_solid_lalgz_35",outline:"_outline_lalgz_40",subtle:"_subtle_lalgz_45",dotOnly:"_dotOnly_lalgz_50",dot:"_dot_lalgz_50"};var Xe=require("react/jsx-runtime"),Sr=(e,t)=>({"--badge-solid":`var(--plume-color-${e}-solid)`,"--badge-contrast":`var(--plume-color-${e}-solid-contrast)`,"--badge-text":`var(--plume-color-${e}-text)`,"--badge-tint":`var(--plume-color-${e}-tint)`,"--badge-tint-text":`var(--plume-color-${e}-tint-text)`,...t}),Tt=(0,bo.forwardRef)(({children:e,className:t="",colorScheme:o="primary",dot:r=!1,role:a,shape:n="rounded",size:i="md",style:d,variant:l="solid",...s},c)=>{let _=l!=="unstyled",h=r&&!e,p=!!(s["aria-label"]??s["aria-labelledby"]),g=a??(p?"img":void 0),u=[_&&ze.badge,_&&ze[i],_&&ze[n],_&&ze[l],_&&h&&ze.dotOnly,t].filter(Boolean).join(" ");return(0,Xe.jsxs)("span",{className:u,ref:c,role:g,style:Sr(o,d),...s,children:[r&&_?(0,Xe.jsx)("span",{"aria-hidden":"true",className:ze.dot}):null,e]})});Tt.displayName="Badge";var vo=require("react");var fo=require("react");var Ct={"spinner-border-width":"3px","spinner-border-style":"solid","primary-border-color":"currentColor","border-color":"transparent",spinner:"_spinner_q8rz1_7",spin:"_spin_q8rz1_7",sm:"_sm_q8rz1_18",md:"_md_q8rz1_23",lg:"_lg_q8rz1_28",solid:"_solid_q8rz1_33 _spinner_q8rz1_7",dashed:"_dashed_q8rz1_38 _spinner_q8rz1_7",dotted:"_dotted_q8rz1_43 _spinner_q8rz1_7",double:"_double_q8rz1_48 _spinner_q8rz1_7",loader:"_loader_q8rz1_63",l7:"_l7_q8rz1_1",l5:"_l5_q8rz1_1",l11:"_l11_q8rz1_1",l27:"_l27_q8rz1_1",animloader:"_animloader_q8rz1_1"};var go=require("react/jsx-runtime"),Lr=({color:e,style:t,speed:o,thickness:r})=>({"--spinner-scheme":_t(e),...r&&{"--spinner-border-width":`${r}px`},"--spinner-animation-duration":o?.length?o:"1s",...t??{}}),Se=(0,fo.forwardRef)(({color:e="secondary.900",style:t,speed:o,className:r="",thickness:a=3,variant:n="solid",size:i=n!=="unstyled"?"md":void 0,...d},l)=>{let s=i&&(i!=="md"||n==="unstyled")?Ct[i]:"",c=n!=="unstyled"?Ct[n]:"",_=`
2
- ${s}
3
- ${c}
1
+ "use strict";var ro=Object.defineProperty;var Wn=Object.getOwnPropertyDescriptor;var Kn=Object.getOwnPropertyNames;var Zn=Object.prototype.hasOwnProperty;var Xn=(e,t)=>{for(var o in t)ro(e,o,{get:t[o],enumerable:!0})},Jn=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Kn(t))!Zn.call(e,n)&&n!==o&&ro(e,n,{get:()=>t[n],enumerable:!(r=Wn(t,n))||r.enumerable});return e};var Qn=e=>Jn(ro({},"__esModule",{value:!0}),e);var Ya={};Xn(Ya,{Badge:()=>vo,Button:()=>N,Card:()=>yo,CardBody:()=>xo,CardFooter:()=>To,CardHeader:()=>ko,Checkbox:()=>Nr,DatePicker:()=>So,Field:()=>Eo,Icon:()=>Do,Input:()=>it,List:()=>Ho,ListDivider:()=>Io,ListItem:()=>Oo,ListItemButton:()=>No,ListItemIcon:()=>Bo,ListItemText:()=>Fo,ListSubheader:()=>$o,Modal:()=>rn,ModalBody:()=>Vo,ModalClose:()=>qo,ModalContent:()=>Wo,ModalFooter:()=>Ko,ModalHeader:()=>Zo,ModalTrigger:()=>Xo,Popover:()=>hn,PopoverClose:()=>Qo,PopoverContent:()=>tr,PopoverTrigger:()=>or,Radio:()=>Rn,RadioGroup:()=>ir,Spinner:()=>Fe,Tab:()=>cr,TabList:()=>dr,TabPanel:()=>ur,TabPanels:()=>pr,Tabs:()=>sr,Textarea:()=>mr,ThemeProvider:()=>aa,ToastProvider:()=>jn,Toggle:()=>Gn,Tooltip:()=>Yn,applyMask:()=>Ct,colorVar:()=>io,deepMerge:()=>rt,defaultDarkTheme:()=>ao,defaultTheme:()=>no,formatDate:()=>Pe,getContrastColor:()=>lo,getContrastRatio:()=>ke,getDarkenColor:()=>qe,getDateFormatByLanguage:()=>Ne,getDateFromDateString:()=>Ce,getDateStringByLanguage:()=>Rt,getDaysOfWeekByLanguage:()=>fo,getLightenColor:()=>yt,getMonthsByLanguage:()=>bo,lazyLoadContent:()=>go,themeToCssVars:()=>co,useClickOutside:()=>uo,useDebounce:()=>mo,useMask:()=>_o,useTheme:()=>na,useToast:()=>Nn,validateFormatDate:()=>nt});module.exports=Qn(Ya);var no={colors:{primary:{50:"#ecf2ff",100:"#dce8ff",200:"#c1d2ff",300:"#9bb4ff",400:"#738bff",500:"#5263ff",600:"#3a3df8",700:"#2727db",800:"#2223b1",900:"#24278b",950:"#151551"},secondary:{50:"#f5f6f6",100:"#e5e7e8",200:"#cdd1d4",300:"#aab0b6",400:"#808990",500:"#6c757d",600:"#565c64",700:"#4a4f54",800:"#414449",900:"#3a3c3f",950:"#242628"},info:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c6fd",400:"#60a6fa",500:"#3b83f6",600:"#2564eb",700:"#1d4fd8",800:"#1e41af",900:"#1e3b8a",950:"#172554"},warning:{50:"#fef9e8",100:"#fef0c3",200:"#fee28a",300:"#fdd147",400:"#fac215",500:"#eab308",600:"#ca9a04",700:"#a17c07",800:"#85680e",900:"#715a12",950:"#423306"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},success:{50:"#f0fdf5",100:"#dcfce8",200:"#bbf7d1",300:"#86efad",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803c",800:"#166533",900:"#14532b",950:"#052e14"},brown:{50:"#f6f3f0",100:"#e9e1d8",200:"#d4c5b4",300:"#bba289",400:"#a78568",500:"#98745a",600:"#825f4c",700:"#6d4c41",800:"#5a3f39",900:"#4f3834",950:"#2c1e1c"},pink:{50:"#fff1f3",100:"#ffe3e7",200:"#ffc0cb",300:"#ffa2b3",400:"#fe6e8b",500:"#f83b66",600:"#e51951",700:"#c20e43",800:"#a20f40",900:"#8a113c",950:"#4d041c"},purple:{50:"#fcf4ff",100:"#f9e6ff",200:"#f3d2ff",300:"#eaaeff",400:"#dd7bff",500:"#d149ff",600:"#c325f8",700:"#ab15db",800:"#8f17b2",900:"#74148f",950:"#680085"},teal:{50:"#eefffc",100:"#c5fffa",200:"#8bfff5",300:"#4afef0",400:"#15ece2",500:"#00d0c9",600:"#00a8a5",700:"#008080",800:"#066769",900:"#0a5757",950:"#003235"},yellow:{50:"#fcffe7",100:"#f5ffc1",200:"#f0ff86",300:"#efff41",400:"#f6ff0d",500:"#f0ec00",600:"#d1bb00",700:"#a68802",800:"#896a0a",900:"#74560f",950:"#442f04"}},semantic:{background:"#ffffff",surface:"#ffffff",surfaceMuted:"#f3f4f6",foreground:"#18181b",muted:"#6e6e77",border:"#d4d4d8",borderStrong:"#80808a"},typography:{fontFamily:"'Inter', sans-serif",fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"},fontWeights:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2}},spaces:{0:"0rem",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",13:"3.25rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",68:"17rem",72:"18rem",76:"19rem",80:"20rem",84:"21rem",88:"22rem",92:"23rem",96:"24rem"},sizes:{max:"max-content",min:"min-content",full:"100%"},radii:{0:"0px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",full:"9999px"},zIndeces:{0:0,1:10,2:20,3:30,4:40,5:50,6:60,7:70,8:80,9:90,10:100},shadows:{none:"none",sm:"0 1px 2px rgba(0, 0, 0, 0.05)",md:"0 4px 6px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px rgba(0, 0, 0, 0.15)",xl:"0 20px 25px rgba(0, 0, 0, 0.2)","2xl":"0 25px 50px rgba(0, 0, 0, 0.25)"},breakpoints:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"}},ao={semantic:{background:"#18181b",surface:"#27272a",surfaceMuted:"#3f3f46",foreground:"#fafafa",muted:"#acacb5",border:"#3f3f46",borderStrong:"#9a9aa3"}};function io(e){if(e.includes(".")){let[t,o]=e.split(".");return`var(--plume-color-${t}-${o})`}return`var(--plume-color-${e}-500)`}function ht(e){let t=ta(e)?.groups;return e.startsWith("#")&&t?[parseInt(t.red,16),parseInt(t.green,16),parseInt(t.blue,16)]:ea(e)?.map(Number)||[]}function ea(e){return e.match(/\d+/g)}function ta(e){return/^#?(?<red>[a-f\d]{2})(?<green>[a-f\d]{2})(?<blue>[a-f\d]{2})$/i.exec(e)}function lo(e){let t=ht(e);if(t.length<3)return"#000000";let[o,r,n]=t;return(o*299+r*587+n*114)/1e3>140?"#000000":"#ffffff"}function br(e){let t=ht(e);if(t.length<3)return 0;let[o,r,n]=t.map(a=>{let i=a/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4});return .2126*o+.7152*r+.0722*n}function ke(e,t){let o=br(e),r=br(t),[n,a]=o>=r?[o,r]:[r,o];return(n+.05)/(a+.05)}function yt(e,t=10){let o=ht(e);return o.length<3?e:`rgb(${o.map(n=>Math.min(255,n+(255-n)*(t/100))).join(", ")})`}function qe(e,t=10){let o=ht(e);return o.length<3?e:`rgb(${o.map(n=>Math.max(0,n-n*t/100)).join(", ")})`}var H="--plume",Ge="#ffffff",so="#000000",xt=4.5,vr=e=>ke(Ge,e)>=ke(so,e);function oa(e){for(let o of["500","600","700"]){let r=String(e[o]);if(ke(Ge,r)>=xt)return{bg:r,fg:Ge}}let t=String(e[500]);if(ke(so,t)>=xt)return{bg:t,fg:so};for(let o of["800","900"]){let r=String(e[o]);if(ke(Ge,r)>=xt)return{bg:r,fg:Ge}}return{bg:String(e[900]),fg:Ge}}function gr(e,t){let o=vr(t[0]),r=o?["500","400","300","200","100","50"]:["500","600","700","800","900","950"];for(let n of r){let a=String(e[n]);if(t.every(i=>ke(a,i)>=xt))return a}return String(e[o?"50":"950"])}function le(e,t,o){for(let[r,n]of Object.entries(t))o[`${e}-${r}`]=String(n)}var ra=e=>e.replace(/(?<lower>[a-z0-9])(?<upper>[A-Z])/g,"$<lower>-$<upper>").toLowerCase();function co(e){let t={},{background:o,surface:r,surfaceMuted:n}=e.semantic,a=[o,r,n],i=vr(o),s=e.colors;for(let[d,p]of Object.entries(s)){le(`${H}-color-${d}`,p,t),t[`${H}-color-${d}-contrast`]=lo(String(p[500]));let{bg:c,fg:f}=oa(p);t[`${H}-color-${d}-solid`]=c,t[`${H}-color-${d}-solid-contrast`]=f,t[`${H}-color-${d}-solid-hover`]=qe(c,12),t[`${H}-color-${d}-solid-active`]=qe(c,24);let u=gr(p,a);t[`${H}-color-${d}-text`]=u,t[`${H}-color-${d}-text-hover`]=i?yt(u,12):qe(u,12),t[`${H}-color-${d}-text-active`]=i?yt(u,24):qe(u,24);let m=String(p[i?"900":"100"]),_=String(p[i?"800":"200"]);t[`${H}-color-${d}-tint`]=m,t[`${H}-color-${d}-tint-strong`]=_,t[`${H}-color-${d}-tint-text`]=gr(p,[m,_])}let l=e.semantic;for(let[d,p]of Object.entries(l))t[`${H}-${ra(d)}`]=p;return t[`${H}-font-family`]=e.typography.fontFamily,le(`${H}-font-size`,e.typography.fontSizes,t),le(`${H}-font-weight`,e.typography.fontWeights,t),le(`${H}-line-height`,e.typography.lineHeights,t),le(`${H}-space`,e.spaces,t),le(`${H}-size`,e.sizes,t),le(`${H}-radius`,e.radii,t),le(`${H}-z`,e.zIndeces,t),le(`${H}-shadow`,e.shadows,t),le(`${H}-breakpoint`,e.breakpoints,t),t}var $=require("react");function rt(e,...t){function o(a){return a!==null&&typeof a=="object"&&!Array.isArray(a)}function r(a,i){if(!o(a)||!o(i))return i;let s={...a};for(let l of Object.keys(i))s[l]=l in a?r(a[l],i[l]):i[l];return s}let n=o(e)?{...e}:e;for(let a of t)a!==void 0&&(n=r(n,a));return n}var Tt=require("react"),po=(0,Tt.createContext)(void 0),hr=()=>(0,Tt.useContext)(po);var kt=require("react/jsx-runtime"),yr=(0,$.createContext)(null);function na(){let e=(0,$.useContext)(yr);if(!e)throw new Error("useTheme must be used within a <ThemeProvider>");return e}function aa({children:e,theme:t,darkTheme:o,defaultColorMode:r="light",applyToBody:n=!0,className:a="",style:i}){let s=(0,$.useMemo)(()=>rt(no,t??{}),[t]),l=(0,$.useMemo)(()=>rt(rt(s,ao),o??{}),[s,o]),[d,p]=(0,$.useState)(r),[c,f]=(0,$.useState)(null),[u,m]=(0,$.useState)(r==="system"?"light":r);(0,$.useEffect)(()=>{if(d!=="system"){m(d);return}let x=window.matchMedia("(prefers-color-scheme: dark)"),T=()=>m(x.matches?"dark":"light");return T(),x.addEventListener("change",T),()=>x.removeEventListener("change",T)},[d]);let _=u==="dark"?l:s,g=(0,$.useMemo)(()=>co(_),[_]);(0,$.useEffect)(()=>{if(!n||typeof document>"u")return;let{documentElement:x,body:T}=document,y=x.getAttribute("data-plume-color-mode"),b=T.style.backgroundColor,v=T.style.color;return x.setAttribute("data-plume-color-mode",u),T.style.backgroundColor=_.semantic.background,T.style.color=_.semantic.foreground,()=>{y===null?x.removeAttribute("data-plume-color-mode"):x.setAttribute("data-plume-color-mode",y),T.style.backgroundColor=b,T.style.color=v}},[n,u,_]);let h=(0,$.useMemo)(()=>({theme:_,colorMode:u,setColorMode:p}),[_,u]);return(0,kt.jsx)(yr.Provider,{value:h,children:(0,kt.jsx)("div",{className:`plume-root ${a}`.trim(),"data-plume-color-mode":u,ref:f,style:{...g,backgroundColor:"var(--plume-background)",color:"var(--plume-foreground)",...i},children:(0,kt.jsx)(po.Provider,{value:c,children:e})})})}var Pt=require("react");function uo({callback:e}){let t=(0,Pt.useRef)(null);return(0,Pt.useEffect)(()=>{function o(r){t.current&&!t.current.contains(r.target)&&e()}return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}},[t,e]),t}var Ye=require("react");function mo({value:e,delay:t}){let[o,r]=(0,Ye.useState)(e),n=(0,Ye.useRef)(null);return(0,Ye.useEffect)(()=>(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{r(e)},t),()=>{n.current&&clearTimeout(n.current)}),[e,t]),o}var Tr=require("react"),xr={"#":/^[0-9]$/,A:/^\p{L}$/u,"*":/^[\p{L}0-9]$/u};function ia(e){let t=[];for(let o=0;o<e.length;o+=1){let r=e[o];r==="\\"&&o+1<e.length?(o+=1,t.push({literal:e[o]})):r in xr?t.push({slot:xr[r]}):t.push({literal:r})}return t}function Ct(e,t){if(!t)return e;let o="",r="",n=0;for(let a of ia(t)){if(n>=e.length)break;if("literal"in a){r+=a.literal,e[n]===a.literal&&(n+=1);continue}for(;n<e.length&&!a.slot.test(e[n]);)n+=1;if(n>=e.length)break;o+=r+e[n],r="",n+=1}return o}function _o({mask:e,value:t,defaultValue:o="",onChange:r}){let n=t!==void 0,[a,i]=(0,Tr.useState)(()=>Ct(o,e??"")),s=l=>{if(e){let d=Ct(l.target.value,e);l.target.value=d,n||i(d)}r?.(l)};return e?{value:n?Ct(t,e):a,onChange:s}:{value:t,onChange:s}}function wt(e){if(e){if(e.length===2)return`${e}-${e.toUpperCase()}`}else return navigator.language;return e}function la(e){let t={dd:"\\d{2}",mm:"\\d{2}",yyyy:"\\d{4}"},o=e.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/dd|mm|yyyy/g,r=>t[r]);return new RegExp(`^${o}$`)}function Ne(e){let t=wt(e),r=new Intl.DateTimeFormat(t,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date),n=r.map(s=>s.type),a={year:"yyyy",month:"MM",day:"dd"};return n.map((s,l)=>a[s]||r[l].value).join("").toLocaleLowerCase()}function fo(e){let t=wt(e),o=[],r=new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"});for(let n=0;n<7;n++){let a=new Date(Date.UTC(2024,0,1+n)),i=r.format(a).replace(/^\w/,s=>s.toUpperCase());o.push(i)}return o}function bo(e){let t=wt(e),o=new Intl.DateTimeFormat(t,{month:"long"});return Array.from({length:12},(r,n)=>{let a=new Date;return a.setMonth(n),o.format(a).replace(/^\w/,i=>i.toUpperCase())})}function Rt({displayFormat:e,isRange:t,startDate:o,endDate:r,language:n}){let a={year:"numeric",month:"2-digit",day:"2-digit"};if(e)return t&&o&&r?`${Pe(o,e)} - ${Pe(r,e)}`:o?Pe(o,e):"";let i=wt(n);return t&&o&&r?`${new Intl.DateTimeFormat(i,a).format(o)} - ${new Intl.DateTimeFormat(i,a).format(r)}`:o?new Intl.DateTimeFormat(i,a).format(o):""}function Pe(e,t){let o={yyyy:String(e.getFullYear()),mm:String(e.getMonth()+1).padStart(2,"0"),dd:String(e.getDate()).padStart(2,"0")};return t.replace(/yyyy|mm|dd/gi,r=>o[r.toLowerCase()])}function nt(e,t,o){let r=o??Ne(t);if(!la(r).test(e))return!1;let n=Ce(e,r);return!Number.isNaN(n.getTime())&&Pe(n,r)===e}function Ce(e,t="mm/dd/yyyy"){let o=t.toLowerCase(),r=n=>{let a=o.indexOf(n);return a===-1?Number.NaN:Number(e.slice(a,a+n.length))};return new Date(r("yyyy"),r("mm")-1,r("dd"))}var kr=require("react");function go(e){return(0,kr.lazy)(()=>new Promise(t=>{t({default:()=>e})}))}var Pr=require("react");var Be={badge:"_badge_lalgz_1",sm:"_sm_lalgz_12",md:"_md_lalgz_17",lg:"_lg_lalgz_22",rounded:"_rounded_lalgz_27",pill:"_pill_lalgz_31",solid:"_solid_lalgz_35",outline:"_outline_lalgz_40",subtle:"_subtle_lalgz_45",dotOnly:"_dotOnly_lalgz_50",dot:"_dot_lalgz_50"};var zt=require("react/jsx-runtime"),sa=(e,t)=>({"--badge-solid":`var(--plume-color-${e}-solid)`,"--badge-contrast":`var(--plume-color-${e}-solid-contrast)`,"--badge-text":`var(--plume-color-${e}-text)`,"--badge-tint":`var(--plume-color-${e}-tint)`,"--badge-tint-text":`var(--plume-color-${e}-tint-text)`,...t}),vo=(0,Pr.forwardRef)(({children:e,className:t="",colorScheme:o="primary",dot:r=!1,role:n,shape:a="rounded",size:i="md",style:s,variant:l="solid",...d},p)=>{let c=l!=="unstyled",f=r&&!e,u=!!(d["aria-label"]??d["aria-labelledby"]),m=n??(u?"img":void 0),_=[c&&Be.badge,c&&Be[i],c&&Be[a],c&&Be[l],c&&f&&Be.dotOnly,t].filter(Boolean).join(" ");return(0,zt.jsxs)("span",{className:_,ref:p,role:m,style:sa(o,s),...d,children:[r&&c?(0,zt.jsx)("span",{"aria-hidden":"true",className:Be.dot}):null,e]})});vo.displayName="Badge";var Rr=require("react");var Cr=require("react");var ho={"spinner-border-width":"3px","spinner-border-style":"solid","primary-border-color":"currentColor","border-color":"transparent",spinner:"_spinner_q8rz1_7",spin:"_spin_q8rz1_7",sm:"_sm_q8rz1_18",md:"_md_q8rz1_23",lg:"_lg_q8rz1_28",solid:"_solid_q8rz1_33 _spinner_q8rz1_7",dashed:"_dashed_q8rz1_38 _spinner_q8rz1_7",dotted:"_dotted_q8rz1_43 _spinner_q8rz1_7",double:"_double_q8rz1_48 _spinner_q8rz1_7",loader:"_loader_q8rz1_63",l7:"_l7_q8rz1_1",l5:"_l5_q8rz1_1",l11:"_l11_q8rz1_1",l27:"_l27_q8rz1_1",animloader:"_animloader_q8rz1_1"};var wr=require("react/jsx-runtime"),da=({color:e,style:t,speed:o,thickness:r})=>({"--spinner-scheme":io(e),...r&&{"--spinner-border-width":`${r}px`},"--spinner-animation-duration":o?.length?o:"1s",...t??{}}),Fe=(0,Cr.forwardRef)(({color:e="secondary.900",style:t,speed:o,className:r="",thickness:n=3,variant:a="solid",size:i=a!=="unstyled"?"md":void 0,...s},l)=>{let d=i&&(i!=="md"||a==="unstyled")?ho[i]:"",p=a!=="unstyled"?ho[a]:"",c=`
2
+ ${d}
3
+ ${p}
4
4
  ${r}
5
- `.trim();return(0,go.jsx)("output",{"aria-label":"loading",className:_,ref:l,style:Lr({color:e,style:t,speed:o,thickness:a}),...d})});Se.displayName="Spinner";var ie={button:"_button_1l5be_3",sm:"_sm_1l5be_18",md:"_md_1l5be_24",lg:"_lg_1l5be_29",rounded:"_rounded_1l5be_35",pill:"_pill_1l5be_39",solid:"_solid_1l5be_43 _button_1l5be_3",outline:"_outline_1l5be_49 _button_1l5be_3",ghost:"_ghost_1l5be_55 _button_1l5be_3",link:"_link_1l5be_60 _button_1l5be_3",icon:"_icon_1l5be_67 _button_1l5be_3",disabled:"_disabled_1l5be_111",iconMargin:"_iconMargin_1l5be_116",hidden:"_hidden_1l5be_120",spinnerMargin:"_spinnerMargin_1l5be_124"};var Q=require("react/jsx-runtime"),wr=(e,t,o,r,a,n)=>{let i=a?ie.iconMarginNone:ie.iconMargin,d=t&&!e?ie.hidden:i,l=t&&e?e:n;return(0,Q.jsxs)(Q.Fragment,{children:[o?(0,Q.jsx)("span",{className:i,children:o}):null,l?(0,Q.jsx)("span",{className:d,children:l}):null,r?(0,Q.jsx)("span",{className:i,children:r}):null]})},Rr=(e,t,o,r,a,n)=>{let i=o||r?ie.disabled:"",d=e!=="unstyled"?ie[n]:"",l=e!=="unstyled"?ie[a]:"",s=e!=="unstyled"?ie[e]:"";return`${l} ${d} ${s}
6
- ${i} ${t}`.trim()},Dr=e=>({"--button-color":`var(--plume-color-${e}-text)`,"--button-contrast-color":`var(--plume-color-${e}-solid-contrast)`,"--button-solid-bg":`var(--plume-color-${e}-solid)`,"--button-solid-hover":`var(--plume-color-${e}-solid-hover)`,"--button-solid-active":`var(--plume-color-${e}-solid-active)`,"--button-hover-color":`var(--plume-color-${e}-text-hover)`,"--button-focus-color":`var(--plume-color-${e}-text-active)`,"--button-hover-alt-color":`var(--plume-color-${e}-tint)`,"--button-focus-alt-color":`var(--plume-color-${e}-tint-strong)`}),E=(0,vo.forwardRef)(({children:e,iconLeft:t,iconRight:o,label:r,style:a,busyText:n="",className:i="",colorScheme:d="secondary",disabled:l=!1,isBusy:s=!1,shape:c="rounded",size:_="md",type:h="button",variant:p="solid",...g},u)=>{let b=Rr(p,i,l,s,_,c);return(0,Q.jsxs)("button",{className:b,disabled:l||s,ref:u,style:{...Dr(d),...a},type:h,...g,children:[wr(n,s,t,o,p==="unstyled",r),e,s?(0,Q.jsx)(Se,{style:{"--spinner-scheme":"var(--button-contrast-color)"},...n&&{className:ie.spinnerMargin},size:"sm"}):null]})});E.displayName="Button";var ho=require("react");var ee={card:"_card_i47cm_1",sm:"_sm_i47cm_11",md:"_md_i47cm_16",lg:"_lg_i47cm_21",elevated:"_elevated_i47cm_26",outline:"_outline_i47cm_31",filled:"_filled_i47cm_36",header:"_header_i47cm_40",body:"_body_i47cm_41",footer:"_footer_i47cm_42"};var xo=require("react/jsx-runtime"),Pt=(0,ho.forwardRef)(({children:e,className:t="",size:o="md",style:r,variant:a="elevated",...n},i)=>{let d=a!=="unstyled",l=[d&&ee.card,d&&ee[o],d&&ee[a],t].filter(Boolean).join(" ");return(0,xo.jsx)("div",{className:l,ref:i,style:r,...n,children:e})});Pt.displayName="Card";var yo=require("react");var ko=require("react/jsx-runtime"),zt=(0,yo.forwardRef)(({children:e,className:t="",style:o,...r},a)=>(0,ko.jsx)("div",{className:[ee.body,t].filter(Boolean).join(" "),ref:a,style:o,...r,children:e}));zt.displayName="CardBody";var To=require("react");var Co=require("react/jsx-runtime"),St=(0,To.forwardRef)(({children:e,className:t="",style:o,...r},a)=>(0,Co.jsx)("div",{className:[ee.footer,t].filter(Boolean).join(" "),ref:a,style:o,...r,children:e}));St.displayName="CardFooter";var Po=require("react");var zo=require("react/jsx-runtime"),Lt=(0,Po.forwardRef)(({children:e,className:t="",style:o,...r},a)=>(0,zo.jsx)("div",{className:[ee.header,t].filter(Boolean).join(" "),ref:a,style:o,...r,children:e}));Lt.displayName="CardHeader";var fe=require("react");var So=require("react");var Je=require("react"),wt=(0,Je.createContext)(void 0),Qe=()=>(0,Je.useContext)(wt);function De({hasText:e,id:t,labelledBy:o}){let r=Qe(),a=(0,So.useId)();return!!!(r?.labelsItself&&r.labelId&&t===r.controlId)||o?{labelledBy:o,textId:a}:{labelledBy:[r?.labelId,e?a:null].filter(Boolean).join(" "),textId:a}}var be={root:"_root_effkj_1",sm:"_sm_effkj_11",md:"_md_effkj_16",lg:"_lg_effkj_21",checkbox:"_checkbox_effkj_26",solid:"_solid_effkj_52",outline:"_outline_effkj_62",invalid:"_invalid_effkj_90",label:"_label_effkj_94",disabled:"_disabled_effkj_98"};var Ne=require("react/jsx-runtime"),Mr=(e,t)=>({"--checkbox-solid":`var(--plume-color-${e}-solid)`,"--checkbox-contrast":`var(--plume-color-${e}-solid-contrast)`,"--checkbox-text":`var(--plume-color-${e}-text)`,...t}),Lo=(0,fe.forwardRef)(({children:e,className:t="",colorScheme:o="primary",disabled:r=!1,onChange:a,indeterminate:n=!1,readOnly:i=!1,size:d="md",style:l,variant:s="solid",...c},_)=>{let h=(0,fe.useRef)(null),p=s!=="unstyled",{labelledBy:g,textId:u}=De({hasText:!!e,id:c.id,labelledBy:c["aria-labelledby"]}),b=e?"label":"span",y=c["aria-invalid"]===!0||c["aria-invalid"]==="true";(0,fe.useImperativeHandle)(_,()=>h.current),(0,fe.useEffect)(()=>{h.current&&(h.current.indeterminate=n)},[n]);let T=[p&&be.root,p&&be[d],r&&be.disabled,t].filter(Boolean).join(" "),k=p?[be.checkbox,be[s],y&&be.invalid].filter(Boolean).join(" "):void 0,z=f=>{i&&f.preventDefault()},m=f=>{i||a?.(f)};return(0,Ne.jsxs)(b,{className:T,style:Mr(y?"error":o,l),children:[(0,Ne.jsx)("input",{"aria-readonly":i||void 0,className:k,disabled:r,onChange:a?m:void 0,onClick:z,ref:h,type:"checkbox",...c,"aria-labelledby":g}),e?(0,Ne.jsx)("span",{className:p?be.label:void 0,id:u,children:e}):null]})});Lo.displayName="Checkbox";var wo=Object.assign(Lo,{labelsItself:!0});var Z=require("react");var et=require("react"),Rt=(0,et.createContext)(void 0),tt=()=>{let e=(0,et.useContext)(Rt);if(!e)throw new Error("useDatePicker must be used within a DatePickerProvider");return e};var ot={startDate:null,endDate:null},Ro=new Date(new Date().getFullYear(),new Date().getMonth()+1,1),Dt={value:ot,tempValue:ot,modalOpen:!1,year:new Date().getFullYear(),secondYear:Ro.getFullYear(),month:new Date().getMonth(),secondMonth:Ro.getMonth(),rangeDays:[]},Mt=(e,t)=>{switch(t.type){case"SET_VALUE":{let{startDate:o,endDate:r}=t.payload,a=o?.getFullYear()??e.year,n=o?.getMonth()??e.month,i=r?.getFullYear()??e.secondYear,d=r&&(r.getMonth()>e.secondMonth||o&&o.getMonth()===11)?r.getMonth():e.secondMonth;return{...e,value:t.payload,tempValue:t.payload,year:a,month:n,secondYear:i,secondMonth:d}}case"TOGGLE_MODAL":return{...e,modalOpen:!e.modalOpen};case"CLOSE_MODAL":return e.modalOpen?{...e,modalOpen:!1}:e;case"SET_YEAR":return{...e,year:t.payload};case"SET_SECOND_YEAR":return{...e,secondYear:t.payload};case"SET_MONTH":return{...e,month:t.payload};case"SET_SECOND_MONTH":return{...e,secondMonth:t.payload};case"SET_RANGE_DAYS":return{...e,rangeDays:t.payload};default:return{...e,tempValue:t.payload}}};var le=require("react");var v={"date-picker-padding":"var(--plume-space-4)","date-picker-border-radius":"var(--plume-radius-4)","date-picker-color":"var(--plume-muted)","date-picker-border-color":"var(--plume-border)","date-picker-control-border-color":"var(--plume-border-strong)",datePicker:"_datePicker_ez3xe_9",datePickerInputText:"_datePickerInputText_ez3xe_13",inputButton:"_inputButton_ez3xe_29",inputButtonIcon:"_inputButtonIcon_ez3xe_45",sm:"_sm_ez3xe_51",md:"_md_ez3xe_57",lg:"_lg_ez3xe_62",rounded:"_rounded_ez3xe_86",outline:"_outline_ez3xe_90 _datePickerInputText_ez3xe_13",pill:"_pill_ez3xe_90",filled:"_filled_ez3xe_99 _datePickerInputText_ez3xe_13",underline:"_underline_ez3xe_107 _datePickerInputText_ez3xe_13",invalid:"_invalid_ez3xe_117",datePickerModal:"_datePickerModal_ez3xe_141",calendarContainer:"_calendarContainer_ez3xe_156",calendarContainerDouble:"_calendarContainerDouble_ez3xe_161",calendar:"_calendar_ez3xe_156",calendarHeader:"_calendarHeader_ez3xe_171",day:"_day_ez3xe_178",year:"_year_ez3xe_179",month:"_month_ez3xe_180",monthYearSelectors:"_monthYearSelectors_ez3xe_181",monthSelector:"_monthSelector_ez3xe_218",yearSelector:"_yearSelector_ez3xe_219",yearSelectorGrid:"_yearSelectorGrid_ez3xe_223",selected:"_selected_ez3xe_237",monthSelectorGrid:"_monthSelectorGrid_ez3xe_247",daysOfWeek:"_daysOfWeek_ez3xe_253",dayOfWeek:"_dayOfWeek_ez3xe_260",calendarGrid:"_calendarGrid_ez3xe_269",today:"_today_ez3xe_286",rangeItem:"_rangeItem_ez3xe_290",selectedHover:"_selectedHover_ez3xe_300",hovered:"_hovered_ez3xe_305",disabledDay:"_disabledDay_ez3xe_309",outOfRangeDay:"_outOfRangeDay_ez3xe_314",footerActions:"_footerActions_ez3xe_318",footerButton:"_footerButton_ez3xe_325",footerButtonApply:"_footerButtonApply_ez3xe_329",disabled:"_disabled_ez3xe_309"};var C=require("react/jsx-runtime"),Et="yyyy-mm-dd",Me=(e,t)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+t),Do=(e,t)=>{let o=new Date(e.getFullYear(),e.getMonth()+t+1,0).getDate();return new Date(e.getFullYear(),e.getMonth()+t,Math.min(e.getDate(),o))},It=e=>(e.getDay()+6)%7,Er={ArrowLeft:e=>Me(e,-1),ArrowRight:e=>Me(e,1),ArrowUp:e=>Me(e,-7),ArrowDown:e=>Me(e,7),Home:e=>Me(e,-It(e)),End:e=>Me(e,6-It(e)),PageUp:e=>Do(e,-1),PageDown:e=>Do(e,1)},rt=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();function Ir({day:e}){return(0,C.jsx)("span",{className:v.dayOfWeek,children:e})}function Ar({selectedMonth:e,months:t,onChange:o}){let r=a=>{o(a)};return(0,C.jsx)("div",{className:v.monthSelectorGrid,children:t.map((a,n)=>(0,C.jsx)(E,{"aria-pressed":n===e,className:`${n===e?v.selected:""} ${v.month}`,label:a,onClick:()=>{r(n)},variant:"unstyled"},a))})}function Hr({selectedYear:e,startYear:t,onChange:o}){let r=n=>{o(n)},a=()=>{let n=[];for(let i=t;i<t+20;i++)n.push((0,C.jsx)(E,{"aria-pressed":e===i,className:`${e===i?v.selected:""} ${v.year}`,onClick:()=>{r(i)},variant:"unstyled",children:i},i));return n};return(0,C.jsx)("div",{className:v.yearSelectorGrid,children:a()})}function At({language:e,isRange:t,isSecondCalendar:o,minDate:r,maxDate:a,onMonthChange:n,onSelectDate:i,onYearChange:d}){let{state:l}=tt(),[s,c]=(0,le.useState)("day"),[_,h]=(0,le.useState)(o?l.secondYear:l.year),[p,g]=(0,le.useState)(null),u=(0,le.useRef)(!1),b=(0,le.useRef)(null),y=o?l.secondYear:l.year,T=o?l.secondMonth:l.month,k=Ie(),z=yt(e);(0,le.useEffect)(()=>{!u.current||!p||(u.current=!1,b.current?.querySelector(`[data-date="${ue(p,Et)}"]:enabled`)?.focus())});let m=w=>{let W=b.current?.closest('[role="dialog"]')??document,A=W.querySelectorAll(`.${v.day}:enabled`),F=Array.from(A).findIndex(G=>G.dataset.date===w),X=W.querySelector(`.${v.day}.${v.selected}`),q=t&&l.tempValue.startDate&&!l.tempValue.endDate&&X;A.forEach((G,pe)=>{let Ce=G.classList.contains(v.selected),S=pe===F;if(q){let D=Array.from(A).indexOf(X),[Y,K]=[Math.min(D,F),Math.max(D,F)];G.classList.toggle(v.rangeItem,pe>=Y&&pe<=K),G.classList.toggle(v.selectedHover,S)}else G.classList.toggle(v.selectedHover,Ce&&S),G.classList.toggle(v.hovered,!Ce&&S)})},f=()=>s==="month"?(0,C.jsx)(Ar,{months:z,onChange:I,selectedMonth:o?l.secondMonth:l.month}):s==="year"?(0,C.jsx)(Hr,{onChange:P,selectedYear:o?l.secondYear:l.year,startYear:_}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:v.daysOfWeek,children:xt(e).map(w=>(0,C.jsx)(Ir,{day:w},w))}),(0,C.jsx)("div",{className:v.calendarGrid,children:k})]}),I=w=>{n(w),c("day")},P=w=>{d(w),c("day")},N=w=>{c(s!=="day"&&s===w?"day":w)},j=()=>{h(_-20)},Te=()=>{h(_+20)};function Ie(){let w=It(new Date(y,T,1)),W=r?rt(r):-1/0,A=a?rt(a):1/0,F=new Date().toDateString(),X=new Intl.DateTimeFormat(e,{dateStyle:"full"}),q=(S,D)=>S?.toDateString()===D.toDateString(),G=Array.from({length:42},(S,D)=>{let Y=new Date(y,T,D-w+1),K=Y.getMonth()===T,x=!K||Y.getTime()<W||Y.getTime()>A;return{date:Y,isCurrentMonth:K,isDisabled:x}}),pe=G.filter(({isDisabled:S})=>!S).map(({date:S})=>S),Ce=[p,l.tempValue.startDate,new Date].map(S=>pe.find(D=>q(S,D))).find(Boolean)??pe[0];return G.map(({date:S,isCurrentMonth:D,isDisabled:Y})=>{let K=ue(S,Et),x=D&&q(l.tempValue.startDate,S),L=D&&q(l.tempValue.endDate,S),B=x||L,H=l.rangeDays.some(_r=>q(_r,S)),no=D&&S.toDateString()===F;return(0,C.jsx)(E,{"aria-current":no?"date":void 0,"aria-hidden":D?void 0:!0,"aria-label":X.format(S),"aria-pressed":D?B:void 0,className:`${v.day} ${D?"":v.disabledDay} ${B?v.selected:""} ${H&&!B&&D?v.rangeItem:""} ${D&&Y?v.outOfRangeDay:""} ${no?v.today:""}`,"data-date":K,disabled:Y,onClick:()=>{D&&i(S.getDate(),o)},onFocus:()=>{D&&m(K)},onKeyDown:Ae,onMouseEnter:()=>{D&&m(K)},tabIndex:Ce&&q(Ce,S)?0:-1,variant:"unstyled",children:(0,C.jsx)("span",{className:v.dayText,children:S.getDate()})},K)})}function Ae(w){let W=w.currentTarget.dataset.date,A=Er[w.key];if(!W||!A)return;w.preventDefault();let F=A(me(W,Et)),X=F.getTime();if(r&&X<rt(r)||a&&X>rt(a))return;let q=(F.getFullYear()-y)*12+F.getMonth()-T;q!==0&&n(T+q),u.current=!0,g(F)}return(0,C.jsxs)("div",{className:v.calendar,ref:b,children:[(0,C.jsx)("div",{className:v.calendarHeader,children:(0,C.jsxs)("div",{className:v.monthYearSelectors,children:[s!=="year"?(0,C.jsx)(E,{"aria-label":"Previous month",onClick:()=>{n((o?l.secondMonth:l.month)-1)},variant:"icon",children:(0,C.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"})})}):(0,C.jsx)(E,{"aria-label":"Previous years",onClick:j,variant:"icon",children:(0,C.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z"})})}),(0,C.jsx)(E,{className:v.monthSelector,label:z[o?l.secondMonth:l.month],onClick:()=>{N("month")},variant:"unstyled"}),(0,C.jsx)("strong",{children:"/"}),(0,C.jsx)(E,{className:v.yearSelector,label:`${o?l.secondYear:l.year}`,onClick:()=>{N("year")},variant:"unstyled"}),s!=="year"?(0,C.jsx)(E,{"aria-label":"Next month",onClick:()=>{n((o?l.secondMonth:l.month)+1)},variant:"icon",children:(0,C.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"})})}):(0,C.jsx)(E,{"aria-label":"Next years",onClick:Te,variant:"icon",children:(0,C.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"})})})]})}),f()]})}var te=require("react");var Mo=require("react");var U={"input-padding":"var(--plume-space-4)","input-border-radius":"var(--plume-radius-4)","input-color":"var(--plume-foreground)","input-border-color":"var(--plume-border-strong)","input-background-color":"var(--plume-surface-muted)",base:"_base_162n4_9",input:"_input_162n4_16",sm:"_sm_162n4_32",md:"_md_162n4_38",lg:"_lg_162n4_43",rounded:"_rounded_162n4_49",outline:"_outline_162n4_53 _input_162n4_16",pill:"_pill_162n4_53",filled:"_filled_162n4_62 _input_162n4_16",underline:"_underline_162n4_70 _input_162n4_16",invalid:"_invalid_162n4_80",inputGroup:"_inputGroup_162n4_89",disabled:"_disabled_162n4_101",addOn:"_addOn_162n4_120",element:"_element_162n4_176"};var se=require("react/jsx-runtime"),Or=(e,t,o,r,a,n,i)=>{let d=t?U.disabled:"",l=o&&r?U.invalid:"",s=r?U[a]:"",c=r?U[n]:"",_=r?U[i]:"";return`${U.base} ${c} ${s} ${_}
7
- ${d} ${l} ${e}`.trim()},Nr=e=>({"--input-color":`var(--plume-color-${e}-text)`}),Be=(0,Mo.forwardRef)(({addonBefore:e,addonAfter:t,elementBefore:o,elementAfter:r,style:a,className:n="",colorScheme:i="secondary",disabled:d=!1,readOnly:l=!1,shape:s="rounded",size:c="md",type:_="text",variant:h="outline",mask:p,value:g,defaultValue:u,onChange:b,...y},T)=>{let k=h!=="unstyled",z=y["aria-invalid"]===!0||y["aria-invalid"]==="true",m=Or(n,d,z,k,s,c,h),f={...Nr(z?"error":i),...a},I=e||t||o||r,{value:P,onChange:N}=ht({mask:p,value:typeof g=="string"?g:void 0,defaultValue:typeof u=="string"?u:void 0,onChange:b}),j={onChange:N,value:p?P:g,defaultValue:p?void 0:u};return I?(0,se.jsxs)("div",{className:k?U.inputGroup:"",style:f,children:[e?(0,se.jsx)("span",{className:k?U.addOn:"",children:e}):null,o?(0,se.jsx)("span",{className:k?U.element:"",children:o}):null,(0,se.jsx)("input",{className:m,disabled:d,readOnly:l,ref:T,type:_,...j,...y}),t?(0,se.jsx)("span",{className:k?U.addOn:"",children:t}):null,r?(0,se.jsx)("span",{className:k?U.element:"",children:r}):null]}):(0,se.jsx)("input",{className:m,disabled:d,readOnly:l,ref:T,style:f,type:_,...j,...y})});Be.displayName="Input";var de=require("react/jsx-runtime");function Eo({disabled:e,displayFormat:t,inputRef:o,isRange:r,language:a,onClick:n,onBlur:i,readOnly:d,...l}){let{state:{modalOpen:s,value:{startDate:c,endDate:_}},dispatch:h}=tt(),[p,g]=(0,te.useState)(Ze({displayFormat:t,isRange:r,...c&&{startDate:c},..._&&{endDate:_},language:a})),[u,b]=(0,te.useState)(!0),y=vt({value:p,delay:500}),T=(0,te.useRef)(null),k=(0,te.useCallback)(P=>{T.current=P,typeof o=="function"?o(P):o&&(o.current=P)},[o]);(0,te.useEffect)(()=>{if(![10,23].includes(y.length)||u)return;let P=t??Pe(a);if(y.length===10&&!r&&Oe(y,a,t)){let N=me(y,P);h({type:"SET_VALUE",payload:{startDate:N,endDate:null}})}else if(y.length===23&&Oe(y.split(" - ")[0],a,t)&&Oe(y.split(" - ")[1],a,t)){let[N,j]=y.split(" - ");h({type:"SET_VALUE",payload:{startDate:me(N,P),endDate:me(j,P)}})}},[y,h,t,u,r,a]),(0,te.useEffect)(()=>{g(Ze({displayFormat:t,isRange:r,...c&&{startDate:c},..._&&{endDate:_},language:a}))},[c,_,t,r,a]);let z=()=>{b(!0),T.current?.focus(),n()},m=P=>{b(!1),g(P.target.value)},f=(t??Pe(a)).replace(/[a-zA-Z]/g,"#"),I=r?`${f} - ${f}`:f;return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Be,{disabled:e,inputMode:"numeric",mask:I,onBlur:()=>{i?.({startDate:c,endDate:_})},onChange:m,readOnly:d,ref:k,type:"text",value:p,variant:"unstyled",...l}),(0,de.jsx)(E,{"aria-expanded":s,"aria-haspopup":"dialog","aria-label":"Open calendar",className:v.inputButton,disabled:e||d,onClick:z,shape:"pill",variant:"icon",children:(0,de.jsx)("svg",{className:v.inputButtonIcon,viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,de.jsx)("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"})})})]})}var V=require("react/jsx-runtime"),Br="en",Io={apply:"Apply",cancel:"Cancel"},$r=(e,t)=>({"--datepicker-scheme":`var(--plume-color-${e}-text)`,"--datepicker-solid":`var(--plume-color-${e}-solid)`,"--datepicker-contrast":`var(--plume-color-${e}-solid-contrast)`,"--datepicker-range-item-color":`var(--plume-color-${e}-200)`,"--datepicker-range-item-text":`var(--plume-color-${e}-900)`,"--datepicker-hover-color":`var(--plume-color-${e}-100)`,"--datepicker-selected-hover-color":`var(--plume-color-${e}-solid-hover)`,...t??{}});function jr({colorScheme:e,labels:{cancel:t,apply:o},onApply:r,onCancel:a}){return(0,V.jsxs)("div",{className:v.footerActions,children:[(0,V.jsx)(E,{className:v.footerButton,label:t,onClick:a,variant:"ghost"}),(0,V.jsx)(E,{className:v.footerButtonApply,colorScheme:e,label:o,onClick:r})]})}var Fr=(e,t,o,r,a,n)=>{let i=n&&(n!=="md"||r==="unstyled")?v[n]:"",d=a&&(a!=="rounded"||r==="unstyled")?v[a]:"",l=r!=="unstyled"?v[r]:"",s=t?v.disabled:"",c=o&&r!=="unstyled"?v.invalid:"";return`${i} ${d} ${l}
8
- ${s} ${c} ${e}`.trim()},Ht=(0,Z.forwardRef)(({onChange:e,onBlur:t,inputRef:o,displayFormat:r,style:a,showFooter:n,minDate:i,maxDate:d,placeholder:l,value:s,disabled:c=!1,className:_="",colorScheme:h="secondary",variant:p="outline",config:g,isCalendar:u=!1,isRange:b=!1,...y},T)=>{let k=g?.language??Br,z={apply:g?.footer?.apply??Io.apply,cancel:g?.footer?.cancel??Io.cancel},[m,f]=(0,Z.useReducer)(Mt,s,x=>x?Mt(Dt,{type:"SET_VALUE",payload:x}):Dt),I=(0,Z.useRef)(!0),P=gt({callback:()=>{f({type:"CLOSE_MODAL"})}}),N=x=>{P.current=x,typeof T=="function"?T(x):T&&(T.current=x)},{size:j=p!=="unstyled"?"md":void 0,shape:Te=p!=="unstyled"?"rounded":void 0}=y,Ie=Fr(_,c,y["aria-invalid"]===!0||y["aria-invalid"]==="true",p,Te,j);(0,Z.useEffect)(()=>{if(m.modalOpen)if(b&&m.tempValue.startDate&&m.tempValue.endDate){let x=[],L=new Date(m.tempValue.startDate);for(;L<=m.tempValue.endDate;)x.push(new Date(L)),L.setDate(L.getDate()+1);f({type:"SET_RANGE_DAYS",payload:x})}else f({type:"SET_RANGE_DAYS",payload:[]})},[b,m.tempValue,m.modalOpen]),(0,Z.useEffect)(()=>{if(I.current){I.current=!1;return}f({type:"SET_VALUE",payload:s??ot})},[s]),(0,Z.useEffect)(()=>{m.modalOpen&&P.current?.querySelector('[role="dialog"] [data-date][tabindex="0"]')?.focus()},[m.modalOpen,P]);let Ae=()=>{f({type:"TOGGLE_MODAL"})},w=()=>{u||(f({type:"CLOSE_MODAL"}),P.current?.querySelector("input")?.focus())};(0,Z.useEffect)(()=>{if(!m.modalOpen||u)return;let x=L=>{L.key!=="Escape"||!P.current?.contains(L.target)||(f({type:"CLOSE_MODAL"}),P.current.querySelector("input")?.focus())};return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[m.modalOpen,u,P]);let W=x=>{let L=x.relatedTarget;L&&!x.currentTarget.contains(L)&&f({type:"CLOSE_MODAL"})},A=(x,L)=>x*12+L,F=(x,L)=>{f({type:"SET_YEAR",payload:Math.floor(x/12)}),f({type:"SET_MONTH",payload:x%12}),f({type:"SET_SECOND_YEAR",payload:Math.floor(L/12)}),f({type:"SET_SECOND_MONTH",payload:L%12})},X=(x,L)=>{let B=A(x,L);F(B,Math.max(A(m.secondYear,m.secondMonth),B+1))},q=(x,L)=>{let B=A(x,L);F(Math.min(A(m.year,m.month),B-1),B)},G=x=>{X(x,m.month)},pe=x=>{X(m.year,x)},Ce=x=>{q(x,m.secondMonth)},S=x=>{q(m.secondYear,x)},D=()=>{f({type:"SET_VALUE",payload:m.tempValue}),m.tempValue.startDate&&e({startDate:m.tempValue.startDate,endDate:m.tempValue.endDate}),w()},Y=(x,L)=>{let B=new Date(L?m.secondYear:m.year,L?m.secondMonth:m.month,x),H={...m.tempValue};n||!b||!H.startDate||H.endDate?(H.startDate=B,H.endDate=null):B<H.startDate?(H.endDate=H.startDate,H.startDate=B):H.endDate=B,f({type:"SET_TEMP_VALUE",payload:H}),!n&&(!b||H.endDate)&&(e({startDate:H.startDate,endDate:H.endDate}),f({type:"SET_VALUE",payload:H}),w())},K=()=>{let x=r??Pe(k);return b?`${x} - ${x}`:x};return(0,V.jsx)(Rt.Provider,{value:{state:m,dispatch:f},children:(0,V.jsxs)("div",{className:v.datePicker,onBlur:W,ref:N,style:$r(h,a),children:[!u&&(0,V.jsx)(Eo,{className:Ie,disabled:c,displayFormat:r,inputRef:o,isRange:b,language:k,onBlur:t,onClick:Ae,placeholder:l??K(),...y}),u||m.modalOpen?(0,V.jsxs)("div",{"aria-label":"Calendar",className:v.datePickerModal,role:"dialog",children:[(0,V.jsxs)("div",{className:b?v.calendarContainerDouble:v.calendarContainer,children:[(0,V.jsx)(At,{isRange:b,language:k,maxDate:d,minDate:i,onMonthChange:pe,onSelectDate:Y,onYearChange:G}),b?(0,V.jsx)(At,{isRange:b,isSecondCalendar:!0,language:k,maxDate:d,minDate:i,onMonthChange:S,onSelectDate:Y,onYearChange:Ce}):null]}),n?(0,V.jsx)(jr,{colorScheme:h,labels:z,onApply:D,onCancel:w}):null]}):null]})})});Ht.displayName="DatePicker";var re=require("react");var ce={field:"_field_wdljj_3",vertical:"_vertical_wdljj_10 _field_wdljj_3",horizontal:"_horizontal_wdljj_14 _field_wdljj_3",label:"_label_wdljj_22",requiredIndicator:"_requiredIndicator_wdljj_32",optionalText:"_optionalText_wdljj_37",helperText:"_helperText_wdljj_43",errorText:"_errorText_wdljj_44",disabled:"_disabled_wdljj_58"};var oe=require("react/jsx-runtime");function qr({children:e,htmlFor:t,id:o,optionalText:r,required:a}){return(0,oe.jsxs)("label",{className:ce.label,htmlFor:t,id:o,children:[e,a?(0,oe.jsx)("span",{"aria-hidden":"true",className:ce.requiredIndicator,children:"*"}):null,!a&&r?(0,oe.jsx)("span",{className:ce.optionalText,children:r}):null]})}var Ot=(0,re.forwardRef)(({children:e,className:t="",disabled:o=!1,errorText:r,helperText:a,invalid:n=!!r,label:i,optionalText:d,orientation:l="vertical",readOnly:s=!1,required:c=!1,style:_},h)=>{let p=(0,re.useId)(),g=re.Children.only(e),u=g.props,b=u.id??`${p}-control`,y=i?`${p}-label`:void 0,T=`${p}-helper`,k=`${p}-error`,z=n&&!!r,m=[u["aria-describedby"],z?k:null,a?T:null].filter(Boolean).join(" ")||void 0,f=!!(g.type.labelsItself&&u.children),I=(0,re.useMemo)(()=>({controlId:b,labelId:y,labelsItself:f}),[b,y,f]),P=`${ce.field} ${ce[l]} ${o?ce.disabled:""} ${t}`.trim();return(0,oe.jsx)(wt.Provider,{value:I,children:(0,oe.jsxs)("div",{className:P,ref:h,style:_,children:[i?(0,oe.jsx)(qr,{htmlFor:f?void 0:b,id:y,optionalText:d,required:c,children:i}):null,(0,re.cloneElement)(g,{id:b,"aria-describedby":m,"aria-invalid":n||u["aria-invalid"]||void 0,disabled:o||u.disabled,readOnly:s||u.readOnly,required:c||u.required}),a?(0,oe.jsx)("p",{className:ce.helperText,id:T,children:a}):null,z?(0,oe.jsx)("p",{className:ce.errorText,id:k,children:r}):null]})})});Ot.displayName="Field";var Ao=require("react");var Nt={icon:"_icon_c6d4m_1",sm:"_sm_c6d4m_18",md:"_md_c6d4m_22",lg:"_lg_c6d4m_26"};var Ho=require("react/jsx-runtime"),Vr=(e,t)=>({...e?{"--icon-color":`var(--plume-color-${e}-text)`}:{},...t}),Bt=(0,Ao.forwardRef)(({children:e,className:t="",colorScheme:o,label:r,size:a="md",style:n,...i},d)=>{let l=[Nt.icon,Nt[a],t].filter(Boolean).join(" ");return(0,Ho.jsx)("span",{"aria-hidden":r?void 0:!0,"aria-label":r,className:l,ref:d,role:r?"img":void 0,style:Vr(o,n),...i,children:e})});Bt.displayName="Icon";var Oo=require("react");var M={list:"_list_1ts57_1",sm:"_sm_1ts57_11",md:"_md_1ts57_17",lg:"_lg_1ts57_23",plain:"_plain_1ts57_29",bordered:"_bordered_1ts57_33",filled:"_filled_1ts57_40",bullet:"_bullet_1ts57_46",number:"_number_1ts57_50",item:"_item_1ts57_54",button:"_button_1ts57_66",divided:"_divided_1ts57_75",divider:"_divider_1ts57_75",selected:"_selected_1ts57_107",secondary:"_secondary_1ts57_112",icon:"_icon_1ts57_126",text:"_text_1ts57_132",primary:"_primary_1ts57_137",subheader:"_subheader_1ts57_147"};var No=require("react/jsx-runtime"),Gr=(e,t)=>({"--list-text":`var(--plume-color-${e}-text)`,"--list-tint":`var(--plume-color-${e}-tint)`,"--list-tint-strong":`var(--plume-color-${e}-tint-strong)`,"--list-tint-text":`var(--plume-color-${e}-tint-text)`,...t}),$t=(0,Oo.forwardRef)(({as:e,children:t,className:o="",colorScheme:r="primary",divided:a,marker:n="none",role:i,size:d="md",style:l,variant:s="plain",...c},_)=>{let h=e??(n==="number"?"ol":"ul"),p=s!=="unstyled",g=a??s==="bordered",u=[p&&M.list,p&&M[s],p&&M[d],p&&M[n],p&&g&&M.divided,o].filter(Boolean).join(" ");return(0,No.jsx)(h,{className:u,ref:_,role:i??(n==="none"?"list":void 0),style:Gr(r,l),...c,children:t})});$t.displayName="List";var Bo=require("react");var $o=require("react/jsx-runtime"),jt=(0,Bo.forwardRef)(({className:e="",style:t,...o},r)=>(0,$o.jsx)("li",{"aria-hidden":"true",className:[M.divider,e].filter(Boolean).join(" "),ref:r,style:t,...o}));jt.displayName="ListDivider";var jo=require("react");var Fo=require("react/jsx-runtime"),Ft=(0,jo.forwardRef)(({children:e,className:t="",style:o,...r},a)=>(0,Fo.jsx)("li",{className:[M.item,t].filter(Boolean).join(" "),ref:a,style:o,...r,children:e}));Ft.displayName="ListItem";var qo=require("react");var qt=require("react/jsx-runtime"),Vt=(0,qo.forwardRef)(({"aria-current":e,children:t,className:o="",disabled:r=!1,href:a,selected:n=!1,style:i,...d},l)=>{let s=[M.button,n&&M.selected,o].filter(Boolean).join(" "),c=e??(n?"true":void 0);return a!==void 0?(0,qt.jsx)("a",{"aria-current":c,"aria-disabled":r||void 0,className:s,href:r?void 0:a,ref:l,role:r?"link":void 0,style:i,...d,children:t}):(0,qt.jsx)("button",{"aria-current":c,className:s,disabled:r,ref:l,style:i,type:"button",...d,children:t})});Vt.displayName="ListItemButton";var Vo=require("react");var Go=require("react/jsx-runtime"),Gt=(0,Vo.forwardRef)(({children:e,className:t="",style:o,...r},a)=>(0,Go.jsx)("span",{"aria-hidden":"true",className:[M.icon,t].filter(Boolean).join(" "),ref:a,style:o,...r,children:e}));Gt.displayName="ListItemIcon";var Yo=require("react");var $e=require("react/jsx-runtime"),Yt=(0,Yo.forwardRef)(({children:e,className:t="",primary:o,secondary:r,style:a,...n},i)=>{let d=o??e;return(0,$e.jsxs)("div",{className:[M.text,t].filter(Boolean).join(" "),ref:i,style:a,...n,children:[d?(0,$e.jsx)("span",{className:M.primary,children:d}):null,r?(0,$e.jsx)("span",{className:M.secondary,children:r}):null]})});Yt.displayName="ListItemText";var Uo=require("react");var Wo=require("react/jsx-runtime"),Ut=(0,Uo.forwardRef)(({children:e,className:t="",style:o,...r},a)=>(0,Wo.jsx)("li",{className:[M.subheader,t].filter(Boolean).join(" "),ref:a,style:o,...r,children:e}));Ut.displayName="ListSubheader";var Zo=require("react");var at=require("react"),Wt=(0,at.createContext)(void 0),Ko=()=>(0,at.useContext)(Wt);var ge={root:"_root_ge9em_1",sm:"_sm_ge9em_11",md:"_md_ge9em_16",lg:"_lg_ge9em_21",radio:"_radio_ge9em_26",solid:"_solid_ge9em_52",outline:"_outline_ge9em_61",invalid:"_invalid_ge9em_82",label:"_label_ge9em_86",disabled:"_disabled_ge9em_90"};var je=require("react/jsx-runtime"),Yr=(e,t)=>({"--radio-solid":`var(--plume-color-${e}-solid)`,"--radio-contrast":`var(--plume-color-${e}-solid-contrast)`,"--radio-text":`var(--plume-color-${e}-text)`,...t}),Xo=(0,Zo.forwardRef)(({checked:e,children:t,className:o="",colorScheme:r,defaultChecked:a,disabled:n=!1,name:i,onChange:d,readOnly:l=!1,required:s=!1,size:c,style:_,value:h,variant:p,...g},u)=>{let b=Ko(),y=p??b?.variant??"solid",{labelledBy:T,textId:k}=De({hasText:!!t,id:g.id,labelledBy:g["aria-labelledby"]}),z=t?"label":"span",m=y!=="unstyled",f=g["aria-invalid"]===!0||g["aria-invalid"]==="true"||!!b?.invalid,I=n||!!b?.disabled,P=l||!!b?.readOnly,N=c??b?.size??"md",j=r??b?.colorScheme??"primary",Te=[m&&ge.root,m&&ge[N],I&&ge.disabled,o].filter(Boolean).join(" "),Ie=m?[ge.radio,ge[y],f&&ge.invalid].filter(Boolean).join(" "):void 0,Ae=A=>{P&&A.preventDefault()},w=A=>{P||(d?.(A),b?.select(String(h??""),A))},W=b?{checked:b.value===String(h??""),name:b.name,required:b.required||s}:{checked:e,defaultChecked:a,name:i,required:s};return(0,je.jsxs)(z,{className:Te,style:Yr(f?"error":j,_),children:[(0,je.jsx)("input",{className:Ie,disabled:I,onChange:d||b?w:void 0,onClick:Ae,ref:u,type:"radio",value:h,...W,...g,"aria-labelledby":T}),t?(0,je.jsx)("span",{className:m?ge.label:void 0,id:k,children:t}):null]})});Xo.displayName="Radio";var Jo=Object.assign(Xo,{labelsItself:!0});var ae=require("react");var Kt={group:"_group_1yg36_1",vertical:"_vertical_1yg36_6",horizontal:"_horizontal_1yg36_11"};var Zt=require("react/jsx-runtime"),Xt=(0,ae.forwardRef)(({children:e,className:t="",colorScheme:o,defaultValue:r,disabled:a=!1,name:n,onChange:i,orientation:d="vertical",readOnly:l=!1,required:s=!1,size:c,style:_,value:h,variant:p,...g},u)=>{let b=(0,ae.useId)(),y=Qe(),[T,k]=(0,ae.useState)(r),z=h!==void 0,m=z?h:T,f=g["aria-invalid"]===!0||g["aria-invalid"]==="true",I=g["aria-labelledby"]??(g["aria-label"]?void 0:y?.labelId),P=(0,ae.useCallback)((j,Te)=>{z||k(j),i?.(j,Te)},[z,i]),N=(0,ae.useMemo)(()=>({colorScheme:o,disabled:a,invalid:f,name:n??b,readOnly:l,required:s,select:P,size:c,value:m,variant:p}),[o,m,a,b,f,n,l,s,P,c,p]);return(0,Zt.jsx)(Wt.Provider,{value:N,children:(0,Zt.jsx)("div",{...g,"aria-disabled":a||void 0,"aria-labelledby":I,"aria-readonly":l||void 0,"aria-required":s||void 0,className:`${Kt.group} ${Kt[d]} ${t}`.trim(),ref:u,role:"radiogroup",style:_,children:e})})});Xt.displayName="RadioGroup";var lt=require("react");var ne=require("react");var Qo=(e,{type:t,payload:o})=>{switch(t){case"SET_ACTIVE_TAB_INDEX":return{...e,index:o};case"SET_CONFIG":return{...e,...o};default:return e}};var $={"tabs-padding":"var(--plume-space-2) var(--plume-space-3)","tabs-border-width":"2px","tabs-border-radius":"var(--plume-radius-4)",tabs:"_tabs_1ct2b_6",horizontal:"_horizontal_1ct2b_11",vertical:"_vertical_1ct2b_15",left:"_left_1ct2b_19",center:"_center_1ct2b_23",right:"_right_1ct2b_27",sm:"_sm_1ct2b_31",md:"_md_1ct2b_36",lg:"_lg_1ct2b_40",underline:"_underline_1ct2b_45",tablist:"_tablist_1ct2b_55",tab:"_tab_1ct2b_6",rounded:"_rounded_1ct2b_82",segment:"_segment_1ct2b_82",active:"_active_1ct2b_97",enclosed:"_enclosed_1ct2b_115",panel:"_panel_1ct2b_174"};var or=require("react/jsx-runtime"),er=(0,ne.createContext)(void 0);function tr({config:e,children:t}){let[o,r]=(0,ne.useReducer)(Qo,e),a=o.alignment!=="left"||o.isStyled?$[o.alignment]:"",n=o.isStyled?$[o.size]:"",i=o.isStyled?$[o.variant]:"";(0,ne.useEffect)(()=>{r({type:"SET_CONFIG",payload:e})},[e.alignment,e.baseId,e.colorScheme,e.index,e.isLazy,e.orientation,e.size,e.variant]);let d=l=>{r({type:"SET_ACTIVE_TAB_INDEX",payload:l})};return(0,or.jsx)(er.Provider,{value:(0,ne.useMemo)(()=>({...o,alignmentClass:a,sizeClass:n,variantClass:i,setActiveTabIndex:d}),[a,n,o,i]),children:t})}var nt=(e,t)=>`${e}-tab-${t}`,it=(e,t)=>`${e}-panel-${t}`,ve=()=>{let e=(0,ne.useContext)(er);if(!e)throw new Error("useTabs must be used within a TabsProvider");return e};var Jt=require("react/jsx-runtime"),Ur=(e,t)=>({"--tabs-scheme":`var(--plume-color-${e}-text)`,"--tabs-solid":`var(--plume-color-${e}-solid)`,"--tabs-solid-active":`var(--plume-color-${e}-solid-active)`,"--tabs-text-color":`var(--plume-color-${e}-solid-contrast)`,...t??{}}),Qt=(0,lt.forwardRef)(({children:e,style:t,onChange:o,index:r=0,alignment:a="left",className:n="",colorScheme:i="secondary",orientation:d="horizontal",size:l="md",variant:s="underline",isLazy:c=!1,..._},h)=>{let p=(0,lt.useId)(),g=_.id??p,u=s!=="unstyled",b=`${d!=="horizontal"||u?$[d]:""} ${u?$.tabs:""} ${n}`.trim();return(0,Jt.jsx)(tr,{config:{index:r,alignment:a,baseId:g,colorScheme:i,isLazy:c,isStyled:u,orientation:d,size:l,variant:s,onChange:o},children:(0,Jt.jsx)("div",{className:b,ref:h,style:Ur(i,t),..._,children:e})})});Qt.displayName="Tabs";var he=require("react");var rr=require("react/jsx-runtime"),eo=(0,he.forwardRef)(({children:e,...t},o)=>{let{index:r,alignmentClass:a,isStyled:n,orientation:i,variantClass:d}=ve();return(0,rr.jsx)("div",{"aria-orientation":i,className:`${n?$.tablist:""} ${d} ${a}`.trim(),ref:o,role:"tablist",...t,children:he.Children.map(e,(l,s)=>(0,he.isValidElement)(l)?(0,he.cloneElement)(l,{index:s,isActive:s===r}):l)})});eo.displayName="TabList";var ar=require("react");var nr=require("react/jsx-runtime"),to=(0,ar.forwardRef)(({label:e,isActive:t,disabled:o,extraContentLeft:r,extraContentRight:a,index:n=0,children:i,className:d=""},l)=>{let{alignmentClass:s,baseId:c,isStyled:_,orientation:h,sizeClass:p,setActiveTabIndex:g,onChange:u}=ve(),[b,y]=h==="vertical"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],T=()=>{u&&u(n),g(n)},k=z=>{let m=z.currentTarget.closest('[role="tablist"]');if(!m)return;let f=Array.from(m.querySelectorAll('[role="tab"]:enabled')),I=f.indexOf(z.currentTarget),P={[b]:f[(I-1+f.length)%f.length],[y]:f[(I+1)%f.length],Home:f[0],End:f[f.length-1]}[z.key];P&&(z.preventDefault(),P.focus(),P.click())};return(0,nr.jsx)(E,{"aria-controls":t?it(c,n):void 0,"aria-selected":!!t,className:`${_?$.tab:""} ${s} ${p} ${t&&_?$.active:""} ${d}`.trim(),disabled:o,iconLeft:r,iconRight:a,id:nt(c,n),label:e??"",onClick:T,onKeyDown:k,ref:l,role:"tab",tabIndex:t?0:-1,variant:"unstyled",children:i})});to.displayName="Tab";var xe=require("react");var ir=require("react/jsx-runtime"),oo=(0,xe.forwardRef)(({children:e,...t},o)=>{let{index:r}=ve();return(0,ir.jsx)("div",{ref:o,...t,children:xe.Children.map(e,(a,n)=>n!==r?null:(0,xe.isValidElement)(a)?(0,xe.cloneElement)(a,{index:n}):a)})});oo.displayName="TabPanels";var Ee=require("react");var st=require("react/jsx-runtime"),ro=(0,Ee.forwardRef)(({children:e,className:t="",index:o=0},r)=>{let{baseId:a,colorScheme:n,isLazy:i,isStyled:d}=ve(),l=i?kt(e):e;return(0,st.jsx)("div",{"aria-labelledby":nt(a,o),className:`${d?$.panel:""} ${t}`.trim(),id:it(a,o),ref:r,role:"tabpanel",tabIndex:0,children:i?(0,st.jsx)(Ee.Suspense,{fallback:(0,st.jsx)(Se,{color:n}),children:(0,Ee.createElement)(l)}):l})});ro.displayName="TabPanel";var lr=require("react");var ye={"textarea-padding":"var(--plume-space-4)","textarea-border-radius":"var(--plume-radius-4)","textarea-border-color":"var(--plume-border-strong)","textarea-background-color":"var(--plume-surface-muted)",base:"_base_1qiho_6",textarea:"_textarea_1qiho_13",sm:"_sm_1qiho_28",md:"_md_1qiho_33",lg:"_lg_1qiho_37",rounded:"_rounded_1qiho_42",outline:"_outline_1qiho_46 _textarea_1qiho_13",pill:"_pill_1qiho_46",filled:"_filled_1qiho_55 _textarea_1qiho_13",underline:"_underline_1qiho_63 _textarea_1qiho_13",none:"_none_1qiho_69",vertical:"_vertical_1qiho_73",horizontal:"_horizontal_1qiho_77",both:"_both_1qiho_81",invalid:"_invalid_1qiho_89",disabled:"_disabled_1qiho_109"};var sr=require("react/jsx-runtime"),Wr=(e,t)=>({"--textarea-color":`var(--plume-color-${e}-text)`,...t}),ao=(0,lr.forwardRef)(({className:e="",colorScheme:t="secondary",disabled:o=!1,resize:r="vertical",rows:a=3,shape:n="rounded",size:i="md",style:d,variant:l="outline",...s},c)=>{let _=l!=="unstyled",h=s["aria-invalid"]===!0||s["aria-invalid"]==="true",p=`${_?`${ye.base} ${ye[l]} ${ye[i]} ${ye[n]} ${ye[r]}`:""} ${h&&_?ye.invalid:""} ${o?ye.disabled:""} ${e}`.replace(/\s+/g," ").trim();return(0,sr.jsx)("textarea",{className:p,disabled:o,ref:c,rows:a,style:Wr(h?"error":t,d),...s})});ao.displayName="Textarea";var dr=require("react");var ke={root:"_root_1soij_1",sm:"_sm_1soij_11",md:"_md_1soij_16",lg:"_lg_1soij_21",toggle:"_toggle_1soij_26",solid:"_solid_1soij_62",outline:"_outline_1soij_70",raised:"_raised_1soij_90",invalid:"_invalid_1soij_125",label:"_label_1soij_130",disabled:"_disabled_1soij_134"};var Fe=require("react/jsx-runtime"),Kr=(e,t)=>({"--toggle-solid":`var(--plume-color-${e}-solid)`,"--toggle-contrast":`var(--plume-color-${e}-solid-contrast)`,"--toggle-text":`var(--plume-color-${e}-text)`,...t}),cr=(0,dr.forwardRef)(({children:e,className:t="",colorScheme:o="primary",disabled:r=!1,onChange:a,readOnly:n=!1,size:i="md",style:d,variant:l="solid",...s},c)=>{let _=l!=="unstyled",{labelledBy:h,textId:p}=De({hasText:!!e,id:s.id,labelledBy:s["aria-labelledby"]}),g=e?"label":"span",u=s["aria-invalid"]===!0||s["aria-invalid"]==="true",b=[_&&ke.root,_&&ke[i],r&&ke.disabled,t].filter(Boolean).join(" "),y=_?[ke.toggle,ke[l],u&&ke.invalid].filter(Boolean).join(" "):void 0,T=z=>{n&&z.preventDefault()},k=z=>{n||a?.(z)};return(0,Fe.jsxs)(g,{className:b,style:Kr(u?"error":o,d),children:[(0,Fe.jsx)("input",{"aria-readonly":n||void 0,className:y,disabled:r,onChange:a?k:void 0,onClick:T,ref:c,role:"switch",type:"checkbox",...s,"aria-labelledby":h}),e?(0,Fe.jsx)("span",{className:_?ke.label:void 0,id:p,children:e}):null]})});cr.displayName="Toggle";var pr=Object.assign(cr,{labelsItself:!0});0&&(module.exports={Badge,Button,Card,CardBody,CardFooter,CardHeader,Checkbox,DatePicker,Field,Icon,Input,List,ListDivider,ListItem,ListItemButton,ListItemIcon,ListItemText,ListSubheader,Radio,RadioGroup,Spinner,Tab,TabList,TabPanel,TabPanels,Tabs,Textarea,ThemeProvider,Toggle,applyMask,colorVar,deepMerge,defaultDarkTheme,defaultTheme,formatDate,getContrastColor,getContrastRatio,getDarkenColor,getDateFormatByLanguage,getDateFromDateString,getDateStringByLanguage,getDaysOfWeekByLanguage,getLightenColor,getMonthsByLanguage,lazyLoadContent,themeToCssVars,useClickOutside,useDebounce,useMask,useTheme,validateFormatDate});
5
+ `.trim();return(0,wr.jsx)("output",{"aria-label":"loading",className:c,ref:l,style:da({color:e,style:t,speed:o,thickness:n}),...s})});Fe.displayName="Spinner";var be={button:"_button_1l5be_3",sm:"_sm_1l5be_18",md:"_md_1l5be_24",lg:"_lg_1l5be_29",rounded:"_rounded_1l5be_35",pill:"_pill_1l5be_39",solid:"_solid_1l5be_43 _button_1l5be_3",outline:"_outline_1l5be_49 _button_1l5be_3",ghost:"_ghost_1l5be_55 _button_1l5be_3",link:"_link_1l5be_60 _button_1l5be_3",icon:"_icon_1l5be_67 _button_1l5be_3",disabled:"_disabled_1l5be_111",iconMargin:"_iconMargin_1l5be_116",hidden:"_hidden_1l5be_120",spinnerMargin:"_spinnerMargin_1l5be_124"};var se=require("react/jsx-runtime"),ca=(e,t,o,r,n,a)=>{let i=n?be.iconMarginNone:be.iconMargin,s=t&&!e?be.hidden:i,l=t&&e?e:a;return(0,se.jsxs)(se.Fragment,{children:[o?(0,se.jsx)("span",{className:i,children:o}):null,l?(0,se.jsx)("span",{className:s,children:l}):null,r?(0,se.jsx)("span",{className:i,children:r}):null]})},pa=(e,t,o,r,n,a)=>{let i=o||r?be.disabled:"",s=e!=="unstyled"?be[a]:"",l=e!=="unstyled"?be[n]:"",d=e!=="unstyled"?be[e]:"";return`${l} ${s} ${d}
6
+ ${i} ${t}`.trim()},ua=e=>({"--button-color":`var(--plume-color-${e}-text)`,"--button-contrast-color":`var(--plume-color-${e}-solid-contrast)`,"--button-solid-bg":`var(--plume-color-${e}-solid)`,"--button-solid-hover":`var(--plume-color-${e}-solid-hover)`,"--button-solid-active":`var(--plume-color-${e}-solid-active)`,"--button-hover-color":`var(--plume-color-${e}-text-hover)`,"--button-focus-color":`var(--plume-color-${e}-text-active)`,"--button-hover-alt-color":`var(--plume-color-${e}-tint)`,"--button-focus-alt-color":`var(--plume-color-${e}-tint-strong)`}),N=(0,Rr.forwardRef)(({children:e,iconLeft:t,iconRight:o,label:r,style:n,busyText:a="",className:i="",colorScheme:s="secondary",disabled:l=!1,isBusy:d=!1,shape:p="rounded",size:c="md",type:f="button",variant:u="solid",...m},_)=>{let g=pa(u,i,l,d,c,p);return(0,se.jsxs)("button",{className:g,disabled:l||d,ref:_,style:{...ua(s),...n},type:f,...m,children:[ca(a,d,t,o,u==="unstyled",r),e,d?(0,se.jsx)(Fe,{style:{"--spinner-scheme":"var(--button-contrast-color)"},...a&&{className:be.spinnerMargin},size:"sm"}):null]})});N.displayName="Button";var zr=require("react");var de={card:"_card_i47cm_1",sm:"_sm_i47cm_11",md:"_md_i47cm_16",lg:"_lg_i47cm_21",elevated:"_elevated_i47cm_26",outline:"_outline_i47cm_31",filled:"_filled_i47cm_36",header:"_header_i47cm_40",body:"_body_i47cm_41",footer:"_footer_i47cm_42"};var Lr=require("react/jsx-runtime"),yo=(0,zr.forwardRef)(({children:e,className:t="",size:o="md",style:r,variant:n="elevated",...a},i)=>{let s=n!=="unstyled",l=[s&&de.card,s&&de[o],s&&de[n],t].filter(Boolean).join(" ");return(0,Lr.jsx)("div",{className:l,ref:i,style:r,...a,children:e})});yo.displayName="Card";var Mr=require("react");var Sr=require("react/jsx-runtime"),xo=(0,Mr.forwardRef)(({children:e,className:t="",style:o,...r},n)=>(0,Sr.jsx)("div",{className:[de.body,t].filter(Boolean).join(" "),ref:n,style:o,...r,children:e}));xo.displayName="CardBody";var Er=require("react");var Dr=require("react/jsx-runtime"),To=(0,Er.forwardRef)(({children:e,className:t="",style:o,...r},n)=>(0,Dr.jsx)("div",{className:[de.footer,t].filter(Boolean).join(" "),ref:n,style:o,...r,children:e}));To.displayName="CardFooter";var Hr=require("react");var Ir=require("react/jsx-runtime"),ko=(0,Hr.forwardRef)(({children:e,className:t="",style:o,...r},n)=>(0,Ir.jsx)("div",{className:[de.header,t].filter(Boolean).join(" "),ref:n,style:o,...r,children:e}));ko.displayName="CardHeader";var Re=require("react");var Or=require("react");var Lt=require("react"),Po=(0,Lt.createContext)(void 0),Mt=()=>(0,Lt.useContext)(Po);function Ue({hasText:e,id:t,labelledBy:o}){let r=Mt(),n=(0,Or.useId)();return!!!(r?.labelsItself&&r.labelId&&t===r.controlId)||o?{labelledBy:o,textId:n}:{labelledBy:[r?.labelId,e?n:null].filter(Boolean).join(" "),textId:n}}var we={root:"_root_effkj_1",sm:"_sm_effkj_11",md:"_md_effkj_16",lg:"_lg_effkj_21",checkbox:"_checkbox_effkj_26",solid:"_solid_effkj_52",outline:"_outline_effkj_62",invalid:"_invalid_effkj_90",label:"_label_effkj_94",disabled:"_disabled_effkj_98"};var at=require("react/jsx-runtime"),ma=(e,t)=>({"--checkbox-solid":`var(--plume-color-${e}-solid)`,"--checkbox-contrast":`var(--plume-color-${e}-solid-contrast)`,"--checkbox-text":`var(--plume-color-${e}-text)`,...t}),Ar=(0,Re.forwardRef)(({children:e,className:t="",colorScheme:o="primary",disabled:r=!1,onChange:n,indeterminate:a=!1,readOnly:i=!1,size:s="md",style:l,variant:d="solid",...p},c)=>{let f=(0,Re.useRef)(null),u=d!=="unstyled",{labelledBy:m,textId:_}=Ue({hasText:!!e,id:p.id,labelledBy:p["aria-labelledby"]}),g=e?"label":"span",h=p["aria-invalid"]===!0||p["aria-invalid"]==="true";(0,Re.useImperativeHandle)(c,()=>f.current),(0,Re.useEffect)(()=>{f.current&&(f.current.indeterminate=a)},[a]);let x=[u&&we.root,u&&we[s],r&&we.disabled,t].filter(Boolean).join(" "),T=u?[we.checkbox,we[d],h&&we.invalid].filter(Boolean).join(" "):void 0,y=v=>{i&&v.preventDefault()},b=v=>{i||n?.(v)};return(0,at.jsxs)(g,{className:x,style:ma(h?"error":o,l),children:[(0,at.jsx)("input",{"aria-readonly":i||void 0,className:T,disabled:r,onChange:n?b:void 0,onClick:y,ref:f,type:"checkbox",...p,"aria-labelledby":m}),e?(0,at.jsx)("span",{className:u?we.label:void 0,id:_,children:e}):null]})});Ar.displayName="Checkbox";var Nr=Object.assign(Ar,{labelsItself:!0});var ne=require("react");var St=require("react"),Co=(0,St.createContext)(void 0),Et=()=>{let e=(0,St.useContext)(Co);if(!e)throw new Error("useDatePicker must be used within a DatePickerProvider");return e};var Dt={startDate:null,endDate:null},Br=new Date(new Date().getFullYear(),new Date().getMonth()+1,1),wo={value:Dt,tempValue:Dt,modalOpen:!1,year:new Date().getFullYear(),secondYear:Br.getFullYear(),month:new Date().getMonth(),secondMonth:Br.getMonth(),rangeDays:[]},Ro=(e,t)=>{switch(t.type){case"SET_VALUE":{let{startDate:o,endDate:r}=t.payload,n=o?.getFullYear()??e.year,a=o?.getMonth()??e.month,i=r?.getFullYear()??e.secondYear,s=r&&(r.getMonth()>e.secondMonth||o&&o.getMonth()===11)?r.getMonth():e.secondMonth;return{...e,value:t.payload,tempValue:t.payload,year:n,month:a,secondYear:i,secondMonth:s}}case"TOGGLE_MODAL":return{...e,modalOpen:!e.modalOpen};case"CLOSE_MODAL":return e.modalOpen?{...e,modalOpen:!1}:e;case"SET_YEAR":return{...e,year:t.payload};case"SET_SECOND_YEAR":return{...e,secondYear:t.payload};case"SET_MONTH":return{...e,month:t.payload};case"SET_SECOND_MONTH":return{...e,secondMonth:t.payload};case"SET_RANGE_DAYS":return{...e,rangeDays:t.payload};default:return{...e,tempValue:t.payload}}};var ge=require("react");var k={"date-picker-padding":"var(--plume-space-4)","date-picker-border-radius":"var(--plume-radius-4)","date-picker-color":"var(--plume-muted)","date-picker-border-color":"var(--plume-border)","date-picker-control-border-color":"var(--plume-border-strong)",datePicker:"_datePicker_ez3xe_9",datePickerInputText:"_datePickerInputText_ez3xe_13",inputButton:"_inputButton_ez3xe_29",inputButtonIcon:"_inputButtonIcon_ez3xe_45",sm:"_sm_ez3xe_51",md:"_md_ez3xe_57",lg:"_lg_ez3xe_62",rounded:"_rounded_ez3xe_86",outline:"_outline_ez3xe_90 _datePickerInputText_ez3xe_13",pill:"_pill_ez3xe_90",filled:"_filled_ez3xe_99 _datePickerInputText_ez3xe_13",underline:"_underline_ez3xe_107 _datePickerInputText_ez3xe_13",invalid:"_invalid_ez3xe_117",datePickerModal:"_datePickerModal_ez3xe_141",calendarContainer:"_calendarContainer_ez3xe_156",calendarContainerDouble:"_calendarContainerDouble_ez3xe_161",calendar:"_calendar_ez3xe_156",calendarHeader:"_calendarHeader_ez3xe_171",day:"_day_ez3xe_178",year:"_year_ez3xe_179",month:"_month_ez3xe_180",monthYearSelectors:"_monthYearSelectors_ez3xe_181",monthSelector:"_monthSelector_ez3xe_218",yearSelector:"_yearSelector_ez3xe_219",yearSelectorGrid:"_yearSelectorGrid_ez3xe_223",selected:"_selected_ez3xe_237",monthSelectorGrid:"_monthSelectorGrid_ez3xe_247",daysOfWeek:"_daysOfWeek_ez3xe_253",dayOfWeek:"_dayOfWeek_ez3xe_260",calendarGrid:"_calendarGrid_ez3xe_269",today:"_today_ez3xe_286",rangeItem:"_rangeItem_ez3xe_290",selectedHover:"_selectedHover_ez3xe_300",hovered:"_hovered_ez3xe_305",disabledDay:"_disabledDay_ez3xe_309",outOfRangeDay:"_outOfRangeDay_ez3xe_314",footerActions:"_footerActions_ez3xe_318",footerButton:"_footerButton_ez3xe_325",footerButtonApply:"_footerButtonApply_ez3xe_329",disabled:"_disabled_ez3xe_309"};var R=require("react/jsx-runtime"),zo="yyyy-mm-dd",We=(e,t)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+t),Fr=(e,t)=>{let o=new Date(e.getFullYear(),e.getMonth()+t+1,0).getDate();return new Date(e.getFullYear(),e.getMonth()+t,Math.min(e.getDate(),o))},Lo=e=>(e.getDay()+6)%7,_a={ArrowLeft:e=>We(e,-1),ArrowRight:e=>We(e,1),ArrowUp:e=>We(e,-7),ArrowDown:e=>We(e,7),Home:e=>We(e,-Lo(e)),End:e=>We(e,6-Lo(e)),PageUp:e=>Fr(e,-1),PageDown:e=>Fr(e,1)},Ht=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();function fa({day:e}){return(0,R.jsx)("span",{className:k.dayOfWeek,children:e})}function ba({selectedMonth:e,months:t,onChange:o}){let r=n=>{o(n)};return(0,R.jsx)("div",{className:k.monthSelectorGrid,children:t.map((n,a)=>(0,R.jsx)(N,{"aria-pressed":a===e,className:`${a===e?k.selected:""} ${k.month}`,label:n,onClick:()=>{r(a)},variant:"unstyled"},n))})}function ga({selectedYear:e,startYear:t,onChange:o}){let r=a=>{o(a)},n=()=>{let a=[];for(let i=t;i<t+20;i++)a.push((0,R.jsx)(N,{"aria-pressed":e===i,className:`${e===i?k.selected:""} ${k.year}`,onClick:()=>{r(i)},variant:"unstyled",children:i},i));return a};return(0,R.jsx)("div",{className:k.yearSelectorGrid,children:n()})}function Mo({language:e,isRange:t,isSecondCalendar:o,minDate:r,maxDate:n,onMonthChange:a,onSelectDate:i,onYearChange:s}){let{state:l}=Et(),[d,p]=(0,ge.useState)("day"),[c,f]=(0,ge.useState)(o?l.secondYear:l.year),[u,m]=(0,ge.useState)(null),_=(0,ge.useRef)(!1),g=(0,ge.useRef)(null),h=o?l.secondYear:l.year,x=o?l.secondMonth:l.month,T=Z(),y=bo(e);(0,ge.useEffect)(()=>{!_.current||!u||(_.current=!1,g.current?.querySelector(`[data-date="${Pe(u,zo)}"]:enabled`)?.focus())});let b=M=>{let X=g.current?.closest('[role="dialog"]')??document,A=X.querySelectorAll(`.${k.day}:enabled`),j=Array.from(A).findIndex(J=>J.dataset.date===M),D=X.querySelector(`.${k.day}.${k.selected}`),B=t&&l.tempValue.startDate&&!l.tempValue.endDate&&D;A.forEach((J,Te)=>{let Ae=J.classList.contains(k.selected),S=Te===j;if(B){let I=Array.from(A).indexOf(D),[Q,re]=[Math.min(I,j),Math.max(I,j)];J.classList.toggle(k.rangeItem,Te>=Q&&Te<=re),J.classList.toggle(k.selectedHover,S)}else J.classList.toggle(k.selectedHover,Ae&&S),J.classList.toggle(k.hovered,!Ae&&S)})},v=()=>d==="month"?(0,R.jsx)(ba,{months:y,onChange:w,selectedMonth:o?l.secondMonth:l.month}):d==="year"?(0,R.jsx)(ga,{onChange:P,selectedYear:o?l.secondYear:l.year,startYear:c}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:k.daysOfWeek,children:fo(e).map(M=>(0,R.jsx)(fa,{day:M},M))}),(0,R.jsx)("div",{className:k.calendarGrid,children:T})]}),w=M=>{a(M),p("day")},P=M=>{s(M),p("day")},L=M=>{p(d!=="day"&&d===M?"day":M)},z=()=>{f(c-20)},V=()=>{f(c+20)};function Z(){let M=Lo(new Date(h,x,1)),X=r?Ht(r):-1/0,A=n?Ht(n):1/0,j=new Date().toDateString(),D=new Intl.DateTimeFormat(e,{dateStyle:"full"}),B=(S,I)=>S?.toDateString()===I.toDateString(),J=Array.from({length:42},(S,I)=>{let Q=new Date(h,x,I-M+1),re=Q.getMonth()===x,C=!re||Q.getTime()<X||Q.getTime()>A;return{date:Q,isCurrentMonth:re,isDisabled:C}}),Te=J.filter(({isDisabled:S})=>!S).map(({date:S})=>S),Ae=[u,l.tempValue.startDate,new Date].map(S=>Te.find(I=>B(S,I))).find(Boolean)??Te[0];return J.map(({date:S,isCurrentMonth:I,isDisabled:Q})=>{let re=Pe(S,zo),C=I&&B(l.tempValue.startDate,S),E=I&&B(l.tempValue.endDate,S),q=C||E,F=l.rangeDays.some(Un=>B(Un,S)),fr=I&&S.toDateString()===j;return(0,R.jsx)(N,{"aria-current":fr?"date":void 0,"aria-hidden":I?void 0:!0,"aria-label":D.format(S),"aria-pressed":I?q:void 0,className:`${k.day} ${I?"":k.disabledDay} ${q?k.selected:""} ${F&&!q&&I?k.rangeItem:""} ${I&&Q?k.outOfRangeDay:""} ${fr?k.today:""}`,"data-date":re,disabled:Q,onClick:()=>{I&&i(S.getDate(),o)},onFocus:()=>{I&&b(re)},onKeyDown:fe,onMouseEnter:()=>{I&&b(re)},tabIndex:Ae&&B(Ae,S)?0:-1,variant:"unstyled",children:(0,R.jsx)("span",{className:k.dayText,children:S.getDate()})},re)})}function fe(M){let X=M.currentTarget.dataset.date,A=_a[M.key];if(!X||!A)return;M.preventDefault();let j=A(Ce(X,zo)),D=j.getTime();if(r&&D<Ht(r)||n&&D>Ht(n))return;let B=(j.getFullYear()-h)*12+j.getMonth()-x;B!==0&&a(x+B),_.current=!0,m(j)}return(0,R.jsxs)("div",{className:k.calendar,ref:g,children:[(0,R.jsx)("div",{className:k.calendarHeader,children:(0,R.jsxs)("div",{className:k.monthYearSelectors,children:[d!=="year"?(0,R.jsx)(N,{"aria-label":"Previous month",onClick:()=>{a((o?l.secondMonth:l.month)-1)},variant:"icon",children:(0,R.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"})})}):(0,R.jsx)(N,{"aria-label":"Previous years",onClick:z,variant:"icon",children:(0,R.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z"})})}),(0,R.jsx)(N,{className:k.monthSelector,label:y[o?l.secondMonth:l.month],onClick:()=>{L("month")},variant:"unstyled"}),(0,R.jsx)("strong",{children:"/"}),(0,R.jsx)(N,{className:k.yearSelector,label:`${o?l.secondYear:l.year}`,onClick:()=>{L("year")},variant:"unstyled"}),d!=="year"?(0,R.jsx)(N,{"aria-label":"Next month",onClick:()=>{a((o?l.secondMonth:l.month)+1)},variant:"icon",children:(0,R.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"})})}):(0,R.jsx)(N,{"aria-label":"Next years",onClick:V,variant:"icon",children:(0,R.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"})})})]})}),v()]})}var ce=require("react");var $r=require("react");var ee={"input-padding":"var(--plume-space-4)","input-border-radius":"var(--plume-radius-4)","input-color":"var(--plume-foreground)","input-border-color":"var(--plume-border-strong)","input-background-color":"var(--plume-surface-muted)",base:"_base_162n4_9",input:"_input_162n4_16",sm:"_sm_162n4_32",md:"_md_162n4_38",lg:"_lg_162n4_43",rounded:"_rounded_162n4_49",outline:"_outline_162n4_53 _input_162n4_16",pill:"_pill_162n4_53",filled:"_filled_162n4_62 _input_162n4_16",underline:"_underline_162n4_70 _input_162n4_16",invalid:"_invalid_162n4_80",inputGroup:"_inputGroup_162n4_89",disabled:"_disabled_162n4_101",addOn:"_addOn_162n4_120",element:"_element_162n4_176"};var ve=require("react/jsx-runtime"),va=(e,t,o,r,n,a,i)=>{let s=t?ee.disabled:"",l=o&&r?ee.invalid:"",d=r?ee[n]:"",p=r?ee[a]:"",c=r?ee[i]:"";return`${ee.base} ${p} ${d} ${c}
7
+ ${s} ${l} ${e}`.trim()},ha=e=>({"--input-color":`var(--plume-color-${e}-text)`}),it=(0,$r.forwardRef)(({addonBefore:e,addonAfter:t,elementBefore:o,elementAfter:r,style:n,className:a="",colorScheme:i="secondary",disabled:s=!1,readOnly:l=!1,shape:d="rounded",size:p="md",type:c="text",variant:f="outline",mask:u,value:m,defaultValue:_,onChange:g,...h},x)=>{let T=f!=="unstyled",y=h["aria-invalid"]===!0||h["aria-invalid"]==="true",b=va(a,s,y,T,d,p,f),v={...ha(y?"error":i),...n},w=e||t||o||r,{value:P,onChange:L}=_o({mask:u,value:typeof m=="string"?m:void 0,defaultValue:typeof _=="string"?_:void 0,onChange:g}),z={onChange:L,value:u?P:m,defaultValue:u?void 0:_};return w?(0,ve.jsxs)("div",{className:T?ee.inputGroup:"",style:v,children:[e?(0,ve.jsx)("span",{className:T?ee.addOn:"",children:e}):null,o?(0,ve.jsx)("span",{className:T?ee.element:"",children:o}):null,(0,ve.jsx)("input",{className:b,disabled:s,readOnly:l,ref:x,type:c,...z,...h}),t?(0,ve.jsx)("span",{className:T?ee.addOn:"",children:t}):null,r?(0,ve.jsx)("span",{className:T?ee.element:"",children:r}):null]}):(0,ve.jsx)("input",{className:b,disabled:s,readOnly:l,ref:x,style:v,type:c,...z,...h})});it.displayName="Input";var he=require("react/jsx-runtime");function jr({disabled:e,displayFormat:t,inputRef:o,isRange:r,language:n,onClick:a,onBlur:i,readOnly:s,...l}){let{state:{modalOpen:d,value:{startDate:p,endDate:c}},dispatch:f}=Et(),[u,m]=(0,ce.useState)(Rt({displayFormat:t,isRange:r,...p&&{startDate:p},...c&&{endDate:c},language:n})),[_,g]=(0,ce.useState)(!0),h=mo({value:u,delay:500}),x=(0,ce.useRef)(null),T=(0,ce.useCallback)(P=>{x.current=P,typeof o=="function"?o(P):o&&(o.current=P)},[o]);(0,ce.useEffect)(()=>{if(![10,23].includes(h.length)||_)return;let P=t??Ne(n);if(h.length===10&&!r&&nt(h,n,t)){let L=Ce(h,P);f({type:"SET_VALUE",payload:{startDate:L,endDate:null}})}else if(h.length===23&&nt(h.split(" - ")[0],n,t)&&nt(h.split(" - ")[1],n,t)){let[L,z]=h.split(" - ");f({type:"SET_VALUE",payload:{startDate:Ce(L,P),endDate:Ce(z,P)}})}},[h,f,t,_,r,n]),(0,ce.useEffect)(()=>{m(Rt({displayFormat:t,isRange:r,...p&&{startDate:p},...c&&{endDate:c},language:n}))},[p,c,t,r,n]);let y=()=>{g(!0),x.current?.focus(),a()},b=P=>{g(!1),m(P.target.value)},v=(t??Ne(n)).replace(/[a-zA-Z]/g,"#"),w=r?`${v} - ${v}`:v;return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(it,{disabled:e,inputMode:"numeric",mask:w,onBlur:()=>{i?.({startDate:p,endDate:c})},onChange:b,readOnly:s,ref:T,type:"text",value:u,variant:"unstyled",...l}),(0,he.jsx)(N,{"aria-expanded":d,"aria-haspopup":"dialog","aria-label":"Open calendar",className:k.inputButton,disabled:e||s,onClick:y,shape:"pill",variant:"icon",children:(0,he.jsx)("svg",{className:k.inputButtonIcon,viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,he.jsx)("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"})})})]})}var K=require("react/jsx-runtime"),ya="en",Vr={apply:"Apply",cancel:"Cancel"},xa=(e,t)=>({"--datepicker-scheme":`var(--plume-color-${e}-text)`,"--datepicker-solid":`var(--plume-color-${e}-solid)`,"--datepicker-contrast":`var(--plume-color-${e}-solid-contrast)`,"--datepicker-range-item-color":`var(--plume-color-${e}-200)`,"--datepicker-range-item-text":`var(--plume-color-${e}-900)`,"--datepicker-hover-color":`var(--plume-color-${e}-100)`,"--datepicker-selected-hover-color":`var(--plume-color-${e}-solid-hover)`,...t??{}});function Ta({colorScheme:e,labels:{cancel:t,apply:o},onApply:r,onCancel:n}){return(0,K.jsxs)("div",{className:k.footerActions,children:[(0,K.jsx)(N,{className:k.footerButton,label:t,onClick:n,variant:"ghost"}),(0,K.jsx)(N,{className:k.footerButtonApply,colorScheme:e,label:o,onClick:r})]})}var ka=(e,t,o,r,n,a)=>{let i=a&&(a!=="md"||r==="unstyled")?k[a]:"",s=n&&(n!=="rounded"||r==="unstyled")?k[n]:"",l=r!=="unstyled"?k[r]:"",d=t?k.disabled:"",p=o&&r!=="unstyled"?k.invalid:"";return`${i} ${s} ${l}
8
+ ${d} ${p} ${e}`.trim()},So=(0,ne.forwardRef)(({onChange:e,onBlur:t,inputRef:o,displayFormat:r,style:n,showFooter:a,minDate:i,maxDate:s,placeholder:l,value:d,disabled:p=!1,className:c="",colorScheme:f="secondary",variant:u="outline",config:m,isCalendar:_=!1,isRange:g=!1,...h},x)=>{let T=m?.language??ya,y={apply:m?.footer?.apply??Vr.apply,cancel:m?.footer?.cancel??Vr.cancel},[b,v]=(0,ne.useReducer)(Ro,d,C=>C?Ro(wo,{type:"SET_VALUE",payload:C}):wo),w=(0,ne.useRef)(!0),P=uo({callback:()=>{v({type:"CLOSE_MODAL"})}}),L=C=>{P.current=C,typeof x=="function"?x(C):x&&(x.current=C)},{size:z=u!=="unstyled"?"md":void 0,shape:V=u!=="unstyled"?"rounded":void 0}=h,Z=ka(c,p,h["aria-invalid"]===!0||h["aria-invalid"]==="true",u,V,z);(0,ne.useEffect)(()=>{if(b.modalOpen)if(g&&b.tempValue.startDate&&b.tempValue.endDate){let C=[],E=new Date(b.tempValue.startDate);for(;E<=b.tempValue.endDate;)C.push(new Date(E)),E.setDate(E.getDate()+1);v({type:"SET_RANGE_DAYS",payload:C})}else v({type:"SET_RANGE_DAYS",payload:[]})},[g,b.tempValue,b.modalOpen]),(0,ne.useEffect)(()=>{if(w.current){w.current=!1;return}v({type:"SET_VALUE",payload:d??Dt})},[d]),(0,ne.useEffect)(()=>{b.modalOpen&&P.current?.querySelector('[role="dialog"] [data-date][tabindex="0"]')?.focus()},[b.modalOpen,P]);let fe=()=>{v({type:"TOGGLE_MODAL"})},M=()=>{_||(v({type:"CLOSE_MODAL"}),P.current?.querySelector("input")?.focus())};(0,ne.useEffect)(()=>{if(!b.modalOpen||_)return;let C=E=>{E.key!=="Escape"||!P.current?.contains(E.target)||(v({type:"CLOSE_MODAL"}),P.current.querySelector("input")?.focus())};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[b.modalOpen,_,P]);let X=C=>{let E=C.relatedTarget;E&&!C.currentTarget.contains(E)&&v({type:"CLOSE_MODAL"})},A=(C,E)=>C*12+E,j=(C,E)=>{v({type:"SET_YEAR",payload:Math.floor(C/12)}),v({type:"SET_MONTH",payload:C%12}),v({type:"SET_SECOND_YEAR",payload:Math.floor(E/12)}),v({type:"SET_SECOND_MONTH",payload:E%12})},D=(C,E)=>{let q=A(C,E);j(q,Math.max(A(b.secondYear,b.secondMonth),q+1))},B=(C,E)=>{let q=A(C,E);j(Math.min(A(b.year,b.month),q-1),q)},J=C=>{D(C,b.month)},Te=C=>{D(b.year,C)},Ae=C=>{B(C,b.secondMonth)},S=C=>{B(b.secondYear,C)},I=()=>{v({type:"SET_VALUE",payload:b.tempValue}),b.tempValue.startDate&&e({startDate:b.tempValue.startDate,endDate:b.tempValue.endDate}),M()},Q=(C,E)=>{let q=new Date(E?b.secondYear:b.year,E?b.secondMonth:b.month,C),F={...b.tempValue};a||!g||!F.startDate||F.endDate?(F.startDate=q,F.endDate=null):q<F.startDate?(F.endDate=F.startDate,F.startDate=q):F.endDate=q,v({type:"SET_TEMP_VALUE",payload:F}),!a&&(!g||F.endDate)&&(e({startDate:F.startDate,endDate:F.endDate}),v({type:"SET_VALUE",payload:F}),M())},re=()=>{let C=r??Ne(T);return g?`${C} - ${C}`:C};return(0,K.jsx)(Co.Provider,{value:{state:b,dispatch:v},children:(0,K.jsxs)("div",{className:k.datePicker,onBlur:X,ref:L,style:xa(f,n),children:[!_&&(0,K.jsx)(jr,{className:Z,disabled:p,displayFormat:r,inputRef:o,isRange:g,language:T,onBlur:t,onClick:fe,placeholder:l??re(),...h}),_||b.modalOpen?(0,K.jsxs)("div",{"aria-label":"Calendar",className:k.datePickerModal,role:"dialog",children:[(0,K.jsxs)("div",{className:g?k.calendarContainerDouble:k.calendarContainer,children:[(0,K.jsx)(Mo,{isRange:g,language:T,maxDate:s,minDate:i,onMonthChange:Te,onSelectDate:Q,onYearChange:J}),g?(0,K.jsx)(Mo,{isRange:g,isSecondCalendar:!0,language:T,maxDate:s,minDate:i,onMonthChange:S,onSelectDate:Q,onYearChange:Ae}):null]}),a?(0,K.jsx)(Ta,{colorScheme:f,labels:y,onApply:I,onCancel:M}):null]}):null]})})});So.displayName="DatePicker";var ue=require("react");var ye={field:"_field_wdljj_3",vertical:"_vertical_wdljj_10 _field_wdljj_3",horizontal:"_horizontal_wdljj_14 _field_wdljj_3",label:"_label_wdljj_22",requiredIndicator:"_requiredIndicator_wdljj_32",optionalText:"_optionalText_wdljj_37",helperText:"_helperText_wdljj_43",errorText:"_errorText_wdljj_44",disabled:"_disabled_wdljj_58"};var pe=require("react/jsx-runtime");function Pa({children:e,htmlFor:t,id:o,optionalText:r,required:n}){return(0,pe.jsxs)("label",{className:ye.label,htmlFor:t,id:o,children:[e,n?(0,pe.jsx)("span",{"aria-hidden":"true",className:ye.requiredIndicator,children:"*"}):null,!n&&r?(0,pe.jsx)("span",{className:ye.optionalText,children:r}):null]})}var Eo=(0,ue.forwardRef)(({children:e,className:t="",disabled:o=!1,errorText:r,helperText:n,invalid:a=!!r,label:i,optionalText:s,orientation:l="vertical",readOnly:d=!1,required:p=!1,style:c},f)=>{let u=(0,ue.useId)(),m=ue.Children.only(e),_=m.props,g=_.id??`${u}-control`,h=i?`${u}-label`:void 0,x=`${u}-helper`,T=`${u}-error`,y=a&&!!r,b=[_["aria-describedby"],y?T:null,n?x:null].filter(Boolean).join(" ")||void 0,v=!!(m.type.labelsItself&&_.children),w=(0,ue.useMemo)(()=>({controlId:g,labelId:h,labelsItself:v}),[g,h,v]),P=`${ye.field} ${ye[l]} ${o?ye.disabled:""} ${t}`.trim();return(0,pe.jsx)(Po.Provider,{value:w,children:(0,pe.jsxs)("div",{className:P,ref:f,style:c,children:[i?(0,pe.jsx)(Pa,{htmlFor:v?void 0:g,id:h,optionalText:s,required:p,children:i}):null,(0,ue.cloneElement)(m,{id:g,"aria-describedby":b,"aria-invalid":a||_["aria-invalid"]||void 0,disabled:o||_.disabled,readOnly:d||_.readOnly,required:p||_.required}),n?(0,pe.jsx)("p",{className:ye.helperText,id:x,children:n}):null,y?(0,pe.jsx)("p",{className:ye.errorText,id:T,children:r}):null]})})});Eo.displayName="Field";var qr=require("react");var lt={icon:"_icon_mz2on_1",glyph:"_glyph_mz2on_13",label:"_label_mz2on_25",sm:"_sm_mz2on_37",md:"_md_mz2on_41",lg:"_lg_mz2on_45"};var st=require("react/jsx-runtime"),Ca=(e,t)=>({...e?{"--icon-color":`var(--plume-color-${e}-text)`}:{},...t}),Do=(0,qr.forwardRef)(({children:e,className:t="",colorScheme:o,label:r,size:n="md",style:a,...i},s)=>{let l=[lt.icon,lt[n],t].filter(Boolean).join(" ");return(0,st.jsxs)("span",{"aria-hidden":r?void 0:!0,className:l,ref:s,style:Ca(o,a),...i,children:[(0,st.jsx)("span",{"aria-hidden":"true",className:lt.glyph,children:e}),r?(0,st.jsx)("span",{className:lt.label,children:r}):null]})});Do.displayName="Icon";var Gr=require("react");var O={list:"_list_1ts57_1",sm:"_sm_1ts57_11",md:"_md_1ts57_17",lg:"_lg_1ts57_23",plain:"_plain_1ts57_29",bordered:"_bordered_1ts57_33",filled:"_filled_1ts57_40",bullet:"_bullet_1ts57_46",number:"_number_1ts57_50",item:"_item_1ts57_54",button:"_button_1ts57_66",divided:"_divided_1ts57_75",divider:"_divider_1ts57_75",selected:"_selected_1ts57_107",secondary:"_secondary_1ts57_112",icon:"_icon_1ts57_126",text:"_text_1ts57_132",primary:"_primary_1ts57_137",subheader:"_subheader_1ts57_147"};var Yr=require("react/jsx-runtime"),wa=(e,t)=>({"--list-text":`var(--plume-color-${e}-text)`,"--list-tint":`var(--plume-color-${e}-tint)`,"--list-tint-strong":`var(--plume-color-${e}-tint-strong)`,"--list-tint-text":`var(--plume-color-${e}-tint-text)`,...t}),Ho=(0,Gr.forwardRef)(({as:e,children:t,className:o="",colorScheme:r="primary",divided:n,marker:a="none",role:i,size:s="md",style:l,variant:d="plain",...p},c)=>{let f=e??(a==="number"?"ol":"ul"),u=d!=="unstyled",m=n??d==="bordered",_=[u&&O.list,u&&O[d],u&&O[s],u&&O[a],u&&m&&O.divided,o].filter(Boolean).join(" ");return(0,Yr.jsx)(f,{className:_,ref:c,role:i??(a==="none"?"list":void 0),style:wa(r,l),...p,children:t})});Ho.displayName="List";var Ur=require("react");var Wr=require("react/jsx-runtime"),Io=(0,Ur.forwardRef)(({className:e="",style:t,...o},r)=>(0,Wr.jsx)("li",{"aria-hidden":"true",className:[O.divider,e].filter(Boolean).join(" "),ref:r,style:t,...o}));Io.displayName="ListDivider";var Kr=require("react");var Zr=require("react/jsx-runtime"),Oo=(0,Kr.forwardRef)(({children:e,className:t="",style:o,...r},n)=>(0,Zr.jsx)("li",{className:[O.item,t].filter(Boolean).join(" "),ref:n,style:o,...r,children:e}));Oo.displayName="ListItem";var Xr=require("react");var Ao=require("react/jsx-runtime"),No=(0,Xr.forwardRef)(({"aria-current":e,children:t,className:o="",disabled:r=!1,href:n,selected:a=!1,style:i,...s},l)=>{let d=[O.button,a&&O.selected,o].filter(Boolean).join(" "),p=e??(a?"true":void 0);return n!==void 0?(0,Ao.jsx)("a",{"aria-current":p,"aria-disabled":r||void 0,className:d,href:r?void 0:n,ref:l,role:r?"link":void 0,style:i,...s,children:t}):(0,Ao.jsx)("button",{"aria-current":p,className:d,disabled:r,ref:l,style:i,type:"button",...s,children:t})});No.displayName="ListItemButton";var Jr=require("react");var Qr=require("react/jsx-runtime"),Bo=(0,Jr.forwardRef)(({children:e,className:t="",style:o,...r},n)=>(0,Qr.jsx)("span",{"aria-hidden":"true",className:[O.icon,t].filter(Boolean).join(" "),ref:n,style:o,...r,children:e}));Bo.displayName="ListItemIcon";var en=require("react");var dt=require("react/jsx-runtime"),Fo=(0,en.forwardRef)(({children:e,className:t="",primary:o,secondary:r,style:n,...a},i)=>{let s=o??e;return(0,dt.jsxs)("div",{className:[O.text,t].filter(Boolean).join(" "),ref:i,style:n,...a,children:[s?(0,dt.jsx)("span",{className:O.primary,children:s}):null,r?(0,dt.jsx)("span",{className:O.secondary,children:r}):null]})});Fo.displayName="ListItemText";var tn=require("react");var on=require("react/jsx-runtime"),$o=(0,tn.forwardRef)(({children:e,className:t="",style:o,...r},n)=>(0,on.jsx)("li",{className:[O.subheader,t].filter(Boolean).join(" "),ref:n,style:o,...r,children:e}));$o.displayName="ListSubheader";var Ke=require("react");var It=require("react");function Ot({defaultOpen:e=!1,onOpenChange:t,open:o}){let[r,n]=(0,It.useState)(e),a=o!==void 0,i=a?o:r,s=(0,It.useCallback)(l=>{a||n(l),l!==i&&t?.(l)},[a,t,i]);return[i,s]}var At=require("react"),jo=(0,At.createContext)(void 0);function te(e){let t=(0,At.useContext)(jo);if(!t)throw new Error(`${e} must be used within a <Modal>`);return t}var nn=require("react/jsx-runtime");function rn({children:e,closeOnEscape:t=!0,closeOnOutside:o=!0,defaultOpen:r=!1,initialFocus:n,onOpenChange:a,open:i,size:s="md",variant:l="default"}){let d=(0,Ke.useId)(),[p,c]=(0,Ke.useState)(null),[f,u]=Ot({defaultOpen:r,onOpenChange:a,open:i}),m=(0,Ke.useMemo)(()=>({bodyId:`${d}-body`,closeOnEscape:t,closeOnOutside:o,contentId:`${d}-content`,initialFocus:n,isStyled:l!=="unstyled",open:f,setOpen:u,setTrigger:c,size:s,titleId:`${d}-title`,trigger:p}),[d,t,o,n,f,u,s,p,l]);return(0,nn.jsx)(jo.Provider,{value:m,children:e})}var Le=require("react");var Nt=require("react");function ae(...e){return t=>{for(let o of e)typeof o=="function"?o(t):o&&(o.current=t)}}function Ra(e){return Number.parseInt(Nt.version,10)>=19?e.props.ref:e.ref}function za(e,t){let o={...e,...t};for(let r of Object.keys(t)){let n=e[r],a=t[r];/^on[A-Z]/.test(r)&&typeof n=="function"&&typeof a=="function"&&(o[r]=(...i)=>{n(...i),i[0]?.defaultPrevented||a(...i)})}return o}function ze(e,t,...o){return(0,Nt.cloneElement)(e,{...za(e.props,t),ref:ae(Ra(e),...o)})}var oe={backdrop:"_backdrop_1k06m_15",content:"_content_1k06m_27",sm:"_sm_1k06m_43",md:"_md_1k06m_47",lg:"_lg_1k06m_51",header:"_header_1k06m_55",body:"_body_1k06m_63",footer:"_footer_1k06m_74",close:"_close_1k06m_83","backdrop-in":"_backdrop-in_1k06m_1","content-in":"_content-in_1k06m_1"};var an=require("react/jsx-runtime"),Vo=(0,Le.forwardRef)(({children:e,className:t="",style:o},r)=>{let{bodyId:n,isStyled:a,titleId:i}=te("ModalBody"),s=(0,Le.useRef)(null),[l,d]=(0,Le.useState)(!1),p=[a&&oe.body,t].filter(Boolean).join(" ");return(0,Le.useEffect)(()=>{let f=s.current;if(!f)return;let u=()=>d(f.scrollHeight>f.clientHeight);u();let m=typeof ResizeObserver>"u"?void 0:new ResizeObserver(u);return m?.observe(f),()=>m?.disconnect()},[]),(0,an.jsx)("section",{...l?{"aria-labelledby":i,tabIndex:0}:void 0,className:p,id:n,ref:ae(s,r),style:o,children:e})});Vo.displayName="ModalBody";var ln=require("react");var Ft=require("react");var Bt=require("react/jsx-runtime"),La=(0,Bt.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1em",children:(0,Bt.jsx)("path",{d:"M6 6l12 12M18 6 6 18"})}),ct=(0,Ft.forwardRef)(({children:e,className:t="",closeClassName:o,label:r,onClose:n,style:a},i)=>{if((0,Ft.isValidElement)(e))return ze(e,{onClick:n},i);let s=[o,t].filter(Boolean).join(" ");return(0,Bt.jsx)("button",{"aria-label":r??(e?void 0:"Close"),className:s,onClick:n,ref:i,style:a,type:"button",children:e??La})});ct.displayName="OverlayClose";var sn=require("react/jsx-runtime"),qo=(0,ln.forwardRef)((e,t)=>{let{isStyled:o,setOpen:r}=te("ModalClose");return(0,sn.jsx)(ct,{...e,closeClassName:o?oe.close:void 0,onClose:()=>r(!1),ref:t})});qo.displayName="ModalClose";var qt=require("react");var $t=require("react"),dn=require("react-dom");function xe({children:e,container:t}){let[o,r]=(0,$t.useState)(!1),n=hr();(0,$t.useEffect)(()=>{r(!0)},[]);let a=t??(n===void 0?document.body:n);return!o||!a?null:(0,dn.createPortal)(e,a)}var Ze=require("react"),pt=[];function $e(e){let t=(0,Ze.useRef)({});return(0,Ze.useEffect)(()=>{if(!e)return;let o=t.current;return pt.push(o),()=>{let r=pt.indexOf(o);r!==-1&&pt.splice(r,1)}},[e]),(0,Ze.useCallback)(()=>pt[pt.length-1]===t.current,[])}var cn=require("react"),ut=0,Go;function Ma(){if(ut+=1,ut>1)return;let{body:e,documentElement:t}=document,o={overflow:e.style.overflow,paddingRight:e.style.paddingRight},r=window.innerWidth-t.clientWidth;if(r>0){let n=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${n+r}px`}e.style.overflow="hidden",Go=()=>{e.style.overflow=o.overflow,e.style.paddingRight=o.paddingRight}}function Sa(){ut=Math.max(0,ut-1),!(ut>0)&&(Go?.(),Go=void 0)}function Yo(e){(0,cn.useEffect)(()=>{if(e)return Ma(),Sa},[e])}var mt=require("react");function je({enabled:e,onDismiss:t,elements:o,isTopmost:r=()=>!0,escapeKey:n=!0,outsidePress:a=!0}){let i=(0,mt.useRef)({onDismiss:t,elements:o,isTopmost:r});(0,mt.useEffect)(()=>{i.current={onDismiss:t,elements:o,isTopmost:r}}),(0,mt.useEffect)(()=>{if(!e)return;let s=d=>{d.key!=="Escape"||!i.current.isTopmost()||i.current.onDismiss("escape")},l=d=>{if(!i.current.isTopmost())return;let p=d.target;i.current.elements.some(f=>f?.contains(p))||i.current.onDismiss("outside")};return n&&document.addEventListener("keydown",s),a&&document.addEventListener("pointerdown",l),()=>{document.removeEventListener("keydown",s),document.removeEventListener("pointerdown",l)}},[e,n,a])}var _t=require("react"),Ea=["a[href]","area[href]","button","input","select","textarea","summary","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"[tabindex]"].join(",");function Uo(e){return Array.from(e.querySelectorAll(Ea)).filter(t=>{if(t.tabIndex<0||t.disabled||t instanceof HTMLInputElement&&t.type==="hidden"||t.closest("[hidden], [inert]"))return!1;let o=window.getComputedStyle(t);return o.display!=="none"&&o.visibility!=="hidden"})}function ft(e,{active:t,initialFocus:o,restoreFocus:r=!0,returnFocus:n,isTopmost:a=()=>!0}){let i=(0,_t.useRef)({initialFocus:o,restoreFocus:r,returnFocus:n,isTopmost:a});(0,_t.useEffect)(()=>{i.current={initialFocus:o,restoreFocus:r,returnFocus:n,isTopmost:a}}),(0,_t.useEffect)(()=>{if(!t||!e)return;let s=document.activeElement,l=()=>{e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),e.focus()},d=i.current.initialFocus??Uo(e)[0];d?d.focus():l();let p=c=>{if(c.key!=="Tab"||!i.current.isTopmost())return;let f=Uo(e);if(f.length===0){c.preventDefault(),l();return}let u=f[0],m=f[f.length-1],_=document.activeElement;e.contains(_)?c.shiftKey&&(_===u||_===e)?(c.preventDefault(),m.focus()):!c.shiftKey&&_===m&&(c.preventDefault(),u.focus()):(c.preventDefault(),u.focus())};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p);let c=i.current.returnFocus??s;i.current.restoreFocus&&c?.isConnected&&c.focus()}},[t,e])}var Da={top:"bottom",bottom:"top",left:"right",right:"left"};function Ha(e){let[t,o="center"]=e.split("-");return{side:t,align:o}}function pn(e,t,o,r,n){let a=e==="top"||e==="bottom",i=()=>t==="start"?o.x:t==="end"?o.x+o.width-r.width:o.x+(o.width-r.width)/2,s=()=>t==="start"?o.y:t==="end"?o.y+o.height-r.height:o.y+(o.height-r.height)/2;return a?{x:i(),y:e==="top"?o.y-r.height-n:o.y+o.height+n}:{x:e==="left"?o.x-r.width-n:o.x+o.width+n,y:s()}}function un(e,t,o,r,n){return e==="top"?Math.max(0,n-t.y):e==="bottom"?Math.max(0,t.y+o.height-(r.height-n)):e==="left"?Math.max(0,n-t.x):Math.max(0,t.x+o.width-(r.width-n))}var mn=(e,t,o)=>Math.max(t,Math.min(e,o));function _n({anchor:e,floating:t,viewport:o,placement:r="bottom",offset:n=8,padding:a=8,flip:i=!0,shift:s=!0}){let{side:l,align:d}=Ha(r),p=l,c=pn(p,d,e,t,n);if(i){let f=un(p,c,t,o,a);if(f>0){let u=Da[p],m=pn(u,d,e,t,n);un(u,m,t,o,a)<f&&(p=u,c=m)}}return s&&(c=p==="top"||p==="bottom"?{x:mn(c.x,a,o.width-a-t.width),y:c.y}:{x:c.x,y:mn(c.y,a,o.height-a-t.height)}),{x:c.x,y:c.y,side:p,placement:d==="center"&&!r.includes("-")?p:`${p}-${d}`}}var Xe=require("react");var jt=require("react"),fn=typeof window>"u"?jt.useEffect:jt.useLayoutEffect;function bt({anchor:e,floating:t,enabled:o,placement:r="bottom",offset:n,padding:a,flip:i,shift:s}){let[l,d]=(0,Xe.useState)({x:0,y:0,placement:r,isPositioned:!1}),p=(0,Xe.useCallback)(()=>{if(!e||!t)return;let c=e.getBoundingClientRect(),f=t.getBoundingClientRect(),{documentElement:u}=document,m=_n({anchor:{x:c.left,y:c.top,width:c.width,height:c.height},floating:{width:f.width,height:f.height},viewport:{width:u.clientWidth||window.innerWidth,height:u.clientHeight||window.innerHeight},placement:r,offset:n,padding:a,flip:i,shift:s});d(_=>_.isPositioned&&_.x===m.x&&_.y===m.y&&_.placement===m.placement?_:{x:m.x,y:m.y,placement:m.placement,isPositioned:!0})},[e,t,r,n,a,i,s]);return fn(()=>{if(!o)return;p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,!0);let c=typeof ResizeObserver>"u"?void 0:new ResizeObserver(p);return e&&c?.observe(e),t&&c?.observe(t),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,!0),c?.disconnect()}},[o,p,e,t]),(0,Xe.useEffect)(()=>{o||d(c=>c.isPositioned?{...c,isPositioned:!1}:c)},[o]),{placement:l.placement,isPositioned:l.isPositioned,style:{position:"fixed",top:l.y,left:l.x}}}var Vt=require("react/jsx-runtime"),Wo=(0,qt.forwardRef)(({children:e,className:t="",style:o,...r},n)=>{let a=te("ModalContent"),{closeOnEscape:i,closeOnOutside:s,contentId:l,initialFocus:d,isStyled:p,open:c,setOpen:f}=a,[u,m]=(0,qt.useState)(null),_=$e(c);if(Yo(c),je({enabled:c,onDismiss:()=>f(!1),elements:[u],isTopmost:_,escapeKey:i,outsidePress:s}),ft(u,{active:c,initialFocus:d?.current??null,isTopmost:_,returnFocus:a.trigger}),!c)return null;let g=[p&&oe.content,p&&oe[a.size],t].filter(Boolean).join(" "),h=r["aria-labelledby"]??(r["aria-label"]?void 0:a.titleId);return(0,Vt.jsx)(xe,{children:(0,Vt.jsx)("div",{className:p?oe.backdrop:void 0,children:(0,Vt.jsx)("dialog",{...r,"aria-labelledby":h,"aria-modal":"true",className:g,"data-plume-dialog":"",id:l,open:!0,ref:ae(m,n),style:o,children:e})})})});Wo.displayName="ModalContent";var bn=require("react");var gn=require("react/jsx-runtime"),Ko=(0,bn.forwardRef)(({children:e,className:t="",style:o},r)=>{let{isStyled:n}=te("ModalFooter"),a=[n&&oe.footer,t].filter(Boolean).join(" ");return(0,gn.jsx)("div",{className:a,ref:r,style:o,children:e})});Ko.displayName="ModalFooter";var Gt=require("react");var Zo=(0,Gt.forwardRef)(({as:e="h2",children:t,className:o="",style:r},n)=>{let{isStyled:a,titleId:i}=te("ModalHeader"),s=[a&&oe.header,o].filter(Boolean).join(" ");return(0,Gt.createElement)(e,{className:s,id:i,ref:n,style:r},t)});Zo.displayName="ModalHeader";var Yt=require("react");var vn=require("react/jsx-runtime"),Xo=(0,Yt.forwardRef)(({children:e,className:t},o)=>{let{open:r,setOpen:n,setTrigger:a}=te("ModalTrigger"),i={"aria-expanded":r,"aria-haspopup":"dialog",onClick:()=>n(!0)};return(0,Yt.isValidElement)(e)?ze(e,i,a,o):(0,vn.jsx)("button",{...i,className:t,ref:ae(a,o),type:"button",children:e})});Xo.displayName="ModalTrigger";var Qe=require("react");var Ut=require("react"),Jo=(0,Ut.createContext)(void 0);function Je(e){let t=(0,Ut.useContext)(Jo);if(!t)throw new Error(`${e} must be used within a <Popover>`);return t}var yn=require("react/jsx-runtime");function hn({children:e,defaultOpen:t=!1,flip:o=!0,offset:r=8,onOpenChange:n,open:a,placement:i="bottom",shift:s=!0,size:l="md",variant:d="elevated"}){let p=(0,Qe.useId)(),[c,f]=(0,Qe.useState)(null),[u,m]=Ot({defaultOpen:t,onOpenChange:n,open:a}),_=(0,Qe.useMemo)(()=>({contentId:`${p}-content`,flip:o,isStyled:d!=="unstyled",offset:r,open:u,placement:i,setOpen:m,setTrigger:f,shift:s,size:l,trigger:c,variant:d}),[p,o,r,u,i,m,s,l,c,d]);return(0,yn.jsx)(Jo.Provider,{value:_,children:e})}var xn=require("react");var et={content:"_content_1426p_15",sm:"_sm_1426p_29",md:"_md_1426p_33",lg:"_lg_1426p_37",elevated:"_elevated_1426p_41",outline:"_outline_1426p_45",close:"_close_1426p_49","content-in":"_content-in_1426p_1"};var Tn=require("react/jsx-runtime"),Qo=(0,xn.forwardRef)((e,t)=>{let{isStyled:o,setOpen:r}=Je("PopoverClose");return(0,Tn.jsx)(ct,{...e,closeClassName:o?et.close:void 0,onClose:()=>r(!1),ref:t})});Qo.displayName="PopoverClose";var Wt=require("react");var er=require("react/jsx-runtime"),tr=(0,Wt.forwardRef)(({children:e,className:t="",style:o,...r},n)=>{let a=Je("PopoverContent"),{contentId:i,flip:s,isStyled:l,offset:d,open:p,placement:c,setOpen:f,shift:u,trigger:m}=a,[_,g]=(0,Wt.useState)(null),h=$e(p),x=bt({anchor:m,floating:_,enabled:p,placement:c,offset:d,flip:s,shift:u});if(je({enabled:p,onDismiss:()=>f(!1),elements:[m,_],isTopmost:h}),ft(_,{active:p,isTopmost:h,returnFocus:m}),!p)return null;let T=[l&&et.content,l&&et[a.size],l&&et[a.variant],t].filter(Boolean).join(" ");return(0,er.jsx)(xe,{children:(0,er.jsx)("dialog",{...r,className:T,"data-placement":x.placement,"data-plume-dialog":"",id:i,open:!0,ref:ae(g,n),style:{...x.style,opacity:x.isPositioned?void 0:0,...o},children:e})})});tr.displayName="PopoverContent";var Kt=require("react");var kn=require("react/jsx-runtime"),or=(0,Kt.forwardRef)(({children:e,className:t},o)=>{let{open:r,setOpen:n,setTrigger:a}=Je("PopoverTrigger"),i={"aria-expanded":r,"aria-haspopup":"dialog",onClick:()=>n(!r)};return(0,Kt.isValidElement)(e)?ze(e,i,a,o):(0,kn.jsx)("button",{...i,className:t,ref:ae(a,o),type:"button",children:e})});or.displayName="PopoverTrigger";var Cn=require("react");var Zt=require("react"),rr=(0,Zt.createContext)(void 0),Pn=()=>(0,Zt.useContext)(rr);var Me={root:"_root_ge9em_1",sm:"_sm_ge9em_11",md:"_md_ge9em_16",lg:"_lg_ge9em_21",radio:"_radio_ge9em_26",solid:"_solid_ge9em_52",outline:"_outline_ge9em_61",invalid:"_invalid_ge9em_82",label:"_label_ge9em_86",disabled:"_disabled_ge9em_90"};var gt=require("react/jsx-runtime"),Ia=(e,t)=>({"--radio-solid":`var(--plume-color-${e}-solid)`,"--radio-contrast":`var(--plume-color-${e}-solid-contrast)`,"--radio-text":`var(--plume-color-${e}-text)`,...t}),wn=(0,Cn.forwardRef)(({checked:e,children:t,className:o="",colorScheme:r,defaultChecked:n,disabled:a=!1,name:i,onChange:s,readOnly:l=!1,required:d=!1,size:p,style:c,value:f,variant:u,...m},_)=>{let g=Pn(),h=u??g?.variant??"solid",{labelledBy:x,textId:T}=Ue({hasText:!!t,id:m.id,labelledBy:m["aria-labelledby"]}),y=t?"label":"span",b=h!=="unstyled",v=m["aria-invalid"]===!0||m["aria-invalid"]==="true"||!!g?.invalid,w=a||!!g?.disabled,P=l||!!g?.readOnly,L=p??g?.size??"md",z=r??g?.colorScheme??"primary",V=[b&&Me.root,b&&Me[L],w&&Me.disabled,o].filter(Boolean).join(" "),Z=b?[Me.radio,Me[h],v&&Me.invalid].filter(Boolean).join(" "):void 0,fe=A=>{P&&A.preventDefault()},M=A=>{P||(s?.(A),g?.select(String(f??""),A))},X=g?{checked:g.value===String(f??""),name:g.name,required:g.required||d}:{checked:e,defaultChecked:n,name:i,required:d};return(0,gt.jsxs)(y,{className:V,style:Ia(v?"error":z,c),children:[(0,gt.jsx)("input",{className:Z,disabled:w,onChange:s||g?M:void 0,onClick:fe,ref:_,type:"radio",value:f,...X,...m,"aria-labelledby":x}),t?(0,gt.jsx)("span",{className:b?Me.label:void 0,id:T,children:t}):null]})});wn.displayName="Radio";var Rn=Object.assign(wn,{labelsItself:!0});var me=require("react");var nr={group:"_group_1yg36_1",vertical:"_vertical_1yg36_6",horizontal:"_horizontal_1yg36_11"};var ar=require("react/jsx-runtime"),ir=(0,me.forwardRef)(({children:e,className:t="",colorScheme:o,defaultValue:r,disabled:n=!1,name:a,onChange:i,orientation:s="vertical",readOnly:l=!1,required:d=!1,size:p,style:c,value:f,variant:u,...m},_)=>{let g=(0,me.useId)(),h=Mt(),[x,T]=(0,me.useState)(r),y=f!==void 0,b=y?f:x,v=m["aria-invalid"]===!0||m["aria-invalid"]==="true",w=m["aria-labelledby"]??(m["aria-label"]?void 0:h?.labelId),P=(0,me.useCallback)((z,V)=>{y||T(z),i?.(z,V)},[y,i]),L=(0,me.useMemo)(()=>({colorScheme:o,disabled:n,invalid:v,name:a??g,readOnly:l,required:d,select:P,size:p,value:b,variant:u}),[o,b,n,g,v,a,l,d,P,p,u]);return(0,ar.jsx)(rr.Provider,{value:L,children:(0,ar.jsx)("div",{...m,"aria-disabled":n||void 0,"aria-labelledby":w,"aria-readonly":l||void 0,"aria-required":d||void 0,className:`${nr.group} ${nr[s]} ${t}`.trim(),ref:_,role:"radiogroup",style:c,children:e})})});ir.displayName="RadioGroup";var Qt=require("react");var _e=require("react");var zn=(e,{type:t,payload:o})=>{switch(t){case"SET_ACTIVE_TAB_INDEX":return{...e,index:o};case"SET_CONFIG":return{...e,...o};default:return e}};var G={"tabs-padding":"var(--plume-space-2) var(--plume-space-3)","tabs-border-width":"2px","tabs-border-radius":"var(--plume-radius-4)",tabs:"_tabs_1ct2b_6",horizontal:"_horizontal_1ct2b_11",vertical:"_vertical_1ct2b_15",left:"_left_1ct2b_19",center:"_center_1ct2b_23",right:"_right_1ct2b_27",sm:"_sm_1ct2b_31",md:"_md_1ct2b_36",lg:"_lg_1ct2b_40",underline:"_underline_1ct2b_45",tablist:"_tablist_1ct2b_55",tab:"_tab_1ct2b_6",rounded:"_rounded_1ct2b_82",segment:"_segment_1ct2b_82",active:"_active_1ct2b_97",enclosed:"_enclosed_1ct2b_115",panel:"_panel_1ct2b_174"};var Sn=require("react/jsx-runtime"),Ln=(0,_e.createContext)(void 0);function Mn({config:e,children:t}){let[o,r]=(0,_e.useReducer)(zn,e),n=o.alignment!=="left"||o.isStyled?G[o.alignment]:"",a=o.isStyled?G[o.size]:"",i=o.isStyled?G[o.variant]:"";(0,_e.useEffect)(()=>{r({type:"SET_CONFIG",payload:e})},[e.alignment,e.baseId,e.colorScheme,e.index,e.isLazy,e.orientation,e.size,e.variant]);let s=l=>{r({type:"SET_ACTIVE_TAB_INDEX",payload:l})};return(0,Sn.jsx)(Ln.Provider,{value:(0,_e.useMemo)(()=>({...o,alignmentClass:n,sizeClass:a,variantClass:i,setActiveTabIndex:s}),[n,a,o,i]),children:t})}var Xt=(e,t)=>`${e}-tab-${t}`,Jt=(e,t)=>`${e}-panel-${t}`,Se=()=>{let e=(0,_e.useContext)(Ln);if(!e)throw new Error("useTabs must be used within a TabsProvider");return e};var lr=require("react/jsx-runtime"),Oa=(e,t)=>({"--tabs-scheme":`var(--plume-color-${e}-text)`,"--tabs-solid":`var(--plume-color-${e}-solid)`,"--tabs-solid-active":`var(--plume-color-${e}-solid-active)`,"--tabs-text-color":`var(--plume-color-${e}-solid-contrast)`,...t??{}}),sr=(0,Qt.forwardRef)(({children:e,style:t,onChange:o,index:r=0,alignment:n="left",className:a="",colorScheme:i="secondary",orientation:s="horizontal",size:l="md",variant:d="underline",isLazy:p=!1,...c},f)=>{let u=(0,Qt.useId)(),m=c.id??u,_=d!=="unstyled",g=`${s!=="horizontal"||_?G[s]:""} ${_?G.tabs:""} ${a}`.trim();return(0,lr.jsx)(Mn,{config:{index:r,alignment:n,baseId:m,colorScheme:i,isLazy:p,isStyled:_,orientation:s,size:l,variant:d,onChange:o},children:(0,lr.jsx)("div",{className:g,ref:f,style:Oa(i,t),...c,children:e})})});sr.displayName="Tabs";var Ee=require("react");var En=require("react/jsx-runtime"),dr=(0,Ee.forwardRef)(({children:e,...t},o)=>{let{index:r,alignmentClass:n,isStyled:a,orientation:i,variantClass:s}=Se();return(0,En.jsx)("div",{"aria-orientation":i,className:`${a?G.tablist:""} ${s} ${n}`.trim(),ref:o,role:"tablist",...t,children:Ee.Children.map(e,(l,d)=>(0,Ee.isValidElement)(l)?(0,Ee.cloneElement)(l,{index:d,isActive:d===r}):l)})});dr.displayName="TabList";var Dn=require("react");var Hn=require("react/jsx-runtime"),cr=(0,Dn.forwardRef)(({label:e,isActive:t,disabled:o,extraContentLeft:r,extraContentRight:n,index:a=0,children:i,className:s=""},l)=>{let{alignmentClass:d,baseId:p,isStyled:c,orientation:f,sizeClass:u,setActiveTabIndex:m,onChange:_}=Se(),[g,h]=f==="vertical"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],x=()=>{_&&_(a),m(a)},T=y=>{let b=y.currentTarget.closest('[role="tablist"]');if(!b)return;let v=Array.from(b.querySelectorAll('[role="tab"]:enabled')),w=v.indexOf(y.currentTarget),P={[g]:v[(w-1+v.length)%v.length],[h]:v[(w+1)%v.length],Home:v[0],End:v[v.length-1]}[y.key];P&&(y.preventDefault(),P.focus(),P.click())};return(0,Hn.jsx)(N,{"aria-controls":t?Jt(p,a):void 0,"aria-selected":!!t,className:`${c?G.tab:""} ${d} ${u} ${t&&c?G.active:""} ${s}`.trim(),disabled:o,iconLeft:r,iconRight:n,id:Xt(p,a),label:e??"",onClick:x,onKeyDown:T,ref:l,role:"tab",tabIndex:t?0:-1,variant:"unstyled",children:i})});cr.displayName="Tab";var De=require("react");var In=require("react/jsx-runtime"),pr=(0,De.forwardRef)(({children:e,...t},o)=>{let{index:r}=Se();return(0,In.jsx)("div",{ref:o,...t,children:De.Children.map(e,(n,a)=>a!==r?null:(0,De.isValidElement)(n)?(0,De.cloneElement)(n,{index:a}):n)})});pr.displayName="TabPanels";var tt=require("react");var eo=require("react/jsx-runtime"),ur=(0,tt.forwardRef)(({children:e,className:t="",index:o=0},r)=>{let{baseId:n,colorScheme:a,isLazy:i,isStyled:s}=Se(),l=i?go(e):e;return(0,eo.jsx)("div",{"aria-labelledby":Xt(n,o),className:`${s?G.panel:""} ${t}`.trim(),id:Jt(n,o),ref:r,role:"tabpanel",tabIndex:0,children:i?(0,eo.jsx)(tt.Suspense,{fallback:(0,eo.jsx)(Fe,{color:a}),children:(0,tt.createElement)(l)}):l})});ur.displayName="TabPanel";var On=require("react");var He={"textarea-padding":"var(--plume-space-4)","textarea-border-radius":"var(--plume-radius-4)","textarea-border-color":"var(--plume-border-strong)","textarea-background-color":"var(--plume-surface-muted)",base:"_base_1qiho_6",textarea:"_textarea_1qiho_13",sm:"_sm_1qiho_28",md:"_md_1qiho_33",lg:"_lg_1qiho_37",rounded:"_rounded_1qiho_42",outline:"_outline_1qiho_46 _textarea_1qiho_13",pill:"_pill_1qiho_46",filled:"_filled_1qiho_55 _textarea_1qiho_13",underline:"_underline_1qiho_63 _textarea_1qiho_13",none:"_none_1qiho_69",vertical:"_vertical_1qiho_73",horizontal:"_horizontal_1qiho_77",both:"_both_1qiho_81",invalid:"_invalid_1qiho_89",disabled:"_disabled_1qiho_109"};var An=require("react/jsx-runtime"),Aa=(e,t)=>({"--textarea-color":`var(--plume-color-${e}-text)`,...t}),mr=(0,On.forwardRef)(({className:e="",colorScheme:t="secondary",disabled:o=!1,resize:r="vertical",rows:n=3,shape:a="rounded",size:i="md",style:s,variant:l="outline",...d},p)=>{let c=l!=="unstyled",f=d["aria-invalid"]===!0||d["aria-invalid"]==="true",u=`${c?`${He.base} ${He[l]} ${He[i]} ${He[a]} ${He[r]}`:""} ${f&&c?He.invalid:""} ${o?He.disabled:""} ${e}`.replace(/\s+/g," ").trim();return(0,An.jsx)("textarea",{className:u,disabled:o,ref:p,rows:n,style:Aa(f?"error":t,s),...d})});mr.displayName="Textarea";var U=require("react");var to=require("react"),_r=(0,to.createContext)(void 0);function Nn(){let e=(0,to.useContext)(_r);if(!e)throw new Error("useToast must be used within a <ToastProvider>");return e}var Fn=require("react");var Ie={region:"_region_1ild0_1","top-start":"_top-start_1ild0_17",top:"_top_1ild0_17","top-end":"_top-end_1ild0_19","center-start":"_center-start_1ild0_24",center:"_center_1ild0_24","center-end":"_center-end_1ild0_26","bottom-start":"_bottom-start_1ild0_31",bottom:"_bottom_1ild0_31","bottom-end":"_bottom-end_1ild0_33",toast:"_toast_1ild0_63",solid:"_solid_1ild0_77",subtle:"_subtle_1ild0_82",outline:"_outline_1ild0_87",icon:"_icon_1ild0_94",content:"_content_1ild0_100",title:"_title_1ild0_105",description:"_description_1ild0_106",action:"_action_1ild0_114",dismiss:"_dismiss_1ild0_127","toast-in":"_toast-in_1ild0_1"};var ie=require("react");function Bn(e,t){let o=(0,ie.useRef)(e),r=(0,ie.useRef)(0),n=(0,ie.useRef)(void 0),a=(0,ie.useRef)(!1),i=(0,ie.useRef)(!1),s=(0,ie.useCallback)(()=>{n.current!==void 0&&(window.clearTimeout(n.current),n.current=void 0,o.current-=Date.now()-r.current)},[]),l=(0,ie.useCallback)(()=>{n.current!==void 0||a.current||i.current||!Number.isFinite(e)||e<=0||(r.current=Date.now(),n.current=window.setTimeout(t,Math.max(o.current,0)))},[e,t]);return(0,ie.useEffect)(()=>(l(),s),[s,l]),{onBlur:()=>{i.current=!1,l()},onFocus:()=>{i.current=!0,s()},onPointerEnter:()=>{a.current=!0,s()},onPointerLeave:()=>{a.current=!1,l()}}}var Y=require("react/jsx-runtime"),Na={error:"M15 9l-6 6M9 9l6 6M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z",info:"M12 16v-4m0-4h.01M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20z",success:"M22 11.1V12a10 10 0 1 1-5.9-9.1M22 4 12 14l-3-3",warning:"M12 9v4m0 4h.01M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z"};function Ba({status:e}){return(0,Y.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1.25em",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1.25em",children:(0,Y.jsx)("path",{d:Na[e]})})}function Fa(e,t){if(e.icon!==void 0)return e.icon;if(t===!1)return null;let o=t?.[e.status];return o!==void 0?o:e.status==="neutral"?null:(0,Y.jsx)(Ba,{status:e.status})}var $a={error:"error",info:"info",neutral:"secondary",success:"success",warning:"warning"};function ja(e){let t=$a[e];return{"--toast-contrast":`var(--plume-color-${t}-solid-contrast)`,"--toast-solid":`var(--plume-color-${t}-solid)`,"--toast-tint":`var(--plume-color-${t}-tint)`,"--toast-tint-text":`var(--plume-color-${t}-tint-text)`}}function $n({className:e,dismissLabel:t,icons:o,isStyled:r,onDismiss:n,toast:a}){let{duration:i,id:s}=a,l=(0,Fn.useCallback)(()=>n(s),[s,n]),d=Bn(i,l),p=g=>{g.key==="Escape"&&a.dismissible&&l()},c=()=>{a.action?.onClick?.(),l()},f=g=>r?Ie[g]:void 0,u=Fa(a,o),m=a.status==="error",_=[r&&Ie.toast,r&&Ie[a.status],e].filter(Boolean).join(" ")||void 0;return(0,Y.jsxs)("div",{className:_,...d,onKeyDown:p,role:m?"alert":"status",style:ja(a.status),children:[u?(0,Y.jsx)("span",{"aria-hidden":"true",className:f("icon"),children:u}):null,(0,Y.jsxs)("div",{className:f("content"),children:[a.title?(0,Y.jsx)("span",{className:f("title"),children:a.title}):null,a.description?(0,Y.jsx)("span",{className:f("description"),children:a.description}):null,a.action?(0,Y.jsx)("button",{className:f("action"),onClick:c,type:"button",children:a.action.label}):null]}),a.dismissible?(0,Y.jsx)("button",{"aria-label":t,className:f("dismiss"),onClick:l,type:"button",children:(0,Y.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1em",children:(0,Y.jsx)("path",{d:"M6 6l12 12M18 6 6 18"})})}):null]})}var ot=require("react/jsx-runtime"),Va=e=>typeof e=="object"&&e!==null&&!(0,U.isValidElement)(e)&&!Array.isArray(e);function jn({children:e,className:t="",dismissLabel:o="Dismiss notification",duration:r=5e3,icons:n,max:a=5,position:i="bottom-end",regionLabel:s="Notifications",toastClassName:l="",variant:d="subtle"}){let p=(0,U.useId)(),c=(0,U.useRef)(0),[f,u]=(0,U.useState)([]),m=d!=="unstyled",_=(0,U.useRef)({duration:r,max:a});_.current={duration:r,max:a};let g=(0,U.useCallback)(y=>{u(b=>{let v=b.find(w=>w.id===y);return v?(v.onDismiss?.(),b.filter(w=>w.id!==y)):b})},[]),h=(0,U.useCallback)((y,b={},v)=>{let w=Va(y)?{...y,...b}:{title:y,...b};c.current+=1;let P=w.id??`${p}-${c.current}`,L={action:w.action,description:w.description,dismissible:w.dismissible??!0,duration:w.duration??_.current.duration,icon:w.icon,id:P,onDismiss:w.onDismiss,status:w.status??v??"neutral",title:w.title};return u(z=>{let V=z.find(Z=>Z.id===P);return V?z.map(Z=>Z.id===P?{...L,revision:V.revision+1}:Z):[...z,{...L,revision:0}].slice(-_.current.max)}),P},[p]),x=(0,U.useMemo)(()=>({dismiss:g,dismissAll:()=>u([]),error:(y,b)=>h(y,b,"error"),info:(y,b)=>h(y,b,"info"),success:(y,b)=>h(y,b,"success"),toast:(y,b)=>h(y,b),warning:(y,b)=>h(y,b,"warning")}),[g,h]),T=[m&&Ie.region,m&&Ie[i],m&&Ie[d],t].filter(Boolean).join(" ");return(0,ot.jsxs)(_r.Provider,{value:x,children:[e,(0,ot.jsx)(xe,{children:(0,ot.jsx)("section",{"aria-label":s,"aria-live":"polite",className:T||void 0,children:f.map(y=>(0,ot.jsx)($n,{dismissLabel:o,className:l,icons:n,isStyled:m,onDismiss:g,toast:y},`${y.id}-${y.revision}`))})})]})}var Vn=require("react");var Oe={root:"_root_1soij_1",sm:"_sm_1soij_11",md:"_md_1soij_16",lg:"_lg_1soij_21",toggle:"_toggle_1soij_26",solid:"_solid_1soij_62",outline:"_outline_1soij_70",raised:"_raised_1soij_90",invalid:"_invalid_1soij_125",label:"_label_1soij_130",disabled:"_disabled_1soij_134"};var vt=require("react/jsx-runtime"),qa=(e,t)=>({"--toggle-solid":`var(--plume-color-${e}-solid)`,"--toggle-contrast":`var(--plume-color-${e}-solid-contrast)`,"--toggle-text":`var(--plume-color-${e}-text)`,...t}),qn=(0,Vn.forwardRef)(({children:e,className:t="",colorScheme:o="primary",disabled:r=!1,onChange:n,readOnly:a=!1,size:i="md",style:s,variant:l="solid",...d},p)=>{let c=l!=="unstyled",{labelledBy:f,textId:u}=Ue({hasText:!!e,id:d.id,labelledBy:d["aria-labelledby"]}),m=e?"label":"span",_=d["aria-invalid"]===!0||d["aria-invalid"]==="true",g=[c&&Oe.root,c&&Oe[i],r&&Oe.disabled,t].filter(Boolean).join(" "),h=c?[Oe.toggle,Oe[l],_&&Oe.invalid].filter(Boolean).join(" "):void 0,x=y=>{a&&y.preventDefault()},T=y=>{a||n?.(y)};return(0,vt.jsxs)(m,{className:g,style:qa(_?"error":o,s),children:[(0,vt.jsx)("input",{"aria-readonly":a||void 0,className:h,disabled:r,onChange:n?T:void 0,onClick:x,ref:p,role:"switch",type:"checkbox",...d,"aria-labelledby":f}),e?(0,vt.jsx)("span",{className:c?Oe.label:void 0,id:u,children:e}):null]})});qn.displayName="Toggle";var Gn=Object.assign(qn,{labelsItself:!0});var W=require("react");var oo={tooltip:"_tooltip_1c9fj_1",sm:"_sm_1c9fj_12",md:"_md_1c9fj_16",lg:"_lg_1c9fj_21",solid:"_solid_1c9fj_26",outline:"_outline_1c9fj_31","tooltip-in":"_tooltip-in_1c9fj_1"};var Ve=require("react/jsx-runtime"),Ga=e=>{try{return e.matches(":focus-visible")}catch{return!0}};function Yn({children:e,className:t="",closeDelay:o=100,content:r,defaultOpen:n=!1,disabled:a=!1,offset:i=6,onOpenChange:s,open:l,openDelay:d=300,placement:p="top",size:c="md",style:f,variant:u="solid"}){let m=(0,W.useId)(),[_,g]=(0,W.useState)(n),[h,x]=(0,W.useState)(null),[T,y]=(0,W.useState)(null),b=(0,W.useRef)(void 0),v=l!==void 0,w=!a&&(v?l:_),P=u!=="unstyled",L=(0,W.useCallback)(D=>{v||g(D),D!==w&&s?.(D)},[v,s,w]),z=(0,W.useCallback)(()=>{window.clearTimeout(b.current),b.current=void 0},[]),V=(0,W.useCallback)((D,B)=>{z(),B<=0?L(D):b.current=window.setTimeout(()=>L(D),B)},[z,L]);(0,W.useEffect)(()=>z,[z]);let Z=$e(w),fe=bt({anchor:h,floating:T,enabled:w,placement:p,offset:i});je({enabled:w,onDismiss:()=>{z(),L(!1)},elements:[h,T],isTopmost:Z});let A=ze(e,{...{onBlur:()=>{z(),L(!1)},onFocus:D=>{z(),Ga(D.currentTarget)&&L(!0)},onPointerEnter:D=>{D.pointerType!=="touch"&&V(!0,d)},onPointerLeave:()=>V(!1,o)},"aria-describedby":(D=>[D,w?m:void 0].filter(Boolean).join(" ")||void 0)(e.props["aria-describedby"])},x),j=[P&&oo.tooltip,P&&oo[c],P&&oo[u],t].filter(Boolean).join(" ");return(0,Ve.jsxs)(Ve.Fragment,{children:[A,w?(0,Ve.jsx)(xe,{children:(0,Ve.jsx)("div",{className:j,"data-placement":fe.placement,id:m,onPointerEnter:z,onPointerLeave:()=>V(!1,o),ref:y,role:"tooltip",style:{...fe.style,opacity:fe.isPositioned?void 0:0,...f},children:r})}):null]})}0&&(module.exports={Badge,Button,Card,CardBody,CardFooter,CardHeader,Checkbox,DatePicker,Field,Icon,Input,List,ListDivider,ListItem,ListItemButton,ListItemIcon,ListItemText,ListSubheader,Modal,ModalBody,ModalClose,ModalContent,ModalFooter,ModalHeader,ModalTrigger,Popover,PopoverClose,PopoverContent,PopoverTrigger,Radio,RadioGroup,Spinner,Tab,TabList,TabPanel,TabPanels,Tabs,Textarea,ThemeProvider,ToastProvider,Toggle,Tooltip,applyMask,colorVar,deepMerge,defaultDarkTheme,defaultTheme,formatDate,getContrastColor,getContrastRatio,getDarkenColor,getDateFormatByLanguage,getDateFromDateString,getDateStringByLanguage,getDaysOfWeekByLanguage,getLightenColor,getMonthsByLanguage,lazyLoadContent,themeToCssVars,useClickOutside,useDebounce,useMask,useTheme,useToast,validateFormatDate});
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export*from"./theme/index.mjs";export*from"./hooks/index.mjs";export*from"./utils/index.mjs";export*from"./components/presentation/badge/index.mjs";export*from"./components/interaction/button/index.mjs";export*from"./components/presentation/card/index.mjs";export*from"./components/form/checkbox/index.mjs";export*from"./components/form/datepicker/index.mjs";export*from"./components/form/field/index.mjs";export*from"./components/presentation/icon/index.mjs";export*from"./components/form/input/index.mjs";export*from"./components/presentation/list/index.mjs";export*from"./components/form/radio/index.mjs";export*from"./components/presentation/spinner/index.mjs";export*from"./components/navigation/tabs/index.mjs";export*from"./components/form/textarea/index.mjs";export*from"./components/form/toggle/index.mjs";
1
+ export*from"./theme/index.mjs";export*from"./hooks/index.mjs";export*from"./utils/index.mjs";export*from"./components/presentation/badge/index.mjs";export*from"./components/interaction/button/index.mjs";export*from"./components/presentation/card/index.mjs";export*from"./components/form/checkbox/index.mjs";export*from"./components/form/datepicker/index.mjs";export*from"./components/form/field/index.mjs";export*from"./components/presentation/icon/index.mjs";export*from"./components/form/input/index.mjs";export*from"./components/presentation/list/index.mjs";export*from"./components/overlay/modal/index.mjs";export*from"./components/overlay/popover/index.mjs";export*from"./components/form/radio/index.mjs";export*from"./components/presentation/spinner/index.mjs";export*from"./components/navigation/tabs/index.mjs";export*from"./components/form/textarea/index.mjs";export*from"./components/overlay/toast/index.mjs";export*from"./components/form/toggle/index.mjs";export*from"./components/overlay/tooltip/index.mjs";
@@ -0,0 +1 @@
1
+ "use client";import{forwardRef as p,isValidElement as m}from"react";import{cloneWithProps as d}from"./trigger.mjs";import{jsx as o}from"react/jsx-runtime";var c=o("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",viewBox:"0 0 24 24",width:"1em",children:o("path",{d:"M6 6l12 12M18 6 6 18"})}),f=p(({children:e,className:l="",closeClassName:s,label:n,onClose:t,style:a},r)=>{if(m(e))return d(e,{onClick:t},r);let i=[s,l].filter(Boolean).join(" ");return o("button",{"aria-label":n??(e?void 0:"Close"),className:i,onClick:t,ref:r,style:a,type:"button",children:e??c})});f.displayName="OverlayClose";export{f as OverlayClose};
@@ -0,0 +1 @@
1
+ import{cloneElement as u,version as p}from"react";function d(...e){return r=>{for(let n of e)typeof n=="function"?n(r):n&&(n.current=r)}}function i(e){return Number.parseInt(p,10)>=19?e.props.ref:e.ref}function a(e,r){let n={...e,...r};for(let o of Object.keys(r)){let f=e[o],s=r[o];/^on[A-Z]/.test(o)&&typeof f=="function"&&typeof s=="function"&&(n[o]=(...t)=>{f(...t),t[0]?.defaultPrevented||s(...t)})}return n}function l(e,r,...n){return u(e,{...a(e.props,r),ref:d(i(e),...n)})}export{l as cloneWithProps,i as getElementRef,d as mergeRefs};
@@ -0,0 +1 @@
1
+ "use client";import{useCallback as r,useState as O}from"react";function f({defaultOpen:s=!1,onOpenChange:t,open:a}){let[l,i]=O(s),e=a!==void 0,n=e?a:l,p=r(o=>{e||i(o),o!==n&&t?.(o)},[e,t,n]);return[n,p]}export{f as useOpenState};
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- ._badge_lalgz_1{align-items:center;display:inline-flex;font-family:var(--plume-font-family);font-weight:var(--plume-font-weight-semibold);gap:var(--plume-space-1);line-height:var(--plume-line-height-tight);vertical-align:middle;white-space:nowrap}._sm_lalgz_12{font-size:var(--plume-font-size-xs);padding:var(--plume-space-1) var(--plume-space-2)}._md_lalgz_17{font-size:var(--plume-font-size-sm);padding:var(--plume-space-1) var(--plume-space-3)}._lg_lalgz_22{font-size:var(--plume-font-size-base);padding:var(--plume-space-2) var(--plume-space-4)}._rounded_lalgz_27{border-radius:var(--plume-radius-2)}._pill_lalgz_31{border-radius:var(--plume-radius-full)}._solid_lalgz_35{background-color:var(--badge-solid);color:var(--badge-contrast)}._outline_lalgz_40{box-shadow:inset 0 0 0 1px var(--badge-text);color:var(--badge-text)}._subtle_lalgz_45{background-color:var(--badge-tint);color:var(--badge-tint-text)}._dotOnly_lalgz_50{background-color:transparent;box-shadow:none;color:var(--badge-solid);padding:0}._dotOnly_lalgz_50 ._dot_lalgz_50{block-size:.75em;inline-size:.75em}._dot_lalgz_50{background-color:currentColor;block-size:.5em;border-radius:var(--plume-radius-full);flex:none;inline-size:.5em}@media(forced-colors:active){._badge_lalgz_1{border:1px solid CanvasText;forced-color-adjust:none}._dotOnly_lalgz_50{border:0}}._spinner_q8rz1_7{animation:_spin_q8rz1_7 var(--spinner-animation-duration) linear infinite;border-color:var(--spinner-scheme, currentColor);border-radius:50%;border-top-color:transparent;border-width:var(--spinner-border-width, 3px);display:inline-block;width:var(--plume-space-8);height:var(--plume-space-8)}._sm_q8rz1_18{width:var(--plume-space-4);height:var(--plume-space-4)}._md_q8rz1_23{width:var(--plume-space-8);height:var(--plume-space-8)}._lg_q8rz1_28{width:var(--plume-space-12);height:var(--plume-space-12)}._solid_q8rz1_33{border-style:solid}._dashed_q8rz1_38{border-style:dashed}._dotted_q8rz1_43{border-style:dotted}._double_q8rz1_48{border-style:double}@keyframes _spin_q8rz1_7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_q8rz1_63{width:45px;aspect-ratio:.75;--c: no-repeat linear-gradient(#000 0 0);background:var(--c) 0% 50%,var(--c) 50% 50%,var(--c) 100% 50%;animation:_l7_q8rz1_1 1s infinite linear alternate}@keyframes _l7_q8rz1_1{0%{background-size:20% 50%,20% 50%,20% 50%}20%{background-size:20% 20%,20% 50%,20% 50%}40%{background-size:20% 100%,20% 20%,20% 50%}60%{background-size:20% 50%,20% 100%,20% 20%}80%{background-size:20% 50%,20% 50%,20% 100%}to{background-size:20% 50%,20% 50%,20% 50%}}._loader_q8rz1_63{width:15px;aspect-ratio:1;border-radius:50%;animation:_l5_q8rz1_1 1s infinite linear alternate}@keyframes _l5_q8rz1_1{0%{box-shadow:20px 0 #000,-20px 0 #0002;background:#000}33%{box-shadow:20px 0 #000,-20px 0 #0002;background:#0002}66%{box-shadow:20px 0 #0002,-20px 0 #000;background:#0002}to{box-shadow:20px 0 #0002,-20px 0 #000;background:#000}}._loader_q8rz1_63{display:inline-grid;padding:5px;background:#fff;filter:blur(4px) contrast(12)}._loader_q8rz1_63:before{content:"";height:40px;aspect-ratio:3;--c: #0000 64%, #000 66% 98%, #0000 101%;background:radial-gradient(35% 146% at 50% 159%,var(--c)) 0 0,radial-gradient(35% 146% at 50% -59%,var(--c)) 100% 100%;background-size:calc(200% / 3) 50%;background-repeat:repeat-x;animation:_l11_q8rz1_1 .8s infinite linear}@keyframes _l11_q8rz1_1{to{background-position:-200% 0,-100% 100%}}._loader_q8rz1_63{--d: 22px;width:4px;height:4px;border-radius:50%;color:#25b09b;box-shadow:calc(1 * var(--d)) calc(0 * var(--d)) 0 0,calc(.707 * var(--d)) calc(.707 * var(--d)) 0 1px,calc(0 * var(--d)) calc(1 * var(--d)) 0 2px,calc(-.707 * var(--d)) calc(.707 * var(--d)) 0 3px,calc(-1 * var(--d)) calc(0 * var(--d)) 0 4px,calc(-.707 * var(--d)) calc(-.707 * var(--d)) 0 5px,calc(0 * var(--d)) calc(-1 * var(--d)) 0 6px;animation:_l27_q8rz1_1 1s infinite steps(8)}@keyframes _l27_q8rz1_1{to{transform:rotate(1turn)}}._loader_q8rz1_63{width:48px;height:48px;background:#fff;display:inline-block;border-radius:50%;box-sizing:border-box;animation:_animloader_q8rz1_1 1s ease-in infinite}@keyframes _animloader_q8rz1_1{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}._button_1l5be_3{align-items:center;background-color:transparent;border:none;border-radius:var(--plume-radius-4);display:inline-flex;font-weight:var(--plume-font-weight-semibold);justify-content:center;padding-inline:var(--plume-space-4);transition:color .3s,background-color .3s;user-select:none}._sm_1l5be_18{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding-inline:var(--plume-space-2)}._md_1l5be_24{height:var(--plume-space-10);padding-inline:var(--plume-space-4)}._lg_1l5be_29{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding-inline:var(--plume-space-6)}._rounded_1l5be_35{border-radius:var(--plume-radius-4)}._pill_1l5be_39{border-radius:var(--plume-radius-full)}._solid_1l5be_43{background-color:var(--button-solid-bg);color:var(--button-contrast-color)}._outline_1l5be_49{border:1px solid var(--button-color);color:var(--button-color)}._ghost_1l5be_55{color:var(--button-color)}._link_1l5be_60{color:var(--button-color);text-decoration-line:underline;text-underline-offset:var(--plume-space-2)}._icon_1l5be_67{color:var(--button-color);padding:var(--plume-space-2)}:is(._outline_1l5be_49,._ghost_1l5be_55,._icon_1l5be_67):enabled:hover{background-color:var(--button-hover-alt-color)}._link_1l5be_60:enabled:hover{color:var(--button-hover-color);text-decoration-color:var(--button-hover-color)}._solid_1l5be_43:enabled:hover{background-color:var(--button-solid-hover)}._outline_1l5be_49:enabled:hover{border-color:var(--button-hover-color)}._button_1l5be_3:enabled:focus-visible{outline:2px solid var(--button-color);outline-offset:2px}:is(._outline_1l5be_49,._ghost_1l5be_55):enabled:active{background-color:var(--button-focus-alt-color)}:is(._icon_1l5be_67,._link_1l5be_60):enabled:active{color:var(--button-focus-color)}._solid_1l5be_43:enabled:active{background-color:var(--button-solid-active)}._link_1l5be_60:enabled:active{text-decoration-color:var(--button-focus-color)}button._disabled_1l5be_111{opacity:.5;cursor:not-allowed}._iconMargin_1l5be_116{margin:0 var(--plume-space-1)}._hidden_1l5be_120{display:none}._spinnerMargin_1l5be_124{margin-left:var(--plume-space-1)}._card_i47cm_1{border-radius:var(--plume-radius-4);box-sizing:border-box;color:var(--plume-foreground);display:flex;flex-direction:column;font-family:var(--plume-font-family);overflow:hidden}._sm_i47cm_11{--card-padding: var(--plume-space-3);font-size:var(--plume-font-size-xs)}._md_i47cm_16{--card-padding: var(--plume-space-4);font-size:var(--plume-font-size-sm)}._lg_i47cm_21{--card-padding: var(--plume-space-6);font-size:var(--plume-font-size-base)}._elevated_i47cm_26{background-color:var(--plume-surface);box-shadow:var(--plume-shadow-md)}._outline_i47cm_31{background-color:var(--plume-surface);border:1px solid var(--plume-border)}._filled_i47cm_36{background-color:var(--plume-surface-muted)}._card_i47cm_1 ._header_i47cm_40,._card_i47cm_1 ._body_i47cm_41,._card_i47cm_1 ._footer_i47cm_42{padding:var(--card-padding)}._card_i47cm_1 ._header_i47cm_40{font-size:1.125em;font-weight:var(--plume-font-weight-semibold)}._card_i47cm_1 ._body_i47cm_41{flex:1 1 auto;line-height:var(--plume-line-height-normal)}._card_i47cm_1 ._footer_i47cm_42{align-items:center;display:flex;gap:var(--plume-space-2)}._card_i47cm_1 ._header_i47cm_40+._body_i47cm_41,._card_i47cm_1 ._body_i47cm_41+._footer_i47cm_42,._card_i47cm_1 ._header_i47cm_40+._footer_i47cm_42{padding-block-start:0}._outline_i47cm_31 ._header_i47cm_40,._outline_i47cm_31 ._footer_i47cm_42{background-color:var(--plume-surface-muted)}._outline_i47cm_31 ._header_i47cm_40{border-block-end:1px solid var(--plume-border)}._outline_i47cm_31 ._footer_i47cm_42{border-block-start:1px solid var(--plume-border)}._outline_i47cm_31 ._header_i47cm_40+._body_i47cm_41,._outline_i47cm_31 ._body_i47cm_41+._footer_i47cm_42,._outline_i47cm_31 ._header_i47cm_40+._footer_i47cm_42{padding-block-start:var(--card-padding)}@media(forced-colors:active){._card_i47cm_1{border:1px solid CanvasText}}._root_effkj_1{align-items:center;color:var(--plume-foreground);cursor:pointer;display:inline-flex;font-family:var(--plume-font-family);gap:var(--plume-space-2);vertical-align:middle}._sm_effkj_11{--checkbox-size: var(--plume-space-4);font-size:var(--plume-font-size-xs)}._md_effkj_16{--checkbox-size: var(--plume-space-5);font-size:var(--plume-font-size-base)}._lg_effkj_21{--checkbox-size: var(--plume-space-6);font-size:var(--plume-font-size-lg)}._checkbox_effkj_26{appearance:none;background-color:var(--plume-surface);border:2px solid var(--plume-border-strong);border-radius:var(--plume-radius-2);box-sizing:border-box;cursor:inherit;flex:none;height:var(--checkbox-size);margin:0;position:relative;transition:background-color .15s,border-color .15s;width:var(--checkbox-size)}._checkbox_effkj_26:before{clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);content:"";inset:17%;position:absolute;transform:scale(0);transition:transform .12s}._solid_effkj_52:before{background-color:var(--checkbox-contrast)}._solid_effkj_52:checked,._solid_effkj_52:indeterminate{background-color:var(--checkbox-solid);border-color:var(--checkbox-solid)}._outline_effkj_62:before{background-color:var(--checkbox-text)}._outline_effkj_62:checked,._outline_effkj_62:indeterminate{border-color:var(--checkbox-text)}._checkbox_effkj_26:checked:before{transform:scale(1)}._checkbox_effkj_26:indeterminate:before{clip-path:none;inset:calc(50% - 1px) 20%;transform:scale(1)}._checkbox_effkj_26:enabled:hover:not(:checked,:indeterminate){border-color:var(--checkbox-text)}._checkbox_effkj_26:focus-visible{outline:2px solid var(--checkbox-text);outline-offset:2px}._invalid_effkj_90:not(:checked,:indeterminate){border-color:var(--checkbox-text)}._label_effkj_94{line-height:var(--plume-line-height-normal)}._disabled_effkj_98{cursor:not-allowed;opacity:.5}@media(prefers-reduced-motion:reduce){._checkbox_effkj_26,._checkbox_effkj_26:before{transition:none}}@media(forced-colors:active){._checkbox_effkj_26{border-color:CanvasText;forced-color-adjust:none}._solid_effkj_52:checked,._solid_effkj_52:indeterminate{background-color:Highlight;border-color:Highlight}._solid_effkj_52:before{background-color:HighlightText}._outline_effkj_62:checked,._outline_effkj_62:indeterminate{border-color:Highlight}._outline_effkj_62:before{background-color:Highlight}}._datePicker_ez3xe_9{position:relative}._datePickerInputText_ez3xe_13{border:none;border-radius:var(--plume-radius-4);box-sizing:border-box;min-width:min(18rem,100%);width:100%;height:var(--plume-space-10);padding:0 var(--plume-space-4);position:relative;display:block;outline:2px solid transparent;outline-offset:2px;color:var(--plume-muted);background:none}._inputButton_ez3xe_29{position:absolute;top:0;bottom:0;right:0;background-color:transparent;border-color:transparent;margin-right:var(--plume-space-2);margin-block-start:.125rem;margin-block-end:.125rem}input+._inputButton_ez3xe_29{height:auto}._inputButtonIcon_ez3xe_45{height:var(--plume-space-5);width:var(--plume-space-5);fill:var(--plume-muted)}._sm_ez3xe_51{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding:0 var(--plume-space-2)}._md_ez3xe_57{height:var(--plume-space-10);padding:0 var(--plume-space-4)}._lg_ez3xe_62{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding:0 var(--plume-space-6)}:is(._datePickerInputText_ez3xe_13,._sm_ez3xe_51,._md_ez3xe_57,._lg_ez3xe_62){padding-inline-end:3rem}._lg_ez3xe_62{padding-inline-end:3.25rem}._sm_ez3xe_51+._inputButton_ez3xe_29>._inputButtonIcon_ez3xe_45{height:1.125rem;width:1.125rem}._lg_ez3xe_62+._inputButton_ez3xe_29>._inputButtonIcon_ez3xe_45{height:var(--plume-space-6);width:var(--plume-space-6)}._rounded_ez3xe_86{border-radius:var(--plume-radius-4)}:is(._outline_ez3xe_90)._pill_ez3xe_90{border-radius:var(--plume-radius-full)}._outline_ez3xe_90{border:1px solid var(--plume-border-strong)}._filled_ez3xe_99{background-color:var(--plume-surface-muted);border-block-end:1px solid var(--plume-border-strong);border-bottom-left-radius:0;border-bottom-right-radius:0}._underline_ez3xe_107{border-radius:0;border-block-end:1px solid var(--plume-border-strong)}:is(._outline_ez3xe_90,._filled_ez3xe_99,._underline_ez3xe_107):enabled:hover{border-color:color-mix(in hsl,var(--plume-border-strong),black 10%)}:is(._outline_ez3xe_90,._filled_ez3xe_99,._underline_ez3xe_107)._invalid_ez3xe_117,:is(._outline_ez3xe_90,._filled_ez3xe_99,._underline_ez3xe_107)._invalid_ez3xe_117:enabled:hover,:is(._outline_ez3xe_90,._filled_ez3xe_99,._underline_ez3xe_107)._invalid_ez3xe_117:enabled:focus{border-color:var(--plume-color-error-text)}._outline_ez3xe_90._invalid_ez3xe_117:enabled:focus{outline-color:var(--plume-color-error-text)}._filled_ez3xe_99:enabled:hover{background-color:color-mix(in hsl,var(--plume-surface-muted),black 2%)}._outline_ez3xe_90:enabled:focus{border-color:var(--datepicker-scheme);outline-color:var(--datepicker-scheme)}:is(._filled_ez3xe_99,._underline_ez3xe_107):enabled:focus{border-block-end-color:var(--datepicker-scheme);border-block-end-width:2px}._datePickerModal_ez3xe_141{margin-top:var(--plume-space-2);display:flex;flex-direction:column;background-color:var(--plume-surface);border:1px solid var(--plume-border);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border-radius:var(--plume-radius-6);overflow:hidden;position:absolute;z-index:var(--plume-z-1)}._calendarContainer_ez3xe_156{display:flex;width:21rem}._calendarContainerDouble_ez3xe_161{display:flex;width:42rem}._calendar_ez3xe_156{width:21rem;padding:var(--plume-space-3)}._calendarHeader_ez3xe_171{display:flex;justify-content:center;margin-bottom:var(--plume-space-3)}._day_ez3xe_178,._year_ez3xe_179,._month_ez3xe_180,._monthYearSelectors_ez3xe_181 button{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit}._day_ez3xe_178:focus-visible,._year_ez3xe_179:focus-visible,._month_ez3xe_180:focus-visible,._monthYearSelectors_ez3xe_181 button:focus-visible{outline:2px solid var(--datepicker-scheme);outline-offset:1px}._monthYearSelectors_ez3xe_181{display:flex;justify-content:center;align-items:center;column-gap:var(--plume-space-1)}._monthYearSelectors_ez3xe_181 button:not([class*=icon]){padding:var(--plume-space-2) var(--plume-space-4);border-radius:var(--plume-radius-4)}._monthYearSelectors_ez3xe_181 button[class*=icon]{padding:var(--plume-space-2);border-radius:var(--plume-radius-full)}._monthYearSelectors_ez3xe_181 button:hover{background-color:var(--datepicker-hover-color)}._monthSelector_ez3xe_218,._yearSelector_ez3xe_219{font-weight:700}._yearSelectorGrid_ez3xe_223{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--plume-space-2)}._year_ez3xe_179,._month_ez3xe_180{display:inline-flex;justify-content:center;padding:var(--plume-space-2) var(--plume-space-4);border-radius:var(--plume-radius-4)}._year_ez3xe_179:not(._selected_ez3xe_237):hover,._month_ez3xe_180:not(._selected_ez3xe_237):hover{background-color:var(--datepicker-hover-color)}._year_ez3xe_179:hover,._month_ez3xe_180:hover{background-color:var(--datepicker-selected-hover-color)}._monthSelectorGrid_ez3xe_247{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--plume-space-2)}._daysOfWeek_ez3xe_253{display:flex;justify-content:center;column-gap:var(--plume-space-1);padding-bottom:.375rem}._dayOfWeek_ez3xe_260{margin:1px;width:var(--plume-space-10);display:block;text-align:center;font-size:var(--plume-font-size-sm);color:var(--plume-muted)}._calendarGrid_ez3xe_269{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--plume-space-1)}._day_ez3xe_178{margin-left:1px;margin-right:1px;display:flex;height:var(--plume-space-10);width:var(--plume-space-10);align-items:center;justify-content:center;border-radius:var(--plume-radius-full)}._today_ez3xe_286{color:var(--datepicker-scheme)}._rangeItem_ez3xe_290{background-color:var(--datepicker-range-item-color);color:var(--datepicker-range-item-text)}._selected_ez3xe_237{background-color:var(--datepicker-solid);color:var(--datepicker-contrast)}._selectedHover_ez3xe_300{background-color:var(--datepicker-selected-hover-color);color:var(--datepicker-contrast)}._hovered_ez3xe_305{background-color:var(--datepicker-hover-color)}._disabledDay_ez3xe_309{color:var(--plume-muted);cursor:not-allowed}._outOfRangeDay_ez3xe_314{text-decoration-line:line-through}._footerActions_ez3xe_318{display:flex;justify-content:flex-end;padding:var(--plume-space-3);border-top:1px solid var(--plume-border)}button._footerButton_ez3xe_325{color:var(--plume-foreground)}button._footerButtonApply_ez3xe_329{color:var(--datepicker-contrast);margin-left:var(--plume-space-2)}._disabled_ez3xe_309,._disabled_ez3xe_309+._inputButton_ez3xe_29{opacity:.5;cursor:not-allowed}:where(._base_162n4_9){background:transparent;border:none;outline:2px solid transparent;outline-offset:2px}._input_162n4_16{border-radius:var(--plume-radius-4);box-sizing:border-box;color:var(--plume-foreground);display:block;height:var(--plume-space-10);min-width:min(18rem,100%);padding-inline:var(--plume-space-4);position:relative;width:100%}._input_162n4_16::placeholder{color:var(--plume-muted)}._sm_162n4_32{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding-inline:var(--plume-space-2)}._md_162n4_38{height:var(--plume-space-10);padding-inline:var(--plume-space-4)}._lg_162n4_43{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding-inline:var(--plume-space-6)}._rounded_162n4_49{border-radius:var(--plume-radius-4)}:is(._outline_162n4_53)._pill_162n4_53{border-radius:var(--plume-radius-full)}._outline_162n4_53{border:1px solid var(--plume-border-strong)}._filled_162n4_62{background-color:var(--plume-surface-muted);border-block-end:1px solid var(--plume-border-strong);border-bottom-left-radius:0;border-bottom-right-radius:0}._underline_162n4_70{border-radius:0;border-block-end:1px solid var(--plume-border-strong)}:is(._outline_162n4_53,._filled_162n4_62,._underline_162n4_70):enabled:hover{border-color:color-mix(in hsl,var(--plume-border-strong),black 10%)}:is(._outline_162n4_53,._filled_162n4_62,._underline_162n4_70)._invalid_162n4_80,:is(._outline_162n4_53,._filled_162n4_62,._underline_162n4_70)._invalid_162n4_80:enabled:hover{border-color:var(--input-color)}._filled_162n4_62:enabled:hover{background-color:color-mix(in hsl,var(--plume-surface-muted),black 2%)}:not(._inputGroup_162n4_89)>._outline_162n4_53:enabled:focus,._inputGroup_162n4_89:has(._outline_162n4_53:enabled):focus-within{border-color:var(--input-color);outline:2px solid var(--input-color);outline-offset:2px}:is(._filled_162n4_62,._underline_162n4_70):enabled:focus{border-block-end-color:var(--input-color);border-block-end-width:2px}._disabled_162n4_101{opacity:.5;cursor:not-allowed}._inputGroup_162n4_89{position:relative;display:flex;border-radius:var(--plume-radius-4);min-width:min(18rem,100%)}._inputGroup_162n4_89>._input_162n4_16{flex:1 1 auto;min-width:0}._inputGroup_162n4_89>._addOn_162n4_120{flex-shrink:0;white-space:nowrap}._inputGroup_162n4_89:has(._outline_162n4_53,._filled_162n4_62)>._addOn_162n4_120{background-color:var(--plume-surface-muted)}._inputGroup_162n4_89:has(._outline_162n4_53)>._addOn_162n4_120{border:1px solid var(--plume-border-strong)}._inputGroup_162n4_89:has(._filled_162n4_62)>._addOn_162n4_120{border-block-end:1px solid var(--plume-border-strong)}._inputGroup_162n4_89:has(._outline_162n4_53,._filled_162n4_62)>._addOn_162n4_120:first-child{border-top-left-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._outline_162n4_53)>._addOn_162n4_120:first-child{border-bottom-left-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._outline_162n4_53,._filled_162n4_62)>._addOn_162n4_120:first-child+._input_162n4_16{border-top-left-radius:0;border-top-right-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._outline_162n4_53)>._addOn_162n4_120:first-child+._input_162n4_16{border-bottom-left-radius:0;border-bottom-right-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._addOn_162n4_120)>._input_162n4_16:is(._outline_162n4_53,._filled_162n4_62){border-top-right-radius:0}._inputGroup_162n4_89:has(._addOn_162n4_120)>._input_162n4_16:is(._outline_162n4_53){border-bottom-right-radius:0}._inputGroup_162n4_89:has(._outline_162n4_53,._filled_162n4_62)>._addOn_162n4_120:last-child{border-top-right-radius:var(--plume-radius-4);border-inline-start:0}._inputGroup_162n4_89:has(._outline_162n4_53)>._addOn_162n4_120:last-child{border-bottom-right-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._underline_162n4_70)>._addOn_162n4_120{border-block-end:1px solid var(--plume-border-strong)}._inputGroup_162n4_89:has(._element_162n4_176:first-child)>._input_162n4_16{padding-inline-start:2.5rem}._inputGroup_162n4_89:has(._element_162n4_176:last-child)>._input_162n4_16{padding-inline-end:2.5rem}._element_162n4_176,._addOn_162n4_120{display:flex;align-items:center;justify-content:center}._element_162n4_176:first-child{left:0}._element_162n4_176:last-child{right:0}._element_162n4_176{position:absolute;top:0;height:2.5rem;width:2.5rem;z-index:2}._addOn_162n4_120{padding:0 .75rem}._field_wdljj_3{color:var(--plume-foreground);display:flex;flex-direction:column;gap:var(--plume-space-1)}._horizontal_wdljj_14{align-items:center;column-gap:var(--plume-space-4);display:grid;grid-template-columns:var(--field-label-width, 8rem) minmax(0,1fr)}._horizontal_wdljj_14>:not(._label_wdljj_22){grid-column:2}._label_wdljj_22{font-size:var(--plume-font-size-sm);font-weight:var(--plume-font-weight-medium);line-height:var(--plume-line-height-snug)}._requiredIndicator_wdljj_32{color:var(--plume-color-error-text);margin-inline-start:var(--plume-space-1)}._optionalText_wdljj_37{color:var(--plume-muted);font-weight:var(--plume-font-weight-normal);margin-inline-start:var(--plume-space-1)}._helperText_wdljj_43,._errorText_wdljj_44{font-size:var(--plume-font-size-sm);line-height:var(--plume-line-height-snug);margin:0}._helperText_wdljj_43{color:var(--plume-muted)}._errorText_wdljj_44{color:var(--plume-color-error-text)}._disabled_wdljj_58 ._label_wdljj_22{opacity:.5}._icon_c6d4m_1{align-items:center;color:var(--icon-color, currentColor);display:inline-flex;flex:none;height:var(--icon-size);justify-content:center;vertical-align:middle;width:var(--icon-size)}._icon_c6d4m_1>svg{display:block;height:100%;width:100%}._sm_c6d4m_18{--icon-size: var(--plume-space-4)}._md_c6d4m_22{--icon-size: var(--plume-space-5)}._lg_c6d4m_26{--icon-size: var(--plume-space-6)}._list_1ts57_1{box-sizing:border-box;color:var(--plume-foreground);font-family:var(--plume-font-family);line-height:var(--plume-line-height-normal);list-style:none;margin:0;padding:0}._sm_1ts57_11{--list-padding-x: var(--plume-space-2);--list-padding-y: var(--plume-space-1);font-size:var(--plume-font-size-xs)}._md_1ts57_17{--list-padding-x: var(--plume-space-3);--list-padding-y: var(--plume-space-2);font-size:var(--plume-font-size-sm)}._lg_1ts57_23{--list-padding-x: var(--plume-space-4);--list-padding-y: var(--plume-space-3);font-size:var(--plume-font-size-base)}._plain_1ts57_29{background-color:transparent}._bordered_1ts57_33{background-color:var(--plume-surface);border:1px solid var(--plume-border);border-radius:var(--plume-radius-4);overflow:hidden}._filled_1ts57_40{background-color:var(--plume-surface-muted);border-radius:var(--plume-radius-4);overflow:hidden}._bullet_1ts57_46{list-style:disc inside}._number_1ts57_50{list-style:decimal inside}._list_1ts57_1 ._item_1ts57_54{align-items:center;display:flex;gap:var(--plume-space-3);padding:var(--list-padding-y) var(--list-padding-x)}._bullet_1ts57_46 ._item_1ts57_54,._number_1ts57_50 ._item_1ts57_54{display:list-item}._list_1ts57_1 ._item_1ts57_54:has(>._button_1ts57_66){gap:0;padding:0}._list_1ts57_1 ._item_1ts57_54:has(>._button_1ts57_66)>:not(._button_1ts57_66){margin-inline-end:var(--list-padding-x)}._divided_1ts57_75>li:not(._divider_1ts57_75)+li:not(._divider_1ts57_75){border-block-start:1px solid var(--plume-border)}._list_1ts57_1 ._button_1ts57_66{align-items:center;background-color:transparent;border:0;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;flex:1 1 auto;font:inherit;gap:var(--plume-space-3);min-width:0;padding:var(--list-padding-y) var(--list-padding-x);text-align:start;text-decoration:none;transition:background-color .15s;width:100%}._list_1ts57_1 ._button_1ts57_66:hover{background-color:color-mix(in srgb,currentColor 8%,transparent)}._list_1ts57_1 ._button_1ts57_66:focus-visible{outline:2px solid var(--list-text);outline-offset:-2px}._list_1ts57_1 ._selected_1ts57_107{background-color:var(--list-tint);color:var(--list-tint-text)}._list_1ts57_1 ._selected_1ts57_107 ._secondary_1ts57_112{color:inherit}._list_1ts57_1 ._selected_1ts57_107:hover{background-color:var(--list-tint-strong)}._list_1ts57_1 ._button_1ts57_66:is(:disabled,[aria-disabled=true]){cursor:default;opacity:.5;pointer-events:none}._list_1ts57_1 ._icon_1ts57_126{align-items:center;display:inline-flex;flex:none}._list_1ts57_1 ._text_1ts57_132{flex:1 1 auto;min-width:0}._list_1ts57_1 ._primary_1ts57_137,._list_1ts57_1 ._secondary_1ts57_112{display:block}._list_1ts57_1 ._secondary_1ts57_112{color:var(--plume-muted);font-size:.875em}._list_1ts57_1 ._subheader_1ts57_147{color:var(--plume-muted);font-size:.8em;font-weight:var(--plume-font-weight-semibold);letter-spacing:.04em;padding:var(--list-padding-y) var(--list-padding-x);text-transform:uppercase}._list_1ts57_1 ._divider_1ts57_75{border-block-start:1px solid var(--plume-border);height:0;margin-block:var(--plume-space-1)}@media(prefers-reduced-motion:reduce){._list_1ts57_1 ._button_1ts57_66{transition:none}}@media(forced-colors:active){._bordered_1ts57_33{border-color:CanvasText}._list_1ts57_1 ._selected_1ts57_107{background-color:Highlight;color:HighlightText;forced-color-adjust:none}}._root_ge9em_1{align-items:center;color:var(--plume-foreground);cursor:pointer;display:inline-flex;font-family:var(--plume-font-family);gap:var(--plume-space-2);vertical-align:middle}._sm_ge9em_11{--radio-size: var(--plume-space-4);font-size:var(--plume-font-size-xs)}._md_ge9em_16{--radio-size: var(--plume-space-5);font-size:var(--plume-font-size-base)}._lg_ge9em_21{--radio-size: var(--plume-space-6);font-size:var(--plume-font-size-lg)}._radio_ge9em_26{appearance:none;background-color:var(--plume-surface);border:2px solid var(--plume-border-strong);border-radius:var(--plume-radius-full);box-sizing:border-box;cursor:inherit;flex:none;height:var(--radio-size);margin:0;position:relative;transition:background-color .15s,border-color .15s;width:var(--radio-size)}._radio_ge9em_26:before{border-radius:var(--plume-radius-full);content:"";inset:27.5%;position:absolute;transform:scale(0);transition:transform .12s}._solid_ge9em_52:before{background-color:var(--radio-contrast)}._solid_ge9em_52:checked{background-color:var(--radio-solid);border-color:var(--radio-solid)}._outline_ge9em_61:before{background-color:var(--radio-text)}._outline_ge9em_61:checked{border-color:var(--radio-text)}._radio_ge9em_26:checked:before{transform:scale(1)}._radio_ge9em_26:enabled:hover:not(:checked){border-color:var(--radio-text)}._radio_ge9em_26:focus-visible{outline:2px solid var(--radio-text);outline-offset:2px}._invalid_ge9em_82:not(:checked){border-color:var(--radio-text)}._label_ge9em_86{line-height:var(--plume-line-height-normal)}._disabled_ge9em_90{cursor:not-allowed;opacity:.5}@media(prefers-reduced-motion:reduce){._radio_ge9em_26,._radio_ge9em_26:before{transition:none}}@media(forced-colors:active){._radio_ge9em_26{border-color:CanvasText;forced-color-adjust:none}._solid_ge9em_52:checked{background-color:Highlight;border-color:Highlight}._solid_ge9em_52:before{background-color:HighlightText}._outline_ge9em_61:checked{border-color:Highlight}._outline_ge9em_61:before{background-color:Highlight}}._group_1yg36_1{display:flex;font-family:var(--plume-font-family)}._vertical_1yg36_6{flex-direction:column;gap:var(--plume-space-2)}._horizontal_1yg36_11{flex-direction:row;flex-wrap:wrap;gap:var(--plume-space-2) var(--plume-space-4)}._tabs_1ct2b_6{display:flex;flex-direction:column}._horizontal_1ct2b_11{flex-direction:column}._vertical_1ct2b_15{flex-direction:row}._left_1ct2b_19{justify-content:flex-start}._center_1ct2b_23{justify-content:center}._right_1ct2b_27{justify-content:flex-end}._sm_1ct2b_31{padding:var(--plume-space-1) var(--plume-space-2);font-size:small}._md_1ct2b_36{padding:var(--plume-space-2) var(--plume-space-3)}._lg_1ct2b_40{padding:var(--plume-space-3) var(--plume-space-4);font-size:large}._vertical_1ct2b_15 ._underline_1ct2b_45{border-inline-end:solid 1px var(--plume-border);border-block-end:none}._underline_1ct2b_45{gap:var(--plume-space-4);border-block-end:solid 1px var(--plume-border)}._vertical_1ct2b_15 ._tablist_1ct2b_55{flex-direction:column;align-items:stretch}._tablist_1ct2b_55{width:inherit;display:flex;flex-direction:row;align-items:center}._tab_1ct2b_6{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;display:inline-flex;justify-content:center;align-items:center;gap:var(--plume-space-2);outline:2px solid transparent;outline-offset:2px}:is(._rounded_1ct2b_82,._segment_1ct2b_82) ._tab_1ct2b_6{border-radius:var(--plume-radius-4)}._vertical_1ct2b_15 ._underline_1ct2b_45 ._tab_1ct2b_6{border-inline-end:2px solid transparent;border-block-end:none;transition:border-inline-end .2s}._underline_1ct2b_45 ._tab_1ct2b_6{border-block-end:2px solid transparent;transition:border-block-end .2s}._vertical_1ct2b_15 ._underline_1ct2b_45 ._tab_1ct2b_6._active_1ct2b_97{border-inline-end:2px solid var(--tabs-scheme);border-block-end:none}._underline_1ct2b_45 ._tab_1ct2b_6._active_1ct2b_97{border-block-end:2px solid var(--tabs-scheme);color:var(--tabs-scheme);transition:color .2s}._rounded_1ct2b_82 ._tab_1ct2b_6._active_1ct2b_97{background-color:var(--tabs-solid);color:var(--tabs-text-color);border-radius:var(--plume-radius-4);transition:color .2s}._vertical_1ct2b_15 ._enclosed_1ct2b_115{border-inline-end:1px solid var(--tabs-scheme);border-block-end:none}._enclosed_1ct2b_115{border-block-end:1px solid var(--tabs-scheme)}._vertical_1ct2b_15 ._enclosed_1ct2b_115 ._tab_1ct2b_6._active_1ct2b_97{border:1px solid var(--tabs-scheme);border-radius:var(--plume-radius-4);border-inline-end:none;border-end-end-radius:0;border-start-end-radius:0;margin-inline-end:-1px;transition:color .2s}._enclosed_1ct2b_115 ._tab_1ct2b_6._active_1ct2b_97{border:1px solid var(--tabs-scheme);border-radius:var(--plume-radius-4);background:var(--plume-surface);border-block-end:none;border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--tabs-scheme);margin-block-end:-1px;transition:color .2s}._segment_1ct2b_82{background-color:var(--tabs-solid);color:var(--tabs-text-color);gap:var(--plume-space-1);padding:var(--plume-space-3) var(--plume-space-4);transition:background-color .2s;border-radius:var(--plume-radius-4)}._segment_1ct2b_82 ._tab_1ct2b_6._active_1ct2b_97{background-color:var(--tabs-solid-active);color:var(--tabs-text-color);border-radius:var(--plume-radius-4);transition:color .2s}._tab_1ct2b_6:not(._active_1ct2b_97,:disabled):hover{color:color-mix(in hsl,var(--tabs-scheme),black 10%)}._tab_1ct2b_6:focus-visible{outline-color:var(--tabs-scheme)}._segment_1ct2b_82 ._tab_1ct2b_6:focus-visible{outline-color:var(--tabs-text-color)}._panel_1ct2b_174:focus-visible{outline:2px solid var(--tabs-scheme);outline-offset:2px}._vertical_1ct2b_15 ._panel_1ct2b_174{padding:var(--plume-space-2) var(--plume-space-4)}._panel_1ct2b_174{padding:var(--plume-space-4) var(--plume-space-2);border:none}:where(._base_1qiho_6){background:transparent;border:none;outline:2px solid transparent;outline-offset:2px}._textarea_1qiho_13{border-radius:var(--plume-radius-4);box-sizing:border-box;color:var(--plume-foreground);display:block;font-family:var(--plume-font-family);min-width:min(18rem,100%);padding:var(--plume-space-2) var(--plume-space-4);width:100%}._textarea_1qiho_13::placeholder{color:var(--plume-muted)}._sm_1qiho_28{font-size:var(--plume-font-size-xs);padding:var(--plume-space-1) var(--plume-space-2)}._md_1qiho_33{font-size:var(--plume-font-size-base)}._lg_1qiho_37{font-size:var(--plume-font-size-lg);padding:var(--plume-space-3) var(--plume-space-6)}._rounded_1qiho_42{border-radius:var(--plume-radius-4)}:is(._outline_1qiho_46)._pill_1qiho_46{border-radius:var(--plume-radius-6)}._outline_1qiho_46{border:1px solid var(--plume-border-strong)}._filled_1qiho_55{background-color:var(--plume-surface-muted);border-block-end:1px solid var(--plume-border-strong);border-bottom-left-radius:0;border-bottom-right-radius:0}._underline_1qiho_63{border-radius:0;border-block-end:1px solid var(--plume-border-strong)}._none_1qiho_69{resize:none}._vertical_1qiho_73{resize:vertical}._horizontal_1qiho_77{resize:horizontal}._both_1qiho_81{resize:both}:is(._outline_1qiho_46,._filled_1qiho_55,._underline_1qiho_63):enabled:hover{border-color:color-mix(in hsl,var(--plume-border-strong),black 10%)}:is(._outline_1qiho_46,._filled_1qiho_55,._underline_1qiho_63)._invalid_1qiho_89,:is(._outline_1qiho_46,._filled_1qiho_55,._underline_1qiho_63)._invalid_1qiho_89:enabled:hover{border-color:var(--textarea-color)}._filled_1qiho_55:enabled:hover{background-color:color-mix(in hsl,var(--plume-surface-muted),black 2%)}._outline_1qiho_46:enabled:focus{border-color:var(--textarea-color);outline:2px solid var(--textarea-color);outline-offset:2px}:is(._filled_1qiho_55,._underline_1qiho_63):enabled:focus{border-block-end-color:var(--textarea-color);border-block-end-width:2px}._disabled_1qiho_109{cursor:not-allowed;opacity:.5}._root_1soij_1{align-items:center;color:var(--plume-foreground);cursor:pointer;display:inline-flex;font-family:var(--plume-font-family);gap:var(--plume-space-2);vertical-align:middle}._sm_1soij_11{--toggle-height: var(--plume-space-5);font-size:var(--plume-font-size-xs)}._md_1soij_16{--toggle-height: var(--plume-space-6);font-size:var(--plume-font-size-base)}._lg_1soij_21{--toggle-height: var(--plume-space-8);font-size:var(--plume-font-size-lg)}._toggle_1soij_26{--toggle-border: 0px;--toggle-gap: 3px;--toggle-thumb: calc(var(--toggle-height) - (var(--toggle-border) + var(--toggle-gap)) * 2);appearance:none;background-color:var(--plume-border-strong);border:0;border-radius:var(--plume-radius-full);box-sizing:border-box;cursor:inherit;flex:none;height:var(--toggle-height);margin:0;position:relative;transition:background-color .15s;width:calc(var(--toggle-height) * 1.8)}._toggle_1soij_26:before{background-color:var(--plume-surface);border-radius:var(--plume-radius-full);content:"";height:var(--toggle-thumb);inset-block-start:var(--toggle-gap);inset-inline-start:var(--toggle-gap);position:absolute;transition:inset-inline-start .15s,background-color .15s;width:var(--toggle-thumb)}._toggle_1soij_26:checked:before{inset-inline-start:calc(100% - var(--toggle-thumb) - var(--toggle-gap))}._solid_1soij_62:checked{background-color:var(--toggle-solid)}._solid_1soij_62:checked:before{background-color:var(--toggle-contrast)}._outline_1soij_70{--toggle-border: 2px;--toggle-gap: 2px;background-color:var(--plume-surface);border:var(--toggle-border) solid var(--plume-border-strong)}._outline_1soij_70:before{background-color:var(--plume-border-strong)}._outline_1soij_70:checked{background-color:var(--plume-surface);border-color:var(--toggle-text)}._outline_1soij_70:checked:before{background-color:var(--toggle-text)}._raised_1soij_90{--toggle-border: 0px;--toggle-gap: 0px;background-color:transparent}._raised_1soij_90:before{background-color:var(--plume-surface);box-shadow:var(--plume-shadow-md);z-index:1}._raised_1soij_90:after{background-color:var(--plume-border-strong);border-radius:var(--plume-radius-full);content:"";inset-block:calc(var(--toggle-height) * .2);inset-inline:calc(var(--toggle-height) * .25);position:absolute;transition:background-color .15s}._raised_1soij_90:checked:before{background-color:var(--toggle-solid)}._raised_1soij_90:checked:after{background-color:color-mix(in srgb,var(--toggle-solid) 45%,transparent)}._toggle_1soij_26:focus-visible{outline:2px solid var(--toggle-text);outline-offset:2px}._invalid_1soij_125:not(:checked){outline:2px solid var(--toggle-text);outline-offset:1px}._label_1soij_130{line-height:var(--plume-line-height-normal)}._disabled_1soij_134{cursor:not-allowed;opacity:.5}@media(prefers-reduced-motion:reduce){._toggle_1soij_26,._toggle_1soij_26:before,._toggle_1soij_26:after{transition:none}}@media(forced-colors:active){._toggle_1soij_26{--toggle-border: 2px;border:2px solid CanvasText;forced-color-adjust:none}._toggle_1soij_26:checked{background-color:Highlight;border-color:Highlight}._toggle_1soij_26:before{background-color:CanvasText}._toggle_1soij_26:checked:before{background-color:HighlightText}._outline_1soij_70:checked{background-color:Canvas}._outline_1soij_70:checked:before{background-color:Highlight}._raised_1soij_90{--toggle-border: 0px;border:0}._raised_1soij_90:before{background-color:Canvas;border:2px solid CanvasText;box-sizing:border-box}._raised_1soij_90:after{background-color:CanvasText}._raised_1soij_90:checked:before{background-color:Canvas;border-color:Highlight}._raised_1soij_90:checked:after{background-color:Highlight}}
1
+ ._badge_lalgz_1{align-items:center;display:inline-flex;font-family:var(--plume-font-family);font-weight:var(--plume-font-weight-semibold);gap:var(--plume-space-1);line-height:var(--plume-line-height-tight);vertical-align:middle;white-space:nowrap}._sm_lalgz_12{font-size:var(--plume-font-size-xs);padding:var(--plume-space-1) var(--plume-space-2)}._md_lalgz_17{font-size:var(--plume-font-size-sm);padding:var(--plume-space-1) var(--plume-space-3)}._lg_lalgz_22{font-size:var(--plume-font-size-base);padding:var(--plume-space-2) var(--plume-space-4)}._rounded_lalgz_27{border-radius:var(--plume-radius-2)}._pill_lalgz_31{border-radius:var(--plume-radius-full)}._solid_lalgz_35{background-color:var(--badge-solid);color:var(--badge-contrast)}._outline_lalgz_40{box-shadow:inset 0 0 0 1px var(--badge-text);color:var(--badge-text)}._subtle_lalgz_45{background-color:var(--badge-tint);color:var(--badge-tint-text)}._dotOnly_lalgz_50{background-color:transparent;box-shadow:none;color:var(--badge-solid);padding:0}._dotOnly_lalgz_50 ._dot_lalgz_50{block-size:.75em;inline-size:.75em}._dot_lalgz_50{background-color:currentColor;block-size:.5em;border-radius:var(--plume-radius-full);flex:none;inline-size:.5em}@media(forced-colors:active){._badge_lalgz_1{border:1px solid CanvasText;forced-color-adjust:none}._dotOnly_lalgz_50{border:0}}._spinner_q8rz1_7{animation:_spin_q8rz1_7 var(--spinner-animation-duration) linear infinite;border-color:var(--spinner-scheme, currentColor);border-radius:50%;border-top-color:transparent;border-width:var(--spinner-border-width, 3px);display:inline-block;width:var(--plume-space-8);height:var(--plume-space-8)}._sm_q8rz1_18{width:var(--plume-space-4);height:var(--plume-space-4)}._md_q8rz1_23{width:var(--plume-space-8);height:var(--plume-space-8)}._lg_q8rz1_28{width:var(--plume-space-12);height:var(--plume-space-12)}._solid_q8rz1_33{border-style:solid}._dashed_q8rz1_38{border-style:dashed}._dotted_q8rz1_43{border-style:dotted}._double_q8rz1_48{border-style:double}@keyframes _spin_q8rz1_7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_q8rz1_63{width:45px;aspect-ratio:.75;--c: no-repeat linear-gradient(#000 0 0);background:var(--c) 0% 50%,var(--c) 50% 50%,var(--c) 100% 50%;animation:_l7_q8rz1_1 1s infinite linear alternate}@keyframes _l7_q8rz1_1{0%{background-size:20% 50%,20% 50%,20% 50%}20%{background-size:20% 20%,20% 50%,20% 50%}40%{background-size:20% 100%,20% 20%,20% 50%}60%{background-size:20% 50%,20% 100%,20% 20%}80%{background-size:20% 50%,20% 50%,20% 100%}to{background-size:20% 50%,20% 50%,20% 50%}}._loader_q8rz1_63{width:15px;aspect-ratio:1;border-radius:50%;animation:_l5_q8rz1_1 1s infinite linear alternate}@keyframes _l5_q8rz1_1{0%{box-shadow:20px 0 #000,-20px 0 #0002;background:#000}33%{box-shadow:20px 0 #000,-20px 0 #0002;background:#0002}66%{box-shadow:20px 0 #0002,-20px 0 #000;background:#0002}to{box-shadow:20px 0 #0002,-20px 0 #000;background:#000}}._loader_q8rz1_63{display:inline-grid;padding:5px;background:#fff;filter:blur(4px) contrast(12)}._loader_q8rz1_63:before{content:"";height:40px;aspect-ratio:3;--c: #0000 64%, #000 66% 98%, #0000 101%;background:radial-gradient(35% 146% at 50% 159%,var(--c)) 0 0,radial-gradient(35% 146% at 50% -59%,var(--c)) 100% 100%;background-size:calc(200% / 3) 50%;background-repeat:repeat-x;animation:_l11_q8rz1_1 .8s infinite linear}@keyframes _l11_q8rz1_1{to{background-position:-200% 0,-100% 100%}}._loader_q8rz1_63{--d: 22px;width:4px;height:4px;border-radius:50%;color:#25b09b;box-shadow:calc(1 * var(--d)) calc(0 * var(--d)) 0 0,calc(.707 * var(--d)) calc(.707 * var(--d)) 0 1px,calc(0 * var(--d)) calc(1 * var(--d)) 0 2px,calc(-.707 * var(--d)) calc(.707 * var(--d)) 0 3px,calc(-1 * var(--d)) calc(0 * var(--d)) 0 4px,calc(-.707 * var(--d)) calc(-.707 * var(--d)) 0 5px,calc(0 * var(--d)) calc(-1 * var(--d)) 0 6px;animation:_l27_q8rz1_1 1s infinite steps(8)}@keyframes _l27_q8rz1_1{to{transform:rotate(1turn)}}._loader_q8rz1_63{width:48px;height:48px;background:#fff;display:inline-block;border-radius:50%;box-sizing:border-box;animation:_animloader_q8rz1_1 1s ease-in infinite}@keyframes _animloader_q8rz1_1{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}._button_1l5be_3{align-items:center;background-color:transparent;border:none;border-radius:var(--plume-radius-4);display:inline-flex;font-weight:var(--plume-font-weight-semibold);justify-content:center;padding-inline:var(--plume-space-4);transition:color .3s,background-color .3s;user-select:none}._sm_1l5be_18{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding-inline:var(--plume-space-2)}._md_1l5be_24{height:var(--plume-space-10);padding-inline:var(--plume-space-4)}._lg_1l5be_29{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding-inline:var(--plume-space-6)}._rounded_1l5be_35{border-radius:var(--plume-radius-4)}._pill_1l5be_39{border-radius:var(--plume-radius-full)}._solid_1l5be_43{background-color:var(--button-solid-bg);color:var(--button-contrast-color)}._outline_1l5be_49{border:1px solid var(--button-color);color:var(--button-color)}._ghost_1l5be_55{color:var(--button-color)}._link_1l5be_60{color:var(--button-color);text-decoration-line:underline;text-underline-offset:var(--plume-space-2)}._icon_1l5be_67{color:var(--button-color);padding:var(--plume-space-2)}:is(._outline_1l5be_49,._ghost_1l5be_55,._icon_1l5be_67):enabled:hover{background-color:var(--button-hover-alt-color)}._link_1l5be_60:enabled:hover{color:var(--button-hover-color);text-decoration-color:var(--button-hover-color)}._solid_1l5be_43:enabled:hover{background-color:var(--button-solid-hover)}._outline_1l5be_49:enabled:hover{border-color:var(--button-hover-color)}._button_1l5be_3:enabled:focus-visible{outline:2px solid var(--button-color);outline-offset:2px}:is(._outline_1l5be_49,._ghost_1l5be_55):enabled:active{background-color:var(--button-focus-alt-color)}:is(._icon_1l5be_67,._link_1l5be_60):enabled:active{color:var(--button-focus-color)}._solid_1l5be_43:enabled:active{background-color:var(--button-solid-active)}._link_1l5be_60:enabled:active{text-decoration-color:var(--button-focus-color)}button._disabled_1l5be_111{opacity:.5;cursor:not-allowed}._iconMargin_1l5be_116{margin:0 var(--plume-space-1)}._hidden_1l5be_120{display:none}._spinnerMargin_1l5be_124{margin-left:var(--plume-space-1)}._card_i47cm_1{border-radius:var(--plume-radius-4);box-sizing:border-box;color:var(--plume-foreground);display:flex;flex-direction:column;font-family:var(--plume-font-family);overflow:hidden}._sm_i47cm_11{--card-padding: var(--plume-space-3);font-size:var(--plume-font-size-xs)}._md_i47cm_16{--card-padding: var(--plume-space-4);font-size:var(--plume-font-size-sm)}._lg_i47cm_21{--card-padding: var(--plume-space-6);font-size:var(--plume-font-size-base)}._elevated_i47cm_26{background-color:var(--plume-surface);box-shadow:var(--plume-shadow-md)}._outline_i47cm_31{background-color:var(--plume-surface);border:1px solid var(--plume-border)}._filled_i47cm_36{background-color:var(--plume-surface-muted)}._card_i47cm_1 ._header_i47cm_40,._card_i47cm_1 ._body_i47cm_41,._card_i47cm_1 ._footer_i47cm_42{padding:var(--card-padding)}._card_i47cm_1 ._header_i47cm_40{font-size:1.125em;font-weight:var(--plume-font-weight-semibold)}._card_i47cm_1 ._body_i47cm_41{flex:1 1 auto;line-height:var(--plume-line-height-normal)}._card_i47cm_1 ._footer_i47cm_42{align-items:center;display:flex;gap:var(--plume-space-2)}._card_i47cm_1 ._header_i47cm_40+._body_i47cm_41,._card_i47cm_1 ._body_i47cm_41+._footer_i47cm_42,._card_i47cm_1 ._header_i47cm_40+._footer_i47cm_42{padding-block-start:0}._outline_i47cm_31 ._header_i47cm_40,._outline_i47cm_31 ._footer_i47cm_42{background-color:var(--plume-surface-muted)}._outline_i47cm_31 ._header_i47cm_40{border-block-end:1px solid var(--plume-border)}._outline_i47cm_31 ._footer_i47cm_42{border-block-start:1px solid var(--plume-border)}._outline_i47cm_31 ._header_i47cm_40+._body_i47cm_41,._outline_i47cm_31 ._body_i47cm_41+._footer_i47cm_42,._outline_i47cm_31 ._header_i47cm_40+._footer_i47cm_42{padding-block-start:var(--card-padding)}@media(forced-colors:active){._card_i47cm_1{border:1px solid CanvasText}}._root_effkj_1{align-items:center;color:var(--plume-foreground);cursor:pointer;display:inline-flex;font-family:var(--plume-font-family);gap:var(--plume-space-2);vertical-align:middle}._sm_effkj_11{--checkbox-size: var(--plume-space-4);font-size:var(--plume-font-size-xs)}._md_effkj_16{--checkbox-size: var(--plume-space-5);font-size:var(--plume-font-size-base)}._lg_effkj_21{--checkbox-size: var(--plume-space-6);font-size:var(--plume-font-size-lg)}._checkbox_effkj_26{appearance:none;background-color:var(--plume-surface);border:2px solid var(--plume-border-strong);border-radius:var(--plume-radius-2);box-sizing:border-box;cursor:inherit;flex:none;height:var(--checkbox-size);margin:0;position:relative;transition:background-color .15s,border-color .15s;width:var(--checkbox-size)}._checkbox_effkj_26:before{clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);content:"";inset:17%;position:absolute;transform:scale(0);transition:transform .12s}._solid_effkj_52:before{background-color:var(--checkbox-contrast)}._solid_effkj_52:checked,._solid_effkj_52:indeterminate{background-color:var(--checkbox-solid);border-color:var(--checkbox-solid)}._outline_effkj_62:before{background-color:var(--checkbox-text)}._outline_effkj_62:checked,._outline_effkj_62:indeterminate{border-color:var(--checkbox-text)}._checkbox_effkj_26:checked:before{transform:scale(1)}._checkbox_effkj_26:indeterminate:before{clip-path:none;inset:calc(50% - 1px) 20%;transform:scale(1)}._checkbox_effkj_26:enabled:hover:not(:checked,:indeterminate){border-color:var(--checkbox-text)}._checkbox_effkj_26:focus-visible{outline:2px solid var(--checkbox-text);outline-offset:2px}._invalid_effkj_90:not(:checked,:indeterminate){border-color:var(--checkbox-text)}._label_effkj_94{line-height:var(--plume-line-height-normal)}._disabled_effkj_98{cursor:not-allowed;opacity:.5}@media(prefers-reduced-motion:reduce){._checkbox_effkj_26,._checkbox_effkj_26:before{transition:none}}@media(forced-colors:active){._checkbox_effkj_26{border-color:CanvasText;forced-color-adjust:none}._solid_effkj_52:checked,._solid_effkj_52:indeterminate{background-color:Highlight;border-color:Highlight}._solid_effkj_52:before{background-color:HighlightText}._outline_effkj_62:checked,._outline_effkj_62:indeterminate{border-color:Highlight}._outline_effkj_62:before{background-color:Highlight}}._datePicker_ez3xe_9{position:relative}._datePickerInputText_ez3xe_13{border:none;border-radius:var(--plume-radius-4);box-sizing:border-box;min-width:min(18rem,100%);width:100%;height:var(--plume-space-10);padding:0 var(--plume-space-4);position:relative;display:block;outline:2px solid transparent;outline-offset:2px;color:var(--plume-muted);background:none}._inputButton_ez3xe_29{position:absolute;top:0;bottom:0;right:0;background-color:transparent;border-color:transparent;margin-right:var(--plume-space-2);margin-block-start:.125rem;margin-block-end:.125rem}input+._inputButton_ez3xe_29{height:auto}._inputButtonIcon_ez3xe_45{height:var(--plume-space-5);width:var(--plume-space-5);fill:var(--plume-muted)}._sm_ez3xe_51{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding:0 var(--plume-space-2)}._md_ez3xe_57{height:var(--plume-space-10);padding:0 var(--plume-space-4)}._lg_ez3xe_62{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding:0 var(--plume-space-6)}:is(._datePickerInputText_ez3xe_13,._sm_ez3xe_51,._md_ez3xe_57,._lg_ez3xe_62){padding-inline-end:3rem}._lg_ez3xe_62{padding-inline-end:3.25rem}._sm_ez3xe_51+._inputButton_ez3xe_29>._inputButtonIcon_ez3xe_45{height:1.125rem;width:1.125rem}._lg_ez3xe_62+._inputButton_ez3xe_29>._inputButtonIcon_ez3xe_45{height:var(--plume-space-6);width:var(--plume-space-6)}._rounded_ez3xe_86{border-radius:var(--plume-radius-4)}:is(._outline_ez3xe_90)._pill_ez3xe_90{border-radius:var(--plume-radius-full)}._outline_ez3xe_90{border:1px solid var(--plume-border-strong)}._filled_ez3xe_99{background-color:var(--plume-surface-muted);border-block-end:1px solid var(--plume-border-strong);border-bottom-left-radius:0;border-bottom-right-radius:0}._underline_ez3xe_107{border-radius:0;border-block-end:1px solid var(--plume-border-strong)}:is(._outline_ez3xe_90,._filled_ez3xe_99,._underline_ez3xe_107):enabled:hover{border-color:color-mix(in hsl,var(--plume-border-strong),black 10%)}:is(._outline_ez3xe_90,._filled_ez3xe_99,._underline_ez3xe_107)._invalid_ez3xe_117,:is(._outline_ez3xe_90,._filled_ez3xe_99,._underline_ez3xe_107)._invalid_ez3xe_117:enabled:hover,:is(._outline_ez3xe_90,._filled_ez3xe_99,._underline_ez3xe_107)._invalid_ez3xe_117:enabled:focus{border-color:var(--plume-color-error-text)}._outline_ez3xe_90._invalid_ez3xe_117:enabled:focus{outline-color:var(--plume-color-error-text)}._filled_ez3xe_99:enabled:hover{background-color:color-mix(in hsl,var(--plume-surface-muted),black 2%)}._outline_ez3xe_90:enabled:focus{border-color:var(--datepicker-scheme);outline-color:var(--datepicker-scheme)}:is(._filled_ez3xe_99,._underline_ez3xe_107):enabled:focus{border-block-end-color:var(--datepicker-scheme);border-block-end-width:2px}._datePickerModal_ez3xe_141{margin-top:var(--plume-space-2);display:flex;flex-direction:column;background-color:var(--plume-surface);border:1px solid var(--plume-border);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border-radius:var(--plume-radius-6);overflow:hidden;position:absolute;z-index:var(--plume-z-1)}._calendarContainer_ez3xe_156{display:flex;width:21rem}._calendarContainerDouble_ez3xe_161{display:flex;width:42rem}._calendar_ez3xe_156{width:21rem;padding:var(--plume-space-3)}._calendarHeader_ez3xe_171{display:flex;justify-content:center;margin-bottom:var(--plume-space-3)}._day_ez3xe_178,._year_ez3xe_179,._month_ez3xe_180,._monthYearSelectors_ez3xe_181 button{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit}._day_ez3xe_178:focus-visible,._year_ez3xe_179:focus-visible,._month_ez3xe_180:focus-visible,._monthYearSelectors_ez3xe_181 button:focus-visible{outline:2px solid var(--datepicker-scheme);outline-offset:1px}._monthYearSelectors_ez3xe_181{display:flex;justify-content:center;align-items:center;column-gap:var(--plume-space-1)}._monthYearSelectors_ez3xe_181 button:not([class*=icon]){padding:var(--plume-space-2) var(--plume-space-4);border-radius:var(--plume-radius-4)}._monthYearSelectors_ez3xe_181 button[class*=icon]{padding:var(--plume-space-2);border-radius:var(--plume-radius-full)}._monthYearSelectors_ez3xe_181 button:hover{background-color:var(--datepicker-hover-color)}._monthSelector_ez3xe_218,._yearSelector_ez3xe_219{font-weight:700}._yearSelectorGrid_ez3xe_223{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--plume-space-2)}._year_ez3xe_179,._month_ez3xe_180{display:inline-flex;justify-content:center;padding:var(--plume-space-2) var(--plume-space-4);border-radius:var(--plume-radius-4)}._year_ez3xe_179:not(._selected_ez3xe_237):hover,._month_ez3xe_180:not(._selected_ez3xe_237):hover{background-color:var(--datepicker-hover-color)}._year_ez3xe_179:hover,._month_ez3xe_180:hover{background-color:var(--datepicker-selected-hover-color)}._monthSelectorGrid_ez3xe_247{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--plume-space-2)}._daysOfWeek_ez3xe_253{display:flex;justify-content:center;column-gap:var(--plume-space-1);padding-bottom:.375rem}._dayOfWeek_ez3xe_260{margin:1px;width:var(--plume-space-10);display:block;text-align:center;font-size:var(--plume-font-size-sm);color:var(--plume-muted)}._calendarGrid_ez3xe_269{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--plume-space-1)}._day_ez3xe_178{margin-left:1px;margin-right:1px;display:flex;height:var(--plume-space-10);width:var(--plume-space-10);align-items:center;justify-content:center;border-radius:var(--plume-radius-full)}._today_ez3xe_286{color:var(--datepicker-scheme)}._rangeItem_ez3xe_290{background-color:var(--datepicker-range-item-color);color:var(--datepicker-range-item-text)}._selected_ez3xe_237{background-color:var(--datepicker-solid);color:var(--datepicker-contrast)}._selectedHover_ez3xe_300{background-color:var(--datepicker-selected-hover-color);color:var(--datepicker-contrast)}._hovered_ez3xe_305{background-color:var(--datepicker-hover-color)}._disabledDay_ez3xe_309{color:var(--plume-muted);cursor:not-allowed}._outOfRangeDay_ez3xe_314{text-decoration-line:line-through}._footerActions_ez3xe_318{display:flex;justify-content:flex-end;padding:var(--plume-space-3);border-top:1px solid var(--plume-border)}button._footerButton_ez3xe_325{color:var(--plume-foreground)}button._footerButtonApply_ez3xe_329{color:var(--datepicker-contrast);margin-left:var(--plume-space-2)}._disabled_ez3xe_309,._disabled_ez3xe_309+._inputButton_ez3xe_29{opacity:.5;cursor:not-allowed}:where(._base_162n4_9){background:transparent;border:none;outline:2px solid transparent;outline-offset:2px}._input_162n4_16{border-radius:var(--plume-radius-4);box-sizing:border-box;color:var(--plume-foreground);display:block;height:var(--plume-space-10);min-width:min(18rem,100%);padding-inline:var(--plume-space-4);position:relative;width:100%}._input_162n4_16::placeholder{color:var(--plume-muted)}._sm_162n4_32{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding-inline:var(--plume-space-2)}._md_162n4_38{height:var(--plume-space-10);padding-inline:var(--plume-space-4)}._lg_162n4_43{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding-inline:var(--plume-space-6)}._rounded_162n4_49{border-radius:var(--plume-radius-4)}:is(._outline_162n4_53)._pill_162n4_53{border-radius:var(--plume-radius-full)}._outline_162n4_53{border:1px solid var(--plume-border-strong)}._filled_162n4_62{background-color:var(--plume-surface-muted);border-block-end:1px solid var(--plume-border-strong);border-bottom-left-radius:0;border-bottom-right-radius:0}._underline_162n4_70{border-radius:0;border-block-end:1px solid var(--plume-border-strong)}:is(._outline_162n4_53,._filled_162n4_62,._underline_162n4_70):enabled:hover{border-color:color-mix(in hsl,var(--plume-border-strong),black 10%)}:is(._outline_162n4_53,._filled_162n4_62,._underline_162n4_70)._invalid_162n4_80,:is(._outline_162n4_53,._filled_162n4_62,._underline_162n4_70)._invalid_162n4_80:enabled:hover{border-color:var(--input-color)}._filled_162n4_62:enabled:hover{background-color:color-mix(in hsl,var(--plume-surface-muted),black 2%)}:not(._inputGroup_162n4_89)>._outline_162n4_53:enabled:focus,._inputGroup_162n4_89:has(._outline_162n4_53:enabled):focus-within{border-color:var(--input-color);outline:2px solid var(--input-color);outline-offset:2px}:is(._filled_162n4_62,._underline_162n4_70):enabled:focus{border-block-end-color:var(--input-color);border-block-end-width:2px}._disabled_162n4_101{opacity:.5;cursor:not-allowed}._inputGroup_162n4_89{position:relative;display:flex;border-radius:var(--plume-radius-4);min-width:min(18rem,100%)}._inputGroup_162n4_89>._input_162n4_16{flex:1 1 auto;min-width:0}._inputGroup_162n4_89>._addOn_162n4_120{flex-shrink:0;white-space:nowrap}._inputGroup_162n4_89:has(._outline_162n4_53,._filled_162n4_62)>._addOn_162n4_120{background-color:var(--plume-surface-muted)}._inputGroup_162n4_89:has(._outline_162n4_53)>._addOn_162n4_120{border:1px solid var(--plume-border-strong)}._inputGroup_162n4_89:has(._filled_162n4_62)>._addOn_162n4_120{border-block-end:1px solid var(--plume-border-strong)}._inputGroup_162n4_89:has(._outline_162n4_53,._filled_162n4_62)>._addOn_162n4_120:first-child{border-top-left-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._outline_162n4_53)>._addOn_162n4_120:first-child{border-bottom-left-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._outline_162n4_53,._filled_162n4_62)>._addOn_162n4_120:first-child+._input_162n4_16{border-top-left-radius:0;border-top-right-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._outline_162n4_53)>._addOn_162n4_120:first-child+._input_162n4_16{border-bottom-left-radius:0;border-bottom-right-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._addOn_162n4_120)>._input_162n4_16:is(._outline_162n4_53,._filled_162n4_62){border-top-right-radius:0}._inputGroup_162n4_89:has(._addOn_162n4_120)>._input_162n4_16:is(._outline_162n4_53){border-bottom-right-radius:0}._inputGroup_162n4_89:has(._outline_162n4_53,._filled_162n4_62)>._addOn_162n4_120:last-child{border-top-right-radius:var(--plume-radius-4);border-inline-start:0}._inputGroup_162n4_89:has(._outline_162n4_53)>._addOn_162n4_120:last-child{border-bottom-right-radius:var(--plume-radius-4)}._inputGroup_162n4_89:has(._underline_162n4_70)>._addOn_162n4_120{border-block-end:1px solid var(--plume-border-strong)}._inputGroup_162n4_89:has(._element_162n4_176:first-child)>._input_162n4_16{padding-inline-start:2.5rem}._inputGroup_162n4_89:has(._element_162n4_176:last-child)>._input_162n4_16{padding-inline-end:2.5rem}._element_162n4_176,._addOn_162n4_120{display:flex;align-items:center;justify-content:center}._element_162n4_176:first-child{left:0}._element_162n4_176:last-child{right:0}._element_162n4_176{position:absolute;top:0;height:2.5rem;width:2.5rem;z-index:2}._addOn_162n4_120{padding:0 .75rem}._field_wdljj_3{color:var(--plume-foreground);display:flex;flex-direction:column;gap:var(--plume-space-1)}._horizontal_wdljj_14{align-items:center;column-gap:var(--plume-space-4);display:grid;grid-template-columns:var(--field-label-width, 8rem) minmax(0,1fr)}._horizontal_wdljj_14>:not(._label_wdljj_22){grid-column:2}._label_wdljj_22{font-size:var(--plume-font-size-sm);font-weight:var(--plume-font-weight-medium);line-height:var(--plume-line-height-snug)}._requiredIndicator_wdljj_32{color:var(--plume-color-error-text);margin-inline-start:var(--plume-space-1)}._optionalText_wdljj_37{color:var(--plume-muted);font-weight:var(--plume-font-weight-normal);margin-inline-start:var(--plume-space-1)}._helperText_wdljj_43,._errorText_wdljj_44{font-size:var(--plume-font-size-sm);line-height:var(--plume-line-height-snug);margin:0}._helperText_wdljj_43{color:var(--plume-muted)}._errorText_wdljj_44{color:var(--plume-color-error-text)}._disabled_wdljj_58 ._label_wdljj_22{opacity:.5}._icon_mz2on_1{align-items:center;color:var(--icon-color, currentColor);display:inline-flex;flex:none;height:var(--icon-size);justify-content:center;position:relative;vertical-align:middle;width:var(--icon-size)}._glyph_mz2on_13{display:inline-flex;height:100%;width:100%}._glyph_mz2on_13>svg{display:block;height:100%;width:100%}._label_mz2on_25{block-size:1px;border:0;clip-path:inset(50%);inline-size:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap}._sm_mz2on_37{--icon-size: var(--plume-space-4)}._md_mz2on_41{--icon-size: var(--plume-space-5)}._lg_mz2on_45{--icon-size: var(--plume-space-6)}._list_1ts57_1{box-sizing:border-box;color:var(--plume-foreground);font-family:var(--plume-font-family);line-height:var(--plume-line-height-normal);list-style:none;margin:0;padding:0}._sm_1ts57_11{--list-padding-x: var(--plume-space-2);--list-padding-y: var(--plume-space-1);font-size:var(--plume-font-size-xs)}._md_1ts57_17{--list-padding-x: var(--plume-space-3);--list-padding-y: var(--plume-space-2);font-size:var(--plume-font-size-sm)}._lg_1ts57_23{--list-padding-x: var(--plume-space-4);--list-padding-y: var(--plume-space-3);font-size:var(--plume-font-size-base)}._plain_1ts57_29{background-color:transparent}._bordered_1ts57_33{background-color:var(--plume-surface);border:1px solid var(--plume-border);border-radius:var(--plume-radius-4);overflow:hidden}._filled_1ts57_40{background-color:var(--plume-surface-muted);border-radius:var(--plume-radius-4);overflow:hidden}._bullet_1ts57_46{list-style:disc inside}._number_1ts57_50{list-style:decimal inside}._list_1ts57_1 ._item_1ts57_54{align-items:center;display:flex;gap:var(--plume-space-3);padding:var(--list-padding-y) var(--list-padding-x)}._bullet_1ts57_46 ._item_1ts57_54,._number_1ts57_50 ._item_1ts57_54{display:list-item}._list_1ts57_1 ._item_1ts57_54:has(>._button_1ts57_66){gap:0;padding:0}._list_1ts57_1 ._item_1ts57_54:has(>._button_1ts57_66)>:not(._button_1ts57_66){margin-inline-end:var(--list-padding-x)}._divided_1ts57_75>li:not(._divider_1ts57_75)+li:not(._divider_1ts57_75){border-block-start:1px solid var(--plume-border)}._list_1ts57_1 ._button_1ts57_66{align-items:center;background-color:transparent;border:0;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;flex:1 1 auto;font:inherit;gap:var(--plume-space-3);min-width:0;padding:var(--list-padding-y) var(--list-padding-x);text-align:start;text-decoration:none;transition:background-color .15s;width:100%}._list_1ts57_1 ._button_1ts57_66:hover{background-color:color-mix(in srgb,currentColor 8%,transparent)}._list_1ts57_1 ._button_1ts57_66:focus-visible{outline:2px solid var(--list-text);outline-offset:-2px}._list_1ts57_1 ._selected_1ts57_107{background-color:var(--list-tint);color:var(--list-tint-text)}._list_1ts57_1 ._selected_1ts57_107 ._secondary_1ts57_112{color:inherit}._list_1ts57_1 ._selected_1ts57_107:hover{background-color:var(--list-tint-strong)}._list_1ts57_1 ._button_1ts57_66:is(:disabled,[aria-disabled=true]){cursor:default;opacity:.5;pointer-events:none}._list_1ts57_1 ._icon_1ts57_126{align-items:center;display:inline-flex;flex:none}._list_1ts57_1 ._text_1ts57_132{flex:1 1 auto;min-width:0}._list_1ts57_1 ._primary_1ts57_137,._list_1ts57_1 ._secondary_1ts57_112{display:block}._list_1ts57_1 ._secondary_1ts57_112{color:var(--plume-muted);font-size:.875em}._list_1ts57_1 ._subheader_1ts57_147{color:var(--plume-muted);font-size:.8em;font-weight:var(--plume-font-weight-semibold);letter-spacing:.04em;padding:var(--list-padding-y) var(--list-padding-x);text-transform:uppercase}._list_1ts57_1 ._divider_1ts57_75{border-block-start:1px solid var(--plume-border);height:0;margin-block:var(--plume-space-1)}@media(prefers-reduced-motion:reduce){._list_1ts57_1 ._button_1ts57_66{transition:none}}@media(forced-colors:active){._bordered_1ts57_33{border-color:CanvasText}._list_1ts57_1 ._selected_1ts57_107{background-color:Highlight;color:HighlightText;forced-color-adjust:none}}._backdrop_1k06m_15{align-items:center;background-color:#0000007f;box-sizing:border-box;display:flex;inset:0;justify-content:center;padding:var(--plume-space-4);position:fixed;z-index:var(--plume-z-6)}._content_1k06m_27{background-color:var(--plume-surface);border-radius:var(--plume-radius-6);box-shadow:var(--plume-shadow-xl);box-sizing:border-box;color:var(--plume-foreground);display:flex;flex-direction:column;font-family:var(--plume-font-family);font-size:var(--plume-font-size-sm);line-height:var(--plume-line-height-normal);max-height:100%;position:relative;width:100%}._sm_1k06m_43{max-width:24rem}._md_1k06m_47{max-width:32rem}._lg_1k06m_51{max-width:48rem}._header_1k06m_55{font-size:var(--plume-font-size-lg);font-weight:var(--plume-font-weight-semibold);line-height:var(--plume-line-height-snug);margin:0;padding:var(--plume-space-5) var(--plume-space-12) var(--plume-space-3) var(--plume-space-6)}._body_1k06m_63{flex:1 1 auto;overflow-y:auto;padding:var(--plume-space-3) var(--plume-space-6)}._body_1k06m_63:focus-visible{outline:2px solid var(--plume-color-primary-text);outline-offset:-2px}._footer_1k06m_74{align-items:center;display:flex;flex-wrap:wrap;gap:var(--plume-space-2);justify-content:flex-end;padding:var(--plume-space-4) var(--plume-space-6) var(--plume-space-5)}._close_1k06m_83{align-items:center;background-color:transparent;border:0;border-radius:var(--plume-radius-full);color:var(--plume-muted);cursor:pointer;display:inline-flex;font-size:var(--plume-font-size-xl);height:var(--plume-space-8);inset-block-start:var(--plume-space-3);inset-inline-end:var(--plume-space-3);justify-content:center;padding:0;position:absolute;transition:background-color .15s,color .15s;width:var(--plume-space-8)}._close_1k06m_83:hover{background-color:var(--plume-surface-muted);color:var(--plume-foreground)}._close_1k06m_83:focus-visible{outline:2px solid var(--plume-color-primary-text);outline-offset:2px}@media(prefers-reduced-motion:no-preference){._backdrop_1k06m_15{animation:_backdrop-in_1k06m_1 .15s ease-out}._content_1k06m_27{animation:_content-in_1k06m_1 .18s ease-out}}@keyframes _backdrop-in_1k06m_1{0%{opacity:0}}@keyframes _content-in_1k06m_1{0%{opacity:0;transform:translateY(.5rem) scale(.98)}}@media(forced-colors:active){._content_1k06m_27{border:1px solid CanvasText}}:where(dialog[data-plume-dialog]){background-color:transparent;border:0;color:inherit;height:auto;inset:auto;margin:0;max-height:none;max-width:none;padding:0;position:static;width:auto}._content_1426p_15{background-color:var(--plume-surface);border-radius:var(--plume-radius-4);box-sizing:border-box;color:var(--plume-foreground);font-family:var(--plume-font-family);font-size:var(--plume-font-size-sm);line-height:var(--plume-line-height-normal);max-width:calc(100vw - var(--plume-space-4));padding:var(--plume-space-4);width:max-content;z-index:var(--plume-z-7)}._sm_1426p_29{max-width:min(14rem,calc(100vw - var(--plume-space-4)))}._md_1426p_33{max-width:min(20rem,calc(100vw - var(--plume-space-4)))}._lg_1426p_37{max-width:min(28rem,calc(100vw - var(--plume-space-4)))}._elevated_1426p_41{box-shadow:var(--plume-shadow-lg)}._outline_1426p_45{border:1px solid var(--plume-border-strong)}._close_1426p_49{align-items:center;background-color:transparent;border:0;border-radius:var(--plume-radius-full);color:var(--plume-muted);cursor:pointer;display:inline-flex;font-size:var(--plume-font-size-lg);height:var(--plume-space-6);justify-content:center;padding:0;transition:background-color .15s,color .15s;width:var(--plume-space-6)}._close_1426p_49:hover{background-color:var(--plume-surface-muted);color:var(--plume-foreground)}._close_1426p_49:focus-visible{outline:2px solid var(--plume-color-primary-text);outline-offset:2px}@media(prefers-reduced-motion:no-preference){._content_1426p_15{animation:_content-in_1426p_1 .12s ease-out}}@keyframes _content-in_1426p_1{0%{opacity:0}}@media(forced-colors:active){._content_1426p_15{border:1px solid CanvasText}}._root_ge9em_1{align-items:center;color:var(--plume-foreground);cursor:pointer;display:inline-flex;font-family:var(--plume-font-family);gap:var(--plume-space-2);vertical-align:middle}._sm_ge9em_11{--radio-size: var(--plume-space-4);font-size:var(--plume-font-size-xs)}._md_ge9em_16{--radio-size: var(--plume-space-5);font-size:var(--plume-font-size-base)}._lg_ge9em_21{--radio-size: var(--plume-space-6);font-size:var(--plume-font-size-lg)}._radio_ge9em_26{appearance:none;background-color:var(--plume-surface);border:2px solid var(--plume-border-strong);border-radius:var(--plume-radius-full);box-sizing:border-box;cursor:inherit;flex:none;height:var(--radio-size);margin:0;position:relative;transition:background-color .15s,border-color .15s;width:var(--radio-size)}._radio_ge9em_26:before{border-radius:var(--plume-radius-full);content:"";inset:27.5%;position:absolute;transform:scale(0);transition:transform .12s}._solid_ge9em_52:before{background-color:var(--radio-contrast)}._solid_ge9em_52:checked{background-color:var(--radio-solid);border-color:var(--radio-solid)}._outline_ge9em_61:before{background-color:var(--radio-text)}._outline_ge9em_61:checked{border-color:var(--radio-text)}._radio_ge9em_26:checked:before{transform:scale(1)}._radio_ge9em_26:enabled:hover:not(:checked){border-color:var(--radio-text)}._radio_ge9em_26:focus-visible{outline:2px solid var(--radio-text);outline-offset:2px}._invalid_ge9em_82:not(:checked){border-color:var(--radio-text)}._label_ge9em_86{line-height:var(--plume-line-height-normal)}._disabled_ge9em_90{cursor:not-allowed;opacity:.5}@media(prefers-reduced-motion:reduce){._radio_ge9em_26,._radio_ge9em_26:before{transition:none}}@media(forced-colors:active){._radio_ge9em_26{border-color:CanvasText;forced-color-adjust:none}._solid_ge9em_52:checked{background-color:Highlight;border-color:Highlight}._solid_ge9em_52:before{background-color:HighlightText}._outline_ge9em_61:checked{border-color:Highlight}._outline_ge9em_61:before{background-color:Highlight}}._group_1yg36_1{display:flex;font-family:var(--plume-font-family)}._vertical_1yg36_6{flex-direction:column;gap:var(--plume-space-2)}._horizontal_1yg36_11{flex-direction:row;flex-wrap:wrap;gap:var(--plume-space-2) var(--plume-space-4)}._tabs_1ct2b_6{display:flex;flex-direction:column}._horizontal_1ct2b_11{flex-direction:column}._vertical_1ct2b_15{flex-direction:row}._left_1ct2b_19{justify-content:flex-start}._center_1ct2b_23{justify-content:center}._right_1ct2b_27{justify-content:flex-end}._sm_1ct2b_31{padding:var(--plume-space-1) var(--plume-space-2);font-size:small}._md_1ct2b_36{padding:var(--plume-space-2) var(--plume-space-3)}._lg_1ct2b_40{padding:var(--plume-space-3) var(--plume-space-4);font-size:large}._vertical_1ct2b_15 ._underline_1ct2b_45{border-inline-end:solid 1px var(--plume-border);border-block-end:none}._underline_1ct2b_45{gap:var(--plume-space-4);border-block-end:solid 1px var(--plume-border)}._vertical_1ct2b_15 ._tablist_1ct2b_55{flex-direction:column;align-items:stretch}._tablist_1ct2b_55{width:inherit;display:flex;flex-direction:row;align-items:center}._tab_1ct2b_6{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;display:inline-flex;justify-content:center;align-items:center;gap:var(--plume-space-2);outline:2px solid transparent;outline-offset:2px}:is(._rounded_1ct2b_82,._segment_1ct2b_82) ._tab_1ct2b_6{border-radius:var(--plume-radius-4)}._vertical_1ct2b_15 ._underline_1ct2b_45 ._tab_1ct2b_6{border-inline-end:2px solid transparent;border-block-end:none;transition:border-inline-end .2s}._underline_1ct2b_45 ._tab_1ct2b_6{border-block-end:2px solid transparent;transition:border-block-end .2s}._vertical_1ct2b_15 ._underline_1ct2b_45 ._tab_1ct2b_6._active_1ct2b_97{border-inline-end:2px solid var(--tabs-scheme);border-block-end:none}._underline_1ct2b_45 ._tab_1ct2b_6._active_1ct2b_97{border-block-end:2px solid var(--tabs-scheme);color:var(--tabs-scheme);transition:color .2s}._rounded_1ct2b_82 ._tab_1ct2b_6._active_1ct2b_97{background-color:var(--tabs-solid);color:var(--tabs-text-color);border-radius:var(--plume-radius-4);transition:color .2s}._vertical_1ct2b_15 ._enclosed_1ct2b_115{border-inline-end:1px solid var(--tabs-scheme);border-block-end:none}._enclosed_1ct2b_115{border-block-end:1px solid var(--tabs-scheme)}._vertical_1ct2b_15 ._enclosed_1ct2b_115 ._tab_1ct2b_6._active_1ct2b_97{border:1px solid var(--tabs-scheme);border-radius:var(--plume-radius-4);border-inline-end:none;border-end-end-radius:0;border-start-end-radius:0;margin-inline-end:-1px;transition:color .2s}._enclosed_1ct2b_115 ._tab_1ct2b_6._active_1ct2b_97{border:1px solid var(--tabs-scheme);border-radius:var(--plume-radius-4);background:var(--plume-surface);border-block-end:none;border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--tabs-scheme);margin-block-end:-1px;transition:color .2s}._segment_1ct2b_82{background-color:var(--tabs-solid);color:var(--tabs-text-color);gap:var(--plume-space-1);padding:var(--plume-space-3) var(--plume-space-4);transition:background-color .2s;border-radius:var(--plume-radius-4)}._segment_1ct2b_82 ._tab_1ct2b_6._active_1ct2b_97{background-color:var(--tabs-solid-active);color:var(--tabs-text-color);border-radius:var(--plume-radius-4);transition:color .2s}._tab_1ct2b_6:not(._active_1ct2b_97,:disabled):hover{color:color-mix(in hsl,var(--tabs-scheme),black 10%)}._tab_1ct2b_6:focus-visible{outline-color:var(--tabs-scheme)}._segment_1ct2b_82 ._tab_1ct2b_6:focus-visible{outline-color:var(--tabs-text-color)}._panel_1ct2b_174:focus-visible{outline:2px solid var(--tabs-scheme);outline-offset:2px}._vertical_1ct2b_15 ._panel_1ct2b_174{padding:var(--plume-space-2) var(--plume-space-4)}._panel_1ct2b_174{padding:var(--plume-space-4) var(--plume-space-2);border:none}:where(._base_1qiho_6){background:transparent;border:none;outline:2px solid transparent;outline-offset:2px}._textarea_1qiho_13{border-radius:var(--plume-radius-4);box-sizing:border-box;color:var(--plume-foreground);display:block;font-family:var(--plume-font-family);min-width:min(18rem,100%);padding:var(--plume-space-2) var(--plume-space-4);width:100%}._textarea_1qiho_13::placeholder{color:var(--plume-muted)}._sm_1qiho_28{font-size:var(--plume-font-size-xs);padding:var(--plume-space-1) var(--plume-space-2)}._md_1qiho_33{font-size:var(--plume-font-size-base)}._lg_1qiho_37{font-size:var(--plume-font-size-lg);padding:var(--plume-space-3) var(--plume-space-6)}._rounded_1qiho_42{border-radius:var(--plume-radius-4)}:is(._outline_1qiho_46)._pill_1qiho_46{border-radius:var(--plume-radius-6)}._outline_1qiho_46{border:1px solid var(--plume-border-strong)}._filled_1qiho_55{background-color:var(--plume-surface-muted);border-block-end:1px solid var(--plume-border-strong);border-bottom-left-radius:0;border-bottom-right-radius:0}._underline_1qiho_63{border-radius:0;border-block-end:1px solid var(--plume-border-strong)}._none_1qiho_69{resize:none}._vertical_1qiho_73{resize:vertical}._horizontal_1qiho_77{resize:horizontal}._both_1qiho_81{resize:both}:is(._outline_1qiho_46,._filled_1qiho_55,._underline_1qiho_63):enabled:hover{border-color:color-mix(in hsl,var(--plume-border-strong),black 10%)}:is(._outline_1qiho_46,._filled_1qiho_55,._underline_1qiho_63)._invalid_1qiho_89,:is(._outline_1qiho_46,._filled_1qiho_55,._underline_1qiho_63)._invalid_1qiho_89:enabled:hover{border-color:var(--textarea-color)}._filled_1qiho_55:enabled:hover{background-color:color-mix(in hsl,var(--plume-surface-muted),black 2%)}._outline_1qiho_46:enabled:focus{border-color:var(--textarea-color);outline:2px solid var(--textarea-color);outline-offset:2px}:is(._filled_1qiho_55,._underline_1qiho_63):enabled:focus{border-block-end-color:var(--textarea-color);border-block-end-width:2px}._disabled_1qiho_109{cursor:not-allowed;opacity:.5}._region_1ild0_1{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--plume-space-2);max-width:100%;padding:var(--plume-space-4);pointer-events:none;position:fixed;z-index:var(--plume-z-10)}._region_1ild0_1>*{pointer-events:auto}._top-start_1ild0_17,._top_1ild0_17,._top-end_1ild0_19{flex-direction:column-reverse;inset-block-start:0}._center-start_1ild0_24,._center_1ild0_24,._center-end_1ild0_26{inset-block-start:50%;transform:translateY(-50%)}._bottom-start_1ild0_31,._bottom_1ild0_31,._bottom-end_1ild0_33{inset-block-end:0}._top-start_1ild0_17,._center-start_1ild0_24,._bottom-start_1ild0_31{align-items:flex-start;inset-inline-start:0}._top-end_1ild0_19,._center-end_1ild0_26,._bottom-end_1ild0_33{align-items:flex-end;inset-inline-end:0}._top_1ild0_17,._center_1ild0_24,._bottom_1ild0_31{align-items:center;inset-inline-start:50%;transform:translate(-50%)}._center_1ild0_24{transform:translate(-50%,-50%)}._toast_1ild0_63{align-items:flex-start;border-radius:var(--plume-radius-4);box-shadow:var(--plume-shadow-lg);box-sizing:border-box;display:flex;font-family:var(--plume-font-family);font-size:var(--plume-font-size-sm);gap:var(--plume-space-3);line-height:var(--plume-line-height-normal);padding:var(--plume-space-3) var(--plume-space-4);width:min(22rem,calc(100vw - var(--plume-space-8)))}._solid_1ild0_77 ._toast_1ild0_63{background-color:var(--toast-solid);color:var(--toast-contrast)}._subtle_1ild0_82 ._toast_1ild0_63{background-color:var(--toast-tint);color:var(--toast-tint-text)}._outline_1ild0_87 ._toast_1ild0_63{background-color:var(--plume-surface);border:1px solid var(--plume-border-strong);border-inline-start:4px solid var(--toast-solid);color:var(--plume-foreground)}._icon_1ild0_94{display:inline-flex;flex:none;margin-block-start:.1em}._content_1ild0_100{flex:1 1 auto;min-width:0}._title_1ild0_105,._description_1ild0_106{display:block}._title_1ild0_105{font-weight:var(--plume-font-weight-semibold)}._action_1ild0_114{background-color:transparent;border:1px solid currentcolor;border-radius:var(--plume-radius-3);color:inherit;cursor:pointer;font:inherit;font-weight:var(--plume-font-weight-semibold);margin-block-start:var(--plume-space-2);padding:var(--plume-space-1) var(--plume-space-3)}._action_1ild0_114:hover,._dismiss_1ild0_127:hover{background-color:color-mix(in srgb,currentcolor 12%,transparent)}._dismiss_1ild0_127{align-items:center;background-color:transparent;border:0;border-radius:var(--plume-radius-full);color:inherit;cursor:pointer;display:inline-flex;flex:none;font-size:var(--plume-font-size-lg);height:var(--plume-space-6);justify-content:center;margin:calc(var(--plume-space-1) * -1);padding:0;width:var(--plume-space-6)}._action_1ild0_114:focus-visible,._dismiss_1ild0_127:focus-visible{outline:2px solid currentcolor;outline-offset:2px}@media(prefers-reduced-motion:no-preference){._toast_1ild0_63{animation:_toast-in_1ild0_1 .2s ease-out}}@keyframes _toast-in_1ild0_1{0%{opacity:0;transform:translateY(.5rem)}}@media(forced-colors:active){._toast_1ild0_63{border:1px solid CanvasText}}._root_1soij_1{align-items:center;color:var(--plume-foreground);cursor:pointer;display:inline-flex;font-family:var(--plume-font-family);gap:var(--plume-space-2);vertical-align:middle}._sm_1soij_11{--toggle-height: var(--plume-space-5);font-size:var(--plume-font-size-xs)}._md_1soij_16{--toggle-height: var(--plume-space-6);font-size:var(--plume-font-size-base)}._lg_1soij_21{--toggle-height: var(--plume-space-8);font-size:var(--plume-font-size-lg)}._toggle_1soij_26{--toggle-border: 0px;--toggle-gap: 3px;--toggle-thumb: calc(var(--toggle-height) - (var(--toggle-border) + var(--toggle-gap)) * 2);appearance:none;background-color:var(--plume-border-strong);border:0;border-radius:var(--plume-radius-full);box-sizing:border-box;cursor:inherit;flex:none;height:var(--toggle-height);margin:0;position:relative;transition:background-color .15s;width:calc(var(--toggle-height) * 1.8)}._toggle_1soij_26:before{background-color:var(--plume-surface);border-radius:var(--plume-radius-full);content:"";height:var(--toggle-thumb);inset-block-start:var(--toggle-gap);inset-inline-start:var(--toggle-gap);position:absolute;transition:inset-inline-start .15s,background-color .15s;width:var(--toggle-thumb)}._toggle_1soij_26:checked:before{inset-inline-start:calc(100% - var(--toggle-thumb) - var(--toggle-gap))}._solid_1soij_62:checked{background-color:var(--toggle-solid)}._solid_1soij_62:checked:before{background-color:var(--toggle-contrast)}._outline_1soij_70{--toggle-border: 2px;--toggle-gap: 2px;background-color:var(--plume-surface);border:var(--toggle-border) solid var(--plume-border-strong)}._outline_1soij_70:before{background-color:var(--plume-border-strong)}._outline_1soij_70:checked{background-color:var(--plume-surface);border-color:var(--toggle-text)}._outline_1soij_70:checked:before{background-color:var(--toggle-text)}._raised_1soij_90{--toggle-border: 0px;--toggle-gap: 0px;background-color:transparent}._raised_1soij_90:before{background-color:var(--plume-surface);box-shadow:var(--plume-shadow-md);z-index:1}._raised_1soij_90:after{background-color:var(--plume-border-strong);border-radius:var(--plume-radius-full);content:"";inset-block:calc(var(--toggle-height) * .2);inset-inline:calc(var(--toggle-height) * .25);position:absolute;transition:background-color .15s}._raised_1soij_90:checked:before{background-color:var(--toggle-solid)}._raised_1soij_90:checked:after{background-color:color-mix(in srgb,var(--toggle-solid) 45%,transparent)}._toggle_1soij_26:focus-visible{outline:2px solid var(--toggle-text);outline-offset:2px}._invalid_1soij_125:not(:checked){outline:2px solid var(--toggle-text);outline-offset:1px}._label_1soij_130{line-height:var(--plume-line-height-normal)}._disabled_1soij_134{cursor:not-allowed;opacity:.5}@media(prefers-reduced-motion:reduce){._toggle_1soij_26,._toggle_1soij_26:before,._toggle_1soij_26:after{transition:none}}@media(forced-colors:active){._toggle_1soij_26{--toggle-border: 2px;border:2px solid CanvasText;forced-color-adjust:none}._toggle_1soij_26:checked{background-color:Highlight;border-color:Highlight}._toggle_1soij_26:before{background-color:CanvasText}._toggle_1soij_26:checked:before{background-color:HighlightText}._outline_1soij_70:checked{background-color:Canvas}._outline_1soij_70:checked:before{background-color:Highlight}._raised_1soij_90{--toggle-border: 0px;border:0}._raised_1soij_90:before{background-color:Canvas;border:2px solid CanvasText;box-sizing:border-box}._raised_1soij_90:after{background-color:CanvasText}._raised_1soij_90:checked:before{background-color:Canvas;border-color:Highlight}._raised_1soij_90:checked:after{background-color:Highlight}}._tooltip_1c9fj_1{border-radius:var(--plume-radius-3);box-sizing:border-box;font-family:var(--plume-font-family);line-height:var(--plume-line-height-snug);max-width:min(18rem,calc(100vw - var(--plume-space-4)));padding:var(--plume-space-1) var(--plume-space-2);width:max-content;z-index:var(--plume-z-9)}._sm_1c9fj_12{font-size:var(--plume-font-size-xs)}._md_1c9fj_16{font-size:var(--plume-font-size-sm);padding:var(--plume-space-1) var(--plume-space-3)}._lg_1c9fj_21{font-size:var(--plume-font-size-base);padding:var(--plume-space-2) var(--plume-space-4)}._solid_1c9fj_26{background-color:var(--plume-foreground);color:var(--plume-background)}._outline_1c9fj_31{background-color:var(--plume-surface);border:1px solid var(--plume-border-strong);box-shadow:var(--plume-shadow-md);color:var(--plume-foreground)}@media(prefers-reduced-motion:no-preference){._tooltip_1c9fj_1{animation:_tooltip-in_1c9fj_1 .1s ease-out}}@keyframes _tooltip-in_1c9fj_1{0%{opacity:0}}@media(forced-colors:active){._tooltip_1c9fj_1{border:1px solid CanvasText}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plume-ui-react",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "A lightweight TypeScript React UI component library, themed with CSS variables.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",