@ceed/ads 0.0.126 → 0.0.129

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.
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ declare const Card: import("framer-motion").CustomDomComponent<{
3
+ children?: React.ReactNode;
4
+ color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").CardPropsColorOverrides> | undefined;
5
+ invertedColors?: boolean | undefined;
6
+ orientation?: "horizontal" | "vertical" | undefined;
7
+ size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").CardPropsSizeOverrides> | undefined;
8
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
9
+ variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").CardPropsVariantOverrides> | undefined;
10
+ } & import("@mui/joy").CardSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
12
+ }, "children" | "color" | "variant" | "sx" | "size" | "invertedColors" | "orientation" | keyof import("@mui/joy").CardSlotsAndSlotProps>>;
13
+ export { Card };
14
+ declare const CardContent: import("framer-motion").CustomDomComponent<{
15
+ children?: React.ReactNode;
16
+ orientation?: "horizontal" | "vertical" | undefined;
17
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
18
+ } & import("@mui/joy").CardContentSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
20
+ }, "children" | "sx" | "orientation" | keyof import("@mui/joy").CardContentSlotsAndSlotProps>>;
21
+ export { CardContent };
22
+ declare const CardCover: import("framer-motion").CustomDomComponent<{
23
+ children?: React.ReactNode;
24
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
25
+ } & import("@mui/joy").CardCoverSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
26
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
27
+ }, "children" | "sx" | keyof import("@mui/joy").CardCoverSlotsAndSlotProps>>;
28
+ export { CardCover };
29
+ declare const CardActions: import("framer-motion").CustomDomComponent<{
30
+ children?: React.ReactNode;
31
+ buttonFlex?: string | number | undefined;
32
+ orientation?: "horizontal" | "vertical" | "horizontal-reverse" | undefined;
33
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
34
+ } & import("@mui/joy").CardActionsSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
35
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
36
+ }, "children" | "sx" | "orientation" | "buttonFlex" | keyof import("@mui/joy").CardActionsSlotsAndSlotProps>>;
37
+ export { CardActions };
38
+ declare const CardOverflow: import("framer-motion").CustomDomComponent<{
39
+ color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").CardOverflowPropsColorOverrides> | undefined;
40
+ children?: React.ReactNode;
41
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
42
+ variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").CardOverflowPropsVariantOverrides> | undefined;
43
+ } & import("@mui/joy").CardOverflowSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
44
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
45
+ }, "children" | "color" | "variant" | "sx" | keyof import("@mui/joy").CardOverflowSlotsAndSlotProps>>;
46
+ export { CardOverflow };
@@ -0,0 +1,3 @@
1
+ import { Card } from "./Card";
2
+ export * from "./Card";
3
+ export default Card;
@@ -5,13 +5,8 @@ interface DatePickerProps {
5
5
  target: {
6
6
  name?: string;
7
7
  value: string;
8
- originalValue: string;
9
8
  };
10
9
  }) => void;
11
- /**
12
- * dayjs format string or custom format function
13
- */
14
- formatValue?: string | ((value: string) => string);
15
10
  name?: string;
16
11
  disabled?: boolean;
17
12
  required?: boolean;
@@ -4,17 +4,9 @@ interface DateRangePickerProps {
4
4
  onChange?: (event: {
5
5
  target: {
6
6
  name?: string;
7
- value: {
8
- start?: string;
9
- end?: string;
10
- };
11
- originalValue: string;
7
+ value: string;
12
8
  };
13
9
  }) => void;
14
- /**
15
- * dayjs format string or custom format function
16
- */
17
- formatValue?: string | ((value: string) => string);
18
10
  name?: string;
19
11
  disabled?: boolean;
20
12
  required?: boolean;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ declare const FileUpload: React.MemoExoticComponent<(props: {
3
+ onChange?: ((event: {
4
+ target: {
5
+ name?: string | undefined;
6
+ value: File[];
7
+ };
8
+ }) => void) | undefined;
9
+ name?: string | undefined;
10
+ accept?: string | undefined;
11
+ maxCount?: number | undefined;
12
+ maxTotalSize?: number | undefined;
13
+ maxSizePerFile?: number | undefined;
14
+ }) => React.JSX.Element>;
15
+ export { FileUpload };
@@ -0,0 +1,3 @@
1
+ import { FileUpload } from './FileUpload';
2
+ export * from './FileUpload';
3
+ export default FileUpload;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { Options } from "react-markdown";
3
+ declare const Markdown: {
4
+ (props: Options): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export { Markdown };
@@ -0,0 +1,3 @@
1
+ import { Markdown } from "./Markdown";
2
+ export * from "./Markdown";
3
+ export default Markdown;
@@ -4,17 +4,9 @@ interface MonthRangePickerProps {
4
4
  onChange?: (event: {
5
5
  target: {
6
6
  name?: string;
7
- value: {
8
- start?: string;
9
- end?: string;
10
- };
11
- originalValue: string;
7
+ value: string;
12
8
  };
13
9
  }) => void;
14
- /**
15
- * dayjs format string or custom format function
16
- */
17
- formatValue?: string | ((value: string) => string);
18
10
  name?: string;
19
11
  disabled?: boolean;
20
12
  required?: boolean;
@@ -5,6 +5,7 @@ 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
9
  export { Checkbox } from "./Checkbox";
9
10
  export { Container } from "./Container";
10
11
  export { CurrencyInput } from './CurrencyInput';
@@ -18,12 +19,14 @@ export { DialogFrame } from "./DialogFrame";
18
19
  export { Divider } from "./Divider";
19
20
  export { InsetDrawer } from "./InsetDrawer";
20
21
  export { Dropdown } from "./Dropdown";
22
+ export { FileUpload } from './FileUpload';
21
23
  export { FormControl } from "./FormControl";
22
24
  export { FormHelperText } from "./FormHelperText";
23
25
  export { FormLabel } from "./FormLabel";
24
26
  export { Grid } from "./Grid";
25
27
  export { IconButton } from "./IconButton";
26
28
  export { Input } from "./Input";
29
+ export { Markdown } from './Markdown';
27
30
  export { Menu, MenuButton, MenuItem } from "./Menu";
28
31
  export { Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, } from "./Modal";
29
32
  export { MonthRangePicker } from "./MonthRangePicker";
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
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, Card, cardClasses, CardActions, cardActionsClasses, CardContent, cardContentClasses, CardCover, cardCoverClasses, CardOverflow, cardOverflowClasses, Chip, 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, Checkbox, Container, CurrencyInput, DataTable, DatePicker, DateRangePicker, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, InsetDrawer, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthRangePicker, Radio, RadioGroup, RadioList, Select, Option, Sheet, Stack, Switch, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from "./components";
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, Chip, 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, Container, CurrencyInput, DataTable, DatePicker, DateRangePicker, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, InsetDrawer, FileUpload, FormControl, FormHelperText, FormLabel, Grid, IconButton, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, 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 vu,useColorScheme as Du,useThemeProps as Mu,alertClasses as ku,boxClasses as Tu,buttonClasses as Pu,checkboxClasses as wu,dividerClasses as Au,iconButtonClasses as Iu,inputClasses as Fu,menuClasses as Bu,menuButtonClasses as Nu,menuItemClasses as Lu,optionClasses as Su,radioClasses as Hu,radioGroupClasses as Vu,selectClasses as zu,switchClasses as Ou,tableClasses as Eu,textareaClasses as Yu,typographyClasses as Ju,formControlClasses as Wu,formLabelClasses as $u,formHelperTextClasses as qu,gridClasses as Gu,stackClasses as ju,sheetClasses as _u,modalClasses as Ru,modalCloseClasses as Uu,modalDialogClasses as Xu,modalOverflowClasses as Qu,dialogTitleClasses as Zu,dialogContentClasses as Ku,dialogActionsClasses as eg,tooltipClasses as og,tabsClasses as tg,tabListClasses as rg,tabPanelClasses as ng,accordionClasses as ag,accordionDetailsClasses as ig,accordionGroupClasses as sg,accordionSummaryClasses as lg,AutocompleteListbox as mg,AutocompleteOption as dg,autocompleteClasses as pg,autocompleteListboxClasses as cg,autocompleteOptionClasses as ug,Avatar as gg,avatarClasses as fg,AvatarGroup as hg,avatarGroupClasses as bg,AspectRatio as Cg,aspectRatioClasses as yg,Badge as xg,badgeClasses as vg,breadcrumbsClasses as Dg,Card as Mg,cardClasses as kg,CardActions as Tg,cardActionsClasses as Pg,CardContent as wg,cardContentClasses as Ag,CardCover as Ig,cardCoverClasses as Fg,CardOverflow as Bg,cardOverflowClasses as Ng,Chip as Lg,chipClasses as Sg,CircularProgress as Hg,circularProgressClasses as Vg,Drawer as zg,drawerClasses as Og,LinearProgress as Eg,linearProgressClasses as Yg,List as Jg,listClasses as Wg,ListDivider as $g,listDividerClasses as qg,ListItem as Gg,listItemClasses as jg,ListItemButton as _g,listItemButtonClasses as Rg,ListItemContent as Ug,listItemContentClasses as Xg,ListItemDecorator as Qg,listItemDecoratorClasses as Zg,ListSubheader as Kg,listSubheaderClasses as ef,Link as of,linkClasses as tf,Slider as rf,sliderClasses as nf,Step as af,stepClasses as sf,StepButton as lf,stepButtonClasses as mf,StepIndicator as df,Stepper as pf,stepperClasses as cf,Skeleton as uf,skeletonClasses as gf}from"@mui/joy";import ae from"react";import{AccordionGroup as Lt,Accordion as St,AccordionSummary as Ht,AccordionDetails as Vt}from"@mui/joy";import{motion as Le}from"framer-motion";var zt=Le(Ht),Se=zt;Se.displayName="AccordionSummary";var Ot=Le(Vt),He=Ot;He.displayName="AccordionDetails";var Et=Le(St);function Ve(e){let{summary:o,details:r,variant:n,color:i,...a}=e,t=n==="solid"?"solid":void 0;return ae.createElement(Et,{variant:t,color:i,...a},ae.createElement(Se,{variant:t,color:i},o),ae.createElement(He,{variant:t,color:i},r))}Ve.displayName="Accordion";var Yt=Le(Lt);function oo(e){let{variant:o,color:r,items:n,...i}=e;return ae.createElement(Yt,{variant:o,color:r,...i},n.map((a,t)=>ae.createElement(Ve,{key:t,summary:a.summary,details:a.details,index:t,variant:o,color:r})))}oo.displayName="Accordions";import ze from"react";import{Alert as Rt,styled as Ut}from"@mui/joy";import{motion as Xt}from"framer-motion";import Jt from"react";import{Typography as Wt}from"@mui/joy";import{motion as $t}from"framer-motion";var qt=$t(Wt),ie=e=>Jt.createElement(qt,{...e});ie.displayName="Typography";var O=ie;import{Stack as Gt}from"@mui/joy";import{motion as jt}from"framer-motion";var _t=jt(Gt),se=_t;se.displayName="Stack";var q=se;var Qt=Ut(Xt(Rt))({alignItems:"flex-start",fontWeight:"unset"});function to(e){let{title:o,content:r,actions:n,color:i="primary",...a}=e,t=e.invertedColors||e.variant==="solid";return ze.createElement(Qt,{...a,color:i,endDecorator:n,invertedColors:t},ze.createElement(q,null,o&&ze.createElement(O,{level:"title-sm",color:i},o),ze.createElement(O,{level:"body-sm",color:i},r)))}to.displayName="Alert";import R,{useMemo as Oe,useState as lr}from"react";import{Autocomplete as mr,AutocompleteOption as dr,ListItemDecorator as qo,CircularProgress as pr}from"@mui/joy";import{FormControl as Zt,styled as Kt}from"@mui/joy";import{motion as er}from"framer-motion";var or=Kt(er(Zt))({width:"100%"}),le=or;le.displayName="FormControl";var N=le;import{FormLabel as tr}from"@mui/joy";import{motion as rr}from"framer-motion";var nr=rr(tr),me=nr;me.displayName="FormLabel";var L=me;import{FormHelperText as ar}from"@mui/joy";import{motion as ir}from"framer-motion";var sr=ir(ar),de=sr;de.displayName="FormHelperText";var w=de;function ro(e){let{label:o,error:r,helperText:n,color:i,size:a,disabled:t,required:s,onChange:m,...p}=e,[l,c]=lr(e.value||e.defaultValue),g=Oe(()=>e.options.map(x=>typeof x!="object"?{value:x,label:x}:x),[e.options]),y=Oe(()=>e.loading?{value:"",label:"",startDecorator:R.createElement(pr,{size:"sm",color:"neutral",variant:"plain",thickness:3})}:typeof l=="string"&&g.find(x=>x.value===l)||l,[l,e.options,e.loading]),C=Oe(()=>y?.startDecorator||e.startDecorator,[y]),d=Oe(()=>y?.endDecorator||e.endDecorator,[y]),b=R.createElement(mr,{...p,required:s,onChange:(x,M)=>{c(M);let v=M;m?.({...x,target:{...x.target,value:v?.value}})},color:i,value:y,options:g,size:a,disabled:t,startDecorator:C,endDecorator:d,getOptionLabel:x=>`${x.value||""}`,renderOption:(x,M)=>R.createElement(dr,{...x},M.startDecorator&&R.createElement(qo,{sx:{marginInlineEnd:"var(--Input-gap)"}},M.startDecorator),M.label,M.endDecorator&&R.createElement(qo,{sx:{marginInlineStart:"var(--Input-gap)"}},M.endDecorator))});return o?R.createElement(N,{required:s,color:i,size:a,error:r,disabled:t},R.createElement(L,null,o),b,n&&R.createElement(w,null,n)):b}ro.displayName="Autocomplete";import{Box as cr}from"@mui/joy";import{motion as ur}from"framer-motion";var gr=ur(cr),pe=gr;pe.displayName="Box";var Ee=pe;import V from"react";import{Breadcrumbs as _o,Link as kr}from"@mui/joy";import no from"react";import{Menu as fr,MenuButton as hr,MenuItem as br}from"@mui/joy";import{motion as ao}from"framer-motion";var Cr=ao(fr),ce=e=>no.createElement(Cr,{...e});ce.displayName="Menu";var yr=ao(hr),ue=e=>no.createElement(yr,{...e});ue.displayName="MenuButton";var xr=ao(br),ge=e=>no.createElement(xr,{...e});ge.displayName="MenuItem";var Go=ce;import{Dropdown as vr}from"@mui/joy";import{motion as Dr}from"framer-motion";var Mr=Dr(vr),fe=Mr;fe.displayName="Dropdown";var jo=fe;function io(e){let{crumbs:o,size:r,startCrumbCount:n=1,endCrumbCount:i=3,slots:{link:a,...t}={link:kr},slotProps:{link:s,...m}={link:{color:"neutral"}},collapsed:p=!0,...l}=e,c=h=>h.type==="link"&&a?V.createElement(a,{to:h.linkHref,href:h.linkHref,...s},h.label):V.createElement(O,null,h.label);if(!p)return V.createElement(_o,{size:r,slots:t,slotProps:m,...l},o.map(h=>V.createElement(c,{...h})));let g=Math.max(1,i),y=o.slice(0,n).map(h=>V.createElement(c,{...h})),C=(n+g>o.length?o.slice(n):o.slice(-g)).map(h=>V.createElement(c,{...h})),d=o.slice(n,-g).map(h=>V.createElement(ge,null,V.createElement(c,{...h})));return V.createElement(_o,{size:r,slots:t,slotProps:m,...l},y,d.length&&V.createElement(jo,null,V.createElement(ue,{size:r,variant:"plain"},"..."),V.createElement(Go,{size:r},d)),C)}io.displayName="Breadcrumbs";import Tr,{forwardRef as Pr}from"react";import{Button as wr}from"@mui/joy";import{motion as Ar}from"framer-motion";var Ir=Ar(wr),he=Pr((e,o)=>Tr.createElement(Ir,{ref:o,...e}));he.displayName="Button";var P=he;import f,{Fragment as Ce,forwardRef as Or,useMemo as ot}from"react";import{styled as E}from"@mui/joy";import Er from"@mui/icons-material/esm/ChevronLeft.js";import Yr from"@mui/icons-material/esm/ChevronRight.js";import{AnimatePresence as tt,motion as Jr}from"framer-motion";var Ro=e=>{let o=[],r=new Date(e.getFullYear(),e.getMonth(),1),n=new Date(e.getFullYear(),e.getMonth()+1,0),i=Math.ceil((r.getDay()+1)/7),a=Math.ceil((n.getDate()+r.getDay())/7),t=1;for(let s=1;s<=a;s++){let m=[];for(let p=1;p<=7;p++)s===i&&p<r.getDay()+1||t>n.getDate()?m.push(void 0):(m.push(t),t++);o.push(m)}return o},Uo=(e,o)=>e.toLocaleString(o,{year:"numeric"}),so=(e,o)=>e.toLocaleString(o,{year:"numeric",month:"long"}),Xo=(e,o)=>new Date(0,e).toLocaleString(o,{month:"short"}),Qo=e=>{let o=new Date().getDay(),r=new Date;return r.setDate(r.getDate()-o),Array.from({length:7}).map(()=>{let n=r.toLocaleString(e,{weekday:"short"});return r.setDate(r.getDate()+1),n})},Zo=e=>{let o=new Date,r=new Date(e);return r.setHours(0,0,0,0),o.setHours(0,0,0,0),r.getTime()===o.getTime()},lo=(e,o)=>{let r=new Date(e),n=new Date(o);return r.setHours(0,0,0,0),n.setHours(0,0,0,0),r.getTime()===n.getTime()},G=(e,o,r)=>{let n=new Date(r);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},Ye=(e,o)=>e.getFullYear()===o.getFullYear()&&e.getMonth()===o.getMonth();import Fr from"react";import{IconButton as Br}from"@mui/joy";import{motion as Nr}from"framer-motion";var Lr=Nr(Br),be=e=>Fr.createElement(Lr,{...e});be.displayName="IconButton";var z=be;import{useCallback as Sr,useMemo as Hr,useState as Je}from"react";import{useThemeProps as Vr}from"@mui/joy";var zr=(e,o)=>o.includes(e)?e:o[0],Ko=e=>{let[o,r]=Je(()=>zr(e.view||"day",e.views||["day","month"])),[n,i]=Je(e.defaultValue),[a,t]=Je(()=>{let d=new Date;return d.setDate(1),d.setHours(0,0,0,0),e.value?.[0]||e.defaultValue?.[0]||d}),[[s,m],p]=Je([0,0]),l=e.view??o,c=d=>{p([s+d,d])},g=Sr(d=>{t(d),l==="month"?a.getFullYear()!==d.getFullYear()&&c(d>a?1:-1):c(d>a?1:-1),e.onMonthChange?.(d)},[e.onMonthChange,a,l]),y=Vr({props:{locale:"default",views:["day","month"],view:l,value:e.value??n,...e,onChange:e.value?e.onChange:d=>{i(d),e.onChange?.(d)},onMonthChange:g,onViewChange:()=>{let d=l==="month"?"day":"month";!(!e.views||e.views.includes(d))||e.view===d||(e.onViewChange?e.onViewChange(d):r(d))}},name:"Calendar"}),C=Hr(()=>({...y,viewMonth:a,direction:m}),[y,a,m]);return[y,C]};import{useCallback as oe,useState as et}from"react";var We=e=>{let[o,r]=et(null),[n,i]=et(null);return{calendarTitle:e.view==="month"?Uo(e.viewMonth,e.locale||"default"):so(e.viewMonth,e.locale||"default"),onPrev:oe(()=>{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:oe(()=>{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:oe(a=>{let t=new Date(e.viewMonth||new Date);t.setHours(0,0,0,0),t.setDate(a);let s=e.rangeSelection&&e.value&&e.value[0]&&(o&&G(e.value[0],o,t)||e.value[1]&&G(e.value[0],e.value[1],t));return{"aria-label":t.toLocaleDateString(),"aria-current":s?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,o]),getMonthCellProps:oe(a=>{let t=new Date(e.viewMonth||new Date);t.setDate(1),t.setHours(0,0,0,0),t.setMonth(a);let m=!e.views?.find(p=>p==="day")&&e.rangeSelection&&e.value&&e.value[0]&&(n&&G(e.value[0],n,t)||e.value[1]&&G(e.value[0],e.value[1],t));return{"aria-label":t.toLocaleDateString(),"aria-current":m?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,n]),getPickerDayProps:oe(a=>{let t=new Date(e.viewMonth||new Date);t.setHours(0,0,0,0),t.setDate(a);let s=!!e.value&&(lo(t,e.value[0])||e.value[1]&&lo(t,e.value[1])),m=e.rangeSelection&&e.value&&e.value[0]&&(o&&G(e.value[0],o,t)||e.value[1]&&G(e.value[0],e.value[1],t)),p=()=>{e.rangeSelection?e.value?e.value[0]&&!e.value[1]?e.onChange?.([new Date(Math.min(e.value[0].getTime(),t.getTime())),new Date(Math.max(e.value[0].getTime(),t.getTime()))]):e.onChange?.([t,void 0]):e.onChange?.([t,void 0]):e.onChange?.([t,void 0]),r(null)};return{isToday:Zo(t),isSelected:s,onClick:p,onMouseEnter:e.rangeSelection&&e.value?.[0]&&!e.value?.[1]?()=>r(t):void 0,disabled:e.minDate&&t<e.minDate||e.maxDate&&t>e.maxDate||e.disableFuture&&t>new Date||e.disablePast&&t<(()=>{let l=new Date;return l.setHours(0,0,0,0),l})(),tabIndex:-1,"aria-label":t.toLocaleDateString(),"aria-selected":s?"true":void 0,"aria-current":m?"date":void 0}},[e.onChange,e.value,e.viewMonth,e.rangeSelection,e.minDate,e.maxDate,e.disableFuture,e.disablePast,o]),getPickerMonthProps:oe(a=>{let t=new Date(e.viewMonth||new Date);t.setDate(1),t.setHours(0,0,0,0),t.setMonth(a);let s=!e.views?.find(c=>c==="day")&&e.rangeSelection,m=!!e.value&&(Ye(t,e.value[0])||e.value[1]&&Ye(t,e.value[1])),p=s&&e.value&&e.value[0]&&(n&&G(e.value[0],n,t)||e.value[1]&&G(e.value[0],e.value[1],t)),l=()=>{s?e.value?e.value[0]&&!e.value[1]?e.onChange?.([new Date(Math.min(e.value[0].getTime(),t.getTime())),new Date(Math.max(e.value[0].getTime(),t.getTime()))]):e.onChange?.([t,void 0]):e.onChange?.([t,void 0]):(e.onViewChange?.("day"),e.onMonthChange?.(t)),i(null)};return{isSelected:m,onMouseEnter:s&&e.value?.[0]&&!e.value?.[1]?()=>i(t):void 0,disabled:e.minDate&&(()=>{let c=new Date(t);return c.setMonth(c.getMonth()+1),c.setDate(0),c<e.minDate})()||e.maxDate&&(()=>{let c=new Date(t);return c.setDate(0),c>e.maxDate})()||e.disableFuture&&t>new Date||e.disablePast&&t<new Date&&!Ye(t,new Date),onClick:l,tabIndex:-1,"aria-label":so(t,e.locale||"default"),"aria-selected":m?"true":void 0,"aria-current":p?"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 Wr=E("div",{name:"Calendar",slot:"root"})({maxWidth:"264px"}),$r=E("div",{name:"Calendar",slot:"calendarHeader"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(1)})),rt=E("div",{name:"Calendar",slot:"viewContainer"})(({theme:e,calendarType:o})=>({paddingLeft:e.spacing(1),paddingRight:e.spacing(1),position:"relative",overflow:"hidden",minHeight:o==="datePicker"?"250px":"unset"})),nt=E(Jr.table,{name:"Calendar",slot:"viewTable"})(({theme:e})=>({borderSpacing:0,"& td, & th":{padding:0},"& th":{paddingTop:e.spacing(1),paddingBottom:e.spacing(1)}})),qr=E("thead",{name:"Calendar",slot:"weekHeaderContainer"})({}),Gr=E("tbody",{name:"Calendar",slot:"dayPickerContainer"})({}),jr=E(P,{name:"Calendar",slot:"switchViewButton"})(({ownerState:e})=>[e.view==="month"&&{pointerEvents:"none"}]),_r=E("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}}})),Rr=E("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}}})),Ur=E(P,{name:"Calendar",slot:"month"})(({theme:e,isSelected:o,disabled:r})=>[{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}},r&&{color:e.palette.neutral.solidDisabledColor,backgroundColor:e.palette.neutral.solidDisabledBg}]),Xr=E(P,{name:"Calendar",slot:"day"})(({theme:e,isToday:o,isSelected:r,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&&!r&&{"&:not([aria-current=date]):not(:hover)":{border:`1px solid ${e.palette.neutral.outlinedBorder}`}},r&&{backgroundColor:e.palette.primary.solidBg,color:e.palette.primary.solidColor,"&:hover":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidHoverBg},"&:active":{color:e.palette.primary.solidColor,backgroundColor:e.palette.primary.solidActiveBg}},n&&{color:e.palette.neutral.solidDisabledColor,backgroundColor:e.palette.neutral.solidDisabledBg}]),at={enter:e=>({x:e>0?300:-300,opacity:0}),center:{position:"relative",zIndex:1,x:0,opacity:1},exit:e=>({position:"absolute",zIndex:0,x:e<0?300:-300,opacity:0})},$e=1e4,it=(e,o)=>Math.abs(e)*o,Qr=e=>{let{ownerState:o}=e,{getPickerDayProps:r,getDayCellProps:n}=We(o),i=ot(()=>Ro(o.viewMonth),[o.viewMonth]),a=ot(()=>Qo(o.locale||"default"),[o.locale]);return f.createElement(rt,{calendarType:"datePicker"},f.createElement(tt,{initial:!1,custom:o.direction},f.createElement(nt,{key:`${o.viewMonth.toString()}_${o.direction}`,custom:o.direction,variants:at,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:(t,{offset:s,velocity:m})=>{let p=it(s.x,m.x);if(p<-$e){let l=new Date(o.viewMonth||new Date);l.setMonth(l.getMonth()+1),o.onMonthChange?.(l)}else if(p>$e){let l=new Date(o.viewMonth||new Date);l.setMonth(l.getMonth()-1),o.onMonthChange?.(l)}}},f.createElement(qr,null,f.createElement("tr",null,a.map((t,s)=>f.createElement(f.Fragment,null,f.createElement("th",null,f.createElement(O,{level:"body-xs",textAlign:"center"},t)),s<6&&f.createElement("th",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"}))))),f.createElement(Gr,null,i.map((t,s)=>f.createElement(Ce,{key:`${o.viewMonth}_${s}`},f.createElement("tr",null,t.map((m,p)=>m?f.createElement(Ce,{key:p},f.createElement(_r,{...n(m)},f.createElement(Xr,{size:"sm",variant:"plain",color:"neutral",...r(m)},m)),p<6&&f.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})):f.createElement(Ce,{key:p},f.createElement("td",null),p<6&&f.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})))),s<i.length-1&&f.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},f.createElement("td",{colSpan:13,style:{height:4}}))))))))},Zr=e=>{let{ownerState:o}=e,{getPickerMonthProps:r,getMonthCellProps:n}=We(o),i=Array.from({length:12},(t,s)=>s).reduce((t,s)=>(t[t.length-1].length===4&&t.push([]),t[t.length-1].push(s),t),[[]]),a=!o.views?.find(t=>t==="day")&&o.rangeSelection;return f.createElement(rt,{calendarType:a?"monthPicker":"datePicker"},f.createElement(tt,{initial:!1,custom:o.direction},f.createElement(nt,{key:`${o.viewMonth.getFullYear()}_${o.direction}`,custom:o.direction,variants:at,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:(t,{offset:s,velocity:m})=>{let p=it(s.x,m.x);if(p<-$e){let l=new Date(o.viewMonth||new Date);l.setMonth(l.getMonth()+1),o.onMonthChange?.(l)}else if(p>$e){let l=new Date(o.viewMonth||new Date);l.setMonth(l.getMonth()-1),o.onMonthChange?.(l)}}},f.createElement("tbody",null,i.map((t,s)=>f.createElement(Ce,{key:s},f.createElement("tr",null,t.map((m,p)=>f.createElement(Ce,{key:m},f.createElement(Rr,{...n(m)},f.createElement(Ur,{size:"sm",variant:"plain",color:"neutral",...r(m)},Xo(m,o.locale))),p<3&&f.createElement("td",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"})))),s<i.length-1&&f.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},f.createElement("td",{colSpan:7,style:{height:4}}))))))))},ye=Or((e,o)=>{let[r,n]=Ko(e),{value:i,defaultValue:a,onChange:t,locale:s,onViewChange:m,onMonthChange:p,view:l,views:c,rangeSelection:g,...y}=r,{calendarTitle:C,onPrev:d,onNext:h}=We(n);return f.createElement(Wr,{ref:o,...y},f.createElement($r,null,f.createElement(z,{size:"sm",onClick:d},f.createElement(Er,null)),f.createElement(jr,{ownerState:n,variant:"plain",color:"neutral",onClick:m},C),f.createElement(z,{size:"sm",onClick:h},f.createElement(Yr,null))),l==="day"&&f.createElement(Qr,{ownerState:n}),l==="month"&&f.createElement(Zr,{ownerState:n}))});ye.displayName="Calendar";var te=ye;import Kr from"react";import{Checkbox as en}from"@mui/joy";import{motion as on}from"framer-motion";var tn=on(en),xe=e=>Kr.createElement(tn,{...e});xe.displayName="Checkbox";var ve=xe;import{styled as rn}from"@mui/joy";import nn,{forwardRef as an}from"react";var sn=rn("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(2),paddingRight:e.spacing(2),...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}}})),mo=an(function(o,r){return nn.createElement(sn,{ref:r,...o})});mo.displayName="Container";import j,{useCallback as pn,useState as mt}from"react";import{IntlMessageFormat as cn}from"intl-messageformat";import{NumericFormat as un}from"react-number-format";import gn from"@mui/icons-material/esm/InfoOutlined.js";import De from"react";import{Input as ln}from"@mui/joy";import{motion as mn}from"framer-motion";var st=mn(ln),Me=e=>{let{label:o,helperText:r,error:n,style:i,size:a,color:t,disabled:s,required:m,...p}=e;return o?De.createElement(N,{required:m,color:t,size:a,error:n,disabled:s},De.createElement(L,null,o),De.createElement(st,{...p}),r&&De.createElement(w,null,r)):De.createElement(st,{required:m,color:t,size:a,disabled:s,...p})};Me.displayName="Input";var U=Me;import dn from"intl-messageformat";var lt=(e="usd")=>{let[o,r,n]=new dn(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split("");return{symbol:`${o} `,thousandSeparator:r,decimalSeparator:n,placeholder:n?`${o} 0${n}00`:`${o} 0`,fixedDecimalScale:!!n}};var fn=j.forwardRef(function(o,r){let{onChange:n,...i}=o;return j.createElement(un,{...i,onValueChange:({floatValue:a})=>{n?.({target:{name:o.name,value:a?.toString()}})},valueIsNumericString:!0,getInputRef:r,decimalScale:2})}),dt=j.forwardRef(function(o,r){let{currency:n="usd",max:i=1e5,name:a,onChange:t,label:s,error:m,helperText:p,required:l,disabled:c,...g}=o,{symbol:y,thousandSeparator:C,decimalSeparator:d,placeholder:h,fixedDecimalScale:b}=lt(n),[x,M]=mt(o.value),[v,T]=mt(!!i&&!!o.value&&o.value>i),k=pn(B=>{let D=Number(B.target.value);M(D),t?.({...B,target:{name:a,value:D}}),i&&D>i?T(!0):T(!1)},[]),S=j.createElement(U,{...g,size:"sm",ref:r,value:x,placeholder:h,onChange:k,disabled:c,required:l,slotProps:{input:{component:fn,decimalSeparator:d,thousandSeparator:C,prefix:y,fixedDecimalScale:b}},sx:{fontFamily:"monospace"}});return s?j.createElement(N,{size:"sm",disabled:c,required:l,error:m||v},j.createElement(L,null,s),S,v?j.createElement(w,null,j.createElement(gn,null),new cn(`limit: {amount, number, ::currency/${n} unit-width-narrow}`).format({amount:i})):p&&j.createElement(w,null,p)):S});import u,{useCallback as re,useEffect as uo,useMemo as ne,useRef as xn,useState as vn}from"react";import{styled as Dn,LinearProgress as Mn}from"@mui/joy";import kn from"@mui/icons-material/esm/ChevronLeft.js";import Tn from"@mui/icons-material/esm/ChevronRight.js";import{Sheet as hn}from"@mui/joy";import{motion as bn}from"framer-motion";var Cn=bn(hn),ke=Cn;ke.displayName="Sheet";var X=ke;import Y from"react";import{Table as yn}from"@mui/joy";var Te=e=>{let{children:o,...r}=e;return Y.createElement(yn,{...r},o)};Te.displayName="Table";function po(e){let{headCells:o,showCheckbox:r,onCheckboxChange:n,slots:{checkbox:i=ve}={},slotProps:{checkbox:a={}}={}}=e;return Y.createElement("thead",null,Y.createElement("tr",null,r&&Y.createElement("th",{style:{width:"40px",textAlign:"center"}},Y.createElement(i,{onChange:n,...a})),o.map(t=>Y.createElement("th",{key:t.label,style:{width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,textAlign:t.numeric?"right":"left"}},t.label))))}po.displayName="TableHead";function co(e){let{rows:o,cellOrder:r,rowOptions:n,showCheckbox:i,onCheckboxChange:a,slots:{checkbox:t=ve}={},slotProps:{checkbox:s={}}={}}=e;return Y.createElement("tbody",null,o.map((m,p)=>Y.createElement("tr",{key:p},i&&Y.createElement("td",{style:{textAlign:"center"}},Y.createElement(t,{onChange:l=>a?.(l,p),...s})),r.map(l=>Y.createElement("td",{key:l,style:{textAlign:n?.[l]?.numeric?"right":"left"}},m[l])))))}co.displayName="TableBody";var pt=Dn("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"}}),qe=e=>"Intl"in window?new Intl.NumberFormat().format(e):e;function Pn(e){let{paginationModel:{page:o,pageSize:r},rowCount:n,onPageChange:i}=e,a=1,t=Math.ceil(n/r),s=[o-2,o-1].filter(c=>c>1),m=[o+1,o+2].filter(c=>c<=t-1),p=t>1&&o<t-3,l=t>1&&o>4;return u.createElement(q,{direction:"row",spacing:1,sx:{pt:1,pb:1},justifyContent:"end",alignItems:"center"},u.createElement(q,{direction:"row",spacing:.5,alignItems:"center"},u.createElement(z,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-1),disabled:o===a,"aria-label":"Previous page"},u.createElement(kn,null)),o!==a&&u.createElement(P,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(a)},a),l&&u.createElement(P,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-3)},"..."),s.map(c=>u.createElement(P,{key:c,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(c)},c)),u.createElement(P,{variant:"soft",size:"sm"},o),m.map(c=>u.createElement(P,{key:c,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(c)},c)),p&&u.createElement(P,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+3)},"..."),o!==t&&u.createElement(P,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(t)},t),u.createElement(z,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+1),disabled:o===t,"aria-label":"Next page"},u.createElement(Tn,null))))}var wn=e=>u.createElement(Ee,{sx:{position:"absolute",top:0,right:0,bottom:0,width:"4px",cursor:"col-resize"},onMouseDown:o=>{let r=o.clientX,n=e.current?.getBoundingClientRect().width,i=t=>{n&&r&&(e.current.style.width=`${n+(t.clientX-r)}px`)},a=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",a)}}),An=e=>{let o=xn(null),r={width:e.width,minWidth:e.minWidth??"50px",maxWidth:e.maxWidth,textAlign:e.type==="number"?"end":"start",position:e.stickyHeader?void 0:"relative"},n=e.resizable??!0?wn(o):null;return u.createElement("th",{ref:o,key:e.field,style:r},e.headerName??e.field,n)};function In({rows:e,columns:o,rowCount:r,paginationMode:n,paginationModel:i,onPaginationModelChange:a,selectionModel:t=[],onSelectionModelChange:s,getId:m,isTotalSelected:p}){let[l,c]=vn(i?.page||1),g=i?.pageSize||20,y=re((v,T)=>m?.(v)??v?.id??`${(T||0)+(l-1)*g}`,[m??l,g]),C=ne(()=>new Set(t),[t]),d=ne(()=>n==="server"?e:e.slice((l-1)*g,(l-1)*g+g),[e,l,g,n]),h=ne(()=>d.length>0&&d.every((v,T)=>C.has(y(v,T))),[d,C,l,g,y]),b=r||e.length,x=ne(()=>p??(b>0&&t.length===b),[p,t,b]),M=re(v=>{c(v),a?.({page:v,pageSize:g})},[a]);return uo(()=>{M(1)},[b]),uo(()=>{l>Math.ceil(b/g)&&M(Math.ceil(b/g))},[b,g]),uo(()=>{s?.([])},[l]),{rowCount:b,page:l,pageSize:g,onPaginationModelChange:M,getId:y,HeadCell:An,dataInPage:d,isAllSelected:h,isTotalSelected:x,isSelectedRow:re(v=>C.has(v),[C]),onAllCheckboxChange:re(()=>{s?.(h?[]:d.map(y))},[h,d,s]),onCheckboxChange:re((v,T)=>{if(C.has(T)){let k=t.filter(S=>S!==T);s?.(k)}else{let k=[...t,T];s?.(k)}},[t,s]),columns:ne(()=>o||Object.keys(e[0]||{}).map(v=>({field:v})),[e,o]),onTotalSelect:re(()=>{s?.(x?[]:e.map(y),!x)},[x,e,s])}}function go(e){let{rows:o,checkboxSelection:r,selectionModel:n,onSelectionModelChange:i,rowCount:a,columns:t,onPaginationModelChange:s,paginationMode:m,paginationModel:p,loading:l,slots:{checkbox:c=ve,toolbar:g,footer:y,loadingOverlay:C=()=>u.createElement(Mn,{value:8,variant:"plain"})}={},slotProps:{checkbox:d={},toolbar:h,background:b={}}={},...x}=e,{columns:M,isAllSelected:v,isSelectedRow:T,onAllCheckboxChange:k,onCheckboxChange:S,getId:B,rowCount:D,page:H,pageSize:_,onPaginationModelChange:J,dataInPage:eo,isTotalSelected:W,onTotalSelect:$o,HeadCell:Bt}=In(e);return u.createElement(Ee,null,u.createElement(q,{direction:"row",sx:{pt:1,pb:1},justifyContent:"space-between",alignItems:"center"},!!r&&u.createElement(q,{direction:"row",spacing:1},!v&&u.createElement(O,{level:"body-xs"},qe(n?.length||0)," items selected"),v&&!W&&u.createElement(q,{direction:"row",spacing:1,alignItems:"center"},u.createElement(O,{level:"body-xs"},"All ",qe(n?.length||0)," items on this page are selected."),u.createElement(P,{size:"sm",variant:"plain",onClick:$o},"Select all ",qe(D??o.length)," items")),W&&u.createElement(q,{direction:"row",spacing:1,alignItems:"center"},u.createElement(O,{level:"body-xs"},"All ",qe(D??o.length)," items are selected."),u.createElement(P,{size:"sm",variant:"plain",color:"danger",onClick:$o},"Cancel"))),g&&u.createElement(g,{...h||{}})),u.createElement(X,{variant:"outlined",sx:{overflow:"auto",width:"100%",boxShadow:"sm",borderRadius:"sm"},...b},u.createElement(Te,{...x},u.createElement("thead",null,u.createElement("tr",null,r&&u.createElement("th",{style:{width:"40px",textAlign:"center"}},u.createElement(c,{onChange:k,checked:v,indeterminate:(n||[]).length>0&&!v,...d})),M.map(K=>u.createElement(Bt,{key:K.field,stickyHeader:e.stickyHeader,...K})))),u.createElement("tbody",null,u.createElement(pt,null,!!l&&u.createElement("td",null,u.createElement(Ee,{sx:{position:"absolute",top:0,left:0,right:0}},u.createElement(C,null)))),u.createElement(pt,null),eo.map((K,Nt)=>{let ee=B(K,Nt);return u.createElement("tr",{key:ee,role:r?"checkbox":void 0,tabIndex:r?-1:void 0,onClick:r?$=>S($,ee):void 0,"aria-checked":r?T(ee):void 0},r&&u.createElement("th",{scope:"row",style:{textAlign:"center"}},u.createElement(c,{onChange:$=>S($,ee),checked:T(ee),...d})),M.map($=>u.createElement("td",{key:$.field,style:{textAlign:$.type==="number"?"end":"start"}},$.renderCell?.({row:K,value:K[$.field],id:ee})??K[$.field])))})),y&&u.createElement(y,null))),u.createElement(Pn,{paginationModel:ne(()=>({page:H,pageSize:_}),[H,_]),rowCount:D,onPageChange:J}))}go.displayName="DataTable";import A,{forwardRef as Hn,useCallback as ct,useEffect as Vn,useState as ut}from"react";import zn from"dayjs";import{IMaskInput as On,IMask as fo}from"react-imask";import En from"@mui/icons-material/esm/CalendarToday.js";import{styled as gt}from"@mui/joy";import{FocusTrap as Yn,ClickAwayListener as Jn,Popper as Wn}from"@mui/base";import{DialogActions as Fn,styled as Bn}from"@mui/joy";import{motion as Nn}from"framer-motion";var Ln=Nn(Fn),Sn=Bn(Ln)(({theme:e})=>({padding:e.spacing(1),gap:e.spacing(1),flexDirection:"row",justifyContent:"flex-end"})),Pe=Sn;Pe.displayName="DialogActions";var Q=Pe;var $n=gt(Wn,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),qn=gt(X,{name:"DatePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),Gn=e=>e.toString()==="Invalid Date",ft=e=>{let o=`${e.getDate()}`,r=`${e.getMonth()+1}`,n=e.getFullYear();return Number(o)<10&&(o="0"+o),Number(r)<10&&(r="0"+r),[n,r,o].join("/")},jn=A.forwardRef(function(o,r){let{onChange:n,...i}=o;return A.createElement(On,{...i,inputRef:r,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d",blocks:{d:{mask:fo.MaskedRange,from:1,to:31,maxLength:2},m:{mask:fo.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:fo.MaskedRange,from:1900,to:9999}},format:ft,parse:a=>{let t=a.split("/");return new Date(Number(t[0]),Number(t[1])-1,Number(t[2]))},autofix:"pad",overwrite:!0})}),ho=Hn((e,o)=>{let{onChange:r,disabled:n,label:i,error:a,helperText:t,minDate:s,maxDate:m,disableFuture:p,disablePast:l,required:c,formatValue:g,...y}=e,[C,d]=ut(e.value||""),[h,b]=ut(null),x=!!h;Vn(()=>{d(e.value||"")},[e.value]);let M=ct(k=>{d(k.target.value);let S=g?typeof g=="string"?zn(k.target.value).format(g):g(k.target.value):k.target.value;r?.({...k,target:{...k.target,value:Gn(S)?"":S,originalValue:k.target.value}})},[]),v=ct(k=>{b(h?null:k.currentTarget)},[h,b]),T=A.createElement(A.Fragment,null,A.createElement(U,{...y,ref:o,size:"sm",value:C,onChange:M,placeholder:"YYYY/MM/DD",disabled:n,required:c,slotProps:{input:{component:jn}},sx:{fontFamily:"monospace"},endDecorator:A.createElement(z,{variant:"plain",onClick:v},A.createElement(En,null))}),x&&A.createElement(Jn,{onClickAway:()=>b(null)},A.createElement($n,{id:"date-picker-popper",open:!0,anchorEl:h,placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[4,4]}}]},A.createElement(Yn,{open:!0},A.createElement(qn,{tabIndex:-1,role:"presentation"},A.createElement(te,{value:Number.isNaN(new Date(C).getTime())?void 0:[new Date(C),void 0],onChange:([k])=>{d(ft(k)),b(null)},minDate:s?new Date(s):void 0,maxDate:m?new Date(m):void 0,disableFuture:p,disablePast:l}),A.createElement(Q,{sx:{p:1}},A.createElement(P,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{d(""),b(null)}},"Clear")))))));return i?A.createElement(N,{required:c,disabled:n,error:a,size:"sm"},A.createElement(L,null,i),T,t&&A.createElement(w,null,t)):T});ho.displayName="DatePicker";import I,{forwardRef as _n,useCallback as bo,useEffect as Rn,useMemo as Un,useState as ht}from"react";import Xn from"dayjs";import{IMaskInput as Qn,IMask as Co}from"react-imask";import Zn from"@mui/icons-material/esm/CalendarToday.js";import{styled as bt}from"@mui/joy";import{FocusTrap as Kn,ClickAwayListener as ea,Popper as oa}from"@mui/base";var ta=bt(oa,{name:"DateRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),ra=bt(X,{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})),Ct=e=>e.toString()==="Invalid Date",yt=([e,o])=>{let r=n=>{let i=`${n.getDate()}`,a=`${n.getMonth()+1}`,t=n.getFullYear();return Number(i)<10&&(i="0"+i),Number(a)<10&&(a="0"+a),[t,a,i].join("/")};return[r(e),o?r(o):""].join(" - ")},xt=e=>{let o=e.split(" - ")[0]||"",r=e.split(" - ")[1]||"",n=o.split("/"),i=r.split("/"),a=new Date(Number(n[0]),Number(n[1])-1,Number(n[2])),t=new Date(Number(i[0]),Number(i[1])-1,Number(i[2]));return Ct(a)?[]:[a,t]},na=I.forwardRef(function(o,r){let{onChange:n,...i}=o;return I.createElement(Qn,{...i,inputRef:r,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d - Y/`m/`d",blocks:{d:{mask:Co.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Co.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Co.MaskedRange,from:1900,to:9999}},format:yt,parse:xt,autofix:"pad",overwrite:!0})}),yo=_n((e,o)=>{let{onChange:r,disabled:n,label:i,error:a,helperText:t,minDate:s,maxDate:m,disableFuture:p,disablePast:l,required:c,formatValue:g,...y}=e,[C,d]=ht(e.value||""),[h,b]=ht(null),x=!!h,M=Un(()=>C?xt(C):void 0,[C]);Rn(()=>{d(e.value||"")},[e.value]);let v=bo(B=>{let D=B.target.value;d(D);let[H,_]=D.split(" - ").map(J=>g?typeof g=="string"?Xn(J).format(g):g(J):J).map(J=>Ct(J)?"":J);r?.({...B,target:{...B.target,value:{start:H,end:_},originalValue:D}})},[r]),T=bo(B=>{b(h?null:B.currentTarget)},[h,b]),k=bo(([B,D])=>{!B||!D||(d(yt([B,D])),b(null))},[d,b]),S=I.createElement(I.Fragment,null,I.createElement(U,{...y,ref:o,size:"sm",value:C,onChange:v,disabled:n,required:c,placeholder:"YYYY/MM/DD - YYYY/MM/DD",slotProps:{input:{component:na}},sx:{fontFamily:"monospace"},endDecorator:I.createElement(z,{variant:"plain",onClick:T},I.createElement(Zn,null))}),x&&I.createElement(ea,{onClickAway:()=>b(null)},I.createElement(ta,{id:"date-range-picker-popper",open:!0,anchorEl:h,placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[4,4]}}]},I.createElement(Kn,{open:!0},I.createElement(ra,{tabIndex:-1,role:"presentation"},I.createElement(te,{rangeSelection:!0,defaultValue:M,onChange:k,minDate:s?new Date(s):void 0,maxDate:m?new Date(m):void 0,disableFuture:p,disablePast:l}),I.createElement(Q,{sx:{p:1}},I.createElement(P,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{d(""),b(null)}},"Clear")))))));return i?I.createElement(N,{required:c,disabled:n,error:a,size:"sm"},I.createElement(L,null,i),S,t&&I.createElement(w,null,t)):S});yo.displayName="DateRangePicker";import{DialogContent as aa,styled as ia}from"@mui/joy";import{motion as sa}from"framer-motion";var la=sa(aa),ma=ia(la)(({theme:e})=>({padding:e.spacing(0,3,2.5)})),we=ma;we.displayName="DialogContent";var Ge=we;import{DialogTitle as da,styled as pa}from"@mui/joy";import{motion as ca}from"framer-motion";var ua=ca(da),ga=pa(ua)(({theme:e})=>({padding:e.spacing(2,3)})),Ae=ga;Ae.displayName="DialogTitle";var je=Ae;import Fe from"react";import _e from"react";import{Modal as fa,ModalDialog as ha,ModalClose as ba,ModalOverflow as Ca,styled as vt}from"@mui/joy";import{motion as Re}from"framer-motion";var ya=Re(fa),xo=ya;xo.displayName="Modal";var xa=Re(ha),Dt=vt(xa)({padding:0}),Ie=Dt;Ie.displayName="ModalDialog";var va=vt(Re(ba))(({theme:e})=>({top:e.spacing(1.5),right:e.spacing(3)})),Ue=va;Ue.displayName="ModalClose";var Da=Re(Ca),vo=Da;vo.displayName="ModalOverflow";function Do(e){let{title:o,children:r,...n}=e;return _e.createElement(Dt,{...n},_e.createElement(Ue,null),_e.createElement(je,null,o),_e.createElement(Ge,null,r))}Do.displayName="ModalFrame";import{styled as Ma}from"@mui/joy";var ka=Ma(Ie)(({theme:e})=>({padding:0})),Mo=Fe.forwardRef((e,o)=>{let{title:r,children:n,actions:i,...a}=e;return Fe.createElement(ka,{ref:o,...a},Fe.createElement(je,null,r),Fe.createElement(Ge,null,n),Fe.createElement(Q,null,i))});Mo.displayName="DialogFrame";import Ta from"react";import{Divider as Pa}from"@mui/joy";import{motion as wa}from"framer-motion";var Aa=wa(Pa),ko=e=>Ta.createElement(Aa,{...e});ko.displayName="Divider";import Ia from"react";import{Drawer as Fa}from"@mui/joy";import{motion as Ba}from"framer-motion";var Na=Ba(Fa),To=e=>{let{children:o,...r}=e;return Ia.createElement(Na,{...r,slotProps:{...r.slotProps,content:{...r.slotProps?.content,sx:{bgcolor:"transparent",p:{md:3,sm:0},boxShadow:"none"}}}},o)};To.displayName="InsetDrawer";import{Grid as La}from"@mui/joy";import{motion as Sa}from"framer-motion";var Ha=Sa(La),Po=Ha;Po.displayName="Grid";import F,{forwardRef as Va,useCallback as wo,useEffect as za,useMemo as Mt,useState as kt}from"react";import Z from"dayjs";import Oa from"dayjs/plugin/customParseFormat";import{IMaskInput as Ea,IMask as Tt}from"react-imask";import Ya from"@mui/icons-material/esm/CalendarToday.js";import{styled as Pt}from"@mui/joy";import{FocusTrap as Ja,ClickAwayListener as Wa,Popper as $a}from"@mui/base";Z.extend(Oa);var qa=Pt($a,{name:"MonthRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Ga=Pt(X,{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})),Ao=e=>e.toString()==="Invalid Date",Io=([e,o])=>{let r=n=>{let i=`${n.getMonth()+1}`,a=n.getFullYear();return Number(i)<10&&(i="0"+i),[a,i].join("/")};return[r(e),o?r(o):""].join(" - ")},Fo=e=>{let o=e.split(" - ")[0]||"",r=e.split(" - ")[1]||"",n=Z(o).toDate(),i=Z(r,"YYYY/MM",!1).isValid()?Z(r).toDate():Z("Invalid Date").toDate();return[n,i]},ja=F.forwardRef(function(o,r){let{onChange:n,...i}=o;return F.createElement(Ea,{...i,inputRef:r,onAccept:a=>n({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m - Y/`m",blocks:{m:{mask:Tt.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Tt.MaskedRange,from:1900,to:9999}},format:Io,parse:Fo,autofix:"pad",overwrite:!0})}),Bo=Va((e,o)=>{let{onChange:r,disabled:n,label:i,error:a,helperText:t,minDate:s,maxDate:m,disableFuture:p,disablePast:l,required:c,formatValue:g,...y}=e,[C,d]=kt(e.value||""),[h,b]=kt(null),x=Mt(()=>{let[D,H]=Fo(C||"");return Ao(D)||Ao(H)?C:Io([D,H])},[C]),M=!!h,v=Mt(()=>x===""?void 0:Fo(x),[x]);za(()=>{d(e.value||"")},[e.value]);let T=wo(D=>{let H=D.target.value;d(H);let _=W=>g?typeof g=="string"?Z(W).format(g):g(W):W,[J,eo]=H.split(" - ").map(_).map(W=>Ao(W)?"":W);r?.({...D,target:{...D.target,value:{start:_(Z(J).startOf("month").format("YYYY/MM/DD")),end:_(Z(eo).endOf("month").format("YYYY/MM/DD"))},originalValue:H}})},[r]),k=wo(D=>{b(h?null:D.currentTarget)},[h,b]),S=wo(([D,H])=>{!D||!H||(d(Io([D,H])),b(null))},[d,b]),B=F.createElement(F.Fragment,null,F.createElement(U,{...y,ref:o,size:"sm",value:x,onChange:T,disabled:n,required:c,placeholder:"YYYY/MM - YYYY/MM",slotProps:{input:{component:ja}},sx:{fontFamily:"monospace"},endDecorator:F.createElement(z,{variant:"plain",onClick:k},F.createElement(Ya,null))}),M&&F.createElement(Wa,{onClickAway:()=>b(null)},F.createElement(qa,{id:"date-range-picker-popper",open:!0,anchorEl:h,placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[4,4]}}]},F.createElement(Ja,{open:!0},F.createElement(Ga,{tabIndex:-1,role:"presentation"},F.createElement(te,{view:"month",views:["month"],rangeSelection:!0,defaultValue:v,onChange:S,minDate:s?new Date(s):void 0,maxDate:m?new Date(m):void 0,disableFuture:p,disablePast:l}),F.createElement(Q,{sx:{p:1}},F.createElement(P,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{d(""),b(null)}},"Clear")))))));return i?F.createElement(N,{required:c,disabled:n,error:a,size:"sm"},F.createElement(L,null,i),B,t&&F.createElement(w,null,t)):B});Bo.displayName="MonthRangePicker";import{Radio as _a,RadioGroup as Ra}from"@mui/joy";import{motion as wt}from"framer-motion";var Ua=wt(_a),Be=Ua;Be.displayName="Radio";var Xa=wt(Ra),Ne=Xa;Ne.displayName="RadioGroup";import At from"react";function No(e){let{items:o,...r}=e;return At.createElement(Ne,{...r},o.map(n=>At.createElement(Be,{key:`${n.value}`,value:n.value,label:n.label})))}No.displayName="RadioList";import Xe from"react";import{Select as Qa,Option as Za}from"@mui/joy";import{motion as Ka}from"framer-motion";var ei=Ka(Za),Lo=ei;Lo.displayName="Option";function So(e){let{label:o,helperText:r,error:n,size:i,color:a,disabled:t,required:s,onChange:m,...p}=e,c=Xe.createElement(Qa,{...p,required:s,disabled:t,size:i,color:a,onChange:(g,y)=>{let C=g||{target:{}},d={...C,target:{name:C.target?.name||e.name,value:y||void 0}};m?.(d)}});return o?Xe.createElement(N,{required:s,disabled:t,size:i,color:a,error:n},Xe.createElement(L,null,o),c,r&&Xe.createElement(w,null,r)):c}So.displayName="Select";import It from"react";import{Switch as oi,styled as ti,switchClasses as ri}from"@mui/joy";import{motion as Ft}from"framer-motion";var ni=Ft(oi),ai=ti(Ft.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)",[`&.${ri.checked}`]:{left:"unset",right:"var(--Switch-thumbOffset)"}}),ii=e=>It.createElement(ai,{...e,layout:!0,transition:si}),si={type:"spring",stiffness:700,damping:30},Ho=e=>It.createElement(ni,{...e,slots:{thumb:ii,...e.slots}});Ho.displayName="Switch";import{Tabs as li,Tab as mi,TabList as di,TabPanel as pi,styled as ci,tabClasses as ui}from"@mui/joy";import{motion as Qe}from"framer-motion";var gi=Qe(li),Vo=gi;Vo.displayName="Tabs";var fi=ci(Qe(mi))(({theme:e})=>({[`&:not(.${ui.selected})`]:{color:e.palette.neutral[700]}})),zo=fi;zo.displayName="Tab";var hi=Qe(di),Oo=hi;Oo.displayName="TabList";var bi=Qe(pi),Eo=bi;Eo.displayName="TabPanel";import Ze from"react";import{Textarea as Ci}from"@mui/joy";import{motion as yi}from"framer-motion";var xi=yi(Ci),Yo=e=>{let{label:o,error:r,helperText:n,color:i,size:a,disabled:t,required:s,...m}=e,p=Ze.createElement(xi,{required:s,disabled:t,color:i,size:a,...m});return o?Ze.createElement(N,{required:s,disabled:t,color:i,size:a,error:r},Ze.createElement(L,null,o),p,n&&Ze.createElement(w,null,n)):p};Yo.displayName="Textarea";import Ke from"react";import{CssBaseline as vi,CssVarsProvider as Di,checkboxClasses as Mi,extendTheme as ki}from"@mui/joy";var Ti=ki({cssVarPrefix:"ceed",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)"},[`& .${Mi.root}`]:{verticalAlign:"middle"}})}},JoyTooltip:{defaultProps:{size:"sm",placement:"top"}}}});function Jo(e){return Ke.createElement(Ke.Fragment,null,Ke.createElement(Di,{theme:Ti},Ke.createElement(vi,null),e.children))}Jo.displayName="ThemeProvider";import Pi from"react";import{Tooltip as wi}from"@mui/joy";import{motion as Ai}from"framer-motion";var Ii=Ai(wi),Wo=e=>Pi.createElement(Ii,{...e});Wo.displayName="Tooltip";export{Ve as Accordion,He as AccordionDetails,Se as AccordionSummary,oo as Accordions,to as Alert,Cg as AspectRatio,ro as Autocomplete,mg as AutocompleteListbox,dg as AutocompleteOption,gg as Avatar,hg as AvatarGroup,xg as Badge,pe as Box,io as Breadcrumbs,he as Button,ye as Calendar,Mg as Card,Tg as CardActions,wg as CardContent,Ig as CardCover,Bg as CardOverflow,xe as Checkbox,Lg as Chip,Hg as CircularProgress,mo as Container,dt as CurrencyInput,go as DataTable,ho as DatePicker,yo as DateRangePicker,Pe as DialogActions,we as DialogContent,Mo as DialogFrame,Ae as DialogTitle,ko as Divider,zg as Drawer,fe as Dropdown,le as FormControl,de as FormHelperText,me as FormLabel,Po as Grid,be as IconButton,Me as Input,To as InsetDrawer,Eg as LinearProgress,of as Link,Jg as List,$g as ListDivider,Gg as ListItem,_g as ListItemButton,Ug as ListItemContent,Qg as ListItemDecorator,Kg as ListSubheader,ce as Menu,ue as MenuButton,ge as MenuItem,xo as Modal,Ue as ModalClose,Ie as ModalDialog,Do as ModalFrame,vo as ModalOverflow,Bo as MonthRangePicker,Lo as Option,Be as Radio,Ne as RadioGroup,No as RadioList,So as Select,ke as Sheet,uf as Skeleton,rf as Slider,se as Stack,af as Step,lf as StepButton,df as StepIndicator,pf as Stepper,Ho as Switch,zo as Tab,Oo as TabList,Eo as TabPanel,Te as Table,co as TableBody,po as TableHead,Vo as Tabs,Yo as Textarea,Jo as ThemeProvider,Wo as Tooltip,ie as Typography,ag as accordionClasses,ig as accordionDetailsClasses,lg as accordionSummaryClasses,sg as accordionsClasses,ku as alertClasses,yg as aspectRatioClasses,pg as autocompleteClasses,cg as autocompleteListboxClasses,ug as autocompleteOptionClasses,fg as avatarClasses,bg as avatarGroupClasses,vg as badgeClasses,Tu as boxClasses,Dg as breadcrumbsClasses,Pu as buttonClasses,Pg as cardActionsClasses,kg as cardClasses,Ag as cardContentClasses,Fg as cardCoverClasses,Ng as cardOverflowClasses,wu as checkboxClasses,Sg as chipClasses,Vg as circularProgressClasses,eg as dialogActionsClasses,Ku as dialogContentClasses,Zu as dialogTitleClasses,Au as dividerClasses,Og as drawerClasses,Wu as formControlClasses,qu as formHelperTextClasses,$u as formLabelClasses,Gu as gridClasses,Iu as iconButtonClasses,Fu as inputClasses,Yg as linearProgressClasses,tf as linkClasses,Wg as listClasses,qg as listDividerClasses,Rg as listItemButtonClasses,jg as listItemClasses,Xg as listItemContentClasses,Zg as listItemDecoratorClasses,ef as listSubheaderClasses,Nu as menuButtonClasses,Bu as menuClasses,Lu as menuItemClasses,Ru as modalClasses,Uu as modalCloseClasses,Xu as modalDialogClasses,Qu as modalOverflowClasses,Su as optionClasses,Hu as radioClasses,Vu as radioGroupClasses,zu as selectClasses,_u as sheetClasses,gf as skeletonClasses,nf as sliderClasses,ju as stackClasses,mf as stepButtonClasses,sf as stepClasses,cf as stepperClasses,Ou as switchClasses,rg as tabListClasses,ng as tabPanelClasses,Eu as tableClasses,tg as tabsClasses,Yu as textareaClasses,og as tooltipClasses,Ju as typographyClasses,Du as useColorScheme,vu as useTheme,Mu as useThemeProps};
1
+ import{useTheme as Tg,useColorScheme as Pg,useThemeProps as wg,alertClasses as Fg,boxClasses as Ag,buttonClasses as Ig,checkboxClasses as Bg,dividerClasses as Ng,iconButtonClasses as Lg,inputClasses as Sg,menuClasses as Hg,menuButtonClasses as zg,menuItemClasses as Og,optionClasses as Eg,radioClasses as Vg,radioGroupClasses as Jg,selectClasses as Yg,switchClasses as $g,tableClasses as Wg,textareaClasses as qg,typographyClasses as Ug,formControlClasses as Gg,formLabelClasses as jg,formHelperTextClasses as _g,gridClasses as Zg,stackClasses as Xg,sheetClasses as Qg,modalClasses as Kg,modalCloseClasses as Rg,modalDialogClasses as ef,modalOverflowClasses as of,dialogTitleClasses as tf,dialogContentClasses as rf,dialogActionsClasses as nf,tooltipClasses as af,tabsClasses as lf,tabListClasses as sf,tabPanelClasses as mf,accordionClasses as df,accordionDetailsClasses as pf,accordionGroupClasses as cf,accordionSummaryClasses as uf,AutocompleteListbox as gf,AutocompleteOption as ff,autocompleteClasses as hf,autocompleteListboxClasses as Cf,autocompleteOptionClasses as bf,Avatar as yf,avatarClasses as xf,AvatarGroup as vf,avatarGroupClasses as Df,AspectRatio as Mf,aspectRatioClasses as kf,Badge as Tf,badgeClasses as Pf,breadcrumbsClasses as wf,cardClasses as Ff,cardActionsClasses as Af,cardContentClasses as If,cardCoverClasses as Bf,cardOverflowClasses as Nf,Chip as Lf,chipClasses as Sf,CircularProgress as Hf,circularProgressClasses as zf,Drawer as Of,drawerClasses as Ef,LinearProgress as Vf,linearProgressClasses as Jf,List as Yf,listClasses as $f,ListDivider as Wf,listDividerClasses as qf,ListItem as Uf,listItemClasses as Gf,ListItemButton as jf,listItemButtonClasses as _f,ListItemContent as Zf,listItemContentClasses as Xf,ListItemDecorator as Qf,listItemDecoratorClasses as Kf,ListSubheader as Rf,listSubheaderClasses as eh,Link as oh,linkClasses as th,Slider as rh,sliderClasses as nh,Step as ah,stepClasses as ih,StepButton as lh,stepButtonClasses as sh,StepIndicator as mh,Stepper as dh,stepperClasses as ph,Skeleton as ch,skeletonClasses as uh}from"@mui/joy";import ne from"react";import{AccordionGroup as Ut,Accordion as Gt,AccordionSummary as jt,AccordionDetails as _t}from"@mui/joy";import{motion as Se}from"framer-motion";var Zt=Se(jt),He=Zt;He.displayName="AccordionSummary";var Xt=Se(_t),ze=Xt;ze.displayName="AccordionDetails";var Qt=Se(Gt);function Oe(e){let{summary:o,details:n,variant:r,color:i,...a}=e,t=r==="solid"?"solid":void 0;return ne.createElement(Qt,{variant:t,color:i,...a},ne.createElement(He,{variant:t,color:i},o),ne.createElement(ze,{variant:t,color:i},n))}Oe.displayName="Accordion";var Kt=Se(Ut);function no(e){let{variant:o,color:n,items:r,...i}=e;return ne.createElement(Kt,{variant:o,color:n,...i},r.map((a,t)=>ne.createElement(Oe,{key:t,summary:a.summary,details:a.details,index:t,variant:o,color:n})))}no.displayName="Accordions";import Ee from"react";import{Alert as ir,styled as lr}from"@mui/joy";import{motion as sr}from"framer-motion";import Rt from"react";import{Typography as er}from"@mui/joy";import{motion as or}from"framer-motion";var tr=or(er),E=e=>Rt.createElement(tr,{...e});E.displayName="Typography";var N=E;import{Stack as rr}from"@mui/joy";import{motion as nr}from"framer-motion";var ar=nr(rr),ae=ar;ae.displayName="Stack";var H=ae;var mr=lr(sr(ir))({alignItems:"flex-start",fontWeight:"unset"});function ao(e){let{title:o,content:n,actions:r,color:i="primary",...a}=e,t=e.invertedColors||e.variant==="solid";return Ee.createElement(mr,{...a,color:i,endDecorator:r,invertedColors:t},Ee.createElement(H,null,o&&Ee.createElement(N,{level:"title-sm",color:i},o),Ee.createElement(N,{level:"body-sm",color:i},n)))}ao.displayName="Alert";import U,{useMemo as Ve,useState as xr}from"react";import{Autocomplete as vr,AutocompleteOption as Dr,ListItemDecorator as Ro,CircularProgress as Mr}from"@mui/joy";import{FormControl as dr,styled as pr}from"@mui/joy";import{motion as cr}from"framer-motion";var ur=pr(cr(dr))({width:"100%"}),ie=ur;ie.displayName="FormControl";var F=ie;import{FormLabel as gr}from"@mui/joy";import{motion as fr}from"framer-motion";var hr=fr(gr),le=hr;le.displayName="FormLabel";var L=le;import{FormHelperText as Cr}from"@mui/joy";import{motion as br}from"framer-motion";var yr=br(Cr),se=yr;se.displayName="FormHelperText";var w=se;function io(e){let{label:o,error:n,helperText:r,color:i,size:a,disabled:t,required:l,onChange:m,...p}=e,[s,c]=xr(e.value||e.defaultValue),b=Ve(()=>e.options.map(D=>typeof D!="object"?{value:D,label:D}:D),[e.options]),f=Ve(()=>e.loading?{value:"",label:"",startDecorator:U.createElement(Mr,{size:"sm",color:"neutral",variant:"plain",thickness:3})}:typeof s=="string"&&b.find(D=>D.value===s)||s,[s,e.options,e.loading]),y=Ve(()=>f?.startDecorator||e.startDecorator,[f]),d=Ve(()=>f?.endDecorator||e.endDecorator,[f]),M=U.createElement(vr,{...p,required:l,onChange:(D,v)=>{c(v);let h=v;m?.({...D,target:{...D.target,value:h?.value}})},color:i,value:f,options:b,size:a,disabled:t,startDecorator:y,endDecorator:d,getOptionLabel:D=>`${D.value||""}`,renderOption:(D,v)=>U.createElement(Dr,{...D},v.startDecorator&&U.createElement(Ro,{sx:{marginInlineEnd:"var(--Input-gap)"}},v.startDecorator),v.label,v.endDecorator&&U.createElement(Ro,{sx:{marginInlineStart:"var(--Input-gap)"}},v.endDecorator))});return o?U.createElement(F,{required:l,color:i,size:a,error:n,disabled:t},U.createElement(L,null,o),M,r&&U.createElement(w,null,r)):M}io.displayName="Autocomplete";import{Box as kr}from"@mui/joy";import{motion as Tr}from"framer-motion";var Pr=Tr(kr),me=Pr;me.displayName="Box";var Je=me;import O from"react";import{Breadcrumbs as tt,Link as zr}from"@mui/joy";import lo from"react";import{Menu as wr,MenuButton as Fr,MenuItem as Ar}from"@mui/joy";import{motion as so}from"framer-motion";var Ir=so(wr),de=e=>lo.createElement(Ir,{...e});de.displayName="Menu";var Br=so(Fr),pe=e=>lo.createElement(Br,{...e});pe.displayName="MenuButton";var Nr=so(Ar),ce=e=>lo.createElement(Nr,{...e});ce.displayName="MenuItem";var et=de;import{Dropdown as Lr}from"@mui/joy";import{motion as Sr}from"framer-motion";var Hr=Sr(Lr),ue=Hr;ue.displayName="Dropdown";var ot=ue;function mo(e){let{crumbs:o,size:n,startCrumbCount:r=1,endCrumbCount:i=3,slots:{link:a,...t}={link:zr},slotProps:{link:l,...m}={link:{color:"neutral"}},collapsed:p=!0,...s}=e,c=u=>u.type==="link"&&a?O.createElement(a,{to:u.linkHref,href:u.linkHref,...l},u.label):O.createElement(N,null,u.label);if(!p)return O.createElement(tt,{size:n,slots:t,slotProps:m,...s},o.map(u=>O.createElement(c,{...u})));let b=Math.max(1,i),f=o.slice(0,r).map(u=>O.createElement(c,{...u})),y=(r+b>o.length?o.slice(r):o.slice(-b)).map(u=>O.createElement(c,{...u})),d=o.slice(r,-b).map(u=>O.createElement(ce,null,O.createElement(c,{...u})));return O.createElement(tt,{size:n,slots:t,slotProps:m,...s},f,d.length&&O.createElement(ot,null,O.createElement(pe,{size:n,variant:"plain"},"..."),O.createElement(et,{size:n},d)),y)}mo.displayName="Breadcrumbs";import Or,{forwardRef as Er}from"react";import{Button as Vr}from"@mui/joy";import{motion as Jr}from"framer-motion";var Yr=Jr(Vr),ge=Er((e,o)=>Or.createElement(Yr,{ref:o,...e}));ge.displayName="Button";var T=ge;import C,{Fragment as he,forwardRef as Xr,useMemo as dt}from"react";import{styled as V}from"@mui/joy";import Qr from"@mui/icons-material/esm/ChevronLeft.js";import Kr from"@mui/icons-material/esm/ChevronRight.js";import{AnimatePresence as pt,motion as Rr}from"framer-motion";var rt=e=>{let o=[],n=new Date(e.getFullYear(),e.getMonth(),1),r=new Date(e.getFullYear(),e.getMonth()+1,0),i=Math.ceil((n.getDay()+1)/7),a=Math.ceil((r.getDate()+n.getDay())/7),t=1;for(let l=1;l<=a;l++){let m=[];for(let p=1;p<=7;p++)l===i&&p<n.getDay()+1||t>r.getDate()?m.push(void 0):(m.push(t),t++);o.push(m)}return o},nt=(e,o)=>e.toLocaleString(o,{year:"numeric"}),po=(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(),n=new Date;return n.setDate(n.getDate()-o),Array.from({length:7}).map(()=>{let r=n.toLocaleString(e,{weekday:"short"});return n.setDate(n.getDate()+1),r})},lt=e=>{let o=new Date,n=new Date(e);return n.setHours(0,0,0,0),o.setHours(0,0,0,0),n.getTime()===o.getTime()},co=(e,o)=>{let n=new Date(e),r=new Date(o);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()===r.getTime()},W=(e,o,n)=>{let r=new Date(n);r.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 r>=i&&r<=a},Ye=(e,o)=>e.getFullYear()===o.getFullYear()&&e.getMonth()===o.getMonth();import $r from"react";import{IconButton as Wr}from"@mui/joy";import{motion as qr}from"framer-motion";var Ur=qr(Wr),fe=e=>$r.createElement(Ur,{...e});fe.displayName="IconButton";var z=fe;import{useCallback as Gr,useMemo as jr,useState as $e}from"react";import{useThemeProps as _r}from"@mui/joy";var Zr=(e,o)=>o.includes(e)?e:o[0],st=e=>{let[o,n]=$e(()=>Zr(e.view||"day",e.views||["day","month"])),[r,i]=$e(e.defaultValue),[a,t]=$e(()=>{let d=new Date;return d.setDate(1),d.setHours(0,0,0,0),e.value?.[0]||e.defaultValue?.[0]||d}),[[l,m],p]=$e([0,0]),s=e.view??o,c=d=>{p([l+d,d])},b=Gr(d=>{t(d),s==="month"?a.getFullYear()!==d.getFullYear()&&c(d>a?1:-1):c(d>a?1:-1),e.onMonthChange?.(d)},[e.onMonthChange,a,s]),f=_r({props:{locale:"default",views:["day","month"],view:s,value:e.value??r,...e,onChange:e.value?e.onChange:d=>{i(d),e.onChange?.(d)},onMonthChange:b,onViewChange:()=>{let d=s==="month"?"day":"month";!(!e.views||e.views.includes(d))||e.view===d||(e.onViewChange?e.onViewChange(d):n(d))}},name:"Calendar"}),y=jr(()=>({...f,viewMonth:a,direction:m}),[f,a,m]);return[f,y]};import{useCallback as R,useState as mt}from"react";var We=e=>{let[o,n]=mt(null),[r,i]=mt(null);return{calendarTitle:e.view==="month"?nt(e.viewMonth,e.locale||"default"):po(e.viewMonth,e.locale||"default"),onPrev:R(()=>{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:R(()=>{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:R(a=>{let t=new Date(e.viewMonth||new Date);t.setHours(0,0,0,0),t.setDate(a);let l=e.rangeSelection&&e.value&&e.value[0]&&(o&&W(e.value[0],o,t)||e.value[1]&&W(e.value[0],e.value[1],t));return{"aria-label":t.toLocaleDateString(),"aria-current":l?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,o]),getMonthCellProps:R(a=>{let t=new Date(e.viewMonth||new Date);t.setDate(1),t.setHours(0,0,0,0),t.setMonth(a);let m=!e.views?.find(p=>p==="day")&&e.rangeSelection&&e.value&&e.value[0]&&(r&&W(e.value[0],r,t)||e.value[1]&&W(e.value[0],e.value[1],t));return{"aria-label":t.toLocaleDateString(),"aria-current":m?"date":void 0}},[e.rangeSelection,e.value,e.viewMonth,r]),getPickerDayProps:R(a=>{let t=new Date(e.viewMonth||new Date);t.setHours(0,0,0,0),t.setDate(a);let l=!!e.value&&(co(t,e.value[0])||e.value[1]&&co(t,e.value[1])),m=e.rangeSelection&&e.value&&e.value[0]&&(o&&W(e.value[0],o,t)||e.value[1]&&W(e.value[0],e.value[1],t)),p=()=>{e.rangeSelection?e.value?e.value[0]&&!e.value[1]?e.onChange?.([new Date(Math.min(e.value[0].getTime(),t.getTime())),new Date(Math.max(e.value[0].getTime(),t.getTime()))]):e.onChange?.([t,void 0]):e.onChange?.([t,void 0]):e.onChange?.([t,void 0]),n(null)};return{isToday:lt(t),isSelected:l,onClick:p,onMouseEnter:e.rangeSelection&&e.value?.[0]&&!e.value?.[1]?()=>n(t):void 0,disabled:e.minDate&&t<e.minDate||e.maxDate&&t>e.maxDate||e.disableFuture&&t>new Date||e.disablePast&&t<(()=>{let s=new Date;return s.setHours(0,0,0,0),s})(),tabIndex:-1,"aria-label":t.toLocaleDateString(),"aria-selected":l?"true":void 0,"aria-current":m?"date":void 0}},[e.onChange,e.value,e.viewMonth,e.rangeSelection,e.minDate,e.maxDate,e.disableFuture,e.disablePast,o]),getPickerMonthProps:R(a=>{let t=new Date(e.viewMonth||new Date);t.setDate(1),t.setHours(0,0,0,0),t.setMonth(a);let l=!e.views?.find(c=>c==="day")&&e.rangeSelection,m=!!e.value&&(Ye(t,e.value[0])||e.value[1]&&Ye(t,e.value[1])),p=l&&e.value&&e.value[0]&&(r&&W(e.value[0],r,t)||e.value[1]&&W(e.value[0],e.value[1],t)),s=()=>{l?e.value?e.value[0]&&!e.value[1]?e.onChange?.([new Date(Math.min(e.value[0].getTime(),t.getTime())),new Date(Math.max(e.value[0].getTime(),t.getTime()))]):e.onChange?.([t,void 0]):e.onChange?.([t,void 0]):(e.onViewChange?.("day"),e.onMonthChange?.(t)),i(null)};return{isSelected:m,onMouseEnter:l&&e.value?.[0]&&!e.value?.[1]?()=>i(t):void 0,disabled:e.minDate&&(()=>{let c=new Date(t);return c.setMonth(c.getMonth()+1),c.setDate(0),c<e.minDate})()||e.maxDate&&(()=>{let c=new Date(t);return c.setDate(0),c>e.maxDate})()||e.disableFuture&&t>new Date||e.disablePast&&t<new Date&&!Ye(t,new Date),onClick:s,tabIndex:-1,"aria-label":po(t,e.locale||"default"),"aria-selected":m?"true":void 0,"aria-current":p?"date":void 0}},[e.onMonthChange,e.onViewChange,e.onChange,e.viewMonth,e.locale,e.value,e.minDate,e.maxDate,e.disableFuture,e.disablePast,r])}};var en=V("div",{name:"Calendar",slot:"root"})({maxWidth:"264px"}),on=V("div",{name:"Calendar",slot:"calendarHeader"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(1)})),ct=V("div",{name:"Calendar",slot:"viewContainer"})(({theme:e,calendarType:o})=>({paddingLeft:e.spacing(1),paddingRight:e.spacing(1),position:"relative",overflow:"hidden",minHeight:o==="datePicker"?"250px":"unset"})),ut=V(Rr.table,{name:"Calendar",slot:"viewTable"})(({theme:e})=>({borderSpacing:0,"& td, & th":{padding:0},"& th":{paddingTop:e.spacing(1),paddingBottom:e.spacing(1)}})),tn=V("thead",{name:"Calendar",slot:"weekHeaderContainer"})({}),rn=V("tbody",{name:"Calendar",slot:"dayPickerContainer"})({}),nn=V(T,{name:"Calendar",slot:"switchViewButton"})(({ownerState:e})=>[e.view==="month"&&{pointerEvents:"none"}]),an=V("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}}})),ln=V("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}}})),sn=V(T,{name:"Calendar",slot:"month"})(({theme:e,isSelected:o,disabled:n})=>[{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}},n&&{color:e.palette.neutral.solidDisabledColor,backgroundColor:e.palette.neutral.solidDisabledBg}]),mn=V(T,{name:"Calendar",slot:"day"})(({theme:e,isToday:o,isSelected:n,disabled:r})=>[{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&&!n&&{"&:not([aria-current=date]):not(:hover)":{border:`1px solid ${e.palette.neutral.outlinedBorder}`}},n&&{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}},r&&{color:e.palette.neutral.solidDisabledColor,backgroundColor:e.palette.neutral.solidDisabledBg}]),gt={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})},qe=1e4,ft=(e,o)=>Math.abs(e)*o,dn=e=>{let{ownerState:o}=e,{getPickerDayProps:n,getDayCellProps:r}=We(o),i=dt(()=>rt(o.viewMonth),[o.viewMonth]),a=dt(()=>it(o.locale||"default"),[o.locale]);return C.createElement(ct,{calendarType:"datePicker"},C.createElement(pt,{initial:!1,custom:o.direction},C.createElement(ut,{key:`${o.viewMonth.toString()}_${o.direction}`,custom:o.direction,variants:gt,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:(t,{offset:l,velocity:m})=>{let p=ft(l.x,m.x);if(p<-qe){let s=new Date(o.viewMonth||new Date);s.setMonth(s.getMonth()+1),o.onMonthChange?.(s)}else if(p>qe){let s=new Date(o.viewMonth||new Date);s.setMonth(s.getMonth()-1),o.onMonthChange?.(s)}}},C.createElement(tn,null,C.createElement("tr",null,a.map((t,l)=>C.createElement(C.Fragment,null,C.createElement("th",null,C.createElement(N,{level:"body-xs",textAlign:"center"},t)),l<6&&C.createElement("th",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"}))))),C.createElement(rn,null,i.map((t,l)=>C.createElement(he,{key:`${o.viewMonth}_${l}`},C.createElement("tr",null,t.map((m,p)=>m?C.createElement(he,{key:p},C.createElement(an,{...r(m)},C.createElement(mn,{size:"sm",variant:"plain",color:"neutral",...n(m)},m)),p<6&&C.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})):C.createElement(he,{key:p},C.createElement("td",null),p<6&&C.createElement("td",{"aria-hidden":"true","aria-description":"cell-gap"})))),l<i.length-1&&C.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},C.createElement("td",{colSpan:13,style:{height:4}}))))))))},pn=e=>{let{ownerState:o}=e,{getPickerMonthProps:n,getMonthCellProps:r}=We(o),i=Array.from({length:12},(t,l)=>l).reduce((t,l)=>(t[t.length-1].length===4&&t.push([]),t[t.length-1].push(l),t),[[]]),a=!o.views?.find(t=>t==="day")&&o.rangeSelection;return C.createElement(ct,{calendarType:a?"monthPicker":"datePicker"},C.createElement(pt,{initial:!1,custom:o.direction},C.createElement(ut,{key:`${o.viewMonth.getFullYear()}_${o.direction}`,custom:o.direction,variants:gt,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:(t,{offset:l,velocity:m})=>{let p=ft(l.x,m.x);if(p<-qe){let s=new Date(o.viewMonth||new Date);s.setMonth(s.getMonth()+1),o.onMonthChange?.(s)}else if(p>qe){let s=new Date(o.viewMonth||new Date);s.setMonth(s.getMonth()-1),o.onMonthChange?.(s)}}},C.createElement("tbody",null,i.map((t,l)=>C.createElement(he,{key:l},C.createElement("tr",null,t.map((m,p)=>C.createElement(he,{key:m},C.createElement(ln,{...r(m)},C.createElement(sn,{size:"sm",variant:"plain",color:"neutral",...n(m)},at(m,o.locale))),p<3&&C.createElement("td",{style:{width:4},"aria-hidden":"true","aria-description":"cell-gap"})))),l<i.length-1&&C.createElement("tr",{"aria-hidden":"true","aria-description":"row-gap"},C.createElement("td",{colSpan:7,style:{height:4}}))))))))},Ce=Xr((e,o)=>{let[n,r]=st(e),{value:i,defaultValue:a,onChange:t,locale:l,onViewChange:m,onMonthChange:p,view:s,views:c,rangeSelection:b,...f}=n,{calendarTitle:y,onPrev:d,onNext:u}=We(r);return C.createElement(en,{ref:o,...f},C.createElement(on,null,C.createElement(z,{size:"sm",onClick:d},C.createElement(Qr,null)),C.createElement(nn,{ownerState:r,variant:"plain",color:"neutral",onClick:m},y),C.createElement(z,{size:"sm",onClick:u},C.createElement(Kr,null))),s==="day"&&C.createElement(dn,{ownerState:r}),s==="month"&&C.createElement(pn,{ownerState:r}))});Ce.displayName="Calendar";var ee=Ce;import{Card as cn,CardContent as un,CardCover as gn,CardActions as fn,CardOverflow as hn}from"@mui/joy";import{motion as be}from"framer-motion";var Cn=be(cn),ye=Cn;ye.displayName="Card";var bn=be(un),uo=bn;uo.displayName="CardContent";var yn=be(gn),go=yn;go.displayName="CardCover";var xn=be(fn),fo=xn;fo.displayName="CardActions";var vn=be(hn),ho=vn;ho.displayName="CardOverflow";import Dn from"react";import{Checkbox as Mn}from"@mui/joy";import{motion as kn}from"framer-motion";var Tn=kn(Mn),xe=e=>Dn.createElement(Tn,{...e});xe.displayName="Checkbox";var ve=xe;import{styled as Pn}from"@mui/joy";import wn,{forwardRef as Fn}from"react";var An=Pn("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(2),paddingRight:e.spacing(2),...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}}})),Co=Fn(function(o,n){return wn.createElement(An,{ref:n,...o})});Co.displayName="Container";import q,{useCallback as Ln,useState as bt}from"react";import{IntlMessageFormat as Sn}from"intl-messageformat";import{NumericFormat as Hn}from"react-number-format";import zn from"@mui/icons-material/esm/InfoOutlined.js";import De from"react";import{Input as In}from"@mui/joy";import{motion as Bn}from"framer-motion";var ht=Bn(In),Me=e=>{let{label:o,helperText:n,error:r,style:i,size:a,color:t,disabled:l,required:m,...p}=e;return o?De.createElement(F,{required:m,color:t,size:a,error:r,disabled:l},De.createElement(L,null,o),De.createElement(ht,{...p}),n&&De.createElement(w,null,n)):De.createElement(ht,{required:m,color:t,size:a,disabled:l,...p})};Me.displayName="Input";var G=Me;import Nn from"intl-messageformat";var Ct=(e="usd")=>{let[o,n,r]=new Nn(`{amount, number, ::currency/${e} unit-width-narrow}`).format({amount:1e3}).toString().replace(/\d/g,"").split("");return{symbol:`${o} `,thousandSeparator:n,decimalSeparator:r,placeholder:r?`${o} 0${r}00`:`${o} 0`,fixedDecimalScale:!!r}};var On=q.forwardRef(function(o,n){let{onChange:r,...i}=o;return q.createElement(Hn,{...i,onValueChange:({floatValue:a})=>{r?.({target:{name:o.name,value:a?.toString()}})},valueIsNumericString:!0,getInputRef:n,decimalScale:2})}),yt=q.forwardRef(function(o,n){let{currency:r="usd",max:i=1e5,name:a,onChange:t,label:l,error:m,helperText:p,required:s,disabled:c,...b}=o,{symbol:f,thousandSeparator:y,decimalSeparator:d,placeholder:u,fixedDecimalScale:M}=Ct(r),[D,v]=bt(o.value),[h,x]=bt(!!i&&!!o.value&&o.value>i),S=Ln(Y=>{let X=Number(Y.target.value);v(X),t?.({...Y,target:{name:a,value:X}}),i&&X>i?x(!0):x(!1)},[]),k=q.createElement(G,{...b,size:"sm",ref:n,value:D,placeholder:u,onChange:S,disabled:c,required:s,slotProps:{input:{component:On,decimalSeparator:d,thousandSeparator:y,prefix:f,fixedDecimalScale:M}},sx:{fontFamily:"monospace"}});return l?q.createElement(F,{size:"sm",disabled:c,required:s,error:m||h},q.createElement(L,null,l),k,h?q.createElement(w,null,q.createElement(zn,null),new Sn(`limit: {amount, number, ::currency/${r} unit-width-narrow}`).format({amount:i})):p&&q.createElement(w,null,p)):k});import g,{useCallback as oe,useEffect as xo,useMemo as te,useRef as $n,useState as Wn}from"react";import{styled as qn,LinearProgress as Un}from"@mui/joy";import Gn from"@mui/icons-material/esm/ChevronLeft.js";import jn from"@mui/icons-material/esm/ChevronRight.js";import{Sheet as En}from"@mui/joy";import{motion as Vn}from"framer-motion";var Jn=Vn(En),ke=Jn;ke.displayName="Sheet";var j=ke;import J from"react";import{Table as Yn}from"@mui/joy";var Te=e=>{let{children:o,...n}=e;return J.createElement(Yn,{...n},o)};Te.displayName="Table";function bo(e){let{headCells:o,showCheckbox:n,onCheckboxChange:r,slots:{checkbox:i=ve}={},slotProps:{checkbox:a={}}={}}=e;return J.createElement("thead",null,J.createElement("tr",null,n&&J.createElement("th",{style:{width:"40px",textAlign:"center"}},J.createElement(i,{onChange:r,...a})),o.map(t=>J.createElement("th",{key:t.label,style:{width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,textAlign:t.numeric?"right":"left"}},t.label))))}bo.displayName="TableHead";function yo(e){let{rows:o,cellOrder:n,rowOptions:r,showCheckbox:i,onCheckboxChange:a,slots:{checkbox:t=ve}={},slotProps:{checkbox:l={}}={}}=e;return J.createElement("tbody",null,o.map((m,p)=>J.createElement("tr",{key:p},i&&J.createElement("td",{style:{textAlign:"center"}},J.createElement(t,{onChange:s=>a?.(s,p),...l})),n.map(s=>J.createElement("td",{key:s,style:{textAlign:r?.[s]?.numeric?"right":"left"}},m[s])))))}yo.displayName="TableBody";var xt=qn("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"}}),Ue=e=>"Intl"in window?new Intl.NumberFormat().format(e):e;function _n(e){let{paginationModel:{page:o,pageSize:n},rowCount:r,onPageChange:i}=e,a=1,t=Math.ceil(r/n),l=[o-2,o-1].filter(c=>c>1),m=[o+1,o+2].filter(c=>c<=t-1),p=t>1&&o<t-3,s=t>1&&o>4;return g.createElement(H,{direction:"row",spacing:1,sx:{pt:1,pb:1},justifyContent:"end",alignItems:"center"},g.createElement(H,{direction:"row",spacing:.5,alignItems:"center"},g.createElement(z,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-1),disabled:o===a,"aria-label":"Previous page"},g.createElement(Gn,null)),o!==a&&g.createElement(T,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(a)},a),s&&g.createElement(T,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o-3)},"..."),l.map(c=>g.createElement(T,{key:c,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(c)},c)),g.createElement(T,{variant:"soft",size:"sm"},o),m.map(c=>g.createElement(T,{key:c,size:"sm",variant:"plain",color:"neutral",onClick:()=>i(c)},c)),p&&g.createElement(T,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+3)},"..."),o!==t&&g.createElement(T,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(t)},t),g.createElement(z,{size:"sm",variant:"plain",color:"neutral",onClick:()=>i(o+1),disabled:o===t,"aria-label":"Next page"},g.createElement(jn,null))))}var Zn=e=>g.createElement(Je,{sx:{position:"absolute",top:0,right:0,bottom:0,width:"4px",cursor:"col-resize"},onMouseDown:o=>{let n=o.clientX,r=e.current?.getBoundingClientRect().width,i=t=>{r&&n&&(e.current.style.width=`${r+(t.clientX-n)}px`)},a=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",a)}}),Xn=e=>{let o=$n(null),n={width:e.width,minWidth:e.minWidth??"50px",maxWidth:e.maxWidth,textAlign:e.type==="number"?"end":"start",position:e.stickyHeader?void 0:"relative"},r=e.resizable??!0?Zn(o):null;return g.createElement("th",{ref:o,key:e.field,style:n},e.headerName??e.field,r)};function Qn({rows:e,columns:o,rowCount:n,paginationMode:r,paginationModel:i,onPaginationModelChange:a,selectionModel:t=[],onSelectionModelChange:l,getId:m,isTotalSelected:p}){let[s,c]=Wn(i?.page||1),b=i?.pageSize||20,f=oe((h,x)=>m?.(h)??h?.id??`${(x||0)+(s-1)*b}`,[m??s,b]),y=te(()=>new Set(t),[t]),d=te(()=>r==="server"?e:e.slice((s-1)*b,(s-1)*b+b),[e,s,b,r]),u=te(()=>d.length>0&&d.every((h,x)=>y.has(f(h,x))),[d,y,s,b,f]),M=n||e.length,D=te(()=>p??(M>0&&t.length===M),[p,t,M]),v=oe(h=>{c(h),a?.({page:h,pageSize:b})},[a]);return xo(()=>{v(1)},[M]),xo(()=>{s>Math.ceil(M/b)&&v(Math.ceil(M/b))},[M,b]),xo(()=>{l?.([])},[s]),{rowCount:M,page:s,pageSize:b,onPaginationModelChange:v,getId:f,HeadCell:Xn,dataInPage:d,isAllSelected:u,isTotalSelected:D,isSelectedRow:oe(h=>y.has(h),[y]),onAllCheckboxChange:oe(()=>{l?.(u?[]:d.map(f))},[u,d,l]),onCheckboxChange:oe((h,x)=>{if(y.has(x)){let S=t.filter(k=>k!==x);l?.(S)}else{let S=[...t,x];l?.(S)}},[t,l]),columns:te(()=>o||Object.keys(e[0]||{}).map(h=>({field:h})),[e,o]),onTotalSelect:oe(()=>{l?.(D?[]:e.map(f),!D)},[D,e,l])}}function vo(e){let{rows:o,checkboxSelection:n,selectionModel:r,onSelectionModelChange:i,rowCount:a,columns:t,onPaginationModelChange:l,paginationMode:m,paginationModel:p,loading:s,slots:{checkbox:c=ve,toolbar:b,footer:f,loadingOverlay:y=()=>g.createElement(Un,{value:8,variant:"plain"})}={},slotProps:{checkbox:d={},toolbar:u,background:M={}}={},...D}=e,{columns:v,isAllSelected:h,isSelectedRow:x,onAllCheckboxChange:S,onCheckboxChange:k,getId:Y,rowCount:X,page:Zo,pageSize:Xo,onPaginationModelChange:Yt,dataInPage:$t,isTotalSelected:Qo,onTotalSelect:Ko,HeadCell:Wt}=Qn(e);return g.createElement(Je,null,g.createElement(H,{direction:"row",sx:{pt:1,pb:1},justifyContent:"space-between",alignItems:"center"},!!n&&g.createElement(H,{direction:"row",spacing:1},!h&&g.createElement(N,{level:"body-xs"},Ue(r?.length||0)," items selected"),h&&!Qo&&g.createElement(H,{direction:"row",spacing:1,alignItems:"center"},g.createElement(N,{level:"body-xs"},"All ",Ue(r?.length||0)," items on this page are selected."),g.createElement(T,{size:"sm",variant:"plain",onClick:Ko},"Select all ",Ue(X??o.length)," items")),Qo&&g.createElement(H,{direction:"row",spacing:1,alignItems:"center"},g.createElement(N,{level:"body-xs"},"All ",Ue(X??o.length)," items are selected."),g.createElement(T,{size:"sm",variant:"plain",color:"danger",onClick:Ko},"Cancel"))),b&&g.createElement(b,{...u||{}})),g.createElement(j,{variant:"outlined",sx:{overflow:"auto",width:"100%",boxShadow:"sm",borderRadius:"sm"},...M},g.createElement(Te,{...D},g.createElement("thead",null,g.createElement("tr",null,n&&g.createElement("th",{style:{width:"40px",textAlign:"center"}},g.createElement(c,{onChange:S,checked:h,indeterminate:(r||[]).length>0&&!h,...d})),v.map(Q=>g.createElement(Wt,{key:Q.field,stickyHeader:e.stickyHeader,...Q})))),g.createElement("tbody",null,g.createElement(xt,null,!!s&&g.createElement("td",null,g.createElement(Je,{sx:{position:"absolute",top:0,left:0,right:0}},g.createElement(y,null)))),g.createElement(xt,null),$t.map((Q,qt)=>{let K=Y(Q,qt);return g.createElement("tr",{key:K,role:n?"checkbox":void 0,tabIndex:n?-1:void 0,onClick:n?$=>k($,K):void 0,"aria-checked":n?x(K):void 0},n&&g.createElement("th",{scope:"row",style:{textAlign:"center"}},g.createElement(c,{onChange:$=>k($,K),checked:x(K),...d})),v.map($=>g.createElement("td",{key:$.field,style:{textAlign:$.type==="number"?"end":"start"}},$.renderCell?.({row:Q,value:Q[$.field],id:K})??Q[$.field])))})),f&&g.createElement(f,null))),g.createElement(_n,{paginationModel:te(()=>({page:Zo,pageSize:Xo}),[Zo,Xo]),rowCount:X,onPageChange:Yt}))}vo.displayName="DataTable";import A,{forwardRef as ra,useCallback as vt,useEffect as na,useState as Dt}from"react";import{IMaskInput as aa,IMask as Do}from"react-imask";import ia from"@mui/icons-material/esm/CalendarToday.js";import{styled as Mt}from"@mui/joy";import{FocusTrap as la,ClickAwayListener as sa,Popper as ma}from"@mui/base";import{DialogActions as Kn,styled as Rn}from"@mui/joy";import{motion as ea}from"framer-motion";var oa=ea(Kn),ta=Rn(oa)(({theme:e})=>({padding:e.spacing(1),gap:e.spacing(1),flexDirection:"row",justifyContent:"flex-end"})),Pe=ta;Pe.displayName="DialogActions";var _=Pe;var da=Mt(ma,{name:"DatePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),pa=Mt(j,{name:"DatePicker",slot:"sheet",overridesResolver:(e,o)=>o.root})(({theme:e})=>({width:"264px",boxShadow:e.shadow.md,borderRadius:e.radius.md})),kt=e=>{let o=`${e.getDate()}`,n=`${e.getMonth()+1}`,r=e.getFullYear();return Number(o)<10&&(o="0"+o),Number(n)<10&&(n="0"+n),[r,n,o].join("/")},ca=A.forwardRef(function(o,n){let{onChange:r,...i}=o;return A.createElement(aa,{...i,inputRef:n,onAccept:a=>r({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d",blocks:{d:{mask:Do.MaskedRange,from:1,to:31,maxLength:2},m:{mask:Do.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Do.MaskedRange,from:1900,to:9999}},format:kt,parse:a=>{let t=a.split("/");return new Date(Number(t[0]),Number(t[1])-1,Number(t[2]))},autofix:"pad",overwrite:!0})}),Mo=ra((e,o)=>{let{onChange:n,disabled:r,label:i,error:a,helperText:t,minDate:l,maxDate:m,disableFuture:p,disablePast:s,required:c,...b}=e,[f,y]=Dt(e.value||""),[d,u]=Dt(null),M=!!d;na(()=>{y(e.value||"")},[e.value]);let D=vt(x=>{y(x.target.value),n?.(x)},[]),v=vt(x=>{u(d?null:x.currentTarget)},[d,u]),h=A.createElement(A.Fragment,null,A.createElement(G,{...b,ref:o,size:"sm",value:f,onChange:D,placeholder:"YYYY/MM/DD",disabled:r,required:c,slotProps:{input:{component:ca}},sx:{fontFamily:"monospace"},endDecorator:A.createElement(z,{variant:"plain",onClick:v},A.createElement(ia,null))}),M&&A.createElement(sa,{onClickAway:()=>u(null)},A.createElement(da,{id:"date-picker-popper",open:!0,anchorEl:d,placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[4,4]}}]},A.createElement(la,{open:!0},A.createElement(pa,{tabIndex:-1,role:"presentation"},A.createElement(ee,{value:Number.isNaN(new Date(f).getTime())?void 0:[new Date(f),void 0],onChange:([x])=>{y(kt(x)),u(null)},minDate:l?new Date(l):void 0,maxDate:m?new Date(m):void 0,disableFuture:p,disablePast:s}),A.createElement(_,{sx:{p:1}},A.createElement(T,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{y(""),u(null)}},"Clear")))))));return i?A.createElement(F,{required:c,disabled:r,error:a,size:"sm"},A.createElement(L,null,i),h,t&&A.createElement(w,null,t)):h});Mo.displayName="DatePicker";import I,{forwardRef as ua,useCallback as ko,useEffect as ga,useMemo as fa,useState as Tt}from"react";import{IMaskInput as ha,IMask as To}from"react-imask";import Ca from"@mui/icons-material/esm/CalendarToday.js";import{styled as Pt}from"@mui/joy";import{FocusTrap as ba,ClickAwayListener as ya,Popper as xa}from"@mui/base";var va=Pt(xa,{name:"DateRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Da=Pt(j,{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})),wt=([e,o])=>{let n=r=>{let i=`${r.getDate()}`,a=`${r.getMonth()+1}`,t=r.getFullYear();return Number(i)<10&&(i="0"+i),Number(a)<10&&(a="0"+a),[t,a,i].join("/")};return[n(e),o?n(o):""].join(" - ")},Ft=e=>{let o=e.split(" - ")[0]||"",n=e.split(" - ")[1]||"",r=o.split("/"),i=n.split("/");return[new Date(Number(r[0]),Number(r[1])-1,Number(r[2])),new Date(Number(i[0]),Number(i[1])-1,Number(i[2]))]},Ma=I.forwardRef(function(o,n){let{onChange:r,...i}=o;return I.createElement(ha,{...i,inputRef:n,onAccept:a=>r({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m/`d - Y/`m/`d",blocks:{d:{mask:To.MaskedRange,from:1,to:31,maxLength:2},m:{mask:To.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:To.MaskedRange,from:1900,to:9999}},format:wt,parse:Ft,autofix:"pad",overwrite:!0})}),Po=ua((e,o)=>{let{onChange:n,disabled:r,label:i,error:a,helperText:t,minDate:l,maxDate:m,disableFuture:p,disablePast:s,required:c,...b}=e,[f,y]=Tt(e.value||""),[d,u]=Tt(null),M=!!d,D=fa(()=>f?Ft(f):void 0,[f]);ga(()=>{y(e.value||"")},[e.value]);let v=ko(k=>{y(k.target.value),n?.(k)},[n]),h=ko(k=>{u(d?null:k.currentTarget)},[d,u]),x=ko(([k,Y])=>{!k||!Y||(y(wt([k,Y])),u(null))},[y,u]),S=I.createElement(I.Fragment,null,I.createElement(G,{...b,ref:o,size:"sm",value:f,onChange:v,disabled:r,required:c,placeholder:"YYYY/MM/DD - YYYY/MM/DD",slotProps:{input:{component:Ma}},sx:{fontFamily:"monospace"},endDecorator:I.createElement(z,{variant:"plain",onClick:h},I.createElement(Ca,null))}),M&&I.createElement(ya,{onClickAway:()=>u(null)},I.createElement(va,{id:"date-range-picker-popper",open:!0,anchorEl:d,placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[4,4]}}]},I.createElement(ba,{open:!0},I.createElement(Da,{tabIndex:-1,role:"presentation"},I.createElement(ee,{rangeSelection:!0,defaultValue:D,onChange:x,minDate:l?new Date(l):void 0,maxDate:m?new Date(m):void 0,disableFuture:p,disablePast:s}),I.createElement(_,{sx:{p:1}},I.createElement(T,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{y(""),u(null)}},"Clear")))))));return i?I.createElement(F,{required:c,disabled:r,error:a,size:"sm"},I.createElement(L,null,i),S,t&&I.createElement(w,null,t)):S});Po.displayName="DateRangePicker";import{DialogContent as ka,styled as Ta}from"@mui/joy";import{motion as Pa}from"framer-motion";var wa=Pa(ka),Fa=Ta(wa)(({theme:e})=>({padding:e.spacing(0,3,2.5)})),we=Fa;we.displayName="DialogContent";var Ge=we;import{DialogTitle as Aa,styled as Ia}from"@mui/joy";import{motion as Ba}from"framer-motion";var Na=Ba(Aa),La=Ia(Na)(({theme:e})=>({padding:e.spacing(2,3)})),Fe=La;Fe.displayName="DialogTitle";var je=Fe;import Ie from"react";import _e from"react";import{Modal as Sa,ModalDialog as Ha,ModalClose as za,ModalOverflow as Oa,styled as At}from"@mui/joy";import{motion as Ze}from"framer-motion";var Ea=Ze(Sa),wo=Ea;wo.displayName="Modal";var Va=Ze(Ha),It=At(Va)({padding:0}),Ae=It;Ae.displayName="ModalDialog";var Ja=At(Ze(za))(({theme:e})=>({top:e.spacing(1.5),right:e.spacing(3)})),Xe=Ja;Xe.displayName="ModalClose";var Ya=Ze(Oa),Fo=Ya;Fo.displayName="ModalOverflow";function Ao(e){let{title:o,children:n,...r}=e;return _e.createElement(It,{...r},_e.createElement(Xe,null),_e.createElement(je,null,o),_e.createElement(Ge,null,n))}Ao.displayName="ModalFrame";import{styled as $a}from"@mui/joy";var Wa=$a(Ae)(({theme:e})=>({padding:0})),Io=Ie.forwardRef((e,o)=>{let{title:n,children:r,actions:i,...a}=e;return Ie.createElement(Wa,{ref:o,...a},Ie.createElement(je,null,n),Ie.createElement(Ge,null,r),Ie.createElement(_,null,i))});Io.displayName="DialogFrame";import qa from"react";import{Divider as Ua}from"@mui/joy";import{motion as Ga}from"framer-motion";var ja=Ga(Ua),Be=e=>qa.createElement(ja,{...e});Be.displayName="Divider";import _a from"react";import{Drawer as Za}from"@mui/joy";import{motion as Xa}from"framer-motion";var Qa=Xa(Za),Bo=e=>{let{children:o,...n}=e;return _a.createElement(Qa,{...n,slotProps:{...n.slotProps,content:{...n.slotProps?.content,sx:{bgcolor:"transparent",p:{md:3,sm:0},boxShadow:"none"}}}},o)};Bo.displayName="InsetDrawer";import P,{useCallback as Qe,useEffect as Ka,useRef as Bt,useState as No}from"react";import{styled as re}from"@mui/joy";import Ra from"@mui/icons-material/esm/Delete.js";import{combine as ei}from"@atlaskit/pragmatic-drag-and-drop/combine";import{dropTargetForExternal as oi,monitorForExternal as ti}from"@atlaskit/pragmatic-drag-and-drop/external/adapter";import{containsFiles as Nt,getFiles as ri}from"@atlaskit/pragmatic-drag-and-drop/external/file";import{preventUnhandled as Lt}from"@atlaskit/pragmatic-drag-and-drop/prevent-unhandled";var ni=re("input")({width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",position:"absolute"}),ai=re("div",{name:"FileUpload",slot:"PreviewRoot"})(({theme:e})=>({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, auto))",gap:"8px"})),ii=e=>{let{files:o,onDelete:n}=e;return P.createElement(ai,null,o.map(r=>P.createElement(ye,{key:r.name},P.createElement(H,{style:{aspectRatio:"4/3",height:"200px"},alignItems:"center",justifyContent:"center"},r.type.startsWith("image/")?P.createElement("img",{style:{width:"100%",height:"100%",objectFit:"cover"},src:URL.createObjectURL(r),alt:r.name}):P.createElement(N,{level:"title-md",textColor:"neutral.400"},r.type)),P.createElement(H,{direction:"row",justifyContent:"space-between",gap:"8px"},P.createElement(H,null,P.createElement(N,{level:"title-sm",textColor:"common.black"},r.name),P.createElement(N,{level:"body-sm",textColor:"neutral.600"},(r.size/1e3).toFixed(2),"KB")),P.createElement(z,{onClick:()=>n?.(r)},P.createElement(Ra,null))))))},li=re(H,{name:"FileUpload",slot:"root"})(({theme:e})=>({gap:e.spacing(1)})),si=re("label",{name:"FileUpload",slot:"label"})({}),mi=re("div",{name:"FileUpload",slot:"dropZone"})(({theme:e,state:o})=>({width:"100%",backgroundColor:o==="over"?e.palette.background.level2:e.palette.background.backdrop,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:e.spacing(3),gap:e.spacing(2),border:o==="idle"?"2px solid rgba(0,0,0,0)":`2px dashed ${e.palette.primary[400]}`})),di=re(T,{name:"FileUpload",slot:"button"})({}),Lo=P.memo(e=>{let{accept:o,maxCount:n,name:r,maxTotalSize:i,maxSizePerFile:a,onChange:t}=e,l=Bt(null),m=Bt(null),[p,s]=No([]),[c,b]=No("idle"),[f,y]=No(),d=Qe(v=>{try{a&&v.forEach(x=>{if(x.size>a)throw new Error(`File size exceeds the limit: ${a}`)});let h=[...p,...v];if(n&&h.length>n)throw new Error(`File count exceeds the limit: ${n}`);if(i&&h.reduce((x,S)=>x+S.size,0)>i)throw new Error(`Total file size exceeds the limit: ${i}`);t?.({target:{name:r,value:h}}),y(void 0),s(h)}catch(h){y(h.message)}},[p]);Ka(()=>{let v=l.current;if(!v)throw new Error("Drop zone ref is not set");return ei(oi({element:v,canDrop:Nt,onDragEnter:()=>b("over"),onDragLeave:()=>b("potential"),onDrop:async({source:h})=>{let x=await ri({source:h});d(x)}}),ti({canMonitor:Nt,onDragStart:()=>{b("potential"),Lt.start()},onDrop:()=>{b("idle"),Lt.stop()}}))});let u=Qe(v=>{let h=Array.from(v.target.files||[]);d(h)},[d]),M=Qe(v=>{s(h=>(t?.({target:{name:r,value:h.filter(x=>x!==v)}}),h.filter(x=>x!==v)))},[]),D=Qe(()=>{m.current?.click()},[]);return P.createElement(li,null,P.createElement(F,{error:!!f},P.createElement(mi,{state:c,ref:l},P.createElement(si,null,P.createElement(N,{level:"h3",textColor:"background.tooltip"},"Drop files"),P.createElement(ni,{type:"file",onChange:u,multiple:!0,accept:o,ref:m})),P.createElement(di,{variant:"soft",color:"neutral",onClick:D},"Select Files"),f&&P.createElement(w,null,f))),P.createElement(ii,{files:p,onDelete:M}))});Lo.displayName="FileUpload";import{Grid as pi}from"@mui/joy";import{motion as ci}from"framer-motion";var ui=ci(pi),So=ui;So.displayName="Grid";import Z from"react";import gi from"react-markdown";import{Link as fi}from"@mui/joy";var Ho=e=>{let{...o}=e;return Z.createElement(gi,{...o,components:{h1:({children:r})=>Z.createElement(E,{level:"h1"},r),h2:({children:r})=>Z.createElement(E,{level:"h2"},r),h3:({children:r})=>Z.createElement(E,{level:"h3"},r),h4:({children:r})=>Z.createElement(E,{level:"h4"},r),p:({children:r})=>Z.createElement(E,null,r),a:({children:r,href:i})=>Z.createElement(fi,{href:i},r),hr:()=>Z.createElement(Be,null),...o?.components}})};Ho.displayName="Markdown";import B,{forwardRef as hi,useCallback as zo,useEffect as Ci,useMemo as bi,useState as St}from"react";import{IMaskInput as yi,IMask as Ht}from"react-imask";import xi from"@mui/icons-material/esm/CalendarToday.js";import{styled as zt}from"@mui/joy";import{FocusTrap as vi,ClickAwayListener as Di,Popper as Mi}from"@mui/base";var ki=zt(Mi,{name:"MonthRangePicker",slot:"popper"})(({theme:e})=>({zIndex:e.zIndex.tooltip})),Ti=zt(j,{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})),Ke=([e,o])=>{let n=r=>{let i=`${r.getMonth()+1}`,a=r.getFullYear();return Number(i)<10&&(i="0"+i),[a,i].join("/")};return[n(e),o?n(o):""].join(" - ")},Re=e=>{let o=e.split(" - ")[0]||"",n=e.split(" - ")[1]||"",r=o.split("/"),i=n.split("/");return[new Date(Number(r[0]),Number(r[1])-1),new Date(Number(i[0]),Number(i[1])-1)]},Pi=B.forwardRef(function(o,n){let{onChange:r,...i}=o;return B.createElement(yi,{...i,inputRef:n,onAccept:a=>r({target:{name:o.name,value:a}}),mask:Date,pattern:"Y/`m - Y/`m",blocks:{m:{mask:Ht.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:Ht.MaskedRange,from:1900,to:9999}},format:Ke,parse:Re,autofix:"pad",overwrite:!0})}),Oo=hi((e,o)=>{let{onChange:n,disabled:r,label:i,error:a,helperText:t,minDate:l,maxDate:m,disableFuture:p,disablePast:s,required:c,...b}=e,[f,y]=St(e.value?Ke(Re(e.value||"")):""),[d,u]=St(null),M=!!d,D=bi(()=>f?Re(f):void 0,[f]);Ci(()=>{y(e.value?Ke(Re(e.value||"")):"")},[e.value]);let v=zo(k=>{y(k.target.value),n?.(k)},[n]),h=zo(k=>{u(d?null:k.currentTarget)},[d,u]),x=zo(([k,Y])=>{!k||!Y||(y(Ke([k,Y])),u(null))},[y,u]),S=B.createElement(B.Fragment,null,B.createElement(G,{...b,ref:o,size:"sm",value:f,onChange:v,disabled:r,required:c,placeholder:"YYYY/MM - YYYY/MM",slotProps:{input:{component:Pi}},sx:{fontFamily:"monospace"},endDecorator:B.createElement(z,{variant:"plain",onClick:h},B.createElement(xi,null))}),M&&B.createElement(Di,{onClickAway:()=>u(null)},B.createElement(ki,{id:"date-range-picker-popper",open:!0,anchorEl:d,placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[4,4]}}]},B.createElement(vi,{open:!0},B.createElement(Ti,{tabIndex:-1,role:"presentation"},B.createElement(ee,{view:"month",views:["month"],rangeSelection:!0,defaultValue:D,onChange:x,minDate:l?new Date(l):void 0,maxDate:m?new Date(m):void 0,disableFuture:p,disablePast:s}),B.createElement(_,{sx:{p:1}},B.createElement(T,{size:"sm",variant:"plain",color:"neutral",onClick:()=>{y(""),u(null)}},"Clear")))))));return i?B.createElement(F,{required:c,disabled:r,error:a,size:"sm"},B.createElement(L,null,i),S,t&&B.createElement(w,null,t)):S});Oo.displayName="MonthRangePicker";import{Radio as wi,RadioGroup as Fi}from"@mui/joy";import{motion as Ot}from"framer-motion";var Ai=Ot(wi),Ne=Ai;Ne.displayName="Radio";var Ii=Ot(Fi),Le=Ii;Le.displayName="RadioGroup";import Et from"react";function Eo(e){let{items:o,...n}=e;return Et.createElement(Le,{...n},o.map(r=>Et.createElement(Ne,{key:`${r.value}`,value:r.value,label:r.label})))}Eo.displayName="RadioList";import eo from"react";import{Select as Bi,Option as Ni}from"@mui/joy";import{motion as Li}from"framer-motion";var Si=Li(Ni),Vo=Si;Vo.displayName="Option";function Jo(e){let{label:o,helperText:n,error:r,size:i,color:a,disabled:t,required:l,onChange:m,...p}=e,c=eo.createElement(Bi,{...p,required:l,disabled:t,size:i,color:a,onChange:(b,f)=>{let y=b||{target:{}},d={...y,target:{name:y.target?.name||e.name,value:f||void 0}};m?.(d)}});return o?eo.createElement(F,{required:l,disabled:t,size:i,color:a,error:r},eo.createElement(L,null,o),c,n&&eo.createElement(w,null,n)):c}Jo.displayName="Select";import Vt from"react";import{Switch as Hi,styled as zi,switchClasses as Oi}from"@mui/joy";import{motion as Jt}from"framer-motion";var Ei=Jt(Hi),Vi=zi(Jt.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)",[`&.${Oi.checked}`]:{left:"unset",right:"var(--Switch-thumbOffset)"}}),Ji=e=>Vt.createElement(Vi,{...e,layout:!0,transition:Yi}),Yi={type:"spring",stiffness:700,damping:30},Yo=e=>Vt.createElement(Ei,{...e,slots:{thumb:Ji,...e.slots}});Yo.displayName="Switch";import{Tabs as $i,Tab as Wi,TabList as qi,TabPanel as Ui,styled as Gi,tabClasses as ji}from"@mui/joy";import{motion as oo}from"framer-motion";var _i=oo($i),$o=_i;$o.displayName="Tabs";var Zi=Gi(oo(Wi))(({theme:e})=>({[`&:not(.${ji.selected})`]:{color:e.palette.neutral[700]}})),Wo=Zi;Wo.displayName="Tab";var Xi=oo(qi),qo=Xi;qo.displayName="TabList";var Qi=oo(Ui),Uo=Qi;Uo.displayName="TabPanel";import to from"react";import{Textarea as Ki}from"@mui/joy";import{motion as Ri}from"framer-motion";var el=Ri(Ki),Go=e=>{let{label:o,error:n,helperText:r,color:i,size:a,disabled:t,required:l,...m}=e,p=to.createElement(el,{required:l,disabled:t,color:i,size:a,...m});return o?to.createElement(F,{required:l,disabled:t,color:i,size:a,error:n},to.createElement(L,null,o),p,r&&to.createElement(w,null,r)):p};Go.displayName="Textarea";import ro from"react";import{CssBaseline as ol,CssVarsProvider as tl,checkboxClasses as rl,extendTheme as nl}from"@mui/joy";var al=nl({cssVarPrefix:"ceed",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)"},[`& .${rl.root}`]:{verticalAlign:"middle"}})}},JoyTooltip:{defaultProps:{size:"sm",placement:"top"}}}});function jo(e){return ro.createElement(ro.Fragment,null,ro.createElement(tl,{theme:al},ro.createElement(ol,null),e.children))}jo.displayName="ThemeProvider";import il from"react";import{Tooltip as ll}from"@mui/joy";import{motion as sl}from"framer-motion";var ml=sl(ll),_o=e=>il.createElement(ml,{...e});_o.displayName="Tooltip";export{Oe as Accordion,ze as AccordionDetails,He as AccordionSummary,no as Accordions,ao as Alert,Mf as AspectRatio,io as Autocomplete,gf as AutocompleteListbox,ff as AutocompleteOption,yf as Avatar,vf as AvatarGroup,Tf as Badge,me as Box,mo as Breadcrumbs,ge as Button,Ce as Calendar,ye as Card,fo as CardActions,uo as CardContent,go as CardCover,ho as CardOverflow,xe as Checkbox,Lf as Chip,Hf as CircularProgress,Co as Container,yt as CurrencyInput,vo as DataTable,Mo as DatePicker,Po as DateRangePicker,Pe as DialogActions,we as DialogContent,Io as DialogFrame,Fe as DialogTitle,Be as Divider,Of as Drawer,ue as Dropdown,Lo as FileUpload,ie as FormControl,se as FormHelperText,le as FormLabel,So as Grid,fe as IconButton,Me as Input,Bo as InsetDrawer,Vf as LinearProgress,oh as Link,Yf as List,Wf as ListDivider,Uf as ListItem,jf as ListItemButton,Zf as ListItemContent,Qf as ListItemDecorator,Rf as ListSubheader,Ho as Markdown,de as Menu,pe as MenuButton,ce as MenuItem,wo as Modal,Xe as ModalClose,Ae as ModalDialog,Ao as ModalFrame,Fo as ModalOverflow,Oo as MonthRangePicker,Vo as Option,Ne as Radio,Le as RadioGroup,Eo as RadioList,Jo as Select,ke as Sheet,ch as Skeleton,rh as Slider,ae as Stack,ah as Step,lh as StepButton,mh as StepIndicator,dh as Stepper,Yo as Switch,Wo as Tab,qo as TabList,Uo as TabPanel,Te as Table,yo as TableBody,bo as TableHead,$o as Tabs,Go as Textarea,jo as ThemeProvider,_o as Tooltip,E as Typography,df as accordionClasses,pf as accordionDetailsClasses,uf as accordionSummaryClasses,cf as accordionsClasses,Fg as alertClasses,kf as aspectRatioClasses,hf as autocompleteClasses,Cf as autocompleteListboxClasses,bf as autocompleteOptionClasses,xf as avatarClasses,Df as avatarGroupClasses,Pf as badgeClasses,Ag as boxClasses,wf as breadcrumbsClasses,Ig as buttonClasses,Af as cardActionsClasses,Ff as cardClasses,If as cardContentClasses,Bf as cardCoverClasses,Nf as cardOverflowClasses,Bg as checkboxClasses,Sf as chipClasses,zf as circularProgressClasses,nf as dialogActionsClasses,rf as dialogContentClasses,tf as dialogTitleClasses,Ng as dividerClasses,Ef as drawerClasses,Gg as formControlClasses,_g as formHelperTextClasses,jg as formLabelClasses,Zg as gridClasses,Lg as iconButtonClasses,Sg as inputClasses,Jf as linearProgressClasses,th as linkClasses,$f as listClasses,qf as listDividerClasses,_f as listItemButtonClasses,Gf as listItemClasses,Xf as listItemContentClasses,Kf as listItemDecoratorClasses,eh as listSubheaderClasses,zg as menuButtonClasses,Hg as menuClasses,Og as menuItemClasses,Kg as modalClasses,Rg as modalCloseClasses,ef as modalDialogClasses,of as modalOverflowClasses,Eg as optionClasses,Vg as radioClasses,Jg as radioGroupClasses,Yg as selectClasses,Qg as sheetClasses,uh as skeletonClasses,nh as sliderClasses,Xg as stackClasses,sh as stepButtonClasses,ih as stepClasses,ph as stepperClasses,$g as switchClasses,sf as tabListClasses,mf as tabPanelClasses,Wg as tableClasses,lf as tabsClasses,qg as textareaClasses,af as tooltipClasses,Ug as typographyClasses,Pg as useColorScheme,Tg as useTheme,wg as useThemeProps};