@applica-software-guru/react-admin 1.4.188 → 1.4.189
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/index.d.ts +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.es.js +63 -62
- package/dist/react-admin.umd.js +1 -1
- package/package.json +1 -1
- package/src/index.jsx +1 -0
package/dist/react-admin.umd.js
CHANGED
|
@@ -265,5 +265,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
265
265
|
`),XV)),nH=Ae("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Oe(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:ff(t,e.color),transition:`transform .${gf}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Gt.css(_y||(_y=Cs`
|
|
266
266
|
width: auto;
|
|
267
267
|
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
268
|
-
`),ZV)),qy=R.forwardRef(function(t,n){const r=Lt({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:c,variant:u="indeterminate"}=r,A=Ve(r,JV),p=W({},r,{color:s,variant:u}),h=qV(p),C=Bt(),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;C.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;C.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 g.jsxs($V,W({className:Ue(h.root,o),ownerState:p,role:"progressbar"},E,{ref:n},A,{children:[u==="buffer"?g.jsx(eH,{className:h.dashed,ownerState:p}):null,g.jsx(tH,{className:h.bar1,ownerState:p,style:m.bar1}),u==="determinate"?null:g.jsx(nH,{className:h.bar2,ownerState:p,style:m.bar2})]}))});process.env.NODE_ENV!=="production"&&(qy.propTypes={classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","primary","secondary"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.number,valueBuffer:f.number,variant:f.oneOf(["buffer","determinate","indeterminate","query"])});const rH=qy,oH=Ae("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),$y=()=>g.jsx(oH,{children:g.jsx(rH,{color:"primary"})}),iH=e=>t=>g.jsx(Q.Suspense,{fallback:g.jsx($y,{}),children:g.jsx(e,{...t})}),pf=({title:e})=>g.jsxs(b.Stack,{direction:"row",children:[g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]}),sH=Ae(D.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}}));function eb(e){return g.jsx(sH,{...e})}const hf=({children:e})=>{const t=pt.useLocation(),{pathname:n}=t;return Q.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};hf.propTypes={children:f.node};const aH=Ae("div")({width:"100%",overflowX:"auto",display:"block"}),Cf=({title:e})=>g.jsx(b.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});Cf.propTypes={title:f.string.isRequired};var Sa=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(Sa||{});const lH=Nr().required(),cH=Nr().oneOf(Object.values(Sa));function uH(e){var S;const t=Oi.useQueryClient(),[n,r]=Q.useState(!1),[o,s]=Q.useState(()=>()=>Promise.resolve()),a=ue.useGetIdentity(),c=(S=a==null?void 0:a.data)==null?void 0:S.email,u=ue.useDataProvider(),A=Q.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:h,isError:C}=Oi.useQuery({queryKey:["GET","onboarding",c],queryFn:A,staleTime:24*60*60*1e3,retry:c!==void 0}),[E,m]=Q.useState(()=>()=>Promise.resolve()),B=Oi.useMutation({mutationFn:E}),v=B.mutateAsync;return Q.useEffect(()=>{function M(){const x=ne.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]),Q.useEffect(()=>{r(ne.isNil((p??{})[e]))},[p,e,r]),Q.useEffect(()=>{s(()=>()=>v())},[v]),{loading:h,error:C,onboardingRequired:n,acknowledgeOnboarding:o}}function AH(e){const[t,n]=Ll("onboarding",{}),[r,o]=Q.useState(!1),[s,a]=Q.useState(()=>()=>Promise.resolve());return Q.useEffect(()=>{o(ne.isNil((t??{})[e]))},[t,e,o]),Q.useEffect(()=>{a(()=>()=>(n(c=>ne.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:s}}function dH(){return{onboardingRequired:!1,acknowledgeOnboarding:Q.useRef(()=>Promise.resolve()).current}}function gH(e,t){id({mode:cH,topic:lH}).validateSync({mode:e,topic:t});const n=uH(t),r=AH(t),o=dH();switch(e){case Sa.USER:return n.loading?o:n.error?r:ne.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case Sa.BROWSER:return r;default:return o}}var Pa=(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))(Pa||{});function fH(e,t){var o;const n=ne.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:s}=t;return ne.extend(n,{show:s})}case"REGISTER_TIP":{const{payload:s}=t,{id:a}=s,c=ne.chain(n.tips).clone().reject(p=>p.id===a).value(),u=ne.find(n.tips,{id:a}),A=ne.chain(u??{}).clone().extend(s).value();return c.push(A),ne.extend(n,{tips:ne.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:s}=t,a=ne.isString(s)?s:s.id,c=ne.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return ne.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:s}=t,a=ne.isString(s)?s:s.id,c=ne.chain(n.tips).reject(C=>C.id===a).value(),u=ne.find(n.tips,{id:a});if(ne.isNil(u))return n;const A=ne.chain(u).clone().extend({dismissed:!0}).value();c.push(A);const p=((o=ne.chain(c).reject(C=>C.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(A==null?void 0:A.completeOnboarding)&&ne.chain(c).reject(C=>C.step<p).reject(C=>C.dismissed??!1).isEmpty().value()&&e.onComplete(),ne.extend(n,{tips:ne.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:s}=t;return ne.extend(n,{onComplete:s})}case"RESTART":{const s=ne.chain(n.tips).clone().map(a=>ne.omit(a,"dismissed")).value();return ne.extend(n,{tips:s,currentStep:0})}default:return n}}const tb=Q.createContext(void 0);function pH(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=gH(t,n),[s,a]=Q.useReducer(fH,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=Q.useMemo(()=>({state:s,dispatch:a}),[s,a]);return Q.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),Q.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),g.jsx(tb.Provider,{value:c,children:e.children})}function nb(){const e=Q.useContext(tb);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function hH(){return nb().state}function rb(){return nb().dispatch}function CH(e){id({id:Nr().required(),step:vC().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:s,currentStep:a}=hH(),c=ne.find(s,{id:t}),{dismissed:u}=c??{},A=rb(),p=Q.useCallback(()=>{A({type:Pa.DISMISS_TIP,payload:t})},[A,t]);return Q.useEffect(()=>{(ne.isNil(c)||n!==(c==null?void 0:c.step))&&A({type:Pa.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c]),Q.useEffect(()=>()=>{A({type:Pa.UNREGISTER_TIP,payload:t})},[t,A]),{tip:ne.chain(c??e).clone().extend({open:o&&!ne.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function EH(){const e=rb();return Q.useCallback(()=>{e({type:Pa.RESTART})},[e])}function IH(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:s,dismiss:a}=CH({id:t,step:n,completeOnboarding:o}),{open:c}=s,u=ne.omit(e,["id","step","title","completeOnboarding"]);return g.jsx(fc,{...u,arrow:!0,open:c,title:g.jsxs(b.Stack,{gap:1,children:[g.jsx(b.Typography,{children:r}),g.jsx(b.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const mH=b.styled(IH)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${b.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${b.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${b.tooltipClasses.arrow}`]:{color:r.main}}});function BH({label:e="ra.auth.sign_in",...t}){const n=D.useRecordContext(),[r,o]=Q.useState(!1),s=D.useAuthProvider(),a=Q.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 g.jsx(D.Button,{disabled:r||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:g.jsx(zn.VpnKey,{})})}const Ef=(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)]},vH=(e,t)=>e&&e.data?{data:Ef(e.data,t),total:e.total+1}:e,yH=(e,t)=>e&&e.length>0?Ef(e,t):e,bH=(e,t)=>e&&e.data?{...e,data:Ef(e.data,t),total:e.total+1}:e,QH=({onClose:e,record:t,children:n,redirect:r=!1,onSubmit:o,onSuccess:s,onError:a})=>{const c=Oi.useQueryClient(),u=D.useResourceContext(),A=D.useRedirect(),p=D.useNotify(),h=Q.useCallback(B=>{const S=Date.now();c.setQueryData([u,"getOne",{id:B.id}],B),c.setQueriesData([u,"getList"],M=>bH(M,B),{updatedAt:S}),c.setQueriesData([u,"getMany"],M=>yH(M,B),{updatedAt:S}),c.setQueriesData([u,"getManyReference"],M=>vH(M,B),{updatedAt:S}),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:C,...E}=D.useCreateController({mutationOptions:{onSuccess:h,onError:a}}),m=Q.useCallback(B=>{o?o(B,e):C&&C(B)},[o,C,e]);return g.jsx(D.CreateContextProvider,{value:{record:t,save:m,saving:E==null?void 0:E.saving,redirect:r},children:Q.cloneElement(n,{...n.props,toolbar:g.jsxs(ii,{children:[g.jsx(D.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:E==null?void 0:E.saving}),g.jsx(D.SaveButton,{type:"button",disabled:E==null?void 0:E.saving})]})})})},xH={true:{_scrollToTop:!0},false:{}},wH=Ae(b.Fab,{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 TH({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,...h}){const[C,E]=Q.useState(!1),m=D.useTranslate(),B=D.useResourceContext(),{openDialog:v,closeDialog:S}=Yo(),M=Q.useCallback(()=>v(B,()=>E(!0)),[v,B]),x=Q.useCallback(()=>S(B,()=>E(!1)),[S,B]),O=b.useMediaQuery(P=>P.breakpoints.down("md"));return g.jsxs(g.Fragment,{children:[O?g.jsx(wH,{...h,state:xH[String(s)],color:"primary",className:Ue(D.CreateButtonClasses.floating,a),"aria-label":n&&m(n),onClick:M,children:g.jsx(_e.PlusCircleOutlined,{})}):g.jsx(D.Button,{...h,sx:c,label:n,onClick:M,children:g.jsx(_e.PlusCircleOutlined,{})}),g.jsx(b.Dialog,{open:C,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:x,fullWidth:e,maxWidth:t,children:g.jsx(QH,{...h,redirect:o,record:r,onClose:x,onSubmit:u,onSuccess:A,onError:p})})]})}const SH=({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=Q.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 g.jsx(D.EditContextProvider,{value:{record:c,isLoading:a,save:A,saving:p},children:Q.cloneElement(t,{toolbar:g.jsxs(ii,{children:[g.jsx(D.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),g.jsx(D.SaveButton,{type:"button"})]})})})};function PH({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.edit",...r}){const[o,s]=Q.useState(!1),{openDialog:a,closeDialog:c}=Yo(),u=D.useResourceContext(),A=Q.useCallback(()=>a(u,()=>s(!0)),[a,u]),p=Q.useCallback(()=>c(u,()=>s(!1)),[c,u]);return g.jsxs(g.Fragment,{children:[g.jsx(D.Button,{label:n,onClick:A,children:g.jsx(zn.Edit,{})}),g.jsx(b.Dialog,{open:o,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:p,fullWidth:e,maxWidth:t,children:g.jsx(SH,{onClose:p,children:r==null?void 0:r.children})})]})}function ob(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:s,resource:a,selectedIds:c=[],onUnselectItems:u}=ue.useListContext(e),A=ue.useTranslate(),p=Q.useCallback(()=>{u()},[u]);return g.jsx(OH,{className:r,children:g.jsxs(R6,{"data-test":"bulk-actions-toolbar",className:Ue(er.toolbar,{[er.collapsed]:c.length===0}),...ue.sanitizeListRestProps(o),children:[g.jsxs("div",{className:er.title,children:[g.jsx(ug,{className:er.icon,"aria-label":A("ra.action.unselect"),title:A("ra.action.unselect"),onClick:p,size:"small",children:g.jsx(Yc,{fontSize:"small"})}),g.jsx(gm,{color:"inherit",variant:"subtitle1",children:A(t,{_:t,smart_count:c.length})})]}),g.jsx(D.TopToolbar,{className:er.topToolbar,children:Q.Children.map(n,h=>Q.isValidElement(h)?Q.cloneElement(h,{filterValues:s,resource:a,selectedIds:c}):null)})]})})}const ui="RaBulkActionsToolbar",er={toolbar:`${ui}-toolbar`,topToolbar:`${ui}-topToolbar`,buttons:`${ui}-buttons`,collapsed:`${ui}-collapsed`,title:`${ui}-title`,icon:`${ui}-icon`},OH=Ae("div",{name:ui,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${er.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"?Li(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},[`& .${er.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${er.buttons}`]:{},[`& .${er.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${er.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${er.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),If={p:0,m:0},ib={p:2,m:0,borderRadius:0,width:"100%"};function jH(e){const{children:t}=e,[n,r]=R.useState(null),o=m=>{r(m.currentTarget)},s=()=>{r(null)},a=b.useMediaQuery(m=>m.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:A=[],onUnselectItems:p}=D.useListContext(e),h=!!n&&A!==void 0&&A.length>0,C=h?"simple-popover":void 0,E=R.useCallback(()=>{p(),r(null)},[p,r]);return g.jsx(b.Fade,{in:A!==void 0&&A.length>0,children:g.jsxs(b.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[g.jsx(b.Fab,{color:"primary","aria-label":"manage",onClick:o,children:A==null?void 0:A.length}),g.jsx(b.Popover,{id:C,open:h,anchorEl:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:g.jsxs(b.List,{sx:If,children:[g.jsx(b.ListItem,{sx:If,children:g.jsx(D.Button,{onClick:E,sx:ib,label:"ra.action.unselect",startIcon:g.jsx(Yc,{}),children:g.jsx(Yc,{})})}),R.Children.map(t,m=>{var B;return g.jsx(b.ListItem,{sx:If,children:R.isValidElement(m)?R.cloneElement(m,{filterValues:c,resource:u,selectedIds:A,sx:ib,...(B=m.props)!=null&&B.popover?{closePopover:s}:{}}):null})})]})})]})})}const sb=Q.createContext({});sb.displayName="DatagridContext";const DH=({children:e,value:t})=>g.jsx(sb.Provider,{value:t,children:e}),ab=g.jsx(D.BulkDeleteButton,{}),lb=R.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?D.PureDatagridBody:D.DatagridBody,header:o=D.DatagridHeader,children:s,className:a,empty:c=RH,expand:u,bulkActionsToolbar:A=!1,bulkActionButtons:p=ab,hover:h,isRowSelectable:C,isRowExpandable:E,resource:m,rowClick:B,rowSx:v,rowStyle:S,size:M="small",sx:x,expandSingle:O=!1,...P}=e,{sort:F,data:L,isLoading:K,onSelect:J,onToggleItem:ee,selectedIds:G,setSort:se,total:ae}=ue.useListContext(e),_=!!p,q=Q.useMemo(()=>({isRowExpandable:E,expandSingle:O}),[E,O]),z=Q.useRef(null);Q.useEffect(()=>{(!G||G.length===0)&&(z.current=null)},[JSON.stringify(G)]);const Z=Q.useCallback((N,$)=>{const H=L.map(ce=>ce.id),X=H.indexOf(z.current);if(z.current=$.target.checked?N:null,$.shiftKey&&X!==-1){const ce=H.indexOf(N),he=H.slice(Math.min(X,ce),Math.max(X,ce)+1),ge=$.target.checked?nN(G,he):CN(G,he);J(C?ge.filter(fe=>C(L.find(Ce=>Ce.id===fe))):ge)}else ee(N)},[L,C,J,ee,G]);return K===!0?g.jsx(D.DatagridLoading,{className:a,expand:u,hasBulkActions:_,nbChildren:R.Children.count(s),size:M}):L==null||L.length===0||ae===0?c||null:g.jsx(DH,{value:q,children:g.jsxs(D.DatagridRoot,{sx:x,className:Ue(D.DatagridClasses.root,a),children:[A!=null&&Q.isValidElement(A)?Q.cloneElement(A,{selectedIds:G,total:ae}):p!==!1?g.jsx(ob,{children:Q.isValidElement(p)?p:ab}):null,g.jsx("div",{className:D.DatagridClasses.tableWrapper,children:g.jsxs(b.Table,{ref:t,className:D.DatagridClasses.table,size:M,...kH(P),children:[cb(o,{children:s,sort:F,data:L,hasExpand:!!u,hasBulkActions:_,isRowSelectable:C,onSelect:J,resource:m,selectedIds:G,setSort:se},s),cb(r,{expand:u,rowClick:B,data:L,hasBulkActions:_,hover:h,onToggleItem:Z,resource:m,rowSx:v,rowStyle:S,selectedIds:G,isRowSelectable:C},s)]})})]})})}),cb=(e,t,n)=>Q.isValidElement(e)?Q.cloneElement(e,t,n):Q.createElement(e,t,n),MH=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],kH=e=>Object.keys(ue.sanitizeListRestProps(e)).filter(t=>!MH.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{});lb.displayName="Datagrid";const RH=g.jsx(D.ListNoResults,{}),FH=Ae(lb,{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 LH(e){return g.jsx(FH,{...e})}const NH=Ae("div")(({theme:e})=>({padding:e.spacing(2)}));function VH({actions:e,className:t,...n}){const{hasCreate:r}=ue.useResourceDefinition(n),o=ue.useResourceContext(n),s=ue.useTranslate(),a=ue.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 g.jsxs(HH,{className:t,children:[g.jsxs("div",{className:Ai.message,children:[g.jsx(zn.Inbox,{className:Ai.icon}),g.jsx(b.Typography,{variant:"h4",paragraph:!0,children:s(`resources.${o}.empty`,{_:u})}),r&&g.jsx(b.Typography,{variant:"body1",children:s(`resources.${o}.invite`,{_:A})})]}),g.jsx(NH,{className:Ai.toolbar,children:e})]})}const nu="ApplicaEmpty",Ai={message:`${nu}-message`,icon:`${nu}-icon`,toolbar:`${nu}-toolbar`},HH=Ae("span",{name:nu,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${Ai.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${Ai.icon}`]:{width:"9em",height:"9em"},[`& .${Ai.toolbar}`]:{textAlign:"center",marginTop:"2em"}})),zH=g.jsx(D.ListActions,{}),WH=g.jsx(D.Pagination,{}),UH=g.jsx(D.Empty,{}),YH=QN,GH=e=>{const{actions:t=zH,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:s,hasCreate:a,pagination:c=WH,children:u,className:A,component:p=YH,title:h,empty:C=UH,...E}=e,{defaultTitle:m,data:B,error:v,isLoading:S,filterValues:M,resource:x}=ue.useListContext(e);if(!u||!B&&S&&s)return null;const O=()=>g.jsxs("div",{className:To.main,children:[(r||t)&&g.jsx(D.ListToolbar,{className:To.actions,filters:r,actions:t,hasCreate:a}),!v&&g.jsx(p,{className:To.content,children:o&&u&&R.isValidElement(u)?Q.cloneElement(u,{bulkActionButtons:o}):u}),v?g.jsx($g,{error:v,resetErrorBoundary:null}):c!==!1&&c]}),P=()=>C!==!1&&Q.cloneElement(C,{className:To.noResults,hasCreate:a}),F=!S&&(B==null?void 0:B.length)===0&&!Object.keys(M).length&&C!==!1;return g.jsxs(KH,{className:Ue("list-page",A),...E,children:[g.jsx(D.Title,{title:h,defaultTitle:m,preferenceKey:`${x}.list.title`}),F?P():O(),n]})},Oa="RaList",To={main:`${Oa}-main`,content:`${Oa}-content`,actions:`${Oa}-actions`,noResults:`${Oa}-noResults`},KH=Ae("div",{name:Oa,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",[`& .${To.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${To.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${To.actions}`]:{},[`& .${To.noResults}`]:{}})),JH=({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=XH,filterDefaultValues:s,perPage:a=10,queryOptions:c,resource:u,sort:A,storeKey:p,...h})=>g.jsx(ue.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:s,perPage:a,queryOptions:c,resource:u,sort:A,storeKey:p,children:g.jsx(GH,{...h})}),XH={},ZH=Us(JH,{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 _H(e){return g.jsx(Jn,{content:!1,children:g.jsx(ZH,{...e})})}function qH(){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(h=>s.find(C=>C.id===h)),[u,{isLoading:A}]=D.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:yr().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=Q.useCallback(()=>{u()},[u]);return g.jsx(D.Button,{label:"ra.notification.mark_as_readed",disabled:A||(a==null?void 0:a.readed)!==null,onClick:p,children:g.jsx(zn.Email,{})})}function $H(){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(h=>s.find(C=>C.id===h)).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=Q.useCallback(()=>{u()},[u]);return g.jsx(D.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:A||a&&!(a!=null&&a.readed),onClick:p,children:g.jsx(zn.Drafts,{})})}function ez(e){const t=D.useRecordContext(e),n=D.useResourceContext(e),r=D.useRedirect(),o=D.useNotify(),s=D.useTranslate(),[a]=D.useLocaleState(),c=Q.useMemo(()=>t!=null&&t.readed?yr(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:yr().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=Q.useCallback(()=>u(),[u]);return g.jsxs("div",{onClick:A,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[g.jsx(b.Typography,{variant:"subtitle1",children:g.jsxs(b.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),g.jsx(b.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c&&g.jsx(b.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:s("ra.notification.readed",{readed:c})})]})}function tz({...e}){const t=b.useTheme(),{mode:n,colorize:r,density:o}=Q.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?b.darken:b.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),s=a=>({backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)});return g.jsxs(D.Datagrid,{...e,rowSx:s,children:[g.jsx(ez,{source:"notification",sortable:!1}),g.jsx(Jm,{source:"created"}),g.jsxs(Uo,{children:[g.jsx(qH,{}),g.jsx($H,{})]})]})}const nz=Ae(D.SimpleList,{name:"ApplicaSimpleList",slot:"root"})(({theme:e})=>({padding:e.spacing(1),paddingTop:0,paddingBottom:0})),ru={width:"1.5rem",alignSelf:"center"};function rz({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:s,component:a,leftIcon:c,rightIcon:u,button:A,buttonProps:p,...h}){const{getCurrentDialog:C}=Yo(),E=ue.useResourceContext(h),m=C(),B=ue.useRecordContext(),v=r||B,S=at.get(v,e||"");return g.jsxs(b.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:[g.jsxs(b.Stack,{direction:"row",alignItems:"start",children:[c&&(Q.isValidElement(c)?Q.cloneElement(c,{style:ru}):Q.createElement(c,{style:ru})),g.jsx(ue.FieldTitle,{label:t,source:e,resource:m||E})]}),g.jsxs(b.Stack,{direction:"row",alignItems:"center",children:[a?Q.isValidElement(a)?Q.cloneElement(a,{record:v,resource:E,value:S}):Q.createElement(a,{source:e,record:v,resource:E,value:S}):g.jsx(b.Typography,{variant:n,children:S}),u&&(Q.isValidElement(u)?Q.cloneElement(u,{style:ru}):Q.createElement(u,{style:ru})),A&&g.jsx(b.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:A})]})]})}const ub=({children:e,...t})=>{const n=Bt();return g.jsx(Jn,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...t,border:!1,boxShadow:!0,shadow:n.customShadows.z1,children:g.jsx(b.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};ub.propTypes={children:f.node};const ja=({version:e,name:t,copy:n,children:r,logo:o,background:s=al})=>g.jsxs(b.Box,{sx:{minHeight:"100vh"},children:[Q.isValidElement(s)?s:Q.createElement(s),g.jsxs(b.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{ml:3},children:o||g.jsx(pf,{title:t})}),g.jsxs(b.Grid,{item:!0,xs:12,children:[g.jsx(b.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:g.jsx(b.Grid,{item:!0,children:g.jsx(ub,{children:r})})}),g.jsx(b.Grid,{item:!0,sx:{pb:1},children:g.jsx(xg,{name:t,copy:n,version:e})})]})]})]});ja.propTypes={children:f.node,version:f.string,name:f.string,copy:f.string,background:f.oneOfType([f.node,f.func,f.object])};const Ab=({name:e,copy:t,logo:n,version:r,background:o})=>{const s=ue.useTranslate(),a=ue.useAuthProvider(),c=ue.useNotify(),u=pt.useNavigate(),{token:A}=pt.useParams();return Q.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{c("ra.auth.activate_success",{type:"info"}),ne.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),ne.delay(()=>u("/login"),1e3)})},[A]),g.jsx(ja,{name:e,copy:t,logo:n,version:r,background:o,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:s("ra.auth.activate")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:s("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:s("ra.auth.activate_pending")})]})})};Ab.propTypes={name:f.string.isRequired,version:f.string.isRequired,background:f.node};function db({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:s=!1,redirectTo:a,background:c=g.jsx(al,{})}){const[u,A]=ue.useSafeSetState(!1),p=ue.useLogin(),h=ue.useTranslate(),C=ue.useNotify(),E=ue.useCheckAuth(),m=pt.useNavigate();Q.useEffect(()=>{E({},!1).then(()=>{m("/")}).catch(()=>{})},[E,m]);const B=v=>{A(!0),p(v,a).then(()=>{A(!1)}).catch(S=>{A(!1),C(typeof S=="string"?S:typeof S>"u"||!S.message?"ra.auth.sign_in_error":S.message,{type:"error",messageArgs:{_:typeof S=="string"?S:S&&S.message?S.message:void 0}})})};return g.jsx(ja,{name:t,version:e,copy:n,logo:r,background:c,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:"Login"}),s&&g.jsx(b.Typography,{component:pt.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:h("ra.auth.register")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(ue.Form,{onSubmit:B,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(fr,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:ue.required(),placeholder:"user@company.name",fullWidth:!0})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(fr,{source:"password",label:h("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ue.required(),placeholder:h("ra.auth.password_placeholder"),fullWidth:!0})})]}),o&&g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:g.jsx(b.Link,{variant:"h6",component:pt.Link,to:"/recover",color:"text.primary",children:h("ra.auth.forgot_password")})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?g.jsx(b.CircularProgress,{size:19,thickness:3}):h("ra.auth.sign_in")})})]})})]})})}const gb=({name:e,copy:t,logo:n,version:r,background:o})=>{const[s,a]=Q.useState(!1),c=ue.useTranslate(),u=ue.useRedirect(),A=ue.useNotify(),p=ue.useAuthProvider(),h=({email:C})=>{a(!0),p.recover(C).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 g.jsx(ja,{name:e,copy:t,logo:n,version:r,background:o,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(D.Form,{onSubmit:h,children:[g.jsx(b.Grid,{container:!0,children:g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(fr,{source:"email",validate:[ue.required(),ue.email()]})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:g.jsx(b.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?g.jsx(b.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})};gb.propTypes={name:f.string.isRequired,version:f.string.isRequired,background:f.node};const fb=({name:e,copy:t,version:n,logo:r,background:o})=>{const[s,a]=Q.useState(!1),c=ue.useTranslate(),u=ue.useRedirect(),A=ue.useNotify(),p=ue.useAuthProvider(),h=C=>{a(!0),p.register(C).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 g.jsx(ja,{name:e,copy:t,logo:r,background:o,version:n,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:c("ra.auth.register.title")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(D.Form,{onSubmit:h,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(fr,{source:"name",label:c("ra.register.name"),validate:ue.required()})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(fr,{source:"email",type:"email",validate:[ue.required(),ue.email()]})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(fr,{source:"password",type:"password",validate:ue.required()})})]}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?g.jsx(b.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})};fb.propTypes={name:f.string.isRequired,version:f.string.isRequired};function pb(){const e=Q.useCallback(()=>location.reload(),[]);return g.jsx(b.Container,{children:g.jsxs(b.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[g.jsx("img",{src:Av,style:{width:"100%",maxWidth:450}}),g.jsx(b.Typography,{variant:"h2",children:"Ops! An error occurred..."}),g.jsx(b.Typography,{children:"We're fixing the problem. Please try again later."}),g.jsx(b.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}const oz=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 ${He(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${He(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${He(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${He(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${He(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${He(e.palette.info.main,.2)}`,success:`0 0 0 2px ${He(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${He(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${He(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${He(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${He(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${He(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${He(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${He(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${He(e.palette.grey[500],.2)}`});function tr(e,t){iz(e)&&(e="100%");var n=sz(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 iz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function sz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function az(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ou(e){return e<=1?"".concat(Number(e)*100,"%"):e}function mf(e){return e.length===1?"0"+e:String(e)}function lz(e,t,n){return{r:tr(e,255)*255,g:tr(t,255)*255,b:tr(n,255)*255}}function Bf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cz(e,t,n){var r,o,s;if(e=tr(e,360),t=tr(t,100),n=tr(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=Bf(c,a,e+1/3),o=Bf(c,a,e),s=Bf(c,a,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function uz(e,t,n){e=tr(e,255),t=tr(t,255),n=tr(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 Az(e,t,n){e=tr(e,360)*6,t=tr(t,100),n=tr(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],h=[s,s,c,n,n,a][u];return{r:A*255,g:p*255,b:h*255}}function dz(e,t,n,r){var o=[mf(Math.round(e).toString(16)),mf(Math.round(t).toString(16)),mf(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 hb(e){return Mn(e)/255}function Mn(e){return parseInt(e,16)}var Cb={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 Da(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=pz(e)),typeof e=="object"&&(Jr(e.r)&&Jr(e.g)&&Jr(e.b)?(t=lz(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jr(e.h)&&Jr(e.s)&&Jr(e.v)?(r=ou(e.s),o=ou(e.v),t=Az(e.h,r,o),a=!0,c="hsv"):Jr(e.h)&&Jr(e.s)&&Jr(e.l)&&(r=ou(e.s),s=ou(e.l),t=cz(e.h,r,s),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=az(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 gz="[-\\+]?\\d+%?",fz="[-\\+]?\\d*\\.\\d+%?",So="(?:".concat(fz,")|(?:").concat(gz,")"),vf="[\\s|\\(]+(".concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")\\s*\\)?"),yf="[\\s|\\(]+(".concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")\\s*\\)?"),pr={CSS_UNIT:new RegExp(So),rgb:new RegExp("rgb"+vf),rgba:new RegExp("rgba"+yf),hsl:new RegExp("hsl"+vf),hsla:new RegExp("hsla"+yf),hsv:new RegExp("hsv"+vf),hsva:new RegExp("hsva"+yf),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 pz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Cb[e])e=Cb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=pr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=pr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=pr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=pr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pr.hex8.exec(e),n?{r:Mn(n[1]),g:Mn(n[2]),b:Mn(n[3]),a:hb(n[4]),format:t?"name":"hex8"}:(n=pr.hex6.exec(e),n?{r:Mn(n[1]),g:Mn(n[2]),b:Mn(n[3]),format:t?"name":"hex"}:(n=pr.hex4.exec(e),n?{r:Mn(n[1]+n[1]),g:Mn(n[2]+n[2]),b:Mn(n[3]+n[3]),a:hb(n[4]+n[4]),format:t?"name":"hex8"}:(n=pr.hex3.exec(e),n?{r:Mn(n[1]+n[1]),g:Mn(n[2]+n[2]),b:Mn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Jr(e){return!!pr.CSS_UNIT.exec(String(e))}var iu=2,Eb=.16,hz=.05,Cz=.05,Ez=.15,Ib=5,mb=4,Iz=[{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 Bb(e){var t=e.r,n=e.g,r=e.b,o=uz(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function su(e){var t=e.r,n=e.g,r=e.b;return"#".concat(dz(t,n,r,!1))}function mz(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 vb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-iu*t:Math.round(e.h)+iu*t:r=n?Math.round(e.h)+iu*t:Math.round(e.h)-iu*t,r<0?r+=360:r>=360&&(r-=360),r}function yb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Eb*t:t===mb?r=e.s+Eb:r=e.s+hz*t,r>1&&(r=1),n&&t===Ib&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function bb(e,t,n){var r;return n?r=e.v+Cz*t:r=e.v-Ez*t,r>1&&(r=1),Number(r.toFixed(2))}function Qb(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Da(e),o=Ib;o>0;o-=1){var s=Bb(r),a=su(Da({h:vb(s,o,!0),s:yb(s,o,!0),v:bb(s,o,!0)}));n.push(a)}n.push(su(r));for(var c=1;c<=mb;c+=1){var u=Bb(r),A=su(Da({h:vb(u,c),s:yb(u,c),v:bb(u,c)}));n.push(A)}return t.theme==="dark"?Iz.map(function(p){var h=p.index,C=p.opacity,E=su(mz(Da(t.backgroundColor||"#141414"),Da(n[h]),C*100));return E}):n}var bf={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Kt={},au={};Object.keys(bf).forEach(function(e){Kt[e]=Qb(bf[e]),Kt[e].primary=Kt[e][5],au[e]=Qb(bf[e],{theme:"dark",backgroundColor:"#141414"}),au[e].primary=au[e][5]}),Kt.red,Kt.volcano,Kt.gold,Kt.orange,Kt.yellow,Kt.lime,Kt.green,Kt.cyan,Kt.blue,Kt.geekblue,Kt.purple,Kt.magenta,Kt.grey,Kt.grey;const xb=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}};xb.propTypes={colors:f.object};const 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=["#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}},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=["#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}},yz=(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}},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=["#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}},Qz=(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}},xz=(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}},wz=(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}},Tz=(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}},wb=(e,t,n)=>{switch(t){case"theme1":return Bz(e,n);case"theme2":return vz(e,n);case"theme3":return yz(e,n);case"theme4":return bz(e,n);case"theme5":return Qz(e,n);case"theme6":return xz(e,n);case"theme7":return wz(e,n);case"theme8":return Tz(e,n);default:return xb(e)}};wb.propTypes={colors:f.object,presetColor:f.any};const Sz=(e,t)=>{const n=e==="dark"?au:Kt;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=wb(n,t,e);return DA({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?He(a.grey[900],.87):a.grey[700],secondary:e==="dark"?He(a.grey[900],.45):a.grey[500],disabled:e==="dark"?He(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?He(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})},Pz=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 Oz(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 jz(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Dz(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:g.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 di({color:e,theme:t}){const n=en(t,e),{lighter:r,light:o,main:s}=n;return{borderColor:He(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:s}}}function Mz(e){const t=di({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":di({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":di({color:"secondary",theme:e}),"&.MuiAlert-borderError":di({color:"error",theme:e}),"&.MuiAlert-borderSuccess":di({color:"success",theme:e}),"&.MuiAlert-borderInfo":di({color:"info",theme:e}),"&.MuiAlert-borderWarning":di({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 kz(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Rz(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 gi({color:e,theme:t}){const n=en(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function Fz(e){const t=gi({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":gi({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":gi({color:"secondary",theme:e}),"&.MuiBadge-colorError":gi({color:"error",theme:e}),"&.MuiBadge-colorInfo":gi({color:"info",theme:e}),"&.MuiBadge-colorSuccess":gi({color:"success",theme:e}),"&.MuiBadge-colorWarning":gi({color:"warning",theme:e})}}}}}function et({variant:e,color:t,theme:n}){const r=en(n,t),{lighter:o,main:s,dark:a,contrastText:c}=r,u=`${t}Button`,A=es(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${He(s,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${He(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 Lz(e){const t=et({variant:"dashed",color:"primary",theme:e}),n=et({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":et({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":et({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":et({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":et({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":et({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":et({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":et({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":et({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":et({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":et({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":et({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":et({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:et({variant:"contained",color:"primary",theme:e}),containedSecondary:et({variant:"contained",color:"secondary",theme:e}),containedError:et({variant:"contained",color:"error",theme:e}),containedSuccess:et({variant:"contained",color:"success",theme:e}),containedInfo:et({variant:"contained",color:"info",theme:e}),containedWarning:et({variant:"contained",color:"warning",theme:e}),outlinedPrimary:et({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:et({variant:"outlined",color:"secondary",theme:e}),outlinedError:et({variant:"outlined",color:"error",theme:e}),outlinedSuccess:et({variant:"outlined",color:"success",theme:e}),outlinedInfo:et({variant:"outlined",color:"info",theme:e}),outlinedWarning:et({variant:"outlined",color:"warning",theme:e}),textPrimary:et({variant:"text",color:"primary",theme:e}),textSecondary:et({variant:"text",color:"secondary",theme:e}),textError:et({variant:"text",color:"error",theme:e}),textSuccess:et({variant:"text",color:"success",theme:e}),textInfo:et({variant:"text",color:"info",theme:e}),textWarning:et({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Nz(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Vz(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function Hz(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Es({color:e,theme:t}){const n=en(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 zz(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function Qf(e){const t=zz(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function Wz(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(_e.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(_e.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...Qf("small")},"&.size-medium":{...Qf("medium")},"&.size-large":{...Qf("large")}},colorPrimary:Es({color:"primary",theme:e}),colorSecondary:Es({color:"secondary",theme:e}),colorSuccess:Es({color:"success",theme:e}),colorWarning:Es({color:"warning",theme:e}),colorInfo:Es({color:"info",theme:e}),colorError:Es({color:"error",theme:e})}}}}function Is({color:e,theme:t}){const n=en(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function kn({color:e,theme:t}){const n=en(t,e),{light:r,lighter:o,main:s}=n;return{color:s,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:s,"&:hover":{color:r}}}}function Uz(e){const t=kn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Is({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Is({color:"secondary",theme:e}),"&.MuiChip-colorError":Is({color:"error",theme:e}),"&.MuiChip-colorInfo":Is({color:"info",theme:e}),"&.MuiChip-colorSuccess":Is({color:"success",theme:e}),"&.MuiChip-colorWarning":Is({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":kn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":kn({color:"secondary",theme:e}),"&.MuiChip-lightError":kn({color:"error",theme:e}),"&.MuiChip-lightInfo":kn({color:"info",theme:e}),"&.MuiChip-lightSuccess":kn({color:"success",theme:e}),"&.MuiChip-lightWarning":kn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":kn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":kn({color:"secondary",theme:e}),"&.MuiChip-combinedError":kn({color:"error",theme:e}),"&.MuiChip-combinedInfo":kn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":kn({color:"success",theme:e}),"&.MuiChip-combinedWarning":kn({color:"warning",theme:e})}}}}}function Yz(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:He("#000",.7)}}}}}}function Gz(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function Kz(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function ms({color:e,theme:t}){const n=en(t,e),{main:r,dark:o,contrastText:s}=n,a=`${e}Button`,c=es(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 ${He(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${He(r,.9)}`}}}function Jz(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":ms({color:"primary",theme:e}),"&.MuiFab-secondary":ms({color:"secondary",theme:e}),"&.Mui-error":ms({color:"error",theme:e}),"&.MuiFab-success":ms({color:"success",theme:e}),"&.MuiFab-info":ms({color:"info",theme:e}),"&.MuiFab-warning":ms({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 Xz(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 Zz(){return{MuiInputBase:{styleOverrides:{}}}}function _z(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 qz(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function $z(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function eW(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function tW(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function nW(){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function rW(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function fi({variant:e,theme:t}){const n=en(t,e),{light:r}=n,o=es(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function oW(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:{...fi({variant:"primary",theme:e}),"&.Mui-error":{...fi({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:fi({variant:"secondary",theme:e}),colorError:fi({variant:"error",theme:e}),colorWarning:fi({variant:"warning",theme:e}),colorInfo:fi({variant:"info",theme:e}),colorSuccess:fi({variant:"success",theme:e})}}}}function iW(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function vt({variant:e,color:t,theme:n}){const r=en(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 sW(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":vt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":vt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":vt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":vt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":vt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":vt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":vt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":vt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":vt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":vt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":vt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":vt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":vt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":vt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":vt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":vt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":vt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":vt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":vt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":vt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":vt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":vt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":vt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":vt({variant:"outlined",color:"warning",theme:e})}}}}}}function aW(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Bs({color:e,theme:t}){const n=en(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 lW(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function xf(e){const t=lW(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function cW(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:g.jsx(b.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...xf("small")},"&.size-medium":{...xf("medium")},"&.size-large":{...xf("large")}},colorPrimary:Bs({color:"primary",theme:e}),colorSecondary:Bs({color:"secondary",theme:e}),colorSuccess:Bs({color:"success",theme:e}),colorWarning:Bs({color:"warning",theme:e}),colorInfo:Bs({color:"info",theme:e}),colorError:Bs({color:"error",theme:e})}}}}function vs({color:e,theme:t}){const n=en(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function uW(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":vs({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":vs({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":vs({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":vs({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":vs({color:"info",theme:e}),"&.MuiSlider-thumbColorError":vs({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 AW(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function wf(e,t){const n=AW(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 dW(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...wf(e,"medium")},sizeLarge:{...wf(e,"large")},sizeSmall:{...wf(e,"small")}}}}}function gW(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 fW(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 pW(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 hW(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function CW(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function EW(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function IW(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function mW(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function BW(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 vW(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function yW(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function bW(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function QW(e){return at.merge(Oz(e),jz(e),Dz(e),Mz(e),kz(),Rz(e),Fz(e),Lz(e),Nz(),Vz(),Hz(),Wz(e),Uz(e),Yz(),Gz(e),Kz(),Jz(e),Xz(e),Zz(),_z(e),qz(),$z(),eW(e),tW(e),nW(),rW(),oW(e),iW(),sW(e),aW(e),cW(e),uW(e),dW(e),gW(e),fW(e),pW(e),hW(e),CW(e),EW(),IW(),mW(),BW(e),vW(e),yW(),bW())}const lu=({themeOverrides:e,children:t})=>{const n=pn(),{themeDirection:r,mode:o,presetColor:s,fontFamily:a}=n,c=Q.useMemo(()=>Sz(o,s),[o,s]),u=Q.useMemo(()=>Pz(a),[a]),A=Q.useMemo(()=>oz(c),[c]),p=Q.useMemo(()=>ne.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:c.palette,customShadows:A,typography:u,shadows:c.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:c.spacing(2.6875),height:c.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(c):e),[r,c,u,A,e]),h=DA(p),C=ne.cloneDeep(h.components??{});return h.components=ne.merge(QW(h),C),g.jsx(b.StyledEngineProvider,{injectFirst:!0,children:g.jsxs(Yh,{theme:h,children:[g.jsx(b.CssBaseline,{}),t]})})};lu.propTypes={children:f.node,themeOverrides:f.oneOfType([f.object,f.func])};function xW({children:e,theme:t,...n}){return g.jsx(D.CoreAdminContext,{...n,children:g.jsx(lu,{themeOverrides:t,children:g.jsx(hf,{children:e})})})}function Tb(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:s,disableTelemetry:a,history:c,i18nProvider:u,layout:A,loading:p,loginPage:h,authCallbackPage:C,menu:E,notification:m,queryClient:B,requireAuth:v,store:S=D.localStorageStore(),ready:M,theme:x,title:O="React Admin"}=e;return g.jsx(xW,{authProvider:t,dataProvider:s,i18nProvider:u,store:S,history:c,queryClient:B,theme:x,children:g.jsx(D.AdminUI,{layout:A,dashboard:o,disableTelemetry:a,menu:E,catchAll:n,title:O,loading:p,loginPage:h,authCallbackPage:C,notification:m,requireAuth:v,ready:M,children:r})})}class wW{constructor(t){io(this,Ma,void 0);io(this,ka,void 0);io(this,ys,new Set);const{apiUrl:n}=t??{};if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");Vo(this,ka,n),Vo(this,Ma,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}`;xn(this,ys).has(a)||(xn(this,ys).add(a),fetch(`${xn(this,ka)}/ui/error-log`,{method:"PUT",headers:xn(this,Ma),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"),xn(this,ys).delete(a)}))}}Ma=new WeakMap,ka=new WeakMap,ys=new WeakMap;class Sb{constructor({catch:t,display:n,log:r,error:o}){ol(this,"catch");ol(this,"display");ol(this,"log");ol(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 TW=({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=s=>new Sb({catch:s!=null,display:!1,log:s!=null,error:s}),...o})=>{const s=R.useMemo(()=>o.errorHandler?o.errorHandler:new wW({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=R.useCallback(function(u,...A){var h;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(h=u==null?void 0:u.toString())==null?void 0:h.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 R.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c]),!0};class SW{constructor(t){io(this,Ra,void 0);io(this,Fa,void 0);io(this,hi,[]);const{apiUrl:n}=t??{};if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");Vo(this,Fa,n),Vo(this,Ra,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!ne.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!ne.isString(r)||ne.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!ne.some(xn(this,hi),o=>ne.isEqual(o,{code:n,lang:r}))){xn(this,hi).push({code:n,lang:r}),fetch(`${xn(this,Fa)}/i18n/message`,{method:"put",headers:xn(this,Ra),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),Vo(this,hi,ne.reject(xn(this,hi),s=>ne.isEqual(s,{code:n,lang:r})))});return}}}Ra=new WeakMap,Fa=new WeakMap,hi=new WeakMap;function Pb(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 SW({apiUrl:t}),u=()=>fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(h=>h.json()).catch(()=>Promise.resolve(s)),A=()=>fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(h=>h.json()).then(h=>h.reduce((C,E)=>({...C,[E.lang]:{...C[E.lang]||{},[E.code]:E.text}}),{})),p=(h,C,E)=>(r||console.error(`Warning: Missing translation for key: "${h}"`),o&&(ne.isString(h)?h.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${h}`):c.handleMessage({code:h,lang:E}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),h);return Promise.all([u(),A()]).then(h=>{const[C,E]=h;function m(B){return ne.get(E,B,{})}return o1(m,n,C,{allowMissing:r||o,onMissingKey:p})})}window.React=Q;const PW=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,o]=Q.useState({loading:!0,languages:null});return Q.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 Ob(e){const[t,n]=Q.useState(),r=OC(e);return Q.useEffect(()=>{Pb(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r]),t}const OW=new Oi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function jW({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:s,logoIcon:a,loginPage:c=g.jsx(db,{version:"0.0.0",name:"Applica",redirectTo:"/",background:g.jsx(al,{})}),menu:u,name:A,copy:p,version:h="0.0.0",dataProvider:C,authProvider:E,errorHandler:m,error:B,enableNotification:v=!1,enableRegistration:S=!1,enablePasswordRecover:M=!1,enableThemeToggler:x=!1,queryClient:O=OW,background:P,notificationAPI:F="entities/notification",...L}){TW({apiUrl:n,errorHandler:m,catcherFn:G=>{const se=G==null?void 0:G.toString(),_=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(z=>se==null?void 0:se.includes(z));return new Sb({catch:_,display:!_,log:!_,error:se})}});const K=Q.useMemo(()=>Q.isValidElement(c)?Q.cloneElement(c,{name:A,copy:p,logo:s,version:h,background:P,enableRegistration:S,enablePasswordRecover:M}):c,[c,A,h,p,P,s,S,M]),J=Q.useMemo(()=>G=>{const se=A?g.jsx(pf,{title:A}):s,ae=A?g.jsx(Cf,{title:A}):a;return g.jsx(Yy,{...G,name:A,copy:p,enableThemeToggler:x,version:h,logoMain:se,logoIcon:ae,notification:F,enableNotification:v,error:B})},[s,a,A,h,B,F,v]),ee=Ob({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o});return ee===void 0?g.jsx(g.Fragment,{}):ee.error?g.jsx(Pl,{initialConfig:t,children:g.jsx(lu,{themeOverrides:e,children:g.jsx(pb,{})})}):g.jsx(NA,{children:g.jsx(qh,{menu:u,children:g.jsx(Pl,{initialConfig:t,children:g.jsx(Tb,{theme:e,layout:J,notification:eb,queryClient:O,dataProvider:C,authProvider:E,i18nProvider:ee,loginPage:K,...L})})})})}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=GM,j.ActionsMenu=Uo,j.ActivatePage=Ab,j.Admin=Tb,j.AnimateButton=am,j.AppBarStyled=DC,j.AppConfigContext=LA,j.AppConfigProvider=NA,j.ApplicaAdmin=jW,j.ArrayInput=YM,j.AttachmentField=Um,j.AttachmentInput=h3,j.AuthBackground=al,j.AutocompleteArrayInput=E3,j.AutocompleteInput=m3,j.Avatar=ua,j.BooleanInput=v3,j.Breadcrumbs=bm,j.BulkActionsToolbar=ob,j.BulkActionsToolbarClasses=er,j.BulkFloatingActionsToolbar=jH,j.CardForm=Vm,j.ChangePasswordForm=fg,j.CircularWithLabel=Rm,j.CircularWithPath=Fm,j.CoverField=Gm,j.Create=q3,j.CreateInDialogButton=TH,j.Datagrid=LH,j.DateAgoField=Jm,j.DateField=t3,j.DateInput=b3,j.DateTimeInput=x3,j.Dot=Ac,j.Drawer=Ny,j.DrawerHeader=Bv,j.DrawerHeaderStyled=mv,j.DrawerToggle=X0,j.Edit=ek,j.EditInDialogButton=PH,j.EmailField=r3,j.Empty=VH,j.EmptyClasses=Ai,j.FileField=Xm,j.FileInput=T3,j.Footer=xg,j.FormHeader=rk,j.FunctionField=i3,j.GenericErrorPage=pb,j.Header=Z0,j.HeaderButton=KS,j.HeaderIconButton=NM,j.HeaderNotification=_0,j.HeaderProfile=q0,j.HeaderSpacer=eB,j.HeaderToggleButton=ns,j.HorizontalBar=Vy,j.IconButton=ts,j.ImageField=Ym,j.ImageInput=S3,j.ImpersonateUserButton=BH,j.LabeledArrayInput=zm,j.LabeledInput=ln,j.Layout=Yy,j.LayoutContent=dv,j.LayoutProvider=G0,j.LayoutWrapper=gv,j.LinearWithIcon=Lm,j.LinearWithLabel=Nm,j.List=_H,j.ListItem=rz,j.Loadable=iH,j.Loader=$y,j.LoadingButton=gg,j.LocalStorage=SC,j.LocalizedTextField=a3,j.LocalizedTextInput=j3,j.LoginPage=db,j.Logo=ef,j.LongForm=Ot,j.MainCard=Jn,j.MainIcon=pf,j.MenuConfigContext=HA,j.MenuConfigProvider=qh,j.MenuPopover=RA,j.NavGroup=df,j.NavMenu=Hy,j.Navigation=Wy,j.Notification=eb,j.NotificationList=tz,j.NumberInput=M3,j.OnboardingModes=Sa,j.OnboardingProvider=pH,j.OnboardingTip=mH,j.RawTableFormIterator=U0,j.ReadonlyField=A3,j.RecordInput=k3,j.RecoverPage=gb,j.ReferenceArrayInput=R3,j.ReferenceInput=F3,j.ReferenceManyField=_m,j.ReferenceManyInput=L3,j.RegisterPage=fb,j.ResponsiveSection=$0,j.ScrollTop=hf,j.ScrollX=aH,j.SearchInput=V3,j.SelectArrayInput=z3,j.SelectInput=U3,j.Show=Ik,j.SimpleBar=Af,j.SimpleForm=Hm,j.SimpleFormIterator=Bk,j.SimpleList=nz,j.SizeField=g3,j.SmallIcon=Cf,j.SmartTextInput=Y3,j.TabbedForm=mg,j.TableFormIterator=_F,j.TableFormIteratorContext=zA,j.TableFormIteratorItem=w0,j.TableFormIteratorItemContext=WA,j.TextField=Zm,j.TextInput=fr,j.ThemeConfigContext=VA,j.ThemeConfigProvider=Pl,j.ThemeProvider=lu,j.ThemeToggler=Uy,j.TimeInput=X3,j.Toolbar=ii,j.Tooltip=fc,j.Transitions=mo,j.createI18nProvider=Pb,j.getLocalizedValue=KA,j.localizedValueHasAllLocales=GA,j.parseTime=sC,j.useAppConfig=Yo,j.useBreadcrumbs=rC,j.useGetLocalizedValue=WS,j.useI18nLanguages=PW,j.useI18nProvider=Ob,j.useLayoutContext=Qg,j.useLayoutDispatch=e5,j.useLayoutDrawerState=si,j.useLayoutLogoState=J0,j.useLayoutMediaState=Pn,j.useLayoutNotificationsState=Qc,j.useLayoutState=ss,j.useLayoutThemeState=t5,j.useLocalStorage=Ll,j.useLocalizedValue=zS,j.useMemoizedObject=OC,j.useMenu=YA,j.useMenuConfig=Go,j.usePopoverState=Nl,j.useRefDimensions=YS,j.useResourceDefaultValues=_3,j.useResourceTitle=sd,j.useRestartOnboarding=EH,j.useSx=dr,j.useTableFormIterator=jC,j.useTableFormIteratorItem=GS,j.useThemeConfig=pn,j.uuid=qT,j.withLayoutProvider=K0,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
268
|
+
`),ZV)),qy=R.forwardRef(function(t,n){const r=Lt({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:c,variant:u="indeterminate"}=r,A=Ve(r,JV),p=W({},r,{color:s,variant:u}),h=qV(p),C=Bt(),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;C.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;C.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 g.jsxs($V,W({className:Ue(h.root,o),ownerState:p,role:"progressbar"},E,{ref:n},A,{children:[u==="buffer"?g.jsx(eH,{className:h.dashed,ownerState:p}):null,g.jsx(tH,{className:h.bar1,ownerState:p,style:m.bar1}),u==="determinate"?null:g.jsx(nH,{className:h.bar2,ownerState:p,style:m.bar2})]}))});process.env.NODE_ENV!=="production"&&(qy.propTypes={classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["inherit","primary","secondary"]),f.string]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),value:f.number,valueBuffer:f.number,variant:f.oneOf(["buffer","determinate","indeterminate","query"])});const rH=qy,oH=Ae("div")(({theme:e})=>({position:"fixed",top:0,left:0,zIndex:2001,width:"100%","& > * + *":{marginTop:e.spacing(2)}})),$y=()=>g.jsx(oH,{children:g.jsx(rH,{color:"primary"})}),iH=e=>t=>g.jsx(Q.Suspense,{fallback:g.jsx($y,{}),children:g.jsx(e,{...t})}),pf=({title:e})=>g.jsxs(b.Stack,{direction:"row",children:[g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"regular",letterSpacing:-2.5},children:"a."})," ",g.jsx(b.Typography,{variant:"h2",sx:{fontWeight:"bold"},children:e})]}),sH=Ae(D.Notification,{})(({theme:e})=>({"& *":{fontSize:e.typography.body1.fontSize}}));function eb(e){return g.jsx(sH,{...e})}const hf=({children:e})=>{const t=pt.useLocation(),{pathname:n}=t;return Q.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[n]),e||null};hf.propTypes={children:f.node};const aH=Ae("div")({width:"100%",overflowX:"auto",display:"block"}),Cf=({title:e})=>g.jsx(b.Typography,{variant:"h2",sx:{style:"bold"},children:e==null?void 0:e.substr(0,1).toUpperCase()});Cf.propTypes={title:f.string.isRequired};var Sa=(e=>(e.NONE="none",e.BROWSER="browser",e.USER="user",e))(Sa||{});const lH=Nr().required(),cH=Nr().oneOf(Object.values(Sa));function uH(e){var S;const t=Oi.useQueryClient(),[n,r]=Q.useState(!1),[o,s]=Q.useState(()=>()=>Promise.resolve()),a=ue.useGetIdentity(),c=(S=a==null?void 0:a.data)==null?void 0:S.email,u=ue.useDataProvider(),A=Q.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:h,isError:C}=Oi.useQuery({queryKey:["GET","onboarding",c],queryFn:A,staleTime:24*60*60*1e3,retry:c!==void 0}),[E,m]=Q.useState(()=>()=>Promise.resolve()),B=Oi.useMutation({mutationFn:E}),v=B.mutateAsync;return Q.useEffect(()=>{function M(){const x=ne.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]),Q.useEffect(()=>{r(ne.isNil((p??{})[e]))},[p,e,r]),Q.useEffect(()=>{s(()=>()=>v())},[v]),{loading:h,error:C,onboardingRequired:n,acknowledgeOnboarding:o}}function AH(e){const[t,n]=Ll("onboarding",{}),[r,o]=Q.useState(!1),[s,a]=Q.useState(()=>()=>Promise.resolve());return Q.useEffect(()=>{o(ne.isNil((t??{})[e]))},[t,e,o]),Q.useEffect(()=>{a(()=>()=>(n(c=>ne.extend(c,{[e]:Date.now()})),Promise.resolve()))},[e,n,a]),{onboardingRequired:r,acknowledgeOnboarding:s}}function dH(){return{onboardingRequired:!1,acknowledgeOnboarding:Q.useRef(()=>Promise.resolve()).current}}function gH(e,t){id({mode:cH,topic:lH}).validateSync({mode:e,topic:t});const n=uH(t),r=AH(t),o=dH();switch(e){case Sa.USER:return n.loading?o:n.error?r:ne.pick(n,["onboardingRequired","acknowledgeOnboarding"]);case Sa.BROWSER:return r;default:return o}}var Pa=(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))(Pa||{});function fH(e,t){var o;const n=ne.clone(e),{type:r}=t;switch(r){case"SET_SHOW":{const{payload:s}=t;return ne.extend(n,{show:s})}case"REGISTER_TIP":{const{payload:s}=t,{id:a}=s,c=ne.chain(n.tips).clone().reject(p=>p.id===a).value(),u=ne.find(n.tips,{id:a}),A=ne.chain(u??{}).clone().extend(s).value();return c.push(A),ne.extend(n,{tips:ne.sortBy(c,["step"])})}case"UNREGISTER_TIP":{const{payload:s}=t,a=ne.isString(s)?s:s.id,c=ne.chain(n.tips).reject(u=>u.id===a).sortBy(["step"]).value();return ne.extend(n,{tips:c})}case"DISMISS_TIP":{const{payload:s}=t,a=ne.isString(s)?s:s.id,c=ne.chain(n.tips).reject(C=>C.id===a).value(),u=ne.find(n.tips,{id:a});if(ne.isNil(u))return n;const A=ne.chain(u).clone().extend({dismissed:!0}).value();c.push(A);const p=((o=ne.chain(c).reject(C=>C.dismissed??!1).minBy("step").value())==null?void 0:o.step)??0;return(A==null?void 0:A.completeOnboarding)&&ne.chain(c).reject(C=>C.step<p).reject(C=>C.dismissed??!1).isEmpty().value()&&e.onComplete(),ne.extend(n,{tips:ne.sortBy(c,["step"]),currentStep:p})}case"SET_ON_COMPLETE":{const{payload:s}=t;return ne.extend(n,{onComplete:s})}case"RESTART":{const s=ne.chain(n.tips).clone().map(a=>ne.omit(a,"dismissed")).value();return ne.extend(n,{tips:s,currentStep:0})}default:return n}}const tb=Q.createContext(void 0);function pH(e){const{mode:t,topic:n="default"}=e,{onboardingRequired:r,acknowledgeOnboarding:o}=gH(t,n),[s,a]=Q.useReducer(fH,{show:r,tips:[],currentStep:0,onComplete:()=>{}}),c=Q.useMemo(()=>({state:s,dispatch:a}),[s,a]);return Q.useEffect(()=>{a({type:"SET_SHOW",payload:r})},[r,a]),Q.useEffect(()=>{function u(){o().then(()=>{a({type:"SET_SHOW",payload:!1})})}a({type:"SET_ON_COMPLETE",payload:u})},[o,a]),g.jsx(tb.Provider,{value:c,children:e.children})}function nb(){const e=Q.useContext(tb);if(e===void 0)throw new Error("[Onboarding] useOnboardingContext: context undefined. Please provide a valid OnboardingContext using OnboardingProvider");return e}function hH(){return nb().state}function rb(){return nb().dispatch}function CH(e){id({id:Nr().required(),step:vC().required()}).validateSync(e);const{id:t,step:n,completeOnboarding:r}=e,{show:o,tips:s,currentStep:a}=hH(),c=ne.find(s,{id:t}),{dismissed:u}=c??{},A=rb(),p=Q.useCallback(()=>{A({type:Pa.DISMISS_TIP,payload:t})},[A,t]);return Q.useEffect(()=>{(ne.isNil(c)||n!==(c==null?void 0:c.step))&&A({type:Pa.REGISTER_TIP,payload:{id:t,step:n,completeOnboarding:r}})},[t,n,r,c]),Q.useEffect(()=>()=>{A({type:Pa.UNREGISTER_TIP,payload:t})},[t,A]),{tip:ne.chain(c??e).clone().extend({open:o&&!ne.isNil(c)&&a===n&&!u}).value(),dismiss:p}}function EH(){const e=rb();return Q.useCallback(()=>{e({type:Pa.RESTART})},[e])}function IH(e){const{id:t,step:n=0,title:r,completeOnboarding:o}=e,{tip:s,dismiss:a}=CH({id:t,step:n,completeOnboarding:o}),{open:c}=s,u=ne.omit(e,["id","step","title","completeOnboarding"]);return g.jsx(fc,{...u,arrow:!0,open:c,title:g.jsxs(b.Stack,{gap:1,children:[g.jsx(b.Typography,{children:r}),g.jsx(b.Button,{onClick:a,variant:"text",color:"primary",size:"small",children:"Got it!"})]}),children:e.children})}const mH=b.styled(IH)(({theme:e})=>{const{palette:t,spacing:n}=e,{primary:r,background:o}=t;return{[`& .${b.tooltipClasses.tooltip}`]:{padding:`${n(1)} ${n(1.5)}`,backgroundColor:r.main,color:r.contrastText,[`& .${b.buttonClasses.root}`]:{backgroundColor:o.paper}},[`& .${b.tooltipClasses.arrow}`]:{color:r.main}}});function BH({label:e="ra.auth.sign_in",...t}){const n=D.useRecordContext(),[r,o]=Q.useState(!1),s=D.useAuthProvider(),a=Q.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 g.jsx(D.Button,{disabled:r||s.impersonate===void 0,color:"primary",variant:"text",label:e,onClick:a,...t,children:g.jsx(zn.VpnKey,{})})}const Ef=(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)]},vH=(e,t)=>e&&e.data?{data:Ef(e.data,t),total:e.total+1}:e,yH=(e,t)=>e&&e.length>0?Ef(e,t):e,bH=(e,t)=>e&&e.data?{...e,data:Ef(e.data,t),total:e.total+1}:e,QH=({onClose:e,record:t,children:n,redirect:r=!1,onSubmit:o,onSuccess:s,onError:a})=>{const c=Oi.useQueryClient(),u=D.useResourceContext(),A=D.useRedirect(),p=D.useNotify(),h=Q.useCallback(B=>{const S=Date.now();c.setQueryData([u,"getOne",{id:B.id}],B),c.setQueriesData([u,"getList"],M=>bH(M,B),{updatedAt:S}),c.setQueriesData([u,"getMany"],M=>yH(M,B),{updatedAt:S}),c.setQueriesData([u,"getManyReference"],M=>vH(M,B),{updatedAt:S}),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:C,...E}=D.useCreateController({mutationOptions:{onSuccess:h,onError:a}}),m=Q.useCallback(B=>{o?o(B,e):C&&C(B)},[o,C,e]);return g.jsx(D.CreateContextProvider,{value:{record:t,save:m,saving:E==null?void 0:E.saving,redirect:r},children:Q.cloneElement(n,{...n.props,toolbar:g.jsxs(ii,{children:[g.jsx(D.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e,disabled:E==null?void 0:E.saving}),g.jsx(D.SaveButton,{type:"button",disabled:E==null?void 0:E.saving})]})})})},xH={true:{_scrollToTop:!0},false:{}},wH=Ae(b.Fab,{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 TH({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,...h}){const[C,E]=Q.useState(!1),m=D.useTranslate(),B=D.useResourceContext(),{openDialog:v,closeDialog:S}=Yo(),M=Q.useCallback(()=>v(B,()=>E(!0)),[v,B]),x=Q.useCallback(()=>S(B,()=>E(!1)),[S,B]),O=b.useMediaQuery(P=>P.breakpoints.down("md"));return g.jsxs(g.Fragment,{children:[O?g.jsx(wH,{...h,state:xH[String(s)],color:"primary",className:Ue(D.CreateButtonClasses.floating,a),"aria-label":n&&m(n),onClick:M,children:g.jsx(_e.PlusCircleOutlined,{})}):g.jsx(D.Button,{...h,sx:c,label:n,onClick:M,children:g.jsx(_e.PlusCircleOutlined,{})}),g.jsx(b.Dialog,{open:C,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:x,fullWidth:e,maxWidth:t,children:g.jsx(QH,{...h,redirect:o,record:r,onClose:x,onSubmit:u,onSuccess:A,onError:p})})]})}const SH=({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=Q.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 g.jsx(D.EditContextProvider,{value:{record:c,isLoading:a,save:A,saving:p},children:Q.cloneElement(t,{toolbar:g.jsxs(ii,{children:[g.jsx(D.Button,{variant:"text",size:"medium",label:"ra.action.cancel",onClick:e}),g.jsx(D.SaveButton,{type:"button"})]})})})};function PH({fullWidth:e=!0,maxWidth:t="md",label:n="ra.action.edit",...r}){const[o,s]=Q.useState(!1),{openDialog:a,closeDialog:c}=Yo(),u=D.useResourceContext(),A=Q.useCallback(()=>a(u,()=>s(!0)),[a,u]),p=Q.useCallback(()=>c(u,()=>s(!1)),[c,u]);return g.jsxs(g.Fragment,{children:[g.jsx(D.Button,{label:n,onClick:A,children:g.jsx(zn.Edit,{})}),g.jsx(b.Dialog,{open:o,scroll:"body",sx:{"& .MuiToolbar-root":{position:"initial"}},onClose:p,fullWidth:e,maxWidth:t,children:g.jsx(SH,{onClose:p,children:r==null?void 0:r.children})})]})}function ob(e){const{label:t="ra.action.bulk_actions",children:n,className:r,...o}=e,{filterValues:s,resource:a,selectedIds:c=[],onUnselectItems:u}=ue.useListContext(e),A=ue.useTranslate(),p=Q.useCallback(()=>{u()},[u]);return g.jsx(OH,{className:r,children:g.jsxs(R6,{"data-test":"bulk-actions-toolbar",className:Ue(er.toolbar,{[er.collapsed]:c.length===0}),...ue.sanitizeListRestProps(o),children:[g.jsxs("div",{className:er.title,children:[g.jsx(ug,{className:er.icon,"aria-label":A("ra.action.unselect"),title:A("ra.action.unselect"),onClick:p,size:"small",children:g.jsx(Yc,{fontSize:"small"})}),g.jsx(gm,{color:"inherit",variant:"subtitle1",children:A(t,{_:t,smart_count:c.length})})]}),g.jsx(D.TopToolbar,{className:er.topToolbar,children:Q.Children.map(n,h=>Q.isValidElement(h)?Q.cloneElement(h,{filterValues:s,resource:a,selectedIds:c}):null)})]})})}const ui="RaBulkActionsToolbar",er={toolbar:`${ui}-toolbar`,topToolbar:`${ui}-topToolbar`,buttons:`${ui}-buttons`,collapsed:`${ui}-collapsed`,title:`${ui}-title`,icon:`${ui}-icon`},OH=Ae("div",{name:ui,overridesResolver:(e,t)=>t.root})(({theme:e})=>({position:"relative",[`& .${er.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"?Li(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},[`& .${er.topToolbar}`]:{paddingBottom:e.spacing(1),minHeight:"auto",[e.breakpoints.down("sm")]:{backgroundColor:"transparent"}},[`& .${er.buttons}`]:{},[`& .${er.collapsed}`]:{minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},[`& .${er.title}`]:{display:"flex",flex:"0 0 auto"},[`& .${er.icon}`]:{marginLeft:"-0.5em",marginRight:"0.5em"}})),If={p:0,m:0},ib={p:2,m:0,borderRadius:0,width:"100%"};function jH(e){const{children:t}=e,[n,r]=R.useState(null),o=m=>{r(m.currentTarget)},s=()=>{r(null)},a=b.useMediaQuery(m=>m.breakpoints.down("md")),{filterValues:c,resource:u,selectedIds:A=[],onUnselectItems:p}=D.useListContext(e),h=!!n&&A!==void 0&&A.length>0,C=h?"simple-popover":void 0,E=R.useCallback(()=>{p(),r(null)},[p,r]);return g.jsx(b.Fade,{in:A!==void 0&&A.length>0,children:g.jsxs(b.Box,{sx:{position:"fixed",bottom:"16px",right:"16px"},children:[g.jsx(b.Fab,{color:"primary","aria-label":"manage",onClick:o,children:A==null?void 0:A.length}),g.jsx(b.Popover,{id:C,open:h,anchorEl:n,onClose:s,anchorOrigin:{vertical:"top",horizontal:a?"center":"right"},transformOrigin:{vertical:"bottom",horizontal:a?"center":"right"},disableScrollLock:!0,elevation:10,children:g.jsxs(b.List,{sx:If,children:[g.jsx(b.ListItem,{sx:If,children:g.jsx(D.Button,{onClick:E,sx:ib,label:"ra.action.unselect",startIcon:g.jsx(Yc,{}),children:g.jsx(Yc,{})})}),R.Children.map(t,m=>{var B;return g.jsx(b.ListItem,{sx:If,children:R.isValidElement(m)?R.cloneElement(m,{filterValues:c,resource:u,selectedIds:A,sx:ib,...(B=m.props)!=null&&B.popover?{closePopover:s}:{}}):null})})]})})]})})}const sb=Q.createContext({});sb.displayName="DatagridContext";const DH=({children:e,value:t})=>g.jsx(sb.Provider,{value:t,children:e}),ab=g.jsx(D.BulkDeleteButton,{}),lb=R.forwardRef((e,t)=>{const{optimized:n=!1,body:r=n?D.PureDatagridBody:D.DatagridBody,header:o=D.DatagridHeader,children:s,className:a,empty:c=RH,expand:u,bulkActionsToolbar:A=!1,bulkActionButtons:p=ab,hover:h,isRowSelectable:C,isRowExpandable:E,resource:m,rowClick:B,rowSx:v,rowStyle:S,size:M="small",sx:x,expandSingle:O=!1,...P}=e,{sort:F,data:L,isLoading:K,onSelect:J,onToggleItem:ee,selectedIds:G,setSort:se,total:ae}=ue.useListContext(e),_=!!p,q=Q.useMemo(()=>({isRowExpandable:E,expandSingle:O}),[E,O]),z=Q.useRef(null);Q.useEffect(()=>{(!G||G.length===0)&&(z.current=null)},[JSON.stringify(G)]);const Z=Q.useCallback((N,$)=>{const H=L.map(ce=>ce.id),X=H.indexOf(z.current);if(z.current=$.target.checked?N:null,$.shiftKey&&X!==-1){const ce=H.indexOf(N),he=H.slice(Math.min(X,ce),Math.max(X,ce)+1),ge=$.target.checked?nN(G,he):CN(G,he);J(C?ge.filter(fe=>C(L.find(Ce=>Ce.id===fe))):ge)}else ee(N)},[L,C,J,ee,G]);return K===!0?g.jsx(D.DatagridLoading,{className:a,expand:u,hasBulkActions:_,nbChildren:R.Children.count(s),size:M}):L==null||L.length===0||ae===0?c||null:g.jsx(DH,{value:q,children:g.jsxs(D.DatagridRoot,{sx:x,className:Ue(D.DatagridClasses.root,a),children:[A!=null&&Q.isValidElement(A)?Q.cloneElement(A,{selectedIds:G,total:ae}):p!==!1?g.jsx(ob,{children:Q.isValidElement(p)?p:ab}):null,g.jsx("div",{className:D.DatagridClasses.tableWrapper,children:g.jsxs(b.Table,{ref:t,className:D.DatagridClasses.table,size:M,...kH(P),children:[cb(o,{children:s,sort:F,data:L,hasExpand:!!u,hasBulkActions:_,isRowSelectable:C,onSelect:J,resource:m,selectedIds:G,setSort:se},s),cb(r,{expand:u,rowClick:B,data:L,hasBulkActions:_,hover:h,onToggleItem:Z,resource:m,rowSx:v,rowStyle:S,selectedIds:G,isRowSelectable:C},s)]})})]})})}),cb=(e,t,n)=>Q.isValidElement(e)?Q.cloneElement(e,t,n):Q.createElement(e,t,n),MH=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],kH=e=>Object.keys(ue.sanitizeListRestProps(e)).filter(t=>!MH.includes(t)).reduce((t,n)=>({...t,[n]:e[n]}),{});lb.displayName="Datagrid";const RH=g.jsx(D.ListNoResults,{}),FH=Ae(lb,{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 LH(e){return g.jsx(FH,{...e})}const NH=Ae("div")(({theme:e})=>({padding:e.spacing(2)}));function VH({actions:e,className:t,...n}){const{hasCreate:r}=ue.useResourceDefinition(n),o=ue.useResourceContext(n),s=ue.useTranslate(),a=ue.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 g.jsxs(HH,{className:t,children:[g.jsxs("div",{className:Ai.message,children:[g.jsx(zn.Inbox,{className:Ai.icon}),g.jsx(b.Typography,{variant:"h4",paragraph:!0,children:s(`resources.${o}.empty`,{_:u})}),r&&g.jsx(b.Typography,{variant:"body1",children:s(`resources.${o}.invite`,{_:A})})]}),g.jsx(NH,{className:Ai.toolbar,children:e})]})}const nu="ApplicaEmpty",Ai={message:`${nu}-message`,icon:`${nu}-icon`,toolbar:`${nu}-toolbar`},HH=Ae("span",{name:nu,overridesResolver:(e,t)=>t.root})(({theme:e})=>({flex:1,[`& .${Ai.message}`]:{textAlign:"center",opacity:e.palette.mode==="light"?.5:.8,margin:"0 1em",color:e.palette.mode==="light"?"inherit":e.palette.text.primary},[`& .${Ai.icon}`]:{width:"9em",height:"9em"},[`& .${Ai.toolbar}`]:{textAlign:"center",marginTop:"2em"}})),zH=g.jsx(D.ListActions,{}),WH=g.jsx(D.Pagination,{}),UH=g.jsx(D.Empty,{}),YH=QN,GH=e=>{const{actions:t=zH,aside:n,filters:r,bulkActionButtons:o,emptyWhileLoading:s,hasCreate:a,pagination:c=WH,children:u,className:A,component:p=YH,title:h,empty:C=UH,...E}=e,{defaultTitle:m,data:B,error:v,isLoading:S,filterValues:M,resource:x}=ue.useListContext(e);if(!u||!B&&S&&s)return null;const O=()=>g.jsxs("div",{className:To.main,children:[(r||t)&&g.jsx(D.ListToolbar,{className:To.actions,filters:r,actions:t,hasCreate:a}),!v&&g.jsx(p,{className:To.content,children:o&&u&&R.isValidElement(u)?Q.cloneElement(u,{bulkActionButtons:o}):u}),v?g.jsx($g,{error:v,resetErrorBoundary:null}):c!==!1&&c]}),P=()=>C!==!1&&Q.cloneElement(C,{className:To.noResults,hasCreate:a}),F=!S&&(B==null?void 0:B.length)===0&&!Object.keys(M).length&&C!==!1;return g.jsxs(KH,{className:Ue("list-page",A),...E,children:[g.jsx(D.Title,{title:h,defaultTitle:m,preferenceKey:`${x}.list.title`}),F?P():O(),n]})},Oa="RaList",To={main:`${Oa}-main`,content:`${Oa}-content`,actions:`${Oa}-actions`,noResults:`${Oa}-noResults`},KH=Ae("div",{name:Oa,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",[`& .${To.main}`]:{flex:"1 1 auto",display:"flex",flexDirection:"column"},[`& .${To.content}`]:{position:"relative",[e.breakpoints.down("sm")]:{boxShadow:"none"},overflow:"inherit"},[`& .${To.actions}`]:{},[`& .${To.noResults}`]:{}})),JH=({debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o=XH,filterDefaultValues:s,perPage:a=10,queryOptions:c,resource:u,sort:A,storeKey:p,...h})=>g.jsx(ue.ListBase,{debounce:e,disableAuthentication:t,disableSyncWithLocation:n,exporter:r,filter:o,filterDefaultValues:s,perPage:a,queryOptions:c,resource:u,sort:A,storeKey:p,children:g.jsx(GH,{...h})}),XH={},ZH=Us(JH,{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 _H(e){return g.jsx(Jn,{content:!1,children:g.jsx(ZH,{...e})})}function qH(){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(h=>s.find(C=>C.id===h)),[u,{isLoading:A}]=D.useUpdateMany(n,{ids:o.length>0?o:[a==null?void 0:a.id],data:{readed:yr().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=Q.useCallback(()=>{u()},[u]);return g.jsx(D.Button,{label:"ra.notification.mark_as_readed",disabled:A||(a==null?void 0:a.readed)!==null,onClick:p,children:g.jsx(zn.Email,{})})}function $H(){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(h=>s.find(C=>C.id===h)).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=Q.useCallback(()=>{u()},[u]);return g.jsx(D.Button,{color:"secondary",label:"ra.notification.mark_as_unreaded",disabled:A||a&&!(a!=null&&a.readed),onClick:p,children:g.jsx(zn.Drafts,{})})}function ez(e){const t=D.useRecordContext(e),n=D.useResourceContext(e),r=D.useRedirect(),o=D.useNotify(),s=D.useTranslate(),[a]=D.useLocaleState(),c=Q.useMemo(()=>t!=null&&t.readed?yr(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:yr().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=Q.useCallback(()=>u(),[u]);return g.jsxs("div",{onClick:A,style:{cursor:"pointer"},role:"button",tabIndex:0,children:[g.jsx(b.Typography,{variant:"subtitle1",children:g.jsxs(b.Box,{fontWeight:"bold",children:[" ",t==null?void 0:t.title]})}),g.jsx(b.Typography,{variant:"body1",sx:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:t==null?void 0:t.content}}),c&&g.jsx(b.Typography,{variant:"caption",display:"block",sx:{mt:1},color:"textSecondary",children:s("ra.notification.readed",{readed:c})})]})}function tz({...e}){const t=b.useTheme(),{mode:n,colorize:r,density:o}=Q.useMemo(()=>({mode:t.palette.mode,colorize:t.palette.mode==="dark"?b.darken:b.lighten,density:t.palette.mode==="dark"?.5:.9}),[t.palette.mode]),s=a=>({backgroundColor:a!=null&&a.readed?r(t.palette.secondary[n],o):r(t.palette.primary[n],o)});return g.jsxs(D.Datagrid,{...e,rowSx:s,children:[g.jsx(ez,{source:"notification",sortable:!1}),g.jsx(Jm,{source:"created"}),g.jsxs(Uo,{children:[g.jsx(qH,{}),g.jsx($H,{})]})]})}const nz=Ae(D.SimpleList,{name:"ApplicaSimpleList",slot:"root"})(({theme:e})=>({padding:e.spacing(1),paddingTop:0,paddingBottom:0})),ru={width:"1.5rem",alignSelf:"center"};function rz({source:e,label:t,variant:n="body1",record:r,spaceBottom:o,spaceTop:s,component:a,leftIcon:c,rightIcon:u,button:A,buttonProps:p,...h}){const{getCurrentDialog:C}=Yo(),E=ue.useResourceContext(h),m=C(),B=ue.useRecordContext(),v=r||B,S=at.get(v,e||"");return g.jsxs(b.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:[g.jsxs(b.Stack,{direction:"row",alignItems:"start",children:[c&&(Q.isValidElement(c)?Q.cloneElement(c,{style:ru}):Q.createElement(c,{style:ru})),g.jsx(ue.FieldTitle,{label:t,source:e,resource:m||E})]}),g.jsxs(b.Stack,{direction:"row",alignItems:"center",children:[a?Q.isValidElement(a)?Q.cloneElement(a,{record:v,resource:E,value:S}):Q.createElement(a,{source:e,record:v,resource:E,value:S}):g.jsx(b.Typography,{variant:n,children:S}),u&&(Q.isValidElement(u)?Q.cloneElement(u,{style:ru}):Q.createElement(u,{style:ru})),A&&g.jsx(b.Button,{size:"small",variant:"outlined",sx:{ml:1,p:0},...p,children:A})]})]})}const ub=({children:e,...t})=>{const n=Bt();return g.jsx(Jn,{sx:{maxWidth:{xs:400,lg:475},margin:{xs:2.5,md:3},"& > *":{flexGrow:1,flexBasis:"50%"}},content:!1,...t,border:!1,boxShadow:!0,shadow:n.customShadows.z1,children:g.jsx(b.Box,{sx:{p:{xs:2,sm:3,md:4,xl:5}},children:e})})};ub.propTypes={children:f.node};const ja=({version:e,name:t,copy:n,children:r,logo:o,background:s=al})=>g.jsxs(b.Box,{sx:{minHeight:"100vh"},children:[Q.isValidElement(s)?s:Q.createElement(s),g.jsxs(b.Grid,{container:!0,direction:"column",justifyContent:"flex-end",sx:{minHeight:"100vh"},children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{ml:3},children:o||g.jsx(pf,{title:t})}),g.jsxs(b.Grid,{item:!0,xs:12,children:[g.jsx(b.Grid,{item:!0,xs:12,container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:{xs:"calc(100vh - 210px)",sm:"calc(100vh - 134px)",md:"calc(100vh - 112px)"}},children:g.jsx(b.Grid,{item:!0,children:g.jsx(ub,{children:r})})}),g.jsx(b.Grid,{item:!0,sx:{pb:1},children:g.jsx(xg,{name:t,copy:n,version:e})})]})]})]});ja.propTypes={children:f.node,version:f.string,name:f.string,copy:f.string,background:f.oneOfType([f.node,f.func,f.object])};const Ab=({name:e,copy:t,logo:n,version:r,background:o})=>{const s=ue.useTranslate(),a=ue.useAuthProvider(),c=ue.useNotify(),u=pt.useNavigate(),{token:A}=pt.useParams();return Q.useEffect(()=>{if(typeof a.activate!="function")throw new Error("The authProvider used for the ActivatePage must define an activate() method");a.activate(A).then(()=>{c("ra.auth.activate_success",{type:"info"}),ne.delay(()=>u("/login"),1e3)}).catch(p=>{c(p,{type:"error"}),ne.delay(()=>u("/login"),1e3)})},[A]),g.jsx(ja,{name:e,copy:t,logo:n,version:r,background:o,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:s("ra.auth.activate")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:s("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:s("ra.auth.activate_pending")})]})})};Ab.propTypes={name:f.string.isRequired,version:f.string.isRequired,background:f.node};function db({version:e,name:t,copy:n,logo:r,enablePasswordRecover:o=!1,enableRegistration:s=!1,redirectTo:a,background:c=g.jsx(al,{})}){const[u,A]=ue.useSafeSetState(!1),p=ue.useLogin(),h=ue.useTranslate(),C=ue.useNotify(),E=ue.useCheckAuth(),m=pt.useNavigate();Q.useEffect(()=>{E({},!1).then(()=>{m("/")}).catch(()=>{})},[E,m]);const B=v=>{A(!0),p(v,a).then(()=>{A(!1)}).catch(S=>{A(!1),C(typeof S=="string"?S:typeof S>"u"||!S.message?"ra.auth.sign_in_error":S.message,{type:"error",messageArgs:{_:typeof S=="string"?S:S&&S.message?S.message:void 0}})})};return g.jsx(ja,{name:t,version:e,copy:n,logo:r,background:c,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:"Login"}),s&&g.jsx(b.Typography,{component:pt.Link,to:"/register",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:h("ra.auth.register")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(ue.Form,{onSubmit:B,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(fr,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:ue.required(),placeholder:"user@company.name",fullWidth:!0})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:2},children:g.jsx(fr,{source:"password",label:h("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ue.required(),placeholder:h("ra.auth.password_placeholder"),fullWidth:!0})})]}),o&&g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Stack,{direction:"row",justifyContent:"flex-end",alignItems:"flex-end",spacing:2,children:g.jsx(b.Link,{variant:"h6",component:pt.Link,to:"/recover",color:"text.primary",children:h("ra.auth.forgot_password")})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,children:u?g.jsx(b.CircularProgress,{size:19,thickness:3}):h("ra.auth.sign_in")})})]})})]})})}const gb=({name:e,copy:t,logo:n,version:r,background:o})=>{const[s,a]=Q.useState(!1),c=ue.useTranslate(),u=ue.useRedirect(),A=ue.useNotify(),p=ue.useAuthProvider(),h=({email:C})=>{a(!0),p.recover(C).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 g.jsx(ja,{name:e,copy:t,logo:n,version:r,background:o,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:c("ra.auth.recover.title")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.back_to_login")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(D.Form,{onSubmit:h,children:[g.jsx(b.Grid,{container:!0,children:g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(fr,{source:"email",validate:[ue.required(),ue.email()]})})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1,mb:1},children:g.jsx(b.Typography,{variant:"caption",children:c("ra.auth.recover.inbox_help")})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?g.jsx(b.CircularProgress,{size:19,thickness:3}):c("ra.auth.recover")})})]})})]})})};gb.propTypes={name:f.string.isRequired,version:f.string.isRequired,background:f.node};const fb=({name:e,copy:t,version:n,logo:r,background:o})=>{const[s,a]=Q.useState(!1),c=ue.useTranslate(),u=ue.useRedirect(),A=ue.useNotify(),p=ue.useAuthProvider(),h=C=>{a(!0),p.register(C).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 g.jsx(ja,{name:e,copy:t,logo:r,background:o,version:n,children:g.jsxs(b.Grid,{container:!0,spacing:3,children:[g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(b.Stack,{direction:"row",justifyContent:"space-between",alignItems:"baseline",sx:{mb:{xs:-.5,sm:.5}},children:[g.jsx(b.Typography,{variant:"h3",children:c("ra.auth.register.title")}),g.jsx(b.Typography,{component:pt.Link,to:"/login",variant:"body1",sx:{textDecoration:"none"},color:"primary",children:c("ra.auth.already_have_account")})]})}),g.jsx(b.Grid,{item:!0,xs:12,children:g.jsxs(D.Form,{onSubmit:h,children:[g.jsxs(b.Grid,{container:!0,children:[g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(fr,{source:"name",label:c("ra.register.name"),validate:ue.required()})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(fr,{source:"email",type:"email",validate:[ue.required(),ue.email()]})}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mb:1},children:g.jsx(fr,{source:"password",type:"password",validate:ue.required()})})]}),g.jsx(b.Grid,{item:!0,xs:12,sx:{mt:1},children:g.jsx(b.Button,{variant:"contained",type:"submit",color:"primary",disabled:s,fullWidth:!0,children:s?g.jsx(b.CircularProgress,{size:19,thickness:3}):c("ra.auth.create_account")})})]})})]})})};fb.propTypes={name:f.string.isRequired,version:f.string.isRequired};function pb(){const e=Q.useCallback(()=>location.reload(),[]);return g.jsx(b.Container,{children:g.jsxs(b.Stack,{alignItems:"center",px:2,py:{xs:4,sm:8},spacing:2,textAlign:"center",children:[g.jsx("img",{src:Av,style:{width:"100%",maxWidth:450}}),g.jsx(b.Typography,{variant:"h2",children:"Ops! An error occurred..."}),g.jsx(b.Typography,{children:"We're fixing the problem. Please try again later."}),g.jsx(b.Button,{onClick:e,variant:"contained",children:"Reload"})]})})}const oz=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 ${He(e.palette.grey[900],.08)}`,primary:`0 0 0 2px ${He(e.palette.primary.main,.2)}`,secondary:`0 0 0 2px ${He(e.palette.secondary.main,.2)}`,error:`0 0 0 2px ${He(e.palette.error.main,.2)}`,warning:`0 0 0 2px ${He(e.palette.warning.main,.2)}`,info:`0 0 0 2px ${He(e.palette.info.main,.2)}`,success:`0 0 0 2px ${He(e.palette.success.main,.2)}`,grey:`0 0 0 2px ${He(e.palette.grey[500],.2)}`,primaryButton:`0 14px 12px ${He(e.palette.primary.main,.2)}`,secondaryButton:`0 14px 12px ${He(e.palette.secondary.main,.2)}`,errorButton:`0 14px 12px ${He(e.palette.error.main,.2)}`,warningButton:`0 14px 12px ${He(e.palette.warning.main,.2)}`,infoButton:`0 14px 12px ${He(e.palette.info.main,.2)}`,successButton:`0 14px 12px ${He(e.palette.success.main,.2)}`,greyButton:`0 14px 12px ${He(e.palette.grey[500],.2)}`});function tr(e,t){iz(e)&&(e="100%");var n=sz(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 iz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function sz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function az(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ou(e){return e<=1?"".concat(Number(e)*100,"%"):e}function mf(e){return e.length===1?"0"+e:String(e)}function lz(e,t,n){return{r:tr(e,255)*255,g:tr(t,255)*255,b:tr(n,255)*255}}function Bf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cz(e,t,n){var r,o,s;if(e=tr(e,360),t=tr(t,100),n=tr(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=Bf(c,a,e+1/3),o=Bf(c,a,e),s=Bf(c,a,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function uz(e,t,n){e=tr(e,255),t=tr(t,255),n=tr(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 Az(e,t,n){e=tr(e,360)*6,t=tr(t,100),n=tr(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],h=[s,s,c,n,n,a][u];return{r:A*255,g:p*255,b:h*255}}function dz(e,t,n,r){var o=[mf(Math.round(e).toString(16)),mf(Math.round(t).toString(16)),mf(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 hb(e){return Mn(e)/255}function Mn(e){return parseInt(e,16)}var Cb={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 Da(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=pz(e)),typeof e=="object"&&(Jr(e.r)&&Jr(e.g)&&Jr(e.b)?(t=lz(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jr(e.h)&&Jr(e.s)&&Jr(e.v)?(r=ou(e.s),o=ou(e.v),t=Az(e.h,r,o),a=!0,c="hsv"):Jr(e.h)&&Jr(e.s)&&Jr(e.l)&&(r=ou(e.s),s=ou(e.l),t=cz(e.h,r,s),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=az(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 gz="[-\\+]?\\d+%?",fz="[-\\+]?\\d*\\.\\d+%?",So="(?:".concat(fz,")|(?:").concat(gz,")"),vf="[\\s|\\(]+(".concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")\\s*\\)?"),yf="[\\s|\\(]+(".concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")[,|\\s]+(").concat(So,")\\s*\\)?"),pr={CSS_UNIT:new RegExp(So),rgb:new RegExp("rgb"+vf),rgba:new RegExp("rgba"+yf),hsl:new RegExp("hsl"+vf),hsla:new RegExp("hsla"+yf),hsv:new RegExp("hsv"+vf),hsva:new RegExp("hsva"+yf),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 pz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Cb[e])e=Cb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=pr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=pr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=pr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=pr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pr.hex8.exec(e),n?{r:Mn(n[1]),g:Mn(n[2]),b:Mn(n[3]),a:hb(n[4]),format:t?"name":"hex8"}:(n=pr.hex6.exec(e),n?{r:Mn(n[1]),g:Mn(n[2]),b:Mn(n[3]),format:t?"name":"hex"}:(n=pr.hex4.exec(e),n?{r:Mn(n[1]+n[1]),g:Mn(n[2]+n[2]),b:Mn(n[3]+n[3]),a:hb(n[4]+n[4]),format:t?"name":"hex8"}:(n=pr.hex3.exec(e),n?{r:Mn(n[1]+n[1]),g:Mn(n[2]+n[2]),b:Mn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Jr(e){return!!pr.CSS_UNIT.exec(String(e))}var iu=2,Eb=.16,hz=.05,Cz=.05,Ez=.15,Ib=5,mb=4,Iz=[{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 Bb(e){var t=e.r,n=e.g,r=e.b,o=uz(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function su(e){var t=e.r,n=e.g,r=e.b;return"#".concat(dz(t,n,r,!1))}function mz(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 vb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-iu*t:Math.round(e.h)+iu*t:r=n?Math.round(e.h)+iu*t:Math.round(e.h)-iu*t,r<0?r+=360:r>=360&&(r-=360),r}function yb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Eb*t:t===mb?r=e.s+Eb:r=e.s+hz*t,r>1&&(r=1),n&&t===Ib&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function bb(e,t,n){var r;return n?r=e.v+Cz*t:r=e.v-Ez*t,r>1&&(r=1),Number(r.toFixed(2))}function Qb(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Da(e),o=Ib;o>0;o-=1){var s=Bb(r),a=su(Da({h:vb(s,o,!0),s:yb(s,o,!0),v:bb(s,o,!0)}));n.push(a)}n.push(su(r));for(var c=1;c<=mb;c+=1){var u=Bb(r),A=su(Da({h:vb(u,c),s:yb(u,c),v:bb(u,c)}));n.push(A)}return t.theme==="dark"?Iz.map(function(p){var h=p.index,C=p.opacity,E=su(mz(Da(t.backgroundColor||"#141414"),Da(n[h]),C*100));return E}):n}var bf={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Kt={},au={};Object.keys(bf).forEach(function(e){Kt[e]=Qb(bf[e]),Kt[e].primary=Kt[e][5],au[e]=Qb(bf[e],{theme:"dark",backgroundColor:"#141414"}),au[e].primary=au[e][5]}),Kt.red,Kt.volcano,Kt.gold,Kt.orange,Kt.yellow,Kt.lime,Kt.green,Kt.cyan,Kt.blue,Kt.geekblue,Kt.purple,Kt.magenta,Kt.grey,Kt.grey;const xb=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}};xb.propTypes={colors:f.object};const 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=["#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}},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=["#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}},yz=(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}},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=["#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}},Qz=(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}},xz=(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}},wz=(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}},Tz=(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}},wb=(e,t,n)=>{switch(t){case"theme1":return Bz(e,n);case"theme2":return vz(e,n);case"theme3":return yz(e,n);case"theme4":return bz(e,n);case"theme5":return Qz(e,n);case"theme6":return xz(e,n);case"theme7":return wz(e,n);case"theme8":return Tz(e,n);default:return xb(e)}};wb.propTypes={colors:f.object,presetColor:f.any};const Sz=(e,t)=>{const n=e==="dark"?au:Kt;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=wb(n,t,e);return DA({palette:{mode:e,common:{black:"#000",white:"#fff"},...a,text:{primary:e==="dark"?He(a.grey[900],.87):a.grey[700],secondary:e==="dark"?He(a.grey[900],.45):a.grey[500],disabled:e==="dark"?He(a.grey[900],.1):a.grey[400]},action:{disabled:a.grey[300]},divider:e==="dark"?He(a.grey[900],.05):a.grey[200],background:{paper:e==="dark"?a.grey[100]:a.grey[0],default:a.grey.A50}}})},Pz=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 Oz(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 jz(e){return{MuiAccordionDetails:{styleOverrides:{root:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.secondary.light}`}}}}}function Dz(e){const{palette:t,spacing:n}=e;return{MuiAccordionSummary:{defaultProps:{expandIcon:g.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 di({color:e,theme:t}){const n=en(t,e),{lighter:r,light:o,main:s}=n;return{borderColor:He(o,.5),backgroundColor:r,"& .MuiAlert-icon":{color:s}}}function Mz(e){const t=di({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":di({color:"primary",theme:e}),"&.MuiAlert-borderSecondary":di({color:"secondary",theme:e}),"&.MuiAlert-borderError":di({color:"error",theme:e}),"&.MuiAlert-borderSuccess":di({color:"success",theme:e}),"&.MuiAlert-borderInfo":di({color:"info",theme:e}),"&.MuiAlert-borderWarning":di({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 kz(){return{MuiAlertTitle:{styleOverrides:{root:{marginBottom:4,marginTop:0,fontWeight:400}}}}}function Rz(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 gi({color:e,theme:t}){const n=en(t,e),{lighter:r,main:o}=n;return{color:o,backgroundColor:r}}function Fz(e){const t=gi({color:"primary",theme:e});return{MuiBadge:{styleOverrides:{standard:{minWidth:e.spacing(2),height:e.spacing(2),padding:e.spacing(.5)},light:{...t,"&.MuiBadge-colorPrimary":gi({color:"primary",theme:e}),"&.MuiBadge-colorSecondary":gi({color:"secondary",theme:e}),"&.MuiBadge-colorError":gi({color:"error",theme:e}),"&.MuiBadge-colorInfo":gi({color:"info",theme:e}),"&.MuiBadge-colorSuccess":gi({color:"success",theme:e}),"&.MuiBadge-colorWarning":gi({color:"warning",theme:e})}}}}}function et({variant:e,color:t,theme:n}){const r=en(n,t),{lighter:o,main:s,dark:a,contrastText:c}=r,u=`${t}Button`,A=es(n,u),p={"&::after":{boxShadow:`0 0 5px 5px ${He(s,.9)}`},"&:active::after":{boxShadow:`0 0 0 0 ${He(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 Lz(e){const t=et({variant:"dashed",color:"primary",theme:e}),n=et({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":et({variant:"dashed",color:"primary",theme:e}),"&.MuiButton-dashedSecondary":et({variant:"dashed",color:"secondary",theme:e}),"&.MuiButton-dashedError":et({variant:"dashed",color:"error",theme:e}),"&.MuiButton-dashedSuccess":et({variant:"dashed",color:"success",theme:e}),"&.MuiButton-dashedInfo":et({variant:"dashed",color:"info",theme:e}),"&.MuiButton-dashedWarning":et({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":et({variant:"shadow",color:"primary",theme:e}),"&.MuiButton-shadowSecondary":et({variant:"shadow",color:"secondary",theme:e}),"&.MuiButton-shadowError":et({variant:"shadow",color:"error",theme:e}),"&.MuiButton-shadowSuccess":et({variant:"shadow",color:"success",theme:e}),"&.MuiButton-shadowInfo":et({variant:"shadow",color:"info",theme:e}),"&.MuiButton-shadowWarning":et({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:et({variant:"contained",color:"primary",theme:e}),containedSecondary:et({variant:"contained",color:"secondary",theme:e}),containedError:et({variant:"contained",color:"error",theme:e}),containedSuccess:et({variant:"contained",color:"success",theme:e}),containedInfo:et({variant:"contained",color:"info",theme:e}),containedWarning:et({variant:"contained",color:"warning",theme:e}),outlinedPrimary:et({variant:"outlined",color:"primary",theme:e}),outlinedSecondary:et({variant:"outlined",color:"secondary",theme:e}),outlinedError:et({variant:"outlined",color:"error",theme:e}),outlinedSuccess:et({variant:"outlined",color:"success",theme:e}),outlinedInfo:et({variant:"outlined",color:"info",theme:e}),outlinedWarning:et({variant:"outlined",color:"warning",theme:e}),textPrimary:et({variant:"text",color:"primary",theme:e}),textSecondary:et({variant:"text",color:"secondary",theme:e}),textError:et({variant:"text",color:"error",theme:e}),textSuccess:et({variant:"text",color:"success",theme:e}),textInfo:et({variant:"text",color:"info",theme:e}),textWarning:et({variant:"text",color:"warning",theme:e}),sizeExtraSmall:{minWidth:56,fontSize:"0.625rem",padding:"2px 8px"}}}}}function Nz(){return{MuiButtonBase:{defaultProps:{disableRipple:!0,size:"medium"}}}}function Vz(){return{MuiButtonGroup:{defaultProps:{disableRipple:!0}}}}function Hz(){return{MuiCardContent:{styleOverrides:{root:{padding:20,"&:last-child":{paddingBottom:20}}}}}}function Es({color:e,theme:t}){const n=en(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 zz(e){switch(e){case"small":return{size:16,fontSize:1,position:1};case"large":return{size:24,fontSize:1.6,position:2};case"medium":default:return{size:20,fontSize:1.35,position:2}}}function Qf(e){const t=zz(e);return{"& .icon":{width:t.size,height:t.size,"& .filled":{fontSize:`${t.fontSize}rem`,top:-t.position,left:-t.position}}}}function Wz(e){const{palette:t}=e;return{MuiCheckbox:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(_e.CheckSquareFilled,{className:"filled",style:{position:"absolute"}})}),indeterminateIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:.25,position:"relative"},children:g.jsx(_e.MinusSquareFilled,{className:"filled",style:{position:"absolute"}})})},styleOverrides:{root:{borderRadius:0,color:t.secondary[300],"&.size-small":{...Qf("small")},"&.size-medium":{...Qf("medium")},"&.size-large":{...Qf("large")}},colorPrimary:Es({color:"primary",theme:e}),colorSecondary:Es({color:"secondary",theme:e}),colorSuccess:Es({color:"success",theme:e}),colorWarning:Es({color:"warning",theme:e}),colorInfo:Es({color:"info",theme:e}),colorError:Es({color:"error",theme:e})}}}}function Is({color:e,theme:t}){const n=en(t,e),{dark:r}=n;return{"&.Mui-focusVisible":{outline:`2px solid ${r}`,outlineOffset:2}}}function kn({color:e,theme:t}){const n=en(t,e),{light:r,lighter:o,main:s}=n;return{color:s,backgroundColor:o,borderColor:r,"& .MuiChip-deleteIcon":{color:s,"&:hover":{color:r}}}}function Uz(e){const t=kn({color:"secondary",theme:e});return{MuiChip:{styleOverrides:{root:{borderRadius:4,"&:active":{boxShadow:"none"},"&.MuiChip-colorPrimary":Is({color:"primary",theme:e}),"&.MuiChip-colorSecondary":Is({color:"secondary",theme:e}),"&.MuiChip-colorError":Is({color:"error",theme:e}),"&.MuiChip-colorInfo":Is({color:"info",theme:e}),"&.MuiChip-colorSuccess":Is({color:"success",theme:e}),"&.MuiChip-colorWarning":Is({color:"warning",theme:e})},sizeLarge:{fontSize:"1rem",height:40},light:{...t,"&.MuiChip-lightPrimary":kn({color:"primary",theme:e}),"&.MuiChip-lightSecondary":kn({color:"secondary",theme:e}),"&.MuiChip-lightError":kn({color:"error",theme:e}),"&.MuiChip-lightInfo":kn({color:"info",theme:e}),"&.MuiChip-lightSuccess":kn({color:"success",theme:e}),"&.MuiChip-lightWarning":kn({color:"warning",theme:e})},combined:{border:"1px solid",...t,"&.MuiChip-combinedPrimary":kn({color:"primary",theme:e}),"&.MuiChip-combinedSecondary":kn({color:"secondary",theme:e}),"&.MuiChip-combinedError":kn({color:"error",theme:e}),"&.MuiChip-combinedInfo":kn({color:"info",theme:e}),"&.MuiChip-combinedSuccess":kn({color:"success",theme:e}),"&.MuiChip-combinedWarning":kn({color:"warning",theme:e})}}}}}function Yz(){return{MuiDialog:{styleOverrides:{root:{"& .MuiBackdrop-root":{backgroundColor:He("#000",.7)}}}}}}function Gz(e){return{MuiDialogContentText:{styleOverrides:{root:{fontSize:"0.875rem",color:e.palette.text.primary}}}}}function Kz(){return{MuiDialogTitle:{styleOverrides:{root:{fontSize:"1rem",fontWeight:500}}}}}function ms({color:e,theme:t}){const n=en(t,e),{main:r,dark:o,contrastText:s}=n,a=`${e}Button`,c=es(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 ${He(r,.9)}`},"&:active::after":{borderRadius:"50px",boxShadow:`0 0 0 0 ${He(r,.9)}`}}}function Jz(e){return{MuiFab:{styleOverrides:{root:{fontWeight:400,"&.Mui-disabled":{backgroundColor:e.palette.grey[200]},"&.MuiFab-primary":ms({color:"primary",theme:e}),"&.MuiFab-secondary":ms({color:"secondary",theme:e}),"&.Mui-error":ms({color:"error",theme:e}),"&.MuiFab-success":ms({color:"success",theme:e}),"&.MuiFab-info":ms({color:"info",theme:e}),"&.MuiFab-warning":ms({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 Xz(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 Zz(){return{MuiInputBase:{styleOverrides:{}}}}function _z(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 qz(){return{MuiLinearProgress:{styleOverrides:{root:{height:6,borderRadius:100},bar:{borderRadius:100}}}}}function $z(){return{MuiLink:{defaultProps:{underline:"hover"}}}}function eW(e){return{MuiListItemButton:{styleOverrides:{root:{"&.Mui-selected":{color:e.palette.primary.main,"& .MuiListItemIcon-root":{color:e.palette.primary.main}}}}}}}function tW(e){return{MuiListItemIcon:{styleOverrides:{root:{minWidth:24,color:e.palette.text.primary}}}}}function nW(){return{MuiListItemText:{styleOverrides:{root:{"&.MuiListItemText-inset":{paddingLeft:24}}}}}}function rW(){return{MuiLoadingButton:{styleOverrides:{root:{padding:"6px 16px","&.MuiLoadingButton-loading":{opacity:.6,textShadow:"none"}}}}}}function fi({variant:e,theme:t}){const n=en(t,e),{light:r}=n,o=es(t,`${e}`);return{"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:r},"&.Mui-focused":{boxShadow:o,"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${r}`}}}}function oW(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:{...fi({variant:"primary",theme:e}),"&.Mui-error":{...fi({variant:"error",theme:e})}},inputSizeSmall:{padding:"7.5px 8px 7.5px 12px"},inputMultiline:{padding:0},colorSecondary:fi({variant:"secondary",theme:e}),colorError:fi({variant:"error",theme:e}),colorWarning:fi({variant:"warning",theme:e}),colorInfo:fi({variant:"info",theme:e}),colorSuccess:fi({variant:"success",theme:e})}}}}function iW(){return{MuiPagination:{defaultProps:{shape:"rounded"}}}}function vt({variant:e,color:t,theme:n}){const r=en(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 sW(e){return{MuiPaginationItem:{styleOverrides:{root:{"&:focus-visible":{outline:`2px solid ${e.palette.secondary.dark}`,outlineOffset:2}},text:{"&.Mui-selected":{backgroundColor:"transparent",fontSize:"1rem",fontWeight:500,"&.MuiPaginationItem-textPrimary":vt({variant:"text",color:"primary",theme:e}),"&.MuiPaginationItem-textSecondary":vt({variant:"text",color:"secondary",theme:e}),"&.MuiPaginationItem-textError":vt({variant:"text",color:"error",theme:e}),"&.MuiPaginationItem-textSuccess":vt({variant:"text",color:"success",theme:e}),"&.MuiPaginationItem-textInfo":vt({variant:"text",color:"info",theme:e}),"&.MuiPaginationItem-textWarning":vt({variant:"text",color:"warning",theme:e})}},contained:{"&.Mui-selected":{"&.MuiPaginationItem-containedPrimary":vt({variant:"contained",color:"primary",theme:e}),"&.MuiPaginationItem-containedSecondary":vt({variant:"contained",color:"secondary",theme:e}),"&.MuiPaginationItem-containedError":vt({variant:"contained",color:"error",theme:e}),"&.MuiPaginationItem-containedSuccess":vt({variant:"contained",color:"success",theme:e}),"&.MuiPaginationItem-containedInfo":vt({variant:"contained",color:"info",theme:e}),"&.MuiPaginationItem-containedWarning":vt({variant:"contained",color:"warning",theme:e})}},combined:{border:"1px solid",borderColor:e.palette.divider,"&.MuiPaginationItem-ellipsis":{border:"none"},"&.Mui-selected":{"&.MuiPaginationItem-combinedPrimary":vt({variant:"combined",color:"primary",theme:e}),"&.MuiPaginationItem-combinedSecondary":vt({variant:"combined",color:"secondary",theme:e}),"&.MuiPaginationItem-combinedError":vt({variant:"combined",color:"error",theme:e}),"&.MuiPaginationItem-combinedSuccess":vt({variant:"combined",color:"success",theme:e}),"&.MuiPaginationItem-combinedInfo":vt({variant:"combined",color:"info",theme:e}),"&.MuiPaginationItem-combinedWarning":vt({variant:"combined",color:"warning",theme:e})}},outlined:{borderColor:e.palette.divider,"&.Mui-selected":{backgroundColor:"transparent","&.MuiPaginationItem-outlinedPrimary":vt({variant:"outlined",color:"primary",theme:e}),"&.MuiPaginationItem-outlinedSecondary":vt({variant:"outlined",color:"secondary",theme:e}),"&.MuiPaginationItem-outlinedError":vt({variant:"outlined",color:"error",theme:e}),"&.MuiPaginationItem-outlinedSuccess":vt({variant:"outlined",color:"success",theme:e}),"&.MuiPaginationItem-outlinedInfo":vt({variant:"outlined",color:"info",theme:e}),"&.MuiPaginationItem-outlinedWarning":vt({variant:"outlined",color:"warning",theme:e})}}}}}}function aW(e){return{MuiPopover:{styleOverrides:{paper:{boxShadow:e.customShadows.z1}}}}}function Bs({color:e,theme:t}){const n=en(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 lW(e){switch(e){case"small":return{size:16,dotSize:8,position:3};case"large":return{size:24,dotSize:12,position:5};case"medium":default:return{size:20,dotSize:10,position:4}}}function xf(e){const t=lW(e);return{"& .icon":{width:t.size,height:t.size,"& .dot":{width:t.dotSize,height:t.dotSize,top:t.position,left:t.position}}}}function cW(e){const{palette:t}=e;return{MuiRadio:{defaultProps:{className:"size-small",icon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%"}}),checkedIcon:g.jsx(b.Box,{className:"icon",sx:{width:16,height:16,border:"1px solid",borderColor:"inherit",borderRadius:"50%",position:"relative"},children:g.jsx(b.Box,{className:"dot",sx:{width:8,height:8,backgroundColor:"inherit",borderRadius:"50%",position:"absolute",top:3,left:3}})})},styleOverrides:{root:{color:t.secondary[300],"&.size-small":{...xf("small")},"&.size-medium":{...xf("medium")},"&.size-large":{...xf("large")}},colorPrimary:Bs({color:"primary",theme:e}),colorSecondary:Bs({color:"secondary",theme:e}),colorSuccess:Bs({color:"success",theme:e}),colorWarning:Bs({color:"warning",theme:e}),colorInfo:Bs({color:"info",theme:e}),colorError:Bs({color:"error",theme:e})}}}}function vs({color:e,theme:t}){const n=en(t,e),{main:r}=n;return{border:`2px solid ${r}`}}function uW(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":vs({color:"primary",theme:e}),"&.MuiSlider-thumbColorSecondary":vs({color:"secondary",theme:e}),"&.MuiSlider-thumbColorSuccess":vs({color:"success",theme:e}),"&.MuiSlider-thumbColorWarning":vs({color:"warning",theme:e}),"&.MuiSlider-thumbColorInfo":vs({color:"info",theme:e}),"&.MuiSlider-thumbColorError":vs({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 AW(e){switch(e){case"small":return{width:28,height:16,base:12,thumb:10,trackRadius:8};case"large":return{width:60,height:28,base:32,thumb:22,trackRadius:24};case"medium":default:return{width:44,height:22,base:22,thumb:16,trackRadius:16}}}function wf(e,t){const n=AW(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 dW(e){return{MuiSwitch:{styleOverrides:{track:{opacity:1,backgroundColor:e.palette.secondary[400],boxSizing:"border-box"},thumb:{borderRadius:"50%",transition:e.transitions.create(["width"],{duration:200})},switchBase:{"&.Mui-checked":{color:"#fff","& + .MuiSwitch-track":{opacity:1},"&.Mui-disabled":{color:e.palette.background.paper}},"&.Mui-disabled":{color:e.palette.background.paper,"+.MuiSwitch-track":{opacity:.3}}},root:{color:e.palette.text.primary,padding:0,margin:8,display:"flex","& ~ .MuiFormControlLabel-label":{margin:6},...wf(e,"medium")},sizeLarge:{...wf(e,"large")},sizeSmall:{...wf(e,"small")}}}}}function gW(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 fW(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 pW(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 hW(e){return{MuiTableFooter:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`2px solid ${e.palette.divider}`,borderBottom:`1px solid ${e.palette.divider}`}}}}}function CW(e){return{MuiTableHead:{styleOverrides:{root:{backgroundColor:e.palette.grey[50],borderTop:`1px solid ${e.palette.divider}`,borderBottom:`2px solid ${e.palette.divider}`}}}}}function EW(){return{MuiTablePagination:{styleOverrides:{selectLabel:{fontSize:"0.875rem"},displayedRows:{fontSize:"0.875rem"}}}}}function IW(){return{MuiTableRow:{styleOverrides:{root:{"&:last-of-type":{"& .MuiTableCell-root":{borderBottom:"none"}},"& .MuiTableCell-root":{"&:last-of-type":{paddingRight:24},"&:first-of-type":{paddingLeft:24}}}}}}}function mW(){return{MuiTabs:{styleOverrides:{vertical:{overflow:"visible"}}}}}function BW(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 vW(e){return{MuiTooltip:{styleOverrides:{tooltip:{color:e.palette.background.paper}}}}}function yW(){return{MuiTreeItem:{styleOverrides:{content:{padding:8},iconContainer:{"& svg":{fontSize:"0.625rem"}}}}}}function bW(){return{MuiTypography:{styleOverrides:{gutterBottom:{marginBottom:12}}}}}function QW(e){return at.merge(Oz(e),jz(e),Dz(e),Mz(e),kz(),Rz(e),Fz(e),Lz(e),Nz(),Vz(),Hz(),Wz(e),Uz(e),Yz(),Gz(e),Kz(),Jz(e),Xz(e),Zz(),_z(e),qz(),$z(),eW(e),tW(e),nW(),rW(),oW(e),iW(),sW(e),aW(e),cW(e),uW(e),dW(e),gW(e),fW(e),pW(e),hW(e),CW(e),EW(),IW(),mW(),BW(e),vW(e),yW(),bW())}const lu=({themeOverrides:e,children:t})=>{const n=pn(),{themeDirection:r,mode:o,presetColor:s,fontFamily:a}=n,c=Q.useMemo(()=>Sz(o,s),[o,s]),u=Q.useMemo(()=>Pz(a),[a]),A=Q.useMemo(()=>oz(c),[c]),p=Q.useMemo(()=>ne.merge({breakpoints:{values:{xs:0,sm:768,md:1024,lg:1266,xl:1440}},direction:r,mixins:{toolbar:{minHeight:60,paddingTop:8,paddingBottom:8}},palette:c.palette,customShadows:A,typography:u,shadows:c.shadows.map(()=>"none"),components:{MuiIconButton:{styleOverrides:{sizeExtraSmall:{width:c.spacing(2.6875),height:c.spacing(2.6875),fontSize:"0.625rem"}}}}},typeof e=="function"?e(c):e),[r,c,u,A,e]),h=DA(p),C=ne.cloneDeep(h.components??{});return h.components=ne.merge(QW(h),C),g.jsx(b.StyledEngineProvider,{injectFirst:!0,children:g.jsxs(Yh,{theme:h,children:[g.jsx(b.CssBaseline,{}),t]})})};lu.propTypes={children:f.node,themeOverrides:f.oneOfType([f.object,f.func])};function xW({children:e,theme:t,...n}){return g.jsx(D.CoreAdminContext,{...n,children:g.jsx(lu,{themeOverrides:t,children:g.jsx(hf,{children:e})})})}function Tb(e){const{authProvider:t,catchAll:n,children:r,dashboard:o,dataProvider:s,disableTelemetry:a,history:c,i18nProvider:u,layout:A,loading:p,loginPage:h,authCallbackPage:C,menu:E,notification:m,queryClient:B,requireAuth:v,store:S=D.localStorageStore(),ready:M,theme:x,title:O="React Admin"}=e;return g.jsx(xW,{authProvider:t,dataProvider:s,i18nProvider:u,store:S,history:c,queryClient:B,theme:x,children:g.jsx(D.AdminUI,{layout:A,dashboard:o,disableTelemetry:a,menu:E,catchAll:n,title:O,loading:p,loginPage:h,authCallbackPage:C,notification:m,requireAuth:v,ready:M,children:r})})}class wW{constructor(t){io(this,Ma,void 0);io(this,ka,void 0);io(this,ys,new Set);const{apiUrl:n}=t??{};if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[ErrorMessageHandler] constructor: please provide a valid apiUrl");Vo(this,ka,n),Vo(this,Ma,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}`;xn(this,ys).has(a)||(xn(this,ys).add(a),fetch(`${xn(this,ka)}/ui/error-log`,{method:"PUT",headers:xn(this,Ma),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"),xn(this,ys).delete(a)}))}}Ma=new WeakMap,ka=new WeakMap,ys=new WeakMap;class Sb{constructor({catch:t,display:n,log:r,error:o}){ol(this,"catch");ol(this,"display");ol(this,"log");ol(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 TW=({enabled:e=!0,apiUrl:t,loading:n,catcherFn:r=s=>new Sb({catch:s!=null,display:!1,log:s!=null,error:s}),...o})=>{const s=R.useMemo(()=>o.errorHandler?o.errorHandler:new wW({apiUrl:t}),[t,o.errorHandler]),a=console.error,c=R.useCallback(function(u,...A){var h;if(!u)return!1;const p=r(u instanceof ErrorEvent?u:(h=u==null?void 0:u.toString())==null?void 0:h.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 R.useEffect(()=>(window.removeEventListener("error",c),window.addEventListener("error",c),console.error=c,()=>{window.removeEventListener("error",c),console.error=a}),[c]),!0};class SW{constructor(t){io(this,Ra,void 0);io(this,Fa,void 0);io(this,hi,[]);const{apiUrl:n}=t??{};if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[MissingMessageHandler] constructor: please provide a valid apiUrl");Vo(this,Fa,n),Vo(this,Ra,new Headers({Accept:"application/json","Content-Type":"application/json"}))}handleMessage(t){if(!ne.isPlainObject(t))throw new Error("[MissingMessageHandler] handleMessage: please provide valid message data");const{code:n,lang:r}=t;if(!ne.isString(n)||ne.isEmpty(n))throw new Error("[MissingMessageHandler] handleMessage: please provide valid code");if(!ne.isString(r)||ne.isEmpty(r))throw new Error("[MissingMessageHandler] handleMessage: please provide valid lang");if(!ne.some(xn(this,hi),o=>ne.isEqual(o,{code:n,lang:r}))){xn(this,hi).push({code:n,lang:r}),fetch(`${xn(this,Fa)}/i18n/message`,{method:"put",headers:xn(this,Ra),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),Vo(this,hi,ne.reject(xn(this,hi),s=>ne.isEqual(s,{code:n,lang:r})))});return}}}Ra=new WeakMap,Fa=new WeakMap,hi=new WeakMap;function Pb(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 SW({apiUrl:t}),u=()=>fetch(`${t}/i18n/languages`,{headers:a,method:"get"}).then(h=>h.json()).catch(()=>Promise.resolve(s)),A=()=>fetch(`${t}/i18n/messages`,{headers:a,method:"get"}).then(h=>h.json()).then(h=>h.reduce((C,E)=>({...C,[E.lang]:{...C[E.lang]||{},[E.code]:E.text}}),{})),p=(h,C,E)=>(r||console.error(`Warning: Missing translation for key: "${h}"`),o&&(ne.isString(h)?h.match(new RegExp(/[\s[\]]/,"gm"))?console.error(`[createI18nProvider] onMissingKey: illegal character in key ${h}`):c.handleMessage({code:h,lang:E}):console.error("[createI18nProvider] onMissingKey: provided key is not a string")),h);return Promise.all([u(),A()]).then(h=>{const[C,E]=h;function m(B){return ne.get(E,B,{})}return o1(m,n,C,{allowMissing:r||o,onMissingKey:p})})}window.React=Q;const PW=({apiUrl:e,endpoint:t="/languages/load",mapper:n=({data:r})=>({data:r})})=>{const[r,o]=Q.useState({loading:!0,languages:null});return Q.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 Ob(e){const[t,n]=Q.useState(),r=OC(e);return Q.useEffect(()=>{Pb(r).then(o=>{n(o)}).catch(()=>{n({error:!0})})},[r]),t}const OW=new Oi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function jW({theme:e,themeConfig:t,apiUrl:n,defaultLocale:r="en",development:o=!1,logoMain:s,logoIcon:a,loginPage:c=g.jsx(db,{version:"0.0.0",name:"Applica",redirectTo:"/",background:g.jsx(al,{})}),menu:u,name:A,copy:p,version:h="0.0.0",dataProvider:C,authProvider:E,errorHandler:m,error:B,enableNotification:v=!1,enableRegistration:S=!1,enablePasswordRecover:M=!1,enableThemeToggler:x=!1,queryClient:O=OW,background:P,notificationAPI:F="entities/notification",...L}){TW({apiUrl:n,errorHandler:m,catcherFn:G=>{const se=G==null?void 0:G.toString(),_=["Invalid prop `file` of type `string` supplied to `FileInputPreview`, expected `object`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(Switch)`, expected `boolean`.","Failed prop type: Invalid prop `checked` of type `string` supplied to `ForwardRef(SwitchBase)`, expected `boolean`.","Support for defaultProps will be removed from function components in a future major release.","validateDOMNesting(...): <form> cannot appear as a descendant of <form>.","Missing translation for key:","HttpError: "].some(z=>se==null?void 0:se.includes(z));return new Sb({catch:_,display:!_,log:!_,error:se})}});const K=Q.useMemo(()=>Q.isValidElement(c)?Q.cloneElement(c,{name:A,copy:p,logo:s,version:h,background:P,enableRegistration:S,enablePasswordRecover:M}):c,[c,A,h,p,P,s,S,M]),J=Q.useMemo(()=>G=>{const se=A?g.jsx(pf,{title:A}):s,ae=A?g.jsx(Cf,{title:A}):a;return g.jsx(Yy,{...G,name:A,copy:p,enableThemeToggler:x,version:h,logoMain:se,logoIcon:ae,notification:F,enableNotification:v,error:B})},[s,a,A,h,B,F,v]),ee=Ob({apiUrl:n,defaultLocale:r,allowMissing:o,createMissing:o});return ee===void 0?g.jsx(g.Fragment,{}):ee.error?g.jsx(Pl,{initialConfig:t,children:g.jsx(lu,{themeOverrides:e,children:g.jsx(pb,{})})}):g.jsx(NA,{children:g.jsx(qh,{menu:u,children:g.jsx(Pl,{initialConfig:t,children:g.jsx(Tb,{theme:e,layout:J,notification:eb,queryClient:O,dataProvider:C,authProvider:E,i18nProvider:ee,loginPage:K,...L})})})})}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,"FilterButton",{enumerable:!0,get:()=>D.FilterButton}),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=GM,j.ActionsMenu=Uo,j.ActivatePage=Ab,j.Admin=Tb,j.AnimateButton=am,j.AppBarStyled=DC,j.AppConfigContext=LA,j.AppConfigProvider=NA,j.ApplicaAdmin=jW,j.ArrayInput=YM,j.AttachmentField=Um,j.AttachmentInput=h3,j.AuthBackground=al,j.AutocompleteArrayInput=E3,j.AutocompleteInput=m3,j.Avatar=ua,j.BooleanInput=v3,j.Breadcrumbs=bm,j.BulkActionsToolbar=ob,j.BulkActionsToolbarClasses=er,j.BulkFloatingActionsToolbar=jH,j.CardForm=Vm,j.ChangePasswordForm=fg,j.CircularWithLabel=Rm,j.CircularWithPath=Fm,j.CoverField=Gm,j.Create=q3,j.CreateInDialogButton=TH,j.Datagrid=LH,j.DateAgoField=Jm,j.DateField=t3,j.DateInput=b3,j.DateTimeInput=x3,j.Dot=Ac,j.Drawer=Ny,j.DrawerHeader=Bv,j.DrawerHeaderStyled=mv,j.DrawerToggle=X0,j.Edit=ek,j.EditInDialogButton=PH,j.EmailField=r3,j.Empty=VH,j.EmptyClasses=Ai,j.FileField=Xm,j.FileInput=T3,j.Footer=xg,j.FormHeader=rk,j.FunctionField=i3,j.GenericErrorPage=pb,j.Header=Z0,j.HeaderButton=KS,j.HeaderIconButton=NM,j.HeaderNotification=_0,j.HeaderProfile=q0,j.HeaderSpacer=eB,j.HeaderToggleButton=ns,j.HorizontalBar=Vy,j.IconButton=ts,j.ImageField=Ym,j.ImageInput=S3,j.ImpersonateUserButton=BH,j.LabeledArrayInput=zm,j.LabeledInput=ln,j.Layout=Yy,j.LayoutContent=dv,j.LayoutProvider=G0,j.LayoutWrapper=gv,j.LinearWithIcon=Lm,j.LinearWithLabel=Nm,j.List=_H,j.ListItem=rz,j.Loadable=iH,j.Loader=$y,j.LoadingButton=gg,j.LocalStorage=SC,j.LocalizedTextField=a3,j.LocalizedTextInput=j3,j.LoginPage=db,j.Logo=ef,j.LongForm=Ot,j.MainCard=Jn,j.MainIcon=pf,j.MenuConfigContext=HA,j.MenuConfigProvider=qh,j.MenuPopover=RA,j.NavGroup=df,j.NavMenu=Hy,j.Navigation=Wy,j.Notification=eb,j.NotificationList=tz,j.NumberInput=M3,j.OnboardingModes=Sa,j.OnboardingProvider=pH,j.OnboardingTip=mH,j.RawTableFormIterator=U0,j.ReadonlyField=A3,j.RecordInput=k3,j.RecoverPage=gb,j.ReferenceArrayInput=R3,j.ReferenceInput=F3,j.ReferenceManyField=_m,j.ReferenceManyInput=L3,j.RegisterPage=fb,j.ResponsiveSection=$0,j.ScrollTop=hf,j.ScrollX=aH,j.SearchInput=V3,j.SelectArrayInput=z3,j.SelectInput=U3,j.Show=Ik,j.SimpleBar=Af,j.SimpleForm=Hm,j.SimpleFormIterator=Bk,j.SimpleList=nz,j.SizeField=g3,j.SmallIcon=Cf,j.SmartTextInput=Y3,j.TabbedForm=mg,j.TableFormIterator=_F,j.TableFormIteratorContext=zA,j.TableFormIteratorItem=w0,j.TableFormIteratorItemContext=WA,j.TextField=Zm,j.TextInput=fr,j.ThemeConfigContext=VA,j.ThemeConfigProvider=Pl,j.ThemeProvider=lu,j.ThemeToggler=Uy,j.TimeInput=X3,j.Toolbar=ii,j.Tooltip=fc,j.Transitions=mo,j.createI18nProvider=Pb,j.getLocalizedValue=KA,j.localizedValueHasAllLocales=GA,j.parseTime=sC,j.useAppConfig=Yo,j.useBreadcrumbs=rC,j.useGetLocalizedValue=WS,j.useI18nLanguages=PW,j.useI18nProvider=Ob,j.useLayoutContext=Qg,j.useLayoutDispatch=e5,j.useLayoutDrawerState=si,j.useLayoutLogoState=J0,j.useLayoutMediaState=Pn,j.useLayoutNotificationsState=Qc,j.useLayoutState=ss,j.useLayoutThemeState=t5,j.useLocalStorage=Ll,j.useLocalizedValue=zS,j.useMemoizedObject=OC,j.useMenu=YA,j.useMenuConfig=Go,j.usePopoverState=Nl,j.useRefDimensions=YS,j.useResourceDefaultValues=_3,j.useResourceTitle=sd,j.useRestartOnboarding=EH,j.useSx=dr,j.useTableFormIterator=jC,j.useTableFormIteratorItem=GS,j.useThemeConfig=pn,j.uuid=qT,j.withLayoutProvider=K0,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
269
269
|
//# sourceMappingURL=react-admin.umd.js.map
|
package/package.json
CHANGED