@applica-software-guru/react-admin 1.3.183 → 1.3.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1 -0
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/ApplicaAdmin.tsx +1 -0
package/dist/react-admin.umd.js
CHANGED
|
@@ -281,5 +281,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
281
281
|
`),U7)),_7=fe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Se(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>W({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:$g(t,e.color),transition:`transform .${qg}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Kt.css(gb||(gb=ps`
|
|
282
282
|
width: auto;
|
|
283
283
|
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
284
|
-
`),Y7)),fb=k.forwardRef(function(t,n){const r=Vt({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:c,variant:u="indeterminate"}=r,A=Ue(r,W7),p=W({},r,{color:s,variant:u}),C=K7(p),h=yt(),E={},m={bar1:{},bar2:{}};if(u==="determinate"||u==="buffer")if(a!==void 0){E["aria-valuenow"]=Math.round(a),E["aria-valuemin"]=0,E["aria-valuemax"]=100;let B=a-100;h.direction==="rtl"&&(B=-B),m.bar1.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(u==="buffer")if(c!==void 0){let B=(c||0)-100;h.direction==="rtl"&&(B=-B),m.bar2.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return f.jsxs(J7,W({className:Ye(C.root,o),ownerState:p,role:"progressbar"},E,{ref:n},A,{children:[u==="buffer"?f.jsx(X7,{className:C.dashed,ownerState:p}):null,f.jsx(Z7,{className:C.bar1,ownerState:p,style:m.bar1}),u==="determinate"?null:f.jsx(_7,{className:C.bar2,ownerState:p,style:m.bar2})]}))});process.env.NODE_ENV!=="production"&&(fb.propTypes={classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","primary","secondary"]),g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),value:g.number,valueBuffer:g.number,variant:g.oneOf(["buffer","determinate","indeterminate","query"])});const q7=fb,$7=fe("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),pb=()=>f.jsx($7,{children:f.jsx(q7,{color:"primary"})}),eV=e=>t=>f.jsx(w.Suspense,{fallback:f.jsx(pb,{}),children:f.jsx(e,{...t})}),ef=({title:e})=>f.jsxs(y.Stack,{direction:"row",children:[f.jsx(y.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(y.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]}),tV=fe(D.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}}));function hb(e){return f.jsx(tV,{...e})}const tf=({children:e})=>{const t=It.useLocation(),{pathname:n}=t;return w.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};tf.propTypes={children:g.node};const nV=fe("div")({width:"100%",overflowX:"auto",display:"block"}),nf=({title:e})=>f.jsx(y.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});nf.propTypes={title:g.string.isRequired};var ya=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(ya||{});const rV=Nr().required(),oV=Nr().oneOf(Object.values(ya));function iV(e){var P;const t=Pi.useQueryClient(),[n,r]=w.useState(!1),[o,s]=w.useState(()=>()=>Promise.resolve()),a=de.useGetIdentity(),c=(P=a==null?void 0:a.data)==null?void 0:P.email,u=de.useDataProvider(),A=w.useCallback(()=>c?u.get("onboarding").then(M=>{var x;return(x=M==null?void 0:M.data)==null?void 0:x.value}):Promise.reject(),[u,c]),{data:p,isLoading:C,isError:h}=Pi.useQuery({queryKey:["GET","onboarding",c],queryFn:A,staleTime:24*60*60*1e3,retry:c!==void 0}),[E,m]=w.useState(()=>()=>Promise.resolve()),B=Pi.useMutation({mutationFn:E}),v=B.mutateAsync;return w.useEffect(()=>{function M(){const x=ue.chain(p??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",x).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}m(()=>M)},[u,p,e,t,c]),w.useEffect(()=>{r(ue.isNil((p??{})[e]))},[p,e,r]),w.useEffect(()=>{s(()=>()=>v())},[v]),{loading:C,error:h,onboardingRequired:n,acknowledgeOnboarding:o}}function sV(e){const[t,n]=Rl("onboarding",{}),[r,o]=w.useState(!1),[s,a]=w.useState(()=>()=>Promise.resolve());return w.useEffect(()=>{o(ue.isNil((t??{})[e]))},[t,e,o]),w.useEffect(()=>{a(()=>()=>(n(c=>ue.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:s}}function aV(){return{onboardingRequired:!1,acknowledgeOnboarding:w.useRef(()=>Promise.resolve()).current}}function lV(e,t){ZA({mode:oV,topic:rV}).validateSync({mode:e,topic:t});const n=iV(t),r=sV(t),o=aV();switch(e){case ya.USER:return n.loading?o:n.error?r:ue.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case ya.BROWSER:return r;default:return o}}var Qa=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(Qa||{});function cV(e,t){var o;const n=ue.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:s}=t;return ue.extend(n,{show:s})}case"REGISTER_TIP":{const{payload:s}=t,{id:a}=s,c=ue.chain(n.tips).clone().reject(p=>p.id===a).value(),u=ue.find(n.tips,{id:a}),A=ue.chain(u??{}).clone().extend(s).value();return c.push(A),ue.extend(n,{tips:ue.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:s}=t,a=ue.isString(s)?s:s.id,c=ue.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return ue.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:s}=t,a=ue.isString(s)?s:s.id,c=ue.chain(n.tips).reject(h=>h.id===a).value(),u=ue.find(n.tips,{id:a});if(ue.isNil(u))return n;const A=ue.chain(u).clone().extend({dismissed:!0}).value();c.push(A);const p=((o=ue.chain(c).reject(h=>h.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(A==null?void 0:A.completeOnboarding)&&ue.chain(c).reject(h=>h.step<p).reject(h=>h.dismissed??!1).isEmpty().value()&&e.onComplete(),ue.extend(n,{tips:ue.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:s}=t;return ue.extend(n,{onComplete:s})}case"RESTART":{const s=ue.chain(n.tips).clone().map(a=>ue.omit(a,"dismissed")).value();return ue.extend(n,{tips:s,currentStep:0})}default:return n}}const Cb=w.createContext(void 0);function uV(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=lV(t,n),[s,a]=w.useReducer(cV,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=w.useMemo(()=>({state:s,dispatch:a}),[s,a]);return w.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),w.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),f.jsx(Cb.Provider,{value:c,children:e.children})}function Eb(){const e=w.useContext(Cb);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function AV(){return Eb().state}function Ib(){return Eb().dispatch}function dV(e){ZA({id:Nr().required(),step:AC().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:s,currentStep:a}=AV(),c=ue.find(s,{id:t}),{dismissed:u}=c??{},A=Ib(),p=w.useCallback(()=>{A({type:Qa.DISMISS_TIP,payload:t})},[A,t]);return w.useEffect(()=>{(ue.isNil(c)||n!==(c==null?void 0:c.step))&&A({type:Qa.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c]),w.useEffect(()=>()=>{A({type:Qa.UNREGISTER_TIP,payload:t})},[t,A]),{tip:ue.chain(c??e).clone().extend({open:o&&!ue.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function gV(){const e=Ib();return w.useCallback(()=>{e({type:Qa.RESTART})},[e])}function fV(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:s,dismiss:a}=dV({id:t,step:n,completeOnboarding:o}),{open:c}=s,u=ue.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(dc,{...u,arrow:!0,open:c,title:f.jsxs(y.Stack,{gap:1,children:[f.jsx(y.Typography,{children:r}),f.jsx(y.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const pV=y.styled(fV)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${y.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${y.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${y.tooltipClasses.arrow}`]:{color:r.main}}});function hV({label:e="ra.auth.sign_in",...t}){const n=D.useRecordContext(),[r,o]=w.useState(!1),s=D.useAuthProvider(),a=w.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),s.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[s,n==null?void 0:n.id]);return f.jsx(D.Button,{disabled:r||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:f.jsx(zn.VpnKey,{})})}const rf=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},CV=(e,t)=>e&&e.data?{data:rf(e.data,t),total:e.total+1}:e,EV=(e,t)=>e&&e.length>0?rf(e,t):e,IV=(e,t)=>e&&e.data?{...e,data:rf(e.data,t),total:e.total+1}:e,mV=({onClose:e,record:t,children:n,redirect:r=!1,onSubmit:o,onSuccess:s,onError:a})=>{const c=Pi.useQueryClient(),u=D.useResourceContext(),A=D.useRedirect(),p=D.useNotify(),C=w.useCallback(B=>{const P=Date.now();c.setQueryData([u,"getOne",{id:B.id}],B),c.setQueriesData([u,"getList"],M=>IV(M,B),{updatedAt:P}),c.setQueriesData([u,"getMany"],M=>EV(M,B),{updatedAt:P}),c.setQueriesData([u,"getManyReference"],M=>CV(M,B),{updatedAt:P}),e(),p("ra.notification.created"),r!==void 0&&A(r,u,B.id,B),s&&s(B)},[e,s,c,u,p,A,r]),{save:h,...E}=D.useCreateController({mutationOptions:{onSuccess:C,onError:a}}),m=w.useCallback(B=>{o?o(B,e):h&&h(B)},[o,h,e]);return f.jsx(D.CreateContextProvider,{value:{record:t,save:m,saving:E==null?void 0:E.saving,redirect:r},children:w.cloneElement(n,{...n.props,toolbar:f.jsxs(oi,{children:[f.jsx(D.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:E==null?void 0:E.saving}),f.jsx(D.SaveButton,{disabled:E==null?void 0:E.saving})]})})})},BV={true:{_scrollToTop:!0},false:{}},vV=fe(y.Fab,{name:"RaApplicaCreateInDialogButton",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${D.CreateButtonClasses.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}}));function bV({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.create",record:r,redirect:o,scrollToTop:s=!0,className:a,sx:c,onSubmit:u,onSuccess:A,onError:p,...C}){const[h,E]=w.useState(!1),m=D.useTranslate(),B=D.useResourceContext(),{openDialog:v,closeDialog:P}=Uo(),M=w.useCallback(()=>v(B,()=>E(!0)),[v,B]),x=w.useCallback(()=>P(B,()=>E(!1)),[P,B]),O=y.useMediaQuery(S=>S.breakpoints.down("md"));return f.jsxs(f.Fragment,{children:[O?f.jsx(vV,{...C,state:BV[String(s)],color:"primary",className:Ye(D.CreateButtonClasses.floating,a),"aria-label":n&&m(n),onClick:M,children:f.jsx(zn.Add,{})}):f.jsx(D.Button,{...C,sx:c,label:n,onClick:M,children:f.jsx(zn.Add,{})}),f.jsx(y.Dialog,{open:h,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:x,fullWidth:e,maxWidth:t,children:f.jsx(mV,{...C,redirect:o,record:r,onClose:x,onSubmit:u,onSuccess:A,onError:p})})]})}const yV=({onClose:e,children:t})=>{const n=D.useNotify(),r=D.useRecordContext(),o=D.useResourceContext(),{id:s}=r,{isLoading:a,data:c}=D.useGetOne(o,{id:s}),u=w.useCallback(()=>{n("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e()},[e,n]),{save:A,saving:p}=D.useEditController({resource:o,id:s,mutationMode:"pessimistic",mutationOptions:{onSuccess:u}});return f.jsx(D.EditContextProvider,{value:{record:c,isLoading:a,save:A,saving:p},children:w.cloneElement(t,{toolbar:f.jsxs(oi,{children:[f.jsx(D.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),f.jsx(D.SaveButton,{})]})})})};function QV({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.edit",...r}){const[o,s]=w.useState(!1),{openDialog:a,closeDialog:c}=Uo(),u=D.useResourceContext(),A=w.useCallback(()=>a(u,()=>s(!0)),[a,u]),p=w.useCallback(()=>c(u,()=>s(!1)),[c,u]);return f.jsxs(f.Fragment,{children:[f.jsx(D.Button,{label:n,onClick:A,children:f.jsx(zn.Edit,{})}),f.jsx(y.Dialog,{open:o,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:p,fullWidth:e,maxWidth:t,children:f.jsx(yV,{onClose:p,children:r==null?void 0:r.children})})]})}function mb(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:s,resource:a,selectedIds:c=[],onUnselectItems:u}=de.useListContext(e),A=de.useTranslate(),p=w.useCallback(()=>{u()},[u]);return f.jsx(xV,{className:r,children:f.jsxs(q5,{"data-test":"bulk-actions-toolbar",className:Ye(_n.toolbar,{[_n.collapsed]:c.length===0}),...de.sanitizeListRestProps(o),children:[f.jsxs("div",{className:_n.title,children:[f.jsx(tg,{className:_n.icon,"aria-label":A("ra.action.unselect"),title:A("ra.action.unselect"),onClick:p,size:"small",children:f.jsx(Vc,{fontSize:"small"})}),f.jsx(rm,{color:"inherit",variant:"subtitle1",children:A(t,{_:t,smart_count:c.length})})]}),f.jsx(D.TopToolbar,{className:_n.topToolbar,children:w.Children.map(n,C=>w.isValidElement(C)?w.cloneElement(C,{filterValues:s,resource:a,selectedIds:c}):null)})]})})}const ci="RaBulkActionsToolbar",_n={toolbar:`${ci}-toolbar`,topToolbar:`${ci}-topToolbar`,buttons:`${ci}-buttons`,collapsed:`${ci}-collapsed`,title:`${ci}-title`,icon:`${ci}-icon`},xV=fe("div",{name:ci,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${_n.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Fi(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${_n.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${_n.buttons}`]:{},[`& .${_n.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${_n.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${_n.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),of={p:0,m:0},Bb={p:2,m:0,borderRadius:0,width:"100%"};function wV(e){const{children:t}=e,[n,r]=k.useState(null),o=m=>{r(m.currentTarget)},s=()=>{r(null)},a=y.useMediaQuery(m=>m.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:A=[],onUnselectItems:p}=D.useListContext(e),C=!!n&&A!==void 0&&A.length>0,h=C?"simple-popover":void 0,E=k.useCallback(()=>{p(),r(null)},[p,r]);return f.jsx(y.Fade,{in:A!==void 0&&A.length>0,children:f.jsxs(y.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(y.Fab,{color:"primary","aria-label":"manage",onClick:o,children:A==null?void 0:A.length}),f.jsx(y.Popover,{id:h,open:C,anchorEl:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(y.List,{sx:of,children:[f.jsx(y.ListItem,{sx:of,children:f.jsx(D.Button,{onClick:E,sx:Bb,label:"ra.action.unselect",startIcon:f.jsx(Vc,{}),children:f.jsx(Vc,{})})}),k.Children.map(t,m=>{var B;return f.jsx(y.ListItem,{sx:of,children:k.isValidElement(m)?k.cloneElement(m,{filterValues:c,resource:u,selectedIds:A,sx:Bb,...(B=m.props)!=null&&B.popover?{closePopover:s}:{}}):null})})]})})]})})}const vb=w.createContext({});vb.displayName="DatagridContext";const TV=({children:e,value:t})=>f.jsx(vb.Provider,{value:t,children:e}),bb=f.jsx(D.BulkDeleteButton,{}),sf=k.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?D.PureDatagridBody:D.DatagridBody,header:o=D.DatagridHeader,children:s,className:a,empty:c=OV,expand:u,bulkActionsToolbar:A=!1,bulkActionButtons:p=bb,hover:C,isRowSelectable:h,isRowExpandable:E,resource:m,rowClick:B,rowSx:v,rowStyle:P,size:M="small",sx:x,expandSingle:O=!1,...S}=e,{sort:L,data:z,isLoading:q,onSelect:ee,onToggleItem:K,selectedIds:J,setSort:le,total:se}=de.useListContext(e),Z=!!p,Y=w.useMemo(()=>({isRowExpandable:E,expandSingle:O}),[E,O]),H=w.useRef(null);w.useEffect(()=>{(!J||J.length===0)&&(H.current=null)},[JSON.stringify(J)]);const _=w.useCallback((F,$)=>{const V=z.map(ce=>ce.id),X=V.indexOf(H.current);if(H.current=$.target.checked?F:null,$.shiftKey&&X!==-1){const ce=V.indexOf(F),he=V.slice(Math.min(X,ce),Math.max(X,ce)+1),ge=$.target.checked?ZL(J,he):A9(J,he);ee(h?ge.filter(pe=>h(z.find(Ce=>Ce.id===pe))):ge)}else K(F)},[z,h,ee,K,J]);return q===!0?f.jsx(D.DatagridLoading,{className:a,expand:u,hasBulkActions:Z,nbChildren:k.Children.count(s),size:M}):z==null||z.length===0||se===0?c||null:f.jsx(TV,{value:Y,children:f.jsxs(D.DatagridRoot,{sx:x,className:Ye(D.DatagridClasses.root,a),children:[A!=null&&w.isValidElement(A)?w.cloneElement(A,{selectedIds:J,total:se}):p!==!1?f.jsx(mb,{children:w.isValidElement(p)?p:bb}):null,f.jsx("div",{className:D.DatagridClasses.tableWrapper,children:f.jsxs(y.Table,{ref:t,className:D.DatagridClasses.table,size:M,...PV(S),children:[yb(o,{children:s,sort:L,data:z,hasExpand:!!u,hasBulkActions:Z,isRowSelectable:h,onSelect:ee,resource:m,selectedIds:J,setSort:le},s),yb(r,{expand:u,rowClick:B,data:z,hasBulkActions:Z,hover:C,onToggleItem:_,resource:m,rowSx:v,rowStyle:P,selectedIds:J,isRowSelectable:h},s)]})})]})})}),yb=(e,t,n)=>w.isValidElement(e)?w.cloneElement(e,t,n):w.createElement(e,t,n);sf.propTypes={body:g.oneOfType([g.element,g.elementType]),bulkActionButtons:g.oneOfType([g.bool,g.element]),children:g.node.isRequired,className:g.string,sort:g.exact({field:g.string,order:g.oneOf(["ASC","DESC"])}),data:g.arrayOf(g.any),empty:g.element,expand:g.oneOfType([g.element,g.elementType]),header:g.oneOfType([g.element,g.elementType]),hover:g.bool,isLoading:g.bool,onSelect:g.func,onToggleItem:g.func,resource:g.string,rowClick:g.oneOfType([g.string,g.func,g.bool]),rowSx:g.func,rowStyle:g.func,selectedIds:g.arrayOf(g.any),setSort:g.func,total:g.number,isRowSelectable:g.func,isRowExpandable:g.func,expandSingle:g.bool};const SV=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],PV=e=>Object.keys(de.sanitizeListRestProps(e)).filter(t=>!SV.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{});sf.displayName="Datagrid";const OV=f.jsx(D.ListNoResults,{}),jV=fe(sf,{name:"ApplicaDatagrid",slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function DV(e){return f.jsx(jV,{...e})}const MV=fe("div")(({theme:e})=>({padding:e.spacing(2)}));function RV({actions:e,className:t,...n}){const{hasCreate:r}=de.useResourceDefinition(n),o=de.useResourceContext(n),s=de.useTranslate(),a=de.useGetResourceLabel(),c=s(`resources.${o}.forcedCaseName`,{smart_count:0,_:a(o,0)}),u=s("ra.page.empty",{name:c}),A=s("ra.page.invite");return f.jsxs(kV,{className:t,children:[f.jsxs("div",{className:ui.message,children:[f.jsx(zn.Inbox,{className:ui.icon}),f.jsx(y.Typography,{variant:"h4",paragraph:!0,children:s(`resources.${o}.empty`,{_:u})}),r&&f.jsx(y.Typography,{variant:"body1",children:s(`resources.${o}.invite`,{_:A})})]}),f.jsx(MV,{className:ui.toolbar,children:e})]})}const _c="ApplicaEmpty",ui={message:`${_c}-message`,icon:`${_c}-icon`,toolbar:`${_c}-toolbar`},kV=fe("span",{name:_c,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${ui.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${ui.icon}`]:{width:"9em",height:"9em"},[`& .${ui.toolbar}`]:{textAlign:"center",marginTop:"2em"}})),FV=f.jsx(D.ListActions,{}),LV=f.jsx(D.Pagination,{}),NV=f.jsx(D.Empty,{}),VV=m9,zV=e=>{const{actions:t=FV,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:s,hasCreate:a,pagination:c=LV,children:u,className:A,component:p=VV,title:C,empty:h=NV,...E}=e,{defaultTitle:m,data:B,error:v,isLoading:P,filterValues:M,resource:x}=de.useListContext(e);if(!u||!B&&P&&s)return null;const O=()=>f.jsxs("div",{className:So.main,children:[(r||t)&&f.jsx(D.ListToolbar,{className:So.actions,filters:r,actions:t,hasCreate:a}),!v&&f.jsx(p,{className:So.content,children:o&&u&&k.isValidElement(u)?w.cloneElement(u,{bulkActionButtons:o}):u}),v?f.jsx(Ng,{error:v,resetErrorBoundary:null}):c!==!1&&c]}),S=()=>h!==!1&&w.cloneElement(h,{className:So.noResults,hasCreate:a}),L=!P&&(B==null?void 0:B.length)===0&&!Object.keys(M).length&&h!==!1;return f.jsxs(HV,{className:Ye("list-page",A),...E,children:[f.jsx(D.Title,{title:C,defaultTitle:m,preferenceKey:`${x}.list.title`}),L?S():O(),n]})},xa="RaList",So={main:`${xa}-main`,content:`${xa}-content`,actions:`${xa}-actions`,noResults:`${xa}-noResults`},HV=fe("div",{name:xa,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",[`& .${So.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${So.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${So.actions}`]:{},[`& .${So.noResults}`]:{}})),WV=({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=UV,filterDefaultValues:s,perPage:a=10,queryOptions:c,resource:u,sort:A,storeKey:p,...C})=>f.jsx(de.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:s,perPage:a,queryOptions:c,resource:u,sort:A,storeKey:p,children:f.jsx(zV,{...C})}),UV={},YV=Hs(WV,{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:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function GV(e){return f.jsx(Yn,{content:!1,children:f.jsx(YV,{...e})})}function KV(){const e=D.useRefresh(),t=D.useNotify(),n=D.useResourceContext(),r=D.useUnselectAll(n),{selectedIds:o,data:s}=D.useListContext(),a=D.useRecordContext(),c=o.map(C=>s.find(h=>h.id===C)),[u,{isLoading:A}]=D.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:vr().format("YYYY-MM-DD HH:mm:ss")},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),p=w.useCallback(()=>{u()},[u]);return f.jsx(D.Button,{label:"ra.notification.mark_as_readed",disabled:A||(a==null?void 0:a.readed)!==null,onClick:p,children:f.jsx(zn.Email,{})})}function JV(){const e=D.useRefresh(),t=D.useNotify(),n=D.useResourceContext(),r=D.useUnselectAll(n),{selectedIds:o,data:s}=D.useListContext(),a=D.useRecordContext(),c=o.map(C=>s.find(h=>h.id===C)).concat([a]),[u,{isLoading:A}]=D.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=w.useCallback(()=>{u()},[u]);return f.jsx(D.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:A||a&&!(a!=null&&a.readed),onClick:p,children:f.jsx(zn.Drafts,{})})}function XV(e){const t=D.useRecordContext(e),n=D.useResourceContext(e),r=D.useRedirect(),o=D.useNotify(),s=D.useTranslate(),[a]=D.useLocaleState(),c=w.useMemo(()=>t!=null&&t.readed?vr(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=D.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:vr().format("YYYY-MM-DD HH:mm:ss")}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),A=w.useCallback(()=>u(),[u]);return f.jsxs("div",{onClick:A,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(y.Typography,{variant:"subtitle1",children:f.jsxs(y.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(y.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c&&f.jsx(y.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:s("ra.notification.readed",{readed:c})})]})}function ZV({...e}){const t=y.useTheme(),{mode:n,colorize:r,density:o}=w.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?y.darken:y.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),s=a=>({backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)});return f.jsxs(D.Datagrid,{...e,rowSx:s,children:[f.jsx(XV,{source:"notification",sortable:!1}),f.jsx(Lm,{source:"created"}),f.jsxs(co,{children:[f.jsx(KV,{}),f.jsx(JV,{})]})]})}const _V=fe(D.SimpleList,{name:"ApplicaSimpleList",slot:"root"})(({theme:e})=>({padding:e.spacing(1),paddingTop:0,paddingBottom:0})),qc={width:"1.5rem",alignSelf:"center"};function qV({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:s,component:a,leftIcon:c,rightIcon:u,button:A,buttonProps:p,...C}){const{getCurrentDialog:h}=Uo(),E=de.useResourceContext(C),m=h(),B=de.useRecordContext(),v=r||B,P=At.get(v,e||"");return f.jsxs(y.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:M=>({pt:1,pb:1,borderBottom:`1px solid ${M.palette.divider}`,...o&&{mb:2},...s&&{mt:2}}),children:[f.jsxs(y.Stack,{direction:"row",alignItems:"start",children:[c&&(w.isValidElement(c)?w.cloneElement(c,{style:qc}):w.createElement(c,{style:qc})),f.jsx(de.FieldTitle,{label:t,source:e,resource:m||E})]}),f.jsxs(y.Stack,{direction:"row",alignItems:"center",children:[a?w.isValidElement(a)?w.cloneElement(a,{record:v,resource:E,value:P}):w.createElement(a,{source:e,record:v,resource:E,value:P}):f.jsx(y.Typography,{variant:n,children:P}),u&&(w.isValidElement(u)?w.cloneElement(u,{style:qc}):w.createElement(u,{style:qc})),A&&f.jsx(y.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:A})]})]})}const Qb=({children:e,...t})=>{const n=yt();return f.jsx(Yn,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...t,border:!1,boxShadow:!0,shadow:n.customShadows.z1,children:f.jsx(y.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};Qb.propTypes={children:g.node};const wa=({version:e,name:t,copy:n,children:r,logo:o,background:s=nl})=>f.jsxs(y.Box,{sx:{minHeight:"100vh"},children:[w.isValidElement(s)?s:w.createElement(s),f.jsxs(y.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[f.jsx(y.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(ef,{title:t})}),f.jsxs(y.Grid,{item:!0,xs:12,children:[f.jsx(y.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:f.jsx(y.Grid,{item:!0,children:f.jsx(Qb,{children:r})})}),f.jsx(y.Grid,{item:!0,sx:{pb:1},children:f.jsx(dg,{name:t,copy:n,version:e})})]})]})]});wa.propTypes={children:g.node,version:g.string,name:g.string,copy:g.string,background:g.oneOfType([g.node,g.func,g.object])};const xb=({name:e,copy:t,logo:n,version:r,background:o})=>{const s=de.useTranslate(),a=de.useAuthProvider(),c=de.useNotify(),u=It.useNavigate(),{token:A}=It.useParams();return w.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{c("ra.auth.activate_success",{type:"info"}),ue.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),ue.delay(()=>u("/login"),1e3)})},[A]),f.jsx(wa,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(y.Grid,{container:!0,spacing:3,children:[f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(y.Typography,{variant:"h3",children:s("ra.auth.activate")}),f.jsx(y.Typography,{component:It.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:s("ra.auth.back_to_login")})]})}),f.jsx(y.Grid,{item:!0,xs:12,children:s("ra.auth.activate_pending")})]})})};xb.propTypes={name:g.string.isRequired,version:g.string.isRequired,background:g.node};function wb({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:s=!1,redirectTo:a,background:c=f.jsx(nl,{})}){const[u,A]=de.useSafeSetState(!1),p=de.useLogin(),C=de.useTranslate(),h=de.useNotify(),E=de.useCheckAuth(),m=It.useNavigate();w.useEffect(()=>{E({},!1).then(()=>{m("/")}).catch(()=>{})},[E,m]);const B=v=>{A(!0),p(v,a).then(()=>{A(!1)}).catch(P=>{A(!1),h(typeof P=="string"?P:typeof P>"u"||!P.message?"ra.auth.sign_in_error":P.message,{type:"error",messageArgs:{_:typeof P=="string"?P:P&&P.message?P.message:void 0}})})};return f.jsx(wa,{name:t,version:e,copy:n,logo:r,background:c,children:f.jsxs(y.Grid,{container:!0,spacing:3,children:[f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(y.Typography,{variant:"h3",children:"Login"}),s&&f.jsx(y.Typography,{component:It.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:C("ra.auth.register")})]})}),f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(de.Form,{onSubmit:B,children:[f.jsxs(y.Grid,{container:!0,children:[f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(dr,{autoFocus:!0,source:"username",label:C("ra.auth.username"),autoComplete:"username",validate:de.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(dr,{source:"password",label:C("ra.auth.password"),type:"password",autoComplete:"current-password",validate:de.required(),placeholder:C("ra.auth.password_placeholder"),fullWidth:!0})})]}),o&&f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(y.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(y.Link,{variant:"h6",component:It.Link,to:"/recover",color:"text.primary",children:C("ra.auth.forgot_password")})})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(y.CircularProgress,{size:19,thickness:3}):C("ra.auth.sign_in")})})]})})]})})}const Tb=({name:e,copy:t,logo:n,version:r,background:o})=>{const[s,a]=w.useState(!1),c=de.useTranslate(),u=de.useRedirect(),A=de.useNotify(),p=de.useAuthProvider(),C=({email:h})=>{a(!0),p.recover(h).then(E=>{const m=`ra.auth.recover_${E.responseCode}`,B=E.responseCode==="ok"?"info":"error";A(m,{type:B}),u("/login")}).catch(E=>{A(E,{type:"error"})}).finally(()=>a(!1))};return f.jsx(wa,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(y.Grid,{container:!0,spacing:3,children:[f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(y.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),f.jsx(y.Typography,{component:It.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(D.Form,{onSubmit:C,children:[f.jsx(y.Grid,{container:!0,children:f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(dr,{source:"email",validate:[de.required(),de.email()]})})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(y.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?f.jsx(y.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})};Tb.propTypes={name:g.string.isRequired,version:g.string.isRequired,background:g.node};const Sb=({name:e,copy:t,version:n,logo:r,background:o})=>{const[s,a]=w.useState(!1),c=de.useTranslate(),u=de.useRedirect(),A=de.useNotify(),p=de.useAuthProvider(),C=h=>{a(!0),p.register(h).then(E=>{const m=`ra.auth.register_${E.responseCode}`,B=E.responseCode==="ok"?"info":"error";A(m,{type:B}),u("/login")}).catch(E=>{A(E,{type:"error"})}).finally(()=>a(!1))};return f.jsx(wa,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(y.Grid,{container:!0,spacing:3,children:[f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(y.Typography,{variant:"h3",children:c("ra.auth.register.title")}),f.jsx(y.Typography,{component:It.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(D.Form,{onSubmit:C,children:[f.jsxs(y.Grid,{container:!0,children:[f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(dr,{source:"name",label:c("ra.register.name"),validate:de.required()})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(dr,{source:"email",type:"email",validate:[de.required(),de.email()]})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(dr,{source:"password",type:"password",validate:de.required()})})]}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?f.jsx(y.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})};Sb.propTypes={name:g.string.isRequired,version:g.string.isRequired};function Pb(){const e=w.useCallback(()=>location.reload(),[]);return f.jsx(y.Container,{children:f.jsxs(y.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{src:wB,style:{width:"100%",maxWidth:450}}),f.jsx(y.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(y.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(y.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}const $V=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 ${ze(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${ze(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${ze(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${ze(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${ze(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${ze(e.palette.info.main,.2)}`,success:`0 0 0 2px ${ze(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${ze(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${ze(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${ze(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${ze(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${ze(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${ze(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${ze(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${ze(e.palette.grey[500],.2)}`});function qn(e,t){ez(e)&&(e="100%");var n=tz(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 ez(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function tz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function nz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function $c(e){return e<=1?"".concat(Number(e)*100,"%"):e}function af(e){return e.length===1?"0"+e:String(e)}function rz(e,t,n){return{r:qn(e,255)*255,g:qn(t,255)*255,b:qn(n,255)*255}}function lf(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 oz(e,t,n){var r,o,s;if(e=qn(e,360),t=qn(t,100),n=qn(n,100),t===0)o=n,s=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=lf(c,a,e+1/3),o=lf(c,a,e),s=lf(c,a,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function iz(e,t,n){e=qn(e,255),t=qn(t,255),n=qn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,a=r,c=r-o,u=r===0?0:c/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s,s:u,v:a}}function sz(e,t,n){e=qn(e,360)*6,t=qn(t,100),n=qn(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),u=r%6,A=[n,a,s,s,c,n][u],p=[c,n,n,a,s,s][u],C=[s,s,c,n,n,a][u];return{r:A*255,g:p*255,b:C*255}}function az(e,t,n,r){var o=[af(Math.round(e).toString(16)),af(Math.round(t).toString(16)),af(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Ob(e){return Dn(e)/255}function Dn(e){return parseInt(e,16)}var jb={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,o=null,s=null,a=!1,c=!1;return typeof e=="string"&&(e=uz(e)),typeof e=="object"&&(Xr(e.r)&&Xr(e.g)&&Xr(e.b)?(t=rz(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xr(e.h)&&Xr(e.s)&&Xr(e.v)?(r=$c(e.s),o=$c(e.v),t=sz(e.h,r,o),a=!0,c="hsv"):Xr(e.h)&&Xr(e.s)&&Xr(e.l)&&(r=$c(e.s),s=$c(e.l),t=oz(e.h,r,s),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=nz(n),{ok:a,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lz="[-\\+]?\\d+%?",cz="[-\\+]?\\d*\\.\\d+%?",Po="(?:".concat(cz,")|(?:").concat(lz,")"),cf="[\\s|\\(]+(".concat(Po,")[,|\\s]+(").concat(Po,")[,|\\s]+(").concat(Po,")\\s*\\)?"),uf="[\\s|\\(]+(".concat(Po,")[,|\\s]+(").concat(Po,")[,|\\s]+(").concat(Po,")[,|\\s]+(").concat(Po,")\\s*\\)?"),gr={CSS_UNIT:new RegExp(Po),rgb:new RegExp("rgb"+cf),rgba:new RegExp("rgba"+uf),hsl:new RegExp("hsl"+cf),hsla:new RegExp("hsla"+uf),hsv:new RegExp("hsv"+cf),hsva:new RegExp("hsva"+uf),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 uz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(jb[e])e=jb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=gr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=gr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=gr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=gr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=gr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=gr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=gr.hex8.exec(e),n?{r:Dn(n[1]),g:Dn(n[2]),b:Dn(n[3]),a:Ob(n[4]),format:t?"name":"hex8"}:(n=gr.hex6.exec(e),n?{r:Dn(n[1]),g:Dn(n[2]),b:Dn(n[3]),format:t?"name":"hex"}:(n=gr.hex4.exec(e),n?{r:Dn(n[1]+n[1]),g:Dn(n[2]+n[2]),b:Dn(n[3]+n[3]),a:Ob(n[4]+n[4]),format:t?"name":"hex8"}:(n=gr.hex3.exec(e),n?{r:Dn(n[1]+n[1]),g:Dn(n[2]+n[2]),b:Dn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Xr(e){return!!gr.CSS_UNIT.exec(String(e))}var eu=2,Db=.16,Az=.05,dz=.05,gz=.15,Mb=5,Rb=4,fz=[{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 kb(e){var t=e.r,n=e.g,r=e.b,o=iz(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function tu(e){var t=e.r,n=e.g,r=e.b;return"#".concat(az(t,n,r,!1))}function pz(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Fb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-eu*t:Math.round(e.h)+eu*t:r=n?Math.round(e.h)+eu*t:Math.round(e.h)-eu*t,r<0?r+=360:r>=360&&(r-=360),r}function Lb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Db*t:t===Rb?r=e.s+Db:r=e.s+Az*t,r>1&&(r=1),n&&t===Mb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Nb(e,t,n){var r;return n?r=e.v+dz*t:r=e.v-gz*t,r>1&&(r=1),Number(r.toFixed(2))}function Vb(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ta(e),o=Mb;o>0;o-=1){var s=kb(r),a=tu(Ta({h:Fb(s,o,!0),s:Lb(s,o,!0),v:Nb(s,o,!0)}));n.push(a)}n.push(tu(r));for(var c=1;c<=Rb;c+=1){var u=kb(r),A=tu(Ta({h:Fb(u,c),s:Lb(u,c),v:Nb(u,c)}));n.push(A)}return t.theme==="dark"?fz.map(function(p){var C=p.index,h=p.opacity,E=tu(pz(Ta(t.backgroundColor||"#141414"),Ta(n[C]),h*100));return E}):n}var Af={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"},Xt={},nu={};Object.keys(Af).forEach(function(e){Xt[e]=Vb(Af[e]),Xt[e].primary=Xt[e][5],nu[e]=Vb(Af[e],{theme:"dark",backgroundColor:"#141414"}),nu[e].primary=nu[e][5]}),Xt.red,Xt.volcano,Xt.gold,Xt.orange,Xt.yellow,Xt.lime,Xt.green,Xt.cyan,Xt.blue,Xt.geekblue,Xt.purple,Xt.magenta,Xt.grey,Xt.grey;const zb=e=>{const{blue:t,red:n,gold:r,cyan:o,green:s,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:s[0],light:s[3],main:s[5],dark:s[7],darker:s[9],contrastText:u},grey:c}};zb.propTypes={colors:g.object};const hz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],A=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(s=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],A=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Cz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Ez=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Iz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},mz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Bz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},vz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},bz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Hb=(e,t,n)=>{switch(t){case"theme1":return hz(e,n);case"theme2":return Cz(e,n);case"theme3":return Ez(e,n);case"theme4":return Iz(e,n);case"theme5":return mz(e,n);case"theme6":return Bz(e,n);case"theme7":return vz(e,n);case"theme8":return bz(e,n);default:return zb(e)}};Hb.propTypes={colors:g.object,presetColor:g.any};const yz=(e,t)=>{const n=e==="dark"?nu:Xt;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#121212","#d3d8db"]),n.grey=[...r,...o,...s];const a=Hb(n,t,e);return xA({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?ze(a.grey[900],.87):a.grey[700],secondary:e==="dark"?ze(a.grey[900],.45):a.grey[500],disabled:e==="dark"?ze(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?ze(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})},Qz=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 xz(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 wz(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Tz(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx($e.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 Ai({color:e,theme:t}){const n=tn(t,e),{lighter:r,light:o,main:s}=n;return{borderColor:ze(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:s}}}function Sz(e){const t=Ai({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":Ai({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":Ai({color:"secondary",theme:e}),"&.MuiAlert-borderError":Ai({color:"error",theme:e}),"&.MuiAlert-borderSuccess":Ai({color:"success",theme:e}),"&.MuiAlert-borderInfo":Ai({color:"info",theme:e}),"&.MuiAlert-borderWarning":Ai({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 Pz(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Oz(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 di({color:e,theme:t}){const n=tn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function jz(e){const t=di({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":di({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":di({color:"secondary",theme:e}),"&.MuiBadge-colorError":di({color:"error",theme:e}),"&.MuiBadge-colorInfo":di({color:"info",theme:e}),"&.MuiBadge-colorSuccess":di({color:"success",theme:e}),"&.MuiBadge-colorWarning":di({color:"warning",theme:e})}}}}}function tt({variant:e,color:t,theme:n}){const r=tn(n,t),{lighter:o,main:s,dark:a,contrastText:c}=r,u=`${t}Button`,A=$i(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${ze(s,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${ze(s,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...p};case"shadow":return{color:c,backgroundColor:s,boxShadow:A,"&:hover":{boxShadow:"none",backgroundColor:a},...p};case"outlined":return{borderColor:s,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...p};case"dashed":return{color:s,borderColor:s,backgroundColor:o,"&:hover":{color:a,borderColor:a},...p};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...p}}}function Dz(e){const t=tt({variant:"dashed",color:"primary",theme:e}),n=tt({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":tt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":tt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":tt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":tt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":tt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":tt({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":tt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":tt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":tt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":tt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":tt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":tt({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:tt({variant:"contained",color:"primary",theme:e}),containedSecondary:tt({variant:"contained",color:"secondary",theme:e}),containedError:tt({variant:"contained",color:"error",theme:e}),containedSuccess:tt({variant:"contained",color:"success",theme:e}),containedInfo:tt({variant:"contained",color:"info",theme:e}),containedWarning:tt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:tt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:tt({variant:"outlined",color:"secondary",theme:e}),outlinedError:tt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:tt({variant:"outlined",color:"success",theme:e}),outlinedInfo:tt({variant:"outlined",color:"info",theme:e}),outlinedWarning:tt({variant:"outlined",color:"warning",theme:e}),textPrimary:tt({variant:"text",color:"primary",theme:e}),textSecondary:tt({variant:"text",color:"secondary",theme:e}),textError:tt({variant:"text",color:"error",theme:e}),textSuccess:tt({variant:"text",color:"success",theme:e}),textInfo:tt({variant:"text",color:"info",theme:e}),textWarning:tt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Mz(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Rz(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function kz(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function hs({color:e,theme:t}){const n=tn(t,e),{lighter:r,main:o,dark:s}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function Fz(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 df(e){const t=Fz(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function Lz(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx($e.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx($e.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...df("small")},"&.size-medium":{...df("medium")},"&.size-large":{...df("large")}},colorPrimary:hs({color:"primary",theme:e}),colorSecondary:hs({color:"secondary",theme:e}),colorSuccess:hs({color:"success",theme:e}),colorWarning:hs({color:"warning",theme:e}),colorInfo:hs({color:"info",theme:e}),colorError:hs({color:"error",theme:e})}}}}function Cs({color:e,theme:t}){const n=tn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Mn({color:e,theme:t}){const n=tn(t,e),{light:r,lighter:o,main:s}=n;return{color:s,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:s,"&:hover":{color:r}}}}function Nz(e){const t=Mn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Cs({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Cs({color:"secondary",theme:e}),"&.MuiChip-colorError":Cs({color:"error",theme:e}),"&.MuiChip-colorInfo":Cs({color:"info",theme:e}),"&.MuiChip-colorSuccess":Cs({color:"success",theme:e}),"&.MuiChip-colorWarning":Cs({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Mn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Mn({color:"secondary",theme:e}),"&.MuiChip-lightError":Mn({color:"error",theme:e}),"&.MuiChip-lightInfo":Mn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Mn({color:"success",theme:e}),"&.MuiChip-lightWarning":Mn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Mn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Mn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Mn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Mn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Mn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Mn({color:"warning",theme:e})}}}}}function Vz(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:ze("#000",.7)}}}}}}function zz(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function Hz(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Es({color:e,theme:t}){const n=tn(t,e),{main:r,dark:o,contrastText:s}=n,a=`${e}Button`,c=$i(t,a);return{color:s,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${ze(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${ze(r,.9)}`}}}function Wz(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Es({color:"primary",theme:e}),"&.MuiFab-secondary":Es({color:"secondary",theme:e}),"&.Mui-error":Es({color:"error",theme:e}),"&.MuiFab-success":Es({color:"success",theme:e}),"&.MuiFab-info":Es({color:"info",theme:e}),"&.MuiFab-warning":Es({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 Uz(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 Yz(){return{MuiInputBase:{styleOverrides:{}}}}function Gz(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 Kz(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function Jz(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Xz(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function Zz(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function _z(){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function qz(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function gi({variant:e,theme:t}){const n=tn(t,e),{light:r}=n,o=$i(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function $z(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:{...gi({variant:"primary",theme:e}),"&.Mui-error":{...gi({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:gi({variant:"secondary",theme:e}),colorError:gi({variant:"error",theme:e}),colorWarning:gi({variant:"warning",theme:e}),colorInfo:gi({variant:"info",theme:e}),colorSuccess:gi({variant:"success",theme:e})}}}}function eH(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function Qt({variant:e,color:t,theme:n}){const r=tn(n,t),{lighter:o,light:s,dark:a,main:c,contrastText:u}=r,A={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:s},...A};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:s},...A};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...A}}}function tH(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":Qt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":Qt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":Qt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":Qt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":Qt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":Qt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":Qt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":Qt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":Qt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":Qt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":Qt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":Qt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":Qt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":Qt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":Qt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":Qt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":Qt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":Qt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":Qt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":Qt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":Qt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":Qt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":Qt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":Qt({variant:"outlined",color:"warning",theme:e})}}}}}}function nH(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Is({color:e,theme:t}){const n=tn(t,e),{lighter:r,main:o,dark:s}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function rH(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 gf(e){const t=rH(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function oH(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(y.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":{...gf("small")},"&.size-medium":{...gf("medium")},"&.size-large":{...gf("large")}},colorPrimary:Is({color:"primary",theme:e}),colorSecondary:Is({color:"secondary",theme:e}),colorSuccess:Is({color:"success",theme:e}),colorWarning:Is({color:"warning",theme:e}),colorInfo:Is({color:"info",theme:e}),colorError:Is({color:"error",theme:e})}}}}function ms({color:e,theme:t}){const n=tn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function iH(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":ms({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":ms({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":ms({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":ms({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":ms({color:"info",theme:e}),"&.MuiSlider-thumbColorError":ms({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 sH(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 ff(e,t){const n=sH(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 aH(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},...ff(e,"medium")},sizeLarge:{...ff(e,"large")},sizeSmall:{...ff(e,"small")}}}}}function lH(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 cH(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 uH(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 AH(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function dH(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function gH(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function fH(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function pH(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function hH(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 CH(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function EH(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function IH(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function mH(e){return At.merge(xz(e),wz(e),Tz(e),Sz(e),Pz(),Oz(e),jz(e),Dz(e),Mz(),Rz(),kz(),Lz(e),Nz(e),Vz(),zz(e),Hz(),Wz(e),Uz(e),Yz(),Gz(e),Kz(),Jz(),Xz(e),Zz(e),_z(),qz(),$z(e),eH(),tH(e),nH(e),oH(e),iH(e),aH(e),lH(e),cH(e),uH(e),AH(e),dH(e),gH(),fH(),pH(),hH(e),CH(e),EH(),IH())}const ru=({themeOverrides:e,children:t})=>{const n=Wn(),{themeDirection:r,mode:o,presetColor:s,fontFamily:a}=n,c=w.useMemo(()=>yz(o,s),[o,s]),u=w.useMemo(()=>Qz(a),[a]),A=w.useMemo(()=>$V(c),[c]),p=w.useMemo(()=>ue.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:c.palette,customShadows:A,typography:u,shadows:c.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:c.spacing(2.6875),height:c.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(c):e),[r,c,u,A,e]),C=xA(p),h=ue.cloneDeep(C.components??{});return C.components=ue.merge(mH(C),h),f.jsx(y.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(Fh,{theme:C,children:[f.jsx(y.CssBaseline,{}),t]})})};ru.propTypes={children:g.node,themeOverrides:g.oneOfType([g.object,g.func])};function BH({children:e,theme:t,...n}){return f.jsx(D.CoreAdminContext,{...n,children:f.jsx(ru,{themeOverrides:t,children:f.jsx(tf,{children:e})})})}function Wb(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:s,disableTelemetry:a,history:c,i18nProvider:u,layout:A,loading:p,loginPage:C,authCallbackPage:h,menu:E,notification:m,queryClient:B,requireAuth:v,store:P=D.localStorageStore(),ready:M,theme:x,title:O="React Admin"}=e;return f.jsx(BH,{authProvider:t,dataProvider:s,i18nProvider:u,store:P,history:c,queryClient:B,theme:x,children:f.jsx(D.AdminUI,{layout:A,dashboard:o,disableTelemetry:a,menu:E,catchAll:n,title:O,loading:p,loginPage:C,authCallbackPage:h,notification:m,requireAuth:v,ready:M,children:r})})}class vH{constructor(t){so(this,Sa,void 0);so(this,Pa,void 0);so(this,Bs,new Set);const{apiUrl:n}=t??{};if(!ue.isString(n)||ue.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");zo(this,Pa,n),zo(this,Sa,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:s}=t,a=`${n}${r}${o}${s}`;Qn(this,Bs).has(a)||(Qn(this,Bs).add(a),fetch(`${Qn(this,Pa)}/ui/error-log`,{method:"PUT",headers:Qn(this,Sa),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(()=>{console.log("Unable to send error to server"),Qn(this,Bs).delete(a)}))}}Sa=new WeakMap,Pa=new WeakMap,Bs=new WeakMap;class Ub{constructor({catch:t,display:n,log:r,error:o}){$a(this,"catch");$a(this,"display");$a(this,"log");$a(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const bH=({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=s=>new Ub({catch:s!=null,display:!1,log:s!=null,error:s}),...o})=>{const s=k.useMemo(()=>o.errorHandler?o.errorHandler:new vH({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=k.useCallback(function(u,...A){var C;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(C=u==null?void 0:u.toString())==null?void 0:C.replace(/%s/g,()=>A.shift()));if(p.isCatched())return!1;p.logError()&&(u instanceof ErrorEvent?s.handle(u):s.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),p.displayError()&&a.apply(console,arguments)},[t,n,r,e,s]);return k.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c]),!0};class yH{constructor(t){so(this,Oa,void 0);so(this,ja,void 0);so(this,pi,[]);const{apiUrl:n}=t??{};if(!ue.isString(n)||ue.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");zo(this,ja,n),zo(this,Oa,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!ue.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!ue.isString(n)||ue.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!ue.isString(r)||ue.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!ue.some(Qn(this,pi),o=>ue.isEqual(o,{code:n,lang:r}))){Qn(this,pi).push({code:n,lang:r}),fetch(`${Qn(this,ja)}/i18n/message`,{method:"put",headers:Qn(this,Oa),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),zo(this,pi,ue.reject(Qn(this,pi),s=>ue.isEqual(s,{code:n,lang:r})))});return}}}Oa=new WeakMap,ja=new WeakMap,pi=new WeakMap;function Yb(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,s=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new yH({apiUrl:t}),u=()=>fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(C=>C.json()).catch(()=>Promise.resolve(s)),A=()=>fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(C=>C.json()).then(C=>C.reduce((h,E)=>({...h,[E.lang]:{...h[E.lang]||{},[E.code]:E.text}}),{})),p=(C,h,E)=>(r||console.error(`Warning: Missing translation for key: "${C}"`),o&&(ue.isString(C)?C.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${C}`):c.handleMessage({code:C,lang:E}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),C);return Promise.all([u(),A()]).then(C=>{const[h,E]=C;function m(B){return ue.get(E,B,{})}return Ix(m,n,h,{allowMissing:r||o,onMissingKey:p})})}window.React=w;const QH=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,o]=w.useState({loading:!0,languages:null});return w.useEffect(()=>{let s=new Headers;s.append("Accept","application/json"),s.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:s}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r};function Gb(e){const[t,n]=w.useState(),r=mC(e);return w.useEffect(()=>{Yb(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r]),t}const xH=new Pi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function wH({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:s,logoIcon:a,loginPage:c=f.jsx(wb,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(nl,{})}),menu:u,name:A,copy:p,version:C="0.0.0",dataProvider:h,authProvider:E,errorHandler:m,error:B,enableNotification:v=!1,enableRegistration:P=!1,enablePasswordRecover:M=!1,enableThemeToggler:x=!1,queryClient:O=xH,background:S,notificationAPI:L="entities/notification",...z}){bH({apiUrl:n,errorHandler:m,catcherFn:J=>{const le=J==null?void 0:J.toString(),Z=["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>.","Missing translation for key:","HttpError: "].some(H=>le==null?void 0:le.includes(H));return new Ub({catch:Z,display:!Z,log:!Z,error:le})}});const q=w.useMemo(()=>w.isValidElement(c)?w.cloneElement(c,{name:A,copy:p,logo:s,version:C,background:S,enableRegistration:P,enablePasswordRecover:M}):c,[c,A,C,p,S,s,P,M]),ee=w.useMemo(()=>J=>{const le=A?f.jsx(ef,{title:A}):s,se=A?f.jsx(nf,{title:A}):a;return f.jsx(ab,{...J,name:A,copy:p,enableThemeToggler:x,version:C,logoMain:le,logoIcon:se,notification:L,enableNotification:v,error:B})},[s,a,A,C,B,L,v]),K=Gb({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o});return K===void 0?f.jsx(f.Fragment,{}):K.error?f.jsx(wl,{initialConfig:t,children:f.jsx(ru,{themeOverrides:e,children:f.jsx(Pb,{})})}):f.jsx(OA,{children:f.jsx(Uh,{menu:u,children:f.jsx(wl,{initialConfig:t,children:f.jsx(Wb,{theme:e,layout:ee,notification:hb,queryClient:O,dataProvider:h,authProvider:E,i18nProvider:K,loginPage:q,...z})})})})}Object.defineProperty(j,"ArrayInputContext",{enumerable:!0,get:()=>D.ArrayInputContext}),Object.defineProperty(j,"BooleanField",{enumerable:!0,get:()=>D.BooleanField}),Object.defineProperty(j,"BulkDeleteWithConfirmButton",{enumerable:!0,get:()=>D.BulkDeleteWithConfirmButton}),Object.defineProperty(j,"Button",{enumerable:!0,get:()=>D.Button}),Object.defineProperty(j,"ChipField",{enumerable:!0,get:()=>D.ChipField}),Object.defineProperty(j,"Confirm",{enumerable:!0,get:()=>D.Confirm}),Object.defineProperty(j,"CreateButton",{enumerable:!0,get:()=>D.CreateButton}),Object.defineProperty(j,"CreateContextProvider",{enumerable:!0,get:()=>D.CreateContextProvider}),Object.defineProperty(j,"CustomRoutes",{enumerable:!0,get:()=>D.CustomRoutes}),Object.defineProperty(j,"DeleteWithConfirmButton",{enumerable:!0,get:()=>D.DeleteWithConfirmButton}),Object.defineProperty(j,"DeleteWithUndoButton",{enumerable:!0,get:()=>D.DeleteWithUndoButton}),Object.defineProperty(j,"EditButton",{enumerable:!0,get:()=>D.EditButton}),Object.defineProperty(j,"EditContextProvider",{enumerable:!0,get:()=>D.EditContextProvider}),Object.defineProperty(j,"FieldTitle",{enumerable:!0,get:()=>D.FieldTitle}),Object.defineProperty(j,"Form",{enumerable:!0,get:()=>D.Form}),Object.defineProperty(j,"FormDataConsumer",{enumerable:!0,get:()=>D.FormDataConsumer}),Object.defineProperty(j,"HttpError",{enumerable:!0,get:()=>D.HttpError}),Object.defineProperty(j,"I18nContextProvider",{enumerable:!0,get:()=>D.I18nContextProvider}),Object.defineProperty(j,"ListToolbar",{enumerable:!0,get:()=>D.ListToolbar}),Object.defineProperty(j,"LoadingIndicator",{enumerable:!0,get:()=>D.LoadingIndicator}),Object.defineProperty(j,"Pagination",{enumerable:!0,get:()=>D.Pagination}),Object.defineProperty(j,"RaSimpleFormIterator",{enumerable:!0,get:()=>D.SimpleFormIterator}),Object.defineProperty(j,"RecordContextProvider",{enumerable:!0,get:()=>D.RecordContextProvider}),Object.defineProperty(j,"ReferenceArrayField",{enumerable:!0,get:()=>D.ReferenceArrayField}),Object.defineProperty(j,"ReferenceField",{enumerable:!0,get:()=>D.ReferenceField}),Object.defineProperty(j,"Resource",{enumerable:!0,get:()=>D.Resource}),Object.defineProperty(j,"ResourceContextProvider",{enumerable:!0,get:()=>D.ResourceContextProvider}),Object.defineProperty(j,"SaveButton",{enumerable:!0,get:()=>D.SaveButton}),Object.defineProperty(j,"SimpleFormIteratorContext",{enumerable:!0,get:()=>D.SimpleFormIteratorContext}),Object.defineProperty(j,"SimpleShowLayout",{enumerable:!0,get:()=>D.SimpleShowLayout}),Object.defineProperty(j,"SingleFieldList",{enumerable:!0,get:()=>D.SingleFieldList}),Object.defineProperty(j,"TabbedFormTabs",{enumerable:!0,get:()=>D.TabbedFormTabs}),Object.defineProperty(j,"TopToolbar",{enumerable:!0,get:()=>D.TopToolbar}),Object.defineProperty(j,"UrlField",{enumerable:!0,get:()=>D.UrlField}),Object.defineProperty(j,"choices",{enumerable:!0,get:()=>D.choices}),Object.defineProperty(j,"email",{enumerable:!0,get:()=>D.email}),Object.defineProperty(j,"maxLength",{enumerable:!0,get:()=>D.maxLength}),Object.defineProperty(j,"maxValue",{enumerable:!0,get:()=>D.maxValue}),Object.defineProperty(j,"minLength",{enumerable:!0,get:()=>D.minLength}),Object.defineProperty(j,"minValue",{enumerable:!0,get:()=>D.minValue}),Object.defineProperty(j,"number",{enumerable:!0,get:()=>D.number}),Object.defineProperty(j,"regex",{enumerable:!0,get:()=>D.regex}),Object.defineProperty(j,"required",{enumerable:!0,get:()=>D.required}),Object.defineProperty(j,"useArrayInput",{enumerable:!0,get:()=>D.useArrayInput}),Object.defineProperty(j,"useAuthProvider",{enumerable:!0,get:()=>D.useAuthProvider}),Object.defineProperty(j,"useChoices",{enumerable:!0,get:()=>D.useChoices}),Object.defineProperty(j,"useChoicesContext",{enumerable:!0,get:()=>D.useChoicesContext}),Object.defineProperty(j,"useCreateController",{enumerable:!0,get:()=>D.useCreateController}),Object.defineProperty(j,"useDataProvider",{enumerable:!0,get:()=>D.useDataProvider}),Object.defineProperty(j,"useEditContext",{enumerable:!0,get:()=>D.useEditContext}),Object.defineProperty(j,"useGetIdentity",{enumerable:!0,get:()=>D.useGetIdentity}),Object.defineProperty(j,"useGetList",{enumerable:!0,get:()=>D.useGetList}),Object.defineProperty(j,"useGetMany",{enumerable:!0,get:()=>D.useGetMany}),Object.defineProperty(j,"useGetManyReference",{enumerable:!0,get:()=>D.useGetManyReference}),Object.defineProperty(j,"useGetOne",{enumerable:!0,get:()=>D.useGetOne}),Object.defineProperty(j,"useInput",{enumerable:!0,get:()=>D.useInput}),Object.defineProperty(j,"useListContext",{enumerable:!0,get:()=>D.useListContext}),Object.defineProperty(j,"useLocaleState",{enumerable:!0,get:()=>D.useLocaleState}),Object.defineProperty(j,"useNotify",{enumerable:!0,get:()=>D.useNotify}),Object.defineProperty(j,"usePermissions",{enumerable:!0,get:()=>D.usePermissions}),Object.defineProperty(j,"useRecordContext",{enumerable:!0,get:()=>D.useRecordContext}),Object.defineProperty(j,"useRefresh",{enumerable:!0,get:()=>D.useRefresh}),Object.defineProperty(j,"useResourceContext",{enumerable:!0,get:()=>D.useResourceContext}),Object.defineProperty(j,"useResourceDefinition",{enumerable:!0,get:()=>D.useResourceDefinition}),Object.defineProperty(j,"useResourceDefinitions",{enumerable:!0,get:()=>D.useResourceDefinitions}),Object.defineProperty(j,"useShowContext",{enumerable:!0,get:()=>D.useShowContext}),Object.defineProperty(j,"useShowController",{enumerable:!0,get:()=>D.useShowController}),Object.defineProperty(j,"useSimpleFormIterator",{enumerable:!0,get:()=>D.useSimpleFormIterator}),Object.defineProperty(j,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>D.useSimpleFormIteratorItem}),Object.defineProperty(j,"useTranslate",{enumerable:!0,get:()=>D.useTranslate}),Object.defineProperty(j,"useTranslateLabel",{enumerable:!0,get:()=>D.useTranslateLabel}),Object.defineProperty(j,"useUnselect",{enumerable:!0,get:()=>D.useUnselect}),Object.defineProperty(j,"useUnselectAll",{enumerable:!0,get:()=>D.useUnselectAll}),Object.defineProperty(j,"useUpdateMany",{enumerable:!0,get:()=>D.useUpdateMany}),Object.defineProperty(j,"withLifecycleCallbacks",{enumerable:!0,get:()=>D.withLifecycleCallbacks}),j.ActionsField=$D,j.ActionsMenu=co,j.ActivatePage=xb,j.Admin=Wb,j.AnimateButton=XI,j.AppBarStyled=vC,j.AppConfigContext=PA,j.AppConfigProvider=OA,j.ApplicaAdmin=wH,j.ArrayInput=qD,j.AttachmentField=Mm,j.AttachmentInput=bM,j.AuthBackground=nl,j.AutocompleteArrayInput=QM,j.AutocompleteInput=wM,j.Avatar=sc,j.BooleanInput=SM,j.Breadcrumbs=fm,j.BulkActionsToolbar=mb,j.BulkActionsToolbarClasses=_n,j.BulkFloatingActionsToolbar=wV,j.CardForm=Pm,j.ChangePasswordForm=ig,j.CircularWithLabel=xm,j.CircularWithPath=wm,j.CoverField=km,j.Create=i3,j.CreateInDialogButton=bV,j.Datagrid=DV,j.DateAgoField=Lm,j.DateField=lM,j.DateInput=OM,j.DateTimeInput=DM,j.Dot=cc,j.Drawer=tb,j.DrawerHeader=FB,j.DrawerHeaderStyled=kB,j.DrawerToggle=A0,j.Edit=s3,j.EditInDialogButton=QV,j.EmailField=uM,j.Empty=RV,j.EmptyClasses=ui,j.FileField=Nm,j.FileInput=RM,j.Footer=dg,j.FormHeader=c3,j.FunctionField=dM,j.GenericErrorPage=Pb,j.Header=d0,j.HeaderButton=$T,j.HeaderIconButton=GD,j.HeaderNotification=g0,j.HeaderProfile=f0,j.HeaderSpacer=h0,j.HeaderToggleButton=ts,j.HorizontalBar=nb,j.IconButton=es,j.ImageField=Rm,j.ImageInput=kM,j.ImpersonateUserButton=hV,j.LabeledArrayInput=jm,j.LabeledInput=cn,j.Layout=ab,j.LayoutContent=TB,j.LayoutProvider=l0,j.LayoutWrapper=SB,j.LinearWithIcon=Tm,j.LinearWithLabel=Sm,j.List=GV,j.ListItem=qV,j.Loadable=eV,j.Loader=pb,j.LoadingButton=og,j.LocalStorage=EC,j.LocalizedTextField=fM,j.LocalizedTextInput=NM,j.LoginPage=wb,j.Logo=Vg,j.MainCard=Yn,j.MainIcon=ef,j.MenuConfigContext=DA,j.MenuConfigProvider=Uh,j.MenuPopover=yl,j.NavGroup=_g,j.NavMenu=rb,j.Navigation=ib,j.Notification=hb,j.NotificationList=ZV,j.NumberInput=zM,j.OnboardingModes=ya,j.OnboardingProvider=uV,j.OnboardingTip=pV,j.RawTableFormIterator=s0,j.ReadonlyField=EM,j.RecordInput=HM,j.RecoverPage=Tb,j.ReferenceArrayInput=WM,j.ReferenceInput=UM,j.ReferenceManyField=zm,j.ReferenceManyInput=YM,j.RegisterPage=Sb,j.ResponsiveSection=p0,j.ScrollTop=tf,j.ScrollX=nV,j.SearchInput=KM,j.SelectArrayInput=XM,j.SelectInput=_M,j.Show=A3,j.SimpleBar=Zg,j.SimpleForm=Om,j.SimpleFormIterator=d3,j.SimpleList=_V,j.SizeField=mM,j.SmallIcon=nf,j.SmartTextInput=qM,j.TabbedForm=sg,j.TableFormIterator=H2,j.TableFormIteratorContext=MA,j.TableFormIteratorItem=Wm,j.TableFormIteratorItemContext=RA,j.TextField=Vm,j.TextInput=dr,j.ThemeConfigContext=jA,j.ThemeConfigProvider=wl,j.ThemeProvider=ru,j.ThemeToggler=sb,j.TimeInput=n3,j.Toolbar=oi,j.Tooltip=dc,j.Transitions=Bo,j.createI18nProvider=Yb,j.getLocalizedValue=NA,j.localizedValueHasAllLocales=LA,j.parseTime=qh,j.useAppConfig=Uo,j.useBreadcrumbs=Xh,j.useGetLocalizedValue=XT,j.useI18nLanguages=QH,j.useI18nProvider=Gb,j.useLayoutContext=Ag,j.useLayoutDispatch=Y2,j.useLayoutDrawerState=ii,j.useLayoutLogoState=u0,j.useLayoutMediaState=Sn,j.useLayoutNotificationsState=Bc,j.useLayoutState=is,j.useLayoutThemeState=G2,j.useLocalStorage=Rl,j.useLocalizedValue=JT,j.useMemoizedObject=mC,j.useMenu=FA,j.useMenuConfig=Yo,j.usePopoverState=kl,j.useRefDimensions=_T,j.useResourceDefaultValues=o3,j.useResourceTitle=_A,j.useRestartOnboarding=gV,j.useSx=Ar,j.useTableFormIterator=BC,j.useTableFormIteratorItem=qT,j.useThemeConfig=Wn,j.uuid=lT,j.withLayoutProvider=c0,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
284
|
+
`),Y7)),fb=k.forwardRef(function(t,n){const r=Vt({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:c,variant:u="indeterminate"}=r,A=Ue(r,W7),p=W({},r,{color:s,variant:u}),C=K7(p),h=yt(),E={},m={bar1:{},bar2:{}};if(u==="determinate"||u==="buffer")if(a!==void 0){E["aria-valuenow"]=Math.round(a),E["aria-valuemin"]=0,E["aria-valuemax"]=100;let B=a-100;h.direction==="rtl"&&(B=-B),m.bar1.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(u==="buffer")if(c!==void 0){let B=(c||0)-100;h.direction==="rtl"&&(B=-B),m.bar2.transform=`translateX(${B}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return f.jsxs(J7,W({className:Ye(C.root,o),ownerState:p,role:"progressbar"},E,{ref:n},A,{children:[u==="buffer"?f.jsx(X7,{className:C.dashed,ownerState:p}):null,f.jsx(Z7,{className:C.bar1,ownerState:p,style:m.bar1}),u==="determinate"?null:f.jsx(_7,{className:C.bar2,ownerState:p,style:m.bar2})]}))});process.env.NODE_ENV!=="production"&&(fb.propTypes={classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","primary","secondary"]),g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),value:g.number,valueBuffer:g.number,variant:g.oneOf(["buffer","determinate","indeterminate","query"])});const q7=fb,$7=fe("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),pb=()=>f.jsx($7,{children:f.jsx(q7,{color:"primary"})}),eV=e=>t=>f.jsx(w.Suspense,{fallback:f.jsx(pb,{}),children:f.jsx(e,{...t})}),ef=({title:e})=>f.jsxs(y.Stack,{direction:"row",children:[f.jsx(y.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",f.jsx(y.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]}),tV=fe(D.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}}));function hb(e){return f.jsx(tV,{...e})}const tf=({children:e})=>{const t=It.useLocation(),{pathname:n}=t;return w.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};tf.propTypes={children:g.node};const nV=fe("div")({width:"100%",overflowX:"auto",display:"block"}),nf=({title:e})=>f.jsx(y.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});nf.propTypes={title:g.string.isRequired};var ya=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(ya||{});const rV=Nr().required(),oV=Nr().oneOf(Object.values(ya));function iV(e){var P;const t=Pi.useQueryClient(),[n,r]=w.useState(!1),[o,s]=w.useState(()=>()=>Promise.resolve()),a=de.useGetIdentity(),c=(P=a==null?void 0:a.data)==null?void 0:P.email,u=de.useDataProvider(),A=w.useCallback(()=>c?u.get("onboarding").then(M=>{var x;return(x=M==null?void 0:M.data)==null?void 0:x.value}):Promise.reject(),[u,c]),{data:p,isLoading:C,isError:h}=Pi.useQuery({queryKey:["GET","onboarding",c],queryFn:A,staleTime:24*60*60*1e3,retry:c!==void 0}),[E,m]=w.useState(()=>()=>Promise.resolve()),B=Pi.useMutation({mutationFn:E}),v=B.mutateAsync;return w.useEffect(()=>{function M(){const x=ue.chain(p??{}).clone().extend({[e]:Date.now()}).value();return u.post("onboarding",x).then(()=>{t.invalidateQueries(["GET","onboarding",c])})}m(()=>M)},[u,p,e,t,c]),w.useEffect(()=>{r(ue.isNil((p??{})[e]))},[p,e,r]),w.useEffect(()=>{s(()=>()=>v())},[v]),{loading:C,error:h,onboardingRequired:n,acknowledgeOnboarding:o}}function sV(e){const[t,n]=Rl("onboarding",{}),[r,o]=w.useState(!1),[s,a]=w.useState(()=>()=>Promise.resolve());return w.useEffect(()=>{o(ue.isNil((t??{})[e]))},[t,e,o]),w.useEffect(()=>{a(()=>()=>(n(c=>ue.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:s}}function aV(){return{onboardingRequired:!1,acknowledgeOnboarding:w.useRef(()=>Promise.resolve()).current}}function lV(e,t){ZA({mode:oV,topic:rV}).validateSync({mode:e,topic:t});const n=iV(t),r=sV(t),o=aV();switch(e){case ya.USER:return n.loading?o:n.error?r:ue.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case ya.BROWSER:return r;default:return o}}var Qa=(e=>(e.RESTART="RESTART",e.SET_SHOW="SET_SHOW",e.REGISTER_TIP="REGISTER_TIP",e.UNREGISTER_TIP="UNREGISTER_TIP",e.DISMISS_TIP="DISMISS_TIP",e.SET_ON_COMPLETE="SET_ON_COMPLETE",e))(Qa||{});function cV(e,t){var o;const n=ue.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:s}=t;return ue.extend(n,{show:s})}case"REGISTER_TIP":{const{payload:s}=t,{id:a}=s,c=ue.chain(n.tips).clone().reject(p=>p.id===a).value(),u=ue.find(n.tips,{id:a}),A=ue.chain(u??{}).clone().extend(s).value();return c.push(A),ue.extend(n,{tips:ue.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:s}=t,a=ue.isString(s)?s:s.id,c=ue.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return ue.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:s}=t,a=ue.isString(s)?s:s.id,c=ue.chain(n.tips).reject(h=>h.id===a).value(),u=ue.find(n.tips,{id:a});if(ue.isNil(u))return n;const A=ue.chain(u).clone().extend({dismissed:!0}).value();c.push(A);const p=((o=ue.chain(c).reject(h=>h.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(A==null?void 0:A.completeOnboarding)&&ue.chain(c).reject(h=>h.step<p).reject(h=>h.dismissed??!1).isEmpty().value()&&e.onComplete(),ue.extend(n,{tips:ue.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:s}=t;return ue.extend(n,{onComplete:s})}case"RESTART":{const s=ue.chain(n.tips).clone().map(a=>ue.omit(a,"dismissed")).value();return ue.extend(n,{tips:s,currentStep:0})}default:return n}}const Cb=w.createContext(void 0);function uV(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=lV(t,n),[s,a]=w.useReducer(cV,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=w.useMemo(()=>({state:s,dispatch:a}),[s,a]);return w.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),w.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),f.jsx(Cb.Provider,{value:c,children:e.children})}function Eb(){const e=w.useContext(Cb);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function AV(){return Eb().state}function Ib(){return Eb().dispatch}function dV(e){ZA({id:Nr().required(),step:AC().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:s,currentStep:a}=AV(),c=ue.find(s,{id:t}),{dismissed:u}=c??{},A=Ib(),p=w.useCallback(()=>{A({type:Qa.DISMISS_TIP,payload:t})},[A,t]);return w.useEffect(()=>{(ue.isNil(c)||n!==(c==null?void 0:c.step))&&A({type:Qa.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c]),w.useEffect(()=>()=>{A({type:Qa.UNREGISTER_TIP,payload:t})},[t,A]),{tip:ue.chain(c??e).clone().extend({open:o&&!ue.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function gV(){const e=Ib();return w.useCallback(()=>{e({type:Qa.RESTART})},[e])}function fV(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:s,dismiss:a}=dV({id:t,step:n,completeOnboarding:o}),{open:c}=s,u=ue.omit(e,["id","step","title","completeOnboarding"]);return f.jsx(dc,{...u,arrow:!0,open:c,title:f.jsxs(y.Stack,{gap:1,children:[f.jsx(y.Typography,{children:r}),f.jsx(y.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const pV=y.styled(fV)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${y.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${y.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${y.tooltipClasses.arrow}`]:{color:r.main}}});function hV({label:e="ra.auth.sign_in",...t}){const n=D.useRecordContext(),[r,o]=w.useState(!1),s=D.useAuthProvider(),a=w.useCallback(c=>{c.stopPropagation(),c.preventDefault(),o(!0),s.impersonate(n==null?void 0:n.id).then(()=>{o(!1),document.location.href="/"})},[s,n==null?void 0:n.id]);return f.jsx(D.Button,{disabled:r||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:f.jsx(zn.VpnKey,{})})}const rf=(e,t)=>{const n=t.id;if(!e)return[t];const r=e.findIndex(o=>o.id===n);return r===-1?[...e,t]:[...e.slice(0,r),{...e[r],...t},...e.slice(r+1)]},CV=(e,t)=>e&&e.data?{data:rf(e.data,t),total:e.total+1}:e,EV=(e,t)=>e&&e.length>0?rf(e,t):e,IV=(e,t)=>e&&e.data?{...e,data:rf(e.data,t),total:e.total+1}:e,mV=({onClose:e,record:t,children:n,redirect:r=!1,onSubmit:o,onSuccess:s,onError:a})=>{const c=Pi.useQueryClient(),u=D.useResourceContext(),A=D.useRedirect(),p=D.useNotify(),C=w.useCallback(B=>{const P=Date.now();c.setQueryData([u,"getOne",{id:B.id}],B),c.setQueriesData([u,"getList"],M=>IV(M,B),{updatedAt:P}),c.setQueriesData([u,"getMany"],M=>EV(M,B),{updatedAt:P}),c.setQueriesData([u,"getManyReference"],M=>CV(M,B),{updatedAt:P}),e(),p("ra.notification.created"),r!==void 0&&A(r,u,B.id,B),s&&s(B)},[e,s,c,u,p,A,r]),{save:h,...E}=D.useCreateController({mutationOptions:{onSuccess:C,onError:a}}),m=w.useCallback(B=>{o?o(B,e):h&&h(B)},[o,h,e]);return f.jsx(D.CreateContextProvider,{value:{record:t,save:m,saving:E==null?void 0:E.saving,redirect:r},children:w.cloneElement(n,{...n.props,toolbar:f.jsxs(oi,{children:[f.jsx(D.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:E==null?void 0:E.saving}),f.jsx(D.SaveButton,{disabled:E==null?void 0:E.saving})]})})})},BV={true:{_scrollToTop:!0},false:{}},vV=fe(y.Fab,{name:"RaApplicaCreateInDialogButton",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`&.${D.CreateButtonClasses.floating}`]:{color:e.palette.getContrastText(e.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3}}));function bV({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.create",record:r,redirect:o,scrollToTop:s=!0,className:a,sx:c,onSubmit:u,onSuccess:A,onError:p,...C}){const[h,E]=w.useState(!1),m=D.useTranslate(),B=D.useResourceContext(),{openDialog:v,closeDialog:P}=Uo(),M=w.useCallback(()=>v(B,()=>E(!0)),[v,B]),x=w.useCallback(()=>P(B,()=>E(!1)),[P,B]),O=y.useMediaQuery(S=>S.breakpoints.down("md"));return f.jsxs(f.Fragment,{children:[O?f.jsx(vV,{...C,state:BV[String(s)],color:"primary",className:Ye(D.CreateButtonClasses.floating,a),"aria-label":n&&m(n),onClick:M,children:f.jsx(zn.Add,{})}):f.jsx(D.Button,{...C,sx:c,label:n,onClick:M,children:f.jsx(zn.Add,{})}),f.jsx(y.Dialog,{open:h,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:x,fullWidth:e,maxWidth:t,children:f.jsx(mV,{...C,redirect:o,record:r,onClose:x,onSubmit:u,onSuccess:A,onError:p})})]})}const yV=({onClose:e,children:t})=>{const n=D.useNotify(),r=D.useRecordContext(),o=D.useResourceContext(),{id:s}=r,{isLoading:a,data:c}=D.useGetOne(o,{id:s}),u=w.useCallback(()=>{n("ra.notification.updated",{type:"info",messageArgs:{smart_count:1}}),e()},[e,n]),{save:A,saving:p}=D.useEditController({resource:o,id:s,mutationMode:"pessimistic",mutationOptions:{onSuccess:u}});return f.jsx(D.EditContextProvider,{value:{record:c,isLoading:a,save:A,saving:p},children:w.cloneElement(t,{toolbar:f.jsxs(oi,{children:[f.jsx(D.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),f.jsx(D.SaveButton,{})]})})})};function QV({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.edit",...r}){const[o,s]=w.useState(!1),{openDialog:a,closeDialog:c}=Uo(),u=D.useResourceContext(),A=w.useCallback(()=>a(u,()=>s(!0)),[a,u]),p=w.useCallback(()=>c(u,()=>s(!1)),[c,u]);return f.jsxs(f.Fragment,{children:[f.jsx(D.Button,{label:n,onClick:A,children:f.jsx(zn.Edit,{})}),f.jsx(y.Dialog,{open:o,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:p,fullWidth:e,maxWidth:t,children:f.jsx(yV,{onClose:p,children:r==null?void 0:r.children})})]})}function mb(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:s,resource:a,selectedIds:c=[],onUnselectItems:u}=de.useListContext(e),A=de.useTranslate(),p=w.useCallback(()=>{u()},[u]);return f.jsx(xV,{className:r,children:f.jsxs(q5,{"data-test":"bulk-actions-toolbar",className:Ye(_n.toolbar,{[_n.collapsed]:c.length===0}),...de.sanitizeListRestProps(o),children:[f.jsxs("div",{className:_n.title,children:[f.jsx(tg,{className:_n.icon,"aria-label":A("ra.action.unselect"),title:A("ra.action.unselect"),onClick:p,size:"small",children:f.jsx(Vc,{fontSize:"small"})}),f.jsx(rm,{color:"inherit",variant:"subtitle1",children:A(t,{_:t,smart_count:c.length})})]}),f.jsx(D.TopToolbar,{className:_n.topToolbar,children:w.Children.map(n,C=>w.isValidElement(C)?w.cloneElement(C,{filterValues:s,resource:a,selectedIds:c}):null)})]})})}const ci="RaBulkActionsToolbar",_n={toolbar:`${ci}-toolbar`,topToolbar:`${ci}-topToolbar`,buttons:`${ci}-buttons`,collapsed:`${ci}-collapsed`,title:`${ci}-title`,icon:`${ci}-icon`},xV=fe("div",{name:ci,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${_n.toolbar}`]:{position:"absolute",left:0,right:0,zIndex:3,color:e.palette.mode==="light"?e.palette.primary.main:e.palette.text.primary,justifyContent:"space-between",backgroundColor:e.palette.mode==="light"?Fi(e.palette.primary.light,.8):e.palette.primary.dark,minHeight:e.spacing(6),height:e.spacing(6),transform:`translateY(-${e.spacing(6)})`,transition:`${e.transitions.create("height")}, ${e.transitions.create("min-height")}, ${e.transitions.create("transform")}`,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${_n.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${_n.buttons}`]:{},[`& .${_n.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${_n.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${_n.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),of={p:0,m:0},Bb={p:2,m:0,borderRadius:0,width:"100%"};function wV(e){const{children:t}=e,[n,r]=k.useState(null),o=m=>{r(m.currentTarget)},s=()=>{r(null)},a=y.useMediaQuery(m=>m.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:A=[],onUnselectItems:p}=D.useListContext(e),C=!!n&&A!==void 0&&A.length>0,h=C?"simple-popover":void 0,E=k.useCallback(()=>{p(),r(null)},[p,r]);return f.jsx(y.Fade,{in:A!==void 0&&A.length>0,children:f.jsxs(y.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[f.jsx(y.Fab,{color:"primary","aria-label":"manage",onClick:o,children:A==null?void 0:A.length}),f.jsx(y.Popover,{id:h,open:C,anchorEl:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:f.jsxs(y.List,{sx:of,children:[f.jsx(y.ListItem,{sx:of,children:f.jsx(D.Button,{onClick:E,sx:Bb,label:"ra.action.unselect",startIcon:f.jsx(Vc,{}),children:f.jsx(Vc,{})})}),k.Children.map(t,m=>{var B;return f.jsx(y.ListItem,{sx:of,children:k.isValidElement(m)?k.cloneElement(m,{filterValues:c,resource:u,selectedIds:A,sx:Bb,...(B=m.props)!=null&&B.popover?{closePopover:s}:{}}):null})})]})})]})})}const vb=w.createContext({});vb.displayName="DatagridContext";const TV=({children:e,value:t})=>f.jsx(vb.Provider,{value:t,children:e}),bb=f.jsx(D.BulkDeleteButton,{}),sf=k.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?D.PureDatagridBody:D.DatagridBody,header:o=D.DatagridHeader,children:s,className:a,empty:c=OV,expand:u,bulkActionsToolbar:A=!1,bulkActionButtons:p=bb,hover:C,isRowSelectable:h,isRowExpandable:E,resource:m,rowClick:B,rowSx:v,rowStyle:P,size:M="small",sx:x,expandSingle:O=!1,...S}=e,{sort:L,data:z,isLoading:q,onSelect:ee,onToggleItem:K,selectedIds:J,setSort:le,total:se}=de.useListContext(e),Z=!!p,Y=w.useMemo(()=>({isRowExpandable:E,expandSingle:O}),[E,O]),H=w.useRef(null);w.useEffect(()=>{(!J||J.length===0)&&(H.current=null)},[JSON.stringify(J)]);const _=w.useCallback((F,$)=>{const V=z.map(ce=>ce.id),X=V.indexOf(H.current);if(H.current=$.target.checked?F:null,$.shiftKey&&X!==-1){const ce=V.indexOf(F),he=V.slice(Math.min(X,ce),Math.max(X,ce)+1),ge=$.target.checked?ZL(J,he):A9(J,he);ee(h?ge.filter(pe=>h(z.find(Ce=>Ce.id===pe))):ge)}else K(F)},[z,h,ee,K,J]);return q===!0?f.jsx(D.DatagridLoading,{className:a,expand:u,hasBulkActions:Z,nbChildren:k.Children.count(s),size:M}):z==null||z.length===0||se===0?c||null:f.jsx(TV,{value:Y,children:f.jsxs(D.DatagridRoot,{sx:x,className:Ye(D.DatagridClasses.root,a),children:[A!=null&&w.isValidElement(A)?w.cloneElement(A,{selectedIds:J,total:se}):p!==!1?f.jsx(mb,{children:w.isValidElement(p)?p:bb}):null,f.jsx("div",{className:D.DatagridClasses.tableWrapper,children:f.jsxs(y.Table,{ref:t,className:D.DatagridClasses.table,size:M,...PV(S),children:[yb(o,{children:s,sort:L,data:z,hasExpand:!!u,hasBulkActions:Z,isRowSelectable:h,onSelect:ee,resource:m,selectedIds:J,setSort:le},s),yb(r,{expand:u,rowClick:B,data:z,hasBulkActions:Z,hover:C,onToggleItem:_,resource:m,rowSx:v,rowStyle:P,selectedIds:J,isRowSelectable:h},s)]})})]})})}),yb=(e,t,n)=>w.isValidElement(e)?w.cloneElement(e,t,n):w.createElement(e,t,n);sf.propTypes={body:g.oneOfType([g.element,g.elementType]),bulkActionButtons:g.oneOfType([g.bool,g.element]),children:g.node.isRequired,className:g.string,sort:g.exact({field:g.string,order:g.oneOf(["ASC","DESC"])}),data:g.arrayOf(g.any),empty:g.element,expand:g.oneOfType([g.element,g.elementType]),header:g.oneOfType([g.element,g.elementType]),hover:g.bool,isLoading:g.bool,onSelect:g.func,onToggleItem:g.func,resource:g.string,rowClick:g.oneOfType([g.string,g.func,g.bool]),rowSx:g.func,rowStyle:g.func,selectedIds:g.arrayOf(g.any),setSort:g.func,total:g.number,isRowSelectable:g.func,isRowExpandable:g.func,expandSingle:g.bool};const SV=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],PV=e=>Object.keys(de.sanitizeListRestProps(e)).filter(t=>!SV.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{});sf.displayName="Datagrid";const OV=f.jsx(D.ListNoResults,{}),jV=fe(sf,{name:"ApplicaDatagrid",slot:"root"})(({theme:e})=>({"& .RaBulkActionsToolbar-toolbar":{height:48},"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .RaBulkActionsToolbar-topToolbar":{backgroundColor:"transparent"},"& .icon span":{top:-1,left:-1},"& th":{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",backgroundColor:"inherit !important",textTransform:"none",fontSize:e.typography.subtitle1.fontSize}}));function DV(e){return f.jsx(jV,{...e})}const MV=fe("div")(({theme:e})=>({padding:e.spacing(2)}));function RV({actions:e,className:t,...n}){const{hasCreate:r}=de.useResourceDefinition(n),o=de.useResourceContext(n),s=de.useTranslate(),a=de.useGetResourceLabel(),c=s(`resources.${o}.forcedCaseName`,{smart_count:0,_:a(o,0)}),u=s("ra.page.empty",{name:c}),A=s("ra.page.invite");return f.jsxs(kV,{className:t,children:[f.jsxs("div",{className:ui.message,children:[f.jsx(zn.Inbox,{className:ui.icon}),f.jsx(y.Typography,{variant:"h4",paragraph:!0,children:s(`resources.${o}.empty`,{_:u})}),r&&f.jsx(y.Typography,{variant:"body1",children:s(`resources.${o}.invite`,{_:A})})]}),f.jsx(MV,{className:ui.toolbar,children:e})]})}const _c="ApplicaEmpty",ui={message:`${_c}-message`,icon:`${_c}-icon`,toolbar:`${_c}-toolbar`},kV=fe("span",{name:_c,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${ui.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${ui.icon}`]:{width:"9em",height:"9em"},[`& .${ui.toolbar}`]:{textAlign:"center",marginTop:"2em"}})),FV=f.jsx(D.ListActions,{}),LV=f.jsx(D.Pagination,{}),NV=f.jsx(D.Empty,{}),VV=m9,zV=e=>{const{actions:t=FV,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:s,hasCreate:a,pagination:c=LV,children:u,className:A,component:p=VV,title:C,empty:h=NV,...E}=e,{defaultTitle:m,data:B,error:v,isLoading:P,filterValues:M,resource:x}=de.useListContext(e);if(!u||!B&&P&&s)return null;const O=()=>f.jsxs("div",{className:So.main,children:[(r||t)&&f.jsx(D.ListToolbar,{className:So.actions,filters:r,actions:t,hasCreate:a}),!v&&f.jsx(p,{className:So.content,children:o&&u&&k.isValidElement(u)?w.cloneElement(u,{bulkActionButtons:o}):u}),v?f.jsx(Ng,{error:v,resetErrorBoundary:null}):c!==!1&&c]}),S=()=>h!==!1&&w.cloneElement(h,{className:So.noResults,hasCreate:a}),L=!P&&(B==null?void 0:B.length)===0&&!Object.keys(M).length&&h!==!1;return f.jsxs(HV,{className:Ye("list-page",A),...E,children:[f.jsx(D.Title,{title:C,defaultTitle:m,preferenceKey:`${x}.list.title`}),L?S():O(),n]})},xa="RaList",So={main:`${xa}-main`,content:`${xa}-content`,actions:`${xa}-actions`,noResults:`${xa}-noResults`},HV=fe("div",{name:xa,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",[`& .${So.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${So.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${So.actions}`]:{},[`& .${So.noResults}`]:{}})),WV=({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=UV,filterDefaultValues:s,perPage:a=10,queryOptions:c,resource:u,sort:A,storeKey:p,...C})=>f.jsx(de.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:s,perPage:a,queryOptions:c,resource:u,sort:A,storeKey:p,children:f.jsx(zV,{...C})}),UV={},YV=Hs(WV,{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:0},"& .RaList-actions":{minHeight:80,alignItems:"center",padding:e.spacing(2.5),"& form":{alignItems:"center",minHeight:"auto",paddingBottom:0,rowGap:e.spacing(2.5)},"& .RaFilterForm-filterFormInput":{margin:0,"& .MuiFormControl-root":{marginTop:0},"& .ra-input":{alignSelf:"center",marginTop:0},[e.breakpoints.down("sm")]:{"&>.MuiStack-root":{width:"100%","&>div:not(.MuiStack-root)":{width:"100%"}}}},"& .RaFilterFormInput-hideButton":{margin:"0 !important",alignSelf:"center"},"& > .MuiToolbar-root":{flex:"unset",padding:0,alignSelf:"center",minHeight:"fit-content",[e.breakpoints.down("sm")]:{paddingBottom:e.spacing(2)}}},"& .RaList-content":{borderRadius:0,"& .RaBulkActionsToolbar-collapsed":{height:0,paddingTop:0,paddingBottom:0},"& .icon span":{top:-1,left:-1}}},"& .RaEmpty-toolbar":{margin:e.spacing(2)}}));function GV(e){return f.jsx(Yn,{content:!1,children:f.jsx(YV,{...e})})}function KV(){const e=D.useRefresh(),t=D.useNotify(),n=D.useResourceContext(),r=D.useUnselectAll(n),{selectedIds:o,data:s}=D.useListContext(),a=D.useRecordContext(),c=o.map(C=>s.find(h=>h.id===C)),[u,{isLoading:A}]=D.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:vr().format("YYYY-MM-DD HH:mm:ss")},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.readed.done"),r()},onError:()=>t("ra.notification.readed_error",{type:"warning"}),onFailure:()=>t("ra.notification.readed_error",{type:"warning"})}),p=w.useCallback(()=>{u()},[u]);return f.jsx(D.Button,{label:"ra.notification.mark_as_readed",disabled:A||(a==null?void 0:a.readed)!==null,onClick:p,children:f.jsx(zn.Email,{})})}function JV(){const e=D.useRefresh(),t=D.useNotify(),n=D.useResourceContext(),r=D.useUnselectAll(n),{selectedIds:o,data:s}=D.useListContext(),a=D.useRecordContext(),c=o.map(C=>s.find(h=>h.id===C)).concat([a]),[u,{isLoading:A}]=D.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:null},rows:c},{onSuccess:()=>{e(),t("resources.notifications.messages.unreaded.done"),r()},onFailure:()=>t("resources.notifications.messages.unreaded.error",{type:"warning"})}),p=w.useCallback(()=>{u()},[u]);return f.jsx(D.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:A||a&&!(a!=null&&a.readed),onClick:p,children:f.jsx(zn.Drafts,{})})}function XV(e){const t=D.useRecordContext(e),n=D.useResourceContext(e),r=D.useRedirect(),o=D.useNotify(),s=D.useTranslate(),[a]=D.useLocaleState(),c=w.useMemo(()=>t!=null&&t.readed?vr(t==null?void 0:t.readed).locale(a).format("ddd, DD MMM YYYY HH:mm:ss"):!1,[t==null?void 0:t.readed,a]),[u]=D.useUpdate(n,{id:t==null?void 0:t.id,data:{...t,readed:vr().format("YYYY-MM-DD HH:mm:ss")}},{onSuccess:()=>{t!=null&&t.resource&&(t!=null&&t.resource.startsWith("/")?r(t==null?void 0:t.resource):document.location.href=t==null?void 0:t.resource)},onError:()=>{o("ra.notification.readed_error",{type:"warning"})}}),A=w.useCallback(()=>u(),[u]);return f.jsxs("div",{onClick:A,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[f.jsx(y.Typography,{variant:"subtitle1",children:f.jsxs(y.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),f.jsx(y.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c&&f.jsx(y.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:s("ra.notification.readed",{readed:c})})]})}function ZV({...e}){const t=y.useTheme(),{mode:n,colorize:r,density:o}=w.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?y.darken:y.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),s=a=>({backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)});return f.jsxs(D.Datagrid,{...e,rowSx:s,children:[f.jsx(XV,{source:"notification",sortable:!1}),f.jsx(Lm,{source:"created"}),f.jsxs(co,{children:[f.jsx(KV,{}),f.jsx(JV,{})]})]})}const _V=fe(D.SimpleList,{name:"ApplicaSimpleList",slot:"root"})(({theme:e})=>({padding:e.spacing(1),paddingTop:0,paddingBottom:0})),qc={width:"1.5rem",alignSelf:"center"};function qV({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:s,component:a,leftIcon:c,rightIcon:u,button:A,buttonProps:p,...C}){const{getCurrentDialog:h}=Uo(),E=de.useResourceContext(C),m=h(),B=de.useRecordContext(),v=r||B,P=At.get(v,e||"");return f.jsxs(y.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:M=>({pt:1,pb:1,borderBottom:`1px solid ${M.palette.divider}`,...o&&{mb:2},...s&&{mt:2}}),children:[f.jsxs(y.Stack,{direction:"row",alignItems:"start",children:[c&&(w.isValidElement(c)?w.cloneElement(c,{style:qc}):w.createElement(c,{style:qc})),f.jsx(de.FieldTitle,{label:t,source:e,resource:m||E})]}),f.jsxs(y.Stack,{direction:"row",alignItems:"center",children:[a?w.isValidElement(a)?w.cloneElement(a,{record:v,resource:E,value:P}):w.createElement(a,{source:e,record:v,resource:E,value:P}):f.jsx(y.Typography,{variant:n,children:P}),u&&(w.isValidElement(u)?w.cloneElement(u,{style:qc}):w.createElement(u,{style:qc})),A&&f.jsx(y.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:A})]})]})}const Qb=({children:e,...t})=>{const n=yt();return f.jsx(Yn,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...t,border:!1,boxShadow:!0,shadow:n.customShadows.z1,children:f.jsx(y.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};Qb.propTypes={children:g.node};const wa=({version:e,name:t,copy:n,children:r,logo:o,background:s=nl})=>f.jsxs(y.Box,{sx:{minHeight:"100vh"},children:[w.isValidElement(s)?s:w.createElement(s),f.jsxs(y.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[f.jsx(y.Grid,{item:!0,xs:12,sx:{ml:3},children:o||f.jsx(ef,{title:t})}),f.jsxs(y.Grid,{item:!0,xs:12,children:[f.jsx(y.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:f.jsx(y.Grid,{item:!0,children:f.jsx(Qb,{children:r})})}),f.jsx(y.Grid,{item:!0,sx:{pb:1},children:f.jsx(dg,{name:t,copy:n,version:e})})]})]})]});wa.propTypes={children:g.node,version:g.string,name:g.string,copy:g.string,background:g.oneOfType([g.node,g.func,g.object])};const xb=({name:e,copy:t,logo:n,version:r,background:o})=>{const s=de.useTranslate(),a=de.useAuthProvider(),c=de.useNotify(),u=It.useNavigate(),{token:A}=It.useParams();return w.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{c("ra.auth.activate_success",{type:"info"}),ue.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),ue.delay(()=>u("/login"),1e3)})},[A]),f.jsx(wa,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(y.Grid,{container:!0,spacing:3,children:[f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(y.Typography,{variant:"h3",children:s("ra.auth.activate")}),f.jsx(y.Typography,{component:It.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:s("ra.auth.back_to_login")})]})}),f.jsx(y.Grid,{item:!0,xs:12,children:s("ra.auth.activate_pending")})]})})};xb.propTypes={name:g.string.isRequired,version:g.string.isRequired,background:g.node};function wb({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:s=!1,redirectTo:a,background:c=f.jsx(nl,{})}){const[u,A]=de.useSafeSetState(!1),p=de.useLogin(),C=de.useTranslate(),h=de.useNotify(),E=de.useCheckAuth(),m=It.useNavigate();w.useEffect(()=>{E({},!1).then(()=>{m("/")}).catch(()=>{})},[E,m]);const B=v=>{A(!0),p(v,a).then(()=>{A(!1)}).catch(P=>{A(!1),h(typeof P=="string"?P:typeof P>"u"||!P.message?"ra.auth.sign_in_error":P.message,{type:"error",messageArgs:{_:typeof P=="string"?P:P&&P.message?P.message:void 0}})})};return f.jsx(wa,{name:t,version:e,copy:n,logo:r,background:c,children:f.jsxs(y.Grid,{container:!0,spacing:3,children:[f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(y.Typography,{variant:"h3",children:"Login"}),s&&f.jsx(y.Typography,{component:It.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:C("ra.auth.register")})]})}),f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(de.Form,{onSubmit:B,children:[f.jsxs(y.Grid,{container:!0,children:[f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(dr,{autoFocus:!0,source:"username",label:C("ra.auth.username"),autoComplete:"username",validate:de.required(),placeholder:"user@company.name",fullWidth:!0})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:2},children:f.jsx(dr,{source:"password",label:C("ra.auth.password"),type:"password",autoComplete:"current-password",validate:de.required(),placeholder:C("ra.auth.password_placeholder"),fullWidth:!0})})]}),o&&f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(y.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:f.jsx(y.Link,{variant:"h6",component:It.Link,to:"/recover",color:"text.primary",children:C("ra.auth.forgot_password")})})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?f.jsx(y.CircularProgress,{size:19,thickness:3}):C("ra.auth.sign_in")})})]})})]})})}const Tb=({name:e,copy:t,logo:n,version:r,background:o})=>{const[s,a]=w.useState(!1),c=de.useTranslate(),u=de.useRedirect(),A=de.useNotify(),p=de.useAuthProvider(),C=({email:h})=>{a(!0),p.recover(h).then(E=>{const m=`ra.auth.recover_${E.responseCode}`,B=E.responseCode==="ok"?"info":"error";A(m,{type:B}),u("/login")}).catch(E=>{A(E,{type:"error"})}).finally(()=>a(!1))};return f.jsx(wa,{name:e,copy:t,logo:n,version:r,background:o,children:f.jsxs(y.Grid,{container:!0,spacing:3,children:[f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(y.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),f.jsx(y.Typography,{component:It.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(D.Form,{onSubmit:C,children:[f.jsx(y.Grid,{container:!0,children:f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(dr,{source:"email",validate:[de.required(),de.email()]})})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:f.jsx(y.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?f.jsx(y.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})};Tb.propTypes={name:g.string.isRequired,version:g.string.isRequired,background:g.node};const Sb=({name:e,copy:t,version:n,logo:r,background:o})=>{const[s,a]=w.useState(!1),c=de.useTranslate(),u=de.useRedirect(),A=de.useNotify(),p=de.useAuthProvider(),C=h=>{a(!0),p.register(h).then(E=>{const m=`ra.auth.register_${E.responseCode}`,B=E.responseCode==="ok"?"info":"error";A(m,{type:B}),u("/login")}).catch(E=>{A(E,{type:"error"})}).finally(()=>a(!1))};return f.jsx(wa,{name:e,copy:t,logo:r,background:o,version:n,children:f.jsxs(y.Grid,{container:!0,spacing:3,children:[f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(y.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[f.jsx(y.Typography,{variant:"h3",children:c("ra.auth.register.title")}),f.jsx(y.Typography,{component:It.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),f.jsx(y.Grid,{item:!0,xs:12,children:f.jsxs(D.Form,{onSubmit:C,children:[f.jsxs(y.Grid,{container:!0,children:[f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(dr,{source:"name",label:c("ra.register.name"),validate:de.required()})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(dr,{source:"email",type:"email",validate:[de.required(),de.email()]})}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mb:1},children:f.jsx(dr,{source:"password",type:"password",validate:de.required()})})]}),f.jsx(y.Grid,{item:!0,xs:12,sx:{mt:1},children:f.jsx(y.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?f.jsx(y.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})};Sb.propTypes={name:g.string.isRequired,version:g.string.isRequired};function Pb(){const e=w.useCallback(()=>location.reload(),[]);return f.jsx(y.Container,{children:f.jsxs(y.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[f.jsx("img",{src:wB,style:{width:"100%",maxWidth:450}}),f.jsx(y.Typography,{variant:"h2",children:"Ops! An error occurred..."}),f.jsx(y.Typography,{children:"We're fixing the problem. Please try again later."}),f.jsx(y.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}const $V=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 ${ze(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${ze(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${ze(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${ze(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${ze(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${ze(e.palette.info.main,.2)}`,success:`0 0 0 2px ${ze(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${ze(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${ze(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${ze(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${ze(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${ze(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${ze(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${ze(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${ze(e.palette.grey[500],.2)}`});function qn(e,t){ez(e)&&(e="100%");var n=tz(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 ez(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function tz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function nz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function $c(e){return e<=1?"".concat(Number(e)*100,"%"):e}function af(e){return e.length===1?"0"+e:String(e)}function rz(e,t,n){return{r:qn(e,255)*255,g:qn(t,255)*255,b:qn(n,255)*255}}function lf(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 oz(e,t,n){var r,o,s;if(e=qn(e,360),t=qn(t,100),n=qn(n,100),t===0)o=n,s=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=lf(c,a,e+1/3),o=lf(c,a,e),s=lf(c,a,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function iz(e,t,n){e=qn(e,255),t=qn(t,255),n=qn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,a=r,c=r-o,u=r===0?0:c/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s,s:u,v:a}}function sz(e,t,n){e=qn(e,360)*6,t=qn(t,100),n=qn(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),u=r%6,A=[n,a,s,s,c,n][u],p=[c,n,n,a,s,s][u],C=[s,s,c,n,n,a][u];return{r:A*255,g:p*255,b:C*255}}function az(e,t,n,r){var o=[af(Math.round(e).toString(16)),af(Math.round(t).toString(16)),af(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Ob(e){return Dn(e)/255}function Dn(e){return parseInt(e,16)}var jb={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,o=null,s=null,a=!1,c=!1;return typeof e=="string"&&(e=uz(e)),typeof e=="object"&&(Xr(e.r)&&Xr(e.g)&&Xr(e.b)?(t=rz(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xr(e.h)&&Xr(e.s)&&Xr(e.v)?(r=$c(e.s),o=$c(e.v),t=sz(e.h,r,o),a=!0,c="hsv"):Xr(e.h)&&Xr(e.s)&&Xr(e.l)&&(r=$c(e.s),s=$c(e.l),t=oz(e.h,r,s),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=nz(n),{ok:a,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lz="[-\\+]?\\d+%?",cz="[-\\+]?\\d*\\.\\d+%?",Po="(?:".concat(cz,")|(?:").concat(lz,")"),cf="[\\s|\\(]+(".concat(Po,")[,|\\s]+(").concat(Po,")[,|\\s]+(").concat(Po,")\\s*\\)?"),uf="[\\s|\\(]+(".concat(Po,")[,|\\s]+(").concat(Po,")[,|\\s]+(").concat(Po,")[,|\\s]+(").concat(Po,")\\s*\\)?"),gr={CSS_UNIT:new RegExp(Po),rgb:new RegExp("rgb"+cf),rgba:new RegExp("rgba"+uf),hsl:new RegExp("hsl"+cf),hsla:new RegExp("hsla"+uf),hsv:new RegExp("hsv"+cf),hsva:new RegExp("hsva"+uf),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 uz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(jb[e])e=jb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=gr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=gr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=gr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=gr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=gr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=gr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=gr.hex8.exec(e),n?{r:Dn(n[1]),g:Dn(n[2]),b:Dn(n[3]),a:Ob(n[4]),format:t?"name":"hex8"}:(n=gr.hex6.exec(e),n?{r:Dn(n[1]),g:Dn(n[2]),b:Dn(n[3]),format:t?"name":"hex"}:(n=gr.hex4.exec(e),n?{r:Dn(n[1]+n[1]),g:Dn(n[2]+n[2]),b:Dn(n[3]+n[3]),a:Ob(n[4]+n[4]),format:t?"name":"hex8"}:(n=gr.hex3.exec(e),n?{r:Dn(n[1]+n[1]),g:Dn(n[2]+n[2]),b:Dn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Xr(e){return!!gr.CSS_UNIT.exec(String(e))}var eu=2,Db=.16,Az=.05,dz=.05,gz=.15,Mb=5,Rb=4,fz=[{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 kb(e){var t=e.r,n=e.g,r=e.b,o=iz(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function tu(e){var t=e.r,n=e.g,r=e.b;return"#".concat(az(t,n,r,!1))}function pz(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Fb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-eu*t:Math.round(e.h)+eu*t:r=n?Math.round(e.h)+eu*t:Math.round(e.h)-eu*t,r<0?r+=360:r>=360&&(r-=360),r}function Lb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Db*t:t===Rb?r=e.s+Db:r=e.s+Az*t,r>1&&(r=1),n&&t===Mb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Nb(e,t,n){var r;return n?r=e.v+dz*t:r=e.v-gz*t,r>1&&(r=1),Number(r.toFixed(2))}function Vb(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ta(e),o=Mb;o>0;o-=1){var s=kb(r),a=tu(Ta({h:Fb(s,o,!0),s:Lb(s,o,!0),v:Nb(s,o,!0)}));n.push(a)}n.push(tu(r));for(var c=1;c<=Rb;c+=1){var u=kb(r),A=tu(Ta({h:Fb(u,c),s:Lb(u,c),v:Nb(u,c)}));n.push(A)}return t.theme==="dark"?fz.map(function(p){var C=p.index,h=p.opacity,E=tu(pz(Ta(t.backgroundColor||"#141414"),Ta(n[C]),h*100));return E}):n}var Af={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"},Xt={},nu={};Object.keys(Af).forEach(function(e){Xt[e]=Vb(Af[e]),Xt[e].primary=Xt[e][5],nu[e]=Vb(Af[e],{theme:"dark",backgroundColor:"#141414"}),nu[e].primary=nu[e][5]}),Xt.red,Xt.volcano,Xt.gold,Xt.orange,Xt.yellow,Xt.lime,Xt.green,Xt.cyan,Xt.blue,Xt.geekblue,Xt.purple,Xt.magenta,Xt.grey,Xt.grey;const zb=e=>{const{blue:t,red:n,gold:r,cyan:o,green:s,grey:a}=e,c={0:a[0],50:a[1],100:a[2],200:a[3],300:a[4],400:a[5],500:a[6],600:a[7],700:a[8],800:a[9],900:a[10],A50:a[15],A100:a[11],A200:a[12],A400:a[13],A700:a[14],A800:a[16]},u="#fff";return{primary:{lighter:t[0],100:t[1],200:t[2],light:t[3],400:t[4],main:t[5],dark:t[6],700:t[7],darker:t[8],900:t[9],contrastText:u},secondary:{lighter:c[100],100:c[100],200:c[200],light:c[300],400:c[400],main:c[500],600:c[600],dark:c[700],800:c[800],darker:c[900],A100:c[0],A200:c.A400,A300:c.A700,contrastText:c[0]},error:{lighter:n[0],light:n[2],main:n[4],dark:n[7],darker:n[9],contrastText:u},warning:{lighter:r[0],light:r[3],main:r[5],dark:r[7],darker:r[9],contrastText:c[100]},info:{lighter:o[0],light:o[3],main:o[5],dark:o[7],darker:o[9],contrastText:u},success:{lighter:s[0],light:s[3],main:s[5],dark:s[7],darker:s[9],contrastText:u},grey:c}};zb.propTypes={colors:g.object};const hz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#D6E4FF","#D6E4FF","#ADC8FF","#84A9FF","#6690FF","#3366FF","#254EDB","#1939B7","#102693","#102693"],a=["#FFE7D3","#FF805D","#FF4528","#DB271D","#930C1A"],c=["#FFF6D0","#FFCF4E","#FFB814","#DB970E","#935B06"],u=["#DCF0FF","#7EB9FF","#549BFF","#3D78DB","#1A3D93"],A=["#EAFCD4","#8AE65B","#58D62A","#3DB81E","#137C0D"];return t==="dark"&&(s=["#1c2134","#1f294d","#243462","#273e83","#2c4db0","#305bdd","#567fe9","#80a4f4","#a9c5f8","#d2e2fb"],a=["#341d1b","#b03725","#dd3f27","#e9664d","#fbd6c9"],c=["#342a1a","#83631a","#dda116","#e9ba3a","#fbefb5"],u=["#202734","#416fb0","#4c88dd","#74a8e9","#ecf4fb"],A=["#1f2e1c","#449626","#4fba28","#74cf4d","#e3fbd2"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Cz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#EEEDFC","#D5D1F8","#B9B2F3","#9C93EE","#877CEA","#7265E6","#6A5DE3","#5F53DF","#5549DB","#4237D5"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#222130","#2b2946","#37335a","#443e78","#554ca0","#655ac8","#9186dd","#5F53DF","#c3baf4","#efecfb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Ez=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#E6F3EC","#84c297","#5eb57d","#3da866","#1f9c53","#068e44","#006933","#004222","#001c0f","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a231f","#173123","#174029","#13502f","#0e6737","#0a7d3e","#1f8f4e","#3ba162","#5cb07a","#82bf95"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Iz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#f0f6ff","#edf4ff","#bed3f7","#8faeeb","#6488de","#3c64d0","#2947ab","#192f85","#0d1b5e","#070e38"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1d212d","#212841","#273353","#2c3e6e","#324c92","#385ab5","#5d7dcb","#89a7e1","#b9cef0","#e9f0fb"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},mz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#fff4e6","#ffdfb8","#ffc98f","#ffb066","#ff943d","#f27013","#cc5206","#a63a00","#802800","#591900"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#32221a","#4a2b18","#5e371b","#7d4319","#a85317","#d26415","#e9883a","#f4a962","#f8c48c","#fbdbb5"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Bz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#e1f0ef","#c8e3e2","#9ad6d6","#71c6c9","#4bb5bd","#2aa1af","#1a7b8a","#0e5563","#06323d","#021217"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1c2628","#1d3539","#22454a","#23595f","#26737c","#288d99","#47a6ad","#6dbec0","#96d0d0","#c5dfde"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},vz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#d1e8d99c","#8cdba9","#63cf8e","#3ec277","#1db564","#00a854","#008245","#005c34","#003620","#000f0a"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2721","#173728","#15472e","#115c36","#0b7841","#05934c","#1da65d","#3cba73","#61ca8b","#8ad7a6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},bz=(e,t)=>{const{grey:n}=e,r={0:n[0],50:n[1],100:n[2],200:n[3],300:n[4],400:n[5],500:n[6],600:n[7],700:n[8],800:n[9],900:n[10],A50:n[15],A100:n[11],A200:n[12],A400:n[13],A700:n[14],A800:n[16]},o="#fff";let s=["#c1d6d066","#81c9b9","#5bbda9","#38b09c","#1aa391","#009688","#007069","#004a47","#002424","#000000"],a=["#FDE8E7","#F25E52","#F04134","#EE3B2F","#E92A21"],c=["#FFF7E0","#FFC926","#FFBF00","#FFB900","#FFA900"],u=["#E0F4F5","#26B0BA","#00A2AE","#009AA7","#008694"],A=["#E0F5EA","#26B56E","#00A854","#00A04D","#008D3A"];return t==="dark"&&(s=["#1a2524","#173331","#15423e","#11544e","#0b6c63","#058478","#1a9686","#37a996","#59b8a5","#7fc6b6"],a=["#321d1d","#7d2e28","#d13c31","#e66859","#f8baaf"],c=["#342c1a","#836611","#dda705","#e9bf28","#f8e577"],u=["#1a2628","#11595f","#058e98","#1ea6aa","#64cfcb"],A=["#1a2721","#115c36","#05934c","#1da65d","#61ca8b"]),{primary:{lighter:s[0],100:s[1],200:s[2],light:s[3],400:s[4],main:s[5],dark:s[6],700:s[7],darker:s[8],900:s[9],contrastText:o},secondary:{lighter:r[100],100:r[100],200:r[200],light:r[300],400:r[400],main:r[500],600:r[600],dark:r[700],800:r[800],darker:r[900],A100:r[0],A200:r.A400,A300:r.A700,contrastText:r[0]},error:{lighter:a[0],light:a[1],main:a[2],dark:a[3],darker:a[4],contrastText:o},warning:{lighter:c[0],light:c[1],main:c[2],dark:c[3],darker:c[4],contrastText:r[100]},info:{lighter:u[0],light:u[1],main:u[2],dark:u[3],darker:u[4],contrastText:o},success:{lighter:A[0],light:A[1],main:A[2],dark:A[3],darker:A[4],contrastText:o},grey:r}},Hb=(e,t,n)=>{switch(t){case"theme1":return hz(e,n);case"theme2":return Cz(e,n);case"theme3":return Ez(e,n);case"theme4":return Iz(e,n);case"theme5":return mz(e,n);case"theme6":return Bz(e,n);case"theme7":return vz(e,n);case"theme8":return bz(e,n);default:return zb(e)}};Hb.propTypes={colors:g.object,presetColor:g.any};const yz=(e,t)=>{const n=e==="dark"?nu:Xt;let r=["#ffffff","#fafafa","#f5f5f5","#f0f0f0","#d9d9d9","#bfbfbf","#8c8c8c","#595959","#262626","#141414","#000000"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#fafafb","#e6ebf1"];e==="dark"&&(r=["#000000","#141414","#1e1e1e","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#f5f5f5","#fafafa","#ffffff"],o=["#fafafa","#bfbfbf","#434343","#1f1f1f"],s=["#121212","#d3d8db"]),n.grey=[...r,...o,...s];const a=Hb(n,t,e);return xA({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?ze(a.grey[900],.87):a.grey[700],secondary:e==="dark"?ze(a.grey[900],.45):a.grey[500],disabled:e==="dark"?ze(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?ze(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})},Qz=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 xz(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 wz(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Tz(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:f.jsx($e.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 Ai({color:e,theme:t}){const n=tn(t,e),{lighter:r,light:o,main:s}=n;return{borderColor:ze(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:s}}}function Sz(e){const t=Ai({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":Ai({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":Ai({color:"secondary",theme:e}),"&.MuiAlert-borderError":Ai({color:"error",theme:e}),"&.MuiAlert-borderSuccess":Ai({color:"success",theme:e}),"&.MuiAlert-borderInfo":Ai({color:"info",theme:e}),"&.MuiAlert-borderWarning":Ai({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 Pz(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Oz(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 di({color:e,theme:t}){const n=tn(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function jz(e){const t=di({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":di({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":di({color:"secondary",theme:e}),"&.MuiBadge-colorError":di({color:"error",theme:e}),"&.MuiBadge-colorInfo":di({color:"info",theme:e}),"&.MuiBadge-colorSuccess":di({color:"success",theme:e}),"&.MuiBadge-colorWarning":di({color:"warning",theme:e})}}}}}function tt({variant:e,color:t,theme:n}){const r=tn(n,t),{lighter:o,main:s,dark:a,contrastText:c}=r,u=`${t}Button`,A=$i(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${ze(s,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${ze(s,.9)}`},"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2}};switch(e){case"contained":return{"&:hover":{backgroundColor:a},...p};case"shadow":return{color:c,backgroundColor:s,boxShadow:A,"&:hover":{boxShadow:"none",backgroundColor:a},...p};case"outlined":return{borderColor:s,"&:hover":{color:a,backgroundColor:"transparent",borderColor:a},...p};case"dashed":return{color:s,borderColor:s,backgroundColor:o,"&:hover":{color:a,borderColor:a},...p};case"text":default:return{"&:hover":{color:a,backgroundColor:o},...p}}}function Dz(e){const t=tt({variant:"dashed",color:"primary",theme:e}),n=tt({variant:"shadow",color:"primary",theme:e}),r={"&.Mui-disabled":{backgroundColor:e.palette.grey[200]}},o={"&>*:nth-of-type(1)":{fontSize:"inherit"}};return{MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontWeight:400,"&::after":{content:'""',display:"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",borderRadius:4,opacity:0,transition:"all 0.5s"},"&:active::after":{position:"absolute",borderRadius:4,left:0,top:0,opacity:1,transition:"0s"}},contained:{...r},outlined:{...r},text:{boxShadow:"none","&:hover":{boxShadow:"none"}},endIcon:{...o},startIcon:{...o},dashed:{border:"1px dashed",...t,"&.MuiButton-dashedPrimary":tt({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":tt({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":tt({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":tt({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":tt({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":tt({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":tt({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":tt({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":tt({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":tt({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":tt({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":tt({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:tt({variant:"contained",color:"primary",theme:e}),containedSecondary:tt({variant:"contained",color:"secondary",theme:e}),containedError:tt({variant:"contained",color:"error",theme:e}),containedSuccess:tt({variant:"contained",color:"success",theme:e}),containedInfo:tt({variant:"contained",color:"info",theme:e}),containedWarning:tt({variant:"contained",color:"warning",theme:e}),outlinedPrimary:tt({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:tt({variant:"outlined",color:"secondary",theme:e}),outlinedError:tt({variant:"outlined",color:"error",theme:e}),outlinedSuccess:tt({variant:"outlined",color:"success",theme:e}),outlinedInfo:tt({variant:"outlined",color:"info",theme:e}),outlinedWarning:tt({variant:"outlined",color:"warning",theme:e}),textPrimary:tt({variant:"text",color:"primary",theme:e}),textSecondary:tt({variant:"text",color:"secondary",theme:e}),textError:tt({variant:"text",color:"error",theme:e}),textSuccess:tt({variant:"text",color:"success",theme:e}),textInfo:tt({variant:"text",color:"info",theme:e}),textWarning:tt({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Mz(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Rz(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function kz(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function hs({color:e,theme:t}){const n=tn(t,e),{lighter:r,main:o,dark:s}=n;return{"&:hover":{backgroundColor:r,"& .icon":{borderColor:o}},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function Fz(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 df(e){const t=Fz(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function Lz(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx($e.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:f.jsx($e.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...df("small")},"&.size-medium":{...df("medium")},"&.size-large":{...df("large")}},colorPrimary:hs({color:"primary",theme:e}),colorSecondary:hs({color:"secondary",theme:e}),colorSuccess:hs({color:"success",theme:e}),colorWarning:hs({color:"warning",theme:e}),colorInfo:hs({color:"info",theme:e}),colorError:hs({color:"error",theme:e})}}}}function Cs({color:e,theme:t}){const n=tn(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function Mn({color:e,theme:t}){const n=tn(t,e),{light:r,lighter:o,main:s}=n;return{color:s,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:s,"&:hover":{color:r}}}}function Nz(e){const t=Mn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Cs({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Cs({color:"secondary",theme:e}),"&.MuiChip-colorError":Cs({color:"error",theme:e}),"&.MuiChip-colorInfo":Cs({color:"info",theme:e}),"&.MuiChip-colorSuccess":Cs({color:"success",theme:e}),"&.MuiChip-colorWarning":Cs({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":Mn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":Mn({color:"secondary",theme:e}),"&.MuiChip-lightError":Mn({color:"error",theme:e}),"&.MuiChip-lightInfo":Mn({color:"info",theme:e}),"&.MuiChip-lightSuccess":Mn({color:"success",theme:e}),"&.MuiChip-lightWarning":Mn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":Mn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":Mn({color:"secondary",theme:e}),"&.MuiChip-combinedError":Mn({color:"error",theme:e}),"&.MuiChip-combinedInfo":Mn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":Mn({color:"success",theme:e}),"&.MuiChip-combinedWarning":Mn({color:"warning",theme:e})}}}}}function Vz(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:ze("#000",.7)}}}}}}function zz(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function Hz(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function Es({color:e,theme:t}){const n=tn(t,e),{main:r,dark:o,contrastText:s}=n,a=`${e}Button`,c=$i(t,a);return{color:s,backgroundColor:r,boxShadow:c,"&:hover":{boxShadow:"none",backgroundColor:o},"&:focus-visible":{outline:`2px solid ${o}`,outlineOffset:2},"&::after":{borderRadius:"50px",boxShadow:`0 0 5px 5px ${ze(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${ze(r,.9)}`}}}function Wz(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":Es({color:"primary",theme:e}),"&.MuiFab-secondary":Es({color:"secondary",theme:e}),"&.Mui-error":Es({color:"error",theme:e}),"&.MuiFab-success":Es({color:"success",theme:e}),"&.MuiFab-info":Es({color:"info",theme:e}),"&.MuiFab-warning":Es({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 Uz(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 Yz(){return{MuiInputBase:{styleOverrides:{}}}}function Gz(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 Kz(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function Jz(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function Xz(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function Zz(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function _z(){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function qz(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function gi({variant:e,theme:t}){const n=tn(t,e),{light:r}=n,o=$i(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function $z(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:{...gi({variant:"primary",theme:e}),"&.Mui-error":{...gi({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:gi({variant:"secondary",theme:e}),colorError:gi({variant:"error",theme:e}),colorWarning:gi({variant:"warning",theme:e}),colorInfo:gi({variant:"info",theme:e}),colorSuccess:gi({variant:"success",theme:e})}}}}function eH(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function Qt({variant:e,color:t,theme:n}){const r=tn(n,t),{lighter:o,light:s,dark:a,main:c,contrastText:u}=r,A={"&:focus-visible":{outline:`2px solid ${a}`,outlineOffset:2,...e==="text"&&{backgroundColor:n.palette.background.paper}}};switch(e){case"combined":case"contained":return{color:u,backgroundColor:c,"&:hover":{backgroundColor:s},...A};case"outlined":return{borderColor:c,"&:hover":{backgroundColor:o,borderColor:s},...A};case"text":default:return{color:c,"&:hover":{backgroundColor:c,color:o},...A}}}function tH(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":Qt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":Qt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":Qt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":Qt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":Qt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":Qt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":Qt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":Qt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":Qt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":Qt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":Qt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":Qt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":Qt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":Qt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":Qt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":Qt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":Qt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":Qt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":Qt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":Qt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":Qt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":Qt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":Qt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":Qt({variant:"outlined",color:"warning",theme:e})}}}}}}function nH(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Is({color:e,theme:t}){const n=tn(t,e),{lighter:r,main:o,dark:s}=n;return{"& .dot":{backgroundColor:o},"&:hover":{backgroundColor:r},"&.Mui-focusVisible":{outline:`2px solid ${s}`,outlineOffset:-4}}}function rH(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 gf(e){const t=rH(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function oH(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:f.jsx(y.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:f.jsx(y.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":{...gf("small")},"&.size-medium":{...gf("medium")},"&.size-large":{...gf("large")}},colorPrimary:Is({color:"primary",theme:e}),colorSecondary:Is({color:"secondary",theme:e}),colorSuccess:Is({color:"success",theme:e}),colorWarning:Is({color:"warning",theme:e}),colorInfo:Is({color:"info",theme:e}),colorError:Is({color:"error",theme:e})}}}}function ms({color:e,theme:t}){const n=tn(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function iH(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":ms({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":ms({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":ms({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":ms({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":ms({color:"info",theme:e}),"&.MuiSlider-thumbColorError":ms({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 sH(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 ff(e,t){const n=sH(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 aH(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},...ff(e,"medium")},sizeLarge:{...ff(e,"large")},sizeSmall:{...ff(e,"small")}}}}}function lH(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 cH(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 uH(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 AH(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function dH(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function gH(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function fH(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function pH(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function hH(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 CH(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function EH(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function IH(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function mH(e){return At.merge(xz(e),wz(e),Tz(e),Sz(e),Pz(),Oz(e),jz(e),Dz(e),Mz(),Rz(),kz(),Lz(e),Nz(e),Vz(),zz(e),Hz(),Wz(e),Uz(e),Yz(),Gz(e),Kz(),Jz(),Xz(e),Zz(e),_z(),qz(),$z(e),eH(),tH(e),nH(e),oH(e),iH(e),aH(e),lH(e),cH(e),uH(e),AH(e),dH(e),gH(),fH(),pH(),hH(e),CH(e),EH(),IH())}const ru=({themeOverrides:e,children:t})=>{const n=Wn(),{themeDirection:r,mode:o,presetColor:s,fontFamily:a}=n,c=w.useMemo(()=>yz(o,s),[o,s]),u=w.useMemo(()=>Qz(a),[a]),A=w.useMemo(()=>$V(c),[c]),p=w.useMemo(()=>ue.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:c.palette,customShadows:A,typography:u,shadows:c.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:c.spacing(2.6875),height:c.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(c):e),[r,c,u,A,e]),C=xA(p),h=ue.cloneDeep(C.components??{});return C.components=ue.merge(mH(C),h),f.jsx(y.StyledEngineProvider,{injectFirst:!0,children:f.jsxs(Fh,{theme:C,children:[f.jsx(y.CssBaseline,{}),t]})})};ru.propTypes={children:g.node,themeOverrides:g.oneOfType([g.object,g.func])};function BH({children:e,theme:t,...n}){return f.jsx(D.CoreAdminContext,{...n,children:f.jsx(ru,{themeOverrides:t,children:f.jsx(tf,{children:e})})})}function Wb(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:s,disableTelemetry:a,history:c,i18nProvider:u,layout:A,loading:p,loginPage:C,authCallbackPage:h,menu:E,notification:m,queryClient:B,requireAuth:v,store:P=D.localStorageStore(),ready:M,theme:x,title:O="React Admin"}=e;return f.jsx(BH,{authProvider:t,dataProvider:s,i18nProvider:u,store:P,history:c,queryClient:B,theme:x,children:f.jsx(D.AdminUI,{layout:A,dashboard:o,disableTelemetry:a,menu:E,catchAll:n,title:O,loading:p,loginPage:C,authCallbackPage:h,notification:m,requireAuth:v,ready:M,children:r})})}class vH{constructor(t){so(this,Sa,void 0);so(this,Pa,void 0);so(this,Bs,new Set);const{apiUrl:n}=t??{};if(!ue.isString(n)||ue.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");zo(this,Pa,n),zo(this,Sa,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handle(t){var c;const{message:n,filename:r,lineno:o,colno:s}=t,a=`${n}${r}${o}${s}`;Qn(this,Bs).has(a)||(Qn(this,Bs).add(a),fetch(`${Qn(this,Pa)}/ui/error-log`,{method:"PUT",headers:Qn(this,Sa),body:JSON.stringify({filename:t.filename,message:t.message,line:t.lineno,column:t.colno,stack:(c=t.error)==null?void 0:c.stack})}).catch(()=>{console.log("Unable to send error to server"),Qn(this,Bs).delete(a)}))}}Sa=new WeakMap,Pa=new WeakMap,Bs=new WeakMap;class Ub{constructor({catch:t,display:n,log:r,error:o}){$a(this,"catch");$a(this,"display");$a(this,"log");$a(this,"error");this.catch=t,this.display=n,this.log=r,this.error=o}isCatched(){return this.catch}logError(){return this.log}displayError(){return this.display}}const bH=({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=s=>new Ub({catch:s!=null,display:!1,log:s!=null,error:s}),...o})=>{const s=k.useMemo(()=>o.errorHandler?o.errorHandler:new vH({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=k.useCallback(function(u,...A){var C;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(C=u==null?void 0:u.toString())==null?void 0:C.replace(/%s/g,()=>A.shift()));if(p.isCatched())return!1;p.logError()&&(u instanceof ErrorEvent?s.handle(u):s.handle(new ErrorEvent("window.onerror",{error:u,message:u.toString()}))),p.displayError()&&a.apply(console,arguments)},[t,n,r,e,s]);return k.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c]),!0};class yH{constructor(t){so(this,Oa,void 0);so(this,ja,void 0);so(this,pi,[]);const{apiUrl:n}=t??{};if(!ue.isString(n)||ue.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");zo(this,ja,n),zo(this,Oa,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!ue.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!ue.isString(n)||ue.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!ue.isString(r)||ue.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!ue.some(Qn(this,pi),o=>ue.isEqual(o,{code:n,lang:r}))){Qn(this,pi).push({code:n,lang:r}),fetch(`${Qn(this,ja)}/i18n/message`,{method:"put",headers:Qn(this,Oa),body:JSON.stringify({code:n,lang:r,text:n})}).then(o=>o.json()).then(()=>{console.log(`[MissingMessageHandler] handleMessage: created message for lang ${r} and code ${n}`)}).catch(o=>{console.error(o),zo(this,pi,ue.reject(Qn(this,pi),s=>ue.isEqual(s,{code:n,lang:r})))});return}}}Oa=new WeakMap,ja=new WeakMap,pi=new WeakMap;function Yb(e){const{apiUrl:t,defaultLocale:n,allowMissing:r=!1,createMissing:o=!1}=e,s=[{locale:n,name:n}],a=new Headers({Accept:"application/json","Content-Type":"application/json"}),c=new yH({apiUrl:t}),u=()=>fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(C=>C.json()).catch(()=>Promise.resolve(s)),A=()=>fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(C=>C.json()).then(C=>C.reduce((h,E)=>({...h,[E.lang]:{...h[E.lang]||{},[E.code]:E.text}}),{})),p=(C,h,E)=>(r||console.error(`Warning: Missing translation for key: "${C}"`),o&&(ue.isString(C)?C.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${C}`):c.handleMessage({code:C,lang:E}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),C);return Promise.all([u(),A()]).then(C=>{const[h,E]=C;function m(B){return ue.get(E,B,{})}return Ix(m,n,h,{allowMissing:r||o,onMissingKey:p})})}window.React=w;const QH=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,o]=w.useState({loading:!0,languages:null});return w.useEffect(()=>{let s=new Headers;s.append("Accept","application/json"),s.append("Content-Type","application/json"),fetch(`${e}${t}`,{headers:s}).then(a=>a.json()).then(a=>o({loading:!1,...n(a)}))},[e,t,n]),r};function Gb(e){const[t,n]=w.useState(),r=mC(e);return w.useEffect(()=>{Yb(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r]),t}const xH=new Pi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function wH({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:s,logoIcon:a,loginPage:c=f.jsx(wb,{version:"0.0.0",name:"Applica",redirectTo:"/",background:f.jsx(nl,{})}),menu:u,name:A,copy:p,version:C="0.0.0",dataProvider:h,authProvider:E,errorHandler:m,error:B,enableNotification:v=!1,enableRegistration:P=!1,enablePasswordRecover:M=!1,enableThemeToggler:x=!1,queryClient:O=xH,background:S,notificationAPI:L="entities/notification",...z}){bH({apiUrl:n,errorHandler:m,catcherFn:J=>{const le=J==null?void 0:J.toString(),Z=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(H=>le==null?void 0:le.includes(H));return new Ub({catch:Z,display:!Z,log:!Z,error:le})}});const q=w.useMemo(()=>w.isValidElement(c)?w.cloneElement(c,{name:A,copy:p,logo:s,version:C,background:S,enableRegistration:P,enablePasswordRecover:M}):c,[c,A,C,p,S,s,P,M]),ee=w.useMemo(()=>J=>{const le=A?f.jsx(ef,{title:A}):s,se=A?f.jsx(nf,{title:A}):a;return f.jsx(ab,{...J,name:A,copy:p,enableThemeToggler:x,version:C,logoMain:le,logoIcon:se,notification:L,enableNotification:v,error:B})},[s,a,A,C,B,L,v]),K=Gb({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o});return K===void 0?f.jsx(f.Fragment,{}):K.error?f.jsx(wl,{initialConfig:t,children:f.jsx(ru,{themeOverrides:e,children:f.jsx(Pb,{})})}):f.jsx(OA,{children:f.jsx(Uh,{menu:u,children:f.jsx(wl,{initialConfig:t,children:f.jsx(Wb,{theme:e,layout:ee,notification:hb,queryClient:O,dataProvider:h,authProvider:E,i18nProvider:K,loginPage:q,...z})})})})}Object.defineProperty(j,"ArrayInputContext",{enumerable:!0,get:()=>D.ArrayInputContext}),Object.defineProperty(j,"BooleanField",{enumerable:!0,get:()=>D.BooleanField}),Object.defineProperty(j,"BulkDeleteWithConfirmButton",{enumerable:!0,get:()=>D.BulkDeleteWithConfirmButton}),Object.defineProperty(j,"Button",{enumerable:!0,get:()=>D.Button}),Object.defineProperty(j,"ChipField",{enumerable:!0,get:()=>D.ChipField}),Object.defineProperty(j,"Confirm",{enumerable:!0,get:()=>D.Confirm}),Object.defineProperty(j,"CreateButton",{enumerable:!0,get:()=>D.CreateButton}),Object.defineProperty(j,"CreateContextProvider",{enumerable:!0,get:()=>D.CreateContextProvider}),Object.defineProperty(j,"CustomRoutes",{enumerable:!0,get:()=>D.CustomRoutes}),Object.defineProperty(j,"DeleteWithConfirmButton",{enumerable:!0,get:()=>D.DeleteWithConfirmButton}),Object.defineProperty(j,"DeleteWithUndoButton",{enumerable:!0,get:()=>D.DeleteWithUndoButton}),Object.defineProperty(j,"EditButton",{enumerable:!0,get:()=>D.EditButton}),Object.defineProperty(j,"EditContextProvider",{enumerable:!0,get:()=>D.EditContextProvider}),Object.defineProperty(j,"FieldTitle",{enumerable:!0,get:()=>D.FieldTitle}),Object.defineProperty(j,"Form",{enumerable:!0,get:()=>D.Form}),Object.defineProperty(j,"FormDataConsumer",{enumerable:!0,get:()=>D.FormDataConsumer}),Object.defineProperty(j,"HttpError",{enumerable:!0,get:()=>D.HttpError}),Object.defineProperty(j,"I18nContextProvider",{enumerable:!0,get:()=>D.I18nContextProvider}),Object.defineProperty(j,"ListToolbar",{enumerable:!0,get:()=>D.ListToolbar}),Object.defineProperty(j,"LoadingIndicator",{enumerable:!0,get:()=>D.LoadingIndicator}),Object.defineProperty(j,"Pagination",{enumerable:!0,get:()=>D.Pagination}),Object.defineProperty(j,"RaSimpleFormIterator",{enumerable:!0,get:()=>D.SimpleFormIterator}),Object.defineProperty(j,"RecordContextProvider",{enumerable:!0,get:()=>D.RecordContextProvider}),Object.defineProperty(j,"ReferenceArrayField",{enumerable:!0,get:()=>D.ReferenceArrayField}),Object.defineProperty(j,"ReferenceField",{enumerable:!0,get:()=>D.ReferenceField}),Object.defineProperty(j,"Resource",{enumerable:!0,get:()=>D.Resource}),Object.defineProperty(j,"ResourceContextProvider",{enumerable:!0,get:()=>D.ResourceContextProvider}),Object.defineProperty(j,"SaveButton",{enumerable:!0,get:()=>D.SaveButton}),Object.defineProperty(j,"SimpleFormIteratorContext",{enumerable:!0,get:()=>D.SimpleFormIteratorContext}),Object.defineProperty(j,"SimpleShowLayout",{enumerable:!0,get:()=>D.SimpleShowLayout}),Object.defineProperty(j,"SingleFieldList",{enumerable:!0,get:()=>D.SingleFieldList}),Object.defineProperty(j,"TabbedFormTabs",{enumerable:!0,get:()=>D.TabbedFormTabs}),Object.defineProperty(j,"TopToolbar",{enumerable:!0,get:()=>D.TopToolbar}),Object.defineProperty(j,"UrlField",{enumerable:!0,get:()=>D.UrlField}),Object.defineProperty(j,"choices",{enumerable:!0,get:()=>D.choices}),Object.defineProperty(j,"email",{enumerable:!0,get:()=>D.email}),Object.defineProperty(j,"maxLength",{enumerable:!0,get:()=>D.maxLength}),Object.defineProperty(j,"maxValue",{enumerable:!0,get:()=>D.maxValue}),Object.defineProperty(j,"minLength",{enumerable:!0,get:()=>D.minLength}),Object.defineProperty(j,"minValue",{enumerable:!0,get:()=>D.minValue}),Object.defineProperty(j,"number",{enumerable:!0,get:()=>D.number}),Object.defineProperty(j,"regex",{enumerable:!0,get:()=>D.regex}),Object.defineProperty(j,"required",{enumerable:!0,get:()=>D.required}),Object.defineProperty(j,"useArrayInput",{enumerable:!0,get:()=>D.useArrayInput}),Object.defineProperty(j,"useAuthProvider",{enumerable:!0,get:()=>D.useAuthProvider}),Object.defineProperty(j,"useChoices",{enumerable:!0,get:()=>D.useChoices}),Object.defineProperty(j,"useChoicesContext",{enumerable:!0,get:()=>D.useChoicesContext}),Object.defineProperty(j,"useCreateController",{enumerable:!0,get:()=>D.useCreateController}),Object.defineProperty(j,"useDataProvider",{enumerable:!0,get:()=>D.useDataProvider}),Object.defineProperty(j,"useEditContext",{enumerable:!0,get:()=>D.useEditContext}),Object.defineProperty(j,"useGetIdentity",{enumerable:!0,get:()=>D.useGetIdentity}),Object.defineProperty(j,"useGetList",{enumerable:!0,get:()=>D.useGetList}),Object.defineProperty(j,"useGetMany",{enumerable:!0,get:()=>D.useGetMany}),Object.defineProperty(j,"useGetManyReference",{enumerable:!0,get:()=>D.useGetManyReference}),Object.defineProperty(j,"useGetOne",{enumerable:!0,get:()=>D.useGetOne}),Object.defineProperty(j,"useInput",{enumerable:!0,get:()=>D.useInput}),Object.defineProperty(j,"useListContext",{enumerable:!0,get:()=>D.useListContext}),Object.defineProperty(j,"useLocaleState",{enumerable:!0,get:()=>D.useLocaleState}),Object.defineProperty(j,"useNotify",{enumerable:!0,get:()=>D.useNotify}),Object.defineProperty(j,"usePermissions",{enumerable:!0,get:()=>D.usePermissions}),Object.defineProperty(j,"useRecordContext",{enumerable:!0,get:()=>D.useRecordContext}),Object.defineProperty(j,"useRefresh",{enumerable:!0,get:()=>D.useRefresh}),Object.defineProperty(j,"useResourceContext",{enumerable:!0,get:()=>D.useResourceContext}),Object.defineProperty(j,"useResourceDefinition",{enumerable:!0,get:()=>D.useResourceDefinition}),Object.defineProperty(j,"useResourceDefinitions",{enumerable:!0,get:()=>D.useResourceDefinitions}),Object.defineProperty(j,"useShowContext",{enumerable:!0,get:()=>D.useShowContext}),Object.defineProperty(j,"useShowController",{enumerable:!0,get:()=>D.useShowController}),Object.defineProperty(j,"useSimpleFormIterator",{enumerable:!0,get:()=>D.useSimpleFormIterator}),Object.defineProperty(j,"useSimpleFormIteratorItem",{enumerable:!0,get:()=>D.useSimpleFormIteratorItem}),Object.defineProperty(j,"useTranslate",{enumerable:!0,get:()=>D.useTranslate}),Object.defineProperty(j,"useTranslateLabel",{enumerable:!0,get:()=>D.useTranslateLabel}),Object.defineProperty(j,"useUnselect",{enumerable:!0,get:()=>D.useUnselect}),Object.defineProperty(j,"useUnselectAll",{enumerable:!0,get:()=>D.useUnselectAll}),Object.defineProperty(j,"useUpdateMany",{enumerable:!0,get:()=>D.useUpdateMany}),Object.defineProperty(j,"withLifecycleCallbacks",{enumerable:!0,get:()=>D.withLifecycleCallbacks}),j.ActionsField=$D,j.ActionsMenu=co,j.ActivatePage=xb,j.Admin=Wb,j.AnimateButton=XI,j.AppBarStyled=vC,j.AppConfigContext=PA,j.AppConfigProvider=OA,j.ApplicaAdmin=wH,j.ArrayInput=qD,j.AttachmentField=Mm,j.AttachmentInput=bM,j.AuthBackground=nl,j.AutocompleteArrayInput=QM,j.AutocompleteInput=wM,j.Avatar=sc,j.BooleanInput=SM,j.Breadcrumbs=fm,j.BulkActionsToolbar=mb,j.BulkActionsToolbarClasses=_n,j.BulkFloatingActionsToolbar=wV,j.CardForm=Pm,j.ChangePasswordForm=ig,j.CircularWithLabel=xm,j.CircularWithPath=wm,j.CoverField=km,j.Create=i3,j.CreateInDialogButton=bV,j.Datagrid=DV,j.DateAgoField=Lm,j.DateField=lM,j.DateInput=OM,j.DateTimeInput=DM,j.Dot=cc,j.Drawer=tb,j.DrawerHeader=FB,j.DrawerHeaderStyled=kB,j.DrawerToggle=A0,j.Edit=s3,j.EditInDialogButton=QV,j.EmailField=uM,j.Empty=RV,j.EmptyClasses=ui,j.FileField=Nm,j.FileInput=RM,j.Footer=dg,j.FormHeader=c3,j.FunctionField=dM,j.GenericErrorPage=Pb,j.Header=d0,j.HeaderButton=$T,j.HeaderIconButton=GD,j.HeaderNotification=g0,j.HeaderProfile=f0,j.HeaderSpacer=h0,j.HeaderToggleButton=ts,j.HorizontalBar=nb,j.IconButton=es,j.ImageField=Rm,j.ImageInput=kM,j.ImpersonateUserButton=hV,j.LabeledArrayInput=jm,j.LabeledInput=cn,j.Layout=ab,j.LayoutContent=TB,j.LayoutProvider=l0,j.LayoutWrapper=SB,j.LinearWithIcon=Tm,j.LinearWithLabel=Sm,j.List=GV,j.ListItem=qV,j.Loadable=eV,j.Loader=pb,j.LoadingButton=og,j.LocalStorage=EC,j.LocalizedTextField=fM,j.LocalizedTextInput=NM,j.LoginPage=wb,j.Logo=Vg,j.MainCard=Yn,j.MainIcon=ef,j.MenuConfigContext=DA,j.MenuConfigProvider=Uh,j.MenuPopover=yl,j.NavGroup=_g,j.NavMenu=rb,j.Navigation=ib,j.Notification=hb,j.NotificationList=ZV,j.NumberInput=zM,j.OnboardingModes=ya,j.OnboardingProvider=uV,j.OnboardingTip=pV,j.RawTableFormIterator=s0,j.ReadonlyField=EM,j.RecordInput=HM,j.RecoverPage=Tb,j.ReferenceArrayInput=WM,j.ReferenceInput=UM,j.ReferenceManyField=zm,j.ReferenceManyInput=YM,j.RegisterPage=Sb,j.ResponsiveSection=p0,j.ScrollTop=tf,j.ScrollX=nV,j.SearchInput=KM,j.SelectArrayInput=XM,j.SelectInput=_M,j.Show=A3,j.SimpleBar=Zg,j.SimpleForm=Om,j.SimpleFormIterator=d3,j.SimpleList=_V,j.SizeField=mM,j.SmallIcon=nf,j.SmartTextInput=qM,j.TabbedForm=sg,j.TableFormIterator=H2,j.TableFormIteratorContext=MA,j.TableFormIteratorItem=Wm,j.TableFormIteratorItemContext=RA,j.TextField=Vm,j.TextInput=dr,j.ThemeConfigContext=jA,j.ThemeConfigProvider=wl,j.ThemeProvider=ru,j.ThemeToggler=sb,j.TimeInput=n3,j.Toolbar=oi,j.Tooltip=dc,j.Transitions=Bo,j.createI18nProvider=Yb,j.getLocalizedValue=NA,j.localizedValueHasAllLocales=LA,j.parseTime=qh,j.useAppConfig=Uo,j.useBreadcrumbs=Xh,j.useGetLocalizedValue=XT,j.useI18nLanguages=QH,j.useI18nProvider=Gb,j.useLayoutContext=Ag,j.useLayoutDispatch=Y2,j.useLayoutDrawerState=ii,j.useLayoutLogoState=u0,j.useLayoutMediaState=Sn,j.useLayoutNotificationsState=Bc,j.useLayoutState=is,j.useLayoutThemeState=G2,j.useLocalStorage=Rl,j.useLocalizedValue=JT,j.useMemoizedObject=mC,j.useMenu=FA,j.useMenuConfig=Yo,j.usePopoverState=kl,j.useRefDimensions=_T,j.useResourceDefaultValues=o3,j.useResourceTitle=_A,j.useRestartOnboarding=gV,j.useSx=Ar,j.useTableFormIterator=BC,j.useTableFormIteratorItem=qT,j.useThemeConfig=Wn,j.uuid=lT,j.withLayoutProvider=c0,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
285
285
|
//# sourceMappingURL=react-admin.umd.js.map
|