Files
doormile_crm_build/dist/assets/Close-De-TqcI0.js

2 lines
31 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{m as tt,n as et,a as d,o as ot,w as ee,P as oe,F as Se,_ as Y,p as s,x as jt,j as r,q as k,y as rt,t as lt,v as I,z as Be,A as Ce,T as le,E as ye,G as yt,H as ne,J as Lt,I as mt,K as Pe,L as Ie,M as we,N as Re,O as Me,Q as se,R as re,V as Ct,W as $t,X as Te,r as ct,i as dt,S as $e,B as De}from"./index-BkkG8KUK.js";import{e as Wt}from"./EmptyState-u8BSH__T.js";import{S as ke}from"./TextField-oZbmUKuy.js";let it;function ae(){if(it)return it;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),it="reverse",t.scrollLeft>0?it="default":(t.scrollLeft=1,t.scrollLeft===0&&(it="negative")),document.body.removeChild(t),it}function je(t,e){const o=t.scrollLeft;if(e!=="rtl")return o;switch(ae()){case"negative":return t.scrollWidth-t.clientWidth+o;case"reverse":return t.scrollWidth-t.clientWidth-o;default:return o}}function We(t){return tt("MuiDialog",t)}const Dt=et("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ie=d.createContext({}),Le=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],_e=I(Ce,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),Ne=t=>{const{classes:e,scroll:o,maxWidth:l,fullWidth:a,fullScreen:c}=t,u={root:["root"],container:["container",`scroll${rt(o)}`],paper:["paper",`paperScroll${rt(o)}`,`paperWidth${rt(String(l))}`,a&&"paperFullWidth",c&&"paperFullScreen"]};return lt(u,We,e)},ze=I(Be,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),Ee=I("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.container,e[`scroll${rt(o.scroll)}`]]}})(({ownerState:t})=>s({height:"100%","@media print":{height:"auto"},outline:0},t.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},t.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Ae=I(oe,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.paper,e[`scrollPaper${rt(o.scroll)}`],e[`paperWidth${rt(String(o.maxWidth))}`],o.fullWidth&&e.paperFullWidth,o.fullScreen&&e.paperFullScreen]}})(({theme:t,ownerState:e})=>s({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},e.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},e.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!e.maxWidth&&{maxWidth:"calc(100% - 64px)"},e.maxWidth==="xs"&&{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${Dt.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.maxWidth&&e.maxWidth!=="xs"&&{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`,[`&.${Dt.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.fullWidth&&{width:"calc(100% - 64px)"},e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Dt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),vl=d.forwardRef(function(e,o){const l=ot({props:e,name:"MuiDialog"}),a=ee(),c={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":u,"aria-labelledby":f,BackdropComponent:p,BackdropProps:S,children:C,className:j,disableEscapeKeyDown:m=!1,fullScreen:M=!1,fullWidth:w=!1,maxWidth:L="sm",onBackdropClick:P,onClick:x,onClose:y,open:_,PaperComponent:A=oe,PaperProps:T={},scroll:v="paper",TransitionComponent:H=Se,transitionDuration:B=c,TransitionProps:V}=l,N=Y(l,Le),F=s({},l,{disableEscapeKeyDown:m,fullScreen:M,fullWidth:w,maxWidth:L,scroll:v}),$=Ne(F),g=d.useRef(),D=z=>{g.current=z.target===z.currentTarget},O=z=>{x&&x(z),g.current&&(g.current=null,P&&P(z),y&&y(z,"backdropClick"))},U=jt(f),X=d.useMemo(()=>({titleId:U}),[U]);return r.jsx(ze,s({className:k($.root,j),closeAfterTransition:!0,components:{Backdrop:_e},componentsProps:{backdrop:s({transitionDuration:B,as:p},S)},disableEscapeKeyDown:m,onClose:y,open:_,ref:o,onClick:O,ownerState:F},N,{children:r.jsx(H,s({appear:!0,in:_,timeout:B,role:"presentation"},V,{children:r.jsx(Ee,{className:k($.container),onMouseDown:D,ownerState:F,children:r.jsx(Ae,s({as:A,elevation:24,role:"dialog","aria-describedby":u,"aria-labelledby":U},T,{className:k($.paper,T.className),ownerState:F,children:r.jsx(ie.Provider,{value:X,children:C})}))})}))}))});function Fe(t){return tt("MuiDialogActions",t)}et("MuiDialogActions",["root","spacing"]);const He=["className","disableSpacing"],Oe=t=>{const{classes:e,disableSpacing:o}=t;return lt({root:["root",!o&&"spacing"]},Fe,e)},Ue=I("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,!o.disableSpacing&&e.spacing]}})(({ownerState:t})=>s({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),gl=d.forwardRef(function(e,o){const l=ot({props:e,name:"MuiDialogActions"}),{className:a,disableSpacing:c=!1}=l,u=Y(l,He),f=s({},l,{disableSpacing:c}),p=Oe(f);return r.jsx(Ue,s({className:k(p.root,a),ownerState:f,ref:o},u))});function Ve(t){return tt("MuiDialogContent",t)}et("MuiDialogContent",["root","dividers"]);function Xe(t){return tt("MuiDialogTitle",t)}const Ye=et("MuiDialogTitle",["root"]),qe=["className","dividers"],Ke=t=>{const{classes:e,dividers:o}=t;return lt({root:["root",o&&"dividers"]},Ve,e)},Ge=I("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.dividers&&e.dividers]}})(({theme:t,ownerState:e})=>s({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}:{[`.${Ye.root} + &`]:{paddingTop:0}})),xl=d.forwardRef(function(e,o){const l=ot({props:e,name:"MuiDialogContent"}),{className:a,dividers:c=!1}=l,u=Y(l,qe),f=s({},l,{dividers:c}),p=Ke(f);return r.jsx(Ge,s({className:k(p.root,a),ownerState:f,ref:o},u))});function Je(t){return tt("MuiDialogContentText",t)}et("MuiDialogContentText",["root"]);const Qe=["children","className"],Ze=t=>{const{classes:e}=t,l=lt({root:["root"]},Je,e);return s({},e,l)},to=I(le,{shouldForwardProp:t=>ye(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({}),ml=d.forwardRef(function(e,o){const l=ot({props:e,name:"MuiDialogContentText"}),{className:a}=l,c=Y(l,Qe),u=Ze(c);return r.jsx(to,s({component:"p",variant:"body1",color:"text.secondary",ref:o,ownerState:c,className:k(u.root,a)},l,{classes:u}))}),eo=["className","id"],oo=t=>{const{classes:e}=t;return lt({root:["root"]},Xe,e)},lo=I(le,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),Sl=d.forwardRef(function(e,o){const l=ot({props:e,name:"MuiDialogTitle"}),{className:a,id:c}=l,u=Y(l,eo),f=l,p=oo(f),{titleId:S=c}=d.useContext(ie);return r.jsx(lo,s({component:"h2",className:k(p.root,a),ownerState:f,ref:o,variant:"h6",id:c??S},u))}),no=yt(r.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),so=yt(r.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function ro(t){return tt("MuiTab",t)}const st=et("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ao=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],io=t=>{const{classes:e,textColor:o,fullWidth:l,wrapped:a,icon:c,label:u,selected:f,disabled:p}=t,S={root:["root",c&&u&&"labelIcon",`textColor${rt(o)}`,l&&"fullWidth",a&&"wrapped",f&&"selected",p&&"disabled"],iconWrapper:["iconWrapper"]};return lt(S,ro,e)},co=I(ne,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.label&&o.icon&&e.labelIcon,e[`textColor${rt(o.textColor)}`],o.fullWidth&&e.fullWidth,o.wrapped&&e.wrapped,{[`& .${st.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>s({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${st.iconWrapper}`]:s({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${st.selected}`]:{opacity:1},[`&.${st.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${st.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${st.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${st.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${st.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),Bl=d.forwardRef(function(e,o){const l=ot({props:e,name:"MuiTab"}),{className:a,disabled:c=!1,disableFocusRipple:u=!1,fullWidth:f,icon:p,iconPosition:S="top",indicator:C,label:j,onChange:m,onClick:M,onFocus:w,selected:L,selectionFollowsFocus:P,textColor:x="inherit",value:y,wrapped:_=!1}=l,A=Y(l,ao),T=s({},l,{disabled:c,disableFocusRipple:u,selected:L,icon:!!p,iconPosition:S,label:!!j,fullWidth:f,textColor:x,wrapped:_}),v=io(T),H=p&&j&&d.isValidElement(p)?d.cloneElement(p,{className:k(v.iconWrapper,p.props.className)}):p,B=N=>{!L&&m&&m(N,y),M&&M(N)},V=N=>{P&&!L&&m&&m(N,y),w&&w(N)};return r.jsxs(co,s({focusRipple:!u,className:k(v.root,a),ref:o,role:"tab","aria-selected":L,disabled:c,onClick:B,onFocus:V,ownerState:T,tabIndex:L?0:-1},A,{children:[S==="top"||S==="start"?r.jsxs(d.Fragment,{children:[H,j]}):r.jsxs(d.Fragment,{children:[j,H]}),C]}))}),ce=yt(r.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),de=yt(r.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),uo=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],po=d.forwardRef(function(e,o){var l,a,c,u,f,p,S,C;const{backIconButtonProps:j,count:m,disabled:M=!1,getItemAriaLabel:w,nextIconButtonProps:L,onPageChange:P,page:x,rowsPerPage:y,showFirstButton:_,showLastButton:A,slots:T={},slotProps:v={}}=e,H=Y(e,uo),B=Lt(),V=Q=>{P(Q,0)},N=Q=>{P(Q,x-1)},F=Q=>{P(Q,x+1)},$=Q=>{P(Q,Math.max(0,Math.ceil(m/y)-1))},g=(l=T.firstButton)!=null?l:mt,D=(a=T.lastButton)!=null?a:mt,O=(c=T.nextButton)!=null?c:mt,U=(u=T.previousButton)!=null?u:mt,X=(f=T.firstButtonIcon)!=null?f:no,z=(p=T.lastButtonIcon)!=null?p:so,W=(S=T.nextButtonIcon)!=null?S:de,q=(C=T.previousButtonIcon)!=null?C:ce,K=B?D:g,Pt=B?O:U,It=B?U:O,ht=B?g:D,wt=B?v.lastButton:v.firstButton,G=B?v.nextButton:v.previousButton,ut=B?v.previousButton:v.nextButton,vt=B?v.firstButton:v.lastButton;return r.jsxs("div",s({ref:o},H,{children:[_&&r.jsx(K,s({onClick:V,disabled:M||x===0,"aria-label":w("first",x),title:w("first",x)},wt,{children:B?r.jsx(z,s({},v.lastButtonIcon)):r.jsx(X,s({},v.firstButtonIcon))})),r.jsx(Pt,s({onClick:N,disabled:M||x===0,color:"inherit","aria-label":w("previous",x),title:w("previous",x)},G??j,{children:B?r.jsx(W,s({},v.nextButtonIcon)):r.jsx(q,s({},v.previousButtonIcon))})),r.jsx(It,s({onClick:F,disabled:M||(m!==-1?x>=Math.ceil(m/y)-1:!1),color:"inherit","aria-label":w("next",x),title:w("next",x)},ut??L,{children:B?r.jsx(q,s({},v.previousButtonIcon)):r.jsx(W,s({},v.nextButtonIcon))})),A&&r.jsx(ht,s({onClick:$,disabled:M||x>=Math.ceil(m/y)-1,"aria-label":w("last",x),title:w("last",x)},vt,{children:B?r.jsx(X,s({},v.firstButtonIcon)):r.jsx(z,s({},v.lastButtonIcon))}))]}))});function fo(t){return tt("MuiTablePagination",t)}const bt=et("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Jt;const bo=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],ho=I(Wt,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}})),vo=I(Re,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>s({[`& .${bt.actions}`]:e.actions},e.toolbar)})(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${bt.actions}`]:{flexShrink:0,marginLeft:20}})),go=I("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),xo=I("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})(({theme:t})=>s({},t.typography.body2,{flexShrink:0})),mo=I(ke,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>s({[`& .${bt.selectIcon}`]:e.selectIcon,[`& .${bt.select}`]:e.select},e.input,e.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${bt.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),So=I(we,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),Bo=I("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})(({theme:t})=>s({},t.typography.body2,{flexShrink:0}));function Co({from:t,to:e,count:o}){return`${t}${e} of ${o!==-1?o:`more than ${e}`}`}function yo(t){return`Go to ${t} page`}const Po=t=>{const{classes:e}=t;return lt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},fo,e)},Cl=d.forwardRef(function(e,o){var l;const a=ot({props:e,name:"MuiTablePagination"}),{ActionsComponent:c=po,backIconButtonProps:u,className:f,colSpan:p,component:S=Wt,count:C,disabled:j=!1,getItemAriaLabel:m=yo,labelDisplayedRows:M=Co,labelRowsPerPage:w="Rows per page:",nextIconButtonProps:L,onPageChange:P,onRowsPerPageChange:x,page:y,rowsPerPage:_,rowsPerPageOptions:A=[10,25,50,100],SelectProps:T={},showFirstButton:v=!1,showLastButton:H=!1,slotProps:B={},slots:V={}}=a,N=Y(a,bo),F=a,$=Po(F),g=(l=B==null?void 0:B.select)!=null?l:T,D=g.native?"option":So;let O;(S===Wt||S==="td")&&(O=p||1e3);const U=jt(g.id),X=jt(g.labelId),z=()=>C===-1?(y+1)*_:_===-1?C:Math.min(C,(y+1)*_);return r.jsx(ho,s({colSpan:O,ref:o,as:S,ownerState:F,className:k($.root,f)},N,{children:r.jsxs(vo,{className:$.toolbar,children:[r.jsx(go,{className:$.spacer}),A.length>1&&r.jsx(xo,{className:$.selectLabel,id:X,children:w}),A.length>1&&r.jsx(mo,s({variant:"standard"},!g.variant&&{input:Jt||(Jt=r.jsx(Pe,{}))},{value:_,onChange:x,id:U,labelId:X},g,{classes:s({},g.classes,{root:k($.input,$.selectRoot,(g.classes||{}).root),select:k($.select,(g.classes||{}).select),icon:k($.selectIcon,(g.classes||{}).icon)}),disabled:j,children:A.map(W=>d.createElement(D,s({},!Ie(D)&&{ownerState:F},{className:$.menuItem,key:W.label?W.label:W,value:W.value?W.value:W}),W.label?W.label:W))})),r.jsx(Bo,{className:$.displayedRows,children:M({from:C===0?0:y*_+1,to:z(),count:C===-1?-1:C,page:y})}),r.jsx(c,{className:$.actions,backIconButtonProps:u,count:C,nextIconButtonProps:L,onPageChange:P,page:y,rowsPerPage:_,showFirstButton:v,showLastButton:H,slotProps:B.actions,slots:V.actions,getItemAriaLabel:m,disabled:j})]})}))});function Io(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function wo(t,e,o,l={},a=()=>{}){const{ease:c=Io,duration:u=300}=l;let f=null;const p=e[t];let S=!1;const C=()=>{S=!0},j=m=>{if(S){a(new Error("Animation cancelled"));return}f===null&&(f=m);const M=Math.min(1,(m-f)/u);if(e[t]=c(M)*(o-p)+p,M>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(j)};return p===o?(a(new Error("Element already at target position")),C):(requestAnimationFrame(j),C)}const Ro=["onChange"],Mo={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function To(t){const{onChange:e}=t,o=Y(t,Ro),l=d.useRef(),a=d.useRef(null),c=()=>{l.current=a.current.offsetHeight-a.current.clientHeight};return Me(()=>{const u=se(()=>{const p=l.current;c(),p!==l.current&&e(l.current)}),f=re(a.current);return f.addEventListener("resize",u),()=>{u.clear(),f.removeEventListener("resize",u)}},[e]),d.useEffect(()=>{c(),e(l.current)},[e]),r.jsx("div",s({style:Mo},o,{ref:a}))}function $o(t){return tt("MuiTabScrollButton",t)}const Do=et("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ko=["className","slots","slotProps","direction","orientation","disabled"],jo=t=>{const{classes:e,orientation:o,disabled:l}=t;return lt({root:["root",o,l&&"disabled"]},$o,e)},Wo=I(ne,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.orientation&&e[o.orientation]]}})(({ownerState:t})=>s({width:40,flexShrink:0,opacity:.8,[`&.${Do.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Lo=d.forwardRef(function(e,o){var l,a;const c=ot({props:e,name:"MuiTabScrollButton"}),{className:u,slots:f={},slotProps:p={},direction:S}=c,C=Y(c,ko),j=Lt(),m=s({isRtl:j},c),M=jo(m),w=(l=f.StartScrollButtonIcon)!=null?l:ce,L=(a=f.EndScrollButtonIcon)!=null?a:de,P=Ct({elementType:w,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),x=Ct({elementType:L,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return r.jsx(Wo,s({component:"div",className:k(M.root,u),ref:o,role:null,ownerState:m,tabIndex:null},C,{children:S==="left"?r.jsx(w,s({},P)):r.jsx(L,s({},x))}))});function _o(t){return tt("MuiTabs",t)}const kt=et("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),No=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Qt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,St=(t,e,o)=>{let l=!1,a=o(t,e);for(;a;){if(a===t.firstChild){if(l)return;l=!0}const c=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||c)a=o(t,a);else{a.focus();return}}},zo=t=>{const{vertical:e,fixed:o,hideScrollbar:l,scrollableX:a,scrollableY:c,centered:u,scrollButtonsHideMobile:f,classes:p}=t;return lt({root:["root",e&&"vertical"],scroller:["scroller",o&&"fixed",l&&"hideScrollbar",a&&"scrollableX",c&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[l&&"hideScrollbar"]},_o,p)},Eo=I("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[{[`& .${kt.scrollButtons}`]:e.scrollButtons},{[`& .${kt.scrollButtons}`]:o.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,o.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>s({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${kt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Ao=I("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.scroller,o.fixed&&e.fixed,o.hideScrollbar&&e.hideScrollbar,o.scrollableX&&e.scrollableX,o.scrollableY&&e.scrollableY]}})(({ownerState:t})=>s({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Fo=I("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.flexContainer,o.vertical&&e.flexContainerVertical,o.centered&&e.centered]}})(({ownerState:t})=>s({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ho=I("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>s({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Oo=I(To)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),te={},yl=d.forwardRef(function(e,o){const l=ot({props:e,name:"MuiTabs"}),a=ee(),c=Lt(),{"aria-label":u,"aria-labelledby":f,action:p,centered:S=!1,children:C,className:j,component:m="div",allowScrollButtonsMobile:M=!1,indicatorColor:w="primary",onChange:L,orientation:P="horizontal",ScrollButtonComponent:x=Lo,scrollButtons:y="auto",selectionFollowsFocus:_,slots:A={},slotProps:T={},TabIndicatorProps:v={},TabScrollButtonProps:H={},textColor:B="primary",value:V,variant:N="standard",visibleScrollbar:F=!1}=l,$=Y(l,No),g=N==="scrollable",D=P==="vertical",O=D?"scrollTop":"scrollLeft",U=D?"top":"left",X=D?"bottom":"right",z=D?"clientHeight":"clientWidth",W=D?"height":"width",q=s({},l,{component:m,allowScrollButtonsMobile:M,indicatorColor:w,orientation:P,vertical:D,scrollButtons:y,textColor:B,variant:N,visibleScrollbar:F,fixed:!g,hideScrollbar:g&&!F,scrollableX:g&&!D,scrollableY:g&&D,centered:S&&!g,scrollButtonsHideMobile:!M}),K=zo(q),Pt=Ct({elementType:A.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:q}),It=Ct({elementType:A.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:q}),[ht,wt]=d.useState(!1),[G,ut]=d.useState(te),[vt,Q]=d.useState(!1),[Ht,ue]=d.useState(!1),[Ot,pe]=d.useState(!1),[Ut,fe]=d.useState({overflow:"hidden",scrollbarWidth:0}),Vt=new Map,Z=d.useRef(null),at=d.useRef(null),Xt=()=>{const n=Z.current;let i;if(n){const b=n.getBoundingClientRect();i={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:je(n,c?"rtl":"ltr"),scrollWidth:n.scrollWidth,top:b.top,bottom:b.bottom,left:b.left,right:b.right}}let h;if(n&&V!==!1){const b=at.current.children;if(b.length>0){const R=b[Vt.get(V)];h=R?R.getBoundingClientRect():null}}return{tabsMeta:i,tabMeta:h}},pt=$t(()=>{const{tabsMeta:n,tabMeta:i}=Xt();let h=0,b;if(D)b="top",i&&n&&(h=i.top-n.top+n.scrollTop);else if(b=c?"right":"left",i&&n){const E=c?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;h=(c?-1:1)*(i[b]-n[b]+E)}const R={[b]:h,[W]:i?i[W]:0};if(isNaN(G[b])||isNaN(G[W]))ut(R);else{const E=Math.abs(G[b]-R[b]),J=Math.abs(G[W]-R[W]);(E>=1||J>=1)&&ut(R)}}),Rt=(n,{animation:i=!0}={})=>{i?wo(O,Z.current,n,{duration:a.transitions.duration.standard}):Z.current[O]=n},Yt=n=>{let i=Z.current[O];D?i+=n:(i+=n*(c?-1:1),i*=c&&ae()==="reverse"?-1:1),Rt(i)},qt=()=>{const n=Z.current[z];let i=0;const h=Array.from(at.current.children);for(let b=0;b<h.length;b+=1){const R=h[b];if(i+R[z]>n){b===0&&(i=n);break}i+=R[z]}return i},be=()=>{Yt(-1*qt())},he=()=>{Yt(qt())},ve=d.useCallback(n=>{fe({overflow:null,scrollbarWidth:n})},[]),ge=()=>{const n={};n.scrollbarSizeListener=g?r.jsx(Oo,{onChange:ve,className:k(K.scrollableX,K.hideScrollbar)}):null;const h=g&&(y==="auto"&&(vt||Ht)||y===!0);return n.scrollButtonStart=h?r.jsx(x,s({slots:{StartScrollButtonIcon:A.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Pt},orientation:P,direction:c?"right":"left",onClick:be,disabled:!vt},H,{className:k(K.scrollButtons,H.className)})):null,n.scrollButtonEnd=h?r.jsx(x,s({slots:{EndScrollButtonIcon:A.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:It},orientation:P,direction:c?"left":"right",onClick:he,disabled:!Ht},H,{className:k(K.scrollButtons,H.className)})):null,n},Kt=$t(n=>{const{tabsMeta:i,tabMeta:h}=Xt();if(!(!h||!i)){if(h[U]<i[U]){const b=i[O]+(h[U]-i[U]);Rt(b,{animation:n})}else if(h[X]>i[X]){const b=i[O]+(h[X]-i[X]);Rt(b,{animation:n})}}}),gt=$t(()=>{g&&y!==!1&&pe(!Ot)});d.useEffect(()=>{const n=se(()=>{Z.current&&pt()});let i;const h=E=>{E.forEach(J=>{J.removedNodes.forEach(ft=>{var nt;(nt=i)==null||nt.unobserve(ft)}),J.addedNodes.forEach(ft=>{var nt;(nt=i)==null||nt.observe(ft)})}),n(),gt()},b=re(Z.current);b.addEventListener("resize",n);let R;return typeof ResizeObserver<"u"&&(i=new ResizeObserver(n),Array.from(at.current.children).forEach(E=>{i.observe(E)})),typeof MutationObserver<"u"&&(R=new MutationObserver(h),R.observe(at.current,{childList:!0})),()=>{var E,J;n.clear(),b.removeEventListener("resize",n),(E=R)==null||E.disconnect(),(J=i)==null||J.disconnect()}},[pt,gt]),d.useEffect(()=>{const n=Array.from(at.current.children),i=n.length;if(typeof IntersectionObserver<"u"&&i>0&&g&&y!==!1){const h=n[0],b=n[i-1],R={root:Z.current,threshold:.99},E=Tt=>{Q(!Tt[0].isIntersecting)},J=new IntersectionObserver(E,R);J.observe(h);const ft=Tt=>{ue(!Tt[0].isIntersecting)},nt=new IntersectionObserver(ft,R);return nt.observe(b),()=>{J.disconnect(),nt.disconnect()}}},[g,y,Ot,C==null?void 0:C.length]),d.useEffect(()=>{wt(!0)},[]),d.useEffect(()=>{pt()}),d.useEffect(()=>{Kt(te!==G)},[Kt,G]),d.useImperativeHandle(p,()=>({updateIndicator:pt,updateScrollButtons:gt}),[pt,gt]);const Gt=r.jsx(Ho,s({},v,{className:k(K.indicator,v.className),ownerState:q,style:s({},G,v.style)}));let xt=0;const xe=d.Children.map(C,n=>{if(!d.isValidElement(n))return null;const i=n.props.value===void 0?xt:n.props.value;Vt.set(i,xt);const h=i===V;return xt+=1,d.cloneElement(n,s({fullWidth:N==="fullWidth",indicator:h&&!ht&&Gt,selected:h,selectionFollowsFocus:_,onChange:L,textColor:B,value:i},xt===1&&V===!1&&!n.props.tabIndex?{tabIndex:0}:{}))}),me=n=>{const i=at.current,h=Te(i).activeElement;if(h.getAttribute("role")!=="tab")return;let R=P==="horizontal"?"ArrowLeft":"ArrowUp",E=P==="horizontal"?"ArrowRight":"ArrowDown";switch(P==="horizontal"&&c&&(R="ArrowRight",E="ArrowLeft"),n.key){case R:n.preventDefault(),St(i,h,Zt);break;case E:n.preventDefault(),St(i,h,Qt);break;case"Home":n.preventDefault(),St(i,null,Qt);break;case"End":n.preventDefault(),St(i,null,Zt);break}},Mt=ge();return r.jsxs(Eo,s({className:k(K.root,j),ownerState:q,ref:o,as:m},$,{children:[Mt.scrollButtonStart,Mt.scrollbarSizeListener,r.jsxs(Ao,{className:K.scroller,ownerState:q,style:{overflow:Ut.overflow,[D?`margin${c?"Left":"Right"}`:"marginBottom"]:F?void 0:-Ut.scrollbarWidth},ref:Z,children:[r.jsx(Fo,{"aria-label":u,"aria-labelledby":f,"aria-orientation":P==="vertical"?"vertical":null,className:K.flexContainer,ownerState:q,onKeyDown:me,ref:at,role:"tablist",children:xe}),ht&&Gt]}),Mt.scrollButtonEnd]}))});var _t={},Uo=dt;Object.defineProperty(_t,"__esModule",{value:!0});var Vo=_t.default=void 0,Xo=Uo(ct()),Yo=r;Vo=_t.default=(0,Xo.default)((0,Yo.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var Nt={},qo=dt;Object.defineProperty(Nt,"__esModule",{value:!0});var Ko=Nt.default=void 0,Go=qo(ct()),Jo=r;Ko=Nt.default=(0,Go.default)((0,Jo.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");var zt={},Qo=dt;Object.defineProperty(zt,"__esModule",{value:!0});var Zo=zt.default=void 0,tl=Qo(ct()),el=r;Zo=zt.default=(0,tl.default)((0,el.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");var Et={},ol=dt;Object.defineProperty(Et,"__esModule",{value:!0});var ll=Et.default=void 0,nl=ol(ct()),sl=r;ll=Et.default=(0,nl.default)((0,sl.jsx)("path",{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79zm9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75zM7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1"}),"PhoneOutlined");var At={},rl=dt;Object.defineProperty(At,"__esModule",{value:!0});var al=At.default=void 0,il=rl(ct()),Bt=r;al=At.default=(0,il.default)([(0,Bt.jsx)("path",{d:"M14 12h4v1.5h-4zm0 3h4v1.5h-4z"},"0"),(0,Bt.jsx)("path",{d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z"},"1"),(0,Bt.jsx)("circle",{cx:"9",cy:"13.5",r:"1.5"},"2"),(0,Bt.jsx)("path",{d:"M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39"},"3")],"BadgeOutlined");function Pl({label:t,count:e,active:o=!1}){return r.jsxs($e,{direction:"row",alignItems:"center",spacing:1,children:[r.jsx("span",{children:t}),r.jsx(De,{component:"span",sx:{minWidth:20,height:20,px:.75,borderRadius:10,fontSize:"0.72rem",fontWeight:700,lineHeight:"20px",textAlign:"center",bgcolor:o?"primary.main":"grey.200",color:o?"#fff":"text.secondary"},children:e})]})}var Ft={},cl=dt;Object.defineProperty(Ft,"__esModule",{value:!0});var dl=Ft.default=void 0,ul=cl(ct()),pl=r;dl=Ft.default=(0,ul.default)((0,pl.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");export{vl as D,yl as T,Sl as a,xl as b,gl as c,dl as d,Vo as e,Bl as f,Pl as g,Cl as h,ml as i,ll as j,Ko as k,Zo as l,al as m};