@ceed/ads 0.1.2 → 0.1.3

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.
@@ -1,5 +1,20 @@
1
1
  import React from "react";
2
- import { DialogFrameProps } from "../DialogFrame/DialogFrame";
2
+ import ModalDialog from "../ModalDialog";
3
+ /**
4
+ * NOTE: ModalDialog에는 title prop관련 내용이 없다.
5
+ * @see https://mui.com/joy-ui/api/modal-dialog/
6
+ */
7
+ type DialogFrameProps = Omit<React.ComponentProps<typeof ModalDialog>, "title"> & {
8
+ title?: React.ReactNode;
9
+ children: React.ReactNode;
10
+ actions?: React.ReactNode;
11
+ fullscreen?: boolean;
12
+ };
13
+ /**
14
+ * @deprecated v1.0.0에서 완전히 제거될 예정
15
+ */
16
+ declare const DialogFrame: React.ForwardRefExoticComponent<Omit<DialogFrameProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
17
+ export { DialogFrame };
3
18
  declare const MotionModal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
4
19
  onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeClick") => void) | undefined;
5
20
  sx?: import("@mui/joy/styles/types").SxProps | undefined;
@@ -1,24 +1,59 @@
1
1
  import React from "react";
2
- import { ModalFrameProps } from "../ModalFrame";
3
- declare const ModalOverflow: import("framer-motion").CustomDomComponent<{
2
+ import ModalDialog from "../ModalDialog";
3
+ declare const MotionModal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
4
+ onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeClick") => void) | undefined;
4
5
  sx?: import("@mui/joy/styles/types").SxProps | undefined;
5
- } & import("@mui/joy").ModalOverflowSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
+ } & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
7
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
7
- }, "sx" | keyof import("@mui/joy").ModalOverflowSlotsAndSlotProps>>;
8
- export { ModalOverflow };
9
- declare const MotionModal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
8
+ }, "children" | "container" | "sx" | "open" | "onClose" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop" | keyof import("@mui/joy").ModalSlotsAndSlotProps>>;
9
+ /**
10
+ * @deprecated v1.0.0에서 완전히 제거될 예정
11
+ */
12
+ declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
10
13
  onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeClick") => void) | undefined;
11
14
  sx?: import("@mui/joy/styles/types").SxProps | undefined;
12
15
  } & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
16
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
14
17
  }, "children" | "container" | "sx" | "open" | "onClose" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop" | keyof import("@mui/joy").ModalSlotsAndSlotProps>>;
15
- declare function Modal(
18
+ export { Modal };
19
+ declare const ModalClose: import("@emotion/styled").StyledComponent<Omit<{
20
+ color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalClosePropsColorOverrides> | undefined;
21
+ size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").ModalClosePropsSizeOverrides> | undefined;
22
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
23
+ variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalClosePropsVariantOverrides> | undefined;
24
+ } & import("@mui/joy").ModalCloseSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
25
+ ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
26
+ }, "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>, {}, {}>;
27
+ export { ModalClose };
28
+ declare const ModalOverflow: import("framer-motion").CustomDomComponent<{
29
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
30
+ } & import("@mui/joy").ModalOverflowSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
31
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
32
+ }, "sx" | keyof import("@mui/joy").ModalOverflowSlotsAndSlotProps>>;
33
+ export { ModalOverflow };
34
+ /**
35
+ * NOTE: ModalDialog에는 title prop관련 내용이 없다.
36
+ * @see https://mui.com/joy-ui/api/modal-dialog/
37
+ */
38
+ type ModalFrameProps = Omit<React.ComponentProps<typeof ModalDialog>, "title"> & {
39
+ title?: React.ReactNode;
40
+ children: React.ReactNode;
41
+ };
42
+ /**
43
+ * @deprecated v1.0.0에서 완전히 제거될 예정
44
+ */
45
+ declare const ModalFrame: React.ForwardRefExoticComponent<Omit<ModalFrameProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
46
+ export { ModalFrame };
47
+ /**
48
+ * TODO: v1.0.0에서 Modal로 이름 변경 예정
49
+ */
50
+ declare function ModalContainer(
16
51
  /**
17
52
  * NOTE: Modal에는 title prop관련 내용이 없다.
18
53
  * @see https://mui.com/joy-ui/api/modal/
19
54
  */
20
55
  props: Omit<React.ComponentProps<typeof MotionModal>, "title"> & Pick<ModalFrameProps, "title" | "size" | "variant">): React.JSX.Element;
21
- declare namespace Modal {
56
+ declare namespace ModalContainer {
22
57
  var displayName: string;
23
58
  }
24
- export { Modal };
59
+ export { ModalContainer };
@@ -1,39 +1,37 @@
1
1
  export { Accordion, AccordionDetails, Accordions, AccordionSummary, } from "./Accordions";
2
- export { Alert } from "./Alert";
2
+ export { Alert } from './Alert';
3
3
  export { Autocomplete } from "./Autocomplete";
4
4
  export { Box } from "./Box";
5
5
  export { Breadcrumbs } from "./Breadcrumbs";
6
6
  export { Button } from "./Button";
7
7
  export { Calendar } from "./Calendar";
8
- export { Card, CardActions, CardContent, CardCover, CardOverflow, } from "./Card";
8
+ export { Card, CardActions, CardContent, CardCover, CardOverflow } from "./Card";
9
9
  export { Checkbox } from "./Checkbox";
10
- export { Chip } from "./Chip";
10
+ export { Chip } from './Chip';
11
11
  export { Container } from "./Container";
12
- export { CurrencyInput } from "./CurrencyInput";
12
+ export { CurrencyInput } from './CurrencyInput';
13
13
  export { DataTable } from "./DataTable";
14
14
  export { DatePicker } from "./DatePicker";
15
15
  export { DateRangePicker } from "./DateRangePicker";
16
- export { Dialog } from "./Dialog";
17
- export { DialogFrame } from "./DialogFrame";
16
+ export { Dialog, DialogFrame } from './Dialog';
18
17
  export { DialogActions } from "./DialogActions";
19
18
  export { DialogContent } from "./DialogContent";
20
19
  export { DialogTitle } from "./DialogTitle";
21
20
  export { Divider } from "./Divider";
22
21
  export { InsetDrawer } from "./InsetDrawer";
23
22
  export { Dropdown } from "./Dropdown";
24
- export { Uploader } from "./Uploader";
23
+ export { Uploader } from './Uploader';
25
24
  export { FormControl } from "./FormControl";
26
25
  export { FormHelperText } from "./FormHelperText";
27
26
  export { FormLabel } from "./FormLabel";
28
27
  export { Grid } from "./Grid";
29
28
  export { IconButton } from "./IconButton";
30
29
  export { Input } from "./Input";
31
- export { Markdown } from "./Markdown";
30
+ export { Markdown } from './Markdown';
32
31
  export { Menu, MenuButton, MenuItem } from "./Menu";
33
- export { Modal, ModalOverflow } from "./Modal";
34
- export { ModalClose, ModalFrame } from "./ModalFrame";
35
- export { ModalDialog } from "./ModalDialog";
36
- export { MonthPicker } from "./MonthPicker";
32
+ export { Modal, ModalContainer, ModalClose, ModalOverflow, ModalFrame, } from "./Modal";
33
+ export { ModalDialog } from './ModalDialog';
34
+ export { MonthPicker } from './MonthPicker';
37
35
  export { MonthRangePicker } from "./MonthRangePicker";
38
36
  export { Radio, RadioGroup } from "./Radio";
39
37
  export { RadioList } from "./RadioList";
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export { useTheme, useColorScheme, useThemeProps, alertClasses, boxClasses, buttonClasses, checkboxClasses, dividerClasses, iconButtonClasses, inputClasses, menuClasses, menuButtonClasses, menuItemClasses, optionClasses, radioClasses, radioGroupClasses, selectClasses, switchClasses, tableClasses, textareaClasses, typographyClasses, formControlClasses, formLabelClasses, formHelperTextClasses, gridClasses, stackClasses, sheetClasses, modalClasses, modalCloseClasses, modalDialogClasses, modalOverflowClasses, dialogTitleClasses, dialogContentClasses, dialogActionsClasses, tooltipClasses, tabsClasses, tabListClasses, tabPanelClasses, accordionClasses, accordionDetailsClasses, accordionGroupClasses as accordionsClasses, accordionSummaryClasses, AutocompleteListbox, AutocompleteOption, autocompleteClasses, autocompleteListboxClasses, autocompleteOptionClasses, Avatar, avatarClasses, AvatarGroup, avatarGroupClasses, AspectRatio, aspectRatioClasses, Badge, badgeClasses, breadcrumbsClasses, cardClasses, cardActionsClasses, cardContentClasses, cardCoverClasses, cardOverflowClasses, chipClasses, CircularProgress, circularProgressClasses, Drawer, drawerClasses, LinearProgress, linearProgressClasses, List, listClasses, ListDivider, listDividerClasses, ListItem, listItemClasses, ListItemButton, listItemButtonClasses, ListItemContent, listItemContentClasses, ListItemDecorator, listItemDecoratorClasses, ListSubheader, listSubheaderClasses, Link, linkClasses, Slider, sliderClasses, Step, stepClasses, StepButton, stepButtonClasses, StepIndicator, Stepper, stepperClasses, Skeleton, skeletonClasses, } from "@mui/joy";
2
- export { Accordion, Accordions, Alert, Autocomplete, AccordionDetails, AccordionSummary, Box, Breadcrumbs, Button, Calendar, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, Container, CssBaseline, CurrencyInput, DataTable, DatePicker, DateRangePicker, Dialog, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, InsetDrawer, Uploader, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthPicker, MonthRangePicker, Radio, RadioGroup, RadioList, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
2
+ export { Accordion, Accordions, Alert, Autocomplete, AccordionDetails, AccordionSummary, Box, Breadcrumbs, Button, Calendar, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, Container, CssBaseline, CurrencyInput, DataTable, DatePicker, DateRangePicker, Dialog, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, InsetDrawer, Uploader, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalContainer, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthPicker, MonthRangePicker, Radio, RadioGroup, RadioList, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{useTheme as yC,useColorScheme as xC,useThemeProps as vC,alertClasses as DC,boxClasses as MC,buttonClasses as kC,checkboxClasses as PC,dividerClasses as TC,iconButtonClasses as wC,inputClasses as AC,menuClasses as IC,menuButtonClasses as FC,menuItemClasses as BC,optionClasses as NC,radioClasses as LC,radioGroupClasses as SC,selectClasses as EC,switchClasses as HC,tableClasses as OC,textareaClasses as zC,typographyClasses as VC,formControlClasses as YC,formLabelClasses as JC,formHelperTextClasses as UC,gridClasses as RC,stackClasses as $C,sheetClasses as WC,modalClasses as GC,modalCloseClasses as qC,modalDialogClasses as _C,modalOverflowClasses as KC,dialogTitleClasses as jC,dialogContentClasses as ZC,dialogActionsClasses as XC,tooltipClasses as QC,tabsClasses as eb,tabListClasses as ob,tabPanelClasses as tb,accordionClasses as rb,accordionDetailsClasses as nb,accordionGroupClasses as ab,accordionSummaryClasses as ib,AutocompleteListbox as lb,AutocompleteOption as sb,autocompleteClasses as mb,autocompleteListboxClasses as pb,autocompleteOptionClasses as db,Avatar as cb,avatarClasses as ub,AvatarGroup as fb,avatarGroupClasses as gb,AspectRatio as hb,aspectRatioClasses as Cb,Badge as bb,badgeClasses as yb,breadcrumbsClasses as xb,cardClasses as vb,cardActionsClasses as Db,cardContentClasses as Mb,cardCoverClasses as kb,cardOverflowClasses as Pb,chipClasses as Tb,CircularProgress as wb,circularProgressClasses as Ab,Drawer as Ib,drawerClasses as Fb,LinearProgress as Bb,linearProgressClasses as Nb,List as Lb,listClasses as Sb,ListDivider as Eb,listDividerClasses as Hb,ListItem as Ob,listItemClasses as zb,ListItemButton as Vb,listItemButtonClasses as Yb,ListItemContent as Jb,listItemContentClasses as Ub,ListItemDecorator as Rb,listItemDecoratorClasses as $b,ListSubheader as Wb,listSubheaderClasses as Gb,Link as qb,linkClasses as _b,Slider as Kb,sliderClasses as jb,Step as Zb,stepClasses as Xb,StepButton as Qb,stepButtonClasses as ey,StepIndicator as oy,Stepper as ty,stepperClasses as ry,Skeleton as ny,skeletonClasses as ay}from"@mui/joy";import ue from"react";import{AccordionGroup as Ar,Accordion as Ir,AccordionSummary as Fr,AccordionDetails as Br}from"@mui/joy";import{motion as Ze}from"framer-motion";var Nr=Ze(Fr),Xe=Nr;Xe.displayName="AccordionSummary";var Lr=Ze(Br),Qe=Lr;Qe.displayName="AccordionDetails";var Sr=Ze(Ir);function eo(e){let{summary:o,details:t,variant:n,color:i,...a}=e,r=n==="solid"?"solid":void 0;return ue.createElement(Sr,{variant:r,color:i,...a},ue.createElement(Xe,{variant:r,color:i},o),ue.createElement(Qe,{variant:r,color:i},t))}eo.displayName="Accordion";var Er=Ze(Ar);function To(e){let{variant:o,color:t,items:n,...i}=e;return ue.createElement(Er,{variant:o,color:t,...i},n.map((a,r)=>ue.createElement(eo,{key:r,summary:a.summary,details:a.details,index:r,variant:o,color:t})))}To.displayName="Accordions";import oo from"react";import{Alert as Rr,styled as $r}from"@mui/joy";import{motion as Wr}from"framer-motion";import Hr from"react";import{Typography as Or}from"@mui/joy";import{motion as zr}from"framer-motion";var Vr=zr(Or),G=e=>Hr.createElement(Vr,{...e});G.displayName="Typography";var U=G;import{Stack as Yr}from"@mui/joy";import{motion as Jr}from"framer-motion";var Ur=Jr(Yr),fe=Ur;fe.displayName="Stack";var Y=fe;var Gr=$r(Wr(Rr))({alignItems:"flex-start",fontWeight:"unset"});function wo(e){let{title:o,content:t,actions:n,color:i="primary",...a}=e,r=e.invertedColors||e.variant==="solid";return oo.createElement(Gr,{...a,color:i,endDecorator:n,invertedColors:r},oo.createElement(Y,null,o&&oo.createElement(U,{level:"title-sm",color:i},o),oo.createElement(U,{level:"body-sm",color:i},t)))}wo.displayName="Alert";import I,{useCallback as dn,useEffect as cn,useMemo as xe,useRef as un,useState as fn}from"react";import{Autocomplete as gn,AutocompleteOption as hn,ListSubheader as Cn,AutocompleteListbox as bn,ListItemDecorator as bt,CircularProgress as yn,styled as yt}from"@mui/joy";import xn from"@mui/icons-material/esm/Close.js";import{useVirtualizer as vn}from"@tanstack/react-virtual";import{Popper as Dn}from"@mui/base";import{FormControl as qr,styled as _r}from"@mui/joy";import{motion as Kr}from"framer-motion";var jr=_r(Kr(qr))({width:"100%"}),ge=jr;ge.displayName="FormControl";var B=ge;import{FormLabel as Zr}from"@mui/joy";import{motion as Xr}from"framer-motion";var Qr=Xr(Zr),he=Qr;he.displayName="FormLabel";var N=he;import{FormHelperText as en}from"@mui/joy";import{motion as on}from"framer-motion";var tn=on(en),Ce=tn;Ce.displayName="FormHelperText";var A=Ce;import{Chip as rn}from"@mui/joy";import{motion as nn}from"framer-motion";var an=nn(rn),be=an;be.displayName="Chip";var Ct=be;import ln from"react";import{IconButton as sn}from"@mui/joy";import{motion as mn}from"framer-motion";var pn=mn(sn),ye=e=>ln.createElement(pn,{...e});ye.displayName="IconButton";var E=ye;var Mn=yt(Dn,{name:"Autocomplete",slot:"Popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),kn=I.forwardRef((e,o)=>{let{anchorEl:t,open:n,modifiers:i,children:a,ownerState:{loading:r,size:s="md"},...l}=e,g=un(null),f=a[0].every(c=>c.hasOwnProperty("group")),m=r?[a[1]]:a[0].length===0?[a[2]]:f?a[0].flatMap(c=>[I.createElement(Cn,{key:c.key,component:"li"},c.group),...c.children]):a[0],b=vn({count:m.length,estimateSize:()=>36,getScrollElement:()=>g.current,overscan:5}),d=b.getVirtualItems();return cn(()=>{n&&b.measure()},[n,b]),I.createElement(Mn,{ref:o,anchorEl:t,open:n,modifiers:i},I.createElement(bn,{...l},I.createElement("div",{ref:g,style:{overflow:"auto"}},I.createElement("div",{style:{height:`${b.getTotalSize()}px`,position:"relative"}},d.map(({index:c,size:u,start:p,key:v})=>I.cloneElement(m[c],{key:v,style:{position:"absolute",top:0,left:0,width:"100%",fontSize:`var(--ceed-fontSize-${s})`,height:`${u}px`,transform:`translateY(${p}px)`,overflow:"visible"},children:I.createElement("div",{style:{textOverflow:"ellipsis",textWrap:"nowrap",overflow:"hidden",width:"100%"}},m[c].props.children)}))))))}),to={sm:"20px",md:"24px",lg:"28px"},Pn=yt(E,{name:"Autocomplete",slot:"tagDelete"})(({theme:e,size:o="md"})=>({width:to[o],height:to[o],minWidth:to[o],minHeight:to[o],borderRadius:"50%"}));function ro(e){let{label:o,error:t,helperText:n,color:i,size:a,disabled:r,required:s,onChange:l,onChangeComplete:g,...f}=e,[m,b]=fn(e.value||e.defaultValue),d=xe(()=>e.options.map(y=>typeof y!="object"?{value:y,label:y}:y),[e.options]),c=xe(()=>{let y=new Map;return d.forEach(h=>{y.set(h.value,h)}),y},[d]),u=xe(()=>{if(e.loading)return{value:"",label:"",startDecorator:I.createElement(yn,{size:"sm",color:"neutral",variant:"plain",thickness:3})};if(m==null)return null;let y=h=>typeof h!="object"?c.get(h)??h:c.get(h.value);return Array.isArray(m)?m.map(y):y(m)},[m,c,e.loading]),p=dn(y=>I.isValidElement(y)&&!e.loading?I.cloneElement(y,{size:a}):y,[a,e.loading]),v=xe(()=>p(u?.startDecorator||e.startDecorator),[u,p,e.startDecorator]),P=xe(()=>p(u?.endDecorator||e.endDecorator),[u,p,e.endDecorator]),T=I.createElement(gn,{...f,required:s,onChange:(y,h)=>{b(h);let M=h,x=Array.isArray(M)?M.map(w=>w.value):M?.value;l?.({...y,target:{...y.target,value:x}}),(Array.isArray(M)&&M.map(w=>c.get(w.value))||c.get(M?.value))&&g?.({...y,target:{...y.target,value:x}})},color:t?"danger":i,value:u,options:d,size:a,disabled:r,startDecorator:v,endDecorator:P,getOptionLabel:y=>`${y.value??""}`,renderTags:(y,h)=>y.map((M,x)=>{let{onClick:w,...X}=h({index:x});return p(I.createElement(Ct,{color:"primary",...X},I.createElement(Y,{direction:"row",alignItems:"center",gap:2,py:.5},M.value,p(I.createElement(Pn,{color:"primary",variant:"soft",onClick:w},I.createElement(xn,null))))))}),slots:{listbox:kn},renderOption:(y,h)=>I.createElement(hn,{...y},h.startDecorator&&I.createElement(bt,{sx:M=>({marginInlineEnd:`var(--Input-gap, ${M.spacing(1)})`})},p(h.startDecorator)),p(h.label),h.endDecorator&&I.createElement(bt,{sx:M=>({marginInlineStart:`var(--Input-gap, ${M.spacing(1)})`})},p(h.endDecorator))),renderGroup:y=>y});return o?I.createElement(B,{required:s,color:i,size:a,error:t,disabled:r},I.createElement(N,null,o),T,n&&I.createElement(A,null,n)):T}var xt=ro;import{Box as Tn}from"@mui/joy";import{motion as wn}from"framer-motion";var An=wn(Tn),ve=An;ve.displayName="Box";var no=ve;import q from"react";import{Breadcrumbs as Mt,Link as zn}from"@mui/joy";import Ao from"react";import{Menu as In,MenuButton as Fn,MenuItem as Bn}from"@mui/joy";import{motion as Io}from"framer-motion";var Nn=Io(In),De=e=>Ao.createElement(Nn,{...e});De.displayName="Menu";var Ln=Io(Fn),Me=e=>Ao.createElement(Ln,{...e});Me.displayName="MenuButton";var Sn=Io(Bn),ke=e=>Ao.createElement(Sn,{...e});ke.displayName="MenuItem";var vt=De;import{Dropdown as En}from"@mui/joy";import{motion as Hn}from"framer-motion";var On=Hn(En),Pe=On;Pe.displayName="Dropdown";var Dt=Pe;function Fo(e){let{crumbs:o,size:t,startCrumbCount:n=1,endCrumbCount:i=3,slots:{link:a,...r}={link:zn},slotProps:{link:s,...l}={link:{color:"neutral"}},collapsed:g=!0,...f}=e,m=p=>p.type==="link"&&a?q.createElement(a,{to:p.linkHref,href:p.linkHref,...s},p.label):q.createElement(U,null,p.label);if(!g)return q.createElement(Mt,{size:t,slots:r,slotProps:l,...f},o.map(p=>q.createElement(m,{...p})));let b=Math.max(1,i),d=o.slice(0,n).map(p=>q.createElement(m,{...p})),c=(n+b>o.length?o.slice(n):o.slice(-b)).map(p=>q.createElement(m,{...p})),u=o.slice(n,-b).map(p=>q.createElement(ke,null,q.createElement(m,{...p})));return q.createElement(Mt,{size:t,slots:r,slotProps:l,...f},d,u.length&&q.createElement(Dt,null,q.createElement(Me,{size:t,variant:"plain"},"..."),q.createElement(vt,{size:t},u)),c)}Fo.displayName="Breadcrumbs";import Vn,{forwardRef as Yn}from"react";import{Button as Jn}from"@mui/joy";import{motion as Un}from"framer-motion";var Rn=Un(Jn),Te=Yn((e,o)=>Vn.createElement(Rn,{ref:o,...e}));Te.displayName="Button";var F=Te;import k,{Fragment as ce,forwardRef as _n,useMemo as Bt}from"react";import{styled as j}from"@mui/joy";import Kn from"@mui/icons-material/esm/ChevronLeft.js";import jn from"@mui/icons-material/esm/ChevronRight.js";import{AnimatePresence as Nt,motion as Zn}from"framer-motion";var kt=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 s=1;s<=a;s++){let l=[];for(let g=1;g<=7;g++)s===i&&g<t.getDay()+1||r>n.getDate()?l.push(void 0):(l.push(r),r++);o.push(l)}return o},Pt=(e,o)=>e.toLocaleString(o,{year:"numeric"}),Bo=(e,o)=>e.toLocaleString(o,{year:"numeric",month:"long"}),Tt=(e,o)=>new Date(0,e).toLocaleString(o,{month:"short"}),wt=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})},At=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()},No=(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()},oe=(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},ao=(e,o)=>e.getFullYear()===o.getFullYear()&&e.getMonth()===o.getMonth();import{useCallback as $n,useMemo as Wn,useState as io}from"react";import{useThemeProps as Gn}from"@mui/joy";var qn=(e,o)=>o.includes(e)?e:o[0],It=e=>{let[o,t]=io(()=>qn(e.view||"day",e.views||["day","month"])),[n,i]=io(e.defaultValue),[a,r]=io(()=>{let u=new Date;return u.setDate(1),u.setHours(0,0,0,0),e.value?.[0]||e.defaultValue?.[0]||u}),[[s,l],g]=io([0,0]),f=e.view??o,m=u=>{g([s+u,u])},b=$n(u=>{r(u),f==="month"?a.getFullYear()!==u.getFullYear()&&m(u>a?1:-1):m(u>a?1:-1),e.onMonthChange?.(u)},[e.onMonthChange,a,f]),d=Gn({props:{locale:"default",views:["day","month"],view:f,value:e.value??n,...e,onChange:e.value?e.onChange:u=>{i(u),e.onChange?.(u)},onMonthChange:b,onViewChange:()=>{let u=f==="month"?"day":"month";!(!e.views||e.views.includes(u))||e.view===u||(e.onViewChange?e.onViewChange(u):t(u))}},name:"Calendar"}),c=Wn(()=>({...d,viewMonth:a,direction:l}),[d,a,l]);return[d,c]};import{useCallback as de,useState as Ft}from"react";var lo=e=>{let[o,t]=Ft(null),[n,i]=Ft(null);return{calendarTitle:e.view==="month"?Pt(e.viewMonth,e.locale||"default"):Bo(e.viewMonth,e.locale||"default"),onPrev:de(()=>{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:de(()=>{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:de(a=>{let r=new Date(e.viewMonth||new Date);r.setHours(0,0,0,0),r.setDate(a);let s=e.rangeSelection&&e.value&&e.value[0]&&(o&&oe(e.value[0],o,r)||e.value[1]&&oe(e.value[0],e.value[1],r));return{"aria-label":r.toLocaleDateString(),"aria-current":s?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,o]),getMonthCellProps:de(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(g=>g==="day")&&e.rangeSelection&&e.value&&e.value[0]&&(n&&oe(e.value[0],n,r)||e.value[1]&&oe(e.value[0],e.value[1],r));return{"aria-label":r.toLocaleDateString(),"aria-current":l?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,n]),getPickerDayProps:de(a=>{let r=new Date(e.viewMonth||new Date);r.setHours(0,0,0,0),r.setDate(a);let s=!!e.value&&(No(r,e.value[0])||e.value[1]&&No(r,e.value[1])),l=e.rangeSelection&&e.value&&e.value[0]&&(o&&oe(e.value[0],o,r)||e.value[1]&&oe(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:At(r),isSelected:s,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 f=new Date;return f.setHours(0,0,0,0),f})(),tabIndex:-1,"aria-label":r.toLocaleDateString(),"aria-selected":s?"true":void 0,"aria-current":l?"date":void 0}},[e.onChange,e.value,e.viewMonth,e.rangeSelection,e.minDate,e.maxDate,e.disableFuture,e.disablePast,o]),getPickerMonthProps:de(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(b=>b==="day"),l=s&&e.rangeSelection,g=!!e.value&&(ao(r,e.value[0])||e.value[1]&&ao(r,e.value[1])),f=l&&e.value&&e.value[0]&&(n&&oe(e.value[0],n,r)||e.value[1]&&oe(e.value[0],e.value[1],r)),m=()=>{l?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]):s?e.onChange?.([r,void 0]):(e.onViewChange?.("day"),e.onMonthChange?.(r)),i(null)};return{isSelected:g,onMouseEnter:l&&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&&!ao(r,new Date),onClick:m,tabIndex:-1,"aria-label":Bo(r,e.locale||"default"),"aria-selected":g?"true":void 0,"aria-current":f?"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 Xn=j("div",{name:"Calendar",slot:"root"})({maxWidth:"264px"}),Qn=j("div",{name:"Calendar",slot:"calendarHeader"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(2)})),Lt=j("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"})),St=j(Zn.table,{name:"Calendar",slot:"viewTable"})(({theme:e})=>({borderSpacing:0,"& td, & th":{padding:0},"& th":{paddingTop:e.spacing(2),paddingBottom:e.spacing(2)}})),ea=j("thead",{name:"Calendar",slot:"weekHeaderContainer"})({}),oa=j("tbody",{name:"Calendar",slot:"dayPickerContainer"})({}),ta=j(F,{name:"Calendar",slot:"switchViewButton"})(({ownerState:e})=>[e.view==="month"&&{pointerEvents:"none"}]),ra=j("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}}})),na=j("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}}})),aa=j(F,{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}]),ia=j(F,{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}]),Et={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})},so=1e4,Ht=(e,o)=>Math.abs(e)*o,la=e=>{let{ownerState:o}=e,{getPickerDayProps:t,getDayCellProps:n}=lo(o),i=Bt(()=>kt(o.viewMonth),[o.viewMonth]),a=Bt(()=>wt(o.locale||"default"),[o.locale]);return k.createElement(Lt,{calendarType:"datePicker"},k.createElement(Nt,{initial:!1,custom:o.direction},k.createElement(St,{key:`${o.viewMonth.toString()}_${o.direction}`,custom:o.direction,variants:Et,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:s,velocity:l})=>{let g=Ht(s.x,l.x);if(g<-so){let f=new Date(o.viewMonth||new Date);f.setMonth(f.getMonth()+1),o.onMonthChange?.(f)}else if(g>so){let f=new Date(o.viewMonth||new Date);f.setMonth(f.getMonth()-1),o.onMonthChange?.(f)}}},k.createElement(ea,null,k.createElement("tr",null,a.map((r,s)=>k.createElement(ce,{key:`${o.viewMonth}_${r}_${s}`},k.createElement("th",null,k.createElement(U,{level:"body-xs",textAlign:"center"},r)),s<6&&k.createElement("th",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"}))))),k.createElement(oa,null,i.map((r,s)=>k.createElement(ce,{key:`${o.viewMonth}_${s}`},k.createElement("tr",null,r.map((l,g)=>l?k.createElement(ce,{key:g},k.createElement(ra,{...n(l)},k.createElement(ia,{size:"sm",variant:"plain",color:"neutral",...t(l)},l)),g<6&&k.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})):k.createElement(ce,{key:g},k.createElement("td",null),g<6&&k.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})))),s<i.length-1&&k.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},k.createElement("td",{colSpan:13,style:{height:4}}))))))))},sa=e=>{let{ownerState:o}=e,{getPickerMonthProps:t,getMonthCellProps:n}=lo(o),i=Array.from({length:12},(r,s)=>s).reduce((r,s)=>(r[r.length-1].length===4&&r.push([]),r[r.length-1].push(s),r),[[]]),a=!o.views?.find(r=>r==="day");return k.createElement(Lt,{calendarType:a?"monthPicker":"datePicker"},k.createElement(Nt,{initial:!1,custom:o.direction},k.createElement(St,{key:`${o.viewMonth.getFullYear()}_${o.direction}`,custom:o.direction,variants:Et,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:s,velocity:l})=>{let g=Ht(s.x,l.x);if(g<-so){let f=new Date(o.viewMonth||new Date);f.setMonth(f.getMonth()+1),o.onMonthChange?.(f)}else if(g>so){let f=new Date(o.viewMonth||new Date);f.setMonth(f.getMonth()-1),o.onMonthChange?.(f)}}},k.createElement("tbody",null,i.map((r,s)=>k.createElement(ce,{key:s},k.createElement("tr",null,r.map((l,g)=>k.createElement(ce,{key:l},k.createElement(na,{...n(l)},k.createElement(aa,{size:"sm",variant:"plain",color:"neutral",...t(l)},Tt(l,o.locale))),g<3&&k.createElement("td",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"})))),s<i.length-1&&k.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},k.createElement("td",{colSpan:7,style:{height:4}}))))))))},we=_n((e,o)=>{let[t,n]=It(e),{value:i,defaultValue:a,onChange:r,locale:s,onViewChange:l,onMonthChange:g,view:f,views:m,rangeSelection:b,minDate:d,maxDate:c,disableFuture:u,disablePast:p,...v}=t,{calendarTitle:P,onPrev:D,onNext:T}=lo(n);return k.createElement(Xn,{ref:o,...v},k.createElement(Qn,null,k.createElement(E,{size:"sm",onClick:D},k.createElement(Kn,null)),k.createElement(ta,{ownerState:n,variant:"plain",color:"neutral",onClick:l},P),k.createElement(E,{size:"sm",onClick:T},k.createElement(jn,null))),f==="day"&&k.createElement(la,{ownerState:n}),f==="month"&&k.createElement(sa,{ownerState:n}))});we.displayName="Calendar";var re=we;import{Card as ma,CardContent as pa,CardCover as da,CardActions as ca,CardOverflow as ua}from"@mui/joy";import{motion as Ae}from"framer-motion";var fa=Ae(ma),Ie=fa;Ie.displayName="Card";var ga=Ae(pa),Lo=ga;Lo.displayName="CardContent";var ha=Ae(da),So=ha;So.displayName="CardCover";var Ca=Ae(ca),Eo=Ca;Eo.displayName="CardActions";var ba=Ae(ua),Ho=ba;Ho.displayName="CardOverflow";import ya from"react";import{Checkbox as xa}from"@mui/joy";import{motion as va}from"framer-motion";var Da=va(xa),Fe=e=>ya.createElement(Da,{...e});Fe.displayName="Checkbox";var Be=Fe;import{styled as Ma}from"@mui/joy";import ka,{forwardRef as Pa}from"react";var Ta=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}}})),Oo=Pa(function(o,t){return ka.createElement(Ta,{ref:t,...o})});Oo.displayName="Container";import ne,{useCallback as Na,useMemo as zt,useState as Vt}from"react";import{IntlMessageFormat as La}from"intl-messageformat";import{NumericFormat as Sa}from"react-number-format";import Ne from"react";import{Input as wa}from"@mui/joy";import{motion as Aa}from"framer-motion";var Ia=Aa(wa),Le=Ne.forwardRef((e,o)=>{let{label:t,helperText:n,error:i,style:a,size:r,color:s,disabled:l,required:g,...f}=e,m=Ne.createElement(Ia,{required:g,color:i?"danger":s,size:r,disabled:l,slotProps:{input:{ref:o,...f.slotProps?.input},...f.slotProps},...f});return t?Ne.createElement(B,{required:g,color:s,size:r,error:i,disabled:l},Ne.createElement(N,null,t),m,n&&Ne.createElement(A,null,n)):m});Le.displayName="Input";var $=Le;import Fa from"intl-messageformat";var Ba={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},Ot=(e="USD")=>{let[o,t,n,...i]=new Fa(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split(""),a=Ba[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 Ea=ne.forwardRef(function(o,t){let{onChange:n,...i}=o;return ne.createElement(Sa,{...i,onValueChange:({value:a})=>{n?.({target:{name:o.name,value:a}})},valueIsNumericString:!0,getInputRef:t,allowNegative:!1})}),mo=ne.forwardRef(function(o,t){let{currency:n="USD",name:i,onChange:a,label:r,error:s,helperText:l,required:g,disabled:f,useMinorUnit:m,...b}=o,{symbol:d,thousandSeparator:c,decimalSeparator:u,placeholder:p,fixedDecimalScale:v,decimalScale:P}=Ot(n),[D,T]=Vt(o.value),y=zt(()=>D&&m?D/Math.pow(10,P):D,[D,m,P]),h=zt(()=>o.max&&m?o.max/Math.pow(10,P):o.max,[o.max,m,P]),[M,x]=Vt(!!h&&!!y&&y>h),w=Na(K=>{let le=Number(m?K.target.value?.replace(u,""):K.target.value);h&&Number(K.target.value)>h?x(!0):x(!1),T(le),a?.({...K,target:{name:i,value:le}})},[u,h,i,a,m]),X=ne.createElement($,{...b,size:"sm",ref:t,value:y,placeholder:p,onChange:w,disabled:f,required:g,color:s||M?"danger":o.color,slotProps:{input:{component:Ea,decimalSeparator:u,thousandSeparator:c,prefix:d,fixedDecimalScale:v,decimalScale:P}},sx:{fontFamily:"monospace"}});return r?ne.createElement(B,{size:"sm",disabled:f,required:g,error:s||M},ne.createElement(N,null,r),X,M?ne.createElement(A,null,new La(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:h})):l&&ne.createElement(A,null,l)):X});var Yt=mo;import C,{useCallback as ie,useEffect as go,useMemo as R,useRef as jt,useState as Uo}from"react";import{styled as Zt,LinearProgress as gi,Link as hi}from"@mui/joy";import Ci from"@mui/icons-material/esm/ChevronLeft.js";import bi from"@mui/icons-material/esm/ChevronRight.js";import{Sheet as Ha}from"@mui/joy";import{motion as Oa}from"framer-motion";var za=Oa(Ha),Se=za;Se.displayName="Sheet";var _=Se;import Z from"react";import{Table as Va}from"@mui/joy";var Ee=e=>{let{children:o,...t}=e;return Z.createElement(Va,{...t},o)};Ee.displayName="Table";function zo(e){let{headCells:o,showCheckbox:t,onCheckboxChange:n,slots:{checkbox:i=Be}={},slotProps:{checkbox:a={}}={}}=e;return Z.createElement("thead",null,Z.createElement("tr",null,t&&Z.createElement("th",{style:{width:"40px",textAlign:"center"}},Z.createElement(i,{onChange:n,...a})),o.map(r=>Z.createElement("th",{key:r.label,style:{width:r.width,minWidth:r.minWidth,maxWidth:r.maxWidth,textAlign:r.numeric?"right":"left"}},r.label))))}zo.displayName="TableHead";function Vo(e){let{rows:o,cellOrder:t,rowOptions:n,showCheckbox:i,onCheckboxChange:a,slots:{checkbox:r=Be}={},slotProps:{checkbox:s={}}={}}=e;return Z.createElement("tbody",null,o.map((l,g)=>Z.createElement("tr",{key:g},i&&Z.createElement("td",{style:{textAlign:"center"}},Z.createElement(r,{onChange:f=>a?.(f,g),...s})),t.map(f=>Z.createElement("td",{key:f,style:{textAlign:n?.[f]?.numeric?"right":"left"}},l[f])))))}Vo.displayName="TableBody";import H,{forwardRef as Wa,useCallback as Jt,useEffect as Ut,useImperativeHandle as Ga,useRef as qa,useState as Rt}from"react";import{IMaskInput as _a,IMask as Yo}from"react-imask";import Ka from"@mui/icons-material/esm/CalendarToday.js";import{styled as Jo}from"@mui/joy";import{FocusTrap as ja,ClickAwayListener as Za,Popper as Xa}from"@mui/base";import{DialogActions as Ya,styled as Ja}from"@mui/joy";import{motion as Ua}from"framer-motion";var Ra=Ua(Ya),$a=Ja(Ra)(({theme:e})=>({padding:e.spacing(2),gap:e.spacing(2),flexDirection:"row",justifyContent:"flex-end"})),He=$a;He.displayName="DialogActions";var Q=He;var Qa=Jo(Xa,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),ei=Jo(_,{name:"DatePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),oi=Jo("div",{name:"DatePicker",slot:"container"})({width:"100%"}),$t=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("/")},ti=H.forwardRef(function(o,t){let{onChange:n,...i}=o;return H.createElement(_a,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d",blocks:{d:{mask:Yo.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Yo.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Yo.MaskedRange,from:1900,to:9999}},format:$t,parse:a=>{let r=a.split("/");return new Date(Number(r[0]),Number(r[1])-1,Number(r[2]))},autofix:"pad",overwrite:!0})}),po=Wa((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:s,maxDate:l,disableFuture:g,disablePast:f,required:m,...b}=e,d=qa(null),[c,u]=Rt(e.value||""),[p,v]=Rt(null),P=!!p;Ut(()=>{u(e.value||"")},[e.value]),Ut(()=>{p||d.current?.blur()},[p,d]),Ga(o,()=>d.current,[d.current]);let D=Jt(h=>{u(h.target.value),t?.(h)},[t]),T=Jt(h=>{v(p?null:h.currentTarget),setTimeout(()=>{d.current?.focus()},0)},[p,v,d]),y=H.createElement(oi,null,H.createElement(ja,{open:!0},H.createElement(H.Fragment,null,H.createElement($,{...b,color:a?"danger":b.color,ref:d,size:"sm",value:c,onChange:D,placeholder:"YYYY/MM/DD",disabled:n,required:m,slotProps:{input:{component:ti,ref:d}},sx:{fontFamily:"monospace"},endDecorator:H.createElement(E,{variant:"plain",onClick:T},H.createElement(Ka,null))}),P&&H.createElement(Za,{onClickAway:()=>v(null)},H.createElement(Qa,{id:"date-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:h=>h.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},H.createElement(ei,{tabIndex:-1,role:"presentation"},H.createElement(re,{value:Number.isNaN(new Date(c).getTime())?void 0:[new Date(c),void 0],onChange:([h])=>{D({target:{name:e.name,value:$t(h)}}),v(null)},minDate:s?new Date(s):void 0,maxDate:l?new Date(l):void 0,disableFuture:g,disablePast:f}),H.createElement(Q,{sx:{p:1}},H.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{D({target:{name:e.name,value:""}}),v(null)}},"Clear"))))))));return i?H.createElement(B,{required:m,disabled:n,error:a,size:"sm"},H.createElement(N,null,i),y,r&&H.createElement(A,null,r)):y});var Wt=po;import co from"react";import{Textarea as ri}from"@mui/joy";import{motion as ni}from"framer-motion";var ai=ni(ri),Oe=e=>{let{label:o,error:t,helperText:n,color:i,size:a,disabled:r,required:s,minRows:l=2,maxRows:g=4,...f}=e,m=co.createElement(ai,{required:s,disabled:r,color:t?"danger":i,size:a,minRows:l,maxRows:g,...f});return o?co.createElement(B,{required:s,disabled:r,color:i,size:a,error:t},co.createElement(N,null,o),m,n&&co.createElement(A,null,n)):m};Oe.displayName="Textarea";var Gt=Oe;import ze,{useMemo as ii}from"react";import{Select as li,Option as si}from"@mui/joy";import{motion as mi}from"framer-motion";var pi=mi(si),uo=pi;uo.displayName="Option";function Ve(e){let{label:o,helperText:t,error:n,size:i,color:a,disabled:r,required:s,onChange:l,...g}=e,f=ii(()=>e.options.map(d=>typeof d!="object"?{value:d,label:d}:d),[e.options]),b=ze.createElement(li,{...g,required:s,disabled:r,size:i,color:n?"danger":a,onChange:(d,c)=>{let u=d||{target:{}},p={...u,target:{name:u.target?.name||e.name,value:c||void 0}};l?.(p)}},f.map(d=>ze.createElement(uo,{key:d.value,value:d.value},d.label)));return o?ze.createElement(B,{required:s,disabled:r,size:i,color:a,error:n},ze.createElement(N,null,o),b,t&&ze.createElement(A,null,t)):b}Ve.displayName="Select";var qt=Ve;import di from"react";import{Tooltip as ci}from"@mui/joy";import{motion as ui}from"framer-motion";var fi=ui(ci),Ye=e=>di.createElement(fi,{...e});Ye.displayName="Tooltip";var _t=Ye;function Xt(e){return!e.editMode&&["number","date","currency"].includes(e.type||"")?"end":"start"}var Kt=Zt("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"}}),fo=e=>"Intl"in window?new Intl.NumberFormat().format(e):e;function yi(e){let{paginationModel:{page:o,pageSize:t},rowCount:n,onPageChange:i}=e,a=1,r=Math.ceil(n/t),s=[o-2,o-1].filter(m=>m>1),l=[o+1,o+2].filter(m=>m<=r-1),g=r>1&&o<r-3,f=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(E,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-1),disabled:o===a,"aria-label":"Previous page"},C.createElement(Ci,null)),o!==a&&C.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(a)},a),f&&C.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-3)},"..."),s.map(m=>C.createElement(F,{key:m,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(m)},m)),C.createElement(F,{variant:"soft",size:"sm"},o),l.map(m=>C.createElement(F,{key:m,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(m)},m)),g&&C.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+3)},"..."),o!==r&&C.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(r)},r),C.createElement(E,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+1),disabled:o===r,"aria-label":"Next page"},C.createElement(bi,null))))}var xi=e=>C.createElement(no,{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)}}),vi=Zt("span",{name:"DataTable",slot:"headCellAsterisk"})(({theme:e})=>({color:"var(--ceed-palette-danger-500)",marginLeft:e.spacing(.5)})),Di=e=>{let o=jt(null),t={width:e.width,minWidth:e.minWidth??"50px",maxWidth:e.maxWidth,textAlign:Xt(e),position:e.stickyHeader?void 0:"relative"},n=e.resizable??!0?xi(o):null;return C.createElement("th",{ref:o,key:e.field,style:t},e.headerName??e.field,e.editMode&&e.required&&C.createElement(vi,null,"*"),n)},Mi=e=>{let{field:o,type:t,renderCell:n,isCellEditable:i,noWrap:a,row:r,rowId:s}=e,[l,g]=Uo(r[o]),f=jt(null),m=R(()=>({row:r,value:l,id:s}),[r,s,l]),b=R(()=>!!(e.editMode&&(typeof i=="function"?i(m):i??!0)),[e.editMode,i,m]),d=R(()=>({...typeof e.componentProps=="function"?e.componentProps(m):e.componentProps||{},size:"sm"}),[e,m]),c=R(()=>({...d,onChange:D=>{d.onChange?.(D),g(D.target.value),t==="select"&&e.onCellEditStop?.({...m,originalRow:r,row:{...m.row,[o]:D.target.value},value:D.target.value})},onFocus:D=>{d.onFocus?.(D),e.onCellEditStart?.({...m,originalRow:r,row:{...m.row,value:l},value:l})},onBlur:D=>{d.onBlur?.(D),t&&["number","text","longText","currency","date"].includes(t)&&e.onCellEditStop?.({...m,originalRow:r,row:{...m.row,[o]:l},value:l})},...t==="autocomplete"&&{onChangeComplete:D=>{d.onChangeComplete?.(D),g(D.target.value),e.onCellEditStop?.({...m,originalRow:r,row:{...m.row,[o]:D.target.value},value:D.target.value})}}}),[m,r,o,l,d,t,e]),u=R(()=>({date:C.createElement(Wt,{value:l,...c}),currency:C.createElement(Yt,{value:l,...c}),number:C.createElement($,{value:l,type:"number",...c}),text:C.createElement($,{value:l,type:"text",...c}),longText:C.createElement(Gt,{value:l,...c}),autocomplete:C.createElement(xt,{value:l,options:c.options||[l],...c}),select:C.createElement(qt,{value:l,options:c.options||[l],...c})})[t||"text"],[l,c,t]),p=R(()=>{if(n)return n(m);let D=l;return{link:C.createElement(e.component||hi,{children:D,...d})}[t||"text"]||D},[l,n,m,t,d,e]),v=R(()=>b&&u?u:p,[b,u,p]),P=R(()=>a&&e.type==="longText",[a,e.type]);return go(()=>{g(r[o])},[r,o]),C.createElement("td",{ref:f,key:o,style:{textAlign:Xt({type:t}),verticalAlign:b?"top":"middle",overflow:"auto"}},P?C.createElement(_t,{title:l,placement:"bottom",style:{maxWidth:"100%"},enterDelay:1500,enterNextDelay:1500},C.createElement("div",{style:{overflow:"hidden",textOverflow:"ellipsis"}},v)):v)},ki=e=>{let{columns:o,rowId:t,editMode:n,noWrap:i}=e,[a,r]=Uo(e.row),s=ie(({row:l})=>{r(l)},[]);return C.createElement(C.Fragment,null,o.map((l,g)=>C.createElement(Mi,{...l,key:`${t}_${l.field.toString()}_${g}`,row:a,rowId:t,editMode:n,noWrap:i,onCellEditStop:f=>{l.onCellEditStop?.(f),s(f)}})))};function Pi({rows:e,columns:o,rowCount:t,pagination:n,paginationMode:i,paginationModel:a,onPaginationModelChange:r,selectionModel:s=[],onSelectionModelChange:l,editMode:g,getId:f,isTotalSelected:m}){let[b,d]=Uo(a?.page||1),c=a?.pageSize||20,u=ie((M,x)=>f?.(M)??M?.id??`${(x||0)+(b-1)*c}`,[f??b,c]),p=R(()=>new Set(s),[s]),v=R(()=>!n||i==="server"?e:e.slice((b-1)*c,(b-1)*c+c),[e,b,c,i,n]),P=R(()=>v.length>0&&v.every((M,x)=>p.has(u(M,x))),[v,p,u]),D=t||e.length,T=R(()=>m??(D>0&&s.length===D),[m,s,D]),y=R(()=>(o||Object.keys(e[0]||{}).map(x=>({field:x}))).map(x=>({...x,isCellEditable:g&&(typeof x.isCellEditable=="function"?x.isCellEditable:x.isCellEditable??!0)})),[e,o,g]),h=ie(M=>{d(M),r?.({page:M,pageSize:c})},[r,c]);return go(()=>{h(1)},[D,h]),go(()=>{let M=Math.max(1,Math.ceil(D/c));b>M&&h(M)},[b,D,c,h]),go(()=>{l?.([])},[b,l]),{rowCount:D,page:b,pageSize:c,onPaginationModelChange:h,getId:u,HeadCell:Di,BodyRow:ki,dataInPage:v,isAllSelected:P,isTotalSelected:T,isSelectedRow:ie(M=>p.has(M),[p]),onAllCheckboxChange:ie(()=>{l?.(P?[]:v.map(u))},[P,v,l,u]),onCheckboxChange:ie((M,x)=>{if(p.has(x)){let w=s.filter(X=>X!==x);l?.(w)}else{let w=[...s,x];l?.(w)}},[s,l,p]),columns:y,onTotalSelect:ie(()=>{l?.(T?[]:e.map(u),!T)},[T,e,l,u])}}function Ro(e){let{rows:o,checkboxSelection:t,editMode:n,selectionModel:i,onSelectionModelChange:a,rowCount:r,columns:s,onPaginationModelChange:l,pagination:g,paginationMode:f,paginationModel:m,loading:b,slots:{checkbox:d=Be,toolbar:c,footer:u,loadingOverlay:p=()=>C.createElement(gi,{value:8,variant:"plain"})}={},slotProps:{checkbox:v={},toolbar:P,background:D={}}={},...T}=e,{columns:y,isAllSelected:h,isSelectedRow:M,onAllCheckboxChange:x,onCheckboxChange:w,getId:X,rowCount:K,page:le,pageSize:S,onPaginationModelChange:J,dataInPage:W,isTotalSelected:se,onTotalSelect:ee,HeadCell:Pr,BodyRow:Tr}=Pi(e),wr=R(()=>({page:le,pageSize:S}),[le,S]);return C.createElement(no,null,(!!t||!!c)&&C.createElement(Y,{direction:"row",sx:{pt:1,pb:1},justifyContent:"space-between",alignItems:"center"},!!t&&C.createElement(Y,{direction:"row",spacing:1},!h&&C.createElement(U,{level:"body-xs"},fo(i?.length||0)," items selected"),h&&!se&&C.createElement(Y,{direction:"row",spacing:1,alignItems:"center"},C.createElement(U,{level:"body-xs"},"All ",fo(i?.length||0)," items on this page are selected."),C.createElement(F,{size:"sm",variant:"plain",onClick:ee},"Select all ",fo(K??o.length)," items")),se&&C.createElement(Y,{direction:"row",spacing:1,alignItems:"center"},C.createElement(U,{level:"body-xs"},"All ",fo(K??o.length)," items are selected."),C.createElement(F,{size:"sm",variant:"plain",color:"danger",onClick:ee},"Cancel"))),c&&C.createElement(c,{...P||{}})),C.createElement(_,{variant:"outlined",sx:{overflow:"auto",width:"100%",boxShadow:"sm",borderRadius:"sm"},...D},C.createElement(Ee,{...T},C.createElement("thead",null,C.createElement("tr",null,t&&C.createElement("th",{style:{width:"40px",textAlign:"center"}},C.createElement(d,{onChange:x,checked:h,indeterminate:(i||[]).length>0&&!h,...v})),y.map((me,ko)=>C.createElement(Pr,{key:`${me.field.toString()}_${ko}`,stickyHeader:e.stickyHeader,editMode:!!me.isCellEditable,...me})))),C.createElement("tbody",null,C.createElement(Kt,null,!!b&&C.createElement("td",null,C.createElement(no,{sx:{position:"absolute",top:0,left:0,right:0}},C.createElement(p,null)))),C.createElement(Kt,null),W.map((me,ko)=>{let pe=X(me,ko);return C.createElement("tr",{key:pe,role:t?"checkbox":void 0,tabIndex:t?-1:void 0,onClick:t?Po=>w(Po,pe):void 0,"aria-checked":t?M(pe):void 0},t&&C.createElement("th",{scope:"row",style:{textAlign:"center"}},C.createElement(d,{onChange:Po=>w(Po,pe),checked:M(pe),...v})),C.createElement(Tr,{columns:y,row:me,rowId:pe,editMode:n,noWrap:e.noWrap}))})),u&&C.createElement(u,null))),S<K&&g&&C.createElement(yi,{paginationModel:wr,rowCount:K,onPageChange:J}))}Ro.displayName="DataTable";import O,{forwardRef as Ti,useCallback as $o,useEffect as Qt,useImperativeHandle as wi,useMemo as Ai,useRef as Ii,useState as er}from"react";import{IMaskInput as Fi,IMask as Wo}from"react-imask";import Bi from"@mui/icons-material/esm/CalendarToday.js";import{styled as Go}from"@mui/joy";import{FocusTrap as Ni,ClickAwayListener as Li,Popper as Si}from"@mui/base";var Ei=Go(Si,{name:"DateRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Hi=Go(_,{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})),Oi=Go("div",{name:"DateRangePicker",slot:"container"})({width:"100%"}),or=([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(" - ")},tr=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]))]},zi=O.forwardRef(function(o,t){let{onChange:n,...i}=o;return O.createElement(Fi,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d - Y/`m/`d",blocks:{d:{mask:Wo.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Wo.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Wo.MaskedRange,from:1900,to:9999}},format:or,parse:tr,autofix:"pad",overwrite:!0})}),qo=Ti((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:s,maxDate:l,disableFuture:g,disablePast:f,required:m,...b}=e,d=Ii(null),[c,u]=er(e.value||""),[p,v]=er(null),P=!!p,D=Ai(()=>c?tr(c):void 0,[c]);Qt(()=>{u(e.value||"")},[e.value]),Qt(()=>{p||d.current?.blur()},[p,d]),wi(o,()=>d.current,[d.current]);let T=$o(x=>{u(x.target.value),t?.(x)},[t]),y=$o(x=>{v(p?null:x.currentTarget),d.current?.focus()},[p,v,d]),h=$o(([x,w])=>{!x||!w||(u(or([x,w])),v(null))},[u,v]),M=O.createElement(Oi,null,O.createElement(Ni,{open:!0},O.createElement(O.Fragment,null,O.createElement($,{...b,color:a?"danger":b.color,ref:o,size:"sm",value:c,onChange:T,disabled:n,required:m,placeholder:"YYYY/MM/DD - YYYY/MM/DD",slotProps:{input:{component:zi,ref:d}},sx:{fontFamily:"monospace"},endDecorator:O.createElement(E,{variant:"plain",onClick:y},O.createElement(Bi,null))}),P&&O.createElement(Li,{onClickAway:()=>v(null)},O.createElement(Ei,{id:"date-range-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:x=>x.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},O.createElement(Hi,{tabIndex:-1,role:"presentation"},O.createElement(re,{rangeSelection:!0,defaultValue:D,onChange:h,minDate:s?new Date(s):void 0,maxDate:l?new Date(l):void 0,disableFuture:g,disablePast:f}),O.createElement(Q,{sx:{p:1}},O.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{u(""),v(null)}},"Clear"))))))));return i?O.createElement(B,{required:m,disabled:n,error:a,size:"sm"},O.createElement(N,null,i),M,r&&O.createElement(A,null,r)):M});qo.displayName="DateRangePicker";import rr from"react";import{Modal as Xi}from"@mui/joy";import{motion as Qi}from"framer-motion";import $e from"react";import{DialogTitle as Vi,styled as Yi}from"@mui/joy";import{motion as Ji}from"framer-motion";var Ui=Ji(Vi),Ri=Yi(Ui)(({theme:e})=>({padding:e.spacing(4,6)})),Je=Ri;Je.displayName="DialogTitle";var ho=Je;import{DialogContent as $i,styled as Wi}from"@mui/joy";import{motion as Gi}from"framer-motion";var qi=Gi($i),_i=Wi(qi)(({theme:e})=>({padding:e.spacing(0,6,5)})),Ue=_i;Ue.displayName="DialogContent";var Co=Ue;import{ModalDialog as Ki,styled as ji}from"@mui/joy";var Zi=ji(Ki)({padding:0}),Re=Zi;Re.displayName="ModalDialog";var bo=Re;var We=$e.forwardRef((e,o)=>{let{title:t,children:n,actions:i,fullscreen:a,...r}=e;return $e.createElement(bo,{layout:a?"fullscreen":"center",ref:o,...r},$e.createElement(ho,null,t),$e.createElement(Co,null,n),$e.createElement(Q,null,i))});We.displayName="DialogFrame";var el=Qi(Xi);function _o(e){let{children:o,title:t,actions:n,fullscreen:i,size:a,...r}=e;return rr.createElement(el,{...r},rr.createElement(We,{title:t,actions:n,fullscreen:i,size:a},o))}_o.displayName="Dialog";import ol from"react";import{Divider as tl}from"@mui/joy";import{motion as rl}from"framer-motion";var nl=rl(tl),Ge=e=>ol.createElement(nl,{...e});Ge.displayName="Divider";import al from"react";import{Drawer as il}from"@mui/joy";import{motion as ll}from"framer-motion";var sl=ll(il),Ko=e=>{let{children:o,...t}=e;return al.createElement(sl,{...t,slotProps:{...t.slotProps,content:{...t.slotProps?.content,sx:{bgcolor:"transparent",p:{md:3,sm:0},boxShadow:"none"}}}},o)};Ko.displayName="InsetDrawer";import L,{useCallback as yo,useEffect as ml,useMemo as nr,useRef as ar,useState as xo}from"react";import{styled as ae}from"@mui/joy";import pl from"@mui/icons-material/esm/CloudUploadRounded.js";import dl from"@mui/icons-material/esm/UploadFileRounded.js";import cl from"@mui/icons-material/esm/ClearRounded.js";import{combine as ul}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js";import{dropTargetForExternal as fl,monitorForExternal as gl}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js";import{containsFiles as ir,getFiles as hl}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js";import{preventUnhandled as lr}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js";var Cl=ae("input")({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),bl=ae(Y,{name:"Uploader",slot:"PreviewRoot"})({}),yl=ae(Ie,{name:"Uploader",slot:"UploadCard"})(({theme:e})=>({padding:e.spacing(2.5),border:`1px solid ${e.palette.neutral.outlinedBorder}`})),xl=ae(dl,{name:"Uploader",slot:"UploadFileIcon"})(({theme:e})=>({color:e.palette.neutral[400],width:"32px",height:"32px"})),vl=ae(cl,{name:"Uploader",slot:"ClearIcon"})(({theme:e})=>({color:e.palette.neutral.plainColor,width:"18px",height:"18px"})),Dl=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],sr=e=>{let o=e==0?0:Math.floor(Math.log(e)/Math.log(1024)),t=e/Math.pow(1024,o),n=Dl[o];return Intl.NumberFormat("en-us",{style:"unit",unit:n,unitDisplay:"narrow"}).format(t)},Ml=e=>{let{files:o,uploaded:t,onDelete:n}=e;return L.createElement(bl,{gap:1},[...t,...o].map(i=>L.createElement(yl,{key:i.name,size:"sm",color:"neutral"},L.createElement(Y,{direction:"row",alignItems:"center",gap:2},L.createElement(xl,null),L.createElement(Y,{flex:"1"},L.createElement(U,{level:"body-sm",textColor:"common.black"},i.name),!!i.size&&L.createElement(U,{level:"body-xs",fontWeight:"300",lineHeight:"1.33",textColor:"text.tertiary"},sr(i.size))),L.createElement(E,{onClick:()=>n?.(i)},L.createElement(vl,null))))))},kl=ae(Y,{name:"Uploader",slot:"root"})(({theme:e})=>({gap:e.spacing(2)})),Pl=ae(_,{name:"Uploader",slot:"dropZone",shouldForwardProp:e=>e!=="error"})(({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}`})),Tl=ae(pl,{name:"Uploader",slot:"iconContainer",shouldForwardProp:e=>e!=="error"})(({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"})),jo=L.memo(e=>{let{accept:o,maxCount:t,name:n,size:i,maxSize:a,onChange:r,label:s,helperText:l,disabled:g,required:f,onDelete:m}=e,b=ar(null),d=ar(null),[c,u]=xo(),[p,v]=xo([]),[P,D]=xo(e.uploaded||[]),[T,y]=xo("idle"),h=nr(()=>!!c||e.error,[e.error,c]),M=nr(()=>!t||t&&[...P,...p].length!==t,[p,t,P]),x=yo(S=>{try{let J=o?.split(",").map(ee=>ee.trim().replace(".","").replace("*",".*"))||[],W=new RegExp(`(${J.join("|")})`);S.forEach(ee=>{if(W.test(ee.type)===!1)throw new Error(`File type is not allowed: ${ee.name}`)}),a&&S.forEach(ee=>{if(ee.size>a)throw new Error(`File size exceeds the limit: ${sr(a)}`)});let se=[...p,...S];if(t&&[...P,...se].length>t)throw new Error(`File count exceeds the limit: ${t}`);r?.({target:{name:n,value:se}}),v(se),u(void 0)}catch(J){u(J.message)}},[p,P,t,o,a,n,r]);ml(()=>{let S=b.current;if(S)return ul(fl({element:S,canDrop:ir,onDragEnter:()=>y("over"),onDragLeave:()=>y("potential"),onDrop:async({source:J})=>{let W=await hl({source:J});x(W)}}),gl({canMonitor:ir,onDragStart:()=>{y("potential"),lr.start()},onDrop:()=>{y("idle"),lr.stop()}}))});let w=yo(S=>{let J=Array.from(S.target.files||[]);x(J)},[x]),X=yo(S=>{S instanceof File?v(J=>(r?.({target:{name:n,value:J.filter(W=>W!==S)}}),J.filter(W=>W!==S))):(D(J=>J.filter(W=>W.id!==S.id)),m?.(S)),u(void 0)},[n,r,m]),K=yo(()=>{d.current?.click()},[]);return L.createElement(kl,null,M&&L.createElement(B,{size:i,error:!!(h||c),disabled:g,required:f},s&&L.createElement(N,null,s),L.createElement(Pl,{state:T,error:!!(h||c),ref:b,onClick:K},L.createElement(Y,{alignItems:"center",gap:1},L.createElement(Tl,{state:T,error:!!(h||c)})),L.createElement(Cl,{type:"file",onChange:w,multiple:!0,accept:o,disabled:g,required:f,ref:d})),c?L.createElement(A,null,c):l&&L.createElement(A,null,l)),[...P,...p].length>0&&L.createElement(Ml,{files:p,uploaded:P,onDelete:X}))});jo.displayName="Uploader";import{Grid as wl}from"@mui/joy";import{motion as Al}from"framer-motion";var Il=Al(wl),Zo=Il;Zo.displayName="Grid";import te from"react";import Fl from"react-markdown";import{Link as Bl}from"@mui/joy";var Xo=e=>{let{children:o,color:t,textColor:n,defaultLevel:i="body-md",markdownOptions:a,...r}=e;return te.createElement(G,{color:t,textColor:n,...r},te.createElement(Fl,{...a,children:o,components:{h1:({children:s})=>te.createElement(G,{color:t,textColor:n,level:"h1"},s),h2:({children:s})=>te.createElement(G,{color:t,textColor:n,level:"h2"},s),h3:({children:s})=>te.createElement(G,{color:t,textColor:n,level:"h3"},s),h4:({children:s})=>te.createElement(G,{color:t,textColor:n,level:"h4"},s),p:({children:s})=>te.createElement(G,{color:t,textColor:n,level:i},s),a:({children:s,href:l})=>te.createElement(Bl,{href:l},s),hr:()=>te.createElement(Ge,null),...a?.components}}))};Xo.displayName="Markdown";import mr from"react";import{Modal as Hl,ModalOverflow as Ol}from"@mui/joy";import{motion as pr}from"framer-motion";import qe from"react";import{ModalClose as Nl,styled as Ll}from"@mui/joy";import{motion as Sl}from"framer-motion";var El=Ll(Sl(Nl))(({theme:e})=>({top:e.spacing(3),right:e.spacing(6)})),vo=El;vo.displayName="ModalClose";var _e=qe.forwardRef((e,o)=>{let{title:t,children:n,...i}=e;return qe.createElement(bo,{ref:o,...i},qe.createElement(vo,null),qe.createElement(ho,null,t),qe.createElement(Co,null,n))});_e.displayName="ModalFrame";var zl=pr(Ol),Qo=zl;Qo.displayName="ModalOverflow";var Vl=pr(Hl);function et(e){let{children:o,title:t,size:n,variant:i,...a}=e;return mr.createElement(Vl,{...a},mr.createElement(_e,{title:t,size:n,variant:i},o))}et.displayName="Modal";import z,{forwardRef as Yl,useCallback as dr,useEffect as cr,useImperativeHandle as Jl,useRef as Ul,useState as ur}from"react";import{IMaskInput as Rl,IMask as fr}from"react-imask";import $l from"@mui/icons-material/esm/CalendarToday.js";import{styled as tt}from"@mui/joy";import{FocusTrap as Wl,ClickAwayListener as Gl,Popper as ql}from"@mui/base";var _l=tt(ql,{name:"MonthPicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Kl=tt(_,{name:"MonthPicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),jl=tt("div",{name:"MonthPicker",slot:"container"})({width:"100%"}),gr=e=>{let o=`${e.getMonth()+1}`,t=e.getFullYear();return Number(o)<10&&(o="0"+o),[t,o].join("/")},ot=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 gr(i)})(e),hr=e=>e.split(" - ")[0]||"",Zl=z.forwardRef(function(o,t){let{onChange:n,...i}=o;return z.createElement(Rl,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/m",blocks:{m:{mask:fr.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:fr.MaskedRange,from:1900,to:9999}},format:ot,parse:hr})}),Cr=Yl((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:s,maxDate:l,disableFuture:g,disablePast:f,required:m,...b}=e,d=Ul(null),[c,u]=ur(e.value||""),[p,v]=ur(null),P=!!p;cr(()=>{u(e.value?ot(hr(e.value)):"")},[e.value]),cr(()=>{p||d.current?.blur()},[p,d]),Jl(o,()=>d.current,[d.current]);let D=dr(h=>{u(h.target.value),t?.(h)},[t]),T=dr(h=>{v(p?null:h.currentTarget),d.current?.focus()},[p,v,d]),y=z.createElement(jl,null,z.createElement(Wl,{open:!0},z.createElement(z.Fragment,null,z.createElement($,{...b,color:a?"danger":b.color,ref:d,size:"sm",value:c,onChange:D,placeholder:"YYYY/MM",disabled:n,required:m,slotProps:{input:{component:Zl,ref:d}},sx:{fontFamily:"monospace"},endDecorator:z.createElement(E,{variant:"plain",onClick:T},z.createElement($l,null))}),P&&z.createElement(Gl,{onClickAway:()=>v(null)},z.createElement(_l,{id:"date-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:h=>h.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},z.createElement(Kl,{tabIndex:-1,role:"presentation"},z.createElement(re,{view:"month",views:["month"],value:Number.isNaN(new Date(c).getTime())?void 0:[new Date(c),void 0],onChange:([h])=>{D({target:{name:e.name,value:ot(gr(h))}}),v(null)},minDate:s?new Date(s):void 0,maxDate:l?new Date(l):void 0,disableFuture:g,disablePast:f}),z.createElement(Q,{sx:{p:1}},z.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{D({target:{name:e.name,value:""}}),v(null)}},"Clear"))))))));return i?z.createElement(B,{required:m,disabled:n,error:a,size:"sm"},z.createElement(N,null,i),y,r&&z.createElement(A,null,r)):y});import V,{forwardRef as Xl,useCallback as rt,useEffect as br,useImperativeHandle as Ql,useMemo as es,useRef as os,useState as yr}from"react";import{IMaskInput as ts,IMask as xr}from"react-imask";import rs from"@mui/icons-material/esm/CalendarToday.js";import{styled as lt}from"@mui/joy";import{FocusTrap as ns,ClickAwayListener as as,Popper as is}from"@mui/base";var ls=lt(is,{name:"MonthRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),ss=lt(_,{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})),ms=lt("div",{name:"MonthRangePicker",slot:"container"})({width:"100%"}),nt=e=>{let o=`${e.getMonth()+1}`,t=e.getFullYear();return Number(o)<10&&(o="0"+o),[t,o].join("/")},at=([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 nt(a)};return[t(e),t(o)].join(" - ")},it=e=>{let o=e.split(" - ")[0]||"",t=e.split(" - ")[1]||"";return[o,t]},ps=V.forwardRef(function(o,t){let{onChange:n,...i}=o;return V.createElement(ts,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/m - Y/m",blocks:{m:{mask:xr.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:xr.MaskedRange,from:1900,to:9999}},format:at,parse:it})}),st=Xl((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:s,maxDate:l,disableFuture:g,disablePast:f,required:m,...b}=e,d=os(null),[c,u]=yr(""),[p,v]=yr(null),P=!!p,D=es(()=>c?it(c).map(x=>new Date(x)):void 0,[c]);br(()=>{u(e.value?at(it(e.value)):"")},[e.value]),br(()=>{p||d.current?.blur()},[p,d]),Ql(o,()=>d.current,[d.current]);let T=rt(x=>{u(x.target.value),t?.(x)},[t]),y=rt(x=>{v(p?null:x.currentTarget),d.current?.focus()},[p,v,d]),h=rt(([x,w])=>{!x||!w||(u(at([nt(x),nt(w)])),v(null))},[u,v]),M=V.createElement(ms,null,V.createElement(ns,{open:!0},V.createElement(V.Fragment,null,V.createElement($,{...b,color:a?"danger":b.color,ref:o,size:"sm",value:c,onChange:T,disabled:n,required:m,placeholder:"YYYY/MM - YYYY/MM",slotProps:{input:{component:ps,ref:d}},sx:{fontFamily:"monospace"},endDecorator:V.createElement(E,{variant:"plain",onClick:y},V.createElement(rs,null))}),P&&V.createElement(as,{onClickAway:()=>v(null)},V.createElement(ls,{id:"date-range-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:x=>x.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},V.createElement(ss,{tabIndex:-1,role:"presentation"},V.createElement(re,{view:"month",views:["month"],rangeSelection:!0,defaultValue:D,onChange:h,minDate:s?new Date(s):void 0,maxDate:l?new Date(l):void 0,disableFuture:g,disablePast:f}),V.createElement(Q,{sx:{p:1}},V.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{u(""),v(null)}},"Clear"))))))));return i?V.createElement(B,{required:m,disabled:n,error:a,size:"sm"},V.createElement(N,null,i),M,r&&V.createElement(A,null,r)):M});st.displayName="MonthRangePicker";import{Radio as ds,RadioGroup as cs}from"@mui/joy";import{motion as vr}from"framer-motion";var us=vr(ds),Ke=us;Ke.displayName="Radio";var fs=vr(cs),je=fs;je.displayName="RadioGroup";import Dr from"react";function mt(e){let{items:o,...t}=e;return Dr.createElement(je,{...t},o.map(n=>Dr.createElement(Ke,{key:`${n.value}`,value:n.value,label:n.label})))}mt.displayName="RadioList";import Mr from"react";import{Switch as gs,styled as hs,switchClasses as Cs}from"@mui/joy";import{motion as kr}from"framer-motion";var bs=kr(gs),ys=hs(kr.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)",[`&.${Cs.checked}`]:{left:"unset",right:"var(--Switch-thumbOffset)"}}),xs=e=>Mr.createElement(ys,{...e,layout:!0,transition:vs}),vs={type:"spring",stiffness:700,damping:30},pt=e=>Mr.createElement(bs,{...e,slots:{thumb:xs,...e.slots}});pt.displayName="Switch";import{Tabs as Ds,Tab as Ms,TabList as ks,TabPanel as Ps,styled as Ts,tabClasses as ws}from"@mui/joy";import{motion as Do}from"framer-motion";var As=Do(Ds),dt=As;dt.displayName="Tabs";var Is=Ts(Do(Ms))(({theme:e})=>({[`&:not(.${ws.selected})`]:{color:e.palette.neutral[700]}})),ct=Is;ct.displayName="Tab";var Fs=Do(ks),ut=Fs;ut.displayName="TabList";var Bs=Do(Ps),ft=Bs;ft.displayName="TabPanel";import Mo from"react";import{CssBaseline as gt,CssVarsProvider as Ns,checkboxClasses as Ls,extendTheme as Ss}from"@mui/joy";var Es=Ss({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)"},[`& .${Ls.root}`]:{verticalAlign:"middle"}})}},JoyTooltip:{defaultProps:{size:"sm",placement:"top"}}}});function ht(e){return Mo.createElement(Mo.Fragment,null,Mo.createElement(Ns,{theme:Es},Mo.createElement(gt,null),e.children))}ht.displayName="ThemeProvider";export{eo as Accordion,Qe as AccordionDetails,Xe as AccordionSummary,To as Accordions,wo as Alert,hb as AspectRatio,ro as Autocomplete,lb as AutocompleteListbox,sb as AutocompleteOption,cb as Avatar,fb as AvatarGroup,bb as Badge,ve as Box,Fo as Breadcrumbs,Te as Button,we as Calendar,Ie as Card,Eo as CardActions,Lo as CardContent,So as CardCover,Ho as CardOverflow,Fe as Checkbox,be as Chip,wb as CircularProgress,Oo as Container,gt as CssBaseline,mo as CurrencyInput,Ro as DataTable,po as DatePicker,qo as DateRangePicker,_o as Dialog,He as DialogActions,Ue as DialogContent,We as DialogFrame,Je as DialogTitle,Ge as Divider,Ib as Drawer,Pe as Dropdown,ge as FormControl,Ce as FormHelperText,he as FormLabel,Zo as Grid,ye as IconButton,Le as Input,Ko as InsetDrawer,Bb as LinearProgress,qb as Link,Lb as List,Eb as ListDivider,Ob as ListItem,Vb as ListItemButton,Jb as ListItemContent,Rb as ListItemDecorator,Wb as ListSubheader,Xo as Markdown,De as Menu,Me as MenuButton,ke as MenuItem,et as Modal,vo as ModalClose,Re as ModalDialog,_e as ModalFrame,Qo as ModalOverflow,Cr as MonthPicker,st as MonthRangePicker,uo as Option,Ke as Radio,je as RadioGroup,mt as RadioList,Ve as Select,Se as Sheet,ny as Skeleton,Kb as Slider,fe as Stack,Zb as Step,Qb as StepButton,oy as StepIndicator,ty as Stepper,pt as Switch,ct as Tab,ut as TabList,ft as TabPanel,Ee as Table,Vo as TableBody,zo as TableHead,dt as Tabs,Oe as Textarea,ht as ThemeProvider,Ye as Tooltip,G as Typography,jo as Uploader,rb as accordionClasses,nb as accordionDetailsClasses,ib as accordionSummaryClasses,ab as accordionsClasses,DC as alertClasses,Cb as aspectRatioClasses,mb as autocompleteClasses,pb as autocompleteListboxClasses,db as autocompleteOptionClasses,ub as avatarClasses,gb as avatarGroupClasses,yb as badgeClasses,MC as boxClasses,xb as breadcrumbsClasses,kC as buttonClasses,Db as cardActionsClasses,vb as cardClasses,Mb as cardContentClasses,kb as cardCoverClasses,Pb as cardOverflowClasses,PC as checkboxClasses,Tb as chipClasses,Ab as circularProgressClasses,XC as dialogActionsClasses,ZC as dialogContentClasses,jC as dialogTitleClasses,TC as dividerClasses,Fb as drawerClasses,YC as formControlClasses,UC as formHelperTextClasses,JC as formLabelClasses,RC as gridClasses,wC as iconButtonClasses,AC as inputClasses,Nb as linearProgressClasses,_b as linkClasses,Sb as listClasses,Hb as listDividerClasses,Yb as listItemButtonClasses,zb as listItemClasses,Ub as listItemContentClasses,$b as listItemDecoratorClasses,Gb as listSubheaderClasses,FC as menuButtonClasses,IC as menuClasses,BC as menuItemClasses,GC as modalClasses,qC as modalCloseClasses,_C as modalDialogClasses,KC as modalOverflowClasses,NC as optionClasses,LC as radioClasses,SC as radioGroupClasses,EC as selectClasses,WC as sheetClasses,ay as skeletonClasses,jb as sliderClasses,$C as stackClasses,ey as stepButtonClasses,Xb as stepClasses,ry as stepperClasses,HC as switchClasses,ob as tabListClasses,tb as tabPanelClasses,OC as tableClasses,eb as tabsClasses,zC as textareaClasses,QC as tooltipClasses,VC as typographyClasses,xC as useColorScheme,yC as useTheme,vC as useThemeProps};
1
+ import{useTheme as aC,useColorScheme as iC,useThemeProps as lC,alertClasses as sC,boxClasses as mC,buttonClasses as pC,checkboxClasses as dC,dividerClasses as cC,iconButtonClasses as uC,inputClasses as fC,menuClasses as gC,menuButtonClasses as hC,menuItemClasses as CC,optionClasses as bC,radioClasses as yC,radioGroupClasses as xC,selectClasses as vC,switchClasses as MC,tableClasses as DC,textareaClasses as kC,typographyClasses as PC,formControlClasses as TC,formLabelClasses as wC,formHelperTextClasses as AC,gridClasses as IC,stackClasses as FC,sheetClasses as BC,modalClasses as NC,modalCloseClasses as LC,modalDialogClasses as SC,modalOverflowClasses as EC,dialogTitleClasses as HC,dialogContentClasses as OC,dialogActionsClasses as zC,tooltipClasses as VC,tabsClasses as YC,tabListClasses as JC,tabPanelClasses as UC,accordionClasses as RC,accordionDetailsClasses as $C,accordionGroupClasses as WC,accordionSummaryClasses as GC,AutocompleteListbox as qC,AutocompleteOption as _C,autocompleteClasses as KC,autocompleteListboxClasses as jC,autocompleteOptionClasses as ZC,Avatar as XC,avatarClasses as QC,AvatarGroup as eb,avatarGroupClasses as ob,AspectRatio as tb,aspectRatioClasses as rb,Badge as nb,badgeClasses as ab,breadcrumbsClasses as ib,cardClasses as lb,cardActionsClasses as sb,cardContentClasses as mb,cardCoverClasses as pb,cardOverflowClasses as db,chipClasses as cb,CircularProgress as ub,circularProgressClasses as fb,Drawer as gb,drawerClasses as hb,LinearProgress as Cb,linearProgressClasses as bb,List as yb,listClasses as xb,ListDivider as vb,listDividerClasses as Mb,ListItem as Db,listItemClasses as kb,ListItemButton as Pb,listItemButtonClasses as Tb,ListItemContent as wb,listItemContentClasses as Ab,ListItemDecorator as Ib,listItemDecoratorClasses as Fb,ListSubheader as Bb,listSubheaderClasses as Nb,Link as Lb,linkClasses as Sb,Slider as Eb,sliderClasses as Hb,Step as Ob,stepClasses as zb,StepButton as Vb,stepButtonClasses as Yb,StepIndicator as Jb,Stepper as Ub,stepperClasses as Rb,Skeleton as $b,skeletonClasses as Wb}from"@mui/joy";import ge from"react";import{AccordionGroup as Ar,Accordion as Ir,AccordionSummary as Fr,AccordionDetails as Br}from"@mui/joy";import{motion as Ke}from"framer-motion";var Nr=Ke(Fr),je=Nr;je.displayName="AccordionSummary";var Lr=Ke(Br),Ze=Lr;Ze.displayName="AccordionDetails";var Sr=Ke(Ir);function Xe(e){let{summary:o,details:t,variant:n,color:i,...a}=e,r=n==="solid"?"solid":void 0;return ge.createElement(Sr,{variant:r,color:i,...a},ge.createElement(je,{variant:r,color:i},o),ge.createElement(Ze,{variant:r,color:i},t))}Xe.displayName="Accordion";var Er=Ke(Ar);function To(e){let{variant:o,color:t,items:n,...i}=e;return ge.createElement(Er,{variant:o,color:t,...i},n.map((a,r)=>ge.createElement(Xe,{key:r,summary:a.summary,details:a.details,index:r,variant:o,color:t})))}To.displayName="Accordions";import Qe from"react";import{Alert as Rr,styled as $r}from"@mui/joy";import{motion as Wr}from"framer-motion";import Hr from"react";import{Typography as Or}from"@mui/joy";import{motion as zr}from"framer-motion";var Vr=zr(Or),G=e=>Hr.createElement(Vr,{...e});G.displayName="Typography";var U=G;import{Stack as Yr}from"@mui/joy";import{motion as Jr}from"framer-motion";var Ur=Jr(Yr),he=Ur;he.displayName="Stack";var Y=he;var Gr=$r(Wr(Rr))({alignItems:"flex-start",fontWeight:"unset"});function wo(e){let{title:o,content:t,actions:n,color:i="primary",...a}=e,r=e.invertedColors||e.variant==="solid";return Qe.createElement(Gr,{...a,color:i,endDecorator:n,invertedColors:r},Qe.createElement(Y,null,o&&Qe.createElement(U,{level:"title-sm",color:i},o),Qe.createElement(U,{level:"body-sm",color:i},t)))}wo.displayName="Alert";import I,{useCallback as dn,useEffect as cn,useMemo as Me,useRef as un,useState as fn}from"react";import{Autocomplete as gn,AutocompleteOption as hn,ListSubheader as Cn,AutocompleteListbox as bn,ListItemDecorator as xt,CircularProgress as yn,styled as vt}from"@mui/joy";import xn from"@mui/icons-material/esm/Close.js";import{useVirtualizer as vn}from"@tanstack/react-virtual";import{Popper as Mn}from"@mui/base";import{FormControl as qr,styled as _r}from"@mui/joy";import{motion as Kr}from"framer-motion";var jr=_r(Kr(qr))({width:"100%"}),Ce=jr;Ce.displayName="FormControl";var B=Ce;import{FormLabel as Zr}from"@mui/joy";import{motion as Xr}from"framer-motion";var Qr=Xr(Zr),be=Qr;be.displayName="FormLabel";var N=be;import{FormHelperText as en}from"@mui/joy";import{motion as on}from"framer-motion";var tn=on(en),ye=tn;ye.displayName="FormHelperText";var A=ye;import{Chip as rn}from"@mui/joy";import{motion as nn}from"framer-motion";var an=nn(rn),xe=an;xe.displayName="Chip";var yt=xe;import ln from"react";import{IconButton as sn}from"@mui/joy";import{motion as mn}from"framer-motion";var pn=mn(sn),ve=e=>ln.createElement(pn,{...e});ve.displayName="IconButton";var E=ve;var Dn=vt(Mn,{name:"Autocomplete",slot:"Popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),kn=I.forwardRef((e,o)=>{let{anchorEl:t,open:n,modifiers:i,children:a,ownerState:{loading:r,size:s="md"},...l}=e,g=un(null),f=a[0].every(c=>c.hasOwnProperty("group")),m=r?[a[1]]:a[0].length===0?[a[2]]:f?a[0].flatMap(c=>[I.createElement(Cn,{key:c.key,component:"li"},c.group),...c.children]):a[0],b=vn({count:m.length,estimateSize:()=>36,getScrollElement:()=>g.current,overscan:5}),d=b.getVirtualItems();return cn(()=>{n&&b.measure()},[n,b]),I.createElement(Dn,{ref:o,anchorEl:t,open:n,modifiers:i},I.createElement(bn,{...l},I.createElement("div",{ref:g,style:{overflow:"auto"}},I.createElement("div",{style:{height:`${b.getTotalSize()}px`,position:"relative"}},d.map(({index:c,size:u,start:p,key:v})=>I.cloneElement(m[c],{key:v,style:{position:"absolute",top:0,left:0,width:"100%",fontSize:`var(--ceed-fontSize-${s})`,height:`${u}px`,transform:`translateY(${p}px)`,overflow:"visible"},children:I.createElement("div",{style:{textOverflow:"ellipsis",textWrap:"nowrap",overflow:"hidden",width:"100%"}},m[c].props.children)}))))))}),eo={sm:"20px",md:"24px",lg:"28px"},Pn=vt(E,{name:"Autocomplete",slot:"tagDelete"})(({theme:e,size:o="md"})=>({width:eo[o],height:eo[o],minWidth:eo[o],minHeight:eo[o],borderRadius:"50%"}));function oo(e){let{label:o,error:t,helperText:n,color:i,size:a,disabled:r,required:s,onChange:l,onChangeComplete:g,...f}=e,[m,b]=fn(e.value||e.defaultValue),d=Me(()=>e.options.map(y=>typeof y!="object"?{value:y,label:y}:y),[e.options]),c=Me(()=>{let y=new Map;return d.forEach(h=>{y.set(h.value,h)}),y},[d]),u=Me(()=>{if(e.loading)return{value:"",label:"",startDecorator:I.createElement(yn,{size:"sm",color:"neutral",variant:"plain",thickness:3})};if(m==null)return null;let y=h=>typeof h!="object"?c.get(h)??h:c.get(h.value);return Array.isArray(m)?m.map(y):y(m)},[m,c,e.loading]),p=dn(y=>I.isValidElement(y)&&!e.loading?I.cloneElement(y,{size:a}):y,[a,e.loading]),v=Me(()=>p(u?.startDecorator||e.startDecorator),[u,p,e.startDecorator]),P=Me(()=>p(u?.endDecorator||e.endDecorator),[u,p,e.endDecorator]),T=I.createElement(gn,{...f,required:s,onChange:(y,h)=>{b(h);let D=h,x=Array.isArray(D)?D.map(w=>w.value):D?.value;l?.({...y,target:{...y.target,value:x}}),(Array.isArray(D)&&D.map(w=>c.get(w.value))||c.get(D?.value))&&g?.({...y,target:{...y.target,value:x}})},color:t?"danger":i,value:u,options:d,size:a,disabled:r,startDecorator:v,endDecorator:P,getOptionLabel:y=>`${y.value??""}`,renderTags:(y,h)=>y.map((D,x)=>{let{onClick:w,...X}=h({index:x});return p(I.createElement(yt,{color:"primary",...X},I.createElement(Y,{direction:"row",alignItems:"center",gap:2,py:.5},D.value,p(I.createElement(Pn,{color:"primary",variant:"soft",onClick:w},I.createElement(xn,null))))))}),slots:{listbox:kn},renderOption:(y,h)=>I.createElement(hn,{...y},h.startDecorator&&I.createElement(xt,{sx:D=>({marginInlineEnd:`var(--Input-gap, ${D.spacing(1)})`})},p(h.startDecorator)),p(h.label),h.endDecorator&&I.createElement(xt,{sx:D=>({marginInlineStart:`var(--Input-gap, ${D.spacing(1)})`})},p(h.endDecorator))),renderGroup:y=>y});return o?I.createElement(B,{required:s,color:i,size:a,error:t,disabled:r},I.createElement(N,null,o),T,n&&I.createElement(A,null,n)):T}var Mt=oo;import{Box as Tn}from"@mui/joy";import{motion as wn}from"framer-motion";var An=wn(Tn),De=An;De.displayName="Box";var to=De;import q from"react";import{Breadcrumbs as Pt,Link as zn}from"@mui/joy";import Ao from"react";import{Menu as In,MenuButton as Fn,MenuItem as Bn}from"@mui/joy";import{motion as Io}from"framer-motion";var Nn=Io(In),ke=e=>Ao.createElement(Nn,{...e});ke.displayName="Menu";var Ln=Io(Fn),Pe=e=>Ao.createElement(Ln,{...e});Pe.displayName="MenuButton";var Sn=Io(Bn),Te=e=>Ao.createElement(Sn,{...e});Te.displayName="MenuItem";var Dt=ke;import{Dropdown as En}from"@mui/joy";import{motion as Hn}from"framer-motion";var On=Hn(En),we=On;we.displayName="Dropdown";var kt=we;function Fo(e){let{crumbs:o,size:t,startCrumbCount:n=1,endCrumbCount:i=3,slots:{link:a,...r}={link:zn},slotProps:{link:s,...l}={link:{color:"neutral"}},collapsed:g=!0,...f}=e,m=p=>p.type==="link"&&a?q.createElement(a,{to:p.linkHref,href:p.linkHref,...s},p.label):q.createElement(U,null,p.label);if(!g)return q.createElement(Pt,{size:t,slots:r,slotProps:l,...f},o.map(p=>q.createElement(m,{...p})));let b=Math.max(1,i),d=o.slice(0,n).map(p=>q.createElement(m,{...p})),c=(n+b>o.length?o.slice(n):o.slice(-b)).map(p=>q.createElement(m,{...p})),u=o.slice(n,-b).map(p=>q.createElement(Te,null,q.createElement(m,{...p})));return q.createElement(Pt,{size:t,slots:r,slotProps:l,...f},d,u.length&&q.createElement(kt,null,q.createElement(Pe,{size:t,variant:"plain"},"..."),q.createElement(Dt,{size:t},u)),c)}Fo.displayName="Breadcrumbs";import Vn,{forwardRef as Yn}from"react";import{Button as Jn}from"@mui/joy";import{motion as Un}from"framer-motion";var Rn=Un(Jn),Ae=Yn((e,o)=>Vn.createElement(Rn,{ref:o,...e}));Ae.displayName="Button";var F=Ae;import k,{Fragment as fe,forwardRef as _n,useMemo as Lt}from"react";import{styled as j}from"@mui/joy";import Kn from"@mui/icons-material/esm/ChevronLeft.js";import jn from"@mui/icons-material/esm/ChevronRight.js";import{AnimatePresence as St,motion as Zn}from"framer-motion";var Tt=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 s=1;s<=a;s++){let l=[];for(let g=1;g<=7;g++)s===i&&g<t.getDay()+1||r>n.getDate()?l.push(void 0):(l.push(r),r++);o.push(l)}return o},wt=(e,o)=>e.toLocaleString(o,{year:"numeric"}),Bo=(e,o)=>e.toLocaleString(o,{year:"numeric",month:"long"}),At=(e,o)=>new Date(0,e).toLocaleString(o,{month:"short"}),It=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})},Ft=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()},No=(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()},oe=(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},ro=(e,o)=>e.getFullYear()===o.getFullYear()&&e.getMonth()===o.getMonth();import{useCallback as $n,useMemo as Wn,useState as no}from"react";import{useThemeProps as Gn}from"@mui/joy";var qn=(e,o)=>o.includes(e)?e:o[0],Bt=e=>{let[o,t]=no(()=>qn(e.view||"day",e.views||["day","month"])),[n,i]=no(e.defaultValue),[a,r]=no(()=>{let u=new Date;return u.setDate(1),u.setHours(0,0,0,0),e.value?.[0]||e.defaultValue?.[0]||u}),[[s,l],g]=no([0,0]),f=e.view??o,m=u=>{g([s+u,u])},b=$n(u=>{r(u),f==="month"?a.getFullYear()!==u.getFullYear()&&m(u>a?1:-1):m(u>a?1:-1),e.onMonthChange?.(u)},[e.onMonthChange,a,f]),d=Gn({props:{locale:"default",views:["day","month"],view:f,value:e.value??n,...e,onChange:e.value?e.onChange:u=>{i(u),e.onChange?.(u)},onMonthChange:b,onViewChange:()=>{let u=f==="month"?"day":"month";!(!e.views||e.views.includes(u))||e.view===u||(e.onViewChange?e.onViewChange(u):t(u))}},name:"Calendar"}),c=Wn(()=>({...d,viewMonth:a,direction:l}),[d,a,l]);return[d,c]};import{useCallback as ue,useState as Nt}from"react";var ao=e=>{let[o,t]=Nt(null),[n,i]=Nt(null);return{calendarTitle:e.view==="month"?wt(e.viewMonth,e.locale||"default"):Bo(e.viewMonth,e.locale||"default"),onPrev:ue(()=>{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:ue(()=>{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:ue(a=>{let r=new Date(e.viewMonth||new Date);r.setHours(0,0,0,0),r.setDate(a);let s=e.rangeSelection&&e.value&&e.value[0]&&(o&&oe(e.value[0],o,r)||e.value[1]&&oe(e.value[0],e.value[1],r));return{"aria-label":r.toLocaleDateString(),"aria-current":s?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,o]),getMonthCellProps:ue(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(g=>g==="day")&&e.rangeSelection&&e.value&&e.value[0]&&(n&&oe(e.value[0],n,r)||e.value[1]&&oe(e.value[0],e.value[1],r));return{"aria-label":r.toLocaleDateString(),"aria-current":l?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,n]),getPickerDayProps:ue(a=>{let r=new Date(e.viewMonth||new Date);r.setHours(0,0,0,0),r.setDate(a);let s=!!e.value&&(No(r,e.value[0])||e.value[1]&&No(r,e.value[1])),l=e.rangeSelection&&e.value&&e.value[0]&&(o&&oe(e.value[0],o,r)||e.value[1]&&oe(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:Ft(r),isSelected:s,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 f=new Date;return f.setHours(0,0,0,0),f})(),tabIndex:-1,"aria-label":r.toLocaleDateString(),"aria-selected":s?"true":void 0,"aria-current":l?"date":void 0}},[e.onChange,e.value,e.viewMonth,e.rangeSelection,e.minDate,e.maxDate,e.disableFuture,e.disablePast,o]),getPickerMonthProps:ue(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(b=>b==="day"),l=s&&e.rangeSelection,g=!!e.value&&(ro(r,e.value[0])||e.value[1]&&ro(r,e.value[1])),f=l&&e.value&&e.value[0]&&(n&&oe(e.value[0],n,r)||e.value[1]&&oe(e.value[0],e.value[1],r)),m=()=>{l?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]):s?e.onChange?.([r,void 0]):(e.onViewChange?.("day"),e.onMonthChange?.(r)),i(null)};return{isSelected:g,onMouseEnter:l&&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&&!ro(r,new Date),onClick:m,tabIndex:-1,"aria-label":Bo(r,e.locale||"default"),"aria-selected":g?"true":void 0,"aria-current":f?"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 Xn=j("div",{name:"Calendar",slot:"root"})({maxWidth:"264px"}),Qn=j("div",{name:"Calendar",slot:"calendarHeader"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(2)})),Et=j("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"})),Ht=j(Zn.table,{name:"Calendar",slot:"viewTable"})(({theme:e})=>({borderSpacing:0,"& td, & th":{padding:0},"& th":{paddingTop:e.spacing(2),paddingBottom:e.spacing(2)}})),ea=j("thead",{name:"Calendar",slot:"weekHeaderContainer"})({}),oa=j("tbody",{name:"Calendar",slot:"dayPickerContainer"})({}),ta=j(F,{name:"Calendar",slot:"switchViewButton"})(({ownerState:e})=>[e.view==="month"&&{pointerEvents:"none"}]),ra=j("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}}})),na=j("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}}})),aa=j(F,{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}]),ia=j(F,{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}]),Ot={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})},io=1e4,zt=(e,o)=>Math.abs(e)*o,la=e=>{let{ownerState:o}=e,{getPickerDayProps:t,getDayCellProps:n}=ao(o),i=Lt(()=>Tt(o.viewMonth),[o.viewMonth]),a=Lt(()=>It(o.locale||"default"),[o.locale]);return k.createElement(Et,{calendarType:"datePicker"},k.createElement(St,{initial:!1,custom:o.direction},k.createElement(Ht,{key:`${o.viewMonth.toString()}_${o.direction}`,custom:o.direction,variants:Ot,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:s,velocity:l})=>{let g=zt(s.x,l.x);if(g<-io){let f=new Date(o.viewMonth||new Date);f.setMonth(f.getMonth()+1),o.onMonthChange?.(f)}else if(g>io){let f=new Date(o.viewMonth||new Date);f.setMonth(f.getMonth()-1),o.onMonthChange?.(f)}}},k.createElement(ea,null,k.createElement("tr",null,a.map((r,s)=>k.createElement(fe,{key:`${o.viewMonth}_${r}_${s}`},k.createElement("th",null,k.createElement(U,{level:"body-xs",textAlign:"center"},r)),s<6&&k.createElement("th",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"}))))),k.createElement(oa,null,i.map((r,s)=>k.createElement(fe,{key:`${o.viewMonth}_${s}`},k.createElement("tr",null,r.map((l,g)=>l?k.createElement(fe,{key:g},k.createElement(ra,{...n(l)},k.createElement(ia,{size:"sm",variant:"plain",color:"neutral",...t(l)},l)),g<6&&k.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})):k.createElement(fe,{key:g},k.createElement("td",null),g<6&&k.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})))),s<i.length-1&&k.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},k.createElement("td",{colSpan:13,style:{height:4}}))))))))},sa=e=>{let{ownerState:o}=e,{getPickerMonthProps:t,getMonthCellProps:n}=ao(o),i=Array.from({length:12},(r,s)=>s).reduce((r,s)=>(r[r.length-1].length===4&&r.push([]),r[r.length-1].push(s),r),[[]]),a=!o.views?.find(r=>r==="day");return k.createElement(Et,{calendarType:a?"monthPicker":"datePicker"},k.createElement(St,{initial:!1,custom:o.direction},k.createElement(Ht,{key:`${o.viewMonth.getFullYear()}_${o.direction}`,custom:o.direction,variants:Ot,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:s,velocity:l})=>{let g=zt(s.x,l.x);if(g<-io){let f=new Date(o.viewMonth||new Date);f.setMonth(f.getMonth()+1),o.onMonthChange?.(f)}else if(g>io){let f=new Date(o.viewMonth||new Date);f.setMonth(f.getMonth()-1),o.onMonthChange?.(f)}}},k.createElement("tbody",null,i.map((r,s)=>k.createElement(fe,{key:s},k.createElement("tr",null,r.map((l,g)=>k.createElement(fe,{key:l},k.createElement(na,{...n(l)},k.createElement(aa,{size:"sm",variant:"plain",color:"neutral",...t(l)},At(l,o.locale))),g<3&&k.createElement("td",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"})))),s<i.length-1&&k.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},k.createElement("td",{colSpan:7,style:{height:4}}))))))))},Ie=_n((e,o)=>{let[t,n]=Bt(e),{value:i,defaultValue:a,onChange:r,locale:s,onViewChange:l,onMonthChange:g,view:f,views:m,rangeSelection:b,minDate:d,maxDate:c,disableFuture:u,disablePast:p,...v}=t,{calendarTitle:P,onPrev:M,onNext:T}=ao(n);return k.createElement(Xn,{ref:o,...v},k.createElement(Qn,null,k.createElement(E,{size:"sm",onClick:M},k.createElement(Kn,null)),k.createElement(ta,{ownerState:n,variant:"plain",color:"neutral",onClick:l},P),k.createElement(E,{size:"sm",onClick:T},k.createElement(jn,null))),f==="day"&&k.createElement(la,{ownerState:n}),f==="month"&&k.createElement(sa,{ownerState:n}))});Ie.displayName="Calendar";var re=Ie;import{Card as ma,CardContent as pa,CardCover as da,CardActions as ca,CardOverflow as ua}from"@mui/joy";import{motion as Fe}from"framer-motion";var fa=Fe(ma),Be=fa;Be.displayName="Card";var ga=Fe(pa),Lo=ga;Lo.displayName="CardContent";var ha=Fe(da),So=ha;So.displayName="CardCover";var Ca=Fe(ca),Eo=Ca;Eo.displayName="CardActions";var ba=Fe(ua),Ho=ba;Ho.displayName="CardOverflow";import ya from"react";import{Checkbox as xa}from"@mui/joy";import{motion as va}from"framer-motion";var Ma=va(xa),Ne=e=>ya.createElement(Ma,{...e});Ne.displayName="Checkbox";var Le=Ne;import{styled as Da}from"@mui/joy";import ka,{forwardRef as Pa}from"react";var Ta=Da("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}}})),Oo=Pa(function(o,t){return ka.createElement(Ta,{ref:t,...o})});Oo.displayName="Container";import ne,{useCallback as Na,useMemo as Yt,useState as Jt}from"react";import{IntlMessageFormat as La}from"intl-messageformat";import{NumericFormat as Sa}from"react-number-format";import Se from"react";import{Input as wa}from"@mui/joy";import{motion as Aa}from"framer-motion";var Ia=Aa(wa),Ee=Se.forwardRef((e,o)=>{let{label:t,helperText:n,error:i,style:a,size:r,color:s,disabled:l,required:g,...f}=e,m=Se.createElement(Ia,{required:g,color:i?"danger":s,size:r,disabled:l,slotProps:{input:{ref:o,...f.slotProps?.input},...f.slotProps},...f});return t?Se.createElement(B,{required:g,color:s,size:r,error:i,disabled:l},Se.createElement(N,null,t),m,n&&Se.createElement(A,null,n)):m});Ee.displayName="Input";var $=Ee;import Fa from"intl-messageformat";var Ba={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},Vt=(e="USD")=>{let[o,t,n,...i]=new Fa(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split(""),a=Ba[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 Ea=ne.forwardRef(function(o,t){let{onChange:n,...i}=o;return ne.createElement(Sa,{...i,onValueChange:({value:a})=>{n?.({target:{name:o.name,value:a}})},valueIsNumericString:!0,getInputRef:t,allowNegative:!1})}),lo=ne.forwardRef(function(o,t){let{currency:n="USD",name:i,onChange:a,label:r,error:s,helperText:l,required:g,disabled:f,useMinorUnit:m,...b}=o,{symbol:d,thousandSeparator:c,decimalSeparator:u,placeholder:p,fixedDecimalScale:v,decimalScale:P}=Vt(n),[M,T]=Jt(o.value),y=Yt(()=>M&&m?M/Math.pow(10,P):M,[M,m,P]),h=Yt(()=>o.max&&m?o.max/Math.pow(10,P):o.max,[o.max,m,P]),[D,x]=Jt(!!h&&!!y&&y>h),w=Na(K=>{let me=Number(m?K.target.value?.replace(u,""):K.target.value);h&&Number(K.target.value)>h?x(!0):x(!1),T(me),a?.({...K,target:{name:i,value:me}})},[u,h,i,a,m]),X=ne.createElement($,{...b,size:"sm",ref:t,value:y,placeholder:p,onChange:w,disabled:f,required:g,color:s||D?"danger":o.color,slotProps:{input:{component:Ea,decimalSeparator:u,thousandSeparator:c,prefix:d,fixedDecimalScale:v,decimalScale:P}},sx:{fontFamily:"monospace"}});return r?ne.createElement(B,{size:"sm",disabled:f,required:g,error:s||D},ne.createElement(N,null,r),X,D?ne.createElement(A,null,new La(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:h})):l&&ne.createElement(A,null,l)):X});var Ut=lo;import C,{useCallback as ie,useEffect as uo,useMemo as R,useRef as Xt,useState as Uo}from"react";import{styled as Qt,LinearProgress as gi,Link as hi}from"@mui/joy";import Ci from"@mui/icons-material/esm/ChevronLeft.js";import bi from"@mui/icons-material/esm/ChevronRight.js";import{Sheet as Ha}from"@mui/joy";import{motion as Oa}from"framer-motion";var za=Oa(Ha),He=za;He.displayName="Sheet";var _=He;import Z from"react";import{Table as Va}from"@mui/joy";var Oe=e=>{let{children:o,...t}=e;return Z.createElement(Va,{...t},o)};Oe.displayName="Table";function zo(e){let{headCells:o,showCheckbox:t,onCheckboxChange:n,slots:{checkbox:i=Le}={},slotProps:{checkbox:a={}}={}}=e;return Z.createElement("thead",null,Z.createElement("tr",null,t&&Z.createElement("th",{style:{width:"40px",textAlign:"center"}},Z.createElement(i,{onChange:n,...a})),o.map(r=>Z.createElement("th",{key:r.label,style:{width:r.width,minWidth:r.minWidth,maxWidth:r.maxWidth,textAlign:r.numeric?"right":"left"}},r.label))))}zo.displayName="TableHead";function Vo(e){let{rows:o,cellOrder:t,rowOptions:n,showCheckbox:i,onCheckboxChange:a,slots:{checkbox:r=Le}={},slotProps:{checkbox:s={}}={}}=e;return Z.createElement("tbody",null,o.map((l,g)=>Z.createElement("tr",{key:g},i&&Z.createElement("td",{style:{textAlign:"center"}},Z.createElement(r,{onChange:f=>a?.(f,g),...s})),t.map(f=>Z.createElement("td",{key:f,style:{textAlign:n?.[f]?.numeric?"right":"left"}},l[f])))))}Vo.displayName="TableBody";import H,{forwardRef as Wa,useCallback as Rt,useEffect as $t,useImperativeHandle as Ga,useRef as qa,useState as Wt}from"react";import{IMaskInput as _a,IMask as Yo}from"react-imask";import Ka from"@mui/icons-material/esm/CalendarToday.js";import{styled as Jo}from"@mui/joy";import{FocusTrap as ja,ClickAwayListener as Za,Popper as Xa}from"@mui/base";import{DialogActions as Ya,styled as Ja}from"@mui/joy";import{motion as Ua}from"framer-motion";var Ra=Ua(Ya),$a=Ja(Ra)(({theme:e})=>({padding:e.spacing(2),gap:e.spacing(2),flexDirection:"row",justifyContent:"flex-end"})),ze=$a;ze.displayName="DialogActions";var Q=ze;var Qa=Jo(Xa,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),ei=Jo(_,{name:"DatePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),oi=Jo("div",{name:"DatePicker",slot:"container"})({width:"100%"}),Gt=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("/")},ti=H.forwardRef(function(o,t){let{onChange:n,...i}=o;return H.createElement(_a,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d",blocks:{d:{mask:Yo.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Yo.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Yo.MaskedRange,from:1900,to:9999}},format:Gt,parse:a=>{let r=a.split("/");return new Date(Number(r[0]),Number(r[1])-1,Number(r[2]))},autofix:"pad",overwrite:!0})}),so=Wa((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:s,maxDate:l,disableFuture:g,disablePast:f,required:m,...b}=e,d=qa(null),[c,u]=Wt(e.value||""),[p,v]=Wt(null),P=!!p;$t(()=>{u(e.value||"")},[e.value]),$t(()=>{p||d.current?.blur()},[p,d]),Ga(o,()=>d.current,[d.current]);let M=Rt(h=>{u(h.target.value),t?.(h)},[t]),T=Rt(h=>{v(p?null:h.currentTarget),setTimeout(()=>{d.current?.focus()},0)},[p,v,d]),y=H.createElement(oi,null,H.createElement(ja,{open:!0},H.createElement(H.Fragment,null,H.createElement($,{...b,color:a?"danger":b.color,ref:d,size:"sm",value:c,onChange:M,placeholder:"YYYY/MM/DD",disabled:n,required:m,slotProps:{input:{component:ti,ref:d}},sx:{fontFamily:"monospace"},endDecorator:H.createElement(E,{variant:"plain",onClick:T},H.createElement(Ka,null))}),P&&H.createElement(Za,{onClickAway:()=>v(null)},H.createElement(Qa,{id:"date-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:h=>h.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},H.createElement(ei,{tabIndex:-1,role:"presentation"},H.createElement(re,{value:Number.isNaN(new Date(c).getTime())?void 0:[new Date(c),void 0],onChange:([h])=>{M({target:{name:e.name,value:Gt(h)}}),v(null)},minDate:s?new Date(s):void 0,maxDate:l?new Date(l):void 0,disableFuture:g,disablePast:f}),H.createElement(Q,{sx:{p:1}},H.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{M({target:{name:e.name,value:""}}),v(null)}},"Clear"))))))));return i?H.createElement(B,{required:m,disabled:n,error:a,size:"sm"},H.createElement(N,null,i),y,r&&H.createElement(A,null,r)):y});var qt=so;import mo from"react";import{Textarea as ri}from"@mui/joy";import{motion as ni}from"framer-motion";var ai=ni(ri),Ve=e=>{let{label:o,error:t,helperText:n,color:i,size:a,disabled:r,required:s,minRows:l=2,maxRows:g=4,...f}=e,m=mo.createElement(ai,{required:s,disabled:r,color:t?"danger":i,size:a,minRows:l,maxRows:g,...f});return o?mo.createElement(B,{required:s,disabled:r,color:i,size:a,error:t},mo.createElement(N,null,o),m,n&&mo.createElement(A,null,n)):m};Ve.displayName="Textarea";var _t=Ve;import Ye,{useMemo as ii}from"react";import{Select as li,Option as si}from"@mui/joy";import{motion as mi}from"framer-motion";var pi=mi(si),po=pi;po.displayName="Option";function Je(e){let{label:o,helperText:t,error:n,size:i,color:a,disabled:r,required:s,onChange:l,...g}=e,f=ii(()=>e.options.map(d=>typeof d!="object"?{value:d,label:d}:d),[e.options]),b=Ye.createElement(li,{...g,required:s,disabled:r,size:i,color:n?"danger":a,onChange:(d,c)=>{let u=d||{target:{}},p={...u,target:{name:u.target?.name||e.name,value:c||void 0}};l?.(p)}},f.map(d=>Ye.createElement(po,{key:d.value,value:d.value},d.label)));return o?Ye.createElement(B,{required:s,disabled:r,size:i,color:a,error:n},Ye.createElement(N,null,o),b,t&&Ye.createElement(A,null,t)):b}Je.displayName="Select";var Kt=Je;import di from"react";import{Tooltip as ci}from"@mui/joy";import{motion as ui}from"framer-motion";var fi=ui(ci),Ue=e=>di.createElement(fi,{...e});Ue.displayName="Tooltip";var jt=Ue;function er(e){return!e.editMode&&["number","date","currency"].includes(e.type||"")?"end":"start"}var Zt=Qt("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"}}),co=e=>"Intl"in window?new Intl.NumberFormat().format(e):e;function yi(e){let{paginationModel:{page:o,pageSize:t},rowCount:n,onPageChange:i}=e,a=1,r=Math.ceil(n/t),s=[o-2,o-1].filter(m=>m>1),l=[o+1,o+2].filter(m=>m<=r-1),g=r>1&&o<r-3,f=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(E,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-1),disabled:o===a,"aria-label":"Previous page"},C.createElement(Ci,null)),o!==a&&C.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(a)},a),f&&C.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-3)},"..."),s.map(m=>C.createElement(F,{key:m,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(m)},m)),C.createElement(F,{variant:"soft",size:"sm"},o),l.map(m=>C.createElement(F,{key:m,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(m)},m)),g&&C.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+3)},"..."),o!==r&&C.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(r)},r),C.createElement(E,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+1),disabled:o===r,"aria-label":"Next page"},C.createElement(bi,null))))}var xi=e=>C.createElement(to,{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)}}),vi=Qt("span",{name:"DataTable",slot:"headCellAsterisk"})(({theme:e})=>({color:"var(--ceed-palette-danger-500)",marginLeft:e.spacing(.5)})),Mi=e=>{let o=Xt(null),t={width:e.width,minWidth:e.minWidth??"50px",maxWidth:e.maxWidth,textAlign:er(e),position:e.stickyHeader?void 0:"relative"},n=e.resizable??!0?xi(o):null;return C.createElement("th",{ref:o,key:e.field,style:t},e.headerName??e.field,e.editMode&&e.required&&C.createElement(vi,null,"*"),n)},Di=e=>{let{field:o,type:t,renderCell:n,isCellEditable:i,noWrap:a,row:r,rowId:s}=e,[l,g]=Uo(r[o]),f=Xt(null),m=R(()=>({row:r,value:l,id:s}),[r,s,l]),b=R(()=>!!(e.editMode&&(typeof i=="function"?i(m):i??!0)),[e.editMode,i,m]),d=R(()=>({...typeof e.componentProps=="function"?e.componentProps(m):e.componentProps||{},size:"sm"}),[e,m]),c=R(()=>({...d,onChange:M=>{d.onChange?.(M),g(M.target.value),t==="select"&&e.onCellEditStop?.({...m,originalRow:r,row:{...m.row,[o]:M.target.value},value:M.target.value})},onFocus:M=>{d.onFocus?.(M),e.onCellEditStart?.({...m,originalRow:r,row:{...m.row,value:l},value:l})},onBlur:M=>{d.onBlur?.(M),t&&["number","text","longText","currency","date"].includes(t)&&e.onCellEditStop?.({...m,originalRow:r,row:{...m.row,[o]:l},value:l})},...t==="autocomplete"&&{onChangeComplete:M=>{d.onChangeComplete?.(M),g(M.target.value),e.onCellEditStop?.({...m,originalRow:r,row:{...m.row,[o]:M.target.value},value:M.target.value})}}}),[m,r,o,l,d,t,e]),u=R(()=>({date:C.createElement(qt,{value:l,...c}),currency:C.createElement(Ut,{value:l,...c}),number:C.createElement($,{value:l,type:"number",...c}),text:C.createElement($,{value:l,type:"text",...c}),longText:C.createElement(_t,{value:l,...c}),autocomplete:C.createElement(Mt,{value:l,options:c.options||[l],...c}),select:C.createElement(Kt,{value:l,options:c.options||[l],...c})})[t||"text"],[l,c,t]),p=R(()=>{if(n)return n(m);let M=l;return{link:C.createElement(e.component||hi,{children:M,...d})}[t||"text"]||M},[l,n,m,t,d,e]),v=R(()=>b&&u?u:p,[b,u,p]),P=R(()=>a&&e.type==="longText",[a,e.type]);return uo(()=>{g(r[o])},[r,o]),C.createElement("td",{ref:f,key:o,style:{textAlign:er({type:t}),verticalAlign:b?"top":"middle",overflow:"auto"}},P?C.createElement(jt,{title:l,placement:"bottom",style:{maxWidth:"100%"},enterDelay:1500,enterNextDelay:1500},C.createElement("div",{style:{overflow:"hidden",textOverflow:"ellipsis"}},v)):v)},ki=e=>{let{columns:o,rowId:t,editMode:n,noWrap:i}=e,[a,r]=Uo(e.row),s=ie(({row:l})=>{r(l)},[]);return C.createElement(C.Fragment,null,o.map((l,g)=>C.createElement(Di,{...l,key:`${t}_${l.field.toString()}_${g}`,row:a,rowId:t,editMode:n,noWrap:i,onCellEditStop:f=>{l.onCellEditStop?.(f),s(f)}})))};function Pi({rows:e,columns:o,rowCount:t,pagination:n,paginationMode:i,paginationModel:a,onPaginationModelChange:r,selectionModel:s=[],onSelectionModelChange:l,editMode:g,getId:f,isTotalSelected:m}){let[b,d]=Uo(a?.page||1),c=a?.pageSize||20,u=ie((D,x)=>f?.(D)??D?.id??`${(x||0)+(b-1)*c}`,[f??b,c]),p=R(()=>new Set(s),[s]),v=R(()=>!n||i==="server"?e:e.slice((b-1)*c,(b-1)*c+c),[e,b,c,i,n]),P=R(()=>v.length>0&&v.every((D,x)=>p.has(u(D,x))),[v,p,u]),M=t||e.length,T=R(()=>m??(M>0&&s.length===M),[m,s,M]),y=R(()=>(o||Object.keys(e[0]||{}).map(x=>({field:x}))).map(x=>({...x,isCellEditable:g&&(typeof x.isCellEditable=="function"?x.isCellEditable:x.isCellEditable??!0)})),[e,o,g]),h=ie(D=>{d(D),r?.({page:D,pageSize:c})},[r,c]);return uo(()=>{h(1)},[M,h]),uo(()=>{let D=Math.max(1,Math.ceil(M/c));b>D&&h(D)},[b,M,c,h]),uo(()=>{l?.([])},[b,l]),{rowCount:M,page:b,pageSize:c,onPaginationModelChange:h,getId:u,HeadCell:Mi,BodyRow:ki,dataInPage:v,isAllSelected:P,isTotalSelected:T,isSelectedRow:ie(D=>p.has(D),[p]),onAllCheckboxChange:ie(()=>{l?.(P?[]:v.map(u))},[P,v,l,u]),onCheckboxChange:ie((D,x)=>{if(p.has(x)){let w=s.filter(X=>X!==x);l?.(w)}else{let w=[...s,x];l?.(w)}},[s,l,p]),columns:y,onTotalSelect:ie(()=>{l?.(T?[]:e.map(u),!T)},[T,e,l,u])}}function Ro(e){let{rows:o,checkboxSelection:t,editMode:n,selectionModel:i,onSelectionModelChange:a,rowCount:r,columns:s,onPaginationModelChange:l,pagination:g,paginationMode:f,paginationModel:m,loading:b,slots:{checkbox:d=Le,toolbar:c,footer:u,loadingOverlay:p=()=>C.createElement(gi,{value:8,variant:"plain"})}={},slotProps:{checkbox:v={},toolbar:P,background:M={}}={},...T}=e,{columns:y,isAllSelected:h,isSelectedRow:D,onAllCheckboxChange:x,onCheckboxChange:w,getId:X,rowCount:K,page:me,pageSize:S,onPaginationModelChange:J,dataInPage:W,isTotalSelected:pe,onTotalSelect:ee,HeadCell:Pr,BodyRow:Tr}=Pi(e),wr=R(()=>({page:me,pageSize:S}),[me,S]);return C.createElement(to,null,(!!t||!!c)&&C.createElement(Y,{direction:"row",sx:{pt:1,pb:1},justifyContent:"space-between",alignItems:"center"},!!t&&C.createElement(Y,{direction:"row",spacing:1},!h&&C.createElement(U,{level:"body-xs"},co(i?.length||0)," items selected"),h&&!pe&&C.createElement(Y,{direction:"row",spacing:1,alignItems:"center"},C.createElement(U,{level:"body-xs"},"All ",co(i?.length||0)," items on this page are selected."),C.createElement(F,{size:"sm",variant:"plain",onClick:ee},"Select all ",co(K??o.length)," items")),pe&&C.createElement(Y,{direction:"row",spacing:1,alignItems:"center"},C.createElement(U,{level:"body-xs"},"All ",co(K??o.length)," items are selected."),C.createElement(F,{size:"sm",variant:"plain",color:"danger",onClick:ee},"Cancel"))),c&&C.createElement(c,{...P||{}})),C.createElement(_,{variant:"outlined",sx:{overflow:"auto",width:"100%",boxShadow:"sm",borderRadius:"sm"},...M},C.createElement(Oe,{...T},C.createElement("thead",null,C.createElement("tr",null,t&&C.createElement("th",{style:{width:"40px",textAlign:"center"}},C.createElement(d,{onChange:x,checked:h,indeterminate:(i||[]).length>0&&!h,...v})),y.map((de,ko)=>C.createElement(Pr,{key:`${de.field.toString()}_${ko}`,stickyHeader:e.stickyHeader,editMode:!!de.isCellEditable,...de})))),C.createElement("tbody",null,C.createElement(Zt,null,!!b&&C.createElement("td",null,C.createElement(to,{sx:{position:"absolute",top:0,left:0,right:0}},C.createElement(p,null)))),C.createElement(Zt,null),W.map((de,ko)=>{let ce=X(de,ko);return C.createElement("tr",{key:ce,role:t?"checkbox":void 0,tabIndex:t?-1:void 0,onClick:t?Po=>w(Po,ce):void 0,"aria-checked":t?D(ce):void 0},t&&C.createElement("th",{scope:"row",style:{textAlign:"center"}},C.createElement(d,{onChange:Po=>w(Po,ce),checked:D(ce),...v})),C.createElement(Tr,{columns:y,row:de,rowId:ce,editMode:n,noWrap:e.noWrap}))})),u&&C.createElement(u,null))),S<K&&g&&C.createElement(yi,{paginationModel:wr,rowCount:K,onPageChange:J}))}Ro.displayName="DataTable";import O,{forwardRef as Ti,useCallback as $o,useEffect as or,useImperativeHandle as wi,useMemo as Ai,useRef as Ii,useState as tr}from"react";import{IMaskInput as Fi,IMask as Wo}from"react-imask";import Bi from"@mui/icons-material/esm/CalendarToday.js";import{styled as Go}from"@mui/joy";import{FocusTrap as Ni,ClickAwayListener as Li,Popper as Si}from"@mui/base";var Ei=Go(Si,{name:"DateRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Hi=Go(_,{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})),Oi=Go("div",{name:"DateRangePicker",slot:"container"})({width:"100%"}),rr=([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(" - ")},nr=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]))]},zi=O.forwardRef(function(o,t){let{onChange:n,...i}=o;return O.createElement(Fi,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d - Y/`m/`d",blocks:{d:{mask:Wo.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Wo.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Wo.MaskedRange,from:1900,to:9999}},format:rr,parse:nr,autofix:"pad",overwrite:!0})}),qo=Ti((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:s,maxDate:l,disableFuture:g,disablePast:f,required:m,...b}=e,d=Ii(null),[c,u]=tr(e.value||""),[p,v]=tr(null),P=!!p,M=Ai(()=>c?nr(c):void 0,[c]);or(()=>{u(e.value||"")},[e.value]),or(()=>{p||d.current?.blur()},[p,d]),wi(o,()=>d.current,[d.current]);let T=$o(x=>{u(x.target.value),t?.(x)},[t]),y=$o(x=>{v(p?null:x.currentTarget),d.current?.focus()},[p,v,d]),h=$o(([x,w])=>{!x||!w||(u(rr([x,w])),v(null))},[u,v]),D=O.createElement(Oi,null,O.createElement(Ni,{open:!0},O.createElement(O.Fragment,null,O.createElement($,{...b,color:a?"danger":b.color,ref:o,size:"sm",value:c,onChange:T,disabled:n,required:m,placeholder:"YYYY/MM/DD - YYYY/MM/DD",slotProps:{input:{component:zi,ref:d}},sx:{fontFamily:"monospace"},endDecorator:O.createElement(E,{variant:"plain",onClick:y},O.createElement(Bi,null))}),P&&O.createElement(Li,{onClickAway:()=>v(null)},O.createElement(Ei,{id:"date-range-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:x=>x.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},O.createElement(Hi,{tabIndex:-1,role:"presentation"},O.createElement(re,{rangeSelection:!0,defaultValue:M,onChange:h,minDate:s?new Date(s):void 0,maxDate:l?new Date(l):void 0,disableFuture:g,disablePast:f}),O.createElement(Q,{sx:{p:1}},O.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{u(""),v(null)}},"Clear"))))))));return i?O.createElement(B,{required:m,disabled:n,error:a,size:"sm"},O.createElement(N,null,i),D,r&&O.createElement(A,null,r)):D});qo.displayName="DateRangePicker";import le from"react";import{Modal as Xi}from"@mui/joy";import{motion as Qi}from"framer-motion";import{DialogTitle as Vi,styled as Yi}from"@mui/joy";import{motion as Ji}from"framer-motion";var Ui=Ji(Vi),Ri=Yi(Ui)(({theme:e})=>({padding:e.spacing(4,6)})),Re=Ri;Re.displayName="DialogTitle";var fo=Re;import{DialogContent as $i,styled as Wi}from"@mui/joy";import{motion as Gi}from"framer-motion";var qi=Gi($i),_i=Wi(qi)(({theme:e})=>({padding:e.spacing(0,6,5)})),$e=_i;$e.displayName="DialogContent";var go=$e;import{ModalDialog as Ki,styled as ji}from"@mui/joy";var Zi=ji(Ki)({padding:0}),We=Zi;We.displayName="ModalDialog";var ho=We;var Co=le.forwardRef((e,o)=>{let{title:t,children:n,actions:i,fullscreen:a,...r}=e;return le.createElement(ho,{layout:a?"fullscreen":"center",ref:o,...r},le.createElement(fo,null,t),le.createElement(go,null,n),le.createElement(Q,null,i))});Co.displayName="DialogFrame";var el=Qi(Xi);function _o(e){let{children:o,title:t,actions:n,fullscreen:i,size:a,...r}=e;return le.createElement(el,{...r},le.createElement(Co,{title:t,actions:n,fullscreen:i,size:a},o))}_o.displayName="Dialog";import ol from"react";import{Divider as tl}from"@mui/joy";import{motion as rl}from"framer-motion";var nl=rl(tl),Ge=e=>ol.createElement(nl,{...e});Ge.displayName="Divider";import al from"react";import{Drawer as il}from"@mui/joy";import{motion as ll}from"framer-motion";var sl=ll(il),Ko=e=>{let{children:o,...t}=e;return al.createElement(sl,{...t,slotProps:{...t.slotProps,content:{...t.slotProps?.content,sx:{bgcolor:"transparent",p:{md:3,sm:0},boxShadow:"none"}}}},o)};Ko.displayName="InsetDrawer";import L,{useCallback as bo,useEffect as ml,useMemo as ar,useRef as ir,useState as yo}from"react";import{styled as ae}from"@mui/joy";import pl from"@mui/icons-material/esm/CloudUploadRounded.js";import dl from"@mui/icons-material/esm/UploadFileRounded.js";import cl from"@mui/icons-material/esm/ClearRounded.js";import{combine as ul}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/combine.js";import{dropTargetForExternal as fl,monitorForExternal as gl}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/adapter.js";import{containsFiles as lr,getFiles as hl}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/external/file.js";import{preventUnhandled as sr}from"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js";var Cl=ae("input")({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),bl=ae(Y,{name:"Uploader",slot:"PreviewRoot"})({}),yl=ae(Be,{name:"Uploader",slot:"UploadCard"})(({theme:e})=>({padding:e.spacing(2.5),border:`1px solid ${e.palette.neutral.outlinedBorder}`})),xl=ae(dl,{name:"Uploader",slot:"UploadFileIcon"})(({theme:e})=>({color:e.palette.neutral[400],width:"32px",height:"32px"})),vl=ae(cl,{name:"Uploader",slot:"ClearIcon"})(({theme:e})=>({color:e.palette.neutral.plainColor,width:"18px",height:"18px"})),Ml=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],mr=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)},Dl=e=>{let{files:o,uploaded:t,onDelete:n}=e;return L.createElement(bl,{gap:1},[...t,...o].map(i=>L.createElement(yl,{key:i.name,size:"sm",color:"neutral"},L.createElement(Y,{direction:"row",alignItems:"center",gap:2},L.createElement(xl,null),L.createElement(Y,{flex:"1"},L.createElement(U,{level:"body-sm",textColor:"common.black"},i.name),!!i.size&&L.createElement(U,{level:"body-xs",fontWeight:"300",lineHeight:"1.33",textColor:"text.tertiary"},mr(i.size))),L.createElement(E,{onClick:()=>n?.(i)},L.createElement(vl,null))))))},kl=ae(Y,{name:"Uploader",slot:"root"})(({theme:e})=>({gap:e.spacing(2)})),Pl=ae(_,{name:"Uploader",slot:"dropZone",shouldForwardProp:e=>e!=="error"})(({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}`})),Tl=ae(pl,{name:"Uploader",slot:"iconContainer",shouldForwardProp:e=>e!=="error"})(({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"})),jo=L.memo(e=>{let{accept:o,maxCount:t,name:n,size:i,maxSize:a,onChange:r,label:s,helperText:l,disabled:g,required:f,onDelete:m}=e,b=ir(null),d=ir(null),[c,u]=yo(),[p,v]=yo([]),[P,M]=yo(e.uploaded||[]),[T,y]=yo("idle"),h=ar(()=>!!c||e.error,[e.error,c]),D=ar(()=>!t||t&&[...P,...p].length!==t,[p,t,P]),x=bo(S=>{try{let J=o?.split(",").map(ee=>ee.trim().replace(".","").replace("*",".*"))||[],W=new RegExp(`(${J.join("|")})`);S.forEach(ee=>{if(W.test(ee.type)===!1)throw new Error(`File type is not allowed: ${ee.name}`)}),a&&S.forEach(ee=>{if(ee.size>a)throw new Error(`File size exceeds the limit: ${mr(a)}`)});let pe=[...p,...S];if(t&&[...P,...pe].length>t)throw new Error(`File count exceeds the limit: ${t}`);r?.({target:{name:n,value:pe}}),v(pe),u(void 0)}catch(J){u(J.message)}},[p,P,t,o,a,n,r]);ml(()=>{let S=b.current;if(S)return ul(fl({element:S,canDrop:lr,onDragEnter:()=>y("over"),onDragLeave:()=>y("potential"),onDrop:async({source:J})=>{let W=await hl({source:J});x(W)}}),gl({canMonitor:lr,onDragStart:()=>{y("potential"),sr.start()},onDrop:()=>{y("idle"),sr.stop()}}))});let w=bo(S=>{let J=Array.from(S.target.files||[]);x(J)},[x]),X=bo(S=>{S instanceof File?v(J=>(r?.({target:{name:n,value:J.filter(W=>W!==S)}}),J.filter(W=>W!==S))):(M(J=>J.filter(W=>W.id!==S.id)),m?.(S)),u(void 0)},[n,r,m]),K=bo(()=>{d.current?.click()},[]);return L.createElement(kl,null,D&&L.createElement(B,{size:i,error:!!(h||c),disabled:g,required:f},s&&L.createElement(N,null,s),L.createElement(Pl,{state:T,error:!!(h||c),ref:b,onClick:K},L.createElement(Y,{alignItems:"center",gap:1},L.createElement(Tl,{state:T,error:!!(h||c)})),L.createElement(Cl,{type:"file",onChange:w,multiple:!0,accept:o,disabled:g,required:f,ref:d})),c?L.createElement(A,null,c):l&&L.createElement(A,null,l)),[...P,...p].length>0&&L.createElement(Dl,{files:p,uploaded:P,onDelete:X}))});jo.displayName="Uploader";import{Grid as wl}from"@mui/joy";import{motion as Al}from"framer-motion";var Il=Al(wl),Zo=Il;Zo.displayName="Grid";import te from"react";import Fl from"react-markdown";import{Link as Bl}from"@mui/joy";var Xo=e=>{let{children:o,color:t,textColor:n,defaultLevel:i="body-md",markdownOptions:a,...r}=e;return te.createElement(G,{color:t,textColor:n,...r},te.createElement(Fl,{...a,children:o,components:{h1:({children:s})=>te.createElement(G,{color:t,textColor:n,level:"h1"},s),h2:({children:s})=>te.createElement(G,{color:t,textColor:n,level:"h2"},s),h3:({children:s})=>te.createElement(G,{color:t,textColor:n,level:"h3"},s),h4:({children:s})=>te.createElement(G,{color:t,textColor:n,level:"h4"},s),p:({children:s})=>te.createElement(G,{color:t,textColor:n,level:i},s),a:({children:s,href:l})=>te.createElement(Bl,{href:l},s),hr:()=>te.createElement(Ge,null),...a?.components}}))};Xo.displayName="Markdown";import se from"react";import{Modal as Nl,ModalClose as Ll,ModalOverflow as Sl,styled as El}from"@mui/joy";import{motion as Qo}from"framer-motion";var pr=Qo(Nl),et=pr;et.displayName="Modal";var Hl=El(Qo(Ll))(({theme:e})=>({top:e.spacing(3),right:e.spacing(6)})),xo=Hl;xo.displayName="ModalClose";var Ol=Qo(Sl),ot=Ol;ot.displayName="ModalOverflow";var vo=se.forwardRef((e,o)=>{let{title:t,children:n,...i}=e;return se.createElement(ho,{ref:o,...i},se.createElement(xo,null),se.createElement(fo,null,t),se.createElement(go,null,n))});vo.displayName="ModalFrame";function tt(e){let{children:o,title:t,size:n,variant:i,...a}=e;return se.createElement(pr,{...a},se.createElement(vo,{title:t,size:n,variant:i},o))}tt.displayName="ModalContainer";import z,{forwardRef as zl,useCallback as dr,useEffect as cr,useImperativeHandle as Vl,useRef as Yl,useState as ur}from"react";import{IMaskInput as Jl,IMask as fr}from"react-imask";import Ul from"@mui/icons-material/esm/CalendarToday.js";import{styled as nt}from"@mui/joy";import{FocusTrap as Rl,ClickAwayListener as $l,Popper as Wl}from"@mui/base";var Gl=nt(Wl,{name:"MonthPicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),ql=nt(_,{name:"MonthPicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),_l=nt("div",{name:"MonthPicker",slot:"container"})({width:"100%"}),gr=e=>{let o=`${e.getMonth()+1}`,t=e.getFullYear();return Number(o)<10&&(o="0"+o),[t,o].join("/")},rt=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 gr(i)})(e),hr=e=>e.split(" - ")[0]||"",Kl=z.forwardRef(function(o,t){let{onChange:n,...i}=o;return z.createElement(Jl,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/m",blocks:{m:{mask:fr.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:fr.MaskedRange,from:1900,to:9999}},format:rt,parse:hr})}),Cr=zl((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:s,maxDate:l,disableFuture:g,disablePast:f,required:m,...b}=e,d=Yl(null),[c,u]=ur(e.value||""),[p,v]=ur(null),P=!!p;cr(()=>{u(e.value?rt(hr(e.value)):"")},[e.value]),cr(()=>{p||d.current?.blur()},[p,d]),Vl(o,()=>d.current,[d.current]);let M=dr(h=>{u(h.target.value),t?.(h)},[t]),T=dr(h=>{v(p?null:h.currentTarget),d.current?.focus()},[p,v,d]),y=z.createElement(_l,null,z.createElement(Rl,{open:!0},z.createElement(z.Fragment,null,z.createElement($,{...b,color:a?"danger":b.color,ref:d,size:"sm",value:c,onChange:M,placeholder:"YYYY/MM",disabled:n,required:m,slotProps:{input:{component:Kl,ref:d}},sx:{fontFamily:"monospace"},endDecorator:z.createElement(E,{variant:"plain",onClick:T},z.createElement(Ul,null))}),P&&z.createElement($l,{onClickAway:()=>v(null)},z.createElement(Gl,{id:"date-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:h=>h.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},z.createElement(ql,{tabIndex:-1,role:"presentation"},z.createElement(re,{view:"month",views:["month"],value:Number.isNaN(new Date(c).getTime())?void 0:[new Date(c),void 0],onChange:([h])=>{M({target:{name:e.name,value:rt(gr(h))}}),v(null)},minDate:s?new Date(s):void 0,maxDate:l?new Date(l):void 0,disableFuture:g,disablePast:f}),z.createElement(Q,{sx:{p:1}},z.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{M({target:{name:e.name,value:""}}),v(null)}},"Clear"))))))));return i?z.createElement(B,{required:m,disabled:n,error:a,size:"sm"},z.createElement(N,null,i),y,r&&z.createElement(A,null,r)):y});import V,{forwardRef as jl,useCallback as at,useEffect as br,useImperativeHandle as Zl,useMemo as Xl,useRef as Ql,useState as yr}from"react";import{IMaskInput as es,IMask as xr}from"react-imask";import os from"@mui/icons-material/esm/CalendarToday.js";import{styled as mt}from"@mui/joy";import{FocusTrap as ts,ClickAwayListener as rs,Popper as ns}from"@mui/base";var as=mt(ns,{name:"MonthRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),is=mt(_,{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})),ls=mt("div",{name:"MonthRangePicker",slot:"container"})({width:"100%"}),it=e=>{let o=`${e.getMonth()+1}`,t=e.getFullYear();return Number(o)<10&&(o="0"+o),[t,o].join("/")},lt=([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 it(a)};return[t(e),t(o)].join(" - ")},st=e=>{let o=e.split(" - ")[0]||"",t=e.split(" - ")[1]||"";return[o,t]},ss=V.forwardRef(function(o,t){let{onChange:n,...i}=o;return V.createElement(es,{...i,inputRef:t,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/m - Y/m",blocks:{m:{mask:xr.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:xr.MaskedRange,from:1900,to:9999}},format:lt,parse:st})}),pt=jl((e,o)=>{let{onChange:t,disabled:n,label:i,error:a,helperText:r,minDate:s,maxDate:l,disableFuture:g,disablePast:f,required:m,...b}=e,d=Ql(null),[c,u]=yr(""),[p,v]=yr(null),P=!!p,M=Xl(()=>c?st(c).map(x=>new Date(x)):void 0,[c]);br(()=>{u(e.value?lt(st(e.value)):"")},[e.value]),br(()=>{p||d.current?.blur()},[p,d]),Zl(o,()=>d.current,[d.current]);let T=at(x=>{u(x.target.value),t?.(x)},[t]),y=at(x=>{v(p?null:x.currentTarget),d.current?.focus()},[p,v,d]),h=at(([x,w])=>{!x||!w||(u(lt([it(x),it(w)])),v(null))},[u,v]),D=V.createElement(ls,null,V.createElement(ts,{open:!0},V.createElement(V.Fragment,null,V.createElement($,{...b,color:a?"danger":b.color,ref:o,size:"sm",value:c,onChange:T,disabled:n,required:m,placeholder:"YYYY/MM - YYYY/MM",slotProps:{input:{component:ss,ref:d}},sx:{fontFamily:"monospace"},endDecorator:V.createElement(E,{variant:"plain",onClick:y},V.createElement(os,null))}),P&&V.createElement(rs,{onClickAway:()=>v(null)},V.createElement(as,{id:"date-range-picker-popper",open:!0,anchorEl:p,placement:"bottom-end",onMouseDown:x=>x.preventDefault(),modifiers:[{name:"offset",options:{offset:[4,4]}}]},V.createElement(is,{tabIndex:-1,role:"presentation"},V.createElement(re,{view:"month",views:["month"],rangeSelection:!0,defaultValue:M,onChange:h,minDate:s?new Date(s):void 0,maxDate:l?new Date(l):void 0,disableFuture:g,disablePast:f}),V.createElement(Q,{sx:{p:1}},V.createElement(F,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{u(""),v(null)}},"Clear"))))))));return i?V.createElement(B,{required:m,disabled:n,error:a,size:"sm"},V.createElement(N,null,i),D,r&&V.createElement(A,null,r)):D});pt.displayName="MonthRangePicker";import{Radio as ms,RadioGroup as ps}from"@mui/joy";import{motion as vr}from"framer-motion";var ds=vr(ms),qe=ds;qe.displayName="Radio";var cs=vr(ps),_e=cs;_e.displayName="RadioGroup";import Mr from"react";function dt(e){let{items:o,...t}=e;return Mr.createElement(_e,{...t},o.map(n=>Mr.createElement(qe,{key:`${n.value}`,value:n.value,label:n.label})))}dt.displayName="RadioList";import Dr from"react";import{Switch as us,styled as fs,switchClasses as gs}from"@mui/joy";import{motion as kr}from"framer-motion";var hs=kr(us),Cs=fs(kr.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)",[`&.${gs.checked}`]:{left:"unset",right:"var(--Switch-thumbOffset)"}}),bs=e=>Dr.createElement(Cs,{...e,layout:!0,transition:ys}),ys={type:"spring",stiffness:700,damping:30},ct=e=>Dr.createElement(hs,{...e,slots:{thumb:bs,...e.slots}});ct.displayName="Switch";import{Tabs as xs,Tab as vs,TabList as Ms,TabPanel as Ds,styled as ks,tabClasses as Ps}from"@mui/joy";import{motion as Mo}from"framer-motion";var Ts=Mo(xs),ut=Ts;ut.displayName="Tabs";var ws=ks(Mo(vs))(({theme:e})=>({[`&:not(.${Ps.selected})`]:{color:e.palette.neutral[700]}})),ft=ws;ft.displayName="Tab";var As=Mo(Ms),gt=As;gt.displayName="TabList";var Is=Mo(Ds),ht=Is;ht.displayName="TabPanel";import Do from"react";import{CssBaseline as Ct,CssVarsProvider as Fs,checkboxClasses as Bs,extendTheme as Ns}from"@mui/joy";var Ls=Ns({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)"},[`& .${Bs.root}`]:{verticalAlign:"middle"}})}},JoyTooltip:{defaultProps:{size:"sm",placement:"top"}}}});function bt(e){return Do.createElement(Do.Fragment,null,Do.createElement(Fs,{theme:Ls},Do.createElement(Ct,null),e.children))}bt.displayName="ThemeProvider";export{Xe as Accordion,Ze as AccordionDetails,je as AccordionSummary,To as Accordions,wo as Alert,tb as AspectRatio,oo as Autocomplete,qC as AutocompleteListbox,_C as AutocompleteOption,XC as Avatar,eb as AvatarGroup,nb as Badge,De as Box,Fo as Breadcrumbs,Ae as Button,Ie as Calendar,Be as Card,Eo as CardActions,Lo as CardContent,So as CardCover,Ho as CardOverflow,Ne as Checkbox,xe as Chip,ub as CircularProgress,Oo as Container,Ct as CssBaseline,lo as CurrencyInput,Ro as DataTable,so as DatePicker,qo as DateRangePicker,_o as Dialog,ze as DialogActions,$e as DialogContent,Co as DialogFrame,Re as DialogTitle,Ge as Divider,gb as Drawer,we as Dropdown,Ce as FormControl,ye as FormHelperText,be as FormLabel,Zo as Grid,ve as IconButton,Ee as Input,Ko as InsetDrawer,Cb as LinearProgress,Lb as Link,yb as List,vb as ListDivider,Db as ListItem,Pb as ListItemButton,wb as ListItemContent,Ib as ListItemDecorator,Bb as ListSubheader,Xo as Markdown,ke as Menu,Pe as MenuButton,Te as MenuItem,et as Modal,xo as ModalClose,tt as ModalContainer,We as ModalDialog,vo as ModalFrame,ot as ModalOverflow,Cr as MonthPicker,pt as MonthRangePicker,po as Option,qe as Radio,_e as RadioGroup,dt as RadioList,Je as Select,He as Sheet,$b as Skeleton,Eb as Slider,he as Stack,Ob as Step,Vb as StepButton,Jb as StepIndicator,Ub as Stepper,ct as Switch,ft as Tab,gt as TabList,ht as TabPanel,Oe as Table,Vo as TableBody,zo as TableHead,ut as Tabs,Ve as Textarea,bt as ThemeProvider,Ue as Tooltip,G as Typography,jo as Uploader,RC as accordionClasses,$C as accordionDetailsClasses,GC as accordionSummaryClasses,WC as accordionsClasses,sC as alertClasses,rb as aspectRatioClasses,KC as autocompleteClasses,jC as autocompleteListboxClasses,ZC as autocompleteOptionClasses,QC as avatarClasses,ob as avatarGroupClasses,ab as badgeClasses,mC as boxClasses,ib as breadcrumbsClasses,pC as buttonClasses,sb as cardActionsClasses,lb as cardClasses,mb as cardContentClasses,pb as cardCoverClasses,db as cardOverflowClasses,dC as checkboxClasses,cb as chipClasses,fb as circularProgressClasses,zC as dialogActionsClasses,OC as dialogContentClasses,HC as dialogTitleClasses,cC as dividerClasses,hb as drawerClasses,TC as formControlClasses,AC as formHelperTextClasses,wC as formLabelClasses,IC as gridClasses,uC as iconButtonClasses,fC as inputClasses,bb as linearProgressClasses,Sb as linkClasses,xb as listClasses,Mb as listDividerClasses,Tb as listItemButtonClasses,kb as listItemClasses,Ab as listItemContentClasses,Fb as listItemDecoratorClasses,Nb as listSubheaderClasses,hC as menuButtonClasses,gC as menuClasses,CC as menuItemClasses,NC as modalClasses,LC as modalCloseClasses,SC as modalDialogClasses,EC as modalOverflowClasses,bC as optionClasses,yC as radioClasses,xC as radioGroupClasses,vC as selectClasses,BC as sheetClasses,Wb as skeletonClasses,Hb as sliderClasses,FC as stackClasses,Yb as stepButtonClasses,zb as stepClasses,Rb as stepperClasses,MC as switchClasses,JC as tabListClasses,UC as tabPanelClasses,DC as tableClasses,YC as tabsClasses,kC as textareaClasses,VC as tooltipClasses,PC as typographyClasses,iC as useColorScheme,aC as useTheme,lC as useThemeProps};