@applica-software-guru/react-admin 1.1.103 → 1.1.104

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.
@@ -262,5 +262,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
262
262
  `),G2)),$2=ue("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Te(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>U({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:Af(t,e.color),transition:`transform .${uf}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ut.css(DB||(DB=Ni`
263
263
  width: auto;
264
264
  animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
265
- `),K2)),RB=V.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiLinearProgress"}),{className:i,color:a="primary",value:l,valueBuffer:u,variant:A="indeterminate"}=r,f=Ke(r,Y2),p=U({},r,{color:a,variant:A}),C=J2(p),h=xt(),m={},I={bar1:{},bar2:{}};if(A==="determinate"||A==="buffer")if(l!==void 0){m["aria-valuenow"]=Math.round(l),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let B=l-100;h.direction==="rtl"&&(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(A==="buffer")if(u!==void 0){let B=(u||0)-100;h.direction==="rtl"&&(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 g.jsxs(X2,U({className:Xe(C.root,i),ownerState:p,role:"progressbar"},m,{ref:n},f,{children:[A==="buffer"?g.jsx(Z2,{className:C.dashed,ownerState:p}):null,g.jsx(q2,{className:C.bar1,ownerState:p,style:I.bar1}),A==="determinate"?null:g.jsx($2,{className:C.bar2,ownerState:p,style:I.bar2})]}))});process.env.NODE_ENV!=="production"&&(RB.propTypes={classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.number,valueBuffer:c.number,variant:c.oneOf(["buffer","determinate","indeterminate","query"])});const e6=RB,t6=ue("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),jB=()=>g.jsx(t6,{children:g.jsx(e6,{color:"primary"})}),n6=e=>t=>g.jsx(S.Suspense,{fallback:g.jsx(jB,{}),children:g.jsx(e,{...t})}),ic=({title:e})=>g.jsxs(b.Stack,{direction:"row",children:[g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]});ic.propTypes={title:c.string.isRequired};const kB=ue(M.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}})),df=({children:e})=>{const t=gt.useLocation(),{pathname:n}=t;return S.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};df.propTypes={children:c.node};const r6=ue("div")({width:"100%",overflowX:"auto",display:"block"}),ff=({title:e})=>g.jsx(b.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});ff.propTypes={title:c.string.isRequired};const gf=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(i=>i.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},o6=(e,t)=>e&&e.data?{data:gf(e.data,t),total:e.total+1}:e,i6=(e,t)=>e&&e.length>0?gf(e,t):e,s6=(e,t)=>e&&e.data?{...e,data:gf(e.data,t),total:e.total+1}:e,pf=({onClose:e,record:t,children:n,redirect:r,onSubmit:i,onSuccess:a,onError:l})=>{const u=qg.useQueryClient(),A=M.useResourceContext(),f=M.useRedirect(),p=M.useNotify(),C=S.useCallback(B=>{const O=Date.now();u.setQueryData([A,"getOne",{id:B.id}],B),u.setQueriesData([A,"getList"],R=>s6(R,B),{updatedAt:O}),u.setQueriesData([A,"getMany"],R=>i6(R,B),{updatedAt:O}),u.setQueriesData([A,"getManyReference"],R=>o6(R,B),{updatedAt:O}),e(),p("ra.notification.created"),r!==void 0&&f(r,A,B.id,B),a&&a(B)},[e,a,u,A,p,f,r]),{save:h,...m}=M.useCreateController({mutationOptions:{onSuccess:C,onError:l}}),I=S.useCallback(B=>{i?i(B,e):h&&h(B)},[i,h,e]);return g.jsx(M.CreateContextProvider,{value:{record:t,save:I,saving:m==null?void 0:m.saving,redirect:r},children:S.cloneElement(n,{...n.props,toolbar:g.jsxs(Mr,{children:[g.jsx(M.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:m==null?void 0:m.saving}),g.jsx(M.SaveButton,{disabled:m==null?void 0:m.saving})]})})})};pf.propTypes={children:c.node,onClose:c.func,record:c.object,redirect:c.oneOf(["list","edit","show",!1])},pf.defaultProps={redirect:!1};const a6={true:{_scrollToTop:!0},false:{}},l6=ue(b.Fab,{name:"RaApplicaCreateInDialogButton",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}})),hf=({fullWidth:e,maxWidth:t,label:n,record:r,redirect:i,scrollToTop:a,className:l,sx:u,onSubmit:A,onSuccess:f,onError:p,...C})=>{const[h,m]=S.useState(!1),I=M.useTranslate(),B=M.useResourceContext(),{openDialog:v,closeDialog:O}=xo(),R=S.useCallback(()=>v(B,()=>m(!0)),[v,B]),x=S.useCallback(()=>O(B,()=>m(!1)),[O,B]),T=b.useMediaQuery(P=>P.breakpoints.down("md"));return g.jsxs(g.Fragment,{children:[T?g.jsx(l6,{...C,state:a6[String(a)],color:"primary",className:Xe(M.CreateButtonClasses.floating,l),"aria-label":n&&I(n),onClick:R,children:g.jsx(jn.Add,{})}):g.jsx(M.Button,{...C,sx:u,label:n,onClick:R,children:g.jsx(jn.Add,{})}),g.jsx(b.Dialog,{open:h,onClose:x,fullWidth:e,maxWidth:t,children:g.jsx(pf,{...C,redirect:i,record:r,onClose:x,onSubmit:A,onSuccess:f,onError:p})})]})};hf.defaultProps={fullWidth:!0,maxWidth:"md",label:"ra.action.create",scrollToTop:!0},hf.propTypes={...M.Button.propTypes,redirect:c.oneOf(["list","edit","show",!1]),fullWidth:c.bool,maxWidth:c.oneOf(["xs","sm","md","lg","xl",!1]),label:c.string,record:c.object,scrollToTop:c.bool,className:c.string,sx:c.object,children:c.node,onSubmit:c.func,onSuccess:c.func,onError:c.func};const FB=({onClose:e,children:t})=>{const n=M.useNotify(),r=M.useRecordContext(),i=M.useResourceContext(),{id:a}=r,{isLoading:l,data:u}=M.useGetOne(i,{id:a}),A=S.useCallback(()=>{n("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e()},[e,n]),{save:f,saving:p}=M.useEditController({resource:i,id:a,mutationMode:"pessimistic",mutationOptions:{onSuccess:A}});return g.jsx(M.EditContextProvider,{value:{record:u,isLoading:l,save:f,saving:p},children:S.cloneElement(t,{toolbar:g.jsxs(Mr,{children:[g.jsx(M.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),g.jsx(M.SaveButton,{})]})})})};FB.propTypes={children:c.node,onClose:c.func};const Cf=({fullWidth:e,maxWidth:t,label:n,...r})=>{const[i,a]=S.useState(!1),{openDialog:l,closeDialog:u}=xo(),A=M.useResourceContext(),f=S.useCallback(()=>l(A,()=>a(!0)),[l,A]),p=S.useCallback(()=>u(A,()=>a(!1)),[u,A]);return g.jsxs(g.Fragment,{children:[g.jsx(M.Button,{label:n,onClick:f,children:g.jsx(jn.Edit,{})}),g.jsx(b.Dialog,{open:i,onClose:p,fullWidth:e,maxWidth:t,children:g.jsx(FB,{...r,onClose:p})})]})};Cf.defaultProps={fullWidth:!0,maxWidth:"md",label:"ra.action.edit"},Cf.propTypes={fullWidth:c.bool,maxWidth:c.oneOf(["xs","sm","md","lg","xl",!1]),label:c.string};const LB=({label:e="ra.auth.sign_in",...t})=>{const n=M.useRecordContext(),[r,i]=S.useState(!1),a=M.useAuthProvider(),l=S.useCallback(u=>{u.stopPropagation(),u.preventDefault(),i(!0),a.impersonate(n==null?void 0:n.id).then(()=>{i(!1),document.location.href="/"})},[a,n==null?void 0:n.id]);return g.jsx(M.Button,{disabled:r||a.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:l,...t,children:g.jsx(jn.VpnKey,{})})};LB.propTypes={label:c.string};const c6=ue(M.Datagrid,{name:"ApplicaDatagrid",slot:"root"})(()=>({"& .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"}})),Ef=e=>g.jsx(c6,{...e});Ef.propTypes={...M.Datagrid.propTypes},Ef.defaultProps={...M.Datagrid.defaultProps};const u6=ue("div")(({theme:e})=>({padding:e.spacing(2)})),NB=({actions:e,className:t,...n})=>{const{hasCreate:r}=be.useResourceDefinition(n),i=be.useResourceContext(n),a=be.useTranslate(),l=be.useGetResourceLabel(),u=a(`resources.${i}.forcedCaseName`,{smart_count:0,_:l(i,0)}),A=a("ra.page.empty",{name:u}),f=a("ra.page.invite");return g.jsxs(A6,{className:t,children:[g.jsxs("div",{className:Vi.message,children:[g.jsx(jn.Inbox,{className:Vi.icon}),g.jsx(b.Typography,{variant:"h4",paragraph:!0,children:a(`resources.${i}.empty`,{_:A})}),r&&g.jsx(b.Typography,{variant:"body1",children:a(`resources.${i}.invite`,{_:f})})]}),g.jsx(u6,{className:Vi.toolbar,children:e})]})},sc="ApplicaEmpty",Vi={message:`${sc}-message`,icon:`${sc}-icon`,toolbar:`${sc}-toolbar`},A6=ue("span",{name:sc,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${Vi.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${Vi.icon}`]:{width:"9em",height:"9em"},[`& .${Vi.toolbar}`]:{textAlign:"center",marginTop:"2em"}}));NB.propTypes={actions:c.element,className:c.string};const d6=ai(M.List,{name:"RaApplicaList",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:e.spacing(2)}},"& .RaList-actions":{padding:e.spacing(2),paddingTop:e.spacing(1),alignItems:"center","& form":{alignItems:"center"},"& .RaFilterForm-filterFormInput":{"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},marginTop:e.spacing(1.5)},"& .RaFilterFormInput-hideButton":{marginTop:e.spacing(1),marginBottom:e.spacing(.5),marginRight:e.spacing(1)},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"flex-end",minHeight:"fit-content"}},"& .RaList-content":{"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}})),VB=e=>g.jsx(Nn,{content:!1,children:g.jsx(d6,{...e})});VB.propTypes={...M.List.propTypes};const f6=()=>{const e=M.useRefresh(),t=M.useNotify(),n=M.useUnselectAll(),r=M.useResourceContext(),{selectedIds:i,data:a}=M.useListContext(),l=M.useRecordContext(),u=i.map(C=>a.find(h=>h.id===C)),[A,{isLoading:f}]=M.useUpdateMany(r,{ids:i.length>0?i:[l==null?void 0:l.id],data:{readed:Dr().format("YYYY-MM-DD HH:mm:ss")},rows:u},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),n(r)},onError:()=>t("ra.notification.readed_error","warning"),onFailure:()=>t("ra.notification.readed_error","warning")}),p=S.useCallback(()=>{A()},[A]);return g.jsx(M.Button,{label:"ra.notification.mark_as_readed",disabled:f||(l==null?void 0:l.readed)!==null,onClick:p,children:g.jsx(jn.Email,{})})},g6=()=>{const e=M.useRefresh(),t=M.useNotify(),n=M.useUnselectAll(),{selectedIds:r,data:i}=M.useListContext(),a=M.useRecordContext(),l=M.useResourceContext(),u=r.map(C=>i.find(h=>h.id===C)).concat([a]),[A,{isLoading:f}]=M.useUpdateMany(l,{ids:r.length>0?r:[a==null?void 0:a.id],data:{readed:null},rows:u},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),n("notifications")},onFailure:()=>t("resources.notifications.messages.unreaded.error","warning")}),p=S.useCallback(()=>{A()},[A]);return g.jsx(M.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:f||a&&!(a!=null&&a.readed),onClick:p,children:g.jsx(jn.Drafts,{})})},p6=e=>{const t=M.useRecordContext(e),n=M.useResourceContext(e),r=M.useRedirect(),i=M.useNotify(),a=M.useTranslate(),[l]=M.useLocaleState(),u=S.useMemo(()=>t!=null&&t.readed?Dr(t==null?void 0:t.readed).locale(l).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,l]),[A]=M.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Dr().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)},onFailure:()=>{i("ra.notification.readed_error","warning")}}),f=S.useCallback(()=>A(),[A]);return g.jsxs("div",{onClick:f,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[g.jsx(b.Typography,{variant:"subtitle1",children:g.jsxs(b.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),g.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}}),u&&g.jsx(b.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:a("ra.notification.readed",{readed:u})})]})},h6=({...e})=>{const t=b.useTheme(),{mode:n,colorize:r,density:i}=S.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?b.darken:b.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),a=S.useCallback(l=>({backgroundColor:l!=null&&l.readed?r(t.palette.primary[n],i):r(t.palette.secondary[n],i)}),[t,n,r,i]);return g.jsxs(M.Datagrid,{...e,rowStyle:a,children:[g.jsx(p6,{source:"notification",sortable:!1,label:"ra.notification"}),g.jsx(Tl,{source:"created",label:"ra.notification.created"}),g.jsxs(fi,{children:[g.jsx(f6,{}),g.jsx(g6,{})]})]})},ac={width:"1.5rem",alignSelf:"center"},mf=({source:e,label:t,variant:n,record:r,spaceBottom:i,spaceTop:a,component:l,leftIcon:u,rightIcon:A,button:f,buttonProps:p,...C})=>{const{getCurrentDialog:h}=xo(),m=be.useResourceContext(C),I=h(),B=be.useRecordContext(),v=r||B,O=st.get(v,e||"");return g.jsxs(b.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:R=>({pt:1,pb:1,borderBottom:`1px solid ${R.palette.divider}`,...i&&{mb:2},...a&&{mt:2}}),children:[g.jsxs(b.Stack,{direction:"row",alignItems:"start",children:[u&&(S.isValidElement(u)?S.cloneElement(u,{style:ac}):S.createElement(u,{style:ac})),g.jsx(be.FieldTitle,{label:t,source:e,resource:I||m})]}),g.jsxs(b.Stack,{direction:"row",alignItems:"center",children:[l?S.isValidElement(l)?S.cloneElement(l,{record:v,resource:m,value:O}):S.createElement(l,{source:e,record:v,resource:m,value:O}):g.jsx(b.Typography,{variant:n,children:O}),A&&(S.isValidElement(A)?S.cloneElement(A,{style:ac}):S.createElement(A,{style:ac})),f&&g.jsx(b.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:f})]})]})};mf.propTypes={source:c.string,label:c.string,record:c.object,variant:c.oneOf(["body1","body2","caption","button","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),spaceTop:c.bool,spaceBottom:c.bool,leftIcon:c.oneOfType([c.elementType,c.element,c.func]),rightIcon:c.oneOfType([c.elementType,c.element,c.func]),component:c.oneOfType([c.elementType,c.element,c.func]),buttonProps:c.object,button:c.string},mf.defaultProps={variant:"body1"};const HB=()=>{const e=Ut.useTheme(),n=e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light;return g.jsx(b.Box,{sx:{position:"absolute",filter:"blur(20px)",bottom:0,p:4,pb:8},children:g.jsxs("svg",{width:"100%",height:"calc(100vh - 175px)",viewBox:"0 0 117 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("path",{d:"M15.7523 21.9601L14.0526 17.2379H4.6534L2.95369 21.9601H0L7.78722 0.903564H10.9187L18.706 21.9601H15.7523ZM5.60948 14.6207H13.0988L9.33912 4.24262L5.60948 14.6207Z",fill:n}),g.jsx("path",{d:"M33.592 8.8437C35.0538 10.3782 35.7997 12.2433 35.7997 14.4391C35.7997 16.6348 35.0538 18.5302 33.592 20.0647C32.1301 21.5992 30.3404 22.3513 28.2504 22.3513C25.7747 22.3513 23.8949 21.3593 22.6109 19.3731V27.9769H20.0151V6.91804H22.6109V9.505C23.8949 7.51879 25.7724 6.52686 28.2504 6.52686C30.3381 6.52686 32.1301 7.30923 33.592 8.8437ZM31.6821 18.2881C32.6959 17.2356 33.204 15.9712 33.204 14.4367C33.204 12.9023 32.6959 11.6402 31.6821 10.6157C30.6683 9.56321 29.4143 9.05094 27.9224 9.05094C26.4306 9.05094 25.1489 9.56321 24.1328 10.6157C23.1189 11.6379 22.6109 12.9023 22.6109 14.4367C22.6109 15.9712 23.1189 17.2333 24.1328 18.2881C25.1466 19.3103 26.4006 19.8225 27.9224 19.8225C29.4443 19.8225 30.6683 19.3103 31.6821 18.2881Z",fill:n}),g.jsx("path",{d:"M51.5798 8.8437C53.0416 10.3782 53.7875 12.2433 53.7875 14.4391C53.7875 16.6348 53.0416 18.5302 51.5798 20.0647C50.1179 21.5992 48.3282 22.3513 46.2382 22.3513C43.7625 22.3513 41.8827 21.3593 40.5987 19.3731V27.9769H38.0029V6.91804H40.5987V9.505C41.8827 7.51879 43.7602 6.52686 46.2382 6.52686C48.3258 6.52686 50.1179 7.30923 51.5798 8.8437ZM49.6699 18.2881C50.6837 17.2356 51.1918 15.9712 51.1918 14.4367C51.1918 12.9023 50.6837 11.6402 49.6699 10.6157C48.6561 9.56321 47.4021 9.05094 45.9102 9.05094C44.4184 9.05094 43.1367 9.56321 42.1206 10.6157C41.1067 11.6379 40.5987 12.9023 40.5987 14.4367C40.5987 15.9712 41.1067 17.2333 42.1206 18.2881C43.1344 19.3103 44.3884 19.8225 45.9102 19.8225C47.4321 19.8225 48.6561 19.3103 49.6699 18.2881Z",fill:n}),g.jsx("path",{d:"M55.5449 21.96V0H58.1407V21.96H55.5449Z",fill:n}),g.jsx("path",{d:"M60.3188 2.43569C60.3188 1.47402 61.0948 0.661377 62.0786 0.661377C63.0624 0.661377 63.8083 1.47402 63.8083 2.43569C63.8083 3.39736 63.0324 4.17973 62.0786 4.17973C61.1248 4.17973 60.3188 3.39736 60.3188 2.43569ZM60.7669 21.9578V6.91803H63.3626V21.9578H60.7669Z",fill:n}),g.jsx("path",{d:"M67.8354 20.095C66.3436 18.5605 65.5977 16.6954 65.5977 14.4391C65.5977 12.1828 66.3436 10.3176 67.8354 8.81343C69.3273 7.27896 71.2071 6.52686 73.4449 6.52686C76.3986 6.52686 78.8743 8.06133 80.0382 10.4667L77.8605 11.731C77.1145 10.136 75.4425 9.08354 73.4449 9.08354C71.9531 9.08354 70.6991 9.59581 69.6853 10.618C68.7015 11.6402 68.1934 12.9046 68.1934 14.4391C68.1934 15.9735 68.7015 17.2076 69.6853 18.2299C70.6991 19.2521 71.9531 19.7643 73.4449 19.7643C75.4448 19.7643 77.1145 18.7421 77.9505 17.1471L80.1583 18.4394C78.8766 20.8168 76.3386 22.349 73.4449 22.349C71.2071 22.349 69.3273 21.5969 67.8354 20.0927V20.095Z",fill:n}),g.jsx("path",{d:"M94.2686 6.91793H96.8643V21.9577H94.2686V19.3707C92.9869 21.3569 91.107 22.3488 88.6314 22.3488C86.5437 22.3488 84.7516 21.5967 83.2898 20.0623C81.828 18.5278 81.082 16.6324 81.082 14.4366C81.082 12.2409 81.828 10.3757 83.2898 8.84126C84.7516 7.30679 86.5414 6.52441 88.6314 6.52441C91.107 6.52441 92.9869 7.51635 94.2686 9.50256V6.9156V6.91793ZM92.7467 18.288C93.7605 17.2355 94.2686 15.9711 94.2686 14.4366C94.2686 12.9022 93.7605 11.6401 92.7467 10.6156C91.7329 9.5631 90.4789 9.05083 88.957 9.05083C87.4351 9.05083 86.2112 9.5631 85.1973 10.6156C84.1835 11.6378 83.6755 12.9022 83.6755 14.4366C83.6755 15.9711 84.1835 17.2331 85.1973 18.288C86.2112 19.3102 87.4652 19.8224 88.957 19.8224C90.4489 19.8224 91.7306 19.3102 92.7467 18.288Z",fill:n}),g.jsx("path",{d:"M0.836162 48.9264L3.22406 47.5432C4.03003 50.0999 5.90986 51.3643 8.80351 51.3643C11.6972 51.3643 13.219 50.072 13.219 48.116C13.219 47.1241 12.8311 46.372 12.0851 45.8597C11.3392 45.3475 10.0575 44.8375 8.29545 44.2647L6.29553 43.6034C5.84751 43.4218 5.25169 43.1517 4.56581 42.8211C3.87992 42.4601 3.37186 42.0992 3.04393 41.7383C2.35804 40.9862 1.72989 39.7521 1.72989 38.22C1.72989 36.3851 2.35573 34.9414 3.63975 33.889C4.92376 32.8062 6.47335 32.2637 8.29314 32.2637C11.6048 32.2637 14.1405 34.0985 15.3645 36.8648L13.0366 38.2176C12.1406 36.0521 10.561 34.9694 8.29314 34.9694C6.02533 34.9694 4.50345 36.1732 4.50345 38.0989C4.50345 39.0303 4.83139 39.7242 5.48725 40.2038C6.14311 40.6858 7.27702 41.1958 8.88896 41.708L10.1129 42.0992C10.3508 42.19 10.7088 42.3088 11.2168 42.5207C12.2607 42.9119 12.5008 43.0609 13.3045 43.5126C14.1405 43.9643 14.4084 44.295 14.9164 44.8957C15.6624 45.6478 15.9603 46.7306 15.9603 48.0532C15.9603 49.888 15.3044 51.362 13.9604 52.475C12.6186 53.5577 10.8866 54.1003 8.73885 54.1003C4.83139 54.1003 1.93773 52.1443 0.831543 48.9264H0.836162Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M25.089 54.1001C22.9112 54.1001 21.0314 53.348 19.5095 51.8135C17.9876 50.279 17.2417 48.4139 17.2417 46.1878C17.2417 43.9618 17.9876 42.0967 19.5095 40.5622C21.0314 39.0277 22.9112 38.2756 25.089 38.2756C27.2667 38.2756 29.1465 39.0277 30.6684 40.5622C32.1903 42.0967 32.9663 43.9618 32.9663 46.1878C32.9663 48.4139 32.1903 50.279 30.6684 51.8135C29.1465 53.348 27.2667 54.1001 25.089 54.1001ZM28.8486 50.0089C29.8624 48.9867 30.3705 47.7223 30.3705 46.1878C30.3705 44.6534 29.8624 43.3913 28.8486 42.3668C27.8348 41.3446 26.5808 40.8323 25.089 40.8323C23.5971 40.8323 22.3731 41.3446 21.3593 42.3668C20.3455 43.389 19.8374 44.6534 19.8374 46.1878C19.8374 47.7223 20.3455 48.9844 21.3593 50.0089C22.3731 51.0311 23.6271 51.5434 25.089 51.5434C26.5508 51.5434 27.8348 51.0311 28.8486 50.0089Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M42.5409 34.7877C39.9151 34.5782 38.6034 35.7215 38.6034 38.2176V38.6693H42.5409V41.1958H38.6034V53.7091H36.0077V41.1958H33.6221V38.6693H36.0077V38.2176C36.0077 34.1567 38.3355 31.9912 42.5409 32.2613V34.7877Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M52.7718 41.1958H48.8043V49.3478C48.8043 51.6647 50.116 51.4831 52.7718 51.3643V53.7114C48.2362 54.3122 46.2086 53.0804 46.2086 49.3502V41.1981H43.2549V38.6717H46.2086V35.2418L48.8043 34.4595V38.6717H52.7718V41.1981V41.1958Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M72.9095 38.6692H75.6254L71.002 53.7089H68.3462L64.8544 42.5787L61.3627 53.7089H58.7069L54.0835 38.6692H56.797L60.0786 50.0998L63.5981 38.6692H66.1038L69.6233 50.13L72.9049 38.6692H72.9095Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M88.5694 38.6692H91.1651V53.7089H88.5694V51.1219C87.2876 53.1081 85.4078 54.1001 82.9322 54.1001C80.8445 54.1001 79.0524 53.348 77.5906 51.8135C76.1287 50.279 75.3828 48.3836 75.3828 46.1878C75.3828 43.9921 76.1287 42.127 77.5906 40.5925C79.0524 39.058 80.8422 38.2756 82.9322 38.2756C85.4078 38.2756 87.2876 39.2676 88.5694 41.2538V38.6668V38.6692ZM87.0475 50.0392C88.0613 48.9867 88.5694 47.7223 88.5694 46.1878C88.5694 44.6534 88.0613 43.3913 87.0475 42.3668C86.0337 41.3143 84.7797 40.802 83.2578 40.802C81.7359 40.802 80.5119 41.3143 79.4981 42.3668C78.4843 43.389 77.9762 44.6534 77.9762 46.1878C77.9762 47.7223 78.4843 48.9844 79.4981 50.0392C80.5119 51.0614 81.7659 51.5737 83.2578 51.5737C84.7496 51.5737 86.0313 51.0614 87.0475 50.0392Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M96.8023 41.1957C97.6683 39.3306 99.2202 38.3992 101.456 38.3992V41.1375C100.172 41.0769 99.0978 41.4076 98.1741 42.1597C97.2503 42.9118 96.8023 44.0853 96.8023 45.7386V53.709H94.2065V38.6693H96.8023V41.1957Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M104.409 47.3918C104.917 50.0696 106.975 51.6343 109.809 51.6343C111.778 51.6343 113.21 50.9125 114.104 49.4385L116.312 50.7029C114.85 52.9592 112.672 54.1025 109.748 54.1025C107.391 54.1025 105.453 53.3504 103.961 51.8765C102.499 50.3723 101.753 48.4769 101.753 46.1903C101.753 43.9037 102.469 42.0386 103.931 40.5344C105.393 39.0302 107.273 38.2781 109.568 38.2781C111.746 38.2781 113.536 39.0604 114.91 40.6252C116.312 42.1597 116.998 44.0248 116.998 46.2206C116.998 46.6117 116.968 47.0029 116.908 47.3941H104.407L104.409 47.3918ZM104.409 45.1052H114.374C113.926 42.2482 111.956 40.7439 109.571 40.7439C106.797 40.7439 104.857 42.4577 104.409 45.1052Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M22.1377 69.1726V70.4369C22.1377 73.1752 21.2116 75.4595 19.3341 77.2943C17.4542 79.0989 14.9786 80.0024 11.9048 80.0024C8.83102 80.0024 6.08748 78.9499 3.99749 76.8449C1.93983 74.7097 0.895996 72.1228 0.895996 69.0841C0.895996 66.0454 1.93983 63.4584 3.99749 61.3535C6.08517 59.2182 8.71093 58.1658 11.8448 58.1658C13.7846 58.1658 15.5444 58.6478 17.1563 59.5792C18.7683 60.5106 20.02 61.7144 20.886 63.2489L18.4981 64.6623C17.3041 62.3757 14.7084 60.8715 11.8147 60.8715C9.42684 60.8715 7.45925 61.6539 5.93737 63.2489C4.41549 64.8136 3.63954 66.7695 3.63954 69.0841C3.63954 71.3986 4.41549 73.3545 5.93737 74.9193C7.48927 76.484 9.48688 77.2664 11.9348 77.2664C16.1102 77.2664 18.796 74.9798 19.3641 71.7013H11.697V69.1749H22.14L22.1377 69.1726Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M34.636 64.5691H37.2317V79.6088H34.636V77.4433C33.5921 79.1571 31.9802 80 29.8024 80C26.3107 80 24.0151 77.6226 24.0151 73.8039V64.5691H26.6109V73.6525C26.6109 76.0881 28.0127 77.5039 30.3105 77.5039C32.9062 77.5039 34.636 75.9089 34.636 72.5395V64.5691Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M42.4209 67.0956C43.287 65.2305 44.8389 64.2991 47.0743 64.2991V67.0374C45.7903 66.9768 44.7165 67.3075 43.7927 68.0596C42.869 68.8117 42.4209 69.9852 42.4209 71.6385V79.6089H39.8252V64.5692H42.4209V67.0956Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M59.3049 64.5691H61.9007V79.6088H59.3049V77.4433C58.2611 79.1571 56.6491 80 54.4714 80C50.9796 80 48.6841 77.6226 48.6841 73.8039V64.5691H51.2798V73.6525C51.2798 76.0881 52.6816 77.5039 54.9794 77.5039C57.5752 77.5039 59.3049 75.9089 59.3049 72.5395V64.5691Z",fill:n,opacity:"0.6"})]})})},zB=({children:e,...t})=>{const n=xt();return g.jsx(Nn,{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:g.jsx(b.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};zB.propTypes={children:c.node};const ea=({version:e,name:t,copy:n,children:r,background:i=HB})=>g.jsxs(b.Box,{sx:{minHeight:"100vh"},children:[S.isValidElement(i)?i:S.createElement(i),g.jsxs(b.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{ml:3,mt:3},children:g.jsx(ic,{title:t})}),g.jsxs(b.Grid,{item:!0,xs:12,children:[g.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:g.jsx(b.Grid,{item:!0,children:g.jsx(zB,{children:r})})}),g.jsx(b.Grid,{item:!0,sx:{pb:1},children:g.jsx(Fs,{name:t,copy:n,version:e})})]})]})]});ea.propTypes={children:c.node,version:c.string,name:c.string,copy:c.string,background:c.oneOfType([c.node,c.func,c.object])};const WB=({name:e,copy:t,version:n,background:r})=>{const i=be.useTranslate(),a=be.useAuthProvider(),l=be.useNotify(),u=gt.useNavigate(),{token:A}=gt.useParams();return S.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{l("ra.auth.activate_success",{type:"info"}),yt.delay(()=>u("/login"),1e3)}).catch(f=>{l(f,{type:"error"}),yt.delay(()=>u("/login"),1e3)})},[A]),g.jsx(ea,{name:e,copy:t,version:n,background:r,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:i("ra.auth.activate")}),g.jsx(b.Typography,{component:gt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})};WB.propTypes={name:c.string.isRequired,version:c.string.isRequired,background:c.node};const lc=({version:e,name:t,copy:n,enablePasswordRecover:r,enableRegistration:i,redirectTo:a,background:l})=>{const[u,A]=be.useSafeSetState(!1),f=be.useLogin(),p=be.useTranslate(),C=be.useNotify(),h=be.useCheckAuth(),m=gt.useNavigate();S.useEffect(()=>{h({},!1).then(()=>{m("/")}).catch(()=>{})},[h,m]);const I=B=>{A(!0),f(B,a).then(()=>{A(!1)}).catch(v=>{A(!1),C(typeof v=="string"?v:typeof v>"u"||!v.message?"ra.auth.sign_in_error":v.message,{type:"error",messageArgs:{_:typeof v=="string"?v:v&&v.message?v.message:void 0}})})};return g.jsx(ea,{name:t,version:e,copy:n,background:l,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:"Login"}),i&&g.jsx(b.Typography,{component:gt.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:p("ra.auth.register")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(be.Form,{onSubmit:I,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Hn,{autoFocus:!0,source:"username",label:p("ra.auth.username"),autoComplete:"username",validate:be.required(),placeholder:"user@company.name",fullWidth:!0})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Hn,{source:"password",label:p("ra.auth.password"),type:"password",autoComplete:"current-password",validate:be.required(),placeholder:p("ra.auth.password_placeholder"),fullWidth:!0})})]}),r&&g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:g.jsx(b.Link,{variant:"h6",component:gt.Link,to:"/recover",color:"text.primary",children:p("ra.auth.forgot_password")})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?g.jsx(b.CircularProgress,{size:19,thickness:3}):p("ra.auth.sign_in")})})]})})]})})};lc.propTypes={version:c.string.isRequired,name:c.string.isRequired,enablePasswordRecover:c.bool,enableRegister:c.bool,background:c.element},lc.defaultProps={enablePasswordRecover:!1,enableRegister:!1,background:g.jsx(HB,{})};const UB=({name:e,copy:t,version:n,background:r})=>{const[i,a]=S.useState(!1),l=be.useTranslate(),u=be.useRedirect(),A=be.useNotify(),f=be.useAuthProvider(),p=({email:C})=>{a(!0),f.recover(C).then(h=>{const m=`ra.auth.recover_${h.responseCode}`,I=h.responseCode==="ok"?"info":"error";A(m,{type:I}),u("/login")}).catch(h=>{A(h,{type:"error"})}).finally(()=>a(!1))};return g.jsx(ea,{name:e,copy:t,version:n,background:r,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:l("ra.auth.recover.title")}),g.jsx(b.Typography,{component:gt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:l("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(M.Form,{onSubmit:p,children:[g.jsx(b.Grid,{container:!0,children:g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Hn,{source:"email",validate:[be.required(),be.email()]})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:g.jsx(b.Typography,{variant:"caption",children:l("ra.auth.recover.inbox_help")})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?g.jsx(b.CircularProgress,{size:19,thickness:3}):l("ra.auth.recover")})})]})})]})})};UB.propTypes={name:c.string.isRequired,version:c.string.isRequired,background:c.node};const YB=({name:e,copy:t,version:n})=>{const[r,i]=S.useState(!1),a=be.useTranslate(),l=be.useRedirect(),u=be.useNotify(),A=be.useAuthProvider(),f=p=>{i(!0),A.register(p).then(C=>{const h=`ra.auth.register_${C.responseCode}`,m=C.responseCode==="ok"?"info":"error";u(h,{type:m}),l("/login")}).catch(C=>{u(C,{type:"error"})}).finally(()=>i(!1))};return g.jsx(ea,{name:e,copy:t,version:n,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:a("ra.auth.register.title")}),g.jsx(b.Typography,{component:gt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:a("ra.auth.already_have_account")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(M.Form,{onSubmit:f,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Hn,{source:"name",label:a("ra.register.name"),validate:be.required()})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Hn,{source:"email",type:"email",validate:[be.required(),be.email()]})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Hn,{source:"password",type:"password",validate:be.required()})})]}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:r,fullWidth:!0,children:r?g.jsx(b.CircularProgress,{size:19,thickness:3}):a("ra.auth.create_account")})})]})})]})})};YB.propTypes={name:c.string.isRequired,version:c.string.isRequired};const C6=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 ${Ne(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Ne(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Ne(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Ne(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Ne(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Ne(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Ne(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Ne(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Ne(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Ne(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Ne(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Ne(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Ne(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Ne(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Ne(e.palette.grey[500],.2)}`});function Kn(e,t){E6(e)&&(e="100%");var n=m6(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 E6(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function m6(e){return typeof e=="string"&&e.indexOf("%")!==-1}function I6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function If(e){return e.length===1?"0"+e:String(e)}function B6(e,t,n){return{r:Kn(e,255)*255,g:Kn(t,255)*255,b:Kn(n,255)*255}}function Bf(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 y6(e,t,n){var r,i,a;if(e=Kn(e,360),t=Kn(t,100),n=Kn(n,100),t===0)i=n,a=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=Bf(u,l,e+1/3),i=Bf(u,l,e),a=Bf(u,l,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function v6(e,t,n){e=Kn(e,255),t=Kn(t,255),n=Kn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=r,u=r-i,A=r===0?0:u/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:A,v:l}}function b6(e,t,n){e=Kn(e,360)*6,t=Kn(t,100),n=Kn(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),l=n*(1-i*t),u=n*(1-(1-i)*t),A=r%6,f=[n,l,a,a,u,n][A],p=[u,n,n,l,a,a][A],C=[a,a,u,n,n,l][A];return{r:f*255,g:p*255,b:C*255}}function Q6(e,t,n,r){var i=[If(Math.round(e).toString(16)),If(Math.round(t).toString(16)),If(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function GB(e){return wn(e)/255}function wn(e){return parseInt(e,16)}var KB={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 ta(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,l=!1,u=!1;return typeof e=="string"&&(e=T6(e)),typeof e=="object"&&(jr(e.r)&&jr(e.g)&&jr(e.b)?(t=B6(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):jr(e.h)&&jr(e.s)&&jr(e.v)?(r=cc(e.s),i=cc(e.v),t=b6(e.h,r,i),l=!0,u="hsv"):jr(e.h)&&jr(e.s)&&jr(e.l)&&(r=cc(e.s),a=cc(e.l),t=y6(e.h,r,a),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=I6(n),{ok:l,format:e.format||u,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 x6="[-\\+]?\\d+%?",w6="[-\\+]?\\d*\\.\\d+%?",go="(?:".concat(w6,")|(?:").concat(x6,")"),yf="[\\s|\\(]+(".concat(go,")[,|\\s]+(").concat(go,")[,|\\s]+(").concat(go,")\\s*\\)?"),vf="[\\s|\\(]+(".concat(go,")[,|\\s]+(").concat(go,")[,|\\s]+(").concat(go,")[,|\\s]+(").concat(go,")\\s*\\)?"),or={CSS_UNIT:new RegExp(go),rgb:new RegExp("rgb"+yf),rgba:new RegExp("rgba"+vf),hsl:new RegExp("hsl"+yf),hsla:new RegExp("hsla"+vf),hsv:new RegExp("hsv"+yf),hsva:new RegExp("hsva"+vf),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 T6(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(KB[e])e=KB[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=or.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=or.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=or.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=or.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=or.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=or.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=or.hex8.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),a:GB(n[4]),format:t?"name":"hex8"}:(n=or.hex6.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),format:t?"name":"hex"}:(n=or.hex4.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),a:GB(n[4]+n[4]),format:t?"name":"hex8"}:(n=or.hex3.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function jr(e){return!!or.CSS_UNIT.exec(String(e))}var uc=2,_B=.16,P6=.05,S6=.05,O6=.15,JB=5,XB=4,M6=[{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 ZB(e){var t=e.r,n=e.g,r=e.b,i=v6(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function Ac(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Q6(t,n,r,!1))}function D6(e,t,n){var r=n/100,i={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 i}function qB(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-uc*t:Math.round(e.h)+uc*t:r=n?Math.round(e.h)+uc*t:Math.round(e.h)-uc*t,r<0?r+=360:r>=360&&(r-=360),r}function $B(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-_B*t:t===XB?r=e.s+_B:r=e.s+P6*t,r>1&&(r=1),n&&t===JB&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ey(e,t,n){var r;return n?r=e.v+S6*t:r=e.v-O6*t,r>1&&(r=1),Number(r.toFixed(2))}function ty(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ta(e),i=JB;i>0;i-=1){var a=ZB(r),l=Ac(ta({h:qB(a,i,!0),s:$B(a,i,!0),v:ey(a,i,!0)}));n.push(l)}n.push(Ac(r));for(var u=1;u<=XB;u+=1){var A=ZB(r),f=Ac(ta({h:qB(A,u),s:$B(A,u),v:ey(A,u)}));n.push(f)}return t.theme==="dark"?M6.map(function(p){var C=p.index,h=p.opacity,m=Ac(D6(ta(t.backgroundColor||"#141414"),ta(n[C]),h*100));return m}):n}var bf={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"},_t={},dc={};Object.keys(bf).forEach(function(e){_t[e]=ty(bf[e]),_t[e].primary=_t[e][5],dc[e]=ty(bf[e],{theme:"dark",backgroundColor:"#141414"}),dc[e].primary=dc[e][5]}),_t.red,_t.volcano,_t.gold,_t.orange,_t.yellow,_t.lime,_t.green,_t.cyan,_t.blue,_t.geekblue,_t.purple,_t.magenta,_t.grey,_t.grey;const ny=e=>{const{blue:t,red:n,gold:r,cyan:i,green:a,grey:l}=e,u={0:l[0],50:l[1],100:l[2],200:l[3],300:l[4],400:l[5],500:l[6],600:l[7],700:l[8],800:l[9],900:l[10],A50:l[15],A100:l[11],A200:l[12],A400:l[13],A700:l[14],A800:l[16]},A="#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:A},secondary:{lighter:u[100],100:u[100],200:u[200],light:u[300],400:u[400],main:u[500],600:u[600],dark:u[700],800:u[800],darker:u[900],A100:u[0],A200:u.A400,A300:u.A700,contrastText:u[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:A},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:u[100]},info:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:A},success:{lighter:a[0],light:a[3],main:a[5],dark:a[7],darker:a[9],contrastText:A},grey:u}};ny.propTypes={colors:c.object};const R6=(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]},i="#fff";let a=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],l=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],u=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],A=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],f=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(a=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],l=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],u=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],A=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],f=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},j6=(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]},i="#fff";let a=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},k6=(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]},i="#fff";let a=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},F6=(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]},i="#fff";let a=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},L6=(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]},i="#fff";let a=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},N6=(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]},i="#fff";let a=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},V6=(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]},i="#fff";let a=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},H6=(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]},i="#fff";let a=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},ry=(e,t,n)=>{switch(t){case"theme1":return R6(e,n);case"theme2":return j6(e,n);case"theme3":return k6(e,n);case"theme4":return F6(e,n);case"theme5":return L6(e,n);case"theme6":return N6(e,n);case"theme7":return V6(e,n);case"theme8":return H6(e,n);default:return ny(e)}};ry.propTypes={colors:c.object,presetColor:c.any};const z6=(e,t)=>{const n=e==="dark"?dc:_t;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],i=["#fafafa","#bfbfbf","#434343","#1f1f1f"],a=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],i=["#fafafa","#bfbfbf","#434343","#1f1f1f"],a=["#121212","#d3d8db"]),n.grey=[...r,...i,...a];const l=ry(n,t,e);return ku({palette:{mode:e,common:{black:"#000",white:"#fff"},...l,text:{primary:e==="dark"?Ne(l.grey[900],.87):l.grey[700],secondary:e==="dark"?Ne(l.grey[900],.45):l.grey[500],disabled:e==="dark"?Ne(l.grey[900],.1):l.grey[400]},action:{disabled:l.grey[300]},divider:e==="dark"?Ne(l.grey[900],.05):l.grey[200],background:{paper:e==="dark"?l.grey[100]:l.grey[0],default:l.grey.A50}}})},W6=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 U6(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 Y6(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function G6(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:g.jsx(et.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 No({color:e,theme:t}){const n=$t(t,e),{lighter:r,light:i,main:a}=n;return{borderColor:Ne(i,.5),backgroundColor:r,"& .MuiAlert-icon":{color:a}}}function K6(e){const t=No({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":No({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":No({color:"secondary",theme:e}),"&.MuiAlert-borderError":No({color:"error",theme:e}),"&.MuiAlert-borderSuccess":No({color:"success",theme:e}),"&.MuiAlert-borderInfo":No({color:"info",theme:e}),"&.MuiAlert-borderWarning":No({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 _6(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function J6(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 Vo({color:e,theme:t}){const n=$t(t,e),{lighter:r,main:i}=n;return{color:i,backgroundColor:r}}function X6(e){const t=Vo({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Vo({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Vo({color:"secondary",theme:e}),"&.MuiBadge-colorError":Vo({color:"error",theme:e}),"&.MuiBadge-colorInfo":Vo({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Vo({color:"success",theme:e}),"&.MuiBadge-colorWarning":Vo({color:"warning",theme:e})}}}}}function qe({variant:e,color:t,theme:n}){const r=$t(n,t),{lighter:i,main:a,dark:l,contrastText:u}=r,A=`${t}Button`,f=bi(n,A),p={"&::after":{boxShadow:`0 0 5px 5px ${Ne(a,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Ne(a,.9)}`},"&:focus-visible":{outline:`2px solid ${l}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:l},...p};case"shadow":return{color:u,backgroundColor:a,boxShadow:f,"&:hover":{boxShadow:"none",backgroundColor:l},...p};case"outlined":return{borderColor:a,"&:hover":{color:l,backgroundColor:"transparent",borderColor:l},...p};case"dashed":return{color:a,borderColor:a,backgroundColor:i,"&:hover":{color:l,borderColor:l},...p};case"text":default:return{"&:hover":{color:l,backgroundColor:i},...p}}}function Z6(e){const t=qe({variant:"dashed",color:"primary",theme:e}),n=qe({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},i={"&>*: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:{...i},startIcon:{...i},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":qe({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":qe({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":qe({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":qe({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":qe({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":qe({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":qe({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":qe({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":qe({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":qe({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":qe({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":qe({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:qe({variant:"contained",color:"primary",theme:e}),containedSecondary:qe({variant:"contained",color:"secondary",theme:e}),containedError:qe({variant:"contained",color:"error",theme:e}),containedSuccess:qe({variant:"contained",color:"success",theme:e}),containedInfo:qe({variant:"contained",color:"info",theme:e}),containedWarning:qe({variant:"contained",color:"warning",theme:e}),outlinedPrimary:qe({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:qe({variant:"outlined",color:"secondary",theme:e}),outlinedError:qe({variant:"outlined",color:"error",theme:e}),outlinedSuccess:qe({variant:"outlined",color:"success",theme:e}),outlinedInfo:qe({variant:"outlined",color:"info",theme:e}),outlinedWarning:qe({variant:"outlined",color:"warning",theme:e}),textPrimary:qe({variant:"text",color:"primary",theme:e}),textSecondary:qe({variant:"text",color:"secondary",theme:e}),textError:qe({variant:"text",color:"error",theme:e}),textSuccess:qe({variant:"text",color:"success",theme:e}),textInfo:qe({variant:"text",color:"info",theme:e}),textWarning:qe({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function q6(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function $6(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function eF(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Hi({color:e,theme:t}){const n=$t(t,e),{lighter:r,main:i,dark:a}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:i}},"&.Mui-focusVisible":{outline:`2px solid ${a}`,outlineOffset:-4}}}function tF(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 Qf(e){const t=tF(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function nF(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(et.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(et.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...Qf("small")},"&.size-medium":{...Qf("medium")},"&.size-large":{...Qf("large")}},colorPrimary:Hi({color:"primary",theme:e}),colorSecondary:Hi({color:"secondary",theme:e}),colorSuccess:Hi({color:"success",theme:e}),colorWarning:Hi({color:"warning",theme:e}),colorInfo:Hi({color:"info",theme:e}),colorError:Hi({color:"error",theme:e})}}}}function zi({color:e,theme:t}){const n=$t(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Tn({color:e,theme:t}){const n=$t(t,e),{light:r,lighter:i,main:a}=n;return{color:a,backgroundColor:i,borderColor:r,"& .MuiChip-deleteIcon":{color:a,"&:hover":{color:r}}}}function rF(e){const t=Tn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":zi({color:"primary",theme:e}),"&.MuiChip-colorSecondary":zi({color:"secondary",theme:e}),"&.MuiChip-colorError":zi({color:"error",theme:e}),"&.MuiChip-colorInfo":zi({color:"info",theme:e}),"&.MuiChip-colorSuccess":zi({color:"success",theme:e}),"&.MuiChip-colorWarning":zi({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Tn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Tn({color:"secondary",theme:e}),"&.MuiChip-lightError":Tn({color:"error",theme:e}),"&.MuiChip-lightInfo":Tn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Tn({color:"success",theme:e}),"&.MuiChip-lightWarning":Tn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Tn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Tn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Tn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Tn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Tn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Tn({color:"warning",theme:e})}}}}}function oF(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:Ne("#000",.7)}}}}}}function iF(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function sF(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Wi({color:e,theme:t}){const n=$t(t,e),{main:r,dark:i,contrastText:a}=n,l=`${e}Button`,u=bi(t,l);return{color:a,backgroundColor:r,boxShadow:u,"&:hover":{boxShadow:"none",backgroundColor:i},"&:focus-visible":{outline:`2px solid ${i}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${Ne(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${Ne(r,.9)}`}}}function aF(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Wi({color:"primary",theme:e}),"&.MuiFab-secondary":Wi({color:"secondary",theme:e}),"&.Mui-error":Wi({color:"error",theme:e}),"&.MuiFab-success":Wi({color:"success",theme:e}),"&.MuiFab-info":Wi({color:"info",theme:e}),"&.MuiFab-warning":Wi({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 lF(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 cF(){return{MuiInputBase:{styleOverrides:{}}}}function uF(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 AF(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function dF(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function fF(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function gF(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function pF(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function Ho({variant:e,theme:t}){const n=$t(t,e),{light:r}=n,i=bi(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:i,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function hF(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:{...Ho({variant:"primary",theme:e}),"&.Mui-error":{...Ho({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:Ho({variant:"secondary",theme:e}),colorError:Ho({variant:"error",theme:e}),colorWarning:Ho({variant:"warning",theme:e}),colorInfo:Ho({variant:"info",theme:e}),colorSuccess:Ho({variant:"success",theme:e})}}}}function CF(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function vt({variant:e,color:t,theme:n}){const r=$t(n,t),{lighter:i,light:a,dark:l,main:u,contrastText:A}=r,f={"&:focus-visible":{outline:`2px solid ${l}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:A,backgroundColor:u,"&:hover":{backgroundColor:a},...f};case"outlined":return{borderColor:u,"&:hover":{backgroundColor:i,borderColor:a},...f};case"text":default:return{color:u,"&:hover":{backgroundColor:u,color:i},...f}}}function EF(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":vt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":vt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":vt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":vt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":vt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":vt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":vt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":vt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":vt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":vt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":vt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":vt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":vt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":vt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":vt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":vt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":vt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":vt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":vt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":vt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":vt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":vt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":vt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":vt({variant:"outlined",color:"warning",theme:e})}}}}}}function mF(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Ui({color:e,theme:t}){const n=$t(t,e),{lighter:r,main:i,dark:a}=n;return{"& .dot":{backgroundColor:i},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${a}`,outlineOffset:-4}}}function IF(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 xf(e){const t=IF(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function BF(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:g.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":{...xf("small")},"&.size-medium":{...xf("medium")},"&.size-large":{...xf("large")}},colorPrimary:Ui({color:"primary",theme:e}),colorSecondary:Ui({color:"secondary",theme:e}),colorSuccess:Ui({color:"success",theme:e}),colorWarning:Ui({color:"warning",theme:e}),colorInfo:Ui({color:"info",theme:e}),colorError:Ui({color:"error",theme:e})}}}}function Yi({color:e,theme:t}){const n=$t(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function yF(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":Yi({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":Yi({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":Yi({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":Yi({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":Yi({color:"info",theme:e}),"&.MuiSlider-thumbColorError":Yi({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 vF(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 wf(e,t){const n=vF(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 bF(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},...wf(e,"medium")},sizeLarge:{...wf(e,"large")},sizeSmall:{...wf(e,"small")}}}}}function QF(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 xF(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 wF(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 TF(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function PF(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function SF(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function OF(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function MF(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function DF(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 RF(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function jF(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function kF(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function FF(e){return st.merge(U6(e),Y6(e),G6(e),K6(e),_6(),J6(e),X6(e),Z6(e),q6(),$6(),eF(),nF(e),rF(e),oF(),iF(e),sF(),aF(e),lF(e),cF(),uF(e),AF(),dF(),fF(e),gF(e),pF(),hF(e),CF(),EF(e),mF(e),BF(e),yF(e),bF(e),QF(e),xF(e),wF(e),TF(e),PF(e),SF(),OF(),MF(),DF(e),RF(e),jF(),kF())}const Tf=({themeOverrides:e,children:t})=>{const{themeDirection:n,mode:r,presetColor:i,fontFamily:a}=Fn(),l=S.useMemo(()=>z6(r,i),[r,i]),u=S.useMemo(()=>W6(a),[a]),A=S.useMemo(()=>C6(l),[l]),f=S.useMemo(()=>yt.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:n,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:l.palette,customShadows:A,typography:u,shadows:l.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:l.spacing(2.6875),height:l.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(l):e),[n,l,u,A,e]),p=ku(f),C=yt.cloneDeep(p.components??{});return p.components=yt.merge(FF(p),C),g.jsx(b.StyledEngineProvider,{injectFirst:!0,children:g.jsxs(Zp,{theme:p,children:[g.jsx(b.CssBaseline,{}),t]})})};Tf.propTypes={children:c.node,themeOverrides:c.oneOfType([c.object,c.func])};const oy=({children:e,theme:t,...n})=>g.jsx(M.CoreAdminContext,{...n,children:g.jsx(Tf,{themeOverrides:t,children:g.jsx(df,{children:e})})});oy.displayName="ApplicaAdminContext";const Gi=e=>{const{authProvider:t,catchAll:n,children:r,dashboard:i,dataProvider:a,disableTelemetry:l,history:u,i18nProvider:A,layout:f,loading:p,loginPage:C,authCallbackPage:h,menu:m,notification:I,queryClient:B,requireAuth:v,store:O,ready:R,theme:x,title:T="React Admin"}=e;return g.jsx(oy,{authProvider:t,dataProvider:a,i18nProvider:A,store:O,history:u,queryClient:B,theme:x,children:g.jsx(M.AdminUI,{layout:f,dashboard:i,disableTelemetry:l,menu:m,catchAll:n,title:T,loading:p,loginPage:C,authCallbackPage:h,notification:I,requireAuth:v,ready:R,children:r})})};Gi.defaultProps={store:M.localStorageStore(),title:"Applica Admin"},Gi.propTypes={...M.AdminUI.propTypes};class iy{constructor({catch:t,display:n,log:r,error:i}){ya(this,"catch");ya(this,"display");ya(this,"log");ya(this,"error");this.catch=t,this.display=n,this.log=r,this.error=i}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const LF=({apiUrl:e,endpoint:t,message:n,bodyBuilder:r})=>fetch(`${e}${t}`,{method:"PUT",headers:new Headers({Accept:"application/json","Content-Type":"application/json"}),body:JSON.stringify(r(n))}),NF=({enabled:e=!0,apiUrl:t,endpoint:n="/ui-errors/put",loading:r,catcherFn:i=l=>new iy({catch:l!=null,display:!1,log:!1}),bodyBuilder:a=l=>({message:l})})=>(V.useMemo(()=>{if(r||!e)return;const l=console.error;console.error=function(u,...A){if(!u||typeof u!="string"){l.apply(console,arguments);return}const f=u.replace(/%s/g,()=>A.shift()),p=i(f);if(!p.isCatched()){l.apply(console,arguments);return}p.logError()&&LF({apiUrl:t,endpoint:n,message:f,bodyBuilder:a}),p.displayError()?l.apply(console,arguments):console.debug.apply(console,arguments)}},[t,r,a,n,i,e]),!0),Pf=({languages:e,defaultLocale:t,allowMissing:n=!1})=>jb(r=>st.get(e,r,{}),t,[{locale:t}],{allowMissing:n}),sy=[],VF=({apiUrl:e,endpoint:t,locale:n,message:r,bodyBuilder:i})=>r!=null&&r!=="undefined"&&r.indexOf("[")===-1&&r.indexOf("]")===-1&&sy.indexOf(`${n}-${r}`)===-1&&sy.push(`${n}-${r}`)&&fetch(`${e}${t}`,{method:"PUT",headers:new Headers({Accept:"application/json","Content-Type":"application/json"}),body:JSON.stringify(i(n,r)||{})}),ay=({apiUrl:e,enabled:t=!0,endpoint:n="/languages/put-message",loading:r,bodyBuilder:i=(a,l)=>({lang:a,code:l,text:l})})=>{const[a]=M.useLocaleState();return V.useMemo(()=>{if(r||!t)return;const l=console.error;console.error=function(u){if(!(typeof u=="string"&&u==="%c%s")){if(typeof u=="string"&&u.indexOf("Missing translation for key: ")>=0){if(u=u.replace("Warning: Missing translation for key: ",""),u=u.split('"').join("").trim(),u===null||u.indexOf(" ")!==-1||u.indexOf(".")===-1)return;const A=localStorage.getItem("locale")||a;VF({apiUrl:e,endpoint:n,locale:A,message:u,bodyBuilder:i});return}l.apply(console,arguments)}}},[e,a,r,i,n,t]),!0};window.React=S;const ly=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,i]=S.useState({loading:!0,languages:null});return S.useEffect(()=>{let a=new Headers;a.append("Accept","application/json"),a.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:a}).then(l=>l.json()).then(l=>i({loading:!1,...n(l)}))},[e,t,n]),r},HF=({apiUrl:e,locale:t="en",languages:n={}})=>Pf({apiUrl:e,locale:t,languages:n}),zF=e=>e.reduce((t,n)=>({...t,[n.lang]:{...t[n.lang]||{},[n.code]:n.text}}),{}),WF=(e,t)=>({lang:e,code:t,text:t}),UF=new qg.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),Sf=({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r,development:i,logoMain:a,logoIcon:l,loginPage:u,menu:A,name:f,copy:p,version:C,dataProvider:h,authProvider:m,notification:I,enableNotification:B,enableRegistration:v,enablePasswordRecover:O,...R})=>{const x=ly({apiUrl:n,endpoint:"/i18n/messages",mapper:zF});ay({bodyBuilder:WF,apiUrl:n,endpoint:"/i18n/message",loading:x==null?void 0:x.loading,enabled:i}),NF({apiUrl:n,endpoint:"/cli/error",catcherFn:k=>{const _=k==null?void 0:k.toString(),Y=["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`.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>."].some(le=>_==null?void 0:_.includes(le));return new iy({catch:Y,display:!Y,log:!Y,error:k})}});const T=S.useMemo(()=>S.isValidElement(u)?S.cloneElement(u,{name:f,version:C,enableRegistration:v,enablePasswordRecover:O}):u,[u,f,C,v,O]),P=S.useMemo(()=>k=>{const _=f?g.jsx(ic,{title:f}):a,J=f?g.jsx(ff,{title:f}):l;return g.jsx(wB,{...k,name:f,copy:p,version:C,logoMain:_,logoIcon:J,notification:I,enableNotification:B})},[a,l,f,C,I,B]);if(x!=null&&x.loading)return null;const L=Pf({languages:x,defaultLocale:r,allowMissing:i});return g.jsx(Vu,{children:g.jsx(Uu,{menu:A,children:g.jsx(zu,{initialConfig:t,children:g.jsx(Gi,{theme:e,layout:P,notification:kB,queryClient:UF,dataProvider:h,authProvider:m,i18nProvider:L,loginPage:T,...R})})})})};Sf.defaultProps={...Gi.defaultProps,fileFields:[],defaultLocale:"en",development:!1,version:"0.0.0",notification:"entities/notification",enableNotification:!1,enableRegistration:!1,enableForgotPassword:!1,loginPage:g.jsx(lc,{version:"0.0.0",name:"Applica",redirectTo:"/"})},Sf.propTypes={...Gi.propTypes,theme:c.oneOfType([c.object,c.func]),apiUrl:c.string.isRequired,defaultLocale:c.string,development:c.bool,logoMain:c.node,logoIcon:c.node,menu:c.arrayOf(gi),name:c.string,version:c.string,authProvider:c.oneOfType([c.func,c.object]),dataProvider:c.oneOfType([c.func,c.object]),notification:c.string,enableNotification:c.bool,enableRegistration:c.bool,enableForgotPassword:c.bool},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,"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,"SimpleList",{enumerable:!0,get:()=>M.SimpleList}),Object.defineProperty(j,"SingleFieldList",{enumerable:!0,get:()=>M.SingleFieldList}),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,"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,"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,"useListContext",{enumerable:!0,get:()=>M.useListContext}),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,"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}),j.ActionsField=qA,j.ActionsMenu=fi,j.ActivatePage=WB,j.Admin=Gi,j.AnimateButton=NE,j.AppConfigContext=Nu,j.AppConfigProvider=Vu,j.ApplicaAdmin=Sf,j.ArrayInput=mO,j.AttachmentField=$A,j.AttachmentInput=sd,j.AutocompleteArrayInput=ad,j.AutocompleteInput=ld,j.Avatar=Cl,j.BooleanInput=cd,j.Breadcrumbs=Il,j.CardForm=bl,j.ChangePasswordForm=Id,j.CircularWithLabel=hm,j.CircularWithPath=Cm,j.CoverField=wl,j.Create=UO,j.CreateInDialogButton=hf,j.Datagrid=Ef,j.DateAgoField=Tl,j.DateField=ed,j.DateInput=ud,j.DateTimeInput=Ad,j.Dot=Bl,j.Drawer=BB,j.DrawerHeader=rI,j.DrawerHeaderStyled=Zd,j.DrawerToggle=i0,j.Edit=YO,j.EditInDialogButton=Cf,j.EmailField=td,j.Empty=NB,j.FileField=nd,j.FileInput=dd,j.Footer=Fs,j.FormHeader=Bd,j.FunctionField=xm,j.Header=s0,j.HeaderNotification=a0,j.HeaderProfile=l0,j.HeaderSpacer=u0,j.HorizontalBar=yB,j.IconButton=ro,j.ImageField=Ds,j.ImageInput=fd,j.ImpersonateUserButton=LB,j.LabeledArrayInput=xl,j.LabeledInput=at,j.Layout=wB,j.LayoutContent=A0,j.LayoutProvider=n0,j.LayoutWrapper=d0,j.LinearWithIcon=Em,j.LinearWithLabel=mm,j.List=VB,j.ListItem=mf,j.Loadable=n6,j.Loader=jB,j.LoadingButton=XA,j.LoginPage=lc,j.Logo=qd,j.LongForm=js,j.MainCard=Nn,j.MainIcon=ic,j.MenuConfigContext=Wu,j.MenuConfigProvider=Uu,j.MenuPopover=Ya,j.MenuPropTypes=gi,j.NavMenu=vB,j.Navigation=xB,j.Notification=kB,j.NotificationList=h6,j.NumberInput=gd,j.ReadonlyField=od,j.RecordInput=Sm,j.RecoverPage=UB,j.ReferenceArrayInput=pd,j.ReferenceInput=hd,j.ReferenceManyField=Qi,j.ReferenceManyInput=Cd,j.RegisterPage=YB,j.ResponsiveSection=c0,j.ScrollTop=df,j.ScrollX=r6,j.SearchInput=LO,j.SelectArrayInput=Ed,j.SelectInput=Mm,j.SimpleBar=cf,j.SimpleForm=Ql,j.SimpleFormIterator=c3,j.SizeField=Tm,j.SmallIcon=ff,j.SmartTextInput=Pl,j.TabbedForm=Rl,j.TableFormIterator=zR,j.TextField=id,j.TextInput=Hn,j.ThemeConfigContext=Hu,j.ThemeConfigProvider=zu,j.ThemeProvider=Tf,j.TimeInput=md,j.Toolbar=Mr,j.Tooltip=pm,j.Transitions=io,j.createI18nProvider=Pf,j.parseTime=Dm,j.useAppConfig=xo,j.useBreadcrumbs=uh,j.useI18nCatcher=ay,j.useI18nLanguages=ly,j.useI18nProvider=HF,j.useLayoutContext=Sd,j.useLayoutDispatch=YR,j.useLayoutDrawerState=ko,j.useLayoutLogoState=o0,j.useLayoutMediaState=zn,j.useLayoutNotificationsState=Ll,j.useLayoutState=Pi,j.useLayoutThemeState=Nl,j.useLocalStorage=Ku,j.useMenu=Gu,j.useMenuConfig=Jr,j.useRefDimensions=b1,j.useResourceTitle=Ah,j.useSx=pi,j.useThemeConfig=Fn,j.uuid=VO,j.withLayoutProvider=r0,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
265
+ `),K2)),RB=V.forwardRef(function(t,n){const r=Gt({props:t,name:"MuiLinearProgress"}),{className:i,color:a="primary",value:l,valueBuffer:u,variant:A="indeterminate"}=r,f=Ke(r,Y2),p=U({},r,{color:a,variant:A}),C=J2(p),h=xt(),m={},I={bar1:{},bar2:{}};if(A==="determinate"||A==="buffer")if(l!==void 0){m["aria-valuenow"]=Math.round(l),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let B=l-100;h.direction==="rtl"&&(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(A==="buffer")if(u!==void 0){let B=(u||0)-100;h.direction==="rtl"&&(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 g.jsxs(X2,U({className:Xe(C.root,i),ownerState:p,role:"progressbar"},m,{ref:n},f,{children:[A==="buffer"?g.jsx(Z2,{className:C.dashed,ownerState:p}):null,g.jsx(q2,{className:C.bar1,ownerState:p,style:I.bar1}),A==="determinate"?null:g.jsx($2,{className:C.bar2,ownerState:p,style:I.bar2})]}))});process.env.NODE_ENV!=="production"&&(RB.propTypes={classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.number,valueBuffer:c.number,variant:c.oneOf(["buffer","determinate","indeterminate","query"])});const e6=RB,t6=ue("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),jB=()=>g.jsx(t6,{children:g.jsx(e6,{color:"primary"})}),n6=e=>t=>g.jsx(S.Suspense,{fallback:g.jsx(jB,{}),children:g.jsx(e,{...t})}),ic=({title:e})=>g.jsxs(b.Stack,{direction:"row",children:[g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]});ic.propTypes={title:c.string.isRequired};const kB=ue(M.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}})),df=({children:e})=>{const t=gt.useLocation(),{pathname:n}=t;return S.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};df.propTypes={children:c.node};const r6=ue("div")({width:"100%",overflowX:"auto",display:"block"}),ff=({title:e})=>g.jsx(b.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});ff.propTypes={title:c.string.isRequired};const gf=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(i=>i.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},o6=(e,t)=>e&&e.data?{data:gf(e.data,t),total:e.total+1}:e,i6=(e,t)=>e&&e.length>0?gf(e,t):e,s6=(e,t)=>e&&e.data?{...e,data:gf(e.data,t),total:e.total+1}:e,pf=({onClose:e,record:t,children:n,redirect:r,onSubmit:i,onSuccess:a,onError:l})=>{const u=qg.useQueryClient(),A=M.useResourceContext(),f=M.useRedirect(),p=M.useNotify(),C=S.useCallback(B=>{const O=Date.now();u.setQueryData([A,"getOne",{id:B.id}],B),u.setQueriesData([A,"getList"],R=>s6(R,B),{updatedAt:O}),u.setQueriesData([A,"getMany"],R=>i6(R,B),{updatedAt:O}),u.setQueriesData([A,"getManyReference"],R=>o6(R,B),{updatedAt:O}),e(),p("ra.notification.created"),r!==void 0&&f(r,A,B.id,B),a&&a(B)},[e,a,u,A,p,f,r]),{save:h,...m}=M.useCreateController({mutationOptions:{onSuccess:C,onError:l}}),I=S.useCallback(B=>{i?i(B,e):h&&h(B)},[i,h,e]);return g.jsx(M.CreateContextProvider,{value:{record:t,save:I,saving:m==null?void 0:m.saving,redirect:r},children:S.cloneElement(n,{...n.props,toolbar:g.jsxs(Mr,{children:[g.jsx(M.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:m==null?void 0:m.saving}),g.jsx(M.SaveButton,{disabled:m==null?void 0:m.saving})]})})})};pf.propTypes={children:c.node,onClose:c.func,record:c.object,redirect:c.oneOf(["list","edit","show",!1])},pf.defaultProps={redirect:!1};const a6={true:{_scrollToTop:!0},false:{}},l6=ue(b.Fab,{name:"RaApplicaCreateInDialogButton",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}})),hf=({fullWidth:e,maxWidth:t,label:n,record:r,redirect:i,scrollToTop:a,className:l,sx:u,onSubmit:A,onSuccess:f,onError:p,...C})=>{const[h,m]=S.useState(!1),I=M.useTranslate(),B=M.useResourceContext(),{openDialog:v,closeDialog:O}=xo(),R=S.useCallback(()=>v(B,()=>m(!0)),[v,B]),x=S.useCallback(()=>O(B,()=>m(!1)),[O,B]),T=b.useMediaQuery(P=>P.breakpoints.down("md"));return g.jsxs(g.Fragment,{children:[T?g.jsx(l6,{...C,state:a6[String(a)],color:"primary",className:Xe(M.CreateButtonClasses.floating,l),"aria-label":n&&I(n),onClick:R,children:g.jsx(jn.Add,{})}):g.jsx(M.Button,{...C,sx:u,label:n,onClick:R,children:g.jsx(jn.Add,{})}),g.jsx(b.Dialog,{open:h,onClose:x,fullWidth:e,maxWidth:t,children:g.jsx(pf,{...C,redirect:i,record:r,onClose:x,onSubmit:A,onSuccess:f,onError:p})})]})};hf.defaultProps={fullWidth:!0,maxWidth:"md",label:"ra.action.create",scrollToTop:!0},hf.propTypes={...M.Button.propTypes,redirect:c.oneOf(["list","edit","show",!1]),fullWidth:c.bool,maxWidth:c.oneOf(["xs","sm","md","lg","xl",!1]),label:c.string,record:c.object,scrollToTop:c.bool,className:c.string,sx:c.object,children:c.node,onSubmit:c.func,onSuccess:c.func,onError:c.func};const FB=({onClose:e,children:t})=>{const n=M.useNotify(),r=M.useRecordContext(),i=M.useResourceContext(),{id:a}=r,{isLoading:l,data:u}=M.useGetOne(i,{id:a}),A=S.useCallback(()=>{n("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e()},[e,n]),{save:f,saving:p}=M.useEditController({resource:i,id:a,mutationMode:"pessimistic",mutationOptions:{onSuccess:A}});return g.jsx(M.EditContextProvider,{value:{record:u,isLoading:l,save:f,saving:p},children:S.cloneElement(t,{toolbar:g.jsxs(Mr,{children:[g.jsx(M.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),g.jsx(M.SaveButton,{})]})})})};FB.propTypes={children:c.node,onClose:c.func};const Cf=({fullWidth:e,maxWidth:t,label:n,...r})=>{const[i,a]=S.useState(!1),{openDialog:l,closeDialog:u}=xo(),A=M.useResourceContext(),f=S.useCallback(()=>l(A,()=>a(!0)),[l,A]),p=S.useCallback(()=>u(A,()=>a(!1)),[u,A]);return g.jsxs(g.Fragment,{children:[g.jsx(M.Button,{label:n,onClick:f,children:g.jsx(jn.Edit,{})}),g.jsx(b.Dialog,{open:i,onClose:p,fullWidth:e,maxWidth:t,children:g.jsx(FB,{...r,onClose:p})})]})};Cf.defaultProps={fullWidth:!0,maxWidth:"md",label:"ra.action.edit"},Cf.propTypes={fullWidth:c.bool,maxWidth:c.oneOf(["xs","sm","md","lg","xl",!1]),label:c.string};const LB=({label:e="ra.auth.sign_in",...t})=>{const n=M.useRecordContext(),[r,i]=S.useState(!1),a=M.useAuthProvider(),l=S.useCallback(u=>{u.stopPropagation(),u.preventDefault(),i(!0),a.impersonate(n==null?void 0:n.id).then(()=>{i(!1),document.location.href="/"})},[a,n==null?void 0:n.id]);return g.jsx(M.Button,{disabled:r||a.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:l,...t,children:g.jsx(jn.VpnKey,{})})};LB.propTypes={label:c.string};const c6=ue(M.Datagrid,{name:"ApplicaDatagrid",slot:"root"})(()=>({"& .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"}})),Ef=e=>g.jsx(c6,{...e});Ef.propTypes={...M.Datagrid.propTypes},Ef.defaultProps={...M.Datagrid.defaultProps};const u6=ue("div")(({theme:e})=>({padding:e.spacing(2)})),NB=({actions:e,className:t,...n})=>{const{hasCreate:r}=be.useResourceDefinition(n),i=be.useResourceContext(n),a=be.useTranslate(),l=be.useGetResourceLabel(),u=a(`resources.${i}.forcedCaseName`,{smart_count:0,_:l(i,0)}),A=a("ra.page.empty",{name:u}),f=a("ra.page.invite");return g.jsxs(A6,{className:t,children:[g.jsxs("div",{className:Vi.message,children:[g.jsx(jn.Inbox,{className:Vi.icon}),g.jsx(b.Typography,{variant:"h4",paragraph:!0,children:a(`resources.${i}.empty`,{_:A})}),r&&g.jsx(b.Typography,{variant:"body1",children:a(`resources.${i}.invite`,{_:f})})]}),g.jsx(u6,{className:Vi.toolbar,children:e})]})},sc="ApplicaEmpty",Vi={message:`${sc}-message`,icon:`${sc}-icon`,toolbar:`${sc}-toolbar`},A6=ue("span",{name:sc,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${Vi.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${Vi.icon}`]:{width:"9em",height:"9em"},[`& .${Vi.toolbar}`]:{textAlign:"center",marginTop:"2em"}}));NB.propTypes={actions:c.element,className:c.string};const d6=ai(M.List,{name:"RaApplicaList",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:e.spacing(2)}},"& .RaList-actions":{padding:e.spacing(2),paddingTop:e.spacing(1),alignItems:"center","& form":{alignItems:"center"},"& .RaFilterForm-filterFormInput":{"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},marginTop:e.spacing(1.5)},"& .RaFilterFormInput-hideButton":{marginTop:e.spacing(1),marginBottom:e.spacing(.5),marginRight:e.spacing(1)},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"flex-end",minHeight:"fit-content"}},"& .RaList-content":{"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}})),VB=e=>g.jsx(Nn,{content:!1,children:g.jsx(d6,{...e})});VB.propTypes={...M.List.propTypes};const f6=()=>{const e=M.useRefresh(),t=M.useNotify(),n=M.useUnselectAll(),r=M.useResourceContext(),{selectedIds:i,data:a}=M.useListContext(),l=M.useRecordContext(),u=i.map(C=>a.find(h=>h.id===C)),[A,{isLoading:f}]=M.useUpdateMany(r,{ids:i.length>0?i:[l==null?void 0:l.id],data:{readed:Dr().format("YYYY-MM-DD HH:mm:ss")},rows:u},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),n(r)},onError:()=>t("ra.notification.readed_error","warning"),onFailure:()=>t("ra.notification.readed_error","warning")}),p=S.useCallback(()=>{A()},[A]);return g.jsx(M.Button,{label:"ra.notification.mark_as_readed",disabled:f||(l==null?void 0:l.readed)!==null,onClick:p,children:g.jsx(jn.Email,{})})},g6=()=>{const e=M.useRefresh(),t=M.useNotify(),n=M.useUnselectAll(),{selectedIds:r,data:i}=M.useListContext(),a=M.useRecordContext(),l=M.useResourceContext(),u=r.map(C=>i.find(h=>h.id===C)).concat([a]),[A,{isLoading:f}]=M.useUpdateMany(l,{ids:r.length>0?r:[a==null?void 0:a.id],data:{readed:null},rows:u},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),n("notifications")},onFailure:()=>t("resources.notifications.messages.unreaded.error","warning")}),p=S.useCallback(()=>{A()},[A]);return g.jsx(M.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:f||a&&!(a!=null&&a.readed),onClick:p,children:g.jsx(jn.Drafts,{})})},p6=e=>{const t=M.useRecordContext(e),n=M.useResourceContext(e),r=M.useRedirect(),i=M.useNotify(),a=M.useTranslate(),[l]=M.useLocaleState(),u=S.useMemo(()=>t!=null&&t.readed?Dr(t==null?void 0:t.readed).locale(l).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,l]),[A]=M.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:Dr().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)},onFailure:()=>{i("ra.notification.readed_error","warning")}}),f=S.useCallback(()=>A(),[A]);return g.jsxs("div",{onClick:f,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[g.jsx(b.Typography,{variant:"subtitle1",children:g.jsxs(b.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),g.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}}),u&&g.jsx(b.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:a("ra.notification.readed",{readed:u})})]})},h6=({...e})=>{const t=b.useTheme(),{mode:n,colorize:r,density:i}=S.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?b.darken:b.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),a=S.useCallback(l=>({backgroundColor:l!=null&&l.readed?r(t.palette.primary[n],i):r(t.palette.secondary[n],i)}),[t,n,r,i]);return g.jsxs(M.Datagrid,{...e,rowStyle:a,children:[g.jsx(p6,{source:"notification",sortable:!1,label:"ra.notification"}),g.jsx(Tl,{source:"created",label:"ra.notification.created"}),g.jsxs(fi,{children:[g.jsx(f6,{}),g.jsx(g6,{})]})]})},ac={width:"1.5rem",alignSelf:"center"},mf=({source:e,label:t,variant:n,record:r,spaceBottom:i,spaceTop:a,component:l,leftIcon:u,rightIcon:A,button:f,buttonProps:p,...C})=>{const{getCurrentDialog:h}=xo(),m=be.useResourceContext(C),I=h(),B=be.useRecordContext(),v=r||B,O=st.get(v,e||"");return g.jsxs(b.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:R=>({pt:1,pb:1,borderBottom:`1px solid ${R.palette.divider}`,...i&&{mb:2},...a&&{mt:2}}),children:[g.jsxs(b.Stack,{direction:"row",alignItems:"start",children:[u&&(S.isValidElement(u)?S.cloneElement(u,{style:ac}):S.createElement(u,{style:ac})),g.jsx(be.FieldTitle,{label:t,source:e,resource:I||m})]}),g.jsxs(b.Stack,{direction:"row",alignItems:"center",children:[l?S.isValidElement(l)?S.cloneElement(l,{record:v,resource:m,value:O}):S.createElement(l,{source:e,record:v,resource:m,value:O}):g.jsx(b.Typography,{variant:n,children:O}),A&&(S.isValidElement(A)?S.cloneElement(A,{style:ac}):S.createElement(A,{style:ac})),f&&g.jsx(b.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:f})]})]})};mf.propTypes={source:c.string,label:c.string,record:c.object,variant:c.oneOf(["body1","body2","caption","button","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),spaceTop:c.bool,spaceBottom:c.bool,leftIcon:c.oneOfType([c.elementType,c.element,c.func]),rightIcon:c.oneOfType([c.elementType,c.element,c.func]),component:c.oneOfType([c.elementType,c.element,c.func]),buttonProps:c.object,button:c.string},mf.defaultProps={variant:"body1"};const HB=()=>{const e=Ut.useTheme(),n=e.palette.mode==="dark"?e.palette.primary.dark:e.palette.primary.light;return g.jsx(b.Box,{sx:{position:"absolute",filter:"blur(20px)",bottom:0,p:4,pb:8},children:g.jsxs("svg",{width:"100%",height:"calc(100vh - 175px)",viewBox:"0 0 117 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("path",{d:"M15.7523 21.9601L14.0526 17.2379H4.6534L2.95369 21.9601H0L7.78722 0.903564H10.9187L18.706 21.9601H15.7523ZM5.60948 14.6207H13.0988L9.33912 4.24262L5.60948 14.6207Z",fill:n}),g.jsx("path",{d:"M33.592 8.8437C35.0538 10.3782 35.7997 12.2433 35.7997 14.4391C35.7997 16.6348 35.0538 18.5302 33.592 20.0647C32.1301 21.5992 30.3404 22.3513 28.2504 22.3513C25.7747 22.3513 23.8949 21.3593 22.6109 19.3731V27.9769H20.0151V6.91804H22.6109V9.505C23.8949 7.51879 25.7724 6.52686 28.2504 6.52686C30.3381 6.52686 32.1301 7.30923 33.592 8.8437ZM31.6821 18.2881C32.6959 17.2356 33.204 15.9712 33.204 14.4367C33.204 12.9023 32.6959 11.6402 31.6821 10.6157C30.6683 9.56321 29.4143 9.05094 27.9224 9.05094C26.4306 9.05094 25.1489 9.56321 24.1328 10.6157C23.1189 11.6379 22.6109 12.9023 22.6109 14.4367C22.6109 15.9712 23.1189 17.2333 24.1328 18.2881C25.1466 19.3103 26.4006 19.8225 27.9224 19.8225C29.4443 19.8225 30.6683 19.3103 31.6821 18.2881Z",fill:n}),g.jsx("path",{d:"M51.5798 8.8437C53.0416 10.3782 53.7875 12.2433 53.7875 14.4391C53.7875 16.6348 53.0416 18.5302 51.5798 20.0647C50.1179 21.5992 48.3282 22.3513 46.2382 22.3513C43.7625 22.3513 41.8827 21.3593 40.5987 19.3731V27.9769H38.0029V6.91804H40.5987V9.505C41.8827 7.51879 43.7602 6.52686 46.2382 6.52686C48.3258 6.52686 50.1179 7.30923 51.5798 8.8437ZM49.6699 18.2881C50.6837 17.2356 51.1918 15.9712 51.1918 14.4367C51.1918 12.9023 50.6837 11.6402 49.6699 10.6157C48.6561 9.56321 47.4021 9.05094 45.9102 9.05094C44.4184 9.05094 43.1367 9.56321 42.1206 10.6157C41.1067 11.6379 40.5987 12.9023 40.5987 14.4367C40.5987 15.9712 41.1067 17.2333 42.1206 18.2881C43.1344 19.3103 44.3884 19.8225 45.9102 19.8225C47.4321 19.8225 48.6561 19.3103 49.6699 18.2881Z",fill:n}),g.jsx("path",{d:"M55.5449 21.96V0H58.1407V21.96H55.5449Z",fill:n}),g.jsx("path",{d:"M60.3188 2.43569C60.3188 1.47402 61.0948 0.661377 62.0786 0.661377C63.0624 0.661377 63.8083 1.47402 63.8083 2.43569C63.8083 3.39736 63.0324 4.17973 62.0786 4.17973C61.1248 4.17973 60.3188 3.39736 60.3188 2.43569ZM60.7669 21.9578V6.91803H63.3626V21.9578H60.7669Z",fill:n}),g.jsx("path",{d:"M67.8354 20.095C66.3436 18.5605 65.5977 16.6954 65.5977 14.4391C65.5977 12.1828 66.3436 10.3176 67.8354 8.81343C69.3273 7.27896 71.2071 6.52686 73.4449 6.52686C76.3986 6.52686 78.8743 8.06133 80.0382 10.4667L77.8605 11.731C77.1145 10.136 75.4425 9.08354 73.4449 9.08354C71.9531 9.08354 70.6991 9.59581 69.6853 10.618C68.7015 11.6402 68.1934 12.9046 68.1934 14.4391C68.1934 15.9735 68.7015 17.2076 69.6853 18.2299C70.6991 19.2521 71.9531 19.7643 73.4449 19.7643C75.4448 19.7643 77.1145 18.7421 77.9505 17.1471L80.1583 18.4394C78.8766 20.8168 76.3386 22.349 73.4449 22.349C71.2071 22.349 69.3273 21.5969 67.8354 20.0927V20.095Z",fill:n}),g.jsx("path",{d:"M94.2686 6.91793H96.8643V21.9577H94.2686V19.3707C92.9869 21.3569 91.107 22.3488 88.6314 22.3488C86.5437 22.3488 84.7516 21.5967 83.2898 20.0623C81.828 18.5278 81.082 16.6324 81.082 14.4366C81.082 12.2409 81.828 10.3757 83.2898 8.84126C84.7516 7.30679 86.5414 6.52441 88.6314 6.52441C91.107 6.52441 92.9869 7.51635 94.2686 9.50256V6.9156V6.91793ZM92.7467 18.288C93.7605 17.2355 94.2686 15.9711 94.2686 14.4366C94.2686 12.9022 93.7605 11.6401 92.7467 10.6156C91.7329 9.5631 90.4789 9.05083 88.957 9.05083C87.4351 9.05083 86.2112 9.5631 85.1973 10.6156C84.1835 11.6378 83.6755 12.9022 83.6755 14.4366C83.6755 15.9711 84.1835 17.2331 85.1973 18.288C86.2112 19.3102 87.4652 19.8224 88.957 19.8224C90.4489 19.8224 91.7306 19.3102 92.7467 18.288Z",fill:n}),g.jsx("path",{d:"M0.836162 48.9264L3.22406 47.5432C4.03003 50.0999 5.90986 51.3643 8.80351 51.3643C11.6972 51.3643 13.219 50.072 13.219 48.116C13.219 47.1241 12.8311 46.372 12.0851 45.8597C11.3392 45.3475 10.0575 44.8375 8.29545 44.2647L6.29553 43.6034C5.84751 43.4218 5.25169 43.1517 4.56581 42.8211C3.87992 42.4601 3.37186 42.0992 3.04393 41.7383C2.35804 40.9862 1.72989 39.7521 1.72989 38.22C1.72989 36.3851 2.35573 34.9414 3.63975 33.889C4.92376 32.8062 6.47335 32.2637 8.29314 32.2637C11.6048 32.2637 14.1405 34.0985 15.3645 36.8648L13.0366 38.2176C12.1406 36.0521 10.561 34.9694 8.29314 34.9694C6.02533 34.9694 4.50345 36.1732 4.50345 38.0989C4.50345 39.0303 4.83139 39.7242 5.48725 40.2038C6.14311 40.6858 7.27702 41.1958 8.88896 41.708L10.1129 42.0992C10.3508 42.19 10.7088 42.3088 11.2168 42.5207C12.2607 42.9119 12.5008 43.0609 13.3045 43.5126C14.1405 43.9643 14.4084 44.295 14.9164 44.8957C15.6624 45.6478 15.9603 46.7306 15.9603 48.0532C15.9603 49.888 15.3044 51.362 13.9604 52.475C12.6186 53.5577 10.8866 54.1003 8.73885 54.1003C4.83139 54.1003 1.93773 52.1443 0.831543 48.9264H0.836162Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M25.089 54.1001C22.9112 54.1001 21.0314 53.348 19.5095 51.8135C17.9876 50.279 17.2417 48.4139 17.2417 46.1878C17.2417 43.9618 17.9876 42.0967 19.5095 40.5622C21.0314 39.0277 22.9112 38.2756 25.089 38.2756C27.2667 38.2756 29.1465 39.0277 30.6684 40.5622C32.1903 42.0967 32.9663 43.9618 32.9663 46.1878C32.9663 48.4139 32.1903 50.279 30.6684 51.8135C29.1465 53.348 27.2667 54.1001 25.089 54.1001ZM28.8486 50.0089C29.8624 48.9867 30.3705 47.7223 30.3705 46.1878C30.3705 44.6534 29.8624 43.3913 28.8486 42.3668C27.8348 41.3446 26.5808 40.8323 25.089 40.8323C23.5971 40.8323 22.3731 41.3446 21.3593 42.3668C20.3455 43.389 19.8374 44.6534 19.8374 46.1878C19.8374 47.7223 20.3455 48.9844 21.3593 50.0089C22.3731 51.0311 23.6271 51.5434 25.089 51.5434C26.5508 51.5434 27.8348 51.0311 28.8486 50.0089Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M42.5409 34.7877C39.9151 34.5782 38.6034 35.7215 38.6034 38.2176V38.6693H42.5409V41.1958H38.6034V53.7091H36.0077V41.1958H33.6221V38.6693H36.0077V38.2176C36.0077 34.1567 38.3355 31.9912 42.5409 32.2613V34.7877Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M52.7718 41.1958H48.8043V49.3478C48.8043 51.6647 50.116 51.4831 52.7718 51.3643V53.7114C48.2362 54.3122 46.2086 53.0804 46.2086 49.3502V41.1981H43.2549V38.6717H46.2086V35.2418L48.8043 34.4595V38.6717H52.7718V41.1981V41.1958Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M72.9095 38.6692H75.6254L71.002 53.7089H68.3462L64.8544 42.5787L61.3627 53.7089H58.7069L54.0835 38.6692H56.797L60.0786 50.0998L63.5981 38.6692H66.1038L69.6233 50.13L72.9049 38.6692H72.9095Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M88.5694 38.6692H91.1651V53.7089H88.5694V51.1219C87.2876 53.1081 85.4078 54.1001 82.9322 54.1001C80.8445 54.1001 79.0524 53.348 77.5906 51.8135C76.1287 50.279 75.3828 48.3836 75.3828 46.1878C75.3828 43.9921 76.1287 42.127 77.5906 40.5925C79.0524 39.058 80.8422 38.2756 82.9322 38.2756C85.4078 38.2756 87.2876 39.2676 88.5694 41.2538V38.6668V38.6692ZM87.0475 50.0392C88.0613 48.9867 88.5694 47.7223 88.5694 46.1878C88.5694 44.6534 88.0613 43.3913 87.0475 42.3668C86.0337 41.3143 84.7797 40.802 83.2578 40.802C81.7359 40.802 80.5119 41.3143 79.4981 42.3668C78.4843 43.389 77.9762 44.6534 77.9762 46.1878C77.9762 47.7223 78.4843 48.9844 79.4981 50.0392C80.5119 51.0614 81.7659 51.5737 83.2578 51.5737C84.7496 51.5737 86.0313 51.0614 87.0475 50.0392Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M96.8023 41.1957C97.6683 39.3306 99.2202 38.3992 101.456 38.3992V41.1375C100.172 41.0769 99.0978 41.4076 98.1741 42.1597C97.2503 42.9118 96.8023 44.0853 96.8023 45.7386V53.709H94.2065V38.6693H96.8023V41.1957Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M104.409 47.3918C104.917 50.0696 106.975 51.6343 109.809 51.6343C111.778 51.6343 113.21 50.9125 114.104 49.4385L116.312 50.7029C114.85 52.9592 112.672 54.1025 109.748 54.1025C107.391 54.1025 105.453 53.3504 103.961 51.8765C102.499 50.3723 101.753 48.4769 101.753 46.1903C101.753 43.9037 102.469 42.0386 103.931 40.5344C105.393 39.0302 107.273 38.2781 109.568 38.2781C111.746 38.2781 113.536 39.0604 114.91 40.6252C116.312 42.1597 116.998 44.0248 116.998 46.2206C116.998 46.6117 116.968 47.0029 116.908 47.3941H104.407L104.409 47.3918ZM104.409 45.1052H114.374C113.926 42.2482 111.956 40.7439 109.571 40.7439C106.797 40.7439 104.857 42.4577 104.409 45.1052Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M22.1377 69.1726V70.4369C22.1377 73.1752 21.2116 75.4595 19.3341 77.2943C17.4542 79.0989 14.9786 80.0024 11.9048 80.0024C8.83102 80.0024 6.08748 78.9499 3.99749 76.8449C1.93983 74.7097 0.895996 72.1228 0.895996 69.0841C0.895996 66.0454 1.93983 63.4584 3.99749 61.3535C6.08517 59.2182 8.71093 58.1658 11.8448 58.1658C13.7846 58.1658 15.5444 58.6478 17.1563 59.5792C18.7683 60.5106 20.02 61.7144 20.886 63.2489L18.4981 64.6623C17.3041 62.3757 14.7084 60.8715 11.8147 60.8715C9.42684 60.8715 7.45925 61.6539 5.93737 63.2489C4.41549 64.8136 3.63954 66.7695 3.63954 69.0841C3.63954 71.3986 4.41549 73.3545 5.93737 74.9193C7.48927 76.484 9.48688 77.2664 11.9348 77.2664C16.1102 77.2664 18.796 74.9798 19.3641 71.7013H11.697V69.1749H22.14L22.1377 69.1726Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M34.636 64.5691H37.2317V79.6088H34.636V77.4433C33.5921 79.1571 31.9802 80 29.8024 80C26.3107 80 24.0151 77.6226 24.0151 73.8039V64.5691H26.6109V73.6525C26.6109 76.0881 28.0127 77.5039 30.3105 77.5039C32.9062 77.5039 34.636 75.9089 34.636 72.5395V64.5691Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M42.4209 67.0956C43.287 65.2305 44.8389 64.2991 47.0743 64.2991V67.0374C45.7903 66.9768 44.7165 67.3075 43.7927 68.0596C42.869 68.8117 42.4209 69.9852 42.4209 71.6385V79.6089H39.8252V64.5692H42.4209V67.0956Z",fill:n,opacity:"0.6"}),g.jsx("path",{d:"M59.3049 64.5691H61.9007V79.6088H59.3049V77.4433C58.2611 79.1571 56.6491 80 54.4714 80C50.9796 80 48.6841 77.6226 48.6841 73.8039V64.5691H51.2798V73.6525C51.2798 76.0881 52.6816 77.5039 54.9794 77.5039C57.5752 77.5039 59.3049 75.9089 59.3049 72.5395V64.5691Z",fill:n,opacity:"0.6"})]})})},zB=({children:e,...t})=>{const n=xt();return g.jsx(Nn,{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:g.jsx(b.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};zB.propTypes={children:c.node};const ea=({version:e,name:t,copy:n,children:r,background:i=HB})=>g.jsxs(b.Box,{sx:{minHeight:"100vh"},children:[S.isValidElement(i)?i:S.createElement(i),g.jsxs(b.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{ml:3,mt:3},children:g.jsx(ic,{title:t})}),g.jsxs(b.Grid,{item:!0,xs:12,children:[g.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:g.jsx(b.Grid,{item:!0,children:g.jsx(zB,{children:r})})}),g.jsx(b.Grid,{item:!0,sx:{pb:1},children:g.jsx(Fs,{name:t,copy:n,version:e})})]})]})]});ea.propTypes={children:c.node,version:c.string,name:c.string,copy:c.string,background:c.oneOfType([c.node,c.func,c.object])};const WB=({name:e,copy:t,version:n,background:r})=>{const i=be.useTranslate(),a=be.useAuthProvider(),l=be.useNotify(),u=gt.useNavigate(),{token:A}=gt.useParams();return S.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{l("ra.auth.activate_success",{type:"info"}),yt.delay(()=>u("/login"),1e3)}).catch(f=>{l(f,{type:"error"}),yt.delay(()=>u("/login"),1e3)})},[A]),g.jsx(ea,{name:e,copy:t,version:n,background:r,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:i("ra.auth.activate")}),g.jsx(b.Typography,{component:gt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:i("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:i("ra.auth.activate_pending")})]})})};WB.propTypes={name:c.string.isRequired,version:c.string.isRequired,background:c.node};const lc=({version:e,name:t,copy:n,enablePasswordRecover:r,enableRegistration:i,redirectTo:a,background:l})=>{const[u,A]=be.useSafeSetState(!1),f=be.useLogin(),p=be.useTranslate(),C=be.useNotify(),h=be.useCheckAuth(),m=gt.useNavigate();S.useEffect(()=>{h({},!1).then(()=>{m("/")}).catch(()=>{})},[h,m]);const I=B=>{A(!0),f(B,a).then(()=>{A(!1)}).catch(v=>{A(!1),C(typeof v=="string"?v:typeof v>"u"||!v.message?"ra.auth.sign_in_error":v.message,{type:"error",messageArgs:{_:typeof v=="string"?v:v&&v.message?v.message:void 0}})})};return g.jsx(ea,{name:t,version:e,copy:n,background:l,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:"Login"}),i&&g.jsx(b.Typography,{component:gt.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:p("ra.auth.register")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(be.Form,{onSubmit:I,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Hn,{autoFocus:!0,source:"username",label:p("ra.auth.username"),autoComplete:"username",validate:be.required(),placeholder:"user@company.name",fullWidth:!0})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(Hn,{source:"password",label:p("ra.auth.password"),type:"password",autoComplete:"current-password",validate:be.required(),placeholder:p("ra.auth.password_placeholder"),fullWidth:!0})})]}),r&&g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:g.jsx(b.Link,{variant:"h6",component:gt.Link,to:"/recover",color:"text.primary",children:p("ra.auth.forgot_password")})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?g.jsx(b.CircularProgress,{size:19,thickness:3}):p("ra.auth.sign_in")})})]})})]})})};lc.propTypes={version:c.string.isRequired,name:c.string.isRequired,enablePasswordRecover:c.bool,enableRegister:c.bool,background:c.element},lc.defaultProps={enablePasswordRecover:!1,enableRegister:!1,background:g.jsx(HB,{})};const UB=({name:e,copy:t,version:n,background:r})=>{const[i,a]=S.useState(!1),l=be.useTranslate(),u=be.useRedirect(),A=be.useNotify(),f=be.useAuthProvider(),p=({email:C})=>{a(!0),f.recover(C).then(h=>{const m=`ra.auth.recover_${h.responseCode}`,I=h.responseCode==="ok"?"info":"error";A(m,{type:I}),u("/login")}).catch(h=>{A(h,{type:"error"})}).finally(()=>a(!1))};return g.jsx(ea,{name:e,copy:t,version:n,background:r,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:l("ra.auth.recover.title")}),g.jsx(b.Typography,{component:gt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:l("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(M.Form,{onSubmit:p,children:[g.jsx(b.Grid,{container:!0,children:g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Hn,{source:"email",validate:[be.required(),be.email()]})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:g.jsx(b.Typography,{variant:"caption",children:l("ra.auth.recover.inbox_help")})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:i,fullWidth:!0,children:i?g.jsx(b.CircularProgress,{size:19,thickness:3}):l("ra.auth.recover")})})]})})]})})};UB.propTypes={name:c.string.isRequired,version:c.string.isRequired,background:c.node};const YB=({name:e,copy:t,version:n})=>{const[r,i]=S.useState(!1),a=be.useTranslate(),l=be.useRedirect(),u=be.useNotify(),A=be.useAuthProvider(),f=p=>{i(!0),A.register(p).then(C=>{const h=`ra.auth.register_${C.responseCode}`,m=C.responseCode==="ok"?"info":"error";u(h,{type:m}),l("/login")}).catch(C=>{u(C,{type:"error"})}).finally(()=>i(!1))};return g.jsx(ea,{name:e,copy:t,version:n,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:a("ra.auth.register.title")}),g.jsx(b.Typography,{component:gt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:a("ra.auth.already_have_account")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(M.Form,{onSubmit:f,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Hn,{source:"name",label:a("ra.register.name"),validate:be.required()})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Hn,{source:"email",type:"email",validate:[be.required(),be.email()]})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(Hn,{source:"password",type:"password",validate:be.required()})})]}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:r,fullWidth:!0,children:r?g.jsx(b.CircularProgress,{size:19,thickness:3}):a("ra.auth.create_account")})})]})})]})})};YB.propTypes={name:c.string.isRequired,version:c.string.isRequired};const C6=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 ${Ne(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${Ne(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${Ne(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${Ne(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${Ne(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${Ne(e.palette.info.main,.2)}`,success:`0 0 0 2px ${Ne(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${Ne(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${Ne(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${Ne(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${Ne(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${Ne(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${Ne(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${Ne(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${Ne(e.palette.grey[500],.2)}`});function Kn(e,t){E6(e)&&(e="100%");var n=m6(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 E6(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function m6(e){return typeof e=="string"&&e.indexOf("%")!==-1}function I6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function If(e){return e.length===1?"0"+e:String(e)}function B6(e,t,n){return{r:Kn(e,255)*255,g:Kn(t,255)*255,b:Kn(n,255)*255}}function Bf(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 y6(e,t,n){var r,i,a;if(e=Kn(e,360),t=Kn(t,100),n=Kn(n,100),t===0)i=n,a=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=Bf(u,l,e+1/3),i=Bf(u,l,e),a=Bf(u,l,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function v6(e,t,n){e=Kn(e,255),t=Kn(t,255),n=Kn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=r,u=r-i,A=r===0?0:u/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:A,v:l}}function b6(e,t,n){e=Kn(e,360)*6,t=Kn(t,100),n=Kn(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),l=n*(1-i*t),u=n*(1-(1-i)*t),A=r%6,f=[n,l,a,a,u,n][A],p=[u,n,n,l,a,a][A],C=[a,a,u,n,n,l][A];return{r:f*255,g:p*255,b:C*255}}function Q6(e,t,n,r){var i=[If(Math.round(e).toString(16)),If(Math.round(t).toString(16)),If(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function GB(e){return wn(e)/255}function wn(e){return parseInt(e,16)}var KB={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 ta(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,l=!1,u=!1;return typeof e=="string"&&(e=T6(e)),typeof e=="object"&&(jr(e.r)&&jr(e.g)&&jr(e.b)?(t=B6(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):jr(e.h)&&jr(e.s)&&jr(e.v)?(r=cc(e.s),i=cc(e.v),t=b6(e.h,r,i),l=!0,u="hsv"):jr(e.h)&&jr(e.s)&&jr(e.l)&&(r=cc(e.s),a=cc(e.l),t=y6(e.h,r,a),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=I6(n),{ok:l,format:e.format||u,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 x6="[-\\+]?\\d+%?",w6="[-\\+]?\\d*\\.\\d+%?",go="(?:".concat(w6,")|(?:").concat(x6,")"),yf="[\\s|\\(]+(".concat(go,")[,|\\s]+(").concat(go,")[,|\\s]+(").concat(go,")\\s*\\)?"),vf="[\\s|\\(]+(".concat(go,")[,|\\s]+(").concat(go,")[,|\\s]+(").concat(go,")[,|\\s]+(").concat(go,")\\s*\\)?"),or={CSS_UNIT:new RegExp(go),rgb:new RegExp("rgb"+yf),rgba:new RegExp("rgba"+vf),hsl:new RegExp("hsl"+yf),hsla:new RegExp("hsla"+vf),hsv:new RegExp("hsv"+yf),hsva:new RegExp("hsva"+vf),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 T6(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(KB[e])e=KB[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=or.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=or.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=or.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=or.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=or.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=or.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=or.hex8.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),a:GB(n[4]),format:t?"name":"hex8"}:(n=or.hex6.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),format:t?"name":"hex"}:(n=or.hex4.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),a:GB(n[4]+n[4]),format:t?"name":"hex8"}:(n=or.hex3.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function jr(e){return!!or.CSS_UNIT.exec(String(e))}var uc=2,_B=.16,P6=.05,S6=.05,O6=.15,JB=5,XB=4,M6=[{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 ZB(e){var t=e.r,n=e.g,r=e.b,i=v6(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function Ac(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Q6(t,n,r,!1))}function D6(e,t,n){var r=n/100,i={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 i}function qB(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-uc*t:Math.round(e.h)+uc*t:r=n?Math.round(e.h)+uc*t:Math.round(e.h)-uc*t,r<0?r+=360:r>=360&&(r-=360),r}function $B(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-_B*t:t===XB?r=e.s+_B:r=e.s+P6*t,r>1&&(r=1),n&&t===JB&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ey(e,t,n){var r;return n?r=e.v+S6*t:r=e.v-O6*t,r>1&&(r=1),Number(r.toFixed(2))}function ty(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ta(e),i=JB;i>0;i-=1){var a=ZB(r),l=Ac(ta({h:qB(a,i,!0),s:$B(a,i,!0),v:ey(a,i,!0)}));n.push(l)}n.push(Ac(r));for(var u=1;u<=XB;u+=1){var A=ZB(r),f=Ac(ta({h:qB(A,u),s:$B(A,u),v:ey(A,u)}));n.push(f)}return t.theme==="dark"?M6.map(function(p){var C=p.index,h=p.opacity,m=Ac(D6(ta(t.backgroundColor||"#141414"),ta(n[C]),h*100));return m}):n}var bf={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"},_t={},dc={};Object.keys(bf).forEach(function(e){_t[e]=ty(bf[e]),_t[e].primary=_t[e][5],dc[e]=ty(bf[e],{theme:"dark",backgroundColor:"#141414"}),dc[e].primary=dc[e][5]}),_t.red,_t.volcano,_t.gold,_t.orange,_t.yellow,_t.lime,_t.green,_t.cyan,_t.blue,_t.geekblue,_t.purple,_t.magenta,_t.grey,_t.grey;const ny=e=>{const{blue:t,red:n,gold:r,cyan:i,green:a,grey:l}=e,u={0:l[0],50:l[1],100:l[2],200:l[3],300:l[4],400:l[5],500:l[6],600:l[7],700:l[8],800:l[9],900:l[10],A50:l[15],A100:l[11],A200:l[12],A400:l[13],A700:l[14],A800:l[16]},A="#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:A},secondary:{lighter:u[100],100:u[100],200:u[200],light:u[300],400:u[400],main:u[500],600:u[600],dark:u[700],800:u[800],darker:u[900],A100:u[0],A200:u.A400,A300:u.A700,contrastText:u[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:A},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:u[100]},info:{lighter:i[0],light:i[3],main:i[5],dark:i[7],darker:i[9],contrastText:A},success:{lighter:a[0],light:a[3],main:a[5],dark:a[7],darker:a[9],contrastText:A},grey:u}};ny.propTypes={colors:c.object};const R6=(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]},i="#fff";let a=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],l=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],u=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],A=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],f=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(a=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],l=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],u=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],A=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],f=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},j6=(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]},i="#fff";let a=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},k6=(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]},i="#fff";let a=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},F6=(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]},i="#fff";let a=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},L6=(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]},i="#fff";let a=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},N6=(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]},i="#fff";let a=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},V6=(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]},i="#fff";let a=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},H6=(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]},i="#fff";let a=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],l=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],u=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],A=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],f=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(a=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],l=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],u=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],A=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],f=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:a[0],100:a[1],200:a[2],light:a[3],400:a[4],main:a[5],dark:a[6],700:a[7],darker:a[8],900:a[9],contrastText:i},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:l[0],light:l[1],main:l[2],dark:l[3],darker:l[4],contrastText:i},warning:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:r[100]},info:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:i},success:{lighter:f[0],light:f[1],main:f[2],dark:f[3],darker:f[4],contrastText:i},grey:r}},ry=(e,t,n)=>{switch(t){case"theme1":return R6(e,n);case"theme2":return j6(e,n);case"theme3":return k6(e,n);case"theme4":return F6(e,n);case"theme5":return L6(e,n);case"theme6":return N6(e,n);case"theme7":return V6(e,n);case"theme8":return H6(e,n);default:return ny(e)}};ry.propTypes={colors:c.object,presetColor:c.any};const z6=(e,t)=>{const n=e==="dark"?dc:_t;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],i=["#fafafa","#bfbfbf","#434343","#1f1f1f"],a=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],i=["#fafafa","#bfbfbf","#434343","#1f1f1f"],a=["#121212","#d3d8db"]),n.grey=[...r,...i,...a];const l=ry(n,t,e);return ku({palette:{mode:e,common:{black:"#000",white:"#fff"},...l,text:{primary:e==="dark"?Ne(l.grey[900],.87):l.grey[700],secondary:e==="dark"?Ne(l.grey[900],.45):l.grey[500],disabled:e==="dark"?Ne(l.grey[900],.1):l.grey[400]},action:{disabled:l.grey[300]},divider:e==="dark"?Ne(l.grey[900],.05):l.grey[200],background:{paper:e==="dark"?l.grey[100]:l.grey[0],default:l.grey.A50}}})},W6=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 U6(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 Y6(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function G6(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:g.jsx(et.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 No({color:e,theme:t}){const n=$t(t,e),{lighter:r,light:i,main:a}=n;return{borderColor:Ne(i,.5),backgroundColor:r,"& .MuiAlert-icon":{color:a}}}function K6(e){const t=No({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":No({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":No({color:"secondary",theme:e}),"&.MuiAlert-borderError":No({color:"error",theme:e}),"&.MuiAlert-borderSuccess":No({color:"success",theme:e}),"&.MuiAlert-borderInfo":No({color:"info",theme:e}),"&.MuiAlert-borderWarning":No({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 _6(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function J6(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 Vo({color:e,theme:t}){const n=$t(t,e),{lighter:r,main:i}=n;return{color:i,backgroundColor:r}}function X6(e){const t=Vo({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":Vo({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":Vo({color:"secondary",theme:e}),"&.MuiBadge-colorError":Vo({color:"error",theme:e}),"&.MuiBadge-colorInfo":Vo({color:"info",theme:e}),"&.MuiBadge-colorSuccess":Vo({color:"success",theme:e}),"&.MuiBadge-colorWarning":Vo({color:"warning",theme:e})}}}}}function qe({variant:e,color:t,theme:n}){const r=$t(n,t),{lighter:i,main:a,dark:l,contrastText:u}=r,A=`${t}Button`,f=bi(n,A),p={"&::after":{boxShadow:`0 0 5px 5px ${Ne(a,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${Ne(a,.9)}`},"&:focus-visible":{outline:`2px solid ${l}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:l},...p};case"shadow":return{color:u,backgroundColor:a,boxShadow:f,"&:hover":{boxShadow:"none",backgroundColor:l},...p};case"outlined":return{borderColor:a,"&:hover":{color:l,backgroundColor:"transparent",borderColor:l},...p};case"dashed":return{color:a,borderColor:a,backgroundColor:i,"&:hover":{color:l,borderColor:l},...p};case"text":default:return{"&:hover":{color:l,backgroundColor:i},...p}}}function Z6(e){const t=qe({variant:"dashed",color:"primary",theme:e}),n=qe({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},i={"&>*: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:{...i},startIcon:{...i},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":qe({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":qe({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":qe({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":qe({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":qe({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":qe({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":qe({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":qe({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":qe({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":qe({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":qe({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":qe({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:qe({variant:"contained",color:"primary",theme:e}),containedSecondary:qe({variant:"contained",color:"secondary",theme:e}),containedError:qe({variant:"contained",color:"error",theme:e}),containedSuccess:qe({variant:"contained",color:"success",theme:e}),containedInfo:qe({variant:"contained",color:"info",theme:e}),containedWarning:qe({variant:"contained",color:"warning",theme:e}),outlinedPrimary:qe({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:qe({variant:"outlined",color:"secondary",theme:e}),outlinedError:qe({variant:"outlined",color:"error",theme:e}),outlinedSuccess:qe({variant:"outlined",color:"success",theme:e}),outlinedInfo:qe({variant:"outlined",color:"info",theme:e}),outlinedWarning:qe({variant:"outlined",color:"warning",theme:e}),textPrimary:qe({variant:"text",color:"primary",theme:e}),textSecondary:qe({variant:"text",color:"secondary",theme:e}),textError:qe({variant:"text",color:"error",theme:e}),textSuccess:qe({variant:"text",color:"success",theme:e}),textInfo:qe({variant:"text",color:"info",theme:e}),textWarning:qe({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function q6(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function $6(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function eF(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Hi({color:e,theme:t}){const n=$t(t,e),{lighter:r,main:i,dark:a}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:i}},"&.Mui-focusVisible":{outline:`2px solid ${a}`,outlineOffset:-4}}}function tF(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 Qf(e){const t=tF(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function nF(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(et.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(et.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...Qf("small")},"&.size-medium":{...Qf("medium")},"&.size-large":{...Qf("large")}},colorPrimary:Hi({color:"primary",theme:e}),colorSecondary:Hi({color:"secondary",theme:e}),colorSuccess:Hi({color:"success",theme:e}),colorWarning:Hi({color:"warning",theme:e}),colorInfo:Hi({color:"info",theme:e}),colorError:Hi({color:"error",theme:e})}}}}function zi({color:e,theme:t}){const n=$t(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Tn({color:e,theme:t}){const n=$t(t,e),{light:r,lighter:i,main:a}=n;return{color:a,backgroundColor:i,borderColor:r,"& .MuiChip-deleteIcon":{color:a,"&:hover":{color:r}}}}function rF(e){const t=Tn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":zi({color:"primary",theme:e}),"&.MuiChip-colorSecondary":zi({color:"secondary",theme:e}),"&.MuiChip-colorError":zi({color:"error",theme:e}),"&.MuiChip-colorInfo":zi({color:"info",theme:e}),"&.MuiChip-colorSuccess":zi({color:"success",theme:e}),"&.MuiChip-colorWarning":zi({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Tn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Tn({color:"secondary",theme:e}),"&.MuiChip-lightError":Tn({color:"error",theme:e}),"&.MuiChip-lightInfo":Tn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Tn({color:"success",theme:e}),"&.MuiChip-lightWarning":Tn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Tn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Tn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Tn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Tn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Tn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Tn({color:"warning",theme:e})}}}}}function oF(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:Ne("#000",.7)}}}}}}function iF(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function sF(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Wi({color:e,theme:t}){const n=$t(t,e),{main:r,dark:i,contrastText:a}=n,l=`${e}Button`,u=bi(t,l);return{color:a,backgroundColor:r,boxShadow:u,"&:hover":{boxShadow:"none",backgroundColor:i},"&:focus-visible":{outline:`2px solid ${i}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${Ne(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${Ne(r,.9)}`}}}function aF(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Wi({color:"primary",theme:e}),"&.MuiFab-secondary":Wi({color:"secondary",theme:e}),"&.Mui-error":Wi({color:"error",theme:e}),"&.MuiFab-success":Wi({color:"success",theme:e}),"&.MuiFab-info":Wi({color:"info",theme:e}),"&.MuiFab-warning":Wi({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 lF(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 cF(){return{MuiInputBase:{styleOverrides:{}}}}function uF(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 AF(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function dF(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function fF(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function gF(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function pF(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function Ho({variant:e,theme:t}){const n=$t(t,e),{light:r}=n,i=bi(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:i,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function hF(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:{...Ho({variant:"primary",theme:e}),"&.Mui-error":{...Ho({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:Ho({variant:"secondary",theme:e}),colorError:Ho({variant:"error",theme:e}),colorWarning:Ho({variant:"warning",theme:e}),colorInfo:Ho({variant:"info",theme:e}),colorSuccess:Ho({variant:"success",theme:e})}}}}function CF(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function vt({variant:e,color:t,theme:n}){const r=$t(n,t),{lighter:i,light:a,dark:l,main:u,contrastText:A}=r,f={"&:focus-visible":{outline:`2px solid ${l}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:A,backgroundColor:u,"&:hover":{backgroundColor:a},...f};case"outlined":return{borderColor:u,"&:hover":{backgroundColor:i,borderColor:a},...f};case"text":default:return{color:u,"&:hover":{backgroundColor:u,color:i},...f}}}function EF(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":vt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":vt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":vt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":vt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":vt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":vt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":vt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":vt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":vt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":vt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":vt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":vt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":vt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":vt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":vt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":vt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":vt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":vt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":vt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":vt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":vt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":vt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":vt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":vt({variant:"outlined",color:"warning",theme:e})}}}}}}function mF(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Ui({color:e,theme:t}){const n=$t(t,e),{lighter:r,main:i,dark:a}=n;return{"& .dot":{backgroundColor:i},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${a}`,outlineOffset:-4}}}function IF(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 xf(e){const t=IF(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function BF(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:g.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":{...xf("small")},"&.size-medium":{...xf("medium")},"&.size-large":{...xf("large")}},colorPrimary:Ui({color:"primary",theme:e}),colorSecondary:Ui({color:"secondary",theme:e}),colorSuccess:Ui({color:"success",theme:e}),colorWarning:Ui({color:"warning",theme:e}),colorInfo:Ui({color:"info",theme:e}),colorError:Ui({color:"error",theme:e})}}}}function Yi({color:e,theme:t}){const n=$t(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function yF(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":Yi({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":Yi({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":Yi({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":Yi({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":Yi({color:"info",theme:e}),"&.MuiSlider-thumbColorError":Yi({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 vF(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 wf(e,t){const n=vF(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 bF(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},...wf(e,"medium")},sizeLarge:{...wf(e,"large")},sizeSmall:{...wf(e,"small")}}}}}function QF(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 xF(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 wF(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 TF(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function PF(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function SF(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function OF(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function MF(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function DF(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 RF(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function jF(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function kF(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function FF(e){return st.merge(U6(e),Y6(e),G6(e),K6(e),_6(),J6(e),X6(e),Z6(e),q6(),$6(),eF(),nF(e),rF(e),oF(),iF(e),sF(),aF(e),lF(e),cF(),uF(e),AF(),dF(),fF(e),gF(e),pF(),hF(e),CF(),EF(e),mF(e),BF(e),yF(e),bF(e),QF(e),xF(e),wF(e),TF(e),PF(e),SF(),OF(),MF(),DF(e),RF(e),jF(),kF())}const Tf=({themeOverrides:e,children:t})=>{const{themeDirection:n,mode:r,presetColor:i,fontFamily:a}=Fn(),l=S.useMemo(()=>z6(r,i),[r,i]),u=S.useMemo(()=>W6(a),[a]),A=S.useMemo(()=>C6(l),[l]),f=S.useMemo(()=>yt.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:n,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:l.palette,customShadows:A,typography:u,shadows:l.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:l.spacing(2.6875),height:l.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(l):e),[n,l,u,A,e]),p=ku(f),C=yt.cloneDeep(p.components??{});return p.components=yt.merge(FF(p),C),g.jsx(b.StyledEngineProvider,{injectFirst:!0,children:g.jsxs(Zp,{theme:p,children:[g.jsx(b.CssBaseline,{}),t]})})};Tf.propTypes={children:c.node,themeOverrides:c.oneOfType([c.object,c.func])};const oy=({children:e,theme:t,...n})=>g.jsx(M.CoreAdminContext,{...n,children:g.jsx(Tf,{themeOverrides:t,children:g.jsx(df,{children:e})})});oy.displayName="ApplicaAdminContext";const Gi=e=>{const{authProvider:t,catchAll:n,children:r,dashboard:i,dataProvider:a,disableTelemetry:l,history:u,i18nProvider:A,layout:f,loading:p,loginPage:C,authCallbackPage:h,menu:m,notification:I,queryClient:B,requireAuth:v,store:O,ready:R,theme:x,title:T="React Admin"}=e;return g.jsx(oy,{authProvider:t,dataProvider:a,i18nProvider:A,store:O,history:u,queryClient:B,theme:x,children:g.jsx(M.AdminUI,{layout:f,dashboard:i,disableTelemetry:l,menu:m,catchAll:n,title:T,loading:p,loginPage:C,authCallbackPage:h,notification:I,requireAuth:v,ready:R,children:r})})};Gi.defaultProps={store:M.localStorageStore(),title:"Applica Admin"},Gi.propTypes={...M.AdminUI.propTypes};class iy{constructor({catch:t,display:n,log:r,error:i}){ya(this,"catch");ya(this,"display");ya(this,"log");ya(this,"error");this.catch=t,this.display=n,this.log=r,this.error=i}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const LF=({apiUrl:e,endpoint:t,message:n,bodyBuilder:r})=>fetch(`${e}${t}`,{method:"PUT",headers:new Headers({Accept:"application/json","Content-Type":"application/json"}),body:JSON.stringify(r(n))}),NF=({enabled:e=!0,apiUrl:t,endpoint:n="/ui-errors/put",loading:r,catcherFn:i=l=>new iy({catch:l!=null,display:!1,log:!1}),bodyBuilder:a=l=>({message:l})})=>(V.useMemo(()=>{if(r||!e)return;const l=console.error;console.error=function(u,...A){if(!u||typeof u!="string"){l.apply(console,arguments);return}const f=u.replace(/%s/g,()=>A.shift()),p=i(f);if(!p.isCatched()){l.apply(console,arguments);return}p.logError()&&LF({apiUrl:t,endpoint:n,message:f,bodyBuilder:a}),p.displayError()?l.apply(console,arguments):console.debug.apply(console,arguments)}},[t,r,a,n,i,e]),!0),Pf=({languages:e,defaultLocale:t,allowMissing:n=!1})=>jb(r=>st.get(e,r,{}),t,[{locale:t}],{allowMissing:n}),sy=[],VF=({apiUrl:e,endpoint:t,locale:n,message:r,bodyBuilder:i})=>r!=null&&r!=="undefined"&&r.indexOf("[")===-1&&r.indexOf("]")===-1&&sy.indexOf(`${n}-${r}`)===-1&&sy.push(`${n}-${r}`)&&fetch(`${e}${t}`,{method:"PUT",headers:new Headers({Accept:"application/json","Content-Type":"application/json"}),body:JSON.stringify(i(n,r)||{})}),ay=({apiUrl:e,enabled:t=!0,endpoint:n="/languages/put-message",loading:r,bodyBuilder:i=(a,l)=>({lang:a,code:l,text:l})})=>{const[a]=M.useLocaleState();return V.useMemo(()=>{if(r||!t)return;const l=console.error;console.error=function(u){if(!(typeof u=="string"&&u==="%c%s")){if(typeof u=="string"&&u.indexOf("Missing translation for key: ")>=0){if(u=u.replace("Warning: Missing translation for key: ",""),u=u.split('"').join("").trim(),u===null||u.indexOf(" ")!==-1||u.indexOf(".")===-1)return;const A=localStorage.getItem("locale")||a;VF({apiUrl:e,endpoint:n,locale:A,message:u,bodyBuilder:i});return}l.apply(console,arguments)}}},[e,a,r,i,n,t]),!0};window.React=S;const ly=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,i]=S.useState({loading:!0,languages:null});return S.useEffect(()=>{let a=new Headers;a.append("Accept","application/json"),a.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:a}).then(l=>l.json()).then(l=>i({loading:!1,...n(l)}))},[e,t,n]),r},HF=({apiUrl:e,locale:t="en",languages:n={}})=>Pf({apiUrl:e,locale:t,languages:n}),zF=e=>e.reduce((t,n)=>({...t,[n.lang]:{...t[n.lang]||{},[n.code]:n.text}}),{}),WF=(e,t)=>({lang:e,code:t,text:t}),UF=new qg.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),Sf=({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r,development:i,logoMain:a,logoIcon:l,loginPage:u,menu:A,name:f,copy:p,version:C,dataProvider:h,authProvider:m,notification:I,enableNotification:B,enableRegistration:v,enablePasswordRecover:O,...R})=>{const x=ly({apiUrl:n,endpoint:"/i18n/messages",mapper:zF});ay({bodyBuilder:WF,apiUrl:n,endpoint:"/i18n/message",loading:x==null?void 0:x.loading,enabled:i}),NF({apiUrl:n,endpoint:"/cli/error",catcherFn:k=>{const _=k==null?void 0:k.toString(),Y=["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`.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>."].some(le=>_==null?void 0:_.includes(le));return new iy({catch:Y,display:!Y,log:!Y,error:k})}});const T=S.useMemo(()=>S.isValidElement(u)?S.cloneElement(u,{name:f,copy:p,version:C,enableRegistration:v,enablePasswordRecover:O}):u,[u,f,C,p,v,O]),P=S.useMemo(()=>k=>{const _=f?g.jsx(ic,{title:f}):a,J=f?g.jsx(ff,{title:f}):l;return g.jsx(wB,{...k,name:f,copy:p,version:C,logoMain:_,logoIcon:J,notification:I,enableNotification:B})},[a,l,f,C,I,B]);if(x!=null&&x.loading)return null;const L=Pf({languages:x,defaultLocale:r,allowMissing:i});return g.jsx(Vu,{children:g.jsx(Uu,{menu:A,children:g.jsx(zu,{initialConfig:t,children:g.jsx(Gi,{theme:e,layout:P,notification:kB,queryClient:UF,dataProvider:h,authProvider:m,i18nProvider:L,loginPage:T,...R})})})})};Sf.defaultProps={...Gi.defaultProps,fileFields:[],defaultLocale:"en",development:!1,version:"0.0.0",notification:"entities/notification",enableNotification:!1,enableRegistration:!1,enableForgotPassword:!1,loginPage:g.jsx(lc,{version:"0.0.0",name:"Applica",redirectTo:"/"})},Sf.propTypes={...Gi.propTypes,theme:c.oneOfType([c.object,c.func]),apiUrl:c.string.isRequired,defaultLocale:c.string,development:c.bool,logoMain:c.node,logoIcon:c.node,menu:c.arrayOf(gi),name:c.string,version:c.string,authProvider:c.oneOfType([c.func,c.object]),dataProvider:c.oneOfType([c.func,c.object]),notification:c.string,enableNotification:c.bool,enableRegistration:c.bool,enableForgotPassword:c.bool},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,"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,"SimpleList",{enumerable:!0,get:()=>M.SimpleList}),Object.defineProperty(j,"SingleFieldList",{enumerable:!0,get:()=>M.SingleFieldList}),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,"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,"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,"useListContext",{enumerable:!0,get:()=>M.useListContext}),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,"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}),j.ActionsField=qA,j.ActionsMenu=fi,j.ActivatePage=WB,j.Admin=Gi,j.AnimateButton=NE,j.AppConfigContext=Nu,j.AppConfigProvider=Vu,j.ApplicaAdmin=Sf,j.ArrayInput=mO,j.AttachmentField=$A,j.AttachmentInput=sd,j.AutocompleteArrayInput=ad,j.AutocompleteInput=ld,j.Avatar=Cl,j.BooleanInput=cd,j.Breadcrumbs=Il,j.CardForm=bl,j.ChangePasswordForm=Id,j.CircularWithLabel=hm,j.CircularWithPath=Cm,j.CoverField=wl,j.Create=UO,j.CreateInDialogButton=hf,j.Datagrid=Ef,j.DateAgoField=Tl,j.DateField=ed,j.DateInput=ud,j.DateTimeInput=Ad,j.Dot=Bl,j.Drawer=BB,j.DrawerHeader=rI,j.DrawerHeaderStyled=Zd,j.DrawerToggle=i0,j.Edit=YO,j.EditInDialogButton=Cf,j.EmailField=td,j.Empty=NB,j.FileField=nd,j.FileInput=dd,j.Footer=Fs,j.FormHeader=Bd,j.FunctionField=xm,j.Header=s0,j.HeaderNotification=a0,j.HeaderProfile=l0,j.HeaderSpacer=u0,j.HorizontalBar=yB,j.IconButton=ro,j.ImageField=Ds,j.ImageInput=fd,j.ImpersonateUserButton=LB,j.LabeledArrayInput=xl,j.LabeledInput=at,j.Layout=wB,j.LayoutContent=A0,j.LayoutProvider=n0,j.LayoutWrapper=d0,j.LinearWithIcon=Em,j.LinearWithLabel=mm,j.List=VB,j.ListItem=mf,j.Loadable=n6,j.Loader=jB,j.LoadingButton=XA,j.LoginPage=lc,j.Logo=qd,j.LongForm=js,j.MainCard=Nn,j.MainIcon=ic,j.MenuConfigContext=Wu,j.MenuConfigProvider=Uu,j.MenuPopover=Ya,j.MenuPropTypes=gi,j.NavMenu=vB,j.Navigation=xB,j.Notification=kB,j.NotificationList=h6,j.NumberInput=gd,j.ReadonlyField=od,j.RecordInput=Sm,j.RecoverPage=UB,j.ReferenceArrayInput=pd,j.ReferenceInput=hd,j.ReferenceManyField=Qi,j.ReferenceManyInput=Cd,j.RegisterPage=YB,j.ResponsiveSection=c0,j.ScrollTop=df,j.ScrollX=r6,j.SearchInput=LO,j.SelectArrayInput=Ed,j.SelectInput=Mm,j.SimpleBar=cf,j.SimpleForm=Ql,j.SimpleFormIterator=c3,j.SizeField=Tm,j.SmallIcon=ff,j.SmartTextInput=Pl,j.TabbedForm=Rl,j.TableFormIterator=zR,j.TextField=id,j.TextInput=Hn,j.ThemeConfigContext=Hu,j.ThemeConfigProvider=zu,j.ThemeProvider=Tf,j.TimeInput=md,j.Toolbar=Mr,j.Tooltip=pm,j.Transitions=io,j.createI18nProvider=Pf,j.parseTime=Dm,j.useAppConfig=xo,j.useBreadcrumbs=uh,j.useI18nCatcher=ay,j.useI18nLanguages=ly,j.useI18nProvider=HF,j.useLayoutContext=Sd,j.useLayoutDispatch=YR,j.useLayoutDrawerState=ko,j.useLayoutLogoState=o0,j.useLayoutMediaState=zn,j.useLayoutNotificationsState=Ll,j.useLayoutState=Pi,j.useLayoutThemeState=Nl,j.useLocalStorage=Ku,j.useMenu=Gu,j.useMenuConfig=Jr,j.useRefDimensions=b1,j.useResourceTitle=Ah,j.useSx=pi,j.useThemeConfig=Fn,j.uuid=VO,j.withLayoutProvider=r0,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
266
266
  //# sourceMappingURL=react-admin.umd.js.map