@ceed/ads 0.0.170-0 → 0.0.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DataTable/DataTable.d.ts +74 -3
- package/dist/components/DialogFrame/DialogFrame.d.ts +2 -14
- package/dist/components/Modal/Modal.d.ts +3 -4
- package/dist/index.js +1 -1
- package/framer/index.js +25 -25
- package/package.json +2 -3
- package/dist/components/DataTable/type.d.ts +0 -175
|
@@ -1,6 +1,77 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import React, { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { Table } from "../Table";
|
|
3
|
+
export type ColumnDef<T extends Record<string, V>, V = unknown> = {
|
|
4
|
+
type?: "number" | "string" | "date";
|
|
5
|
+
field: keyof T;
|
|
6
|
+
headerName?: string;
|
|
7
|
+
width?: string;
|
|
8
|
+
minWidth?: string;
|
|
9
|
+
maxWidth?: string;
|
|
10
|
+
resizable?: boolean;
|
|
11
|
+
renderCell?: (params: {
|
|
12
|
+
row: T;
|
|
13
|
+
value?: V;
|
|
14
|
+
id: string;
|
|
15
|
+
}) => ReactNode;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type DataTableProps<T extends Record<string, unknown>> = {
|
|
19
|
+
rows: T[];
|
|
20
|
+
checkboxSelection?: boolean;
|
|
21
|
+
columns: ColumnDef<T>[];
|
|
22
|
+
/**
|
|
23
|
+
* 체크박스가 있는 경우, 체크박스를 클릭했을 때 선택된 row의 index를 지정한다.
|
|
24
|
+
*/
|
|
25
|
+
selectionModel?: string[];
|
|
26
|
+
onSelectionModelChange?: (newSelectionModel: string[],
|
|
27
|
+
/**
|
|
28
|
+
* Total Select를 클릭한 경우에만 값이 true/false로 들어온다.
|
|
29
|
+
* MUI에는 없는 인터페이스지만 Total Select 기능이 추가되었기 때문에 추가해야했다.
|
|
30
|
+
*/
|
|
31
|
+
isTotalSelected?: boolean) => void;
|
|
32
|
+
pagination?: boolean;
|
|
33
|
+
paginationMode?: "client" | "server";
|
|
34
|
+
paginationModel?: {
|
|
35
|
+
page: number;
|
|
36
|
+
pageSize: number;
|
|
37
|
+
};
|
|
38
|
+
onPaginationModelChange?: (model: {
|
|
39
|
+
page: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
}) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Rows의 총 갯수를 직접 지정 할 수 있다.
|
|
44
|
+
* 기본적으로는 rows.length를 사용하지만, 이 값을 지정하면 rows.length를 사용하지 않는다.
|
|
45
|
+
* server mode를 사용할 때 유용하다.
|
|
46
|
+
*/
|
|
47
|
+
rowCount?: number;
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
getId?: (row: T) => string;
|
|
50
|
+
/**
|
|
51
|
+
* 기본적으로 Uncontrolled로 작동하지만, Controlled로 작동하게 하고 싶을 때 사용한다.
|
|
52
|
+
* 이 값이 true이면, 현재 페이지 이외에도 존재하는 모든 데이터가 선택된것으로 간주하고 동작한다.
|
|
53
|
+
*/
|
|
54
|
+
isTotalSelected?: boolean;
|
|
55
|
+
slots?: {
|
|
56
|
+
checkbox?: React.ElementType;
|
|
57
|
+
toolbar?: React.ElementType;
|
|
58
|
+
footer?: React.ElementType;
|
|
59
|
+
loadingOverlay?: React.ElementType;
|
|
60
|
+
};
|
|
61
|
+
slotProps?: {
|
|
62
|
+
checkbox?: Partial<{
|
|
63
|
+
checked: boolean;
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}>;
|
|
66
|
+
toolbar?: Partial<{
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}>;
|
|
69
|
+
background?: Partial<{
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}>;
|
|
72
|
+
};
|
|
73
|
+
} & ComponentProps<typeof Table>;
|
|
74
|
+
declare function DataTable<T extends Record<string, unknown>>(props: DataTableProps<T>): React.JSX.Element;
|
|
4
75
|
declare namespace DataTable {
|
|
5
76
|
var displayName: string;
|
|
6
77
|
}
|
|
@@ -3,19 +3,7 @@ interface DialogFrameProps {
|
|
|
3
3
|
title: React.ReactNode;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
actions: React.ReactNode;
|
|
6
|
+
fullscreen?: boolean;
|
|
6
7
|
}
|
|
7
|
-
declare const DialogFrame: React.ForwardRefExoticComponent<
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalDialogPropsColorOverrides> | undefined;
|
|
10
|
-
invertedColors?: boolean | undefined;
|
|
11
|
-
maxWidth?: string | number | undefined;
|
|
12
|
-
minWidth?: string | number | undefined;
|
|
13
|
-
layout?: import("@mui/types").OverridableStringUnion<"center" | "fullscreen", import("@mui/joy").ModalDialogPropsLayoutOverrides> | undefined;
|
|
14
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
15
|
-
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").ModalDialogPropsSizeOverrides> | undefined;
|
|
16
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
17
|
-
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalDialogPropsVariantOverrides> | undefined;
|
|
18
|
-
} & import("@mui/joy").ModalDialogSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
-
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "invertedColors" | "orientation" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DialogFrame: React.ForwardRefExoticComponent<DialogFrameProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
9
|
export { DialogFrame };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { MotionProps } from "framer-motion";
|
|
3
2
|
declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
|
|
4
3
|
onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeClick") => void) | undefined;
|
|
5
4
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
@@ -7,7 +6,7 @@ declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mu
|
|
|
7
6
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
8
7
|
}, "children" | "container" | "sx" | "open" | "onClose" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop" | keyof import("@mui/joy").ModalSlotsAndSlotProps>>;
|
|
9
8
|
export { Modal };
|
|
10
|
-
declare const ModalDialog: import("@emotion/styled").StyledComponent<
|
|
9
|
+
declare const ModalDialog: import("@emotion/styled").StyledComponent<{
|
|
11
10
|
children?: React.ReactNode;
|
|
12
11
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalDialogPropsColorOverrides> | undefined;
|
|
13
12
|
invertedColors?: boolean | undefined;
|
|
@@ -20,7 +19,7 @@ declare const ModalDialog: import("@emotion/styled").StyledComponent<Omit<{
|
|
|
20
19
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalDialogPropsVariantOverrides> | undefined;
|
|
21
20
|
} & import("@mui/joy").ModalDialogSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
21
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
-
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "invertedColors" | "orientation" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps> &
|
|
22
|
+
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "invertedColors" | "orientation" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
24
23
|
export { ModalDialog };
|
|
25
24
|
declare const ModalClose: import("@emotion/styled").StyledComponent<Omit<{
|
|
26
25
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalClosePropsColorOverrides> | undefined;
|
|
@@ -29,7 +28,7 @@ declare const ModalClose: import("@emotion/styled").StyledComponent<Omit<{
|
|
|
29
28
|
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalClosePropsVariantOverrides> | undefined;
|
|
30
29
|
} & import("@mui/joy").ModalCloseSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
31
30
|
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
32
|
-
}, "color" | "variant" | "sx" | "size" | keyof import("@mui/joy").ModalCloseSlotsAndSlotProps> & MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
31
|
+
}, "color" | "variant" | "sx" | "size" | keyof import("@mui/joy").ModalCloseSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
33
32
|
export { ModalClose };
|
|
34
33
|
declare const ModalOverflow: import("framer-motion").CustomDomComponent<{
|
|
35
34
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useTheme as Kh,useColorScheme as jh,useThemeProps as Zh,alertClasses as Xh,boxClasses as Qh,buttonClasses as eC,checkboxClasses as oC,dividerClasses as tC,iconButtonClasses as rC,inputClasses as nC,menuClasses as aC,menuButtonClasses as iC,menuItemClasses as lC,optionClasses as sC,radioClasses as mC,radioGroupClasses as pC,selectClasses as dC,switchClasses as cC,tableClasses as uC,textareaClasses as gC,typographyClasses as fC,formControlClasses as hC,formLabelClasses as CC,formHelperTextClasses as bC,gridClasses as yC,stackClasses as xC,sheetClasses as vC,modalClasses as DC,modalCloseClasses as MC,modalDialogClasses as kC,modalOverflowClasses as PC,dialogTitleClasses as TC,dialogContentClasses as wC,dialogActionsClasses as AC,tooltipClasses as IC,tabsClasses as FC,tabListClasses as BC,tabPanelClasses as NC,accordionClasses as LC,accordionDetailsClasses as SC,accordionGroupClasses as EC,accordionSummaryClasses as HC,AutocompleteListbox as OC,AutocompleteOption as zC,autocompleteClasses as VC,autocompleteListboxClasses as YC,autocompleteOptionClasses as JC,Avatar as UC,avatarClasses as RC,AvatarGroup as $C,avatarGroupClasses as GC,AspectRatio as WC,aspectRatioClasses as qC,Badge as _C,badgeClasses as KC,breadcrumbsClasses as jC,cardClasses as ZC,cardActionsClasses as XC,cardContentClasses as QC,cardCoverClasses as eb,cardOverflowClasses as ob,chipClasses as tb,CircularProgress as rb,circularProgressClasses as nb,Drawer as ab,drawerClasses as ib,LinearProgress as lb,linearProgressClasses as sb,List as mb,listClasses as pb,ListDivider as db,listDividerClasses as cb,ListItem as ub,listItemClasses as gb,ListItemButton as fb,listItemButtonClasses as hb,ListItemContent as Cb,listItemContentClasses as bb,ListItemDecorator as yb,listItemDecoratorClasses as xb,ListSubheader as vb,listSubheaderClasses as Db,Link as Mb,linkClasses as kb,Slider as Pb,sliderClasses as Tb,Step as wb,stepClasses as Ab,StepButton as Ib,stepButtonClasses as Fb,StepIndicator as Bb,Stepper as Nb,stepperClasses as Lb,Skeleton as Sb,skeletonClasses as Eb}from"@mui/joy";import de from"react";import{AccordionGroup as kr,Accordion as Pr,AccordionSummary as Tr,AccordionDetails as wr}from"@mui/joy";import{motion as qe}from"framer-motion";var Ar=qe(Tr),_e=Ar;_e.displayName="AccordionSummary";var Ir=qe(wr),Ke=Ir;Ke.displayName="AccordionDetails";var Fr=qe(Pr);function je(e){let{summary:o,details:t,variant:n,color:i,...a}=e,r=n==="solid"?"solid":void 0;return de.createElement(Fr,{variant:r,color:i,...a},de.createElement(_e,{variant:r,color:i},o),de.createElement(Ke,{variant:r,color:i},t))}je.displayName="Accordion";var Br=qe(kr);function Mo(e){let{variant:o,color:t,items:n,...i}=e;return de.createElement(Br,{variant:o,color:t,...i},n.map((a,r)=>de.createElement(je,{key:r,summary:a.summary,details:a.details,index:r,variant:o,color:t})))}Mo.displayName="Accordions";import Ze from"react";import{Alert as Vr,styled as Yr}from"@mui/joy";import{motion as Jr}from"framer-motion";import Nr from"react";import{Typography as Lr}from"@mui/joy";import{motion as Sr}from"framer-motion";var Er=Sr(Lr),W=e=>Nr.createElement(Er,{...e});W.displayName="Typography";var U=W;import{Stack as Hr}from"@mui/joy";import{motion as Or}from"framer-motion";var zr=Or(Hr),ce=zr;ce.displayName="Stack";var Y=ce;var Ur=Yr(Jr(Vr))({alignItems:"flex-start",fontWeight:"unset"});function ko(e){let{title:o,content:t,actions:n,color:i="primary",...a}=e,r=e.invertedColors||e.variant==="solid";return Ze.createElement(Ur,{...a,color:i,endDecorator:n,invertedColors:r},Ze.createElement(Y,null,o&&Ze.createElement(U,{level:"title-sm",color:i},o),Ze.createElement(U,{level:"body-sm",color:i},t)))}ko.displayName="Alert";import A,{useCallback as ln,useEffect as sn,useMemo as be,useRef as mn,useState as pn}from"react";import{Autocomplete as dn,AutocompleteOption as cn,ListSubheader as un,AutocompleteListbox as gn,ListItemDecorator as ht,CircularProgress as fn,styled as Ct}from"@mui/joy";import hn from"@mui/icons-material/esm/Close.js";import{useVirtualizer as Cn}from"@tanstack/react-virtual";import{Popper as bn}from"@mui/base";import{FormControl as Rr,styled as $r}from"@mui/joy";import{motion as Gr}from"framer-motion";var Wr=$r(Gr(Rr))({width:"100%"}),ue=Wr;ue.displayName="FormControl";var F=ue;import{FormLabel as qr}from"@mui/joy";import{motion as _r}from"framer-motion";var Kr=_r(qr),ge=Kr;ge.displayName="FormLabel";var B=ge;import{FormHelperText as jr}from"@mui/joy";import{motion as Zr}from"framer-motion";var Xr=Zr(jr),fe=Xr;fe.displayName="FormHelperText";var w=fe;import{Chip as Qr}from"@mui/joy";import{motion as en}from"framer-motion";var on=en(Qr),he=on;he.displayName="Chip";var ft=he;import tn from"react";import{IconButton as rn}from"@mui/joy";import{motion as nn}from"framer-motion";var an=nn(rn),Ce=e=>tn.createElement(an,{...e});Ce.displayName="IconButton";var S=Ce;var yn=Ct(bn,{name:"Autocomplete",slot:"Popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),xn=A.forwardRef((e,o)=>{let{anchorEl:t,open:n,modifiers:i,children:a,ownerState:{loading:r,size:l="md"},...s}=e,g=mn(null),u=a[0].every(f=>f.hasOwnProperty("group")),c=r?[a[1]]:a[0].length===0?[a[2]]:u?a[0].flatMap(f=>[A.createElement(un,{key:f.key,component:"li"},f.group),...f.children]):a[0],y=Cn({count:c.length,estimateSize:()=>36,getScrollElement:()=>g.current,overscan:5}),m=y.getVirtualItems();return sn(()=>{n&&y.measure()},[n]),A.createElement(yn,{ref:o,anchorEl:t,open:n,modifiers:i},A.createElement(gn,{...s},A.createElement("div",{ref:g,style:{overflow:"auto"}},A.createElement("div",{style:{height:`${y.getTotalSize()}px`,position:"relative"}},m.map(({index:f,size:d,start:p,key:x})=>A.cloneElement(c[f],{key:x,style:{position:"absolute",top:0,left:0,width:"100%",fontSize:`var(--ceed-fontSize-${l})`,height:`${d}px`,transform:`translateY(${p}px)`,overflow:"visible"},children:A.createElement("div",{style:{textOverflow:"ellipsis",textWrap:"nowrap",overflow:"hidden",width:"100%"}},c[f].props.children)}))))))}),Xe={sm:"20px",md:"24px",lg:"28px"},vn=Ct(S,{name:"Autocomplete",slot:"tagDelete"})(({theme:e,size:o="md"})=>({width:Xe[o],height:Xe[o],minWidth:Xe[o],minHeight:Xe[o],borderRadius:"50%"}));function Qe(e){let{label:o,error:t,helperText:n,color:i,size:a,disabled:r,required:l,onChange:s,onChangeComplete:g,...u}=e,[c,y]=pn(e.value||e.defaultValue),m=be(()=>e.options.map(h=>typeof h!="object"?{value:h,label:h}:h),[e.options]),f=be(()=>{let h=new Map;return m.forEach(b=>{h.set(b.value,b)}),h},[e.options]),d=be(()=>{if(e.loading)return{value:"",label:"",startDecorator:A.createElement(fn,{size:"sm",color:"neutral",variant:"plain",thickness:3})};if(c==null)return null;let h=b=>typeof b!="object"?f.get(b)??b:f.get(b.value);return Array.isArray(c)?c.map(h):h(c)},[c,e.options,e.loading]),p=ln(h=>A.isValidElement(h)&&!e.loading?A.cloneElement(h,{size:a}):h,[a,e.loading]),x=be(()=>p(d?.startDecorator||e.startDecorator),[d,p]),k=be(()=>p(d?.endDecorator||e.endDecorator),[d,p]),T=A.createElement(dn,{...u,required:l,onChange:(h,b)=>{y(b);let P=b,M=Array.isArray(P)?P.map(L=>L.value):P?.value;s?.({...h,target:{...h.target,value:M}}),(Array.isArray(P)&&P.map(L=>f.get(L.value))||f.get(P?.value))&&g?.({...h,target:{...h.target,value:M}})},color:i,value:d,options:m,size:a,disabled:r,startDecorator:x,endDecorator:k,getOptionLabel:h=>`${h.value??""}`,renderTags:(h,b)=>h.map((P,M)=>{let{onClick:L,...oe}=b({index:M});return p(A.createElement(ft,{color:"primary",...oe},A.createElement(Y,{direction:"row",alignItems:"center",gap:2,py:.5},P.value,p(A.createElement(vn,{color:"primary",variant:"soft",onClick:L},A.createElement(hn,null))))))}),slots:{listbox:xn},renderOption:(h,b)=>A.createElement(cn,{...h},b.startDecorator&&A.createElement(ht,{sx:P=>({marginInlineEnd:`var(--Input-gap, ${P.spacing(1)})`})},p(b.startDecorator)),p(b.label),b.endDecorator&&A.createElement(ht,{sx:P=>({marginInlineStart:`var(--Input-gap, ${P.spacing(1)})`})},p(b.endDecorator))),renderGroup:h=>h});return o?A.createElement(F,{required:l,color:i,size:a,error:t,disabled:r},A.createElement(B,null,o),T,n&&A.createElement(w,null,n)):T}var bt=Qe;import{Box as Dn}from"@mui/joy";import{motion as Mn}from"framer-motion";var kn=Mn(Dn),ye=kn;ye.displayName="Box";var eo=ye;import q from"react";import{Breadcrumbs as vt,Link as Sn}from"@mui/joy";import Po from"react";import{Menu as Pn,MenuButton as Tn,MenuItem as wn}from"@mui/joy";import{motion as To}from"framer-motion";var An=To(Pn),xe=e=>Po.createElement(An,{...e});xe.displayName="Menu";var In=To(Tn),ve=e=>Po.createElement(In,{...e});ve.displayName="MenuButton";var Fn=To(wn),De=e=>Po.createElement(Fn,{...e});De.displayName="MenuItem";var yt=xe;import{Dropdown as Bn}from"@mui/joy";import{motion as Nn}from"framer-motion";var Ln=Nn(Bn),Me=Ln;Me.displayName="Dropdown";var xt=Me;function wo(e){let{crumbs:o,size:t,startCrumbCount:n=1,endCrumbCount:i=3,slots:{link:a,...r}={link:Sn},slotProps:{link:l,...s}={link:{color:"neutral"}},collapsed:g=!0,...u}=e,c=p=>p.type==="link"&&a?q.createElement(a,{to:p.linkHref,href:p.linkHref,...l},p.label):q.createElement(U,null,p.label);if(!g)return q.createElement(vt,{size:t,slots:r,slotProps:s,...u},o.map(p=>q.createElement(c,{...p})));let y=Math.max(1,i),m=o.slice(0,n).map(p=>q.createElement(c,{...p})),f=(n+y>o.length?o.slice(n):o.slice(-y)).map(p=>q.createElement(c,{...p})),d=o.slice(n,-y).map(p=>q.createElement(De,null,q.createElement(c,{...p})));return q.createElement(vt,{size:t,slots:r,slotProps:s,...u},m,d.length&&q.createElement(xt,null,q.createElement(ve,{size:t,variant:"plain"},"..."),q.createElement(yt,{size:t},d)),f)}wo.displayName="Breadcrumbs";import En,{forwardRef as Hn}from"react";import{Button as On}from"@mui/joy";import{motion as zn}from"framer-motion";var Vn=zn(On),ke=Hn((e,o)=>En.createElement(Vn,{ref:o,...e}));ke.displayName="Button";var I=ke;import D,{Fragment as me,forwardRef as $n,useMemo as It}from"react";import{styled as K}from"@mui/joy";import Gn from"@mui/icons-material/esm/ChevronLeft.js";import Wn from"@mui/icons-material/esm/ChevronRight.js";import{AnimatePresence as Ft,motion as qn}from"framer-motion";var Dt=e=>{let o=[],t=new Date(e.getFullYear(),e.getMonth(),1),n=new Date(e.getFullYear(),e.getMonth()+1,0),i=Math.ceil((t.getDay()+1)/7),a=Math.ceil((n.getDate()+t.getDay())/7),r=1;for(let l=1;l<=a;l++){let s=[];for(let g=1;g<=7;g++)l===i&&g<t.getDay()+1||r>n.getDate()?s.push(void 0):(s.push(r),r++);o.push(s)}return o},Mt=(e,o)=>e.toLocaleString(o,{year:"numeric"}),Ao=(e,o)=>e.toLocaleString(o,{year:"numeric",month:"long"}),kt=(e,o)=>new Date(0,e).toLocaleString(o,{month:"short"}),Pt=e=>{let o=new Date().getDay(),t=new Date;return t.setDate(t.getDate()-o),Array.from({length:7}).map(()=>{let n=t.toLocaleString(e,{weekday:"short"});return t.setDate(t.getDate()+1),n})},Tt=e=>{let o=new Date,t=new Date(e);return t.setHours(0,0,0,0),o.setHours(0,0,0,0),t.getTime()===o.getTime()},Io=(e,o)=>{let t=new Date(e),n=new Date(o);return t.setHours(0,0,0,0),n.setHours(0,0,0,0),t.getTime()===n.getTime()},Q=(e,o,t)=>{let n=new Date(t);n.setHours(0,0,0,0);let i=new Date(Math.min(e.getTime(),o.getTime())),a=new Date(Math.max(e.getTime(),o.getTime()));return n>=i&&n<=a},oo=(e,o)=>e.getFullYear()===o.getFullYear()&&e.getMonth()===o.getMonth();import{useCallback as Yn,useMemo as Jn,useState as to}from"react";import{useThemeProps as Un}from"@mui/joy";var Rn=(e,o)=>o.includes(e)?e:o[0],wt=e=>{let[o,t]=to(()=>Rn(e.view||"day",e.views||["day","month"])),[n,i]=to(e.defaultValue),[a,r]=to(()=>{let d=new Date;return d.setDate(1),d.setHours(0,0,0,0),e.value?.[0]||e.defaultValue?.[0]||d}),[[l,s],g]=to([0,0]),u=e.view??o,c=d=>{g([l+d,d])},y=Yn(d=>{r(d),u==="month"?a.getFullYear()!==d.getFullYear()&&c(d>a?1:-1):c(d>a?1:-1),e.onMonthChange?.(d)},[e.onMonthChange,a,u]),m=Un({props:{locale:"default",views:["day","month"],view:u,value:e.value??n,...e,onChange:e.value?e.onChange:d=>{i(d),e.onChange?.(d)},onMonthChange:y,onViewChange:()=>{let d=u==="month"?"day":"month";!(!e.views||e.views.includes(d))||e.view===d||(e.onViewChange?e.onViewChange(d):t(d))}},name:"Calendar"}),f=Jn(()=>({...m,viewMonth:a,direction:s}),[m,a,s]);return[m,f]};import{useCallback as se,useState as At}from"react";var ro=e=>{let[o,t]=At(null),[n,i]=At(null);return{calendarTitle:e.view==="month"?Mt(e.viewMonth,e.locale||"default"):Ao(e.viewMonth,e.locale||"default"),onPrev:se(()=>{if(e.view==="day"){let a=new Date(e.viewMonth||new Date);a.setMonth(a.getMonth()-1),e.onMonthChange?.(a)}else if(e.view==="month"){let a=new Date(e.viewMonth||new Date);a.setFullYear(a.getFullYear()-1),e.onMonthChange?.(a)}},[e.onMonthChange,e.viewMonth,e.view]),onNext:se(()=>{if(e.view==="day"){let a=new Date(e.viewMonth||new Date);a.setMonth(a.getMonth()+1),e.onMonthChange?.(a)}else if(e.view==="month"){let a=new Date(e.viewMonth||new Date);a.setFullYear(a.getFullYear()+1),e.onMonthChange?.(a)}},[e.onMonthChange,e.viewMonth,e.view]),getDayCellProps:se(a=>{let r=new Date(e.viewMonth||new Date);r.setHours(0,0,0,0),r.setDate(a);let l=e.rangeSelection&&e.value&&e.value[0]&&(o&&Q(e.value[0],o,r)||e.value[1]&&Q(e.value[0],e.value[1],r));return{"aria-label":r.toLocaleDateString(),"aria-current":l?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,o]),getMonthCellProps:se(a=>{let r=new Date(e.viewMonth||new Date);r.setDate(1),r.setHours(0,0,0,0),r.setMonth(a);let s=!e.views?.find(g=>g==="day")&&e.rangeSelection&&e.value&&e.value[0]&&(n&&Q(e.value[0],n,r)||e.value[1]&&Q(e.value[0],e.value[1],r));return{"aria-label":r.toLocaleDateString(),"aria-current":s?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,n]),getPickerDayProps:se(a=>{let r=new Date(e.viewMonth||new Date);r.setHours(0,0,0,0),r.setDate(a);let l=!!e.value&&(Io(r,e.value[0])||e.value[1]&&Io(r,e.value[1])),s=e.rangeSelection&&e.value&&e.value[0]&&(o&&Q(e.value[0],o,r)||e.value[1]&&Q(e.value[0],e.value[1],r)),g=()=>{e.rangeSelection?e.value?e.value[0]&&!e.value[1]?e.onChange?.([new Date(Math.min(e.value[0].getTime(),r.getTime())),new Date(Math.max(e.value[0].getTime(),r.getTime()))]):e.onChange?.([r,void 0]):e.onChange?.([r,void 0]):e.onChange?.([r,void 0]),t(null)};return{isToday:Tt(r),isSelected:l,onClick:g,onMouseEnter:e.rangeSelection&&e.value?.[0]&&!e.value?.[1]?()=>t(r):void 0,disabled:e.minDate&&r<e.minDate||e.maxDate&&r>e.maxDate||e.disableFuture&&r>new Date||e.disablePast&&r<(()=>{let u=new Date;return u.setHours(0,0,0,0),u})(),tabIndex:-1,"aria-label":r.toLocaleDateString(),"aria-selected":l?"true":void 0,"aria-current":s?"date":void 0}},[e.onChange,e.value,e.viewMonth,e.rangeSelection,e.minDate,e.maxDate,e.disableFuture,e.disablePast,o]),getPickerMonthProps:se(a=>{let r=new Date(e.viewMonth||new Date);r.setDate(1),r.setHours(0,0,0,0),r.setMonth(a);let l=!e.views?.find(y=>y==="day"),s=l&&e.rangeSelection,g=!!e.value&&(oo(r,e.value[0])||e.value[1]&&oo(r,e.value[1])),u=s&&e.value&&e.value[0]&&(n&&Q(e.value[0],n,r)||e.value[1]&&Q(e.value[0],e.value[1],r)),c=()=>{s?e.value?e.value[0]&&!e.value[1]?e.onChange?.([new Date(Math.min(e.value[0].getTime(),r.getTime())),new Date(Math.max(e.value[0].getTime(),r.getTime()))]):e.onChange?.([r,void 0]):e.onChange?.([r,void 0]):l?e.onChange?.([r,void 0]):(e.onViewChange?.("day"),e.onMonthChange?.(r)),i(null)};return{isSelected:g,onMouseEnter:s&&e.value?.[0]&&!e.value?.[1]?()=>i(r):void 0,disabled:e.minDate&&(()=>{let y=new Date(r);return y.setMonth(y.getMonth()+1),y.setDate(0),y<e.minDate})()||e.maxDate&&(()=>{let y=new Date(r);return y.setDate(0),y>e.maxDate})()||e.disableFuture&&r>new Date||e.disablePast&&r<new Date&&!oo(r,new Date),onClick:c,tabIndex:-1,"aria-label":Ao(r,e.locale||"default"),"aria-selected":g?"true":void 0,"aria-current":u?"date":void 0}},[e.onMonthChange,e.onViewChange,e.onChange,e.viewMonth,e.locale,e.value,e.minDate,e.maxDate,e.disableFuture,e.disablePast,n])}};var _n=K("div",{name:"Calendar",slot:"root"})({maxWidth:"264px"}),Kn=K("div",{name:"Calendar",slot:"calendarHeader"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(2)})),Bt=K("div",{name:"Calendar",slot:"viewContainer",shouldForwardProp:e=>e!=="calendarType"})(({theme:e,calendarType:o})=>({paddingLeft:e.spacing(2),paddingRight:e.spacing(2),position:"relative",overflow:"hidden",minHeight:o==="datePicker"?"250px":"unset"})),Nt=K(qn.table,{name:"Calendar",slot:"viewTable"})(({theme:e})=>({borderSpacing:0,"& td, & th":{padding:0},"& th":{paddingTop:e.spacing(2),paddingBottom:e.spacing(2)}})),jn=K("thead",{name:"Calendar",slot:"weekHeaderContainer"})({}),Zn=K("tbody",{name:"Calendar",slot:"dayPickerContainer"})({}),Xn=K(I,{name:"Calendar",slot:"switchViewButton"})(({ownerState:e})=>[e.view==="month"&&{pointerEvents:"none"}]),Qn=K("td",{name:"Calendar",slot:"dayCell"})(({theme:e})=>({"&[aria-current=date]":{position:"relative","& button[aria-current=date]:not([aria-selected=true]):not(:hover):not(:active)":{backgroundColor:`rgb(${e.palette.primary.lightChannel})`},'& + td[aria-hidden] + td[aria-current="date"]::before':{content:'""',position:"absolute",top:0,left:"-10px",bottom:0,width:"16px",backgroundColor:`rgb(${e.palette.primary.lightChannel})`,zIndex:-1}}})),ea=K("td",{name:"Calendar",slot:"monthCell"})(({theme:e})=>({"&[aria-current=date]":{position:"relative","& button[aria-current=date]:not([aria-selected=true]):not(:hover):not(:active)":{backgroundColor:`rgb(${e.palette.primary.lightChannel})`},'& + td[aria-hidden] + td[aria-current="date"]::before':{content:'""',position:"absolute",top:0,left:"-10px",bottom:0,width:"16px",backgroundColor:`rgb(${e.palette.primary.lightChannel})`,zIndex:-1}}})),oa=K(I,{name:"Calendar",slot:"month",shouldForwardProp:e=>e!=="isSelected"})(({theme:e,isSelected:o,disabled:t})=>[{width:"59px",textAlign:"center","&:hover":{color:e.palette.primary.softColor,backgroundColor:e.palette.primary.softHoverBg},"&:active":{color:e.palette.primary.softColor,backgroundColor:e.palette.primary.softActiveBg}},o&&{backgroundColor:e.palette.primary.solidBg,color:e.palette.primary.solidColor,"&:hover":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidHoverBg},"&:active":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidActiveBg}},t&&{color:e.palette.neutral.solidDisabledColor,backgroundColor:e.palette.neutral.solidDisabledBg}]),ta=K(I,{name:"Calendar",slot:"day",shouldForwardProp:e=>!["isToday","isSelected"].includes(e)})(({theme:e,isToday:o,isSelected:t,disabled:n})=>[{width:"32px",height:"32px",textAlign:"center","&:hover":{color:e.palette.primary.softColor,backgroundColor:e.palette.primary.softHoverBg},"&:active":{color:e.palette.primary.softColor,backgroundColor:e.palette.primary.softActiveBg}},o&&!t&&{"&:not([aria-current=date]):not(:hover)":{border:`1px solid ${e.palette.neutral.outlinedBorder}`}},t&&{backgroundColor:e.palette.primary.solidBg,color:e.palette.primary.solidColor,"&:hover":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidHoverBg},"&:active":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidActiveBg}},n&&{color:e.palette.neutral.solidDisabledColor,backgroundColor:e.palette.neutral.solidDisabledBg}]),Lt={enter:e=>({x:e>0?300:-300,opacity:0}),center:{position:"relative",zIndex:1,x:0,opacity:1},exit:e=>({position:"absolute",zIndex:0,x:e<0?300:-300,opacity:0})},no=1e4,St=(e,o)=>Math.abs(e)*o,ra=e=>{let{ownerState:o}=e,{getPickerDayProps:t,getDayCellProps:n}=ro(o),i=It(()=>Dt(o.viewMonth),[o.viewMonth]),a=It(()=>Pt(o.locale||"default"),[o.locale]);return D.createElement(Bt,{calendarType:"datePicker"},D.createElement(Ft,{initial:!1,custom:o.direction},D.createElement(Nt,{key:`${o.viewMonth.toString()}_${o.direction}`,custom:o.direction,variants:Lt,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:(r,{offset:l,velocity:s})=>{let g=St(l.x,s.x);if(g<-no){let u=new Date(o.viewMonth||new Date);u.setMonth(u.getMonth()+1),o.onMonthChange?.(u)}else if(g>no){let u=new Date(o.viewMonth||new Date);u.setMonth(u.getMonth()-1),o.onMonthChange?.(u)}}},D.createElement(jn,null,D.createElement("tr",null,a.map((r,l)=>D.createElement(me,{key:`${o.viewMonth}_${r}_${l}`},D.createElement("th",null,D.createElement(U,{level:"body-xs",textAlign:"center"},r)),l<6&&D.createElement("th",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"}))))),D.createElement(Zn,null,i.map((r,l)=>D.createElement(me,{key:`${o.viewMonth}_${l}`},D.createElement("tr",null,r.map((s,g)=>s?D.createElement(me,{key:g},D.createElement(Qn,{...n(s)},D.createElement(ta,{size:"sm",variant:"plain",color:"neutral",...t(s)},s)),g<6&&D.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})):D.createElement(me,{key:g},D.createElement("td",null),g<6&&D.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})))),l<i.length-1&&D.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},D.createElement("td",{colSpan:13,style:{height:4}}))))))))},na=e=>{let{ownerState:o}=e,{getPickerMonthProps:t,getMonthCellProps:n}=ro(o),i=Array.from({length:12},(r,l)=>l).reduce((r,l)=>(r[r.length-1].length===4&&r.push([]),r[r.length-1].push(l),r),[[]]),a=!o.views?.find(r=>r==="day");return D.createElement(Bt,{calendarType:a?"monthPicker":"datePicker"},D.createElement(Ft,{initial:!1,custom:o.direction},D.createElement(Nt,{key:`${o.viewMonth.getFullYear()}_${o.direction}`,custom:o.direction,variants:Lt,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:(r,{offset:l,velocity:s})=>{let g=St(l.x,s.x);if(g<-no){let u=new Date(o.viewMonth||new Date);u.setMonth(u.getMonth()+1),o.onMonthChange?.(u)}else if(g>no){let u=new Date(o.viewMonth||new Date);u.setMonth(u.getMonth()-1),o.onMonthChange?.(u)}}},D.createElement("tbody",null,i.map((r,l)=>D.createElement(me,{key:l},D.createElement("tr",null,r.map((s,g)=>D.createElement(me,{key:s},D.createElement(ea,{...n(s)},D.createElement(oa,{size:"sm",variant:"plain",color:"neutral",...t(s)},kt(s,o.locale))),g<3&&D.createElement("td",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"})))),l<i.length-1&&D.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},D.createElement("td",{colSpan:7,style:{height:4}}))))))))},Pe=$n((e,o)=>{let[t,n]=wt(e),{value:i,defaultValue:a,onChange:r,locale:l,onViewChange:s,onMonthChange:g,view:u,views:c,rangeSelection:y,minDate:m,maxDate:f,disableFuture:d,disablePast:p,...x}=t,{calendarTitle:k,onPrev:v,onNext:T}=ro(n);return D.createElement(_n,{ref:o,...x},D.createElement(Kn,null,D.createElement(S,{size:"sm",onClick:v},D.createElement(Gn,null)),D.createElement(Xn,{ownerState:n,variant:"plain",color:"neutral",onClick:s},k),D.createElement(S,{size:"sm",onClick:T},D.createElement(Wn,null))),u==="day"&&D.createElement(ra,{ownerState:n}),u==="month"&&D.createElement(na,{ownerState:n}))});Pe.displayName="Calendar";var te=Pe;import{Card as aa,CardContent as ia,CardCover as la,CardActions as sa,CardOverflow as ma}from"@mui/joy";import{motion as Te}from"framer-motion";var pa=Te(aa),we=pa;we.displayName="Card";var da=Te(ia),Fo=da;Fo.displayName="CardContent";var ca=Te(la),Bo=ca;Bo.displayName="CardCover";var ua=Te(sa),No=ua;No.displayName="CardActions";var ga=Te(ma),Lo=ga;Lo.displayName="CardOverflow";import fa from"react";import{Checkbox as ha}from"@mui/joy";import{motion as Ca}from"framer-motion";var ba=Ca(ha),Ae=e=>fa.createElement(ba,{...e});Ae.displayName="Checkbox";var Ie=Ae;import{styled as ya}from"@mui/joy";import xa,{forwardRef as va}from"react";var Da=ya("div",{name:"Container",slot:"root",shouldForwardProp:e=>e!=="maxWidth"})(({theme:e,maxWidth:o="lg"})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block",paddingLeft:e.spacing(4),paddingRight:e.spacing(4),...o==="sm"&&{[e.breakpoints.up("xs")]:{maxWidth:e.breakpoints.values.sm}},...o==="md"&&{[e.breakpoints.up("sm")]:{maxWidth:e.breakpoints.values.md}},...o==="lg"&&{[e.breakpoints.up("md")]:{maxWidth:e.breakpoints.values.lg}},...o==="xl"&&{[e.breakpoints.up("lg")]:{maxWidth:e.breakpoints.values.xl}}})),So=va(function(o,t){return xa.createElement(Da,{ref:t,...o})});So.displayName="Container";import re,{useCallback as Aa,useMemo as Ia,useState as Ht}from"react";import{IntlMessageFormat as Fa}from"intl-messageformat";import{NumericFormat as Ba}from"react-number-format";import Fe from"react";import{Input as Ma}from"@mui/joy";import{motion as ka}from"framer-motion";var Pa=ka(Ma),Be=Fe.forwardRef((e,o)=>{let{label:t,helperText:n,error:i,style:a,size:r,color:l,disabled:s,required:g,...u}=e,c=Fe.createElement(Pa,{required:g,color:l,size:r,disabled:s,slotProps:{input:{ref:o,...u.slotProps?.input},...u.slotProps},...u});return t?Fe.createElement(F,{required:g,color:l,size:r,error:i,disabled:s},Fe.createElement(B,null,t),c,n&&Fe.createElement(w,null,n)):c});Be.displayName="Input";var R=Be;import Ta from"intl-messageformat";var wa={AED:2,ALL:2,AMD:2,ANG:2,AOA:2,ARS:2,AUD:2,AWG:2,AZN:2,BAM:2,BBD:2,BDT:2,BGN:2,BHD:3,BMD:2,BND:2,BOB:2,BRL:2,BSD:2,BWP:2,BYN:2,BZD:2,CAD:2,CHF:2,CLP:2,CNH:2,CNY:2,COP:2,CRC:2,CUP:2,CVE:0,CZK:2,DJF:0,DKK:2,DOP:2,DZD:2,EGP:2,ETB:2,EUR:2,FJD:2,FKP:2,GBP:2,GEL:2,GHS:2,GIP:2,GMD:2,GNF:0,GTQ:2,GYD:2,HKD:2,HNL:2,HTG:2,HUF:2,IDR:0,ILS:2,INR:2,IQD:3,ISK:2,JMD:2,JOD:3,JPY:0,KES:2,KGS:2,KHR:2,KMF:0,KRW:0,KWD:3,KYD:2,KZT:2,LAK:2,LBP:2,LKR:2,LYD:3,MAD:2,MDL:2,MKD:2,MMK:2,MNT:2,MOP:2,MRU:2,MUR:2,MVR:2,MWK:2,MXN:2,MYR:2,MZN:2,NAD:2,NGN:2,NIO:2,NOK:2,NPR:2,NZD:2,OMR:3,PAB:2,PEN:2,PGK:2,PHP:2,PKR:2,PLN:2,PYG:0,QAR:2,RON:2,RSD:2,RUB:2,RWF:0,SAR:2,SBD:2,SCR:2,SEK:2,SGD:2,SHP:2,SLE:2,SOS:2,SRD:2,STN:2,SVC:2,SZL:2,THB:2,TND:3,TOP:2,TRY:2,TTD:2,TWD:2,TZS:2,UAH:2,UGX:0,USD:2,UYU:2,UZS:2,VEF:2,VND:0,VUV:0,WST:2,XAF:0,XCD:2,XOF:0,XPF:0,YER:2,ZAR:2,ZMW:2},Et=(e="USD")=>{let[o,t,n,...i]=new Ta(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split(""),a=wa[e];return{symbol:`${o} `,thousandSeparator:t,decimalSeparator:n,placeholder:n?`${o} 0${n}${Array.from(Array(a)).map(()=>0).join("")}`:`${o} 0`,fixedDecimalScale:!!n,decimalScale:a}};var Na=re.forwardRef(function(o,t){let{onChange:n,...i}=o;return re.createElement(Ba,{...i,onValueChange:({value:a})=>{n?.({target:{name:o.name,value:a}})},valueIsNumericString:!0,getInputRef:t})}),ao=re.forwardRef(function(o,t){let{currency:n="USD",max:i=1e5,name:a,onChange:r,label:l,error:s,helperText:g,required:u,disabled:c,useMinorUnit:y,...m}=o,{symbol:f,thousandSeparator:d,decimalSeparator:p,placeholder:x,fixedDecimalScale:k,decimalScale:v}=Et(n),[T,h]=Ht(o.value),[b,P]=Ht(!!i&&!!o.value&&o.value>i),M=Ia(()=>T&&y?T/Math.pow(10,v):T,[T,y]),L=Aa(Z=>{let ae=Number(y?Z.target.value?.replace(p,""):Z.target.value);h(ae),r?.({...Z,target:{name:a,value:ae}}),i&&ae>i?P(!0):P(!1)},[]),oe=re.createElement(R,{...m,size:"sm",ref:t,value:M,placeholder:x,onChange:L,disabled:c,required:u,slotProps:{input:{component:Na,decimalSeparator:p,thousandSeparator:d,prefix:f,fixedDecimalScale:k,decimalScale:v}},sx:{fontFamily:"monospace"}});return l?re.createElement(F,{size:"sm",disabled:c,required:u,error:s||b},re.createElement(B,null,l),oe,b?re.createElement(w,null,new Fa(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:i})):g&&re.createElement(w,null,g)):oe});var Ot=ao;import C,{useCallback as ie,useEffect as Ve,useMemo as $,useRef as qt,useState as po}from"react";import{styled as _t,LinearProgress as ci,Link as ui}from"@mui/joy";import gi from"@mui/icons-material/esm/ChevronLeft.js";import fi from"@mui/icons-material/esm/ChevronRight.js";import{Sheet as La}from"@mui/joy";import{motion as Sa}from"framer-motion";var Ea=Sa(La),Ne=Ea;Ne.displayName="Sheet";var _=Ne;import j from"react";import{Table as Ha}from"@mui/joy";var Le=e=>{let{children:o,...t}=e;return j.createElement(Ha,{...t},o)};Le.displayName="Table";function Eo(e){let{headCells:o,showCheckbox:t,onCheckboxChange:n,slots:{checkbox:i=Ie}={},slotProps:{checkbox:a={}}={}}=e;return j.createElement("thead",null,j.createElement("tr",null,t&&j.createElement("th",{style:{width:"40px",textAlign:"center"}},j.createElement(i,{onChange:n,...a})),o.map(r=>j.createElement("th",{key:r.label,style:{width:r.width,minWidth:r.minWidth,maxWidth:r.maxWidth,textAlign:r.numeric?"right":"left"}},r.label))))}Eo.displayName="TableHead";function Ho(e){let{rows:o,cellOrder:t,rowOptions:n,showCheckbox:i,onCheckboxChange:a,slots:{checkbox:r=Ie}={},slotProps:{checkbox:l={}}={}}=e;return j.createElement("tbody",null,o.map((s,g)=>j.createElement("tr",{key:g},i&&j.createElement("td",{style:{textAlign:"center"}},j.createElement(r,{onChange:u=>a?.(u,g),...l})),t.map(u=>j.createElement("td",{key:u,style:{textAlign:n?.[u]?.numeric?"right":"left"}},s[u])))))}Ho.displayName="TableBody";import E,{forwardRef as Ua,useCallback as zt,useEffect as Vt,useImperativeHandle as Ra,useRef as $a,useState as Yt}from"react";import{IMaskInput as Ga,IMask as Oo}from"react-imask";import Wa from"@mui/icons-material/esm/CalendarToday.js";import{styled as zo}from"@mui/joy";import{FocusTrap as qa,ClickAwayListener as _a,Popper as Ka}from"@mui/base";import{DialogActions as Oa,styled as za}from"@mui/joy";import{motion as Va}from"framer-motion";var Ya=Va(Oa),Ja=za(Ya)(({theme:e})=>({padding:e.spacing(2),gap:e.spacing(2),flexDirection:"row",justifyContent:"flex-end"})),Se=Ja;Se.displayName="DialogActions";var X=Se;var ja=zo(Ka,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Za=zo(_,{name:"DatePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),Xa=zo("div",{name:"DatePicker",slot:"container"})({width:"100%"}),Jt=e=>{let o=`${e.getDate()}`,t=`${e.getMonth()+1}`,n=e.getFullYear();return Number(o)<10&&(o="0"+o),Number(t)<10&&(t="0"+t),[n,t,o].join("/")},Qa=E.forwardRef(function(o,t){let{onChange:n,...i}=o;return E.createElement(Ga,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d",blocks:{d:{mask:Oo.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Oo.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Oo.MaskedRange,from:1900,to:9999}},format:Jt,parse:a=>{let r=a.split("/");return new Date(Number(r[0]),Number(r[1])-1,Number(r[2]))},autofix:"pad",overwrite:!0})}),io=Ua((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:l,maxDate:s,disableFuture:g,disablePast:u,required:c,...y}=e,m=$a(null),[f,d]=Yt(e.value||""),[p,x]=Yt(null),k=!!p;Vt(()=>{d(e.value||"")},[e.value]),Vt(()=>{p||m.current?.blur()},[p,m]),Ra(o,()=>m.current,[m.current]);let v=zt(b=>{d(b.target.value),t?.(b)},[]),T=zt(b=>{x(p?null:b.currentTarget),setTimeout(()=>{m.current?.focus()},0)},[p,x,m]),h=E.createElement(Xa,null,E.createElement(qa,{open:!0},E.createElement(E.Fragment,null,E.createElement(R,{...y,ref:m,size:"sm",value:f,onChange:v,placeholder:"YYYY/MM/DD",disabled:n,required:c,slotProps:{input:{component:Qa,ref:m}},sx:{fontFamily:"monospace"},endDecorator:E.createElement(S,{variant:"plain",onClick:T},E.createElement(Wa,null))}),k&&E.createElement(_a,{onClickAway:()=>x(null)},E.createElement(ja,{id:"date-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:b=>b.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},E.createElement(Za,{tabIndex:-1,role:"presentation"},E.createElement(te,{value:Number.isNaN(new Date(f).getTime())?void 0:[new Date(f),void 0],onChange:([b])=>{v({target:{name:e.name,value:Jt(b)}}),x(null)},minDate:l?new Date(l):void 0,maxDate:s?new Date(s):void 0,disableFuture:g,disablePast:u}),E.createElement(X,{sx:{p:1}},E.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{v({target:{name:e.name,value:""}}),x(null)}},"Clear"))))))));return i?E.createElement(F,{required:c,disabled:n,error:a,size:"sm"},E.createElement(B,null,i),h,r&&E.createElement(w,null,r)):h});var Ut=io;import lo from"react";import{Textarea as ei}from"@mui/joy";import{motion as oi}from"framer-motion";var ti=oi(ei),Ee=e=>{let{label:o,error:t,helperText:n,color:i,size:a,disabled:r,required:l,minRows:s=2,maxRows:g=4,...u}=e,c=lo.createElement(ti,{required:l,disabled:r,color:i,size:a,minRows:s,maxRows:g,...u});return o?lo.createElement(F,{required:l,disabled:r,color:i,size:a,error:t},lo.createElement(B,null,o),c,n&&lo.createElement(w,null,n)):c};Ee.displayName="Textarea";var Rt=Ee;import He,{useMemo as ri}from"react";import{Select as ni,Option as ai}from"@mui/joy";import{motion as ii}from"framer-motion";var li=ii(ai),so=li;so.displayName="Option";function Oe(e){let{label:o,helperText:t,error:n,size:i,color:a,disabled:r,required:l,onChange:s,...g}=e,u=ri(()=>e.options.map(m=>typeof m!="object"?{value:m,label:m}:m),[e.options]),y=He.createElement(ni,{...g,required:l,disabled:r,size:i,color:a,onChange:(m,f)=>{let d=m||{target:{}},p={...d,target:{name:d.target?.name||e.name,value:f||void 0}};s?.(p)}},u.map(m=>He.createElement(so,{key:m.value,value:m.value},m.label)));return o?He.createElement(F,{required:l,disabled:r,size:i,color:a,error:n},He.createElement(B,null,o),y,t&&He.createElement(w,null,t)):y}Oe.displayName="Select";var $t=Oe;import si from"react";import{Tooltip as mi}from"@mui/joy";import{motion as pi}from"framer-motion";var di=pi(mi),ze=e=>si.createElement(di,{...e});ze.displayName="Tooltip";var Gt=ze;var Kt=["number","date","currency"],Wt=_t("tr",{name:"DataTable",slot:"overlayWrapper"})({position:"sticky",top:"calc(var(--unstable_TableCell-height, 32px))",left:0,right:0,zIndex:1,"& > td":{height:0,padding:0,border:"none !important"}}),mo=e=>"Intl"in window?new Intl.NumberFormat().format(e):e;function hi(e){let{paginationModel:{page:o,pageSize:t},rowCount:n,onPageChange:i}=e,a=1,r=Math.ceil(n/t),l=[o-2,o-1].filter(c=>c>1),s=[o+1,o+2].filter(c=>c<=r-1),g=r>1&&o<r-3,u=r>1&&o>4;return C.createElement(Y,{direction:"row",spacing:1,sx:{pt:1,pb:1},justifyContent:"end",alignItems:"center"},C.createElement(Y,{direction:"row",spacing:.5,alignItems:"center"},C.createElement(S,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-1),disabled:o===a,"aria-label":"Previous page"},C.createElement(gi,null)),o!==a&&C.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(a)},a),u&&C.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-3)},"..."),l.map(c=>C.createElement(I,{key:c,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(c)},c)),C.createElement(I,{variant:"soft",size:"sm"},o),s.map(c=>C.createElement(I,{key:c,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(c)},c)),g&&C.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+3)},"..."),o!==r&&C.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(r)},r),C.createElement(S,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+1),disabled:o===r,"aria-label":"Next page"},C.createElement(fi,null))))}var Ci=e=>C.createElement(eo,{sx:{position:"absolute",top:0,right:0,bottom:0,width:"4px",cursor:"col-resize"},onMouseDown:o=>{let t=o.clientX,n=e.current?.getBoundingClientRect().width,i=r=>{n&&t&&(e.current.style.width=`${n+(r.clientX-t)}px`)},a=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",a)}}),bi=_t("span",{name:"DataTable",slot:"headCellAsterisk"})(({theme:e})=>({color:"var(--ceed-palette-danger-500)",marginLeft:e.spacing(.5)})),yi=e=>{let o=qt(null),t={width:e.width,minWidth:e.minWidth??"50px",maxWidth:e.maxWidth,textAlign:!e.editMode&&Kt.includes(e.type||"")?"end":"start",position:e.stickyHeader?void 0:"relative"},n=e.resizable??!0?Ci(o):null;return C.createElement("th",{ref:o,key:e.field,style:t},e.headerName??e.field,e.editMode&&e.required&&C.createElement(bi,null,"*"),n)},xi=e=>{let{field:o,type:t,renderCell:n,isCellEditable:i,row:a,rowId:r}=e,[l,s]=po(a[o]),[g,u]=po(!1),c=qt(null),y=$(()=>({row:a,value:l,id:r}),[a,o,r,l]),m=$(()=>!!(e.editMode&&(typeof i=="function"?i(y):i??!0)),[e.editMode,i,a]),f=$(()=>({...typeof e.componentProps=="function"?e.componentProps(y):e.componentProps||{},size:"sm"}),[l,e.componentProps,y]),d=$(()=>({...f,onChange:v=>{f.onChange?.(v),s(v.target.value),t&&["select"].includes(t)&&e.onCellEditStop?.({...y,originalRow:a,row:{...y.row,[o]:v.target.value},value:v.target.value})},onFocus:v=>{f.onFocus?.(v),e.onCellEditStart?.({...y,originalRow:a,row:{...y.row,value:l},value:l})},onBlur:v=>{f.onBlur?.(v),t&&["number","text","longText","currency","date"].includes(t)&&e.onCellEditStop?.({...y,originalRow:a,row:{...y.row,[o]:l},value:l})},...t==="autocomplete"&&{onChangeComplete:v=>{f.onChangeComplete?.(v),s(v.target.value),e.onCellEditStop?.({...y,originalRow:a,row:{...y.row,[o]:v.target.value},value:v.target.value})}}}),[l,f]),p=$(()=>({date:C.createElement(Ut,{value:l,...d}),currency:C.createElement(Ot,{value:l,...d}),number:C.createElement(R,{value:l,type:"number",...d}),text:C.createElement(R,{value:l,type:"text",...d}),longText:C.createElement(Rt,{value:l,...d}),autocomplete:C.createElement(bt,{value:l,options:d.options||[l],...d}),select:C.createElement($t,{value:l,options:d.options||[l],...d})})[t||"text"],[l,f]),x=$(()=>{if(n)return n(y);let v=l;return{link:C.createElement(e.component||ui,{children:v,...f})}[t||"text"]||v},[l,n,a]),k=$(()=>m&&p?p:x,[m,p,x]);return Ve(()=>{s(a[o])},[a]),Ve(()=>{c.current&&c.current.scrollWidth>c.current.offsetWidth?u(!0):u(!1)},[c,m]),C.createElement("td",{ref:c,key:o,style:{textAlign:t&&Kt.includes(t)?"end":"start",verticalAlign:m?"top":"middle",overflow:g?"auto":"hidden",textOverflow:"ellipsis"}},g?C.createElement(Gt,{title:l,placement:"bottom",style:{maxWidth:"100%"}},C.createElement("div",{style:{overflow:"hidden",textOverflow:"ellipsis"}},k)):k)},vi=e=>{let{columns:o,rowId:t,editMode:n}=e,[i,a]=po(e.row),r=ie(({row:l})=>{a(l)},[]);return C.createElement(C.Fragment,null,o.map((l,s)=>C.createElement(xi,{...l,key:`${t}_${l.field.toString()}_${s}`,row:i,rowId:t,editMode:n,onCellEditStop:g=>{l.onCellEditStop?.(g),r(g)}})))};function Di({rows:e,columns:o,rowCount:t,pagination:n,paginationMode:i,paginationModel:a,onPaginationModelChange:r,selectionModel:l=[],onSelectionModelChange:s,getId:g,isTotalSelected:u}){let[c,y]=po(a?.page||1),m=a?.pageSize||20,f=ie((h,b)=>g?.(h)??h?.id??`${(b||0)+(c-1)*m}`,[g??c,m]),d=$(()=>new Set(l),[l]),p=$(()=>!n||i==="server"?e:e.slice((c-1)*m,(c-1)*m+m),[e,c,m,i,n]),x=$(()=>p.length>0&&p.every((h,b)=>d.has(f(h,b))),[p,d,c,m,f]),k=t||e.length,v=$(()=>u??(k>0&&l.length===k),[u,l,k]),T=ie(h=>{y(h),r?.({page:h,pageSize:m})},[r]);return Ve(()=>{T(1)},[k]),Ve(()=>{let h=Math.max(1,Math.ceil(k/m));c>h&&T(h)},[c,k,m]),Ve(()=>{s?.([])},[c]),{rowCount:k,page:c,pageSize:m,onPaginationModelChange:T,getId:f,HeadCell:yi,BodyRow:vi,dataInPage:p,isAllSelected:x,isTotalSelected:v,isSelectedRow:ie(h=>d.has(h),[d]),onAllCheckboxChange:ie(()=>{s?.(x?[]:p.map(f))},[x,p,s]),onCheckboxChange:ie((h,b)=>{if(d.has(b)){let P=l.filter(M=>M!==b);s?.(P)}else{let P=[...l,b];s?.(P)}},[l,s]),columns:$(()=>o||Object.keys(e[0]||{}).map(h=>({field:h})),[e,o]),onTotalSelect:ie(()=>{s?.(v?[]:e.map(f),!v)},[v,e,s])}}function Vo(e){let{rows:o,checkboxSelection:t,editMode:n,selectionModel:i,onSelectionModelChange:a,rowCount:r,columns:l,onPaginationModelChange:s,pagination:g,paginationMode:u,paginationModel:c,loading:y,slots:{checkbox:m=Ie,toolbar:f,footer:d,loadingOverlay:p=()=>C.createElement(ci,{value:8,variant:"plain"})}={},slotProps:{checkbox:x={},toolbar:k,background:v={}}={},...T}=e,{columns:h,isAllSelected:b,isSelectedRow:P,onAllCheckboxChange:M,onCheckboxChange:L,getId:oe,rowCount:Z,page:ae,pageSize:V,onPaginationModelChange:J,dataInPage:G,isTotalSelected:ut,onTotalSelect:gt,HeadCell:vr,BodyRow:Dr}=Di(e),Mr=$(()=>({page:ae,pageSize:V}),[ae,V]);return C.createElement(eo,null,!!t||!!f&&C.createElement(Y,{direction:"row",sx:{pt:1,pb:1},justifyContent:"space-between",alignItems:"center"},!!t&&C.createElement(Y,{direction:"row",spacing:1},!b&&C.createElement(U,{level:"body-xs"},mo(i?.length||0)," items selected"),b&&!ut&&C.createElement(Y,{direction:"row",spacing:1,alignItems:"center"},C.createElement(U,{level:"body-xs"},"All ",mo(i?.length||0)," items on this page are selected."),C.createElement(I,{size:"sm",variant:"plain",onClick:gt},"Select all ",mo(Z??o.length)," ","items")),ut&&C.createElement(Y,{direction:"row",spacing:1,alignItems:"center"},C.createElement(U,{level:"body-xs"},"All ",mo(Z??o.length)," items are selected."),C.createElement(I,{size:"sm",variant:"plain",color:"danger",onClick:gt},"Cancel"))),f&&C.createElement(f,{...k||{}})),C.createElement(_,{variant:"outlined",sx:{overflow:"auto",width:"100%",boxShadow:"sm",borderRadius:"sm"},...v},C.createElement(Le,{...T},C.createElement("thead",null,C.createElement("tr",null,t&&C.createElement("th",{style:{width:"40px",textAlign:"center"}},C.createElement(m,{onChange:M,checked:b,indeterminate:(i||[]).length>0&&!b,...x})),h.map((pe,vo)=>C.createElement(vr,{key:`${pe.field.toString()}_${vo}`,stickyHeader:e.stickyHeader,editMode:n,...pe})))),C.createElement("tbody",null,C.createElement(Wt,null,!!y&&C.createElement("td",null,C.createElement(eo,{sx:{position:"absolute",top:0,left:0,right:0}},C.createElement(p,null)))),C.createElement(Wt,null),G.map((pe,vo)=>{let le=oe(pe,vo);return C.createElement("tr",{key:le,role:t?"checkbox":void 0,tabIndex:t?-1:void 0,onClick:t?Do=>L(Do,le):void 0,"aria-checked":t?P(le):void 0},t&&C.createElement("th",{scope:"row",style:{textAlign:"center"}},C.createElement(m,{onChange:Do=>L(Do,le),checked:P(le),...x})),C.createElement(Dr,{columns:h,row:pe,rowId:le,editMode:n}))})),d&&C.createElement(d,null))),V<Z&&g&&C.createElement(hi,{paginationModel:Mr,rowCount:Z,onPageChange:J}))}Vo.displayName="DataTable";import H,{forwardRef as Mi,useCallback as Yo,useEffect as jt,useImperativeHandle as ki,useMemo as Pi,useRef as Ti,useState as Zt}from"react";import{IMaskInput as wi,IMask as Jo}from"react-imask";import Ai from"@mui/icons-material/esm/CalendarToday.js";import{styled as Uo}from"@mui/joy";import{FocusTrap as Ii,ClickAwayListener as Fi,Popper as Bi}from"@mui/base";var Ni=Uo(Bi,{name:"DateRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Li=Uo(_,{name:"DateRangePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({zIndex:e.zIndex.tooltip,width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),Si=Uo("div",{name:"DateRangePicker",slot:"container"})({width:"100%"}),Xt=([e,o])=>{let t=n=>{let i=`${n.getDate()}`,a=`${n.getMonth()+1}`,r=n.getFullYear();return Number(i)<10&&(i="0"+i),Number(a)<10&&(a="0"+a),[r,a,i].join("/")};return[t(e),o?t(o):""].join(" - ")},Qt=e=>{let o=e.split(" - ")[0]||"",t=e.split(" - ")[1]||"",n=o.split("/"),i=t.split("/");return[new Date(Number(n[0]),Number(n[1])-1,Number(n[2])),new Date(Number(i[0]),Number(i[1])-1,Number(i[2]))]},Ei=H.forwardRef(function(o,t){let{onChange:n,...i}=o;return H.createElement(wi,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d - Y/`m/`d",blocks:{d:{mask:Jo.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Jo.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Jo.MaskedRange,from:1900,to:9999}},format:Xt,parse:Qt,autofix:"pad",overwrite:!0})}),Ro=Mi((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:l,maxDate:s,disableFuture:g,disablePast:u,required:c,...y}=e,m=Ti(null),[f,d]=Zt(e.value||""),[p,x]=Zt(null),k=!!p,v=Pi(()=>f?Qt(f):void 0,[f]);jt(()=>{d(e.value||"")},[e.value]),jt(()=>{p||m.current?.blur()},[p,m]),ki(o,()=>m.current,[m.current]);let T=Yo(M=>{d(M.target.value),t?.(M)},[t]),h=Yo(M=>{x(p?null:M.currentTarget),m.current?.focus()},[p,x,m]),b=Yo(([M,L])=>{!M||!L||(d(Xt([M,L])),x(null))},[d,x,m]),P=H.createElement(Si,null,H.createElement(Ii,{open:!0},H.createElement(H.Fragment,null,H.createElement(R,{...y,ref:o,size:"sm",value:f,onChange:T,disabled:n,required:c,placeholder:"YYYY/MM/DD - YYYY/MM/DD",slotProps:{input:{component:Ei,ref:m}},sx:{fontFamily:"monospace"},endDecorator:H.createElement(S,{variant:"plain",onClick:h},H.createElement(Ai,null))}),k&&H.createElement(Fi,{onClickAway:()=>x(null)},H.createElement(Ni,{id:"date-range-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:M=>M.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},H.createElement(Li,{tabIndex:-1,role:"presentation"},H.createElement(te,{rangeSelection:!0,defaultValue:v,onChange:b,minDate:l?new Date(l):void 0,maxDate:s?new Date(s):void 0,disableFuture:g,disablePast:u}),H.createElement(X,{sx:{p:1}},H.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{d(""),x(null)}},"Clear"))))))));return i?H.createElement(F,{required:c,disabled:n,error:a,size:"sm"},H.createElement(B,null,i),P,r&&H.createElement(w,null,r)):P});Ro.displayName="DateRangePicker";import{DialogContent as Hi,styled as Oi}from"@mui/joy";import{motion as zi}from"framer-motion";var Vi=zi(Hi),Yi=Oi(Vi)(({theme:e})=>({padding:e.spacing(0,6,5)})),Ye=Yi;Ye.displayName="DialogContent";var co=Ye;import{DialogTitle as Ji,styled as Ui}from"@mui/joy";import{motion as Ri}from"framer-motion";var $i=Ri(Ji),Gi=Ui($i)(({theme:e})=>({padding:e.spacing(4,6)})),Je=Gi;Je.displayName="DialogTitle";var uo=Je;import Re from"react";import go from"react";import{Modal as Wi,ModalDialog as qi,ModalClose as _i,ModalOverflow as Ki,styled as er}from"@mui/joy";import{motion as fo}from"framer-motion";var ji=fo(Wi),$o=ji;$o.displayName="Modal";var Zi=fo(qi),or=er(Zi)({padding:0}),Ue=or;Ue.displayName="ModalDialog";var Xi=er(fo(_i))(({theme:e})=>({top:e.spacing(3),right:e.spacing(6)})),ho=Xi;ho.displayName="ModalClose";var Qi=fo(Ki),Go=Qi;Go.displayName="ModalOverflow";function Wo(e){let{title:o,children:t,...n}=e;return go.createElement(or,{...n},go.createElement(ho,null),go.createElement(uo,null,o),go.createElement(co,null,t))}Wo.displayName="ModalFrame";import{styled as el}from"@mui/joy";var ol=el(Ue)(({theme:e})=>({padding:0})),qo=Re.forwardRef((e,o)=>{let{title:t,children:n,actions:i,...a}=e;return Re.createElement(ol,{ref:o,...a},Re.createElement(uo,null,t),Re.createElement(co,null,n),Re.createElement(X,null,i))});qo.displayName="DialogFrame";import tl from"react";import{Divider as rl}from"@mui/joy";import{motion as nl}from"framer-motion";var al=nl(rl),$e=e=>tl.createElement(al,{...e});$e.displayName="Divider";import il from"react";import{Drawer as ll}from"@mui/joy";import{motion as sl}from"framer-motion";var ml=sl(ll),_o=e=>{let{children:o,...t}=e;return il.createElement(ml,{...t,slotProps:{...t.slotProps,content:{...t.slotProps?.content,sx:{bgcolor:"transparent",p:{md:3,sm:0},boxShadow:"none"}}}},o)};_o.displayName="InsetDrawer";import N,{useCallback as Co,useEffect as pl,useMemo as tr,useRef as rr,useState as bo}from"react";import{styled as ne}from"@mui/joy";import dl from"@mui/icons-material/esm/CloudUploadRounded.js";import cl from"@mui/icons-material/esm/UploadFileRounded.js";import ul from"@mui/icons-material/esm/ClearRounded.js";import{combine as gl}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js";import{dropTargetForExternal as fl,monitorForExternal as hl}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js";import{containsFiles as nr,getFiles as Cl}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js";import{preventUnhandled as ar}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js";var bl=ne("input")({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),yl=ne(Y,{name:"Uploader",slot:"PreviewRoot"})({}),xl=ne(we,{name:"Uploader",slot:"UploadCard"})(({theme:e})=>({padding:e.spacing(2.5),border:`1px solid ${e.palette.neutral.outlinedBorder}`})),vl=ne(cl,{name:"Uploader",slot:"UploadFileIcon"})(({theme:e})=>({color:e.palette.neutral[400],width:"32px",height:"32px"})),Dl=ne(ul,{name:"Uploader",slot:"ClearIcon"})(({theme:e})=>({color:e.palette.neutral.plainColor,width:"18px",height:"18px"})),Ml=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],ir=e=>{console.log(e);let o=e==0?0:Math.floor(Math.log(e)/Math.log(1024)),t=e/Math.pow(1024,o),n=Ml[o];return Intl.NumberFormat("en-us",{style:"unit",unit:n,unitDisplay:"narrow"}).format(t)},kl=e=>{let{files:o,uploaded:t,onDelete:n}=e;return N.createElement(yl,{gap:1},[...t,...o].map(i=>N.createElement(xl,{key:i.name,size:"sm",color:"neutral"},N.createElement(Y,{direction:"row",alignItems:"center",gap:2},N.createElement(vl,null),N.createElement(Y,{flex:"1"},N.createElement(U,{level:"body-sm",textColor:"common.black"},i.name),!!i.size&&N.createElement(U,{level:"body-xs",fontWeight:"300",lineHeight:"1.33",textColor:"text.tertiary"},ir(i.size))),N.createElement(S,{onClick:()=>n?.(i)},N.createElement(Dl,null))))))},Pl=ne(Y,{name:"Uploader",slot:"root"})(({theme:e})=>({gap:e.spacing(2)})),Tl=ne(_,{name:"Uploader",slot:"dropZone"})(({theme:e,state:o,error:t})=>({width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:e.spacing(5),gap:e.spacing(4),cursor:"pointer",backgroundColor:e.palette.background.surface,border:t?`1px solid ${e.palette.danger.outlinedBorder}`:o==="idle"?`1px solid ${e.palette.neutral.outlinedBorder}`:`1px solid ${e.palette.primary.outlinedBorder}`})),wl=ne(dl,{name:"Uploader",slot:"iconContainer"})(({theme:e,state:o,error:t})=>({color:t?`rgba(${e.vars.palette.danger.mainChannel} / 0.6)`:o==="over"?`rgba(${e.palette.primary.mainChannel} / 0.6)`:e.palette.neutral.softActiveBg,width:"32px",height:"32px"})),Ko=N.memo(e=>{let{accept:o,maxCount:t,name:n,size:i,maxSize:a,onChange:r,label:l,helperText:s,disabled:g,required:u,onDelete:c}=e,y=rr(null),m=rr(null),[f,d]=bo(),[p,x]=bo([]),[k,v]=bo(e.uploaded||[]),[T,h]=bo("idle"),b=tr(()=>!!f||e.error,[e.error,f]),P=tr(()=>!t||t&&[...k,...p].length!==t,[p,t,k]),M=Co(V=>{try{a&&V.forEach(G=>{if(G.size>a)throw new Error(`File size exceeds the limit: ${ir(a)}`)});let J=[...p,...V];if(t&&[...k,...J].length>t)throw new Error(`File count exceeds the limit: ${t}`);r?.({target:{name:n,value:J}}),x(J),d(void 0)}catch(J){d(J.message)}},[p,k]);pl(()=>{let V=y.current;if(V)return gl(fl({element:V,canDrop:nr,onDragEnter:()=>h("over"),onDragLeave:()=>h("potential"),onDrop:async({source:J})=>{let G=await Cl({source:J});M(G)}}),hl({canMonitor:nr,onDragStart:()=>{h("potential"),ar.start()},onDrop:()=>{h("idle"),ar.stop()}}))});let L=Co(V=>{let J=Array.from(V.target.files||[]);M(J)},[M]),oe=Co(V=>{V instanceof File?x(J=>(r?.({target:{name:n,value:J.filter(G=>G!==V)}}),J.filter(G=>G!==V))):(v(J=>J.filter(G=>G.id!==V.id)),c?.(V)),d(void 0)},[]),Z=Co(()=>{m.current?.click()},[]);return N.createElement(Pl,null,P&&N.createElement(F,{size:i,error:!!b,disabled:g,required:u},l&&N.createElement(B,null,l),N.createElement(Tl,{state:T,error:b,ref:y,onClick:Z},N.createElement(Y,{alignItems:"center",gap:1},N.createElement(wl,{state:T,error:b})),N.createElement(bl,{type:"file",onChange:L,multiple:!0,accept:o,disabled:g,required:u,ref:m})),f?N.createElement(w,null,f):s&&N.createElement(w,null,s)),[...k,...p].length>0&&N.createElement(kl,{files:p,uploaded:k,onDelete:oe}))});Ko.displayName="Uploader";import{Grid as Al}from"@mui/joy";import{motion as Il}from"framer-motion";var Fl=Il(Al),jo=Fl;jo.displayName="Grid";import ee from"react";import Bl from"react-markdown";import{Link as Nl}from"@mui/joy";var Zo=e=>{let{children:o,color:t,textColor:n,defaultLevel:i="body-md",markdownOptions:a,...r}=e;return ee.createElement(W,{color:t,textColor:n,...r},ee.createElement(Bl,{...a,children:o,components:{h1:({children:l})=>ee.createElement(W,{color:t,textColor:n,level:"h1"},l),h2:({children:l})=>ee.createElement(W,{color:t,textColor:n,level:"h2"},l),h3:({children:l})=>ee.createElement(W,{color:t,textColor:n,level:"h3"},l),h4:({children:l})=>ee.createElement(W,{color:t,textColor:n,level:"h4"},l),p:({children:l})=>ee.createElement(W,{color:t,textColor:n,level:i},l),a:({children:l,href:s})=>ee.createElement(Nl,{href:s},l),hr:()=>ee.createElement($e,null),...a?.components}}))};Zo.displayName="Markdown";import O,{forwardRef as Ll,useCallback as lr,useEffect as sr,useImperativeHandle as Sl,useRef as El,useState as mr}from"react";import{IMaskInput as Hl,IMask as pr}from"react-imask";import Ol from"@mui/icons-material/esm/CalendarToday.js";import{styled as Qo}from"@mui/joy";import{FocusTrap as zl,ClickAwayListener as Vl,Popper as Yl}from"@mui/base";var Jl=Qo(Yl,{name:"MonthPicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Ul=Qo(_,{name:"MonthPicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),Rl=Qo("div",{name:"MonthPicker",slot:"container"})({width:"100%"}),dr=e=>{let o=`${e.getMonth()+1}`,t=e.getFullYear();return Number(o)<10&&(o="0"+o),[t,o].join("/")},Xo=e=>(t=>{if(!/^\d\d\d\d\/(0[1-9]|1[012])(\/(0[1-9]|[23][0-9]))?$/.test(t))return t;let n=t.split("/"),i=new Date(Number(n[0]),Number(n[1])-1);return dr(i)})(e),cr=e=>e.split(" - ")[0]||"",$l=O.forwardRef(function(o,t){let{onChange:n,...i}=o;return O.createElement(Hl,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/m",blocks:{m:{mask:pr.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:pr.MaskedRange,from:1900,to:9999}},format:Xo,parse:cr})}),ur=Ll((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:l,maxDate:s,disableFuture:g,disablePast:u,required:c,...y}=e,m=El(null),[f,d]=mr(e.value||""),[p,x]=mr(null),k=!!p;sr(()=>{d(e.value?Xo(cr(e.value)):"")},[e.value]),sr(()=>{p||m.current?.blur()},[p,m]),Sl(o,()=>m.current,[m.current]);let v=lr(b=>{d(b.target.value),t?.(b)},[]),T=lr(b=>{x(p?null:b.currentTarget),m.current?.focus()},[p,x,m]),h=O.createElement(Rl,null,O.createElement(zl,{open:!0},O.createElement(O.Fragment,null,O.createElement(R,{...y,ref:m,size:"sm",value:f,onChange:v,placeholder:"YYYY/MM",disabled:n,required:c,slotProps:{input:{component:$l,ref:m}},sx:{fontFamily:"monospace"},endDecorator:O.createElement(S,{variant:"plain",onClick:T},O.createElement(Ol,null))}),k&&O.createElement(Vl,{onClickAway:()=>x(null)},O.createElement(Jl,{id:"date-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:b=>b.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},O.createElement(Ul,{tabIndex:-1,role:"presentation"},O.createElement(te,{view:"month",views:["month"],value:Number.isNaN(new Date(f).getTime())?void 0:[new Date(f),void 0],onChange:([b])=>{v({target:{name:e.name,value:Xo(dr(b))}}),x(null)},minDate:l?new Date(l):void 0,maxDate:s?new Date(s):void 0,disableFuture:g,disablePast:u}),O.createElement(X,{sx:{p:1}},O.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{v({target:{name:e.name,value:""}}),x(null)}},"Clear"))))))));return i?O.createElement(F,{required:c,disabled:n,error:a,size:"sm"},O.createElement(B,null,i),h,r&&O.createElement(w,null,r)):h});import z,{forwardRef as Gl,useCallback as et,useEffect as gr,useImperativeHandle as Wl,useMemo as ql,useRef as _l,useState as fr}from"react";import{IMaskInput as Kl,IMask as hr}from"react-imask";import jl from"@mui/icons-material/esm/CalendarToday.js";import{styled as nt}from"@mui/joy";import{FocusTrap as Zl,ClickAwayListener as Xl,Popper as Ql}from"@mui/base";var es=nt(Ql,{name:"MonthRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),os=nt(_,{name:"MonthRangePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({zIndex:e.zIndex.tooltip,width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),ts=nt("div",{name:"MonthRangePicker",slot:"container"})({width:"100%"}),ot=e=>{let o=`${e.getMonth()+1}`,t=e.getFullYear();return Number(o)<10&&(o="0"+o),[t,o].join("/")},tt=([e,o])=>{let t=n=>{if(!/^\d\d\d\d\/(0[1-9]|1[012])(\/(0[1-9]|[23][0-9]))?$/.test(n))return n;let i=n.split("/"),a=new Date(Number(i[0]),Number(i[1])-1);return ot(a)};return[t(e),t(o)].join(" - ")},rt=e=>{let o=e.split(" - ")[0]||"",t=e.split(" - ")[1]||"";return[o,t]},rs=z.forwardRef(function(o,t){let{onChange:n,...i}=o;return z.createElement(Kl,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/m - Y/m",blocks:{m:{mask:hr.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:hr.MaskedRange,from:1900,to:9999}},format:tt,parse:rt})}),at=Gl((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:l,maxDate:s,disableFuture:g,disablePast:u,required:c,...y}=e,m=_l(null),[f,d]=fr(""),[p,x]=fr(null),k=!!p,v=ql(()=>f?rt(f).map(M=>new Date(M)):void 0,[f]);gr(()=>{d(e.value?tt(rt(e.value)):"")},[e.value]),gr(()=>{p||m.current?.blur()},[p,m]),Wl(o,()=>m.current,[m.current]);let T=et(M=>{d(M.target.value),t?.(M)},[t]),h=et(M=>{x(p?null:M.currentTarget),m.current?.focus()},[p,x,m]),b=et(([M,L])=>{!M||!L||(d(tt([ot(M),ot(L)])),x(null))},[d,x,m]),P=z.createElement(ts,null,z.createElement(Zl,{open:!0},z.createElement(z.Fragment,null,z.createElement(R,{...y,ref:o,size:"sm",value:f,onChange:T,disabled:n,required:c,placeholder:"YYYY/MM - YYYY/MM",slotProps:{input:{component:rs,ref:m}},sx:{fontFamily:"monospace"},endDecorator:z.createElement(S,{variant:"plain",onClick:h},z.createElement(jl,null))}),k&&z.createElement(Xl,{onClickAway:()=>x(null)},z.createElement(es,{id:"date-range-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:M=>M.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},z.createElement(os,{tabIndex:-1,role:"presentation"},z.createElement(te,{view:"month",views:["month"],rangeSelection:!0,defaultValue:v,onChange:b,minDate:l?new Date(l):void 0,maxDate:s?new Date(s):void 0,disableFuture:g,disablePast:u}),z.createElement(X,{sx:{p:1}},z.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{d(""),x(null)}},"Clear"))))))));return i?z.createElement(F,{required:c,disabled:n,error:a,size:"sm"},z.createElement(B,null,i),P,r&&z.createElement(w,null,r)):P});at.displayName="MonthRangePicker";import{Radio as ns,RadioGroup as as}from"@mui/joy";import{motion as Cr}from"framer-motion";var is=Cr(ns),Ge=is;Ge.displayName="Radio";var ls=Cr(as),We=ls;We.displayName="RadioGroup";import br from"react";function it(e){let{items:o,...t}=e;return br.createElement(We,{...t},o.map(n=>br.createElement(Ge,{key:`${n.value}`,value:n.value,label:n.label})))}it.displayName="RadioList";import yr from"react";import{Switch as ss,styled as ms,switchClasses as ps}from"@mui/joy";import{motion as xr}from"framer-motion";var ds=xr(ss),cs=ms(xr.div)({"--Icon-fontSize":"calc(var(--Switch-thumbSize) * 0.75)",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"var(--Switch-thumbOffset)",width:"var(--Switch-thumbWidth)",height:"var(--Switch-thumbSize)",borderRadius:"var(--Switch-thumbRadius)",boxShadow:"var(--Switch-thumbShadow)",color:"var(--Switch-thumbColor)",backgroundColor:"var(--Switch-thumbBackground)",[`&.${ps.checked}`]:{left:"unset",right:"var(--Switch-thumbOffset)"}}),us=e=>yr.createElement(cs,{...e,layout:!0,transition:gs}),gs={type:"spring",stiffness:700,damping:30},lt=e=>yr.createElement(ds,{...e,slots:{thumb:us,...e.slots}});lt.displayName="Switch";import{Tabs as fs,Tab as hs,TabList as Cs,TabPanel as bs,styled as ys,tabClasses as xs}from"@mui/joy";import{motion as yo}from"framer-motion";var vs=yo(fs),st=vs;st.displayName="Tabs";var Ds=ys(yo(hs))(({theme:e})=>({[`&:not(.${xs.selected})`]:{color:e.palette.neutral[700]}})),mt=Ds;mt.displayName="Tab";var Ms=yo(Cs),pt=Ms;pt.displayName="TabList";var ks=yo(bs),dt=ks;dt.displayName="TabPanel";import xo from"react";import{CssBaseline as Ps,CssVarsProvider as Ts,checkboxClasses as ws,extendTheme as As}from"@mui/joy";var Is=As({cssVarPrefix:"ceed",spacing:4,zIndex:{popup:1500},components:{JoyTable:{defaultProps:{size:"sm",borderAxis:"bothBetween"},styleOverrides:{root:({theme:e})=>({"--TableRow-stripeBackground":e.palette.background.level1,"--TableCell-selectedBackground":e.palette.background.level2,"--TableRow-hoverBackground":e.palette.background.level3,"& tbody tr[aria-checked=false] th":{"--TableCell-headBackground":"transparent"},"& tbody tr[aria-checked=true]:hover th":{"--TableCell-headBackground":"var(--TableRow-hoverBackground)"},"& tbody tr[aria-checked=true]:not(:hover) th":{"--TableCell-headBackground":"var(--TableCell-selectedBackground)"},"& tbody tr[aria-checked=true]:not(:hover) td":{"--TableCell-dataBackground":"var(--TableCell-selectedBackground)"},[`& .${ws.root}`]:{verticalAlign:"middle"}})}},JoyTooltip:{defaultProps:{size:"sm",placement:"top"}}}});function ct(e){return xo.createElement(xo.Fragment,null,xo.createElement(Ts,{theme:Is},xo.createElement(Ps,null),e.children))}ct.displayName="ThemeProvider";export{je as Accordion,Ke as AccordionDetails,_e as AccordionSummary,Mo as Accordions,ko as Alert,WC as AspectRatio,Qe as Autocomplete,OC as AutocompleteListbox,zC as AutocompleteOption,UC as Avatar,$C as AvatarGroup,_C as Badge,ye as Box,wo as Breadcrumbs,ke as Button,Pe as Calendar,we as Card,No as CardActions,Fo as CardContent,Bo as CardCover,Lo as CardOverflow,Ae as Checkbox,he as Chip,rb as CircularProgress,So as Container,ao as CurrencyInput,Vo as DataTable,io as DatePicker,Ro as DateRangePicker,Se as DialogActions,Ye as DialogContent,qo as DialogFrame,Je as DialogTitle,$e as Divider,ab as Drawer,Me as Dropdown,ue as FormControl,fe as FormHelperText,ge as FormLabel,jo as Grid,Ce as IconButton,Be as Input,_o as InsetDrawer,lb as LinearProgress,Mb as Link,mb as List,db as ListDivider,ub as ListItem,fb as ListItemButton,Cb as ListItemContent,yb as ListItemDecorator,vb as ListSubheader,Zo as Markdown,xe as Menu,ve as MenuButton,De as MenuItem,$o as Modal,ho as ModalClose,Ue as ModalDialog,Wo as ModalFrame,Go as ModalOverflow,ur as MonthPicker,at as MonthRangePicker,so as Option,Ge as Radio,We as RadioGroup,it as RadioList,Oe as Select,Ne as Sheet,Sb as Skeleton,Pb as Slider,ce as Stack,wb as Step,Ib as StepButton,Bb as StepIndicator,Nb as Stepper,lt as Switch,mt as Tab,pt as TabList,dt as TabPanel,Le as Table,Ho as TableBody,Eo as TableHead,st as Tabs,Ee as Textarea,ct as ThemeProvider,ze as Tooltip,W as Typography,Ko as Uploader,LC as accordionClasses,SC as accordionDetailsClasses,HC as accordionSummaryClasses,EC as accordionsClasses,Xh as alertClasses,qC as aspectRatioClasses,VC as autocompleteClasses,YC as autocompleteListboxClasses,JC as autocompleteOptionClasses,RC as avatarClasses,GC as avatarGroupClasses,KC as badgeClasses,Qh as boxClasses,jC as breadcrumbsClasses,eC as buttonClasses,XC as cardActionsClasses,ZC as cardClasses,QC as cardContentClasses,eb as cardCoverClasses,ob as cardOverflowClasses,oC as checkboxClasses,tb as chipClasses,nb as circularProgressClasses,AC as dialogActionsClasses,wC as dialogContentClasses,TC as dialogTitleClasses,tC as dividerClasses,ib as drawerClasses,hC as formControlClasses,bC as formHelperTextClasses,CC as formLabelClasses,yC as gridClasses,rC as iconButtonClasses,nC as inputClasses,sb as linearProgressClasses,kb as linkClasses,pb as listClasses,cb as listDividerClasses,hb as listItemButtonClasses,gb as listItemClasses,bb as listItemContentClasses,xb as listItemDecoratorClasses,Db as listSubheaderClasses,iC as menuButtonClasses,aC as menuClasses,lC as menuItemClasses,DC as modalClasses,MC as modalCloseClasses,kC as modalDialogClasses,PC as modalOverflowClasses,sC as optionClasses,mC as radioClasses,pC as radioGroupClasses,dC as selectClasses,vC as sheetClasses,Eb as skeletonClasses,Tb as sliderClasses,xC as stackClasses,Fb as stepButtonClasses,Ab as stepClasses,Lb as stepperClasses,cC as switchClasses,BC as tabListClasses,NC as tabPanelClasses,uC as tableClasses,FC as tabsClasses,gC as textareaClasses,IC as tooltipClasses,fC as typographyClasses,jh as useColorScheme,Kh as useTheme,Zh as useThemeProps};
|
|
1
|
+
import{useTheme as ch,useColorScheme as uh,useThemeProps as gh,alertClasses as fh,boxClasses as hh,buttonClasses as Ch,checkboxClasses as bh,dividerClasses as yh,iconButtonClasses as vh,inputClasses as xh,menuClasses as Dh,menuButtonClasses as Mh,menuItemClasses as kh,optionClasses as Ph,radioClasses as Th,radioGroupClasses as wh,selectClasses as Ah,switchClasses as Ih,tableClasses as Fh,textareaClasses as Bh,typographyClasses as Nh,formControlClasses as Lh,formLabelClasses as Sh,formHelperTextClasses as Hh,gridClasses as Eh,stackClasses as Oh,sheetClasses as zh,modalClasses as Vh,modalCloseClasses as Yh,modalDialogClasses as Jh,modalOverflowClasses as Uh,dialogTitleClasses as Rh,dialogContentClasses as $h,dialogActionsClasses as Gh,tooltipClasses as Wh,tabsClasses as qh,tabListClasses as _h,tabPanelClasses as Kh,accordionClasses as jh,accordionDetailsClasses as Zh,accordionGroupClasses as Xh,accordionSummaryClasses as Qh,AutocompleteListbox as eC,AutocompleteOption as oC,autocompleteClasses as tC,autocompleteListboxClasses as rC,autocompleteOptionClasses as nC,Avatar as aC,avatarClasses as iC,AvatarGroup as lC,avatarGroupClasses as sC,AspectRatio as mC,aspectRatioClasses as pC,Badge as dC,badgeClasses as cC,breadcrumbsClasses as uC,cardClasses as gC,cardActionsClasses as fC,cardContentClasses as hC,cardCoverClasses as CC,cardOverflowClasses as bC,chipClasses as yC,CircularProgress as vC,circularProgressClasses as xC,Drawer as DC,drawerClasses as MC,LinearProgress as kC,linearProgressClasses as PC,List as TC,listClasses as wC,ListDivider as AC,listDividerClasses as IC,ListItem as FC,listItemClasses as BC,ListItemButton as NC,listItemButtonClasses as LC,ListItemContent as SC,listItemContentClasses as HC,ListItemDecorator as EC,listItemDecoratorClasses as OC,ListSubheader as zC,listSubheaderClasses as VC,Link as YC,linkClasses as JC,Slider as UC,sliderClasses as RC,Step as $C,stepClasses as GC,StepButton as WC,stepButtonClasses as qC,StepIndicator as _C,Stepper as KC,stepperClasses as jC,Skeleton as ZC,skeletonClasses as XC}from"@mui/joy";import ue from"react";import{AccordionGroup as gr,Accordion as fr,AccordionSummary as hr,AccordionDetails as Cr}from"@mui/joy";import{motion as $e}from"framer-motion";var br=$e(hr),Ge=br;Ge.displayName="AccordionSummary";var yr=$e(Cr),We=yr;We.displayName="AccordionDetails";var vr=$e(fr);function qe(e){let{summary:o,details:t,variant:n,color:i,...a}=e,r=n==="solid"?"solid":void 0;return ue.createElement(vr,{variant:r,color:i,...a},ue.createElement(Ge,{variant:r,color:i},o),ue.createElement(We,{variant:r,color:i},t))}qe.displayName="Accordion";var xr=$e(gr);function uo(e){let{variant:o,color:t,items:n,...i}=e;return ue.createElement(xr,{variant:o,color:t,...i},n.map((a,r)=>ue.createElement(qe,{key:r,summary:a.summary,details:a.details,index:r,variant:o,color:t})))}uo.displayName="Accordions";import _e from"react";import{Alert as Ir,styled as Fr}from"@mui/joy";import{motion as Br}from"framer-motion";import Dr from"react";import{Typography as Mr}from"@mui/joy";import{motion as kr}from"framer-motion";var Pr=kr(Mr),$=e=>Dr.createElement(Pr,{...e});$.displayName="Typography";var U=$;import{Stack as Tr}from"@mui/joy";import{motion as wr}from"framer-motion";var Ar=wr(Tr),ge=Ar;ge.displayName="Stack";var V=ge;var Nr=Fr(Br(Ir))({alignItems:"flex-start",fontWeight:"unset"});function go(e){let{title:o,content:t,actions:n,color:i="primary",...a}=e,r=e.invertedColors||e.variant==="solid";return _e.createElement(Nr,{...a,color:i,endDecorator:n,invertedColors:r},_e.createElement(V,null,o&&_e.createElement(U,{level:"title-sm",color:i},o),_e.createElement(U,{level:"body-sm",color:i},t)))}go.displayName="Alert";import A,{useCallback as jr,useEffect as Zr,useMemo as ve,useRef as Xr,useState as Qr}from"react";import{Autocomplete as en,AutocompleteOption as on,ListSubheader as tn,AutocompleteListbox as rn,ListItemDecorator as dt,CircularProgress as nn,styled as ct}from"@mui/joy";import an from"@mui/icons-material/esm/Close.js";import{useVirtualizer as ln}from"@tanstack/react-virtual";import{Popper as sn}from"@mui/base";import{FormControl as Lr,styled as Sr}from"@mui/joy";import{motion as Hr}from"framer-motion";var Er=Sr(Hr(Lr))({width:"100%"}),fe=Er;fe.displayName="FormControl";var F=fe;import{FormLabel as Or}from"@mui/joy";import{motion as zr}from"framer-motion";var Vr=zr(Or),he=Vr;he.displayName="FormLabel";var B=he;import{FormHelperText as Yr}from"@mui/joy";import{motion as Jr}from"framer-motion";var Ur=Jr(Yr),Ce=Ur;Ce.displayName="FormHelperText";var w=Ce;import{Chip as Rr}from"@mui/joy";import{motion as $r}from"framer-motion";var Gr=$r(Rr),be=Gr;be.displayName="Chip";var pt=be;import Wr from"react";import{IconButton as qr}from"@mui/joy";import{motion as _r}from"framer-motion";var Kr=_r(qr),ye=e=>Wr.createElement(Kr,{...e});ye.displayName="IconButton";var L=ye;var mn=ct(sn,{name:"Autocomplete",slot:"Popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),pn=A.forwardRef((e,o)=>{let{anchorEl:t,open:n,modifiers:i,children:a,ownerState:{loading:r,size:l="md"},...s}=e,f=Xr(null),c=a[0].every(C=>C.hasOwnProperty("group")),d=r?[a[1]]:a[0].length===0?[a[2]]:c?a[0].flatMap(C=>[A.createElement(tn,{key:C.key,component:"li"},C.group),...C.children]):a[0],b=ln({count:d.length,estimateSize:()=>36,getScrollElement:()=>f.current,overscan:5}),m=b.getVirtualItems();return Zr(()=>{n&&b.measure()},[n]),A.createElement(mn,{ref:o,anchorEl:t,open:n,modifiers:i},A.createElement(rn,{...s},A.createElement("div",{ref:f,style:{overflow:"auto"}},A.createElement("div",{style:{height:`${b.getTotalSize()}px`,position:"relative"}},m.map(({index:C,size:u,start:p,key:v})=>A.cloneElement(d[C],{key:v,style:{position:"absolute",top:0,left:0,width:"100%",fontSize:`var(--ceed-fontSize-${l})`,height:`${u}px`,transform:`translateY(${p}px)`,overflow:"visible"},children:A.createElement("div",{style:{textOverflow:"ellipsis",textWrap:"nowrap",overflow:"hidden",width:"100%"}},d[C].props.children)}))))))}),Ke={sm:"20px",md:"24px",lg:"28px"},dn=ct(L,{name:"Autocomplete",slot:"tagDelete"})(({theme:e,size:o="md"})=>({width:Ke[o],height:Ke[o],minWidth:Ke[o],minHeight:Ke[o],borderRadius:"50%"}));function ut(e){let{label:o,error:t,helperText:n,color:i,size:a,disabled:r,required:l,onChange:s,onChangeComplete:f,...c}=e,[d,b]=Qr(e.value||e.defaultValue),m=ve(()=>e.options.map(g=>typeof g!="object"?{value:g,label:g}:g),[e.options]),C=ve(()=>{let g=new Map;return m.forEach(h=>{g.set(h.value,h)}),g},[e.options]),u=ve(()=>{if(e.loading)return{value:"",label:"",startDecorator:A.createElement(nn,{size:"sm",color:"neutral",variant:"plain",thickness:3})};if(d==null)return null;let g=h=>typeof h!="object"?C.get(h)??h:C.get(h.value);return Array.isArray(d)?d.map(g):g(d)},[d,e.options,e.loading]),p=jr(g=>A.isValidElement(g)&&!e.loading?A.cloneElement(g,{size:a}):g,[a,e.loading]),v=ve(()=>p(u?.startDecorator||e.startDecorator),[u,p]),M=ve(()=>p(u?.endDecorator||e.endDecorator),[u,p]),P=A.createElement(en,{...c,required:l,onChange:(g,h)=>{b(h);let k=h,D=Array.isArray(k)?k.map(z=>z.value):k?.value;s?.({...g,target:{...g.target,value:D}}),(Array.isArray(k)&&k.map(z=>C.get(z.value))||C.get(k?.value))&&f?.({...g,target:{...g.target,value:D}})},color:t?"danger":i,value:u,options:m,size:a,disabled:r,startDecorator:v,endDecorator:M,getOptionLabel:g=>`${g.value??""}`,renderTags:(g,h)=>g.map((k,D)=>{let{onClick:z,...q}=h({index:D});return p(A.createElement(pt,{color:"primary",...q},A.createElement(V,{direction:"row",alignItems:"center",gap:2,py:.5},k.value,p(A.createElement(dn,{color:"primary",variant:"soft",onClick:z},A.createElement(an,null))))))}),slots:{listbox:pn},renderOption:(g,h)=>A.createElement(on,{...g},h.startDecorator&&A.createElement(dt,{sx:k=>({marginInlineEnd:`var(--Input-gap, ${k.spacing(1)})`})},p(h.startDecorator)),p(h.label),h.endDecorator&&A.createElement(dt,{sx:k=>({marginInlineStart:`var(--Input-gap, ${k.spacing(1)})`})},p(h.endDecorator))),renderGroup:g=>g});return o?A.createElement(F,{required:l,color:i,size:a,error:t,disabled:r},A.createElement(B,null,o),P,n&&A.createElement(w,null,n)):P}import{Box as cn}from"@mui/joy";import{motion as un}from"framer-motion";var gn=un(cn),xe=gn;xe.displayName="Box";var je=xe;import G from"react";import{Breadcrumbs as ht,Link as kn}from"@mui/joy";import fo from"react";import{Menu as fn,MenuButton as hn,MenuItem as Cn}from"@mui/joy";import{motion as ho}from"framer-motion";var bn=ho(fn),De=e=>fo.createElement(bn,{...e});De.displayName="Menu";var yn=ho(hn),Me=e=>fo.createElement(yn,{...e});Me.displayName="MenuButton";var vn=ho(Cn),ke=e=>fo.createElement(vn,{...e});ke.displayName="MenuItem";var gt=De;import{Dropdown as xn}from"@mui/joy";import{motion as Dn}from"framer-motion";var Mn=Dn(xn),Pe=Mn;Pe.displayName="Dropdown";var ft=Pe;function Co(e){let{crumbs:o,size:t,startCrumbCount:n=1,endCrumbCount:i=3,slots:{link:a,...r}={link:kn},slotProps:{link:l,...s}={link:{color:"neutral"}},collapsed:f=!0,...c}=e,d=p=>p.type==="link"&&a?G.createElement(a,{to:p.linkHref,href:p.linkHref,...l},p.label):G.createElement(U,null,p.label);if(!f)return G.createElement(ht,{size:t,slots:r,slotProps:s,...c},o.map(p=>G.createElement(d,{...p})));let b=Math.max(1,i),m=o.slice(0,n).map(p=>G.createElement(d,{...p})),C=(n+b>o.length?o.slice(n):o.slice(-b)).map(p=>G.createElement(d,{...p})),u=o.slice(n,-b).map(p=>G.createElement(ke,null,G.createElement(d,{...p})));return G.createElement(ht,{size:t,slots:r,slotProps:s,...c},m,u.length&&G.createElement(ft,null,G.createElement(Me,{size:t,variant:"plain"},"..."),G.createElement(gt,{size:t},u)),C)}Co.displayName="Breadcrumbs";import Pn,{forwardRef as Tn}from"react";import{Button as wn}from"@mui/joy";import{motion as An}from"framer-motion";var In=An(wn),Te=Tn((e,o)=>Pn.createElement(In,{ref:o,...e}));Te.displayName="Button";var I=Te;import x,{Fragment as pe,forwardRef as Sn,useMemo as kt}from"react";import{styled as _}from"@mui/joy";import Hn from"@mui/icons-material/esm/ChevronLeft.js";import En from"@mui/icons-material/esm/ChevronRight.js";import{AnimatePresence as Pt,motion as On}from"framer-motion";var Ct=e=>{let o=[],t=new Date(e.getFullYear(),e.getMonth(),1),n=new Date(e.getFullYear(),e.getMonth()+1,0),i=Math.ceil((t.getDay()+1)/7),a=Math.ceil((n.getDate()+t.getDay())/7),r=1;for(let l=1;l<=a;l++){let s=[];for(let f=1;f<=7;f++)l===i&&f<t.getDay()+1||r>n.getDate()?s.push(void 0):(s.push(r),r++);o.push(s)}return o},bt=(e,o)=>e.toLocaleString(o,{year:"numeric"}),bo=(e,o)=>e.toLocaleString(o,{year:"numeric",month:"long"}),yt=(e,o)=>new Date(0,e).toLocaleString(o,{month:"short"}),vt=e=>{let o=new Date().getDay(),t=new Date;return t.setDate(t.getDate()-o),Array.from({length:7}).map(()=>{let n=t.toLocaleString(e,{weekday:"short"});return t.setDate(t.getDate()+1),n})},xt=e=>{let o=new Date,t=new Date(e);return t.setHours(0,0,0,0),o.setHours(0,0,0,0),t.getTime()===o.getTime()},yo=(e,o)=>{let t=new Date(e),n=new Date(o);return t.setHours(0,0,0,0),n.setHours(0,0,0,0),t.getTime()===n.getTime()},Q=(e,o,t)=>{let n=new Date(t);n.setHours(0,0,0,0);let i=new Date(Math.min(e.getTime(),o.getTime())),a=new Date(Math.max(e.getTime(),o.getTime()));return n>=i&&n<=a},Ze=(e,o)=>e.getFullYear()===o.getFullYear()&&e.getMonth()===o.getMonth();import{useCallback as Fn,useMemo as Bn,useState as Xe}from"react";import{useThemeProps as Nn}from"@mui/joy";var Ln=(e,o)=>o.includes(e)?e:o[0],Dt=e=>{let[o,t]=Xe(()=>Ln(e.view||"day",e.views||["day","month"])),[n,i]=Xe(e.defaultValue),[a,r]=Xe(()=>{let u=new Date;return u.setDate(1),u.setHours(0,0,0,0),e.value?.[0]||e.defaultValue?.[0]||u}),[[l,s],f]=Xe([0,0]),c=e.view??o,d=u=>{f([l+u,u])},b=Fn(u=>{r(u),c==="month"?a.getFullYear()!==u.getFullYear()&&d(u>a?1:-1):d(u>a?1:-1),e.onMonthChange?.(u)},[e.onMonthChange,a,c]),m=Nn({props:{locale:"default",views:["day","month"],view:c,value:e.value??n,...e,onChange:e.value?e.onChange:u=>{i(u),e.onChange?.(u)},onMonthChange:b,onViewChange:()=>{let u=c==="month"?"day":"month";!(!e.views||e.views.includes(u))||e.view===u||(e.onViewChange?e.onViewChange(u):t(u))}},name:"Calendar"}),C=Bn(()=>({...m,viewMonth:a,direction:s}),[m,a,s]);return[m,C]};import{useCallback as me,useState as Mt}from"react";var Qe=e=>{let[o,t]=Mt(null),[n,i]=Mt(null);return{calendarTitle:e.view==="month"?bt(e.viewMonth,e.locale||"default"):bo(e.viewMonth,e.locale||"default"),onPrev:me(()=>{if(e.view==="day"){let a=new Date(e.viewMonth||new Date);a.setMonth(a.getMonth()-1),e.onMonthChange?.(a)}else if(e.view==="month"){let a=new Date(e.viewMonth||new Date);a.setFullYear(a.getFullYear()-1),e.onMonthChange?.(a)}},[e.onMonthChange,e.viewMonth,e.view]),onNext:me(()=>{if(e.view==="day"){let a=new Date(e.viewMonth||new Date);a.setMonth(a.getMonth()+1),e.onMonthChange?.(a)}else if(e.view==="month"){let a=new Date(e.viewMonth||new Date);a.setFullYear(a.getFullYear()+1),e.onMonthChange?.(a)}},[e.onMonthChange,e.viewMonth,e.view]),getDayCellProps:me(a=>{let r=new Date(e.viewMonth||new Date);r.setHours(0,0,0,0),r.setDate(a);let l=e.rangeSelection&&e.value&&e.value[0]&&(o&&Q(e.value[0],o,r)||e.value[1]&&Q(e.value[0],e.value[1],r));return{"aria-label":r.toLocaleDateString(),"aria-current":l?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,o]),getMonthCellProps:me(a=>{let r=new Date(e.viewMonth||new Date);r.setDate(1),r.setHours(0,0,0,0),r.setMonth(a);let s=!e.views?.find(f=>f==="day")&&e.rangeSelection&&e.value&&e.value[0]&&(n&&Q(e.value[0],n,r)||e.value[1]&&Q(e.value[0],e.value[1],r));return{"aria-label":r.toLocaleDateString(),"aria-current":s?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,n]),getPickerDayProps:me(a=>{let r=new Date(e.viewMonth||new Date);r.setHours(0,0,0,0),r.setDate(a);let l=!!e.value&&(yo(r,e.value[0])||e.value[1]&&yo(r,e.value[1])),s=e.rangeSelection&&e.value&&e.value[0]&&(o&&Q(e.value[0],o,r)||e.value[1]&&Q(e.value[0],e.value[1],r)),f=()=>{e.rangeSelection?e.value?e.value[0]&&!e.value[1]?e.onChange?.([new Date(Math.min(e.value[0].getTime(),r.getTime())),new Date(Math.max(e.value[0].getTime(),r.getTime()))]):e.onChange?.([r,void 0]):e.onChange?.([r,void 0]):e.onChange?.([r,void 0]),t(null)};return{isToday:xt(r),isSelected:l,onClick:f,onMouseEnter:e.rangeSelection&&e.value?.[0]&&!e.value?.[1]?()=>t(r):void 0,disabled:e.minDate&&r<e.minDate||e.maxDate&&r>e.maxDate||e.disableFuture&&r>new Date||e.disablePast&&r<(()=>{let c=new Date;return c.setHours(0,0,0,0),c})(),tabIndex:-1,"aria-label":r.toLocaleDateString(),"aria-selected":l?"true":void 0,"aria-current":s?"date":void 0}},[e.onChange,e.value,e.viewMonth,e.rangeSelection,e.minDate,e.maxDate,e.disableFuture,e.disablePast,o]),getPickerMonthProps:me(a=>{let r=new Date(e.viewMonth||new Date);r.setDate(1),r.setHours(0,0,0,0),r.setMonth(a);let l=!e.views?.find(b=>b==="day"),s=l&&e.rangeSelection,f=!!e.value&&(Ze(r,e.value[0])||e.value[1]&&Ze(r,e.value[1])),c=s&&e.value&&e.value[0]&&(n&&Q(e.value[0],n,r)||e.value[1]&&Q(e.value[0],e.value[1],r)),d=()=>{s?e.value?e.value[0]&&!e.value[1]?e.onChange?.([new Date(Math.min(e.value[0].getTime(),r.getTime())),new Date(Math.max(e.value[0].getTime(),r.getTime()))]):e.onChange?.([r,void 0]):e.onChange?.([r,void 0]):l?e.onChange?.([r,void 0]):(e.onViewChange?.("day"),e.onMonthChange?.(r)),i(null)};return{isSelected:f,onMouseEnter:s&&e.value?.[0]&&!e.value?.[1]?()=>i(r):void 0,disabled:e.minDate&&(()=>{let b=new Date(r);return b.setMonth(b.getMonth()+1),b.setDate(0),b<e.minDate})()||e.maxDate&&(()=>{let b=new Date(r);return b.setDate(0),b>e.maxDate})()||e.disableFuture&&r>new Date||e.disablePast&&r<new Date&&!Ze(r,new Date),onClick:d,tabIndex:-1,"aria-label":bo(r,e.locale||"default"),"aria-selected":f?"true":void 0,"aria-current":c?"date":void 0}},[e.onMonthChange,e.onViewChange,e.onChange,e.viewMonth,e.locale,e.value,e.minDate,e.maxDate,e.disableFuture,e.disablePast,n])}};var zn=_("div",{name:"Calendar",slot:"root"})({maxWidth:"264px"}),Vn=_("div",{name:"Calendar",slot:"calendarHeader"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(2)})),Tt=_("div",{name:"Calendar",slot:"viewContainer",shouldForwardProp:e=>e!=="calendarType"})(({theme:e,calendarType:o})=>({paddingLeft:e.spacing(2),paddingRight:e.spacing(2),position:"relative",overflow:"hidden",minHeight:o==="datePicker"?"250px":"unset"})),wt=_(On.table,{name:"Calendar",slot:"viewTable"})(({theme:e})=>({borderSpacing:0,"& td, & th":{padding:0},"& th":{paddingTop:e.spacing(2),paddingBottom:e.spacing(2)}})),Yn=_("thead",{name:"Calendar",slot:"weekHeaderContainer"})({}),Jn=_("tbody",{name:"Calendar",slot:"dayPickerContainer"})({}),Un=_(I,{name:"Calendar",slot:"switchViewButton"})(({ownerState:e})=>[e.view==="month"&&{pointerEvents:"none"}]),Rn=_("td",{name:"Calendar",slot:"dayCell"})(({theme:e})=>({"&[aria-current=date]":{position:"relative","& button[aria-current=date]:not([aria-selected=true]):not(:hover):not(:active)":{backgroundColor:`rgb(${e.palette.primary.lightChannel})`},'& + td[aria-hidden] + td[aria-current="date"]::before':{content:'""',position:"absolute",top:0,left:"-10px",bottom:0,width:"16px",backgroundColor:`rgb(${e.palette.primary.lightChannel})`,zIndex:-1}}})),$n=_("td",{name:"Calendar",slot:"monthCell"})(({theme:e})=>({"&[aria-current=date]":{position:"relative","& button[aria-current=date]:not([aria-selected=true]):not(:hover):not(:active)":{backgroundColor:`rgb(${e.palette.primary.lightChannel})`},'& + td[aria-hidden] + td[aria-current="date"]::before':{content:'""',position:"absolute",top:0,left:"-10px",bottom:0,width:"16px",backgroundColor:`rgb(${e.palette.primary.lightChannel})`,zIndex:-1}}})),Gn=_(I,{name:"Calendar",slot:"month",shouldForwardProp:e=>e!=="isSelected"})(({theme:e,isSelected:o,disabled:t})=>[{width:"59px",textAlign:"center","&:hover":{color:e.palette.primary.softColor,backgroundColor:e.palette.primary.softHoverBg},"&:active":{color:e.palette.primary.softColor,backgroundColor:e.palette.primary.softActiveBg}},o&&{backgroundColor:e.palette.primary.solidBg,color:e.palette.primary.solidColor,"&:hover":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidHoverBg},"&:active":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidActiveBg}},t&&{color:e.palette.neutral.solidDisabledColor,backgroundColor:e.palette.neutral.solidDisabledBg}]),Wn=_(I,{name:"Calendar",slot:"day",shouldForwardProp:e=>!["isToday","isSelected"].includes(e)})(({theme:e,isToday:o,isSelected:t,disabled:n})=>[{width:"32px",height:"32px",textAlign:"center","&:hover":{color:e.palette.primary.softColor,backgroundColor:e.palette.primary.softHoverBg},"&:active":{color:e.palette.primary.softColor,backgroundColor:e.palette.primary.softActiveBg}},o&&!t&&{"&:not([aria-current=date]):not(:hover)":{border:`1px solid ${e.palette.neutral.outlinedBorder}`}},t&&{backgroundColor:e.palette.primary.solidBg,color:e.palette.primary.solidColor,"&:hover":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidHoverBg},"&:active":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidActiveBg}},n&&{color:e.palette.neutral.solidDisabledColor,backgroundColor:e.palette.neutral.solidDisabledBg}]),At={enter:e=>({x:e>0?300:-300,opacity:0}),center:{position:"relative",zIndex:1,x:0,opacity:1},exit:e=>({position:"absolute",zIndex:0,x:e<0?300:-300,opacity:0})},eo=1e4,It=(e,o)=>Math.abs(e)*o,qn=e=>{let{ownerState:o}=e,{getPickerDayProps:t,getDayCellProps:n}=Qe(o),i=kt(()=>Ct(o.viewMonth),[o.viewMonth]),a=kt(()=>vt(o.locale||"default"),[o.locale]);return x.createElement(Tt,{calendarType:"datePicker"},x.createElement(Pt,{initial:!1,custom:o.direction},x.createElement(wt,{key:`${o.viewMonth.toString()}_${o.direction}`,custom:o.direction,variants:At,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:(r,{offset:l,velocity:s})=>{let f=It(l.x,s.x);if(f<-eo){let c=new Date(o.viewMonth||new Date);c.setMonth(c.getMonth()+1),o.onMonthChange?.(c)}else if(f>eo){let c=new Date(o.viewMonth||new Date);c.setMonth(c.getMonth()-1),o.onMonthChange?.(c)}}},x.createElement(Yn,null,x.createElement("tr",null,a.map((r,l)=>x.createElement(pe,{key:`${o.viewMonth}_${r}_${l}`},x.createElement("th",null,x.createElement(U,{level:"body-xs",textAlign:"center"},r)),l<6&&x.createElement("th",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"}))))),x.createElement(Jn,null,i.map((r,l)=>x.createElement(pe,{key:`${o.viewMonth}_${l}`},x.createElement("tr",null,r.map((s,f)=>s?x.createElement(pe,{key:f},x.createElement(Rn,{...n(s)},x.createElement(Wn,{size:"sm",variant:"plain",color:"neutral",...t(s)},s)),f<6&&x.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})):x.createElement(pe,{key:f},x.createElement("td",null),f<6&&x.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})))),l<i.length-1&&x.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},x.createElement("td",{colSpan:13,style:{height:4}}))))))))},_n=e=>{let{ownerState:o}=e,{getPickerMonthProps:t,getMonthCellProps:n}=Qe(o),i=Array.from({length:12},(r,l)=>l).reduce((r,l)=>(r[r.length-1].length===4&&r.push([]),r[r.length-1].push(l),r),[[]]),a=!o.views?.find(r=>r==="day");return x.createElement(Tt,{calendarType:a?"monthPicker":"datePicker"},x.createElement(Pt,{initial:!1,custom:o.direction},x.createElement(wt,{key:`${o.viewMonth.getFullYear()}_${o.direction}`,custom:o.direction,variants:At,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:(r,{offset:l,velocity:s})=>{let f=It(l.x,s.x);if(f<-eo){let c=new Date(o.viewMonth||new Date);c.setMonth(c.getMonth()+1),o.onMonthChange?.(c)}else if(f>eo){let c=new Date(o.viewMonth||new Date);c.setMonth(c.getMonth()-1),o.onMonthChange?.(c)}}},x.createElement("tbody",null,i.map((r,l)=>x.createElement(pe,{key:l},x.createElement("tr",null,r.map((s,f)=>x.createElement(pe,{key:s},x.createElement($n,{...n(s)},x.createElement(Gn,{size:"sm",variant:"plain",color:"neutral",...t(s)},yt(s,o.locale))),f<3&&x.createElement("td",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"})))),l<i.length-1&&x.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},x.createElement("td",{colSpan:7,style:{height:4}}))))))))},we=Sn((e,o)=>{let[t,n]=Dt(e),{value:i,defaultValue:a,onChange:r,locale:l,onViewChange:s,onMonthChange:f,view:c,views:d,rangeSelection:b,minDate:m,maxDate:C,disableFuture:u,disablePast:p,...v}=t,{calendarTitle:M,onPrev:T,onNext:P}=Qe(n);return x.createElement(zn,{ref:o,...v},x.createElement(Vn,null,x.createElement(L,{size:"sm",onClick:T},x.createElement(Hn,null)),x.createElement(Un,{ownerState:n,variant:"plain",color:"neutral",onClick:s},M),x.createElement(L,{size:"sm",onClick:P},x.createElement(En,null))),c==="day"&&x.createElement(qn,{ownerState:n}),c==="month"&&x.createElement(_n,{ownerState:n}))});we.displayName="Calendar";var re=we;import{Card as Kn,CardContent as jn,CardCover as Zn,CardActions as Xn,CardOverflow as Qn}from"@mui/joy";import{motion as Ae}from"framer-motion";var ea=Ae(Kn),Ie=ea;Ie.displayName="Card";var oa=Ae(jn),vo=oa;vo.displayName="CardContent";var ta=Ae(Zn),xo=ta;xo.displayName="CardCover";var ra=Ae(Xn),Do=ra;Do.displayName="CardActions";var na=Ae(Qn),Mo=na;Mo.displayName="CardOverflow";import aa from"react";import{Checkbox as ia}from"@mui/joy";import{motion as la}from"framer-motion";var sa=la(ia),Fe=e=>aa.createElement(sa,{...e});Fe.displayName="Checkbox";var Be=Fe;import{styled as ma}from"@mui/joy";import pa,{forwardRef as da}from"react";var ca=ma("div",{name:"Container",slot:"root",shouldForwardProp:e=>e!=="maxWidth"})(({theme:e,maxWidth:o="lg"})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block",paddingLeft:e.spacing(4),paddingRight:e.spacing(4),...o==="sm"&&{[e.breakpoints.up("xs")]:{maxWidth:e.breakpoints.values.sm}},...o==="md"&&{[e.breakpoints.up("sm")]:{maxWidth:e.breakpoints.values.md}},...o==="lg"&&{[e.breakpoints.up("md")]:{maxWidth:e.breakpoints.values.lg}},...o==="xl"&&{[e.breakpoints.up("lg")]:{maxWidth:e.breakpoints.values.xl}}})),ko=da(function(o,t){return pa.createElement(ca,{ref:t,...o})});ko.displayName="Container";import ne,{useCallback as ba,useMemo as ya,useState as Bt}from"react";import{IntlMessageFormat as va}from"intl-messageformat";import{NumericFormat as xa}from"react-number-format";import Ne from"react";import{Input as ua}from"@mui/joy";import{motion as ga}from"framer-motion";var fa=ga(ua),Le=Ne.forwardRef((e,o)=>{let{label:t,helperText:n,error:i,style:a,size:r,color:l,disabled:s,required:f,...c}=e,d=Ne.createElement(fa,{required:f,color:i?"danger":l,size:r,disabled:s,slotProps:{input:{ref:o,...c.slotProps?.input},...c.slotProps},...c});return t?Ne.createElement(F,{required:f,color:l,size:r,error:i,disabled:s},Ne.createElement(B,null,t),d,n&&Ne.createElement(w,null,n)):d});Le.displayName="Input";var Z=Le;import ha from"intl-messageformat";var Ca={AED:2,ALL:2,AMD:2,ANG:2,AOA:2,ARS:2,AUD:2,AWG:2,AZN:2,BAM:2,BBD:2,BDT:2,BGN:2,BHD:3,BMD:2,BND:2,BOB:2,BRL:2,BSD:2,BWP:2,BYN:2,BZD:2,CAD:2,CHF:2,CLP:2,CNH:2,CNY:2,COP:2,CRC:2,CUP:2,CVE:0,CZK:2,DJF:0,DKK:2,DOP:2,DZD:2,EGP:2,ETB:2,EUR:2,FJD:2,FKP:2,GBP:2,GEL:2,GHS:2,GIP:2,GMD:2,GNF:0,GTQ:2,GYD:2,HKD:2,HNL:2,HTG:2,HUF:2,IDR:0,ILS:2,INR:2,IQD:3,ISK:2,JMD:2,JOD:3,JPY:0,KES:2,KGS:2,KHR:2,KMF:0,KRW:0,KWD:3,KYD:2,KZT:2,LAK:2,LBP:2,LKR:2,LYD:3,MAD:2,MDL:2,MKD:2,MMK:2,MNT:2,MOP:2,MRU:2,MUR:2,MVR:2,MWK:2,MXN:2,MYR:2,MZN:2,NAD:2,NGN:2,NIO:2,NOK:2,NPR:2,NZD:2,OMR:3,PAB:2,PEN:2,PGK:2,PHP:2,PKR:2,PLN:2,PYG:0,QAR:2,RON:2,RSD:2,RUB:2,RWF:0,SAR:2,SBD:2,SCR:2,SEK:2,SGD:2,SHP:2,SLE:2,SOS:2,SRD:2,STN:2,SVC:2,SZL:2,THB:2,TND:3,TOP:2,TRY:2,TTD:2,TWD:2,TZS:2,UAH:2,UGX:0,USD:2,UYU:2,UZS:2,VEF:2,VND:0,VUV:0,WST:2,XAF:0,XCD:2,XOF:0,XPF:0,YER:2,ZAR:2,ZMW:2},Ft=(e="USD")=>{let[o,t,n,...i]=new ha(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split(""),a=Ca[e];return{symbol:`${o} `,thousandSeparator:t,decimalSeparator:n,placeholder:n?`${o} 0${n}${Array.from(Array(a)).map(()=>0).join("")}`:`${o} 0`,fixedDecimalScale:!!n,decimalScale:a}};var Da=ne.forwardRef(function(o,t){let{onChange:n,...i}=o;return ne.createElement(xa,{...i,onValueChange:({value:a})=>{n?.({target:{name:o.name,value:a}})},valueIsNumericString:!0,getInputRef:t,allowNegative:!1})}),Nt=ne.forwardRef(function(o,t){let{currency:n="USD",max:i=1e5,name:a,onChange:r,label:l,error:s,helperText:f,required:c,disabled:d,useMinorUnit:b,...m}=o,{symbol:C,thousandSeparator:u,decimalSeparator:p,placeholder:v,fixedDecimalScale:M,decimalScale:T}=Ft(n),[P,g]=Bt(o.value),[h,k]=Bt(!!i&&!!o.value&&o.value>i),D=ya(()=>P&&b?P/Math.pow(10,T):P,[P,b]),z=ba(oe=>{let te=Number(b?oe.target.value?.replace(p,""):oe.target.value);g(te),r?.({...oe,target:{name:a,value:te}}),i&&te>i?k(!0):k(!1)},[]),q=ne.createElement(Z,{...m,size:"sm",ref:t,value:D,placeholder:v,onChange:z,disabled:d,required:c,color:s||h?"danger":o.color,slotProps:{input:{component:Da,decimalSeparator:p,thousandSeparator:u,prefix:C,fixedDecimalScale:M,decimalScale:T}},sx:{fontFamily:"monospace"}});return l?ne.createElement(F,{size:"sm",disabled:d,required:c,error:s||h},ne.createElement(B,null,l),q,h?ne.createElement(w,null,new va(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:i})):f&&ne.createElement(w,null,f)):q});import y,{useCallback as de,useEffect as wo,useMemo as ce,useRef as wa,useState as Aa}from"react";import{styled as St,LinearProgress as Ia}from"@mui/joy";import Fa from"@mui/icons-material/esm/ChevronLeft.js";import Ba from"@mui/icons-material/esm/ChevronRight.js";import{Sheet as Ma}from"@mui/joy";import{motion as ka}from"framer-motion";var Pa=ka(Ma),Se=Pa;Se.displayName="Sheet";var W=Se;import K from"react";import{Table as Ta}from"@mui/joy";var He=e=>{let{children:o,...t}=e;return K.createElement(Ta,{...t},o)};He.displayName="Table";function Po(e){let{headCells:o,showCheckbox:t,onCheckboxChange:n,slots:{checkbox:i=Be}={},slotProps:{checkbox:a={}}={}}=e;return K.createElement("thead",null,K.createElement("tr",null,t&&K.createElement("th",{style:{width:"40px",textAlign:"center"}},K.createElement(i,{onChange:n,...a})),o.map(r=>K.createElement("th",{key:r.label,style:{width:r.width,minWidth:r.minWidth,maxWidth:r.maxWidth,textAlign:r.numeric?"right":"left"}},r.label))))}Po.displayName="TableHead";function To(e){let{rows:o,cellOrder:t,rowOptions:n,showCheckbox:i,onCheckboxChange:a,slots:{checkbox:r=Be}={},slotProps:{checkbox:l={}}={}}=e;return K.createElement("tbody",null,o.map((s,f)=>K.createElement("tr",{key:f},i&&K.createElement("td",{style:{textAlign:"center"}},K.createElement(r,{onChange:c=>a?.(c,f),...l})),t.map(c=>K.createElement("td",{key:c,style:{textAlign:n?.[c]?.numeric?"right":"left"}},s[c])))))}To.displayName="TableBody";var Lt=St("tr",{name:"DataTable",slot:"overlayWrapper"})({position:"sticky",top:"calc(var(--unstable_TableCell-height, 32px))",left:0,right:0,zIndex:1,"& > td":{height:0,padding:0,border:"none !important"}}),oo=e=>"Intl"in window?new Intl.NumberFormat().format(e):e;function Na(e){let{paginationModel:{page:o,pageSize:t},rowCount:n,onPageChange:i}=e,a=1,r=Math.ceil(n/t),l=[o-2,o-1].filter(d=>d>1),s=[o+1,o+2].filter(d=>d<=r-1),f=r>1&&o<r-3,c=r>1&&o>4;return y.createElement(V,{direction:"row",spacing:1,sx:{pt:1,pb:1},justifyContent:"end",alignItems:"center"},y.createElement(V,{direction:"row",spacing:.5,alignItems:"center"},y.createElement(L,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-1),disabled:o===a,"aria-label":"Previous page"},y.createElement(Fa,null)),o!==a&&y.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(a)},a),c&&y.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-3)},"..."),l.map(d=>y.createElement(I,{key:d,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(d)},d)),y.createElement(I,{variant:"soft",size:"sm"},o),s.map(d=>y.createElement(I,{key:d,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(d)},d)),f&&y.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+3)},"..."),o!==r&&y.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(r)},r),y.createElement(L,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+1),disabled:o===r,"aria-label":"Next page"},y.createElement(Ba,null))))}var La=e=>y.createElement(je,{sx:{position:"absolute",top:0,right:0,bottom:0,width:"4px",cursor:"col-resize"},onMouseDown:o=>{let t=o.clientX,n=e.current?.getBoundingClientRect().width,i=r=>{n&&t&&(e.current.style.width=`${n+(r.clientX-t)}px`)},a=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",a)}}),Sa=St("span",{name:"DataTable",slot:"headCellAsterisk"})(({theme:e})=>({color:"var(--ceed-palette-danger-500)",marginLeft:e.spacing(.5)})),Ha=e=>{let o=wa(null),t={width:e.width,minWidth:e.minWidth??"50px",maxWidth:e.maxWidth,textAlign:e.type==="number"?"end":"start",position:e.stickyHeader?void 0:"relative"},n=e.resizable??!0?La(o):null;return y.createElement("th",{ref:o,key:e.field,style:t},e.headerName??e.field,e.required&&y.createElement(Sa,null,"*"),n)};function Ea({rows:e,columns:o,rowCount:t,pagination:n,paginationMode:i,paginationModel:a,onPaginationModelChange:r,selectionModel:l=[],onSelectionModelChange:s,getId:f,isTotalSelected:c}){let[d,b]=Aa(a?.page||1),m=a?.pageSize||20,C=de((g,h)=>f?.(g)??g?.id??`${(h||0)+(d-1)*m}`,[f??d,m]),u=ce(()=>new Set(l),[l]),p=ce(()=>!n||i==="server"?e:e.slice((d-1)*m,(d-1)*m+m),[e,d,m,i,n]),v=ce(()=>p.length>0&&p.every((g,h)=>u.has(C(g,h))),[p,u,d,m,C]),M=t||e.length,T=ce(()=>c??(M>0&&l.length===M),[c,l,M]),P=de(g=>{b(g),r?.({page:g,pageSize:m})},[r]);return wo(()=>{P(1)},[M]),wo(()=>{let g=Math.max(1,Math.ceil(M/m));d>g&&P(g)},[d,M,m]),wo(()=>{s?.([])},[d]),{rowCount:M,page:d,pageSize:m,onPaginationModelChange:P,getId:C,HeadCell:Ha,dataInPage:p,isAllSelected:v,isTotalSelected:T,isSelectedRow:de(g=>u.has(g),[u]),onAllCheckboxChange:de(()=>{s?.(v?[]:p.map(C))},[v,p,s]),onCheckboxChange:de((g,h)=>{if(u.has(h)){let k=l.filter(D=>D!==h);s?.(k)}else{let k=[...l,h];s?.(k)}},[l,s]),columns:ce(()=>o||Object.keys(e[0]||{}).map(g=>({field:g})),[e,o]),onTotalSelect:de(()=>{s?.(T?[]:e.map(C),!T)},[T,e,s])}}function Ao(e){let{rows:o,checkboxSelection:t,selectionModel:n,onSelectionModelChange:i,rowCount:a,columns:r,onPaginationModelChange:l,pagination:s,paginationMode:f,paginationModel:c,loading:d,slots:{checkbox:b=Be,toolbar:m,footer:C,loadingOverlay:u=()=>y.createElement(Ia,{value:8,variant:"plain"})}={},slotProps:{checkbox:p={},toolbar:v,background:M={}}={},...T}=e,{columns:P,isAllSelected:g,isSelectedRow:h,onAllCheckboxChange:k,onCheckboxChange:D,getId:z,rowCount:q,page:oe,pageSize:te,onPaginationModelChange:J,dataInPage:Y,isTotalSelected:R,onTotalSelect:mt,HeadCell:dr}=Ea(e),cr=ce(()=>({page:oe,pageSize:te}),[oe,te]);return y.createElement(je,null,y.createElement(V,{direction:"row",sx:{pt:1,pb:1},justifyContent:"space-between",alignItems:"center"},!!t&&y.createElement(V,{direction:"row",spacing:1},!g&&y.createElement(U,{level:"body-xs"},oo(n?.length||0)," items selected"),g&&!R&&y.createElement(V,{direction:"row",spacing:1,alignItems:"center"},y.createElement(U,{level:"body-xs"},"All ",oo(n?.length||0)," items on this page are selected."),y.createElement(I,{size:"sm",variant:"plain",onClick:mt},"Select all ",oo(q??o.length)," items")),R&&y.createElement(V,{direction:"row",spacing:1,alignItems:"center"},y.createElement(U,{level:"body-xs"},"All ",oo(q??o.length)," items are selected."),y.createElement(I,{size:"sm",variant:"plain",color:"danger",onClick:mt},"Cancel"))),m&&y.createElement(m,{...v||{}})),y.createElement(W,{variant:"outlined",sx:{overflow:"auto",width:"100%",boxShadow:"sm",borderRadius:"sm"},...M},y.createElement(He,{...T},y.createElement("thead",null,y.createElement("tr",null,t&&y.createElement("th",{style:{width:"40px",textAlign:"center"}},y.createElement(b,{onChange:k,checked:g,indeterminate:(n||[]).length>0&&!g,...p})),P.map(ie=>y.createElement(dr,{key:ie.field,stickyHeader:e.stickyHeader,...ie})))),y.createElement("tbody",null,y.createElement(Lt,null,!!d&&y.createElement("td",null,y.createElement(je,{sx:{position:"absolute",top:0,left:0,right:0}},y.createElement(u,null)))),y.createElement(Lt,null),Y.map((ie,ur)=>{let se=z(ie,ur);return y.createElement("tr",{key:se,role:t?"checkbox":void 0,tabIndex:t?-1:void 0,onClick:t?j=>D(j,se):void 0,"aria-checked":t?h(se):void 0},t&&y.createElement("th",{scope:"row",style:{textAlign:"center"}},y.createElement(b,{onChange:j=>D(j,se),checked:h(se),...p})),P.map(j=>y.createElement("td",{key:j.field,style:{textAlign:j.type&&["number","date"].includes(j.type)?"end":"start"}},j.renderCell?.({row:ie,value:ie[j.field],id:se})??ie[j.field])))})),C&&y.createElement(C,null))),te<q&&s&&y.createElement(Na,{paginationModel:cr,rowCount:q,onPageChange:J}))}Ao.displayName="DataTable";import S,{forwardRef as Ua,useCallback as Ht,useEffect as Et,useImperativeHandle as Ra,useRef as $a,useState as Ot}from"react";import{IMaskInput as Ga,IMask as Io}from"react-imask";import Wa from"@mui/icons-material/esm/CalendarToday.js";import{styled as Fo}from"@mui/joy";import{FocusTrap as qa,ClickAwayListener as _a,Popper as Ka}from"@mui/base";import{DialogActions as Oa,styled as za}from"@mui/joy";import{motion as Va}from"framer-motion";var Ya=Va(Oa),Ja=za(Ya)(({theme:e})=>({padding:e.spacing(2),gap:e.spacing(2),flexDirection:"row",justifyContent:"flex-end"})),Ee=Ja;Ee.displayName="DialogActions";var X=Ee;var ja=Fo(Ka,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Za=Fo(W,{name:"DatePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),Xa=Fo("div",{name:"DatePicker",slot:"container"})({width:"100%"}),zt=e=>{let o=`${e.getDate()}`,t=`${e.getMonth()+1}`,n=e.getFullYear();return Number(o)<10&&(o="0"+o),Number(t)<10&&(t="0"+t),[n,t,o].join("/")},Qa=S.forwardRef(function(o,t){let{onChange:n,...i}=o;return S.createElement(Ga,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d",blocks:{d:{mask:Io.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Io.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Io.MaskedRange,from:1900,to:9999}},format:zt,parse:a=>{let r=a.split("/");return new Date(Number(r[0]),Number(r[1])-1,Number(r[2]))},autofix:"pad",overwrite:!0})}),Vt=Ua((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:l,maxDate:s,disableFuture:f,disablePast:c,required:d,...b}=e,m=$a(null),[C,u]=Ot(e.value||""),[p,v]=Ot(null),M=!!p;Et(()=>{u(e.value||"")},[e.value]),Et(()=>{p||m.current?.blur()},[p,m]),Ra(o,()=>m.current,[m.current]);let T=Ht(h=>{u(h.target.value),t?.(h)},[]),P=Ht(h=>{v(p?null:h.currentTarget),setTimeout(()=>{m.current?.focus()},0)},[p,v,m]),g=S.createElement(Xa,null,S.createElement(qa,{open:!0},S.createElement(S.Fragment,null,S.createElement(Z,{...b,color:a?"danger":b.color,ref:m,size:"sm",value:C,onChange:T,placeholder:"YYYY/MM/DD",disabled:n,required:d,slotProps:{input:{component:Qa,ref:m}},sx:{fontFamily:"monospace"},endDecorator:S.createElement(L,{variant:"plain",onClick:P},S.createElement(Wa,null))}),M&&S.createElement(_a,{onClickAway:()=>v(null)},S.createElement(ja,{id:"date-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:h=>h.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},S.createElement(Za,{tabIndex:-1,role:"presentation"},S.createElement(re,{value:Number.isNaN(new Date(C).getTime())?void 0:[new Date(C),void 0],onChange:([h])=>{T({target:{name:e.name,value:zt(h)}}),v(null)},minDate:l?new Date(l):void 0,maxDate:s?new Date(s):void 0,disableFuture:f,disablePast:c}),S.createElement(X,{sx:{p:1}},S.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{T({target:{name:e.name,value:""}}),v(null)}},"Clear"))))))));return i?S.createElement(F,{required:d,disabled:n,error:a,size:"sm"},S.createElement(B,null,i),g,r&&S.createElement(w,null,r)):g});import H,{forwardRef as ei,useCallback as Bo,useEffect as Yt,useImperativeHandle as oi,useMemo as ti,useRef as ri,useState as Jt}from"react";import{IMaskInput as ni,IMask as No}from"react-imask";import ai from"@mui/icons-material/esm/CalendarToday.js";import{styled as Lo}from"@mui/joy";import{FocusTrap as ii,ClickAwayListener as li,Popper as si}from"@mui/base";var mi=Lo(si,{name:"DateRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),pi=Lo(W,{name:"DateRangePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({zIndex:e.zIndex.tooltip,width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),di=Lo("div",{name:"DateRangePicker",slot:"container"})({width:"100%"}),Ut=([e,o])=>{let t=n=>{let i=`${n.getDate()}`,a=`${n.getMonth()+1}`,r=n.getFullYear();return Number(i)<10&&(i="0"+i),Number(a)<10&&(a="0"+a),[r,a,i].join("/")};return[t(e),o?t(o):""].join(" - ")},Rt=e=>{let o=e.split(" - ")[0]||"",t=e.split(" - ")[1]||"",n=o.split("/"),i=t.split("/");return[new Date(Number(n[0]),Number(n[1])-1,Number(n[2])),new Date(Number(i[0]),Number(i[1])-1,Number(i[2]))]},ci=H.forwardRef(function(o,t){let{onChange:n,...i}=o;return H.createElement(ni,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d - Y/`m/`d",blocks:{d:{mask:No.MaskedRange,from:1,to:31,maxLength:2},m:{mask:No.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:No.MaskedRange,from:1900,to:9999}},format:Ut,parse:Rt,autofix:"pad",overwrite:!0})}),So=ei((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:l,maxDate:s,disableFuture:f,disablePast:c,required:d,...b}=e,m=ri(null),[C,u]=Jt(e.value||""),[p,v]=Jt(null),M=!!p,T=ti(()=>C?Rt(C):void 0,[C]);Yt(()=>{u(e.value||"")},[e.value]),Yt(()=>{p||m.current?.blur()},[p,m]),oi(o,()=>m.current,[m.current]);let P=Bo(D=>{u(D.target.value),t?.(D)},[t]),g=Bo(D=>{v(p?null:D.currentTarget),m.current?.focus()},[p,v,m]),h=Bo(([D,z])=>{!D||!z||(u(Ut([D,z])),v(null))},[u,v,m]),k=H.createElement(di,null,H.createElement(ii,{open:!0},H.createElement(H.Fragment,null,H.createElement(Z,{...b,color:a?"danger":b.color,ref:o,size:"sm",value:C,onChange:P,disabled:n,required:d,placeholder:"YYYY/MM/DD - YYYY/MM/DD",slotProps:{input:{component:ci,ref:m}},sx:{fontFamily:"monospace"},endDecorator:H.createElement(L,{variant:"plain",onClick:g},H.createElement(ai,null))}),M&&H.createElement(li,{onClickAway:()=>v(null)},H.createElement(mi,{id:"date-range-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:D=>D.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},H.createElement(pi,{tabIndex:-1,role:"presentation"},H.createElement(re,{rangeSelection:!0,defaultValue:T,onChange:h,minDate:l?new Date(l):void 0,maxDate:s?new Date(s):void 0,disableFuture:f,disablePast:c}),H.createElement(X,{sx:{p:1}},H.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{u(""),v(null)}},"Clear"))))))));return i?H.createElement(F,{required:d,disabled:n,error:a,size:"sm"},H.createElement(B,null,i),k,r&&H.createElement(w,null,r)):k});So.displayName="DateRangePicker";import{DialogContent as ui,styled as gi}from"@mui/joy";import{motion as fi}from"framer-motion";var hi=fi(ui),Ci=gi(hi)(({theme:e})=>({padding:e.spacing(0,6,5),overflow:"auto"})),Oe=Ci;Oe.displayName="DialogContent";var to=Oe;import{DialogTitle as bi,styled as yi}from"@mui/joy";import{motion as vi}from"framer-motion";var xi=vi(bi),Di=yi(xi)(({theme:e})=>({padding:e.spacing(4,6)})),ze=Di;ze.displayName="DialogTitle";var ro=ze;import le from"react";import no from"react";import{Modal as Mi,ModalDialog as ki,ModalClose as Pi,ModalOverflow as Ti,styled as $t}from"@mui/joy";import{motion as Ho}from"framer-motion";var wi=Ho(Mi),Eo=wi;Eo.displayName="Modal";var Gt=$t(ki)({padding:0}),Ve=Gt;Ve.displayName="ModalDialog";var Ai=$t(Ho(Pi))(({theme:e})=>({top:e.spacing(3),right:e.spacing(6)})),ao=Ai;ao.displayName="ModalClose";var Ii=Ho(Ti),Oo=Ii;Oo.displayName="ModalOverflow";function zo(e){let{title:o,children:t,...n}=e;return no.createElement(Gt,{...n},no.createElement(ao,null),no.createElement(ro,null,o),no.createElement(to,null,t))}zo.displayName="ModalFrame";import{styled as Vo}from"@mui/joy";var Fi=Vo("div",{name:"Dialog",slot:"Container"})(({theme:e})=>({position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",overflow:"hidden",backgroundColor:"transparent",pointerEvents:"none",zIndex:e.zIndex.modal})),Bi=Vo(Ve,{name:"Dialog",slot:"Root"})({padding:0}),Ni=Vo("div",{name:"Dialog",slot:"Dimmer"})({position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent"}),Yo=le.forwardRef((e,o)=>{let{title:t,children:n,actions:i,fullscreen:a,...r}=e;return le.createElement(Fi,null,le.createElement(Ni,null),le.createElement(Bi,{layout:a?"fullscreen":"center",ref:o,...r},le.createElement(ro,null,t),le.createElement(to,null,n),le.createElement(X,null,i)))});Yo.displayName="DialogFrame";import Li from"react";import{Divider as Si}from"@mui/joy";import{motion as Hi}from"framer-motion";var Ei=Hi(Si),Ye=e=>Li.createElement(Ei,{...e});Ye.displayName="Divider";import Oi from"react";import{Drawer as zi}from"@mui/joy";import{motion as Vi}from"framer-motion";var Yi=Vi(zi),Jo=e=>{let{children:o,...t}=e;return Oi.createElement(Yi,{...t,slotProps:{...t.slotProps,content:{...t.slotProps?.content,sx:{bgcolor:"transparent",p:{md:3,sm:0},boxShadow:"none"}}}},o)};Jo.displayName="InsetDrawer";import N,{useCallback as io,useEffect as Ji,useMemo as Wt,useRef as qt,useState as lo}from"react";import{styled as ae}from"@mui/joy";import Ui from"@mui/icons-material/esm/CloudUploadRounded.js";import Ri from"@mui/icons-material/esm/UploadFileRounded.js";import $i from"@mui/icons-material/esm/ClearRounded.js";import{combine as Gi}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js";import{dropTargetForExternal as Wi,monitorForExternal as qi}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js";import{containsFiles as _t,getFiles as _i}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js";import{preventUnhandled as Kt}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js";var Ki=ae("input")({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),ji=ae(V,{name:"Uploader",slot:"PreviewRoot"})({}),Zi=ae(Ie,{name:"Uploader",slot:"UploadCard"})(({theme:e})=>({padding:e.spacing(2.5),border:`1px solid ${e.palette.neutral.outlinedBorder}`})),Xi=ae(Ri,{name:"Uploader",slot:"UploadFileIcon"})(({theme:e})=>({color:e.palette.neutral[400],width:"32px",height:"32px"})),Qi=ae($i,{name:"Uploader",slot:"ClearIcon"})(({theme:e})=>({color:e.palette.neutral.plainColor,width:"18px",height:"18px"})),el=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],jt=e=>{let o=e==0?0:Math.floor(Math.log(e)/Math.log(1024)),t=e/Math.pow(1024,o),n=el[o];return Intl.NumberFormat("en-us",{style:"unit",unit:n,unitDisplay:"narrow"}).format(t)},ol=e=>{let{files:o,uploaded:t,onDelete:n}=e;return N.createElement(ji,{gap:1},[...t,...o].map(i=>N.createElement(Zi,{key:i.name,size:"sm",color:"neutral"},N.createElement(V,{direction:"row",alignItems:"center",gap:2},N.createElement(Xi,null),N.createElement(V,{flex:"1"},N.createElement(U,{level:"body-sm",textColor:"common.black"},i.name),!!i.size&&N.createElement(U,{level:"body-xs",fontWeight:"300",lineHeight:"1.33",textColor:"text.tertiary"},jt(i.size))),N.createElement(L,{onClick:()=>n?.(i)},N.createElement(Qi,null))))))},tl=ae(V,{name:"Uploader",slot:"root"})(({theme:e})=>({gap:e.spacing(2)})),rl=ae(W,{name:"Uploader",slot:"dropZone"})(({theme:e,state:o,error:t})=>({width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:e.spacing(5),gap:e.spacing(4),cursor:"pointer",backgroundColor:e.palette.background.surface,border:t?`1px solid ${e.palette.danger.outlinedBorder}`:o==="idle"?`1px solid ${e.palette.neutral.outlinedBorder}`:`1px solid ${e.palette.primary.outlinedBorder}`})),nl=ae(Ui,{name:"Uploader",slot:"iconContainer"})(({theme:e,state:o,error:t})=>({color:t?`rgba(${e.vars.palette.danger.mainChannel} / 0.6)`:o==="over"?`rgba(${e.palette.primary.mainChannel} / 0.6)`:e.palette.neutral.softActiveBg,width:"32px",height:"32px"})),Uo=N.memo(e=>{let{accept:o,maxCount:t,name:n,size:i,maxSize:a,onChange:r,label:l,helperText:s,disabled:f,required:c,onDelete:d}=e,b=qt(null),m=qt(null),[C,u]=lo(),[p,v]=lo([]),[M,T]=lo(e.uploaded||[]),[P,g]=lo("idle"),h=Wt(()=>!!C||e.error,[e.error,C]),k=Wt(()=>!t||t&&[...M,...p].length!==t,[p,t,M]),D=io(J=>{try{a&&J.forEach(R=>{if(R.size>a)throw new Error(`File size exceeds the limit: ${jt(a)}`)});let Y=[...p,...J];if(t&&[...M,...Y].length>t)throw new Error(`File count exceeds the limit: ${t}`);r?.({target:{name:n,value:Y}}),v(Y),u(void 0)}catch(Y){u(Y.message)}},[p,M]);Ji(()=>{let J=b.current;if(J)return Gi(Wi({element:J,canDrop:_t,onDragEnter:()=>g("over"),onDragLeave:()=>g("potential"),onDrop:async({source:Y})=>{let R=await _i({source:Y});D(R)}}),qi({canMonitor:_t,onDragStart:()=>{g("potential"),Kt.start()},onDrop:()=>{g("idle"),Kt.stop()}}))});let z=io(J=>{let Y=Array.from(J.target.files||[]);D(Y)},[D]),q=io(J=>{J instanceof File?v(Y=>(r?.({target:{name:n,value:Y.filter(R=>R!==J)}}),Y.filter(R=>R!==J))):(T(Y=>Y.filter(R=>R.id!==J.id)),d?.(J)),u(void 0)},[]),oe=io(()=>{m.current?.click()},[]);return N.createElement(tl,null,k&&N.createElement(F,{size:i,error:!!h,disabled:f,required:c},l&&N.createElement(B,null,l),N.createElement(rl,{state:P,error:h,ref:b,onClick:oe},N.createElement(V,{alignItems:"center",gap:1},N.createElement(nl,{state:P,error:h})),N.createElement(Ki,{type:"file",onChange:z,multiple:!0,accept:o,disabled:f,required:c,ref:m})),C?N.createElement(w,null,C):s&&N.createElement(w,null,s)),[...M,...p].length>0&&N.createElement(ol,{files:p,uploaded:M,onDelete:q}))});Uo.displayName="Uploader";import{Grid as al}from"@mui/joy";import{motion as il}from"framer-motion";var ll=il(al),Ro=ll;Ro.displayName="Grid";import ee from"react";import sl from"react-markdown";import{Link as ml}from"@mui/joy";var $o=e=>{let{children:o,color:t,textColor:n,defaultLevel:i="body-md",markdownOptions:a,...r}=e;return ee.createElement($,{color:t,textColor:n,...r},ee.createElement(sl,{...a,children:o,components:{h1:({children:l})=>ee.createElement($,{color:t,textColor:n,level:"h1"},l),h2:({children:l})=>ee.createElement($,{color:t,textColor:n,level:"h2"},l),h3:({children:l})=>ee.createElement($,{color:t,textColor:n,level:"h3"},l),h4:({children:l})=>ee.createElement($,{color:t,textColor:n,level:"h4"},l),p:({children:l})=>ee.createElement($,{color:t,textColor:n,level:i},l),a:({children:l,href:s})=>ee.createElement(ml,{href:s},l),hr:()=>ee.createElement(Ye,null),...a?.components}}))};$o.displayName="Markdown";import E,{forwardRef as pl,useCallback as Zt,useEffect as Xt,useImperativeHandle as dl,useRef as cl,useState as Qt}from"react";import{IMaskInput as ul,IMask as er}from"react-imask";import gl from"@mui/icons-material/esm/CalendarToday.js";import{styled as Wo}from"@mui/joy";import{FocusTrap as fl,ClickAwayListener as hl,Popper as Cl}from"@mui/base";var bl=Wo(Cl,{name:"MonthPicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),yl=Wo(W,{name:"MonthPicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),vl=Wo("div",{name:"MonthPicker",slot:"container"})({width:"100%"}),or=e=>{let o=`${e.getMonth()+1}`,t=e.getFullYear();return Number(o)<10&&(o="0"+o),[t,o].join("/")},Go=e=>(t=>{if(!/^\d\d\d\d\/(0[1-9]|1[012])(\/(0[1-9]|[23][0-9]))?$/.test(t))return t;let n=t.split("/"),i=new Date(Number(n[0]),Number(n[1])-1);return or(i)})(e),tr=e=>e.split(" - ")[0]||"",xl=E.forwardRef(function(o,t){let{onChange:n,...i}=o;return E.createElement(ul,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/m",blocks:{m:{mask:er.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:er.MaskedRange,from:1900,to:9999}},format:Go,parse:tr})}),rr=pl((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:l,maxDate:s,disableFuture:f,disablePast:c,required:d,...b}=e,m=cl(null),[C,u]=Qt(e.value||""),[p,v]=Qt(null),M=!!p;Xt(()=>{u(e.value?Go(tr(e.value)):"")},[e.value]),Xt(()=>{p||m.current?.blur()},[p,m]),dl(o,()=>m.current,[m.current]);let T=Zt(h=>{u(h.target.value),t?.(h)},[]),P=Zt(h=>{v(p?null:h.currentTarget),m.current?.focus()},[p,v,m]),g=E.createElement(vl,null,E.createElement(fl,{open:!0},E.createElement(E.Fragment,null,E.createElement(Z,{...b,color:a?"danger":b.color,ref:m,size:"sm",value:C,onChange:T,placeholder:"YYYY/MM",disabled:n,required:d,slotProps:{input:{component:xl,ref:m}},sx:{fontFamily:"monospace"},endDecorator:E.createElement(L,{variant:"plain",onClick:P},E.createElement(gl,null))}),M&&E.createElement(hl,{onClickAway:()=>v(null)},E.createElement(bl,{id:"date-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:h=>h.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},E.createElement(yl,{tabIndex:-1,role:"presentation"},E.createElement(re,{view:"month",views:["month"],value:Number.isNaN(new Date(C).getTime())?void 0:[new Date(C),void 0],onChange:([h])=>{T({target:{name:e.name,value:Go(or(h))}}),v(null)},minDate:l?new Date(l):void 0,maxDate:s?new Date(s):void 0,disableFuture:f,disablePast:c}),E.createElement(X,{sx:{p:1}},E.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{T({target:{name:e.name,value:""}}),v(null)}},"Clear"))))))));return i?E.createElement(F,{required:d,disabled:n,error:a,size:"sm"},E.createElement(B,null,i),g,r&&E.createElement(w,null,r)):g});import O,{forwardRef as Dl,useCallback as qo,useEffect as nr,useImperativeHandle as Ml,useMemo as kl,useRef as Pl,useState as ar}from"react";import{IMaskInput as Tl,IMask as ir}from"react-imask";import wl from"@mui/icons-material/esm/CalendarToday.js";import{styled as Zo}from"@mui/joy";import{FocusTrap as Al,ClickAwayListener as Il,Popper as Fl}from"@mui/base";var Bl=Zo(Fl,{name:"MonthRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Nl=Zo(W,{name:"MonthRangePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({zIndex:e.zIndex.tooltip,width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),Ll=Zo("div",{name:"MonthRangePicker",slot:"container"})({width:"100%"}),_o=e=>{let o=`${e.getMonth()+1}`,t=e.getFullYear();return Number(o)<10&&(o="0"+o),[t,o].join("/")},Ko=([e,o])=>{let t=n=>{if(!/^\d\d\d\d\/(0[1-9]|1[012])(\/(0[1-9]|[23][0-9]))?$/.test(n))return n;let i=n.split("/"),a=new Date(Number(i[0]),Number(i[1])-1);return _o(a)};return[t(e),t(o)].join(" - ")},jo=e=>{let o=e.split(" - ")[0]||"",t=e.split(" - ")[1]||"";return[o,t]},Sl=O.forwardRef(function(o,t){let{onChange:n,...i}=o;return O.createElement(Tl,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/m - Y/m",blocks:{m:{mask:ir.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:ir.MaskedRange,from:1900,to:9999}},format:Ko,parse:jo})}),Xo=Dl((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:l,maxDate:s,disableFuture:f,disablePast:c,required:d,...b}=e,m=Pl(null),[C,u]=ar(""),[p,v]=ar(null),M=!!p,T=kl(()=>C?jo(C).map(D=>new Date(D)):void 0,[C]);nr(()=>{u(e.value?Ko(jo(e.value)):"")},[e.value]),nr(()=>{p||m.current?.blur()},[p,m]),Ml(o,()=>m.current,[m.current]);let P=qo(D=>{u(D.target.value),t?.(D)},[t]),g=qo(D=>{v(p?null:D.currentTarget),m.current?.focus()},[p,v,m]),h=qo(([D,z])=>{!D||!z||(u(Ko([_o(D),_o(z)])),v(null))},[u,v,m]),k=O.createElement(Ll,null,O.createElement(Al,{open:!0},O.createElement(O.Fragment,null,O.createElement(Z,{...b,color:a?"danger":b.color,ref:o,size:"sm",value:C,onChange:P,disabled:n,required:d,placeholder:"YYYY/MM - YYYY/MM",slotProps:{input:{component:Sl,ref:m}},sx:{fontFamily:"monospace"},endDecorator:O.createElement(L,{variant:"plain",onClick:g},O.createElement(wl,null))}),M&&O.createElement(Il,{onClickAway:()=>v(null)},O.createElement(Bl,{id:"date-range-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:D=>D.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},O.createElement(Nl,{tabIndex:-1,role:"presentation"},O.createElement(re,{view:"month",views:["month"],rangeSelection:!0,defaultValue:T,onChange:h,minDate:l?new Date(l):void 0,maxDate:s?new Date(s):void 0,disableFuture:f,disablePast:c}),O.createElement(X,{sx:{p:1}},O.createElement(I,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{u(""),v(null)}},"Clear"))))))));return i?O.createElement(F,{required:d,disabled:n,error:a,size:"sm"},O.createElement(B,null,i),k,r&&O.createElement(w,null,r)):k});Xo.displayName="MonthRangePicker";import{Radio as Hl,RadioGroup as El}from"@mui/joy";import{motion as lr}from"framer-motion";var Ol=lr(Hl),Je=Ol;Je.displayName="Radio";var zl=lr(El),Ue=zl;Ue.displayName="RadioGroup";import sr from"react";function Qo(e){let{items:o,...t}=e;return sr.createElement(Ue,{...t},o.map(n=>sr.createElement(Je,{key:`${n.value}`,value:n.value,label:n.label})))}Qo.displayName="RadioList";import Re,{useMemo as Vl}from"react";import{Select as Yl,Option as Jl}from"@mui/joy";import{motion as Ul}from"framer-motion";var Rl=Ul(Jl),so=Rl;so.displayName="Option";function et(e){let{label:o,helperText:t,error:n,size:i,color:a,disabled:r,required:l,onChange:s,...f}=e,c=Vl(()=>e.options.map(m=>typeof m!="object"?{value:m,label:m}:m),[e.options]),b=Re.createElement(Yl,{...f,required:l,disabled:r,size:i,color:n?"danger":a,onChange:(m,C)=>{let u=m||{target:{}},p={...u,target:{name:u.target?.name||e.name,value:C||void 0}};s?.(p)}},c.map(m=>Re.createElement(so,{key:m.value,value:m.value},m.label)));return o?Re.createElement(F,{required:l,disabled:r,size:i,color:a,error:n},Re.createElement(B,null,o),b,t&&Re.createElement(w,null,t)):b}et.displayName="Select";import mr from"react";import{Switch as $l,styled as Gl,switchClasses as Wl}from"@mui/joy";import{motion as pr}from"framer-motion";var ql=pr($l),_l=Gl(pr.div)({"--Icon-fontSize":"calc(var(--Switch-thumbSize) * 0.75)",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",left:"var(--Switch-thumbOffset)",width:"var(--Switch-thumbWidth)",height:"var(--Switch-thumbSize)",borderRadius:"var(--Switch-thumbRadius)",boxShadow:"var(--Switch-thumbShadow)",color:"var(--Switch-thumbColor)",backgroundColor:"var(--Switch-thumbBackground)",[`&.${Wl.checked}`]:{left:"unset",right:"var(--Switch-thumbOffset)"}}),Kl=e=>mr.createElement(_l,{...e,layout:!0,transition:jl}),jl={type:"spring",stiffness:700,damping:30},ot=e=>mr.createElement(ql,{...e,slots:{thumb:Kl,...e.slots}});ot.displayName="Switch";import{Tabs as Zl,Tab as Xl,TabList as Ql,TabPanel as es,styled as os,tabClasses as ts}from"@mui/joy";import{motion as mo}from"framer-motion";var rs=mo(Zl),tt=rs;tt.displayName="Tabs";var ns=os(mo(Xl))(({theme:e})=>({[`&:not(.${ts.selected})`]:{color:e.palette.neutral[700]}})),rt=ns;rt.displayName="Tab";var as=mo(Ql),nt=as;nt.displayName="TabList";var is=mo(es),at=is;at.displayName="TabPanel";import po from"react";import{Textarea as ls}from"@mui/joy";import{motion as ss}from"framer-motion";var ms=ss(ls),it=e=>{let{label:o,error:t,helperText:n,color:i,size:a,disabled:r,required:l,minRows:s=2,maxRows:f=4,...c}=e,d=po.createElement(ms,{required:l,disabled:r,color:t?"danger":i,size:a,minRows:s,maxRows:f,...c});return o?po.createElement(F,{required:l,disabled:r,color:i,size:a,error:t},po.createElement(B,null,o),d,n&&po.createElement(w,null,n)):d};it.displayName="Textarea";import co from"react";import{CssBaseline as ps,CssVarsProvider as ds,checkboxClasses as cs,extendTheme as us}from"@mui/joy";var gs=us({cssVarPrefix:"ceed",spacing:4,zIndex:{popup:1500},components:{JoyTable:{defaultProps:{size:"sm",borderAxis:"bothBetween"},styleOverrides:{root:({theme:e})=>({"--TableRow-stripeBackground":e.palette.background.level1,"--TableCell-selectedBackground":e.palette.background.level2,"--TableRow-hoverBackground":e.palette.background.level3,"& tbody tr[aria-checked=false] th":{"--TableCell-headBackground":"transparent"},"& tbody tr[aria-checked=true]:hover th":{"--TableCell-headBackground":"var(--TableRow-hoverBackground)"},"& tbody tr[aria-checked=true]:not(:hover) th":{"--TableCell-headBackground":"var(--TableCell-selectedBackground)"},"& tbody tr[aria-checked=true]:not(:hover) td":{"--TableCell-dataBackground":"var(--TableCell-selectedBackground)"},[`& .${cs.root}`]:{verticalAlign:"middle"}})}},JoyTooltip:{defaultProps:{size:"sm",placement:"top"}}}});function lt(e){return co.createElement(co.Fragment,null,co.createElement(ds,{theme:gs},co.createElement(ps,null),e.children))}lt.displayName="ThemeProvider";import fs from"react";import{Tooltip as hs}from"@mui/joy";import{motion as Cs}from"framer-motion";var bs=Cs(hs),st=e=>fs.createElement(bs,{...e});st.displayName="Tooltip";export{qe as Accordion,We as AccordionDetails,Ge as AccordionSummary,uo as Accordions,go as Alert,mC as AspectRatio,ut as Autocomplete,eC as AutocompleteListbox,oC as AutocompleteOption,aC as Avatar,lC as AvatarGroup,dC as Badge,xe as Box,Co as Breadcrumbs,Te as Button,we as Calendar,Ie as Card,Do as CardActions,vo as CardContent,xo as CardCover,Mo as CardOverflow,Fe as Checkbox,be as Chip,vC as CircularProgress,ko as Container,Nt as CurrencyInput,Ao as DataTable,Vt as DatePicker,So as DateRangePicker,Ee as DialogActions,Oe as DialogContent,Yo as DialogFrame,ze as DialogTitle,Ye as Divider,DC as Drawer,Pe as Dropdown,fe as FormControl,Ce as FormHelperText,he as FormLabel,Ro as Grid,ye as IconButton,Le as Input,Jo as InsetDrawer,kC as LinearProgress,YC as Link,TC as List,AC as ListDivider,FC as ListItem,NC as ListItemButton,SC as ListItemContent,EC as ListItemDecorator,zC as ListSubheader,$o as Markdown,De as Menu,Me as MenuButton,ke as MenuItem,Eo as Modal,ao as ModalClose,Ve as ModalDialog,zo as ModalFrame,Oo as ModalOverflow,rr as MonthPicker,Xo as MonthRangePicker,so as Option,Je as Radio,Ue as RadioGroup,Qo as RadioList,et as Select,Se as Sheet,ZC as Skeleton,UC as Slider,ge as Stack,$C as Step,WC as StepButton,_C as StepIndicator,KC as Stepper,ot as Switch,rt as Tab,nt as TabList,at as TabPanel,He as Table,To as TableBody,Po as TableHead,tt as Tabs,it as Textarea,lt as ThemeProvider,st as Tooltip,$ as Typography,Uo as Uploader,jh as accordionClasses,Zh as accordionDetailsClasses,Qh as accordionSummaryClasses,Xh as accordionsClasses,fh as alertClasses,pC as aspectRatioClasses,tC as autocompleteClasses,rC as autocompleteListboxClasses,nC as autocompleteOptionClasses,iC as avatarClasses,sC as avatarGroupClasses,cC as badgeClasses,hh as boxClasses,uC as breadcrumbsClasses,Ch as buttonClasses,fC as cardActionsClasses,gC as cardClasses,hC as cardContentClasses,CC as cardCoverClasses,bC as cardOverflowClasses,bh as checkboxClasses,yC as chipClasses,xC as circularProgressClasses,Gh as dialogActionsClasses,$h as dialogContentClasses,Rh as dialogTitleClasses,yh as dividerClasses,MC as drawerClasses,Lh as formControlClasses,Hh as formHelperTextClasses,Sh as formLabelClasses,Eh as gridClasses,vh as iconButtonClasses,xh as inputClasses,PC as linearProgressClasses,JC as linkClasses,wC as listClasses,IC as listDividerClasses,LC as listItemButtonClasses,BC as listItemClasses,HC as listItemContentClasses,OC as listItemDecoratorClasses,VC as listSubheaderClasses,Mh as menuButtonClasses,Dh as menuClasses,kh as menuItemClasses,Vh as modalClasses,Yh as modalCloseClasses,Jh as modalDialogClasses,Uh as modalOverflowClasses,Ph as optionClasses,Th as radioClasses,wh as radioGroupClasses,Ah as selectClasses,zh as sheetClasses,XC as skeletonClasses,RC as sliderClasses,Oh as stackClasses,qC as stepButtonClasses,GC as stepClasses,jC as stepperClasses,Ih as switchClasses,_h as tabListClasses,Kh as tabPanelClasses,Fh as tableClasses,qh as tabsClasses,Bh as textareaClasses,Wh as tooltipClasses,Nh as typographyClasses,uh as useColorScheme,ch as useTheme,gh as useThemeProps};
|