@applica-software-guru/react-admin 1.4.216 → 1.4.217

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.
@@ -269,5 +269,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
269
269
  `),gU)),BU=ue("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Pe(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>H({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:up(t,e.color),transition:`transform .${cp}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&xt.css(WQ||(WQ=Rs`
270
270
  width: auto;
271
271
  animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
272
- `),pU)),UQ=N.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:c,variant:u="indeterminate"}=r,A=Fe(r,fU),g=H({},r,{color:s,variant:u}),h=CU(g),C=Id(),E={},I={bar1:{},bar2:{}};if(u==="determinate"||u==="buffer")if(a!==void 0){E["aria-valuenow"]=Math.round(a),E["aria-valuemin"]=0,E["aria-valuemax"]=100;let B=a-100;C&&(B=-B),I.bar1.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(u==="buffer")if(c!==void 0){let B=(c||0)-100;C&&(B=-B),I.bar2.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return f.jsxs(EU,H({className:We(h.root,o),ownerState:g,role:"progressbar"},E,{ref:n},A,{children:[u==="buffer"?f.jsx(IU,{className:h.dashed,ownerState:g}):null,f.jsx(mU,{className:h.bar1,ownerState:g,style:I.bar1}),u==="determinate"?null:f.jsx(BU,{className:h.bar2,ownerState:g,style:I.bar2})]}))});process.env.NODE_ENV!=="production"&&(UQ.propTypes={classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","primary","secondary"]),p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.number,valueBuffer:p.number,variant:p.oneOf(["buffer","determinate","indeterminate","query"])});const vU=UQ,yU=ue("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),YQ=()=>f.jsx(yU,{children:f.jsx(vU,{color:"primary"})}),bU=e=>t=>f.jsx(x.Suspense,{fallback:f.jsx(YQ,{}),children:f.jsx(e,{...t})}),Ap=({title:e})=>f.jsxs(b.Stack,{direction:"row",children:[f.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]}),QU=ue(M.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}}));function GQ(e){return f.jsx(QU,{...e})}const dp=({children:e})=>{const t=Ct.useLocation(),{pathname:n}=t;return x.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};dp.propTypes={children:p.node};const xU=ue("div")({width:"100%",overflowX:"auto",display:"block"}),fp=({title:e})=>f.jsx(b.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});fp.propTypes={title:p.string.isRequired};var tl=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(tl||{});const wU=eo().required(),TU=eo().oneOf(Object.values(tl));function SU(e){var T;const t=Yi.useQueryClient(),[n,r]=x.useState(!1),[o,s]=x.useState(()=>()=>Promise.resolve()),a=ce.useGetIdentity(),c=(T=a==null?void 0:a.data)==null?void 0:T.email,u=ce.useDataProvider(),A=x.useCallback(()=>c?u.get("onboarding").then(D=>{var Q;return(Q=D==null?void 0:D.data)==null?void 0:Q.value}):Promise.reject(),[u,c]),{data:g,isLoading:h,isError:C}=Yi.useQuery({queryKey:["GET","onboarding",c],queryFn:A,staleTime:24*60*60*1e3,retry:c!==void 0}),[E,I]=x.useState(()=>()=>Promise.resolve()),B=Yi.useMutation({mutationFn:E}),v=B.mutateAsync;return x.useEffect(()=>{function D(){const Q=ne.chain(g??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",Q).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}I(()=>D)},[u,g,e,t,c]),x.useEffect(()=>{r(ne.isNil((g??{})[e]))},[g,e,r]),x.useEffect(()=>{s(()=>()=>v())},[v]),{loading:h,error:C,onboardingRequired:n,acknowledgeOnboarding:o}}function PU(e){const[t,n]=qd("onboarding",{}),[r,o]=x.useState(!1),[s,a]=x.useState(()=>()=>Promise.resolve());return x.useEffect(()=>{o(ne.isNil((t??{})[e]))},[t,e,o]),x.useEffect(()=>{a(()=>()=>(n(c=>ne.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:s}}function OU(){return{onboardingRequired:!1,acknowledgeOnboarding:x.useRef(()=>Promise.resolve()).current}}function jU(e,t){_d({mode:TU,topic:wU}).validateSync({mode:e,topic:t});const n=SU(t),r=PU(t),o=OU();switch(e){case tl.USER:return n.loading?o:n.error?r:ne.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case tl.BROWSER:return r;default:return o}}var nl=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(nl||{});function DU(e,t){var o;const n=ne.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:s}=t;return ne.extend(n,{show:s})}case"REGISTER_TIP":{const{payload:s}=t,{id:a}=s,c=ne.chain(n.tips).clone().reject(g=>g.id===a).value(),u=ne.find(n.tips,{id:a}),A=ne.chain(u??{}).clone().extend(s).value();return c.push(A),ne.extend(n,{tips:ne.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:s}=t,a=ne.isString(s)?s:s.id,c=ne.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return ne.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:s}=t,a=ne.isString(s)?s:s.id,c=ne.chain(n.tips).reject(C=>C.id===a).value(),u=ne.find(n.tips,{id:a});if(ne.isNil(u))return n;const A=ne.chain(u).clone().extend({dismissed:!0}).value();c.push(A);const g=((o=ne.chain(c).reject(C=>C.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(A==null?void 0:A.completeOnboarding)&&ne.chain(c).reject(C=>C.step<g).reject(C=>C.dismissed??!1).isEmpty().value()&&e.onComplete(),ne.extend(n,{tips:ne.sortBy(c,["step"]),currentStep:g})}case"SET_ON_COMPLETE":{const{payload:s}=t;return ne.extend(n,{onComplete:s})}case"RESTART":{const s=ne.chain(n.tips).clone().map(a=>ne.omit(a,"dismissed")).value();return ne.extend(n,{tips:s,currentStep:0})}default:return n}}const KQ=x.createContext(void 0);function MU(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=jU(t,n),[s,a]=x.useReducer(DU,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=x.useMemo(()=>({state:s,dispatch:a}),[s,a]);return x.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),x.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),f.jsx(KQ.Provider,{value:c,children:e.children})}function JQ(){const e=x.useContext(KQ);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function kU(){return JQ().state}function XQ(){return JQ().dispatch}function RU(e){_d({id:eo().required(),step:nI().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:s,currentStep:a}=kU(),c=ne.find(s,{id:t}),{dismissed:u}=c??{},A=XQ(),g=x.useCallback(()=>{A({type:nl.DISMISS_TIP,payload:t})},[A,t]);return x.useEffect(()=>{(ne.isNil(c)||n!==(c==null?void 0:c.step))&&A({type:nl.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c]),x.useEffect(()=>()=>{A({type:nl.UNREGISTER_TIP,payload:t})},[t,A]),{tip:ne.chain(c??e).clone().extend({open:o&&!ne.isNil(c)&&a===n&&!u}).value(),dismiss:g}}function FU(){const e=XQ();return x.useCallback(()=>{e({type:nl.RESTART})},[e])}function LU(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:s,dismiss:a}=RU({id:t,step:n,completeOnboarding:o}),{open:c}=s,u=ne.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(Zc,{...u,arrow:!0,open:c,title:f.jsxs(b.Stack,{gap:1,children:[f.jsx(b.Typography,{children:r}),f.jsx(b.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const NU=b.styled(LU)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${b.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${b.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${b.tooltipClasses.arrow}`]:{color:r.main}}});function VU({label:e="ra.auth.sign_in",...t}){const n=M.useRecordContext(),[r,o]=x.useState(!1),s=M.useAuthProvider(),a=x.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),s.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[s,n==null?void 0:n.id]);return f.jsx(M.Button,{disabled:r||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:f.jsx(Zn.VpnKey,{})})}const gp=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},zU=(e,t)=>e&&e.data?{data:gp(e.data,t),total:e.total+1}:e,HU=(e,t)=>e&&e.length>0?gp(e,t):e,WU=(e,t)=>e&&e.data?{...e,data:gp(e.data,t),total:e.total+1}:e,UU=({onClose:e,record:t,children:n,redirect:r=!1,onSubmit:o,onSuccess:s,onError:a,...c})=>{const u=Yi.useQueryClient(),A=M.useResourceContext(),g=M.useRedirect(),h=M.useNotify(),C=x.useCallback((v,T,D)=>{var S;const O=Date.now();u.setQueryData([A,"getOne",{id:v.id}],v),u.setQueriesData([A,"getList"],k=>WU(k,v),{updatedAt:O}),u.setQueriesData([A,"getMany"],k=>HU(k,v),{updatedAt:O}),u.setQueriesData([A,"getManyReference"],k=>zU(k,v),{updatedAt:O}),e(),h("ra.notification.created"),r!==void 0&&g(r,A,v.id,v),s&&s(v,e),(S=c==null?void 0:c.mutationOptions)!=null&&S.onSuccess&&c.mutationOptions.onSuccess(v,T,{...D,onClose:e})},[e,s,u,A,h,g,r]),{save:E,...I}=M.useCreateController({...c,mutationOptions:{...c==null?void 0:c.mutationOptions,onSuccess:C,onError:a}}),B=x.useCallback(v=>{o?o(v,e):E&&E(v)},[o,E,e]);return f.jsx(M.CreateContextProvider,{value:{record:t,save:B,saving:I==null?void 0:I.saving,redirect:r},children:x.cloneElement(n,{...n.props,modal:!0,toolbar:f.jsxs(mi,{children:[f.jsx(M.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:I==null?void 0:I.saving}),f.jsx(M.SaveButton,{type:"button",disabled:I==null?void 0:I.saving})]})})})},YU={true:{_scrollToTop:!0},false:{}},GU=ue(b.Fab,{overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${M.CreateButtonClasses.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}}));function KU({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.create",record:r,redirect:o,scrollToTop:s=!0,className:a,sx:c,style:u,fab:A=!0,onSubmit:g,onSuccess:h,onError:C,...E}){const[I,B]=x.useState(!1),v=M.useTranslate(),T=M.useResourceContext(),{openDialog:D,closeDialog:Q}=si(),O=x.useCallback(()=>D(T,()=>B(!0)),[D,T]),S=x.useCallback(()=>Q(T,()=>B(!1)),[Q,T]),k=A&&b.useMediaQuery(R=>R.breakpoints.down("md"));return f.jsxs(f.Fragment,{children:[k?f.jsx(GU,{state:YU[String(s)],color:"primary",className:We(M.CreateButtonClasses.floating,a),"aria-label":n&&v(n),onClick:O,children:f.jsx(Qg,{})}):f.jsx(M.Button,{sx:c,label:n,onClick:O,style:u,children:f.jsx(Qg,{})}),f.jsx(b.Dialog,{open:I,scroll:"body",onClose:S,fullWidth:e,maxWidth:t,children:f.jsx(UU,{...E,redirect:o,record:r,onClose:S,onSubmit:g,onSuccess:h,onError:C})})]})}const JU=({onClose:e,children:t,mutationMode:n="pessimistic",...r})=>{const o=M.useNotify(),s=M.useRecordContext(),a=M.useResourceContext(),{id:c}=s,{isLoading:u,data:A}=M.useGetOne(a,{id:c}),g=x.useCallback((...E)=>{o("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e(),r.onSuccess&&r.onSuccess(...E)},[e,o]),{save:h,saving:C}=M.useEditController({...r,resource:a,id:c,mutationMode:n,mutationOptions:{...r==null?void 0:r.mutationOptions,onSuccess:g}});return f.jsx(M.EditContextProvider,{value:{record:A,isLoading:u,save:h,saving:C},children:x.cloneElement(t,{...t.props,modal:!0,toolbar:f.jsxs(mi,{children:[f.jsx(M.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),f.jsx(M.SaveButton,{type:"button"})]})})})};function XU({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.edit",style:r,children:o,...s}){const[a,c]=x.useState(!1),{openDialog:u,closeDialog:A}=si(),g=M.useResourceContext(),h=x.useCallback(()=>u(g,()=>c(!0)),[u,g]),C=x.useCallback(()=>A(g,()=>c(!1)),[A,g]);return f.jsxs(f.Fragment,{children:[f.jsx(M.Button,{label:n,onClick:h,style:r,children:f.jsx(Zn.Edit,{})}),f.jsx(b.Dialog,{open:a,scroll:"body",onClose:C,fullWidth:e,maxWidth:t,children:f.jsx(JU,{...s,onClose:C,children:o})})]})}function ZQ(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:s,resource:a,selectedIds:c=[],onUnselectItems:u}=ce.useListContext(e),A=ce.useTranslate(),g=x.useCallback(()=>{u()},[u]);return f.jsx(ZU,{className:r,children:f.jsxs(KN,{"data-test":"bulk-actions-toolbar",className:We(ur.toolbar,{[ur.collapsed]:c.length===0}),...ce.sanitizeListRestProps(o),children:[f.jsxs("div",{className:ur.title,children:[f.jsx(sg,{className:ur.icon,"aria-label":A("ra.action.unselect"),title:A("ra.action.unselect"),onClick:g,size:"small",children:f.jsx(Qu,{fontSize:"small"})}),f.jsx(tB,{color:"inherit",variant:"subtitle1",children:A(t,{_:t,smart_count:c.length})})]}),f.jsx(M.TopToolbar,{className:ur.topToolbar,children:x.Children.map(n,h=>x.isValidElement(h)?x.cloneElement(h,{filterValues:s,resource:a,selectedIds:c}):null)})]})})}const Qi="RaBulkActionsToolbar",ur={toolbar:`${Qi}-toolbar`,topToolbar:`${Qi}-topToolbar`,buttons:`${Qi}-buttons`,collapsed:`${Qi}-collapsed`,title:`${Qi}-title`,icon:`${Qi}-icon`},ZU=ue("div",{name:Qi,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${ur.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Ad(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${ur.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${ur.buttons}`]:{},[`& .${ur.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${ur.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${ur.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),pp={p:0,m:0},_Q={p:2,m:0,borderRadius:0,width:"100%"};function _U(e){const{children:t}=e,[n,r]=N.useState(null),o=I=>{r(I.currentTarget)},s=()=>{r(null)},a=b.useMediaQuery(I=>I.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:A=[],onUnselectItems:g}=M.useListContext(e),h=!!n&&A!==void 0&&A.length>0,C=h?"simple-popover":void 0,E=N.useCallback(()=>{g(),r(null)},[g,r]);return f.jsx(b.Fade,{in:A!==void 0&&A.length>0,children:f.jsxs(b.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(b.Fab,{color:"primary","aria-label":"manage",onClick:o,children:A==null?void 0:A.length}),f.jsx(b.Popover,{id:C,open:h,anchorEl:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(b.List,{sx:pp,children:[f.jsx(b.ListItem,{sx:pp,children:f.jsx(M.Button,{onClick:E,sx:_Q,label:"ra.action.unselect",startIcon:f.jsx(Qu,{}),children:f.jsx(Qu,{})})}),N.Children.map(t,I=>{var B;return f.jsx(b.ListItem,{sx:pp,children:N.isValidElement(I)?N.cloneElement(I,{filterValues:c,resource:u,selectedIds:A,sx:_Q,...(B=I.props)!=null&&B.popover?{closePopover:s}:{}}):null})})]})})]})})}const qQ=x.createContext({});qQ.displayName="DatagridContext";const qU=({children:e,value:t})=>f.jsx(qQ.Provider,{value:t,children:e}),$Q=f.jsx(M.BulkDeleteButton,{}),ex=N.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?M.PureDatagridBody:M.DatagridBody,header:o=M.DatagridHeader,children:s,className:a,empty:c=tY,expand:u,bulkActionsToolbar:A=!1,bulkActionButtons:g=$Q,hover:h,isRowSelectable:C,isRowExpandable:E,resource:I,rowClick:B,rowSx:v,rowStyle:T,size:D="small",sx:Q,expandSingle:O=!1,...S}=e,{sort:k,data:R,isLoading:K,onSelect:_,onToggleItem:ee,selectedIds:W,setSort:re,total:ie}=ce.useListContext(e),X=!!g,$=x.useMemo(()=>({isRowExpandable:E,expandSingle:O}),[E,O]),z=x.useRef(null);x.useEffect(()=>{(!W||W.length===0)&&(z.current=null)},[JSON.stringify(W)]);const Z=x.useCallback((L,q)=>{const U=R.map(fe=>fe.id),J=U.indexOf(z.current);if(z.current=q.target.checked?L:null,q.shiftKey&&J!==-1){const fe=U.indexOf(L),he=U.slice(Math.min(J,fe),Math.max(J,fe)+1),de=q.target.checked?Bz(W,he):Rz(W,he);_(C?de.filter(ge=>C(R.find(Ce=>Ce.id===ge))):de)}else ee(L)},[R,C,_,ee,W]);return K===!0?f.jsx(M.DatagridLoading,{className:a,expand:u,hasBulkActions:X,nbChildren:N.Children.count(s),size:D}):R==null||R.length===0||ie===0?c||null:f.jsx(qU,{value:$,children:f.jsxs(M.DatagridRoot,{sx:Q,className:We(M.DatagridClasses.root,a),children:[A!=null&&x.isValidElement(A)?x.cloneElement(A,{selectedIds:W,total:ie}):g!==!1?f.jsx(ZQ,{children:x.isValidElement(g)?g:$Q}):null,f.jsx("div",{className:M.DatagridClasses.tableWrapper,children:f.jsxs(b.Table,{ref:t,className:M.DatagridClasses.table,size:D,...eY(S),children:[tx(o,{children:s,sort:k,data:R,hasExpand:!!u,hasBulkActions:X,isRowSelectable:C,onSelect:_,resource:I,selectedIds:W,setSort:re},s),tx(r,{expand:u,rowClick:B,data:R,hasBulkActions:X,hover:h,onToggleItem:Z,resource:I,rowSx:v,rowStyle:T,selectedIds:W,isRowSelectable:C},s)]})})]})})}),tx=(e,t,n)=>x.isValidElement(e)?x.cloneElement(e,t,n):x.createElement(e,t,n),$U=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],eY=e=>Object.keys(ce.sanitizeListRestProps(e)).filter(t=>!$U.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{});ex.displayName="Datagrid";const tY=f.jsx(M.ListNoResults,{}),nY=ue(ex,{slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function rY(e){return f.jsx(nY,{...e})}const oY=ue("div")(({theme:e})=>({padding:e.spacing(2)}));function iY({actions:e,className:t,...n}){const{hasCreate:r}=ce.useResourceDefinition(n),o=ce.useResourceContext(n),s=ce.useTranslate(),a=ce.useGetResourceLabel(),c=s(`resources.${o}.forcedCaseName`,{smart_count:0,_:a(o,0)}),u=s("ra.page.empty",{name:c}),A=s("ra.page.invite");return f.jsxs(sY,{className:t,children:[f.jsxs("div",{className:xi.message,children:[f.jsx(Zn.Inbox,{className:xi.icon}),f.jsx(b.Typography,{variant:"h4",paragraph:!0,children:s(`resources.${o}.empty`,{_:u})}),r&&f.jsx(b.Typography,{variant:"body1",children:s(`resources.${o}.invite`,{_:A})})]}),f.jsx(oY,{className:xi.toolbar,children:e})]})}const Ru="ApplicaEmpty",xi={message:`${Ru}-message`,icon:`${Ru}-icon`,toolbar:`${Ru}-toolbar`},sY=ue("span",{name:Ru,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${xi.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${xi.icon}`]:{width:"9em",height:"9em"},[`& .${xi.toolbar}`]:{textAlign:"center",marginTop:"2em"}})),aY=f.jsx(M.ListActions,{}),lY=f.jsx(M.Pagination,{}),cY=f.jsx(M.Empty,{}),uY=Uz,AY=e=>{const{actions:t=aY,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:s,hasCreate:a,pagination:c=lY,children:u,className:A,component:g=uY,title:h,empty:C=cY,...E}=e,{defaultTitle:I,data:B,error:v,isLoading:T,filterValues:D,resource:Q}=ce.useListContext(e);if(!u||!B&&T&&s)return null;const O=()=>f.jsxs("div",{className:zo.main,children:[(r||t)&&f.jsx(M.ListToolbar,{className:zo.actions,filters:r,actions:t,hasCreate:a}),!v&&f.jsx(g,{className:zo.content,children:o&&u&&N.isValidElement(u)?x.cloneElement(u,{bulkActionButtons:o}):u}),v?f.jsx(_g,{error:v,resetErrorBoundary:null}):c!==!1&&c]}),S=()=>C!==!1&&x.cloneElement(C,{className:zo.noResults,hasCreate:a}),k=!T&&(B==null?void 0:B.length)===0&&!Object.keys(D).length&&C!==!1;return f.jsxs(dY,{className:We("list-page",A),...E,children:[f.jsx(M.Title,{title:h,defaultTitle:I,preferenceKey:`${Q}.list.title`}),k?S():O(),n]})},rl="RaList",zo={main:`${rl}-main`,content:`${rl}-content`,actions:`${rl}-actions`,noResults:`${rl}-noResults`},dY=ue("div",{name:rl,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",[`& .${zo.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${zo.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${zo.actions}`]:{},[`& .${zo.noResults}`]:{}})),fY=({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=gY,filterDefaultValues:s,perPage:a=10,queryOptions:c,resource:u,sort:A,storeKey:g,...h})=>f.jsx(ce.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:s,perPage:a,queryOptions:c,resource:u,sort:A,storeKey:g,children:f.jsx(AY,{...h})}),gY={},pY=da(fY,{slot:"root"})(({theme:e})=>({"& .RaList-main":{overflowX:"auto","& .RaBulkActionsToolbar-toolbar":{height:36,top:42,paddingTop:16,"& .RaBulkActionsToolbar-title":{alignItems:"end","& .MuiTypography-root":{alignSelf:"center"}}},"& .MuiToolbar-root":{"& form":{padding:e.spacing(2),paddingBottom:e.spacing(2),alignItems:"flex-start"}},"& .MuiButton-root":{margin:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function hY(e){return f.jsx(or,{content:!1,children:f.jsx(pY,{...e})})}function CY(){const e=M.useRefresh(),t=M.useNotify(),n=M.useResourceContext(),r=M.useUnselectAll(n),{selectedIds:o,data:s}=M.useListContext(),a=M.useRecordContext(),c=o.map(h=>s.find(C=>C.id===h)),[u,{isLoading:A}]=M.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:Fr().format("YYYY-MM-DD HH:mm:ss")},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),g=x.useCallback(()=>{u()},[u]);return f.jsx(M.Button,{label:"ra.notification.mark_as_readed",disabled:A||(a==null?void 0:a.readed)!==null,onClick:g,children:f.jsx(Zn.Email,{})})}function EY(){const e=M.useRefresh(),t=M.useNotify(),n=M.useResourceContext(),r=M.useUnselectAll(n),{selectedIds:o,data:s}=M.useListContext(),a=M.useRecordContext(),c=o.map(h=>s.find(C=>C.id===h)).concat([a]),[u,{isLoading:A}]=M.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),g=x.useCallback(()=>{u()},[u]);return f.jsx(M.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:A||a&&!(a!=null&&a.readed),onClick:g,children:f.jsx(Zn.Drafts,{})})}function IY(e){const t=M.useRecordContext(e),n=M.useResourceContext(e),r=M.useRedirect(),o=M.useNotify(),s=M.useTranslate(),[a]=M.useLocaleState(),c=x.useMemo(()=>t!=null&&t.readed?Fr(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=M.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Fr().format("YYYY-MM-DD HH:mm:ss")}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),A=x.useCallback(()=>u(),[u]);return f.jsxs("div",{onClick:A,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(b.Typography,{variant:"subtitle1",children:f.jsxs(b.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(b.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c&&f.jsx(b.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:s("ra.notification.readed",{readed:c})})]})}function mY({...e}){const t=b.useTheme(),{mode:n,colorize:r,density:o}=x.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?b.darken:b.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),s=a=>({backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)});return f.jsxs(M.Datagrid,{...e,rowSx:s,children:[f.jsx(IY,{source:"notification",sortable:!1}),f.jsx(RB,{source:"created"}),f.jsxs(ii,{children:[f.jsx(CY,{}),f.jsx(EY,{})]})]})}const BY=ue(M.SimpleList,{name:"ApplicaSimpleList",slot:"root"})(({theme:e})=>({padding:e.spacing(1),paddingTop:0,paddingBottom:0})),Fu={width:"1.5rem",alignSelf:"center"};function vY({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:s,component:a,leftIcon:c,rightIcon:u,button:A,buttonProps:g,...h}){const{getCurrentDialog:C}=si(),E=ce.useResourceContext(h),I=C(),B=ce.useRecordContext(),v=r||B,T=ct.get(v,e||"");return f.jsxs(b.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:D=>({pt:1,pb:1,borderBottom:`1px solid ${D.palette.divider}`,...o&&{mb:2},...s&&{mt:2}}),children:[f.jsxs(b.Stack,{direction:"row",alignItems:"start",children:[c&&(x.isValidElement(c)?x.cloneElement(c,{style:Fu}):x.createElement(c,{style:Fu})),f.jsx(ce.FieldTitle,{label:t,source:e,resource:I||E})]}),f.jsxs(b.Stack,{direction:"row",alignItems:"center",children:[a?x.isValidElement(a)?x.cloneElement(a,{record:v,resource:E,value:T}):x.createElement(a,{source:e,record:v,resource:E,value:T}):f.jsx(b.Typography,{variant:n,children:T}),u&&(x.isValidElement(u)?x.cloneElement(u,{style:Fu}):x.createElement(u,{style:Fu})),A&&f.jsx(b.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...g,children:A})]})]})}const nx=({children:e,...t})=>{const n=wt();return f.jsx(or,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...t,border:!1,boxShadow:!0,shadow:n.customShadows.z1,children:f.jsx(b.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};nx.propTypes={children:p.node};const ol=({version:e,name:t,copy:n,children:r,logo:o,background:s=jl})=>f.jsxs(b.Box,{sx:{minHeight:"100vh"},children:[x.isValidElement(s)?s:x.createElement(s),f.jsxs(b.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[f.jsx(b.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(Ap,{title:t})}),f.jsxs(b.Grid,{item:!0,xs:12,children:[f.jsx(b.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:f.jsx(b.Grid,{item:!0,children:f.jsx(nx,{children:r})})}),f.jsx(b.Grid,{item:!0,sx:{pb:1},children:f.jsx(vg,{name:t,copy:n,version:e})})]})]})]});ol.propTypes={children:p.node,version:p.string,name:p.string,copy:p.string,background:p.oneOfType([p.node,p.func,p.object])};const rx=({name:e,copy:t,logo:n,version:r,background:o})=>{const s=ce.useTranslate(),a=ce.useAuthProvider(),c=ce.useNotify(),u=Ct.useNavigate(),{token:A}=Ct.useParams();return x.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{c("ra.auth.activate_success",{type:"info"}),ne.delay(()=>u("/login"),1e3)}).catch(g=>{c(g,{type:"error"}),ne.delay(()=>u("/login"),1e3)})},[A]),f.jsx(ol,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(b.Grid,{container:!0,spacing:3,children:[f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(b.Typography,{variant:"h3",children:s("ra.auth.activate")}),f.jsx(b.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:s("ra.auth.back_to_login")})]})}),f.jsx(b.Grid,{item:!0,xs:12,children:s("ra.auth.activate_pending")})]})})};rx.propTypes={name:p.string.isRequired,version:p.string.isRequired,background:p.node};function ox({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:s=!1,redirectTo:a,background:c=f.jsx(jl,{})}){const[u,A]=ce.useSafeSetState(!1),g=ce.useLogin(),h=ce.useTranslate(),C=ce.useNotify(),E=ce.useCheckAuth(),I=Ct.useNavigate();x.useEffect(()=>{E({},!1).then(()=>{I("/")}).catch(()=>{})},[E,I]);const B=v=>{A(!0),g(v,a).then(()=>{A(!1)}).catch(T=>{A(!1),C(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.message,{type:"error",messageArgs:{_:typeof T=="string"?T:T&&T.message?T.message:void 0}})})};return f.jsx(ol,{name:t,version:e,copy:n,logo:r,background:c,children:f.jsxs(b.Grid,{container:!0,spacing:3,children:[f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(b.Typography,{variant:"h3",children:"Login"}),s&&f.jsx(b.Typography,{component:Ct.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:h("ra.auth.register")})]})}),f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(ce.Form,{onSubmit:B,children:[f.jsxs(b.Grid,{container:!0,children:[f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(yr,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:ce.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(yr,{source:"password",label:h("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ce.required(),placeholder:h("ra.auth.password_placeholder"),fullWidth:!0})})]}),o&&f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(b.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(b.Link,{variant:"h6",component:Ct.Link,to:"/recover",color:"text.primary",children:h("ra.auth.forgot_password")})})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(b.CircularProgress,{size:19,thickness:3}):h("ra.auth.sign_in")})})]})})]})})}const ix=({name:e,copy:t,logo:n,version:r,background:o})=>{const[s,a]=x.useState(!1),c=ce.useTranslate(),u=ce.useRedirect(),A=ce.useNotify(),g=ce.useAuthProvider(),h=({email:C})=>{a(!0),g.recover(C).then(E=>{const I=`ra.auth.recover_${E.responseCode}`,B=E.responseCode==="ok"?"info":"error";A(I,{type:B}),u("/login")}).catch(E=>{A((E==null?void 0:E.message)||(E==null?void 0:E.toString()),{type:"error"})}).finally(()=>a(!1))};return f.jsx(ol,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(b.Grid,{container:!0,spacing:3,children:[f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(b.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),f.jsx(b.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(M.Form,{onSubmit:h,children:[f.jsx(b.Grid,{container:!0,children:f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(yr,{source:"email",validate:[ce.required(),ce.email()]})})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(b.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?f.jsx(b.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})};ix.propTypes={name:p.string.isRequired,version:p.string.isRequired,background:p.node};const sx=({name:e,copy:t,version:n,logo:r,background:o})=>{const[s,a]=x.useState(!1),c=ce.useTranslate(),u=ce.useRedirect(),A=ce.useNotify(),g=ce.useAuthProvider(),h=C=>{a(!0),g.register(C).then(E=>{const I=`ra.auth.register_${E.responseCode}`,B=E.responseCode==="ok"?"info":"error";A(I,{type:B}),u("/login")}).catch(E=>{A(E,{type:"error"})}).finally(()=>a(!1))};return f.jsx(ol,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(b.Grid,{container:!0,spacing:3,children:[f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(b.Typography,{variant:"h3",children:c("ra.auth.register.title")}),f.jsx(b.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(M.Form,{onSubmit:h,children:[f.jsxs(b.Grid,{container:!0,children:[f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(yr,{source:"name",label:c("ra.register.name"),validate:ce.required()})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(yr,{source:"email",type:"email",validate:[ce.required(),ce.email()]})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(yr,{source:"password",type:"password",validate:ce.required()})})]}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?f.jsx(b.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})};sx.propTypes={name:p.string.isRequired,version:p.string.isRequired};function ax(){const e=x.useCallback(()=>location.reload(),[]);return f.jsx(b.Container,{children:f.jsxs(b.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{src:nb,style:{width:"100%",maxWidth:450}}),f.jsx(b.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(b.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(b.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}const yY=e=>({button:e.palette.mode==="dark"?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z1:e.palette.mode==="dark"?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${nt(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${nt(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${nt(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${nt(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${nt(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${nt(e.palette.info.main,.2)}`,success:`0 0 0 2px ${nt(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${nt(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${nt(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${nt(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${nt(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${nt(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${nt(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${nt(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${nt(e.palette.grey[500],.2)}`});function Ar(e,t){bY(e)&&(e="100%");var n=QY(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function bY(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function QY(e){return typeof e=="string"&&e.indexOf("%")!==-1}function xY(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Lu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hp(e){return e.length===1?"0"+e:String(e)}function wY(e,t,n){return{r:Ar(e,255)*255,g:Ar(t,255)*255,b:Ar(n,255)*255}}function Cp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function TY(e,t,n){var r,o,s;if(e=Ar(e,360),t=Ar(t,100),n=Ar(n,100),t===0)o=n,s=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=Cp(c,a,e+1/3),o=Cp(c,a,e),s=Cp(c,a,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function SY(e,t,n){e=Ar(e,255),t=Ar(t,255),n=Ar(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,a=r,c=r-o,u=r===0?0:c/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s,s:u,v:a}}function PY(e,t,n){e=Ar(e,360)*6,t=Ar(t,100),n=Ar(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),u=r%6,A=[n,a,s,s,c,n][u],g=[c,n,n,a,s,s][u],h=[s,s,c,n,n,a][u];return{r:A*255,g:g*255,b:h*255}}function OY(e,t,n,r){var o=[hp(Math.round(e).toString(16)),hp(Math.round(t).toString(16)),hp(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function lx(e){return Hn(e)/255}function Hn(e){return parseInt(e,16)}var cx={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function il(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,a=!1,c=!1;return typeof e=="string"&&(e=MY(e)),typeof e=="object"&&(co(e.r)&&co(e.g)&&co(e.b)?(t=wY(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):co(e.h)&&co(e.s)&&co(e.v)?(r=Lu(e.s),o=Lu(e.v),t=PY(e.h,r,o),a=!0,c="hsv"):co(e.h)&&co(e.s)&&co(e.l)&&(r=Lu(e.s),s=Lu(e.l),t=TY(e.h,r,s),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=xY(n),{ok:a,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var jY="[-\\+]?\\d+%?",DY="[-\\+]?\\d*\\.\\d+%?",Ho="(?:".concat(DY,")|(?:").concat(jY,")"),Ep="[\\s|\\(]+(".concat(Ho,")[,|\\s]+(").concat(Ho,")[,|\\s]+(").concat(Ho,")\\s*\\)?"),Ip="[\\s|\\(]+(".concat(Ho,")[,|\\s]+(").concat(Ho,")[,|\\s]+(").concat(Ho,")[,|\\s]+(").concat(Ho,")\\s*\\)?"),br={CSS_UNIT:new RegExp(Ho),rgb:new RegExp("rgb"+Ep),rgba:new RegExp("rgba"+Ip),hsl:new RegExp("hsl"+Ep),hsla:new RegExp("hsla"+Ip),hsv:new RegExp("hsv"+Ep),hsva:new RegExp("hsva"+Ip),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function MY(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(cx[e])e=cx[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=br.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e),n?{r:Hn(n[1]),g:Hn(n[2]),b:Hn(n[3]),a:lx(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e),n?{r:Hn(n[1]),g:Hn(n[2]),b:Hn(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e),n?{r:Hn(n[1]+n[1]),g:Hn(n[2]+n[2]),b:Hn(n[3]+n[3]),a:lx(n[4]+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e),n?{r:Hn(n[1]+n[1]),g:Hn(n[2]+n[2]),b:Hn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function co(e){return!!br.CSS_UNIT.exec(String(e))}var Nu=2,ux=.16,kY=.05,RY=.05,FY=.15,Ax=5,dx=4,LY=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function fx(e){var t=e.r,n=e.g,r=e.b,o=SY(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Vu(e){var t=e.r,n=e.g,r=e.b;return"#".concat(OY(t,n,r,!1))}function NY(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function gx(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Nu*t:Math.round(e.h)+Nu*t:r=n?Math.round(e.h)+Nu*t:Math.round(e.h)-Nu*t,r<0?r+=360:r>=360&&(r-=360),r}function px(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-ux*t:t===dx?r=e.s+ux:r=e.s+kY*t,r>1&&(r=1),n&&t===Ax&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function hx(e,t,n){var r;return n?r=e.v+RY*t:r=e.v-FY*t,r>1&&(r=1),Number(r.toFixed(2))}function Cx(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=il(e),o=Ax;o>0;o-=1){var s=fx(r),a=Vu(il({h:gx(s,o,!0),s:px(s,o,!0),v:hx(s,o,!0)}));n.push(a)}n.push(Vu(r));for(var c=1;c<=dx;c+=1){var u=fx(r),A=Vu(il({h:gx(u,c),s:px(u,c),v:hx(u,c)}));n.push(A)}return t.theme==="dark"?LY.map(function(g){var h=g.index,C=g.opacity,E=Vu(NY(il(t.backgroundColor||"#141414"),il(n[h]),C*100));return E}):n}var mp={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Zt={},zu={};Object.keys(mp).forEach(function(e){Zt[e]=Cx(mp[e]),Zt[e].primary=Zt[e][5],zu[e]=Cx(mp[e],{theme:"dark",backgroundColor:"#141414"}),zu[e].primary=zu[e][5]}),Zt.red,Zt.volcano,Zt.gold,Zt.orange,Zt.yellow,Zt.lime,Zt.green,Zt.cyan,Zt.blue,Zt.geekblue,Zt.purple,Zt.magenta,Zt.grey,Zt.grey;const Ex=e=>{const{blue:t,red:n,gold:r,cyan:o,green:s,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:s[0],light:s[3],main:s[5],dark:s[7],darker:s[9],contrastText:u},grey:c}};Ex.propTypes={colors:p.object};const VY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],A=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(s=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],A=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},zY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},HY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},WY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},UY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},YY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},GY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},KY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Ix=(e,t,n)=>{switch(t){case"theme1":return VY(e,n);case"theme2":return zY(e,n);case"theme3":return HY(e,n);case"theme4":return WY(e,n);case"theme5":return UY(e,n);case"theme6":return YY(e,n);case"theme7":return GY(e,n);case"theme8":return KY(e,n);default:return Ex(e)}};Ix.propTypes={colors:p.object,presetColor:p.any};const JY=(e,t)=>{const n=e==="dark"?zu:Zt;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#121212","#d3d8db"]),n.grey=[...r,...o,...s];const a=Ix(n,t,e);return bd({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?nt(a.grey[900],.87):a.grey[700],secondary:e==="dark"?nt(a.grey[900],.45):a.grey[500],disabled:e==="dark"?nt(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?nt(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})},XY=e=>({htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,h1:{fontWeight:600,fontSize:"2.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"1.875rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"capitalize"}});function ZY(e){return{MuiAccordion:{defaultProps:{disableGutters:!0,square:!0,elevation:0},styleOverrides:{root:{border:`1px solid ${e.palette.secondary.light}`,"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:e.palette.secondary.lighter}}}}}}function _Y(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function qY(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx(qe.RightOutlined,{style:{fontSize:"0.75rem"}})},styleOverrides:{root:{backgroundColor:t.secondary.lighter,flexDirection:"row-reverse",minHeight:46},expandIconWrapper:{"&.Mui-expanded":{transform:"rotate(90deg)"}},content:{marginTop:n(1.25),marginBottom:n(1.25),marginLeft:n(1)}}}}}function wi({color:e,theme:t}){const n=sn(t,e),{lighter:r,light:o,main:s}=n;return{borderColor:nt(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:s}}}function $Y(e){const t=wi({color:"primary",theme:e});return{MuiAlert:{styleOverrides:{root:{color:e.palette.text.primary,fontSize:"0.875rem"},icon:{fontSize:"1rem"},message:{padding:0,marginTop:3},filled:{color:e.palette.grey[0]},border:{padding:"10px 16px",border:"1px solid",...t,"&.MuiAlert-borderPrimary":wi({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":wi({color:"secondary",theme:e}),"&.MuiAlert-borderError":wi({color:"error",theme:e}),"&.MuiAlert-borderSuccess":wi({color:"success",theme:e}),"&.MuiAlert-borderInfo":wi({color:"info",theme:e}),"&.MuiAlert-borderWarning":wi({color:"warning",theme:e})},action:{"& .MuiButton-root":{padding:2,height:"auto",fontSize:"0.75rem",marginTop:-2},"& .MuiIconButton-root":{width:"auto",height:"auto",padding:2,marginRight:6,"& .MuiSvgIcon-root":{fontSize:"1rem"}}}}}}}function eG(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function tG(e){var t;return{MuiAutocomplete:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{padding:"3px 9px"}},popupIndicator:{width:"auto",height:"auto"},popper:{border:`1px solid ${e.palette.mode==="dark"?(t=e.palette.dark)==null?void 0:t.main:e.palette.grey[100]}`},clearIndicator:{width:"auto",height:"auto"}}}}}function Ti({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function nG(e){const t=Ti({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Ti({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Ti({color:"secondary",theme:e}),"&.MuiBadge-colorError":Ti({color:"error",theme:e}),"&.MuiBadge-colorInfo":Ti({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Ti({color:"success",theme:e}),"&.MuiBadge-colorWarning":Ti({color:"warning",theme:e})}}}}}function $e({variant:e,color:t,theme:n}){const r=sn(n,t),{lighter:o,main:s,dark:a,contrastText:c}=r,u=`${t}Button`,A=Is(n,u),g={"&::after":{boxShadow:`0 0 5px 5px ${nt(s,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${nt(s,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...g};case"shadow":return{color:c,backgroundColor:s,boxShadow:A,"&:hover":{boxShadow:"none",backgroundColor:a},...g};case"outlined":return{borderColor:s,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...g};case"dashed":return{color:s,borderColor:s,backgroundColor:o,"&:hover":{color:a,borderColor:a},...g};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...g}}}function rG(e){const t=$e({variant:"dashed",color:"primary",theme:e}),n=$e({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":$e({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":$e({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":$e({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":$e({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":$e({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":$e({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":$e({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":$e({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":$e({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":$e({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":$e({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":$e({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:$e({variant:"contained",color:"primary",theme:e}),containedSecondary:$e({variant:"contained",color:"secondary",theme:e}),containedError:$e({variant:"contained",color:"error",theme:e}),containedSuccess:$e({variant:"contained",color:"success",theme:e}),containedInfo:$e({variant:"contained",color:"info",theme:e}),containedWarning:$e({variant:"contained",color:"warning",theme:e}),outlinedPrimary:$e({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:$e({variant:"outlined",color:"secondary",theme:e}),outlinedError:$e({variant:"outlined",color:"error",theme:e}),outlinedSuccess:$e({variant:"outlined",color:"success",theme:e}),outlinedInfo:$e({variant:"outlined",color:"info",theme:e}),outlinedWarning:$e({variant:"outlined",color:"warning",theme:e}),textPrimary:$e({variant:"text",color:"primary",theme:e}),textSecondary:$e({variant:"text",color:"secondary",theme:e}),textError:$e({variant:"text",color:"error",theme:e}),textSuccess:$e({variant:"text",color:"success",theme:e}),textInfo:$e({variant:"text",color:"info",theme:e}),textWarning:$e({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function oG(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function iG(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function sG(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Fs({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o,dark:s}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function aG(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function Bp(e){const t=aG(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function lG(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(qe.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(qe.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...Bp("small")},"&.size-medium":{...Bp("medium")},"&.size-large":{...Bp("large")}},colorPrimary:Fs({color:"primary",theme:e}),colorSecondary:Fs({color:"secondary",theme:e}),colorSuccess:Fs({color:"success",theme:e}),colorWarning:Fs({color:"warning",theme:e}),colorInfo:Fs({color:"info",theme:e}),colorError:Fs({color:"error",theme:e})}}}}function Ls({color:e,theme:t}){const n=sn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Wn({color:e,theme:t}){const n=sn(t,e),{light:r,lighter:o,main:s}=n;return{color:s,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:s,"&:hover":{color:r}}}}function cG(e){const t=Wn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Ls({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Ls({color:"secondary",theme:e}),"&.MuiChip-colorError":Ls({color:"error",theme:e}),"&.MuiChip-colorInfo":Ls({color:"info",theme:e}),"&.MuiChip-colorSuccess":Ls({color:"success",theme:e}),"&.MuiChip-colorWarning":Ls({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Wn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Wn({color:"secondary",theme:e}),"&.MuiChip-lightError":Wn({color:"error",theme:e}),"&.MuiChip-lightInfo":Wn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Wn({color:"success",theme:e}),"&.MuiChip-lightWarning":Wn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Wn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Wn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Wn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Wn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Wn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Wn({color:"warning",theme:e})}}}}}function uG(e){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:nt("#000",.7)},"& .MuiCardContent-root":{[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}},"& .MuiPaper-root:has(.tabbed-form)":{overflowY:"unset",width:"100%"}}}}}}function AG(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function dG(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Ns({color:e,theme:t}){const n=sn(t,e),{main:r,dark:o,contrastText:s}=n,a=`${e}Button`,c=Is(t,a);return{color:s,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${nt(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${nt(r,.9)}`}}}function fG(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Ns({color:"primary",theme:e}),"&.MuiFab-secondary":Ns({color:"secondary",theme:e}),"&.Mui-error":Ns({color:"error",theme:e}),"&.MuiFab-success":Ns({color:"success",theme:e}),"&.MuiFab-info":Ns({color:"info",theme:e}),"&.MuiFab-warning":Ns({color:"warning",theme:e}),"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}}}}}}function gG(e){return{MuiIconButton:{styleOverrides:{root:{borderRadius:4},sizeLarge:{width:e.spacing(5.5),height:e.spacing(5.5),fontSize:"1.25rem"},sizeMedium:{width:e.spacing(4.5),height:e.spacing(4.5),fontSize:"1rem"},sizeSmall:{width:e.spacing(3.75),height:e.spacing(3.75),fontSize:"0.75rem"},sizeExtraSmall:{width:e.spacing(2.6875),height:e.spacing(2.6875),fontSize:"0.625rem"}}}}}function pG(){return{MuiInputBase:{styleOverrides:{}}}}function hG(e){return{MuiInputLabel:{styleOverrides:{root:{color:e.palette.grey[600]},outlined:{lineHeight:"0.8em","&.MuiInputLabel-sizeSmall":{lineHeight:"1em"},"&.MuiInputLabel-shrink":{background:e.palette.background.paper,padding:"0 8px",marginLeft:-6,lineHeight:"1.4375em"}}}}}}function CG(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function EG(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function IG(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function mG(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function BG(){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function vG(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function Si({variant:e,theme:t}){const n=sn(t,e),{light:r}=n,o=Is(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function yG(e){return{MuiOutlinedInput:{styleOverrides:{input:{padding:"10.5px 14px 10.5px 12px"},notchedOutline:{borderColor:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[300]},root:{...Si({variant:"primary",theme:e}),"&.Mui-error":{...Si({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:Si({variant:"secondary",theme:e}),colorError:Si({variant:"error",theme:e}),colorWarning:Si({variant:"warning",theme:e}),colorInfo:Si({variant:"info",theme:e}),colorSuccess:Si({variant:"success",theme:e})}}}}function bG(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function yt({variant:e,color:t,theme:n}){const r=sn(n,t),{lighter:o,light:s,dark:a,main:c,contrastText:u}=r,A={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:s},...A};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:s},...A};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...A}}}function QG(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":yt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":yt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":yt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":yt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":yt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":yt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":yt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":yt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":yt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":yt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":yt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":yt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":yt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":yt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":yt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":yt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":yt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":yt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":yt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":yt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":yt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":yt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":yt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":yt({variant:"outlined",color:"warning",theme:e})}}}}}}function xG(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Vs({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o,dark:s}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function wG(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function vp(e){const t=wG(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function TG(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(b.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...vp("small")},"&.size-medium":{...vp("medium")},"&.size-large":{...vp("large")}},colorPrimary:Vs({color:"primary",theme:e}),colorSecondary:Vs({color:"secondary",theme:e}),colorSuccess:Vs({color:"success",theme:e}),colorWarning:Vs({color:"warning",theme:e}),colorInfo:Vs({color:"info",theme:e}),colorError:Vs({color:"error",theme:e})}}}}function zs({color:e,theme:t}){const n=sn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function SG(e){return{MuiSlider:{styleOverrides:{track:{height:"1px"},thumb:{width:14,height:14,border:`2px solid ${e.palette.primary.main}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-thumbColorPrimary":zs({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":zs({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":zs({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":zs({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":zs({color:"info",theme:e}),"&.MuiSlider-thumbColorError":zs({color:"error",theme:e})},mark:{width:4,height:4,borderRadius:"50%",border:`1px solid ${e.palette.secondary.light}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-markActive":{opacity:1,borderColor:"inherit",borderWidth:2}},rail:{color:e.palette.secondary.light},root:{"&.Mui-disabled":{".MuiSlider-rail":{opacity:.25},".MuiSlider-track":{color:e.palette.secondary.lighter},".MuiSlider-thumb":{border:`2px solid ${e.palette.secondary.lighter}`}}},valueLabel:{backgroundColor:e.palette.grey[600],color:e.palette.grey[0]}}}}}function PG(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function yp(e,t){const n=PG(t);return{width:n.width,height:n.height,"& .MuiSwitch-switchBase":{padding:3,"&.Mui-checked":{transform:`translateX(${n.base}px)`}},"& .MuiSwitch-thumb":{width:n.thumb,height:n.thumb},"& .MuiSwitch-track":{borderRadius:n.trackRadius}}}function OG(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...yp(e,"medium")},sizeLarge:{...yp(e,"large")},sizeSmall:{...yp(e,"small")}}}}}function jG(e){return{MuiTab:{styleOverrides:{root:{minHeight:46,color:e.palette.text.primary,borderRadius:4,"&:hover":{backgroundColor:e.palette.primary.lighter+60,color:e.palette.primary.main},"&:focus-visible":{borderRadius:4,outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:-3}}}}}}function DG(e){const t={"&:hover":{backgroundColor:e.palette.secondary.lighter}};return{MuiTableBody:{styleOverrides:{root:{"&.striped .MuiTableRow-root":{"&:nth-of-type(even)":{backgroundColor:e.palette.grey[50]},...t},"& .MuiTableRow-root":{...t}}}}}}function MG(e){const t={"&:not(:last-of-type)":{position:"relative","&:after":{position:"absolute",content:'""',backgroundColor:e.palette.divider,width:1,height:"calc(100% - 30px)",right:0,top:16}}};return{MuiTableCell:{styleOverrides:{root:{fontSize:"0.875rem",padding:12,borderColor:e.palette.divider},sizeSmall:{padding:8},head:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",...t},footer:{fontSize:"0.75rem",textTransform:"uppercase",...t}}}}}function kG(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function RG(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function FG(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function LG(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function NG(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function VG(e){return{MuiToggleButton:{styleOverrides:{root:{"&.Mui-disabled":{borderColor:e.palette.divider,color:e.palette.text.disabled},"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}}}}}}function zG(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function HG(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function WG(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function UG(e){return ct.merge(ZY(e),_Y(e),qY(e),$Y(e),eG(),tG(e),nG(e),rG(e),oG(),iG(),sG(),lG(e),cG(e),uG(e),AG(e),dG(),fG(e),gG(e),pG(),hG(e),CG(),EG(),IG(e),mG(e),BG(),vG(),yG(e),bG(),QG(e),xG(e),TG(e),SG(e),OG(e),jG(e),DG(e),MG(e),kG(e),RG(e),FG(),LG(),NG(),VG(e),zG(e),HG(),WG())}const Hu=({themeOverrides:e,children:t})=>{const n=bn(),{themeDirection:r,mode:o,presetColor:s,fontFamily:a}=n,c=x.useMemo(()=>JY(o,s),[o,s]),u=x.useMemo(()=>XY(a),[a]),A=x.useMemo(()=>yY(c),[c]),g=x.useMemo(()=>ne.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:c.palette,customShadows:A,typography:u,shadows:c.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:c.spacing(2.6875),height:c.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(c):e),[r,c,u,A,e]),h=bd(g),C=ne.cloneDeep(h.components??{});return h.components=ne.merge(UG(h),C),f.jsx(b.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(TE,{theme:h,children:[f.jsx(b.CssBaseline,{enableColorScheme:!0}),t]})})};Hu.propTypes={children:p.node,themeOverrides:p.oneOfType([p.object,p.func])};function YG({children:e,theme:t,...n}){return f.jsx(M.CoreAdminContext,{...n,children:f.jsx(Hu,{themeOverrides:t,children:f.jsx(dp,{children:e})})})}function mx(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:s,disableTelemetry:a,history:c,i18nProvider:u,layout:A,loading:g,loginPage:h,authCallbackPage:C,menu:E,notification:I,queryClient:B,requireAuth:v,store:T=M.localStorageStore(),ready:D,theme:Q,title:O="React Admin"}=e;return f.jsx(YG,{authProvider:t,dataProvider:s,i18nProvider:u,store:T,history:c,queryClient:B,theme:Q,children:f.jsx(M.AdminUI,{layout:A,dashboard:o,disableTelemetry:a,menu:E,catchAll:n,title:O,loading:g,loginPage:h,authCallbackPage:C,notification:I,requireAuth:v,ready:D,children:r})})}class GG{constructor(t){Bo(this,sl,void 0);Bo(this,al,void 0);Bo(this,Hs,new Set);const{apiUrl:n}=t??{};if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");ei(this,al,n),ei(this,sl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:s}=t,a=`${n}${r}${o}${s}`;Mn(this,Hs).has(a)||(Mn(this,Hs).add(a),fetch(`${Mn(this,al)}/ui/error-log`,{method:"PUT",headers:Mn(this,sl),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(u=>{console.warn("Unable to send error to server",u),Mn(this,Hs).delete(a)}))}}sl=new WeakMap,al=new WeakMap,Hs=new WeakMap;class Bx{constructor({catch:t,display:n,log:r,error:o}){Sl(this,"catch");Sl(this,"display");Sl(this,"log");Sl(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const KG=({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=s=>new Bx({catch:s!=null,display:!1,log:s!=null,error:s}),...o})=>{const s=N.useMemo(()=>o.errorHandler?o.errorHandler:new GG({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=N.useCallback(function(u,...A){var h;if(!u)return!1;const g=r(u instanceof ErrorEvent?u:(h=u==null?void 0:u.toString())==null?void 0:h.replace(/%s/g,()=>A.shift()));if(g.isCatched())return!1;g.logError()&&(u instanceof ErrorEvent?s.handle(u):s.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),g.displayError()&&a.apply(console,arguments)},[t,n,r,e,s]);return N.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c]),!0};class JG{constructor(t){Bo(this,ll,void 0);Bo(this,cl,void 0);Bo(this,Oi,[]);const{apiUrl:n}=t??{};if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");ei(this,cl,n),ei(this,ll,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!ne.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!ne.isString(r)||ne.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!ne.some(Mn(this,Oi),o=>ne.isEqual(o,{code:n,lang:r}))){Mn(this,Oi).push({code:n,lang:r}),fetch(`${Mn(this,cl)}/i18n/message`,{method:"put",headers:Mn(this,ll),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),ei(this,Oi,ne.reject(Mn(this,Oi),s=>ne.isEqual(s,{code:n,lang:r})))});return}}}ll=new WeakMap,cl=new WeakMap,Oi=new WeakMap;function vx(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,s=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new JG({apiUrl:t}),u=()=>fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(h=>h.json()).catch(()=>Promise.resolve(s)),A=()=>fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(h=>h.json()).then(h=>h.reduce((C,E)=>({...C,[E.lang]:{...C[E.lang]||{},[E.code]:E.text}}),{})),g=(h,C,E)=>(r||console.error(`Warning: Missing translation for key: "${h}"`),o&&(ne.isString(h)?h.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${h}`):c.handleMessage({code:h,lang:E}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),h);return Promise.all([u(),A()]).then(h=>{const[C,E]=h;function I(B){return ne.get(E,B,{})}return Z1(I,n,C,{allowMissing:r||o,onMissingKey:g})})}window.React=x;const XG=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,o]=x.useState({loading:!0,languages:null});return x.useEffect(()=>{let s=new Headers;s.append("Accept","application/json"),s.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:s}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r};function yx(e){const[t,n]=x.useState(),r=pI(e);return x.useEffect(()=>{vx(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r]),t}const ZG=new Yi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function _G({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:s,logoIcon:a,loginPage:c=f.jsx(ox,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(jl,{})}),menu:u,name:A,copy:g,version:h="0.0.0",dataProvider:C,authProvider:E,errorHandler:I,error:B,enableNotification:v=!1,enableRegistration:T=!1,enablePasswordRecover:D=!1,enableThemeToggler:Q=!1,queryClient:O=ZG,background:S,notificationAPI:k="entities/notification",...R}){KG({apiUrl:n,errorHandler:I,catcherFn:W=>{const re=W==null?void 0:W.toString(),X=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(z=>re==null?void 0:re.includes(z));return new Bx({catch:X,display:!X,log:!X,error:re})}});const K=x.useMemo(()=>x.isValidElement(c)?x.cloneElement(c,{name:A,copy:g,logo:s,version:h,background:S,enableRegistration:T,enablePasswordRecover:D}):c,[c,A,h,g,S,s,T,D]),_=x.useMemo(()=>W=>{const re=A?f.jsx(Ap,{title:A}):s,ie=A?f.jsx(fp,{title:A}):a;return f.jsx(FQ,{...W,name:A,copy:g,enableThemeToggler:Q,version:h,logoMain:re,logoIcon:ie,notification:k,enableNotification:v,error:B})},[s,a,A,h,B,k,v]),ee=yx({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o});return ee===void 0?f.jsx(f.Fragment,{}):ee.error?f.jsx(dc,{initialConfig:t,children:f.jsx(Hu,{themeOverrides:e,children:f.jsx(ax,{})})}):f.jsx(Dd,{children:f.jsx(kE,{menu:u,children:f.jsx(dc,{initialConfig:t,children:f.jsx(mx,{theme:e,layout:_,notification:GQ,queryClient:O,dataProvider:C,authProvider:E,i18nProvider:ee,loginPage:K,...R})})})})}Object.defineProperty(j,"ArrayInputContext",{enumerable:!0,get:()=>M.ArrayInputContext}),Object.defineProperty(j,"BooleanField",{enumerable:!0,get:()=>M.BooleanField}),Object.defineProperty(j,"BulkDeleteWithConfirmButton",{enumerable:!0,get:()=>M.BulkDeleteWithConfirmButton}),Object.defineProperty(j,"Button",{enumerable:!0,get:()=>M.Button}),Object.defineProperty(j,"ChipField",{enumerable:!0,get:()=>M.ChipField}),Object.defineProperty(j,"Confirm",{enumerable:!0,get:()=>M.Confirm}),Object.defineProperty(j,"CreateButton",{enumerable:!0,get:()=>M.CreateButton}),Object.defineProperty(j,"CreateContextProvider",{enumerable:!0,get:()=>M.CreateContextProvider}),Object.defineProperty(j,"CustomRoutes",{enumerable:!0,get:()=>M.CustomRoutes}),Object.defineProperty(j,"DeleteWithConfirmButton",{enumerable:!0,get:()=>M.DeleteWithConfirmButton}),Object.defineProperty(j,"DeleteWithUndoButton",{enumerable:!0,get:()=>M.DeleteWithUndoButton}),Object.defineProperty(j,"EditButton",{enumerable:!0,get:()=>M.EditButton}),Object.defineProperty(j,"EditContextProvider",{enumerable:!0,get:()=>M.EditContextProvider}),Object.defineProperty(j,"FieldTitle",{enumerable:!0,get:()=>M.FieldTitle}),Object.defineProperty(j,"FilterButton",{enumerable:!0,get:()=>M.FilterButton}),Object.defineProperty(j,"Form",{enumerable:!0,get:()=>M.Form}),Object.defineProperty(j,"FormDataConsumer",{enumerable:!0,get:()=>M.FormDataConsumer}),Object.defineProperty(j,"HttpError",{enumerable:!0,get:()=>M.HttpError}),Object.defineProperty(j,"I18nContextProvider",{enumerable:!0,get:()=>M.I18nContextProvider}),Object.defineProperty(j,"ListToolbar",{enumerable:!0,get:()=>M.ListToolbar}),Object.defineProperty(j,"LoadingIndicator",{enumerable:!0,get:()=>M.LoadingIndicator}),Object.defineProperty(j,"Pagination",{enumerable:!0,get:()=>M.Pagination}),Object.defineProperty(j,"RaSimpleFormIterator",{enumerable:!0,get:()=>M.SimpleFormIterator}),Object.defineProperty(j,"RecordContextProvider",{enumerable:!0,get:()=>M.RecordContextProvider}),Object.defineProperty(j,"ReferenceArrayField",{enumerable:!0,get:()=>M.ReferenceArrayField}),Object.defineProperty(j,"ReferenceField",{enumerable:!0,get:()=>M.ReferenceField}),Object.defineProperty(j,"Resource",{enumerable:!0,get:()=>M.Resource}),Object.defineProperty(j,"ResourceContextProvider",{enumerable:!0,get:()=>M.ResourceContextProvider}),Object.defineProperty(j,"SaveButton",{enumerable:!0,get:()=>M.SaveButton}),Object.defineProperty(j,"SimpleFormIteratorContext",{enumerable:!0,get:()=>M.SimpleFormIteratorContext}),Object.defineProperty(j,"SimpleShowLayout",{enumerable:!0,get:()=>M.SimpleShowLayout}),Object.defineProperty(j,"SingleFieldList",{enumerable:!0,get:()=>M.SingleFieldList}),Object.defineProperty(j,"TabbedFormTabs",{enumerable:!0,get:()=>M.TabbedFormTabs}),Object.defineProperty(j,"TopToolbar",{enumerable:!0,get:()=>M.TopToolbar}),Object.defineProperty(j,"UrlField",{enumerable:!0,get:()=>M.UrlField}),Object.defineProperty(j,"choices",{enumerable:!0,get:()=>M.choices}),Object.defineProperty(j,"email",{enumerable:!0,get:()=>M.email}),Object.defineProperty(j,"maxLength",{enumerable:!0,get:()=>M.maxLength}),Object.defineProperty(j,"maxValue",{enumerable:!0,get:()=>M.maxValue}),Object.defineProperty(j,"minLength",{enumerable:!0,get:()=>M.minLength}),Object.defineProperty(j,"minValue",{enumerable:!0,get:()=>M.minValue}),Object.defineProperty(j,"number",{enumerable:!0,get:()=>M.number}),Object.defineProperty(j,"regex",{enumerable:!0,get:()=>M.regex}),Object.defineProperty(j,"required",{enumerable:!0,get:()=>M.required}),Object.defineProperty(j,"useArrayInput",{enumerable:!0,get:()=>M.useArrayInput}),Object.defineProperty(j,"useAuthProvider",{enumerable:!0,get:()=>M.useAuthProvider}),Object.defineProperty(j,"useChoices",{enumerable:!0,get:()=>M.useChoices}),Object.defineProperty(j,"useChoicesContext",{enumerable:!0,get:()=>M.useChoicesContext}),Object.defineProperty(j,"useCreateContext",{enumerable:!0,get:()=>M.useCreateContext}),Object.defineProperty(j,"useCreateController",{enumerable:!0,get:()=>M.useCreateController}),Object.defineProperty(j,"useDataProvider",{enumerable:!0,get:()=>M.useDataProvider}),Object.defineProperty(j,"useEditContext",{enumerable:!0,get:()=>M.useEditContext}),Object.defineProperty(j,"useEditController",{enumerable:!0,get:()=>M.useEditController}),Object.defineProperty(j,"useGetIdentity",{enumerable:!0,get:()=>M.useGetIdentity}),Object.defineProperty(j,"useGetList",{enumerable:!0,get:()=>M.useGetList}),Object.defineProperty(j,"useGetMany",{enumerable:!0,get:()=>M.useGetMany}),Object.defineProperty(j,"useGetManyReference",{enumerable:!0,get:()=>M.useGetManyReference}),Object.defineProperty(j,"useGetOne",{enumerable:!0,get:()=>M.useGetOne}),Object.defineProperty(j,"useInput",{enumerable:!0,get:()=>M.useInput}),Object.defineProperty(j,"useListContext",{enumerable:!0,get:()=>M.useListContext}),Object.defineProperty(j,"useListController",{enumerable:!0,get:()=>M.useListController}),Object.defineProperty(j,"useLocaleState",{enumerable:!0,get:()=>M.useLocaleState}),Object.defineProperty(j,"useNotify",{enumerable:!0,get:()=>M.useNotify}),Object.defineProperty(j,"usePermissions",{enumerable:!0,get:()=>M.usePermissions}),Object.defineProperty(j,"useRecordContext",{enumerable:!0,get:()=>M.useRecordContext}),Object.defineProperty(j,"useRefresh",{enumerable:!0,get:()=>M.useRefresh}),Object.defineProperty(j,"useResourceContext",{enumerable:!0,get:()=>M.useResourceContext}),Object.defineProperty(j,"useResourceDefinition",{enumerable:!0,get:()=>M.useResourceDefinition}),Object.defineProperty(j,"useResourceDefinitions",{enumerable:!0,get:()=>M.useResourceDefinitions}),Object.defineProperty(j,"useShowContext",{enumerable:!0,get:()=>M.useShowContext}),Object.defineProperty(j,"useShowController",{enumerable:!0,get:()=>M.useShowController}),Object.defineProperty(j,"useSimpleFormIterator",{enumerable:!0,get:()=>M.useSimpleFormIterator}),Object.defineProperty(j,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>M.useSimpleFormIteratorItem}),Object.defineProperty(j,"useTranslate",{enumerable:!0,get:()=>M.useTranslate}),Object.defineProperty(j,"useTranslateLabel",{enumerable:!0,get:()=>M.useTranslateLabel}),Object.defineProperty(j,"useUnselect",{enumerable:!0,get:()=>M.useUnselect}),Object.defineProperty(j,"useUnselectAll",{enumerable:!0,get:()=>M.useUnselectAll}),Object.defineProperty(j,"useUpdateMany",{enumerable:!0,get:()=>M.useUpdateMany}),Object.defineProperty(j,"withLifecycleCallbacks",{enumerable:!0,get:()=>M.withLifecycleCallbacks}),j.ActionsField=c5,j.ActionsMenu=ii,j.ActivatePage=rx,j.Admin=mx,j.AnimateButton=U0,j.AppBarStyled=hI,j.AppConfigContext=jd,j.AppConfigProvider=Dd,j.ApplicaAdmin=_G,j.ArrayInput=l5,j.AttachmentField=jB,j.AttachmentInput=D5,j.AuthBackground=jl,j.AutocompleteArrayInput=k5,j.AutocompleteInput=F5,j.Avatar=ka,j.BooleanInput=N5,j.Breadcrumbs=dB,j.BulkActionsToolbar=ZQ,j.BulkActionsToolbarClasses=ur,j.BulkFloatingActionsToolbar=_U,j.CardForm=TB,j.ChangePasswordForm=ug,j.CircularWithLabel=bB,j.CircularWithPath=QB,j.CoverField=MB,j.Create=pF,j.CreateInDialogButton=KU,j.Datagrid=rY,j.DateAgoField=RB,j.DateField=E5,j.DateInput=z5,j.DateTimeInput=W5,j.Dot=Kc,j.Drawer=PQ,j.DrawerHeader=db,j.DrawerHeaderStyled=Ab,j.DrawerToggle=Fv,j.Edit=CF,j.EditInDialogButton=XU,j.EmailField=m5,j.Empty=iY,j.EmptyClasses=xi,j.FileField=FB,j.FileInput=Y5,j.Footer=vg,j.FormHeader=mF,j.FunctionField=v5,j.GenericErrorPage=ax,j.Header=Lv,j.HeaderButton=ej,j.HeaderIconButton=n5,j.HeaderNotification=Nv,j.HeaderProfile=Vv,j.HeaderSpacer=Hv,j.HeaderToggleButton=Bs,j.HorizontalBar=OQ,j.IconButton=ms,j.ImageField=DB,j.ImageInput=G5,j.ImpersonateUserButton=VU,j.LabeledArrayInput=PB,j.LabeledInput=gn,j.Layout=FQ,j.LayoutContent=rb,j.LayoutProvider=Mv,j.LayoutWrapper=ob,j.LinearWithIcon=xB,j.LinearWithLabel=wB,j.List=hY,j.ListItem=vY,j.Loadable=bU,j.Loader=YQ,j.LoadingButton=cg,j.LocalStorage=cI,j.LocalizedTextField=b5,j.LocalizedTextInput=X5,j.LoginPage=ox,j.Logo=qg,j.LongForm=Mt,j.MainCard=or,j.MainIcon=Ap,j.MenuConfigContext=kd,j.MenuConfigProvider=kE,j.MenuPopover=Pd,j.NavGroup=MQ,j.NavMenu=jQ,j.Navigation=kQ,j.Notification=GQ,j.NotificationList=mY,j.NumberInput=_5,j.OnboardingModes=tl,j.OnboardingProvider=MU,j.OnboardingTip=NU,j.RawTableFormIterator=jv,j.ReadonlyField=T5,j.RecordInput=q5,j.RecoverPage=ix,j.ReferenceArrayInput=$5,j.ReferenceInput=eF,j.ReferenceManyField=NB,j.ReferenceManyInput=tF,j.RegisterPage=sx,j.ResponsiveSection=zv,j.ScrollTop=dp,j.ScrollX=xU,j.SearchInput=rF,j.SelectArrayInput=iF,j.SelectInput=aF,j.Show=RF,j.SimpleBar=lp,j.SimpleForm=SB,j.SimpleFormIterator=LF,j.SimpleList=BY,j.SizeField=P5,j.SmallIcon=fp,j.SmartTextInput=lF,j.TabbedForm=hg,j.TableFormIterator=g9,j.TableFormIteratorContext=Rd,j.TableFormIteratorItem=pv,j.TableFormIteratorItemContext=Fd,j.TextField=LB,j.TextInput=yr,j.ThemeConfigContext=Md,j.ThemeConfigProvider=dc,j.ThemeProvider=Hu,j.ThemeToggler=RQ,j.TimeInput=dF,j.Toolbar=mi,j.Tooltip=Zc,j.Transitions=Do,j.createI18nProvider=vx,j.getLocalizedValue=tf,j.localizedValueHasAllLocales=ef,j.parseTime=fI,j.useAppConfig=si,j.useBreadcrumbs=VE,j.useGetLocalizedValue=q4,j.useI18nLanguages=XG,j.useI18nProvider=yx,j.useLayoutContext=Bg,j.useLayoutDispatch=C9,j.useLayoutDrawerState=Bi,j.useLayoutLogoState=Rv,j.useLayoutMediaState=Ln,j.useLayoutNotificationsState=au,j.useLayoutState=Qs,j.useLayoutThemeState=E9,j.useLocalStorage=qd,j.useLocalizedValue=_4,j.useMemoizedObject=pI,j.useMenu=Nd,j.useMenuConfig=ai,j.usePopoverState=mc,j.useRefDimensions=$4,j.useResourceDefaultValues=gF,j.useResourceTitle=$d,j.useRestartOnboarding=FU,j.useSx=Br,j.useTableFormIterator=uI,j.useTableFormIteratorItem=X4,j.useThemeConfig=bn,j.uuid=Z4,j.withLayoutProvider=kv,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
272
+ `),pU)),UQ=N.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:c,variant:u="indeterminate"}=r,A=Fe(r,fU),g=H({},r,{color:s,variant:u}),h=CU(g),C=Id(),E={},I={bar1:{},bar2:{}};if(u==="determinate"||u==="buffer")if(a!==void 0){E["aria-valuenow"]=Math.round(a),E["aria-valuemin"]=0,E["aria-valuemax"]=100;let B=a-100;C&&(B=-B),I.bar1.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(u==="buffer")if(c!==void 0){let B=(c||0)-100;C&&(B=-B),I.bar2.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return f.jsxs(EU,H({className:We(h.root,o),ownerState:g,role:"progressbar"},E,{ref:n},A,{children:[u==="buffer"?f.jsx(IU,{className:h.dashed,ownerState:g}):null,f.jsx(mU,{className:h.bar1,ownerState:g,style:I.bar1}),u==="determinate"?null:f.jsx(BU,{className:h.bar2,ownerState:g,style:I.bar2})]}))});process.env.NODE_ENV!=="production"&&(UQ.propTypes={classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","primary","secondary"]),p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),value:p.number,valueBuffer:p.number,variant:p.oneOf(["buffer","determinate","indeterminate","query"])});const vU=UQ,yU=ue("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),YQ=()=>f.jsx(yU,{children:f.jsx(vU,{color:"primary"})}),bU=e=>t=>f.jsx(x.Suspense,{fallback:f.jsx(YQ,{}),children:f.jsx(e,{...t})}),Ap=({title:e})=>f.jsxs(b.Stack,{direction:"row",children:[f.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]}),QU=ue(M.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}}));function GQ(e){return f.jsx(QU,{...e})}const dp=({children:e})=>{const t=Ct.useLocation(),{pathname:n}=t;return x.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};dp.propTypes={children:p.node};const xU=ue("div")({width:"100%",overflowX:"auto",display:"block"}),fp=({title:e})=>f.jsx(b.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});fp.propTypes={title:p.string.isRequired};var tl=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(tl||{});const wU=eo().required(),TU=eo().oneOf(Object.values(tl));function SU(e){var T;const t=Yi.useQueryClient(),[n,r]=x.useState(!1),[o,s]=x.useState(()=>()=>Promise.resolve()),a=ce.useGetIdentity(),c=(T=a==null?void 0:a.data)==null?void 0:T.email,u=ce.useDataProvider(),A=x.useCallback(()=>c?u.get("onboarding").then(D=>{var Q;return(Q=D==null?void 0:D.data)==null?void 0:Q.value}):Promise.reject(),[u,c]),{data:g,isLoading:h,isError:C}=Yi.useQuery({queryKey:["GET","onboarding",c],queryFn:A,staleTime:24*60*60*1e3,retry:c!==void 0}),[E,I]=x.useState(()=>()=>Promise.resolve()),B=Yi.useMutation({mutationFn:E}),v=B.mutateAsync;return x.useEffect(()=>{function D(){const Q=ne.chain(g??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",Q).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}I(()=>D)},[u,g,e,t,c]),x.useEffect(()=>{r(ne.isNil((g??{})[e]))},[g,e,r]),x.useEffect(()=>{s(()=>()=>v())},[v]),{loading:h,error:C,onboardingRequired:n,acknowledgeOnboarding:o}}function PU(e){const[t,n]=qd("onboarding",{}),[r,o]=x.useState(!1),[s,a]=x.useState(()=>()=>Promise.resolve());return x.useEffect(()=>{o(ne.isNil((t??{})[e]))},[t,e,o]),x.useEffect(()=>{a(()=>()=>(n(c=>ne.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:s}}function OU(){return{onboardingRequired:!1,acknowledgeOnboarding:x.useRef(()=>Promise.resolve()).current}}function jU(e,t){_d({mode:TU,topic:wU}).validateSync({mode:e,topic:t});const n=SU(t),r=PU(t),o=OU();switch(e){case tl.USER:return n.loading?o:n.error?r:ne.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case tl.BROWSER:return r;default:return o}}var nl=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(nl||{});function DU(e,t){var o;const n=ne.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:s}=t;return ne.extend(n,{show:s})}case"REGISTER_TIP":{const{payload:s}=t,{id:a}=s,c=ne.chain(n.tips).clone().reject(g=>g.id===a).value(),u=ne.find(n.tips,{id:a}),A=ne.chain(u??{}).clone().extend(s).value();return c.push(A),ne.extend(n,{tips:ne.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:s}=t,a=ne.isString(s)?s:s.id,c=ne.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return ne.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:s}=t,a=ne.isString(s)?s:s.id,c=ne.chain(n.tips).reject(C=>C.id===a).value(),u=ne.find(n.tips,{id:a});if(ne.isNil(u))return n;const A=ne.chain(u).clone().extend({dismissed:!0}).value();c.push(A);const g=((o=ne.chain(c).reject(C=>C.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(A==null?void 0:A.completeOnboarding)&&ne.chain(c).reject(C=>C.step<g).reject(C=>C.dismissed??!1).isEmpty().value()&&e.onComplete(),ne.extend(n,{tips:ne.sortBy(c,["step"]),currentStep:g})}case"SET_ON_COMPLETE":{const{payload:s}=t;return ne.extend(n,{onComplete:s})}case"RESTART":{const s=ne.chain(n.tips).clone().map(a=>ne.omit(a,"dismissed")).value();return ne.extend(n,{tips:s,currentStep:0})}default:return n}}const KQ=x.createContext(void 0);function MU(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=jU(t,n),[s,a]=x.useReducer(DU,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=x.useMemo(()=>({state:s,dispatch:a}),[s,a]);return x.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),x.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),f.jsx(KQ.Provider,{value:c,children:e.children})}function JQ(){const e=x.useContext(KQ);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function kU(){return JQ().state}function XQ(){return JQ().dispatch}function RU(e){_d({id:eo().required(),step:nI().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:s,currentStep:a}=kU(),c=ne.find(s,{id:t}),{dismissed:u}=c??{},A=XQ(),g=x.useCallback(()=>{A({type:nl.DISMISS_TIP,payload:t})},[A,t]);return x.useEffect(()=>{(ne.isNil(c)||n!==(c==null?void 0:c.step))&&A({type:nl.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c]),x.useEffect(()=>()=>{A({type:nl.UNREGISTER_TIP,payload:t})},[t,A]),{tip:ne.chain(c??e).clone().extend({open:o&&!ne.isNil(c)&&a===n&&!u}).value(),dismiss:g}}function FU(){const e=XQ();return x.useCallback(()=>{e({type:nl.RESTART})},[e])}function LU(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:s,dismiss:a}=RU({id:t,step:n,completeOnboarding:o}),{open:c}=s,u=ne.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(Zc,{...u,arrow:!0,open:c,title:f.jsxs(b.Stack,{gap:1,children:[f.jsx(b.Typography,{children:r}),f.jsx(b.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const NU=b.styled(LU)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${b.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${b.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${b.tooltipClasses.arrow}`]:{color:r.main}}});function VU({label:e="ra.auth.sign_in",...t}){const n=M.useRecordContext(),[r,o]=x.useState(!1),s=M.useAuthProvider(),a=x.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),s.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[s,n==null?void 0:n.id]);return f.jsx(M.Button,{disabled:r||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:f.jsx(Zn.VpnKey,{})})}const gp=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},zU=(e,t)=>e&&e.data?{data:gp(e.data,t),total:e.total+1}:e,HU=(e,t)=>e&&e.length>0?gp(e,t):e,WU=(e,t)=>e&&e.data?{...e,data:gp(e.data,t),total:e.total+1}:e,UU=({onClose:e,record:t,children:n,redirect:r=!1,onSubmit:o,onSuccess:s,onError:a,...c})=>{const u=Yi.useQueryClient(),A=M.useResourceContext(),g=M.useRedirect(),h=M.useNotify(),C=x.useCallback((v,T,D)=>{var S;const O=Date.now();u.setQueryData([A,"getOne",{id:v.id}],v),u.setQueriesData([A,"getList"],k=>WU(k,v),{updatedAt:O}),u.setQueriesData([A,"getMany"],k=>HU(k,v),{updatedAt:O}),u.setQueriesData([A,"getManyReference"],k=>zU(k,v),{updatedAt:O}),e(),h("ra.notification.created"),r!==void 0&&g(r,A,v.id,v),s&&s(v,e),(S=c==null?void 0:c.mutationOptions)!=null&&S.onSuccess&&c.mutationOptions.onSuccess(v,T,{...D,onClose:e})},[e,s,u,A,h,g,r]),{save:E,...I}=M.useCreateController({...c,mutationOptions:{...c==null?void 0:c.mutationOptions,onSuccess:C,onError:a}}),B=x.useCallback(v=>{o?o(v,e):E&&E(v)},[o,E,e]);return f.jsx(M.CreateContextProvider,{value:{record:t,save:B,saving:I==null?void 0:I.saving,redirect:r},children:x.cloneElement(n,{...n.props,modal:!0,toolbar:f.jsxs(mi,{children:[f.jsx(M.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:I==null?void 0:I.saving}),f.jsx(M.SaveButton,{type:"button",disabled:I==null?void 0:I.saving})]})})})},YU={true:{_scrollToTop:!0},false:{}},GU=ue(b.Fab,{overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${M.CreateButtonClasses.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}}));function KU({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.create",record:r,redirect:o,scrollToTop:s=!0,className:a,sx:c,style:u,fab:A=!0,onSubmit:g,onSuccess:h,onError:C,...E}){const[I,B]=x.useState(!1),v=M.useTranslate(),T=M.useResourceContext(),{openDialog:D,closeDialog:Q}=si(),O=x.useCallback(()=>D(T,()=>B(!0)),[D,T]),S=x.useCallback(()=>Q(T,()=>B(!1)),[Q,T]),k=A&&b.useMediaQuery(R=>R.breakpoints.down("md"));return f.jsxs(f.Fragment,{children:[k?f.jsx(GU,{state:YU[String(s)],color:"primary",className:We(M.CreateButtonClasses.floating,a),"aria-label":n&&v(n),onClick:O,children:f.jsx(Qg,{})}):f.jsx(M.Button,{sx:c,label:n,onClick:O,style:u,children:f.jsx(Qg,{})}),f.jsx(b.Dialog,{open:I,scroll:"body",onClose:S,fullWidth:e,maxWidth:t,children:f.jsx(UU,{...E,redirect:o,record:r,onClose:S,onSubmit:g,onSuccess:h,onError:C})})]})}const JU=({onClose:e,children:t,mutationMode:n="pessimistic",...r})=>{const o=M.useNotify(),s=M.useRecordContext(),a=M.useResourceContext(),{id:c}=s,{isLoading:u,data:A}=M.useGetOne(a,{id:c}),g=x.useCallback((...E)=>{o("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e(),r.onSuccess&&r.onSuccess(...E)},[e,o]),{save:h,saving:C}=M.useEditController({...r,resource:a,id:c,mutationMode:n,mutationOptions:{...r==null?void 0:r.mutationOptions,onSuccess:g}});return f.jsx(M.EditContextProvider,{value:{record:A,isLoading:u,save:h,saving:C},children:x.cloneElement(t,{...t.props,modal:!0,toolbar:f.jsxs(mi,{children:[f.jsx(M.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),f.jsx(M.SaveButton,{type:"button"})]})})})};function XU({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.edit",style:r,children:o,...s}){const[a,c]=x.useState(!1),{openDialog:u,closeDialog:A}=si(),g=M.useResourceContext(),h=x.useCallback(()=>u(g,()=>c(!0)),[u,g]),C=x.useCallback(()=>A(g,()=>c(!1)),[A,g]);return f.jsxs(f.Fragment,{children:[f.jsx(M.Button,{label:n,onClick:h,style:r,children:f.jsx(Zn.Edit,{})}),f.jsx(b.Dialog,{open:a,scroll:"body",onClose:C,fullWidth:e,maxWidth:t,children:f.jsx(JU,{...s,onClose:C,children:o})})]})}function ZQ(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:s,resource:a,selectedIds:c=[],onUnselectItems:u}=ce.useListContext(e),A=ce.useTranslate(),g=x.useCallback(()=>{u()},[u]);return f.jsx(ZU,{className:r,children:f.jsxs(KN,{"data-test":"bulk-actions-toolbar",className:We(ur.toolbar,{[ur.collapsed]:c.length===0}),...ce.sanitizeListRestProps(o),children:[f.jsxs("div",{className:ur.title,children:[f.jsx(sg,{className:ur.icon,"aria-label":A("ra.action.unselect"),title:A("ra.action.unselect"),onClick:g,size:"small",children:f.jsx(Qu,{fontSize:"small"})}),f.jsx(tB,{color:"inherit",variant:"subtitle1",children:A(t,{_:t,smart_count:c.length})})]}),f.jsx(M.TopToolbar,{className:ur.topToolbar,children:x.Children.map(n,h=>x.isValidElement(h)?x.cloneElement(h,{filterValues:s,resource:a,selectedIds:c}):null)})]})})}const Qi="RaBulkActionsToolbar",ur={toolbar:`${Qi}-toolbar`,topToolbar:`${Qi}-topToolbar`,buttons:`${Qi}-buttons`,collapsed:`${Qi}-collapsed`,title:`${Qi}-title`,icon:`${Qi}-icon`},ZU=ue("div",{name:Qi,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${ur.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Ad(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${ur.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${ur.buttons}`]:{},[`& .${ur.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${ur.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${ur.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),pp={p:0,m:0},_Q={p:2,m:0,borderRadius:0,width:"100%"};function _U(e){const{children:t}=e,[n,r]=N.useState(null),o=I=>{r(I.currentTarget)},s=()=>{r(null)},a=b.useMediaQuery(I=>I.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:A=[],onUnselectItems:g}=M.useListContext(e),h=!!n&&A!==void 0&&A.length>0,C=h?"simple-popover":void 0,E=N.useCallback(()=>{g(),r(null)},[g,r]);return f.jsx(b.Fade,{in:A!==void 0&&A.length>0,children:f.jsxs(b.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(b.Fab,{color:"primary","aria-label":"manage",onClick:o,children:A==null?void 0:A.length}),f.jsx(b.Popover,{id:C,open:h,anchorEl:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(b.List,{sx:pp,children:[f.jsx(b.ListItem,{sx:pp,children:f.jsx(M.Button,{onClick:E,sx:_Q,label:"ra.action.unselect",startIcon:f.jsx(Qu,{}),children:f.jsx(Qu,{})})}),N.Children.map(t,I=>{var B;return f.jsx(b.ListItem,{sx:pp,children:N.isValidElement(I)?N.cloneElement(I,{filterValues:c,resource:u,selectedIds:A,sx:_Q,...(B=I.props)!=null&&B.popover?{closePopover:s}:{}}):null})})]})})]})})}const qQ=x.createContext({});qQ.displayName="DatagridContext";const qU=({children:e,value:t})=>f.jsx(qQ.Provider,{value:t,children:e}),$Q=f.jsx(M.BulkDeleteButton,{}),ex=N.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?M.PureDatagridBody:M.DatagridBody,header:o=M.DatagridHeader,children:s,className:a,empty:c=tY,expand:u,bulkActionsToolbar:A=!1,bulkActionButtons:g=$Q,hover:h,isRowSelectable:C,isRowExpandable:E,resource:I,rowClick:B,rowSx:v,rowStyle:T,size:D="small",sx:Q,expandSingle:O=!1,...S}=e,{sort:k,data:R,isLoading:K,onSelect:_,onToggleItem:ee,selectedIds:W,setSort:re,total:ie}=ce.useListContext(e),X=!!g,$=x.useMemo(()=>({isRowExpandable:E,expandSingle:O}),[E,O]),z=x.useRef(null);x.useEffect(()=>{(!W||W.length===0)&&(z.current=null)},[JSON.stringify(W)]);const Z=x.useCallback((L,q)=>{const U=R.map(fe=>fe.id),J=U.indexOf(z.current);if(z.current=q.target.checked?L:null,q.shiftKey&&J!==-1){const fe=U.indexOf(L),he=U.slice(Math.min(J,fe),Math.max(J,fe)+1),de=q.target.checked?Bz(W,he):Rz(W,he);_(C?de.filter(ge=>C(R.find(Ce=>Ce.id===ge))):de)}else ee(L)},[R,C,_,ee,W]);return K===!0?f.jsx(M.DatagridLoading,{className:a,expand:u,hasBulkActions:X,nbChildren:N.Children.count(s),size:D}):R==null||R.length===0||ie===0?c||null:f.jsx(qU,{value:$,children:f.jsxs(M.DatagridRoot,{sx:Q,className:We(M.DatagridClasses.root,a),children:[A!=null&&x.isValidElement(A)?x.cloneElement(A,{selectedIds:W,total:ie}):g!==!1?f.jsx(ZQ,{children:x.isValidElement(g)?g:$Q}):null,f.jsx("div",{className:M.DatagridClasses.tableWrapper,children:f.jsxs(b.Table,{ref:t,className:M.DatagridClasses.table,size:D,...eY(S),children:[tx(o,{children:s,sort:k,data:R,hasExpand:!!u,hasBulkActions:X,isRowSelectable:C,onSelect:_,resource:I,selectedIds:W,setSort:re},s),tx(r,{expand:u,rowClick:B,data:R,hasBulkActions:X,hover:h,onToggleItem:Z,resource:I,rowSx:v,rowStyle:T,selectedIds:W,isRowSelectable:C},s)]})})]})})}),tx=(e,t,n)=>x.isValidElement(e)?x.cloneElement(e,t,n):x.createElement(e,t,n),$U=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],eY=e=>Object.keys(ce.sanitizeListRestProps(e)).filter(t=>!$U.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{});ex.displayName="Datagrid";const tY=f.jsx(M.ListNoResults,{}),nY=ue(ex,{slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function rY(e){return f.jsx(nY,{...e})}const oY=ue("div")(({theme:e})=>({padding:e.spacing(2)}));function iY({actions:e,className:t,...n}){const{hasCreate:r}=ce.useResourceDefinition(n),o=ce.useResourceContext(n),s=ce.useTranslate(),a=ce.useGetResourceLabel(),c=s(`resources.${o}.forcedCaseName`,{smart_count:0,_:a(o,0)}),u=s("ra.page.empty",{name:c}),A=s("ra.page.invite");return f.jsxs(sY,{className:t,children:[f.jsxs("div",{className:xi.message,children:[f.jsx(Zn.Inbox,{className:xi.icon}),f.jsx(b.Typography,{variant:"h4",paragraph:!0,children:s(`resources.${o}.empty`,{_:u})}),r&&f.jsx(b.Typography,{variant:"body1",children:s(`resources.${o}.invite`,{_:A})})]}),f.jsx(oY,{className:xi.toolbar,children:e})]})}const Ru="ApplicaEmpty",xi={message:`${Ru}-message`,icon:`${Ru}-icon`,toolbar:`${Ru}-toolbar`},sY=ue("span",{name:Ru,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${xi.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${xi.icon}`]:{width:"9em",height:"9em"},[`& .${xi.toolbar}`]:{textAlign:"center",marginTop:"2em"}})),aY=f.jsx(M.ListActions,{}),lY=f.jsx(M.Pagination,{}),cY=f.jsx(M.Empty,{}),uY=Uz,AY=e=>{const{actions:t=aY,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:s,hasCreate:a,pagination:c=lY,children:u,className:A,component:g=uY,title:h,empty:C=cY,...E}=e,{defaultTitle:I,data:B,error:v,isLoading:T,filterValues:D,resource:Q}=ce.useListContext(e);if(!u||!B&&T&&s)return null;const O=()=>f.jsxs("div",{className:zo.main,children:[(r||t)&&f.jsx(M.ListToolbar,{className:zo.actions,filters:r,actions:t,hasCreate:a}),!v&&f.jsx(g,{className:zo.content,children:o&&u&&N.isValidElement(u)?x.cloneElement(u,{bulkActionButtons:o}):u}),v?f.jsx(_g,{error:v,resetErrorBoundary:null}):c!==!1&&c]}),S=()=>C!==!1&&x.cloneElement(C,{className:zo.noResults,hasCreate:a}),k=!T&&(B==null?void 0:B.length)===0&&!Object.keys(D).length&&C!==!1;return f.jsxs(dY,{className:We("list-page",A),...E,children:[f.jsx(M.Title,{title:h,defaultTitle:I,preferenceKey:`${Q}.list.title`}),k?S():O(),n]})},rl="RaList",zo={main:`${rl}-main`,content:`${rl}-content`,actions:`${rl}-actions`,noResults:`${rl}-noResults`},dY=ue("div",{name:rl,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",[`& .${zo.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${zo.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${zo.actions}`]:{},[`& .${zo.noResults}`]:{}})),fY=({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=gY,filterDefaultValues:s,perPage:a=10,queryOptions:c,resource:u,sort:A,storeKey:g,...h})=>f.jsx(ce.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:s,perPage:a,queryOptions:c,resource:u,sort:A,storeKey:g,children:f.jsx(AY,{...h})}),gY={},pY=da(fY,{slot:"root"})(({theme:e})=>({"& .RaList-main":{overflowX:"auto","& .RaBulkActionsToolbar-toolbar":{height:36,top:42,paddingTop:16,"& .RaBulkActionsToolbar-title":{alignItems:"end","& .MuiTypography-root":{alignSelf:"center"}}},"& .MuiToolbar-root":{"& form":{padding:e.spacing(2),paddingBottom:e.spacing(2),alignItems:"flex-start"}},"& .MuiButton-root":{margin:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function hY(e){return f.jsx(or,{content:!1,children:f.jsx(pY,{...e})})}function CY(){const e=M.useRefresh(),t=M.useNotify(),n=M.useResourceContext(),r=M.useUnselectAll(n),{selectedIds:o,data:s}=M.useListContext(),a=M.useRecordContext(),c=o.map(h=>s.find(C=>C.id===h)),[u,{isLoading:A}]=M.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:Fr().format("YYYY-MM-DD HH:mm:ss")},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),g=x.useCallback(()=>{u()},[u]);return f.jsx(M.Button,{label:"ra.notification.mark_as_readed",disabled:A||(a==null?void 0:a.readed)!==null,onClick:g,children:f.jsx(Zn.Email,{})})}function EY(){const e=M.useRefresh(),t=M.useNotify(),n=M.useResourceContext(),r=M.useUnselectAll(n),{selectedIds:o,data:s}=M.useListContext(),a=M.useRecordContext(),c=o.map(h=>s.find(C=>C.id===h)).concat([a]),[u,{isLoading:A}]=M.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),g=x.useCallback(()=>{u()},[u]);return f.jsx(M.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:A||a&&!(a!=null&&a.readed),onClick:g,children:f.jsx(Zn.Drafts,{})})}function IY(e){const t=M.useRecordContext(e),n=M.useResourceContext(e),r=M.useRedirect(),o=M.useNotify(),s=M.useTranslate(),[a]=M.useLocaleState(),c=x.useMemo(()=>t!=null&&t.readed?Fr(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=M.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Fr().format("YYYY-MM-DD HH:mm:ss")}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),A=x.useCallback(()=>u(),[u]);return f.jsxs("div",{onClick:A,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(b.Typography,{variant:"subtitle1",children:f.jsxs(b.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(b.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c&&f.jsx(b.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:s("ra.notification.readed",{readed:c})})]})}function mY({...e}){const t=b.useTheme(),{mode:n,colorize:r,density:o}=x.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?b.darken:b.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),s=a=>({backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)});return f.jsxs(M.Datagrid,{...e,rowSx:s,children:[f.jsx(IY,{source:"notification",sortable:!1}),f.jsx(RB,{source:"created"}),f.jsxs(ii,{children:[f.jsx(CY,{}),f.jsx(EY,{})]})]})}const BY=ue(M.SimpleList,{name:"ApplicaSimpleList",slot:"root"})(({theme:e})=>({padding:e.spacing(1),paddingTop:0,paddingBottom:0})),Fu={width:"1.5rem",alignSelf:"center"};function vY({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:s,component:a,leftIcon:c,rightIcon:u,button:A,buttonProps:g,...h}){const{getCurrentDialog:C}=si(),E=ce.useResourceContext(h),I=C(),B=ce.useRecordContext(),v=r||B,T=ct.get(v,e||"");return f.jsxs(b.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:D=>({pt:1,pb:1,borderBottom:`1px solid ${D.palette.divider}`,...o&&{mb:2},...s&&{mt:2}}),children:[f.jsxs(b.Stack,{direction:"row",alignItems:"start",children:[c&&(x.isValidElement(c)?x.cloneElement(c,{style:Fu}):x.createElement(c,{style:Fu})),f.jsx(ce.FieldTitle,{label:t,source:e,resource:I||E})]}),f.jsxs(b.Stack,{direction:"row",alignItems:"center",children:[a?x.isValidElement(a)?x.cloneElement(a,{record:v,resource:E,value:T}):x.createElement(a,{source:e,record:v,resource:E,value:T}):f.jsx(b.Typography,{variant:n,children:T}),u&&(x.isValidElement(u)?x.cloneElement(u,{style:Fu}):x.createElement(u,{style:Fu})),A&&f.jsx(b.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...g,children:A})]})]})}const nx=({children:e,...t})=>{const n=wt();return f.jsx(or,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...t,border:!1,boxShadow:!0,shadow:n.customShadows.z1,children:f.jsx(b.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};nx.propTypes={children:p.node};const ol=({version:e,name:t,copy:n,children:r,logo:o,background:s=jl})=>f.jsxs(b.Box,{sx:{minHeight:"100vh"},children:[x.isValidElement(s)?s:x.createElement(s),f.jsxs(b.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[f.jsx(b.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(Ap,{title:t})}),f.jsxs(b.Grid,{item:!0,xs:12,children:[f.jsx(b.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:f.jsx(b.Grid,{item:!0,children:f.jsx(nx,{children:r})})}),f.jsx(b.Grid,{item:!0,sx:{pb:1},children:f.jsx(vg,{name:t,copy:n,version:e})})]})]})]});ol.propTypes={children:p.node,version:p.string,name:p.string,copy:p.string,background:p.oneOfType([p.node,p.func,p.object])};const rx=({name:e,copy:t,logo:n,version:r,background:o})=>{const s=ce.useTranslate(),a=ce.useAuthProvider(),c=ce.useNotify(),u=Ct.useNavigate(),{token:A}=Ct.useParams();return x.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{c("ra.auth.activate_success",{type:"info"}),ne.delay(()=>u("/login"),1e3)}).catch(g=>{c(g,{type:"error"}),ne.delay(()=>u("/login"),1e3)})},[A]),f.jsx(ol,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(b.Grid,{container:!0,spacing:3,children:[f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(b.Typography,{variant:"h3",children:s("ra.auth.activate")}),f.jsx(b.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:s("ra.auth.back_to_login")})]})}),f.jsx(b.Grid,{item:!0,xs:12,children:s("ra.auth.activate_pending")})]})})};rx.propTypes={name:p.string.isRequired,version:p.string.isRequired,background:p.node};function ox({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:s=!1,redirectTo:a,background:c=f.jsx(jl,{})}){const[u,A]=ce.useSafeSetState(!1),g=ce.useLogin(),h=ce.useTranslate(),C=ce.useNotify(),E=ce.useCheckAuth(),I=Ct.useNavigate();x.useEffect(()=>{E({},!1).then(()=>{I("/")}).catch(()=>{})},[E,I]);const B=v=>{A(!0),g(v,a).then(()=>{A(!1)}).catch(T=>{A(!1),C(typeof T=="string"?T:typeof T>"u"||!T.message?"ra.auth.sign_in_error":T.message,{type:"error",messageArgs:{_:typeof T=="string"?T:T&&T.message?T.message:void 0}})})};return f.jsx(ol,{name:t,version:e,copy:n,logo:r,background:c,children:f.jsxs(b.Grid,{container:!0,spacing:3,children:[f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(b.Typography,{variant:"h3",children:"Login"}),s&&f.jsx(b.Typography,{component:Ct.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:h("ra.auth.register")})]})}),f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(ce.Form,{onSubmit:B,children:[f.jsxs(b.Grid,{container:!0,children:[f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(yr,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:ce.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(yr,{source:"password",label:h("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ce.required(),placeholder:h("ra.auth.password_placeholder"),fullWidth:!0})})]}),o&&f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(b.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(b.Link,{variant:"h6",component:Ct.Link,to:"/recover",color:"text.primary",children:h("ra.auth.forgot_password")})})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(b.CircularProgress,{size:19,thickness:3}):h("ra.auth.sign_in")})})]})})]})})}const ix=({name:e,copy:t,logo:n,version:r,background:o})=>{const[s,a]=x.useState(!1),c=ce.useTranslate(),u=ce.useRedirect(),A=ce.useNotify(),g=ce.useAuthProvider(),h=({email:C})=>{a(!0),g.recover(C).then(E=>{const I=`ra.auth.recover_${E.responseCode}`,B=E.responseCode==="ok"?"info":"error";A(I,{type:B}),u("/login")}).catch(E=>{A((E==null?void 0:E.message)||(E==null?void 0:E.toString()),{type:"error"})}).finally(()=>a(!1))};return f.jsx(ol,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(b.Grid,{container:!0,spacing:3,children:[f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(b.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),f.jsx(b.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(M.Form,{onSubmit:h,children:[f.jsx(b.Grid,{container:!0,children:f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(yr,{source:"email",validate:[ce.required(),ce.email()]})})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(b.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?f.jsx(b.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})};ix.propTypes={name:p.string.isRequired,version:p.string.isRequired,background:p.node};const sx=({name:e,copy:t,version:n,logo:r,background:o})=>{const[s,a]=x.useState(!1),c=ce.useTranslate(),u=ce.useRedirect(),A=ce.useNotify(),g=ce.useAuthProvider(),h=C=>{a(!0),g.register(C).then(E=>{const I=`ra.auth.register_${E.responseCode}`,B=E.responseCode==="ok"?"info":"error";A(I,{type:B}),u("/login")}).catch(E=>{A(E,{type:"error"})}).finally(()=>a(!1))};return f.jsx(ol,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(b.Grid,{container:!0,spacing:3,children:[f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(b.Typography,{variant:"h3",children:c("ra.auth.register.title")}),f.jsx(b.Typography,{component:Ct.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),f.jsx(b.Grid,{item:!0,xs:12,children:f.jsxs(M.Form,{onSubmit:h,children:[f.jsxs(b.Grid,{container:!0,children:[f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(yr,{source:"name",label:c("ra.register.name"),validate:ce.required()})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(yr,{source:"email",type:"email",validate:[ce.required(),ce.email()]})}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(yr,{source:"password",type:"password",validate:ce.required()})})]}),f.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?f.jsx(b.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})};sx.propTypes={name:p.string.isRequired,version:p.string.isRequired};function ax(){const e=x.useCallback(()=>location.reload(),[]);return f.jsx(b.Container,{children:f.jsxs(b.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{src:nb,style:{width:"100%",maxWidth:450}}),f.jsx(b.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(b.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(b.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}const yY=e=>({button:e.palette.mode==="dark"?"0 2px 0 rgb(0 0 0 / 5%)":"0 2px #0000000b",text:"0 -1px 0 rgb(0 0 0 / 12%)",z1:e.palette.mode==="dark"?"0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 12%), 0px 1px 3px rgb(0 0 0 / 20%)":`0px 1px 4px ${nt(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${nt(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${nt(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${nt(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${nt(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${nt(e.palette.info.main,.2)}`,success:`0 0 0 2px ${nt(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${nt(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${nt(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${nt(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${nt(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${nt(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${nt(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${nt(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${nt(e.palette.grey[500],.2)}`});function Ar(e,t){bY(e)&&(e="100%");var n=QY(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function bY(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function QY(e){return typeof e=="string"&&e.indexOf("%")!==-1}function xY(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Lu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function hp(e){return e.length===1?"0"+e:String(e)}function wY(e,t,n){return{r:Ar(e,255)*255,g:Ar(t,255)*255,b:Ar(n,255)*255}}function Cp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function TY(e,t,n){var r,o,s;if(e=Ar(e,360),t=Ar(t,100),n=Ar(n,100),t===0)o=n,s=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=Cp(c,a,e+1/3),o=Cp(c,a,e),s=Cp(c,a,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function SY(e,t,n){e=Ar(e,255),t=Ar(t,255),n=Ar(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,a=r,c=r-o,u=r===0?0:c/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s,s:u,v:a}}function PY(e,t,n){e=Ar(e,360)*6,t=Ar(t,100),n=Ar(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),u=r%6,A=[n,a,s,s,c,n][u],g=[c,n,n,a,s,s][u],h=[s,s,c,n,n,a][u];return{r:A*255,g:g*255,b:h*255}}function OY(e,t,n,r){var o=[hp(Math.round(e).toString(16)),hp(Math.round(t).toString(16)),hp(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function lx(e){return Hn(e)/255}function Hn(e){return parseInt(e,16)}var cx={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function il(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,a=!1,c=!1;return typeof e=="string"&&(e=MY(e)),typeof e=="object"&&(co(e.r)&&co(e.g)&&co(e.b)?(t=wY(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):co(e.h)&&co(e.s)&&co(e.v)?(r=Lu(e.s),o=Lu(e.v),t=PY(e.h,r,o),a=!0,c="hsv"):co(e.h)&&co(e.s)&&co(e.l)&&(r=Lu(e.s),s=Lu(e.l),t=TY(e.h,r,s),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=xY(n),{ok:a,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var jY="[-\\+]?\\d+%?",DY="[-\\+]?\\d*\\.\\d+%?",Ho="(?:".concat(DY,")|(?:").concat(jY,")"),Ep="[\\s|\\(]+(".concat(Ho,")[,|\\s]+(").concat(Ho,")[,|\\s]+(").concat(Ho,")\\s*\\)?"),Ip="[\\s|\\(]+(".concat(Ho,")[,|\\s]+(").concat(Ho,")[,|\\s]+(").concat(Ho,")[,|\\s]+(").concat(Ho,")\\s*\\)?"),br={CSS_UNIT:new RegExp(Ho),rgb:new RegExp("rgb"+Ep),rgba:new RegExp("rgba"+Ip),hsl:new RegExp("hsl"+Ep),hsla:new RegExp("hsla"+Ip),hsv:new RegExp("hsv"+Ep),hsva:new RegExp("hsva"+Ip),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function MY(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(cx[e])e=cx[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=br.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=br.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=br.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=br.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=br.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=br.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=br.hex8.exec(e),n?{r:Hn(n[1]),g:Hn(n[2]),b:Hn(n[3]),a:lx(n[4]),format:t?"name":"hex8"}:(n=br.hex6.exec(e),n?{r:Hn(n[1]),g:Hn(n[2]),b:Hn(n[3]),format:t?"name":"hex"}:(n=br.hex4.exec(e),n?{r:Hn(n[1]+n[1]),g:Hn(n[2]+n[2]),b:Hn(n[3]+n[3]),a:lx(n[4]+n[4]),format:t?"name":"hex8"}:(n=br.hex3.exec(e),n?{r:Hn(n[1]+n[1]),g:Hn(n[2]+n[2]),b:Hn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function co(e){return!!br.CSS_UNIT.exec(String(e))}var Nu=2,ux=.16,kY=.05,RY=.05,FY=.15,Ax=5,dx=4,LY=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function fx(e){var t=e.r,n=e.g,r=e.b,o=SY(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Vu(e){var t=e.r,n=e.g,r=e.b;return"#".concat(OY(t,n,r,!1))}function NY(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function gx(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Nu*t:Math.round(e.h)+Nu*t:r=n?Math.round(e.h)+Nu*t:Math.round(e.h)-Nu*t,r<0?r+=360:r>=360&&(r-=360),r}function px(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-ux*t:t===dx?r=e.s+ux:r=e.s+kY*t,r>1&&(r=1),n&&t===Ax&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function hx(e,t,n){var r;return n?r=e.v+RY*t:r=e.v-FY*t,r>1&&(r=1),Number(r.toFixed(2))}function Cx(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=il(e),o=Ax;o>0;o-=1){var s=fx(r),a=Vu(il({h:gx(s,o,!0),s:px(s,o,!0),v:hx(s,o,!0)}));n.push(a)}n.push(Vu(r));for(var c=1;c<=dx;c+=1){var u=fx(r),A=Vu(il({h:gx(u,c),s:px(u,c),v:hx(u,c)}));n.push(A)}return t.theme==="dark"?LY.map(function(g){var h=g.index,C=g.opacity,E=Vu(NY(il(t.backgroundColor||"#141414"),il(n[h]),C*100));return E}):n}var mp={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Zt={},zu={};Object.keys(mp).forEach(function(e){Zt[e]=Cx(mp[e]),Zt[e].primary=Zt[e][5],zu[e]=Cx(mp[e],{theme:"dark",backgroundColor:"#141414"}),zu[e].primary=zu[e][5]}),Zt.red,Zt.volcano,Zt.gold,Zt.orange,Zt.yellow,Zt.lime,Zt.green,Zt.cyan,Zt.blue,Zt.geekblue,Zt.purple,Zt.magenta,Zt.grey,Zt.grey;const Ex=e=>{const{blue:t,red:n,gold:r,cyan:o,green:s,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:s[0],light:s[3],main:s[5],dark:s[7],darker:s[9],contrastText:u},grey:c}};Ex.propTypes={colors:p.object};const VY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],A=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(s=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],A=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},zY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},HY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},WY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},UY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},YY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},GY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},KY=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Ix=(e,t,n)=>{switch(t){case"theme1":return VY(e,n);case"theme2":return zY(e,n);case"theme3":return HY(e,n);case"theme4":return WY(e,n);case"theme5":return UY(e,n);case"theme6":return YY(e,n);case"theme7":return GY(e,n);case"theme8":return KY(e,n);default:return Ex(e)}};Ix.propTypes={colors:p.object,presetColor:p.any};const JY=(e,t)=>{const n=e==="dark"?zu:Zt;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#121212","#d3d8db"]),n.grey=[...r,...o,...s];const a=Ix(n,t,e);return bd({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?nt(a.grey[900],.87):a.grey[700],secondary:e==="dark"?nt(a.grey[900],.45):a.grey[500],disabled:e==="dark"?nt(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?nt(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})},XY=e=>({htmlFontSize:16,fontFamily:e,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600,h1:{fontWeight:600,fontSize:"2.375rem",lineHeight:1.21},h2:{fontWeight:600,fontSize:"1.875rem",lineHeight:1.27},h3:{fontWeight:600,fontSize:"1.5rem",lineHeight:1.33},h4:{fontWeight:600,fontSize:"1.25rem",lineHeight:1.4},h5:{fontWeight:600,fontSize:"1rem",lineHeight:1.5},h6:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.57},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},body1:{fontSize:"0.875rem",lineHeight:1.57},body2:{fontSize:"0.75rem",lineHeight:1.66},subtitle1:{fontSize:"0.875rem",fontWeight:600,lineHeight:1.57},subtitle2:{fontSize:"0.75rem",fontWeight:500,lineHeight:1.66},overline:{lineHeight:1.66},button:{textTransform:"capitalize"}});function ZY(e){return{MuiAccordion:{defaultProps:{disableGutters:!0,square:!0,elevation:0},styleOverrides:{root:{border:`1px solid ${e.palette.secondary.light}`,"&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:e.palette.secondary.lighter}}}}}}function _Y(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function qY(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx(qe.RightOutlined,{style:{fontSize:"0.75rem"}})},styleOverrides:{root:{backgroundColor:t.secondary.lighter,flexDirection:"row-reverse",minHeight:46},expandIconWrapper:{"&.Mui-expanded":{transform:"rotate(90deg)"}},content:{marginTop:n(1.25),marginBottom:n(1.25),marginLeft:n(1)}}}}}function wi({color:e,theme:t}){const n=sn(t,e),{lighter:r,light:o,main:s}=n;return{borderColor:nt(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:s}}}function $Y(e){const t=wi({color:"primary",theme:e});return{MuiAlert:{styleOverrides:{root:{color:e.palette.text.primary,fontSize:"0.875rem"},icon:{fontSize:"1rem"},message:{padding:0,marginTop:3},filled:{color:e.palette.grey[0]},border:{padding:"10px 16px",border:"1px solid",...t,"&.MuiAlert-borderPrimary":wi({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":wi({color:"secondary",theme:e}),"&.MuiAlert-borderError":wi({color:"error",theme:e}),"&.MuiAlert-borderSuccess":wi({color:"success",theme:e}),"&.MuiAlert-borderInfo":wi({color:"info",theme:e}),"&.MuiAlert-borderWarning":wi({color:"warning",theme:e})},action:{"& .MuiButton-root":{padding:2,height:"auto",fontSize:"0.75rem",marginTop:-2},"& .MuiIconButton-root":{width:"auto",height:"auto",padding:2,marginRight:6,"& .MuiSvgIcon-root":{fontSize:"1rem"}}}}}}}function eG(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function tG(e){var t;return{MuiAutocomplete:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{padding:"3px 9px"}},popupIndicator:{width:"auto",height:"auto"},popper:{border:`1px solid ${e.palette.mode==="dark"?(t=e.palette.dark)==null?void 0:t.main:e.palette.grey[100]}`},clearIndicator:{width:"auto",height:"auto"}}}}}function Ti({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function nG(e){const t=Ti({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Ti({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Ti({color:"secondary",theme:e}),"&.MuiBadge-colorError":Ti({color:"error",theme:e}),"&.MuiBadge-colorInfo":Ti({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Ti({color:"success",theme:e}),"&.MuiBadge-colorWarning":Ti({color:"warning",theme:e})}}}}}function $e({variant:e,color:t,theme:n}){const r=sn(n,t),{lighter:o,main:s,dark:a,contrastText:c}=r,u=`${t}Button`,A=Is(n,u),g={"&::after":{boxShadow:`0 0 5px 5px ${nt(s,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${nt(s,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...g};case"shadow":return{color:c,backgroundColor:s,boxShadow:A,"&:hover":{boxShadow:"none",backgroundColor:a},...g};case"outlined":return{borderColor:s,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...g};case"dashed":return{color:s,borderColor:s,backgroundColor:o,"&:hover":{color:a,borderColor:a},...g};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...g}}}function rG(e){const t=$e({variant:"dashed",color:"primary",theme:e}),n=$e({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":$e({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":$e({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":$e({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":$e({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":$e({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":$e({variant:"dashed",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},shadow:{...n,"&.MuiButton-shadowPrimary":$e({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":$e({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":$e({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":$e({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":$e({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":$e({variant:"shadow",color:"warning",theme:e}),"&.Mui-disabled":{color:`${e.palette.grey[300]} !important`,borderColor:`${e.palette.grey[400]} !important`,backgroundColor:`${e.palette.grey[200]} !important`}},containedPrimary:$e({variant:"contained",color:"primary",theme:e}),containedSecondary:$e({variant:"contained",color:"secondary",theme:e}),containedError:$e({variant:"contained",color:"error",theme:e}),containedSuccess:$e({variant:"contained",color:"success",theme:e}),containedInfo:$e({variant:"contained",color:"info",theme:e}),containedWarning:$e({variant:"contained",color:"warning",theme:e}),outlinedPrimary:$e({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:$e({variant:"outlined",color:"secondary",theme:e}),outlinedError:$e({variant:"outlined",color:"error",theme:e}),outlinedSuccess:$e({variant:"outlined",color:"success",theme:e}),outlinedInfo:$e({variant:"outlined",color:"info",theme:e}),outlinedWarning:$e({variant:"outlined",color:"warning",theme:e}),textPrimary:$e({variant:"text",color:"primary",theme:e}),textSecondary:$e({variant:"text",color:"secondary",theme:e}),textError:$e({variant:"text",color:"error",theme:e}),textSuccess:$e({variant:"text",color:"success",theme:e}),textInfo:$e({variant:"text",color:"info",theme:e}),textWarning:$e({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function oG(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function iG(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function sG(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Fs({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o,dark:s}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function aG(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function Bp(e){const t=aG(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function lG(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(qe.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx(qe.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...Bp("small")},"&.size-medium":{...Bp("medium")},"&.size-large":{...Bp("large")}},colorPrimary:Fs({color:"primary",theme:e}),colorSecondary:Fs({color:"secondary",theme:e}),colorSuccess:Fs({color:"success",theme:e}),colorWarning:Fs({color:"warning",theme:e}),colorInfo:Fs({color:"info",theme:e}),colorError:Fs({color:"error",theme:e})}}}}function Ls({color:e,theme:t}){const n=sn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Wn({color:e,theme:t}){const n=sn(t,e),{light:r,lighter:o,main:s}=n;return{color:s,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:s,"&:hover":{color:r}}}}function cG(e){const t=Wn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Ls({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Ls({color:"secondary",theme:e}),"&.MuiChip-colorError":Ls({color:"error",theme:e}),"&.MuiChip-colorInfo":Ls({color:"info",theme:e}),"&.MuiChip-colorSuccess":Ls({color:"success",theme:e}),"&.MuiChip-colorWarning":Ls({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Wn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Wn({color:"secondary",theme:e}),"&.MuiChip-lightError":Wn({color:"error",theme:e}),"&.MuiChip-lightInfo":Wn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Wn({color:"success",theme:e}),"&.MuiChip-lightWarning":Wn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Wn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Wn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Wn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Wn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Wn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Wn({color:"warning",theme:e})}}}}}function uG(e){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:nt("#000",.7)},"& .MuiCardContent-root":{[e.breakpoints.down("sm")]:{paddingBottom:`${e.spacing(2.5)}`}},"& .MuiPaper-root:has(.tabbed-form)":{overflowY:"unset",width:"100%"}}}}}}function AG(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function dG(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Ns({color:e,theme:t}){const n=sn(t,e),{main:r,dark:o,contrastText:s}=n,a=`${e}Button`,c=Is(t,a);return{color:s,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${nt(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${nt(r,.9)}`}}}function fG(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Ns({color:"primary",theme:e}),"&.MuiFab-secondary":Ns({color:"secondary",theme:e}),"&.Mui-error":Ns({color:"error",theme:e}),"&.MuiFab-success":Ns({color:"success",theme:e}),"&.MuiFab-info":Ns({color:"info",theme:e}),"&.MuiFab-warning":Ns({color:"warning",theme:e}),"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}}}}}}function gG(e){return{MuiIconButton:{styleOverrides:{root:{borderRadius:4},sizeLarge:{width:e.spacing(5.5),height:e.spacing(5.5),fontSize:"1.25rem"},sizeMedium:{width:e.spacing(4.5),height:e.spacing(4.5),fontSize:"1rem"},sizeSmall:{width:e.spacing(3.75),height:e.spacing(3.75),fontSize:"0.75rem"},sizeExtraSmall:{width:e.spacing(2.6875),height:e.spacing(2.6875),fontSize:"0.625rem"}}}}}function pG(){return{MuiInputBase:{styleOverrides:{}}}}function hG(e){return{MuiInputLabel:{styleOverrides:{root:{color:e.palette.grey[600]},outlined:{lineHeight:"0.8em","&.MuiInputLabel-sizeSmall":{lineHeight:"1em"},"&.MuiInputLabel-shrink":{background:e.palette.background.paper,padding:"0 8px",marginLeft:-6,lineHeight:"1.4375em"}}}}}}function CG(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function EG(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function IG(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function mG(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function BG(){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function vG(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function Si({variant:e,theme:t}){const n=sn(t,e),{light:r}=n,o=Is(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function yG(e){return{MuiOutlinedInput:{styleOverrides:{input:{padding:"10.5px 14px 10.5px 12px"},notchedOutline:{borderColor:e.palette.mode==="dark"?e.palette.grey[200]:e.palette.grey[300]},root:{...Si({variant:"primary",theme:e}),"&.Mui-error":{...Si({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:Si({variant:"secondary",theme:e}),colorError:Si({variant:"error",theme:e}),colorWarning:Si({variant:"warning",theme:e}),colorInfo:Si({variant:"info",theme:e}),colorSuccess:Si({variant:"success",theme:e})}}}}function bG(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function yt({variant:e,color:t,theme:n}){const r=sn(n,t),{lighter:o,light:s,dark:a,main:c,contrastText:u}=r,A={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:s},...A};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:s},...A};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...A}}}function QG(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":yt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":yt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":yt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":yt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":yt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":yt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":yt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":yt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":yt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":yt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":yt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":yt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":yt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":yt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":yt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":yt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":yt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":yt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":yt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":yt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":yt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":yt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":yt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":yt({variant:"outlined",color:"warning",theme:e})}}}}}}function xG(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Vs({color:e,theme:t}){const n=sn(t,e),{lighter:r,main:o,dark:s}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function wG(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function vp(e){const t=wG(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function TG(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(b.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...vp("small")},"&.size-medium":{...vp("medium")},"&.size-large":{...vp("large")}},colorPrimary:Vs({color:"primary",theme:e}),colorSecondary:Vs({color:"secondary",theme:e}),colorSuccess:Vs({color:"success",theme:e}),colorWarning:Vs({color:"warning",theme:e}),colorInfo:Vs({color:"info",theme:e}),colorError:Vs({color:"error",theme:e})}}}}function zs({color:e,theme:t}){const n=sn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function SG(e){return{MuiSlider:{styleOverrides:{track:{height:"1px"},thumb:{width:14,height:14,border:`2px solid ${e.palette.primary.main}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-thumbColorPrimary":zs({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":zs({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":zs({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":zs({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":zs({color:"info",theme:e}),"&.MuiSlider-thumbColorError":zs({color:"error",theme:e})},mark:{width:4,height:4,borderRadius:"50%",border:`1px solid ${e.palette.secondary.light}`,backgroundColor:e.palette.background.paper,"&.MuiSlider-markActive":{opacity:1,borderColor:"inherit",borderWidth:2}},rail:{color:e.palette.secondary.light},root:{"&.Mui-disabled":{".MuiSlider-rail":{opacity:.25},".MuiSlider-track":{color:e.palette.secondary.lighter},".MuiSlider-thumb":{border:`2px solid ${e.palette.secondary.lighter}`}}},valueLabel:{backgroundColor:e.palette.grey[600],color:e.palette.grey[0]}}}}}function PG(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function yp(e,t){const n=PG(t);return{width:n.width,height:n.height,"& .MuiSwitch-switchBase":{padding:3,"&.Mui-checked":{transform:`translateX(${n.base}px)`}},"& .MuiSwitch-thumb":{width:n.thumb,height:n.thumb},"& .MuiSwitch-track":{borderRadius:n.trackRadius}}}function OG(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...yp(e,"medium")},sizeLarge:{...yp(e,"large")},sizeSmall:{...yp(e,"small")}}}}}function jG(e){return{MuiTab:{styleOverrides:{root:{minHeight:46,color:e.palette.text.primary,borderRadius:4,"&:hover":{backgroundColor:e.palette.primary.lighter+60,color:e.palette.primary.main},"&:focus-visible":{borderRadius:4,outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:-3}}}}}}function DG(e){const t={"&:hover":{backgroundColor:e.palette.secondary.lighter}};return{MuiTableBody:{styleOverrides:{root:{"&.striped .MuiTableRow-root":{"&:nth-of-type(even)":{backgroundColor:e.palette.grey[50]},...t},"& .MuiTableRow-root":{...t}}}}}}function MG(e){const t={"&:not(:last-of-type)":{position:"relative","&:after":{position:"absolute",content:'""',backgroundColor:e.palette.divider,width:1,height:"calc(100% - 30px)",right:0,top:16}}};return{MuiTableCell:{styleOverrides:{root:{fontSize:"0.875rem",padding:12,borderColor:e.palette.divider},sizeSmall:{padding:8},head:{fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",...t},footer:{fontSize:"0.75rem",textTransform:"uppercase",...t}}}}}function kG(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function RG(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function FG(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function LG(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function NG(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function VG(e){return{MuiToggleButton:{styleOverrides:{root:{"&.Mui-disabled":{borderColor:e.palette.divider,color:e.palette.text.disabled},"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}}}}}}function zG(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function HG(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function WG(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function UG(e){return ct.merge(ZY(e),_Y(e),qY(e),$Y(e),eG(),tG(e),nG(e),rG(e),oG(),iG(),sG(),lG(e),cG(e),uG(e),AG(e),dG(),fG(e),gG(e),pG(),hG(e),CG(),EG(),IG(e),mG(e),BG(),vG(),yG(e),bG(),QG(e),xG(e),TG(e),SG(e),OG(e),jG(e),DG(e),MG(e),kG(e),RG(e),FG(),LG(),NG(),VG(e),zG(e),HG(),WG())}const Hu=({themeOverrides:e,children:t})=>{const n=bn(),{themeDirection:r,mode:o,presetColor:s,fontFamily:a}=n,c=x.useMemo(()=>JY(o,s),[o,s]),u=x.useMemo(()=>XY(a),[a]),A=x.useMemo(()=>yY(c),[c]),g=x.useMemo(()=>ne.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:c.palette,customShadows:A,typography:u,shadows:c.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:c.spacing(2.6875),height:c.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(c):e),[r,c,u,A,e]),h=bd(g),C=ne.cloneDeep(h.components??{});return h.components=ne.merge(UG(h),C),f.jsx(b.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(TE,{theme:h,children:[f.jsx(b.CssBaseline,{enableColorScheme:!0}),t]})})};Hu.propTypes={children:p.node,themeOverrides:p.oneOfType([p.object,p.func])};function YG({children:e,theme:t,...n}){return f.jsx(M.CoreAdminContext,{...n,children:f.jsx(Hu,{themeOverrides:t,children:f.jsx(dp,{children:e})})})}function mx(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:s,disableTelemetry:a,history:c,i18nProvider:u,layout:A,loading:g,loginPage:h,authCallbackPage:C,menu:E,notification:I,queryClient:B,requireAuth:v,store:T=M.localStorageStore(),ready:D,theme:Q,title:O="React Admin"}=e;return f.jsx(YG,{authProvider:t,dataProvider:s,i18nProvider:u,store:T,history:c,queryClient:B,theme:Q,children:f.jsx(M.AdminUI,{layout:A,dashboard:o,disableTelemetry:a,menu:E,catchAll:n,title:O,loading:g,loginPage:h,authCallbackPage:C,notification:I,requireAuth:v,ready:D,children:r})})}class GG{constructor(t){Bo(this,sl,void 0);Bo(this,al,void 0);Bo(this,Hs,new Set);const{apiUrl:n}=t??{};if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");ei(this,al,n),ei(this,sl,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:s}=t,a=`${n}${r}${o}${s}`;Mn(this,Hs).has(a)||(Mn(this,Hs).add(a),fetch(`${Mn(this,al)}/ui/error-log`,{method:"PUT",headers:Mn(this,sl),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(u=>{console.warn("Unable to send error to server",u),Mn(this,Hs).delete(a)}))}}sl=new WeakMap,al=new WeakMap,Hs=new WeakMap;class Bx{constructor({catch:t,display:n,log:r,error:o}){Sl(this,"catch");Sl(this,"display");Sl(this,"log");Sl(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const KG=({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=s=>new Bx({catch:s!=null,display:!1,log:s!=null,error:s}),...o})=>{const s=N.useMemo(()=>o.errorHandler?o.errorHandler:new GG({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=N.useCallback(function(u,...A){var h;if(!u)return!1;const g=r(u instanceof ErrorEvent?u:(h=u==null?void 0:u.toString())==null?void 0:h.replace(/%s/g,()=>A.shift()));if(g.isCatched())return!1;g.logError()&&(u instanceof ErrorEvent?s.handle(u):s.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),g.displayError()&&a.apply(console,arguments)},[t,n,r,e,s]);return N.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c]),!0};class JG{constructor(t){Bo(this,ll,void 0);Bo(this,cl,void 0);Bo(this,Oi,[]);const{apiUrl:n}=t??{};if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");ei(this,cl,n),ei(this,ll,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!ne.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!ne.isString(r)||ne.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!ne.some(Mn(this,Oi),o=>ne.isEqual(o,{code:n,lang:r}))){Mn(this,Oi).push({code:n,lang:r}),fetch(`${Mn(this,cl)}/i18n/message`,{method:"put",headers:Mn(this,ll),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),ei(this,Oi,ne.reject(Mn(this,Oi),s=>ne.isEqual(s,{code:n,lang:r})))});return}}}ll=new WeakMap,cl=new WeakMap,Oi=new WeakMap;function vx(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,s=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new JG({apiUrl:t}),u=()=>fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(h=>h.json()).catch(()=>Promise.resolve(s)),A=()=>fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(h=>h.json()).then(h=>h.reduce((C,E)=>({...C,[E.lang]:{...C[E.lang]||{},[E.code]:E.text}}),{})),g=(h,C,E)=>(r||console.error(`Warning: Missing translation for key: "${h}"`),o&&(ne.isString(h)?h.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${h}`):c.handleMessage({code:h,lang:E}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),h);return Promise.all([u(),A()]).then(h=>{const[C,E]=h;function I(B){return ne.get(E,B,{})}return Z1(I,n,C,{allowMissing:r||o,onMissingKey:g})})}window.React=x;const XG=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,o]=x.useState({loading:!0,languages:null});return x.useEffect(()=>{let s=new Headers;s.append("Accept","application/json"),s.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:s}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r};function yx(e){const[t,n]=x.useState(),r=pI(e);return x.useEffect(()=>{vx(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r]),t}const ZG=new Yi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function _G({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:s,logoIcon:a,loginPage:c=f.jsx(ox,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(jl,{})}),menu:u,name:A,copy:g,version:h="0.0.0",dataProvider:C,authProvider:E,errorHandler:I,error:B,enableNotification:v=!1,enableRegistration:T=!1,enablePasswordRecover:D=!1,enableThemeToggler:Q=!1,queryClient:O=ZG,background:S,notificationAPI:k="entities/notification",...R}){KG({apiUrl:n,errorHandler:I,catcherFn:W=>{const re=W==null?void 0:W.toString(),X=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(z=>re==null?void 0:re.includes(z));return new Bx({catch:X,display:!X,log:!X,error:re})}});const K=x.useMemo(()=>x.isValidElement(c)?x.cloneElement(c,{name:A,copy:g,logo:s,version:h,background:S,enableRegistration:T,enablePasswordRecover:D}):c,[c,A,h,g,S,s,T,D]),_=x.useMemo(()=>W=>{const re=A?f.jsx(Ap,{title:A}):s,ie=A?f.jsx(fp,{title:A}):a;return f.jsx(FQ,{...W,name:A,copy:g,enableThemeToggler:Q,version:h,logoMain:re,logoIcon:ie,notification:k,enableNotification:v,error:B})},[s,a,A,h,B,k,v]),ee=yx({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o});return ee===void 0?f.jsx(f.Fragment,{}):ee.error?f.jsx(dc,{initialConfig:t,children:f.jsx(Hu,{themeOverrides:e,children:f.jsx(ax,{})})}):f.jsx(Dd,{children:f.jsx(kE,{menu:u,children:f.jsx(dc,{initialConfig:t,children:f.jsx(mx,{theme:e,layout:_,notification:GQ,queryClient:O,dataProvider:C,authProvider:E,i18nProvider:ee,loginPage:K,...R})})})})}Object.defineProperty(j,"ArrayInputContext",{enumerable:!0,get:()=>M.ArrayInputContext}),Object.defineProperty(j,"BooleanField",{enumerable:!0,get:()=>M.BooleanField}),Object.defineProperty(j,"BulkDeleteWithConfirmButton",{enumerable:!0,get:()=>M.BulkDeleteWithConfirmButton}),Object.defineProperty(j,"Button",{enumerable:!0,get:()=>M.Button}),Object.defineProperty(j,"ChipField",{enumerable:!0,get:()=>M.ChipField}),Object.defineProperty(j,"Confirm",{enumerable:!0,get:()=>M.Confirm}),Object.defineProperty(j,"CreateButton",{enumerable:!0,get:()=>M.CreateButton}),Object.defineProperty(j,"CreateContextProvider",{enumerable:!0,get:()=>M.CreateContextProvider}),Object.defineProperty(j,"CustomRoutes",{enumerable:!0,get:()=>M.CustomRoutes}),Object.defineProperty(j,"DeleteWithConfirmButton",{enumerable:!0,get:()=>M.DeleteWithConfirmButton}),Object.defineProperty(j,"DeleteWithUndoButton",{enumerable:!0,get:()=>M.DeleteWithUndoButton}),Object.defineProperty(j,"EditButton",{enumerable:!0,get:()=>M.EditButton}),Object.defineProperty(j,"EditContextProvider",{enumerable:!0,get:()=>M.EditContextProvider}),Object.defineProperty(j,"FieldTitle",{enumerable:!0,get:()=>M.FieldTitle}),Object.defineProperty(j,"FilterButton",{enumerable:!0,get:()=>M.FilterButton}),Object.defineProperty(j,"Form",{enumerable:!0,get:()=>M.Form}),Object.defineProperty(j,"FormDataConsumer",{enumerable:!0,get:()=>M.FormDataConsumer}),Object.defineProperty(j,"HttpError",{enumerable:!0,get:()=>M.HttpError}),Object.defineProperty(j,"I18nContextProvider",{enumerable:!0,get:()=>M.I18nContextProvider}),Object.defineProperty(j,"ListBase",{enumerable:!0,get:()=>M.ListBase}),Object.defineProperty(j,"ListToolbar",{enumerable:!0,get:()=>M.ListToolbar}),Object.defineProperty(j,"LoadingIndicator",{enumerable:!0,get:()=>M.LoadingIndicator}),Object.defineProperty(j,"Pagination",{enumerable:!0,get:()=>M.Pagination}),Object.defineProperty(j,"RaSimpleFormIterator",{enumerable:!0,get:()=>M.SimpleFormIterator}),Object.defineProperty(j,"RecordContextProvider",{enumerable:!0,get:()=>M.RecordContextProvider}),Object.defineProperty(j,"ReferenceArrayField",{enumerable:!0,get:()=>M.ReferenceArrayField}),Object.defineProperty(j,"ReferenceField",{enumerable:!0,get:()=>M.ReferenceField}),Object.defineProperty(j,"Resource",{enumerable:!0,get:()=>M.Resource}),Object.defineProperty(j,"ResourceContextProvider",{enumerable:!0,get:()=>M.ResourceContextProvider}),Object.defineProperty(j,"SaveButton",{enumerable:!0,get:()=>M.SaveButton}),Object.defineProperty(j,"SimpleFormIteratorContext",{enumerable:!0,get:()=>M.SimpleFormIteratorContext}),Object.defineProperty(j,"SimpleShowLayout",{enumerable:!0,get:()=>M.SimpleShowLayout}),Object.defineProperty(j,"SingleFieldList",{enumerable:!0,get:()=>M.SingleFieldList}),Object.defineProperty(j,"TabbedFormTabs",{enumerable:!0,get:()=>M.TabbedFormTabs}),Object.defineProperty(j,"TopToolbar",{enumerable:!0,get:()=>M.TopToolbar}),Object.defineProperty(j,"UrlField",{enumerable:!0,get:()=>M.UrlField}),Object.defineProperty(j,"choices",{enumerable:!0,get:()=>M.choices}),Object.defineProperty(j,"email",{enumerable:!0,get:()=>M.email}),Object.defineProperty(j,"maxLength",{enumerable:!0,get:()=>M.maxLength}),Object.defineProperty(j,"maxValue",{enumerable:!0,get:()=>M.maxValue}),Object.defineProperty(j,"minLength",{enumerable:!0,get:()=>M.minLength}),Object.defineProperty(j,"minValue",{enumerable:!0,get:()=>M.minValue}),Object.defineProperty(j,"number",{enumerable:!0,get:()=>M.number}),Object.defineProperty(j,"regex",{enumerable:!0,get:()=>M.regex}),Object.defineProperty(j,"required",{enumerable:!0,get:()=>M.required}),Object.defineProperty(j,"useArrayInput",{enumerable:!0,get:()=>M.useArrayInput}),Object.defineProperty(j,"useAuthProvider",{enumerable:!0,get:()=>M.useAuthProvider}),Object.defineProperty(j,"useChoices",{enumerable:!0,get:()=>M.useChoices}),Object.defineProperty(j,"useChoicesContext",{enumerable:!0,get:()=>M.useChoicesContext}),Object.defineProperty(j,"useCreateContext",{enumerable:!0,get:()=>M.useCreateContext}),Object.defineProperty(j,"useCreateController",{enumerable:!0,get:()=>M.useCreateController}),Object.defineProperty(j,"useDataProvider",{enumerable:!0,get:()=>M.useDataProvider}),Object.defineProperty(j,"useEditContext",{enumerable:!0,get:()=>M.useEditContext}),Object.defineProperty(j,"useEditController",{enumerable:!0,get:()=>M.useEditController}),Object.defineProperty(j,"useGetIdentity",{enumerable:!0,get:()=>M.useGetIdentity}),Object.defineProperty(j,"useGetList",{enumerable:!0,get:()=>M.useGetList}),Object.defineProperty(j,"useGetMany",{enumerable:!0,get:()=>M.useGetMany}),Object.defineProperty(j,"useGetManyReference",{enumerable:!0,get:()=>M.useGetManyReference}),Object.defineProperty(j,"useGetOne",{enumerable:!0,get:()=>M.useGetOne}),Object.defineProperty(j,"useInput",{enumerable:!0,get:()=>M.useInput}),Object.defineProperty(j,"useListContext",{enumerable:!0,get:()=>M.useListContext}),Object.defineProperty(j,"useListController",{enumerable:!0,get:()=>M.useListController}),Object.defineProperty(j,"useLocaleState",{enumerable:!0,get:()=>M.useLocaleState}),Object.defineProperty(j,"useNotify",{enumerable:!0,get:()=>M.useNotify}),Object.defineProperty(j,"usePermissions",{enumerable:!0,get:()=>M.usePermissions}),Object.defineProperty(j,"useRecordContext",{enumerable:!0,get:()=>M.useRecordContext}),Object.defineProperty(j,"useRefresh",{enumerable:!0,get:()=>M.useRefresh}),Object.defineProperty(j,"useResourceContext",{enumerable:!0,get:()=>M.useResourceContext}),Object.defineProperty(j,"useResourceDefinition",{enumerable:!0,get:()=>M.useResourceDefinition}),Object.defineProperty(j,"useResourceDefinitions",{enumerable:!0,get:()=>M.useResourceDefinitions}),Object.defineProperty(j,"useShowContext",{enumerable:!0,get:()=>M.useShowContext}),Object.defineProperty(j,"useShowController",{enumerable:!0,get:()=>M.useShowController}),Object.defineProperty(j,"useSimpleFormIterator",{enumerable:!0,get:()=>M.useSimpleFormIterator}),Object.defineProperty(j,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>M.useSimpleFormIteratorItem}),Object.defineProperty(j,"useTranslate",{enumerable:!0,get:()=>M.useTranslate}),Object.defineProperty(j,"useTranslateLabel",{enumerable:!0,get:()=>M.useTranslateLabel}),Object.defineProperty(j,"useUnselect",{enumerable:!0,get:()=>M.useUnselect}),Object.defineProperty(j,"useUnselectAll",{enumerable:!0,get:()=>M.useUnselectAll}),Object.defineProperty(j,"useUpdateMany",{enumerable:!0,get:()=>M.useUpdateMany}),Object.defineProperty(j,"withLifecycleCallbacks",{enumerable:!0,get:()=>M.withLifecycleCallbacks}),j.ActionsField=c5,j.ActionsMenu=ii,j.ActivatePage=rx,j.Admin=mx,j.AnimateButton=U0,j.AppBarStyled=hI,j.AppConfigContext=jd,j.AppConfigProvider=Dd,j.ApplicaAdmin=_G,j.ArrayInput=l5,j.AttachmentField=jB,j.AttachmentInput=D5,j.AuthBackground=jl,j.AutocompleteArrayInput=k5,j.AutocompleteInput=F5,j.Avatar=ka,j.BooleanInput=N5,j.Breadcrumbs=dB,j.BulkActionsToolbar=ZQ,j.BulkActionsToolbarClasses=ur,j.BulkFloatingActionsToolbar=_U,j.CardForm=TB,j.ChangePasswordForm=ug,j.CircularWithLabel=bB,j.CircularWithPath=QB,j.CoverField=MB,j.Create=pF,j.CreateInDialogButton=KU,j.Datagrid=rY,j.DateAgoField=RB,j.DateField=E5,j.DateInput=z5,j.DateTimeInput=W5,j.Dot=Kc,j.Drawer=PQ,j.DrawerHeader=db,j.DrawerHeaderStyled=Ab,j.DrawerToggle=Fv,j.Edit=CF,j.EditInDialogButton=XU,j.EmailField=m5,j.Empty=iY,j.EmptyClasses=xi,j.FileField=FB,j.FileInput=Y5,j.Footer=vg,j.FormHeader=mF,j.FunctionField=v5,j.GenericErrorPage=ax,j.Header=Lv,j.HeaderButton=ej,j.HeaderIconButton=n5,j.HeaderNotification=Nv,j.HeaderProfile=Vv,j.HeaderSpacer=Hv,j.HeaderToggleButton=Bs,j.HorizontalBar=OQ,j.IconButton=ms,j.ImageField=DB,j.ImageInput=G5,j.ImpersonateUserButton=VU,j.LabeledArrayInput=PB,j.LabeledInput=gn,j.Layout=FQ,j.LayoutContent=rb,j.LayoutProvider=Mv,j.LayoutWrapper=ob,j.LinearWithIcon=xB,j.LinearWithLabel=wB,j.List=hY,j.ListItem=vY,j.Loadable=bU,j.Loader=YQ,j.LoadingButton=cg,j.LocalStorage=cI,j.LocalizedTextField=b5,j.LocalizedTextInput=X5,j.LoginPage=ox,j.Logo=qg,j.LongForm=Mt,j.MainCard=or,j.MainIcon=Ap,j.MenuConfigContext=kd,j.MenuConfigProvider=kE,j.MenuPopover=Pd,j.NavGroup=MQ,j.NavMenu=jQ,j.Navigation=kQ,j.Notification=GQ,j.NotificationList=mY,j.NumberInput=_5,j.OnboardingModes=tl,j.OnboardingProvider=MU,j.OnboardingTip=NU,j.RawTableFormIterator=jv,j.ReadonlyField=T5,j.RecordInput=q5,j.RecoverPage=ix,j.ReferenceArrayInput=$5,j.ReferenceInput=eF,j.ReferenceManyField=NB,j.ReferenceManyInput=tF,j.RegisterPage=sx,j.ResponsiveSection=zv,j.ScrollTop=dp,j.ScrollX=xU,j.SearchInput=rF,j.SelectArrayInput=iF,j.SelectInput=aF,j.Show=RF,j.SimpleBar=lp,j.SimpleForm=SB,j.SimpleFormIterator=LF,j.SimpleList=BY,j.SizeField=P5,j.SmallIcon=fp,j.SmartTextInput=lF,j.TabbedForm=hg,j.TableFormIterator=g9,j.TableFormIteratorContext=Rd,j.TableFormIteratorItem=pv,j.TableFormIteratorItemContext=Fd,j.TextField=LB,j.TextInput=yr,j.ThemeConfigContext=Md,j.ThemeConfigProvider=dc,j.ThemeProvider=Hu,j.ThemeToggler=RQ,j.TimeInput=dF,j.Toolbar=mi,j.Tooltip=Zc,j.Transitions=Do,j.createI18nProvider=vx,j.getLocalizedValue=tf,j.localizedValueHasAllLocales=ef,j.parseTime=fI,j.useAppConfig=si,j.useBreadcrumbs=VE,j.useGetLocalizedValue=q4,j.useI18nLanguages=XG,j.useI18nProvider=yx,j.useLayoutContext=Bg,j.useLayoutDispatch=C9,j.useLayoutDrawerState=Bi,j.useLayoutLogoState=Rv,j.useLayoutMediaState=Ln,j.useLayoutNotificationsState=au,j.useLayoutState=Qs,j.useLayoutThemeState=E9,j.useLocalStorage=qd,j.useLocalizedValue=_4,j.useMemoizedObject=pI,j.useMenu=Nd,j.useMenuConfig=ai,j.usePopoverState=mc,j.useRefDimensions=$4,j.useResourceDefaultValues=gF,j.useResourceTitle=$d,j.useRestartOnboarding=FU,j.useSx=Br,j.useTableFormIterator=uI,j.useTableFormIteratorItem=X4,j.useThemeConfig=bn,j.uuid=Z4,j.withLayoutProvider=kv,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
273
273
  //# sourceMappingURL=react-admin.umd.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.4.216",
3
+ "version": "1.4.217",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.jsx CHANGED
@@ -30,6 +30,7 @@ export {
30
30
  FormDataConsumer,
31
31
  HttpError,
32
32
  I18nContextProvider,
33
+ ListBase,
33
34
  ListToolbar,
34
35
  LoadingIndicator,
35
36
  maxLength,