PageSourceSearch

https://simulahealth-2a3be.web.app/_next/static/chunks/pages/app/mail-a7c3159488b75929.js

js simulahealth-2a3be.web.app collected 2026-10-03 12:36:41 UTC 26,815 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1989],{13909:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/mail",function(){return n(2694)}])},91262:function(e,i,n){"use strict";var s=n(85893),r=n(67294),l=n(2734),a=n(66242),t=n(78445),o=n(15861),d=n(67720),c=n(44267);let x=r.forwardRef((e,i)=>{let{children:n,className:r,content:x,contentClass:h,darkTitle:m,secondary:p,sx:j={},contentSX:Z={},title:g,...u}=e,b=(0,l.Z)();return(0,s.jsxs)(a.Z,{ref:i,sx:{border:"1px solid",borderColor:"dark"===b.palette.mode?b.palette.dark.light+15:b.palette.grey[200],":hover":{boxShadow:"dark"===b.palette.mode?"0 2px 14px 0 rgb(33 150 243 / 10%)":"0 2px 14px 0 rgb(32 40 45 / 8%)"},...j},...u,children:[!m&&g&&(0,s.jsx)(t.Z,{sx:{p:2.5},title:(0,s.jsx)(o.Z,{variant:"h5",children:g}),action:p}),m&&g&&(0,s.jsx)(t.Z,{sx:{p:2.5},title:(0,s.jsx)(o.Z,{variant:"h4",children:g}),action:p}),g&&(0,s.jsx)(d.Z,{sx:{opacity:1,borderColor:"dark"===b.palette.mode?b.palette.dark.light+15:b.palette.grey[200]}}),x&&(0,s.jsx)(c.Z,{sx:{p:2.5,...Z},className:h||"",children:n}),!x&&n]})});x.defaultProps={content:!0},i.Z=x},2789:function(e,i,n){"use strict";var s=n(85893),r=n(2734),l=n(87952);let a=e=>{let{className:i,color:n,outline:a,size:t,sx:o,...d}=e,c=(0,r.Z)(),x=n&&!a&&{color:c.palette.background.paper,bgcolor:"".concat(n,".main")},h=a&&{color:n?"".concat(n,".main"):"primary.main",bgcolor:c.palette.background.paper,border:"2px solid",borderColor:n?"".concat(n,".main"):"primary.main"},m={};switch(t){case"badge":m={width:c.spacing(3.5),height:c.spacing(3.5)};break;case"xs":m={width:c.spacing(4.25),height:c.spacing(4.25)};break;case"sm":m={width:c.spacing(5),height:c.spacing(5)};break;case"lg":m={width:c.spacing(9),height:c.spacing(9)};break;case"xl":m={width:c.spacing(10.25),height:c.spacing(10.25)};break;case"md":m={width:c.spacing(7.5),height:c.spacing(7.5)};break;default:m={}}return(0,s.jsx)(l.Z,{sx:{...x,...h,...m,...o},...d})};i.Z=a},2694:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return eK}});var s=n(85893),r=n(67294),l=n(90948),a=n(2734),t=n(98396),o=n(87357),d=n(86886),c=n(95312),x=n(58823),h=n(58826),m=n(44267),p=n(78462),j=n(98619),Z=n(48885),g=n(59334),u=n(87918),b=n(67720),k=n(75438),v=n(51964),f=n.n(v),P=n(1355),y=n(97570),w=n(54776),C=n(11057),z=n(64666),S=n(6514),M=n(15861),I=n(93946),R=n(23795),D=n(50135),L=n(57922),T=n(5152),O=n.n(T);n(58514);var W=n(196),F=n(51343),_=n(87745),E=n(87420),N=n(24519),B=n(63991);let q=O()(()=>Promise.all([n.e(2937),n.e(939),n.e(1167)]).then(n.t.bind(n,71167,23)),{loadableGenerated:{webpack:()=>[71167]},ssr:!1}),H=(0,r.forwardRef)((e,i)=>(0,s.jsx)(w.Z,{direction:"up",ref:i,...e})),G=()=>{let e=(0,a.Z)(),[i,n]=(0,r.useState)(!1),l=()=>{n(!0)},t=()=>{n(!1)},[o,c]=(0,r.useState)(!1),x=e=>{c(e=>!e)},h={},[m,p]=(0,r.useState)(!0);return m||(h={"& .MuiDialog-container":{justifyContent:"flex-end",alignItems:"flex-end","& .MuiPaper-root":{mb:0,borderRadius:"12px 12px 0px 0px",maxWidth:595}}}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C.Z,{variant:"contained",onClick:l,sx:{width:"100%"},size:"large",startIcon:(0,s.jsx)(F.Z,{}),children:"Compose"}),(0,s.jsx)(z.Z,{open:i,TransitionComponent:H,keepMounted:!0,onClose:t,sx:h,children:i&&(0,s.jsx)(S.Z,{children:(0,s.jsxs)(d.ZP,{container:!0,spacing:W.dv,children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(d.ZP,{container:!0,alignItems:"center",spacing:0,children:[(0,s.jsx)(d.ZP,{item:!0,sm:!0,zeroMinWidth:!0,children:(0,s.jsx)(M.Z,{component:"div",align:"left",variant:"h4",children:"New Message"})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(I.Z,{onClick:()=>p(!m),size:"large",children:(0,s.jsx)(B.iFH,{})})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(I.Z,{onClick:t,size:"large",children:(0,s.jsx)(E.Z,{})})})]})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(d.ZP,{container:!0,justifyContent:"flex-end",spacing:0,children:(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(R.Z,{component:y.Z,href:"#",color:"dark"===e.palette.mode?"primary":"secondary",onClick:x,underline:"hover",children:"CC & BCC"})})})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(D.Z,{fullWidth:!0,label:"To"})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(D.Z,{fullWidth:!0,label:"Subject"})}
1),(0,s.jsx)(d.ZP,{item:!0,xs:12,sx:{display:o?"block":"none"},children:(0,s.jsx)(L.Z,{in:o,children:o&&(0,s.jsxs)(d.ZP,{container:!0,spacing:W.dv,children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(D.Z,{fullWidth:!0,label:"CC"})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(D.Z,{fullWidth:!0,label:"BCC"})})]})})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,sx:{"& .quill":{bgcolor:"dark"===e.palette.mode?"dark.main":"grey.50",borderRadius:"12px","& .ql-toolbar":{bgcolor:"dark"===e.palette.mode?"dark.light":"grey.100",borderColor:"dark"===e.palette.mode?e.palette.dark.light+20:"grey.400",borderTopLeftRadius:"12px",borderTopRightRadius:"12px"},"& .ql-container":{borderColor:"dark"===e.palette.mode?"".concat(e.palette.dark.light+20," !important"):"".concat(e.palette.grey[400]," !important"),borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px","& .ql-editor":{minHeight:125}}}},children:(0,s.jsx)(q,{theme:"snow"})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(d.ZP,{container:!0,spacing:1,alignItems:"center",children:[(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(I.Z,{size:"large",children:(0,s.jsx)(N.Z,{})})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(I.Z,{size:"large",children:(0,s.jsx)(_.Z,{})})}),(0,s.jsx)(d.ZP,{item:!0,sx:{flexGrow:1}}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(C.Z,{variant:"contained",children:"Reply"})})]})})]})})})]})};var A=n(50011),U=n(79771),Y=n(28847),X=n(75116),J=n(56716),K=n(52521),Q=n(78101),$=n(5411),V=n(5980),ee=n(46050);let ei=e=>{let{filter:i,handleDrawerOpen:n,handleFilter:r,openMailSidebar:l,unreadCounts:o}=e,c=(0,a.Z)(),{borderRadius:x}=(0,P.Z)(),v=(0,t.Z)(c.breakpoints.down("xl"));return(0,s.jsx)(h.ZP,{sx:{width:W.D2,flexShrink:0,zIndex:{xs:1200,xl:0},"& .MuiDrawer-paper":{height:"auto",width:W.D2,boxSizing:"border-box",position:"relative",border:"none",borderRadius:v?0:"".concat(x,"px")}},variant:v?"temporary":"persistent",anchor:"left",open:l,ModalProps:{keepMounted:!0},onClose:n,children:l&&(0,s.jsx)(A.Z,{sx:{bgcolor:"dark"===c.palette.mode?"dark.main":"grey.50"},border:!v,content:!1,children:(0,s.jsx)(m.Z,{sx:{height:v?"100vh":"auto"},children:(0,s.jsxs)(d.ZP,{container:!0,spacing:W.dv,children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(G,{})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(f(),{style:{height:v?"calc(100vh - 115px)":"100%",overflowX:"hidden",minHeight:v?0:435},children:(0,s.jsxs)(p.Z,{component:"nav",sx:{"& .MuiListItem-root":{mb:.75,borderRadius:"".concat(x,"px"),"& .MuiChip-root":{color:"dark"===c.palette.mode?"primary.main":"secondary.main",bgcolor:"dark"===c.palette.mode?"dark.dark":"secondary.light"}},"& .MuiListItem-root.Mui-selected":{bgcolor:"dark"===c.palette.mode?"dark.dark":"secondary.light","& .MuiListItemText-primary":{color:"dark"===c.palette.mode?"primary.main":"secondary.main"},"& .MuiChip-root":{color:"dark"===c.palette.mode?"primary.main":"secondary.light",bgcolor:"dark"===c.palette.mode?"dark.main":"secondary.main"}}},children:[(0,s.jsxs)(j.Z,{selected:"all"===i,onClick:()=>r("all"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(U.Z,{})}),(0,s.jsx)(g.Z,{primary:"All Mail"}),(null==o?void 0:o.all)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.all,size:"small"})]}),(0,s.jsxs)(j.Z,{selected:"inbox"===i,onClick:()=>r("inbox"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(Y.Z,{})}),(0,s.jsx)(g.Z,{primary:"Inbox"}),(null==o?void 0:o.inbox)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.inbox,size:"small"})]}),(0,s.jsxs)(j.Z,{selected:"sent"===i,onClick:()=>r("sent"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(X.Z,{})}),(0,s.jsx)(g.Z,{primary:"Sent"}),(null==o?void 0:o.sent)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.sent,size:"small"})]}),(0,s.jsxs)(j.Z,{selected:"draft"===i,onClick:()=>r("draft"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(J.Z,{})}),(0,s.jsx)(g.Z,{primary:"Draft"}),(null==o?void 0:o.draft)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.draft,size:"small"})]}),(0,s.jsxs)(j.Z,{selected:"spam"===i,onClick:()=>r("spam"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(V.Z,{})}),(0,s.jsx)(g.Z,{primary:"Spam"}),(null==o?void 0:o.spam)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.spam,size:"small"})]}),(0,s.jsxs)(j.Z,{selected:"trash"===i,onClick:()=>r("trash"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(K.Z,{})}),(0,s.jsx)(g.Z,{primary:"Trash"}),(null==o?void 0:o.trash)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.trash,size:"small"})]}),(0,s.jsx)(b.Z,{}),(0,s.jsx)(k.Z,{sx:{bgcolor:"transparent"},children:"Filters"}),(0,s.jsxs)(j.Z,{selected:"starred"===i,onClick:()=>r("starred"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(ee.Z,{})}),(0,s.jsx)(g.Z,{primary:"Starred"}),(null==o?void 0:o.starred)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.starred,size:"small"})]}),(0,s.jsxs)(j.Z,{selected:"important"===i,onClick:()=>r("important"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)(Q.Z,{})}),(0,s.jsx)(g.Z,{primary:"Important"}),(null==o?void 0:o.important)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.important,size:"small"})]}),(0,s.jsx)(b.Z,{}),(0,s.jsx)(k.Z,{sx:{bgcolor:"transparent"},children:"Label"}),(0,s.jsxs)(j.Z,{selected:"promotions"===i,onClick:()=>r("promotions"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)($.Z,{sx:{color:c.palette.primary.main}})}),(0,s.jsx)(g.Z,{primary:"Promotions"}),(null==o?void 0:o.promotions)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.promotions,size:"small"})]}),(0,s.jsxs)(j.Z,{selected:"forums"===i,onClick:()=>r("forums"),children:[(0,s.jsx)(Z.Z,{children:(0,s.jsx)($.Z,{sx:{color:c.palette.warning.main}})}),(0,s.jsx)(g.Z,{primary:"Forums"}),(null==o?void 0:o.forums)!==0&&(0,s.jsx)(u.Z,{label:null==o?void 0:o.forums,size:"small"})]})]})})})]})})})})};var en=n(51233),es=n(69368),er=n(38333),el=n(18972),ea=n(32912),et=n(1300),eo=n(45843),ed=n(2789),ec=n(66242),ex=n(83965),eh=n(69454);let em=e=>{let{title:i,image:n}=e,r=(0,a.Z)(),l=n&&"".concat("/assets/images/profile","/").concat(n);return(0,s.jsxs)(ec.Z,{sx:{bgcolor:"dark"===r.palette.mode?"dark.dark":"grey.100"},children:[(0,s.jsx)(ex.Z,{component:"img",image:l,title:"Slider5 image"}),(0,s.jsx)(m.Z,{sx:{p:2,pb:"16px !important"},children:(0,s.jsxs)(d.ZP,{container:!0,spacing:W.dv,children:[(0,s.jsx)(d.ZP,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,s.jsx)(M.Z,{variant:"h5",component:"div",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(eh.Z,{sx:{cursor:"pointer"}})})]})})]})};var ep=n(91262),ej=n(56786),eZ=n(2403),eg=n(87135),eu=n(575),eb=n(94265);let ek=O()(()=>
1Promise.all([n.e(2937),n.e(939),n.e(1167)]).then(n.t.bind(n,71167,23)),{loadableGenerated:{webpack:()=>[71167]},ssr:!1}),ev=e=>{let{handleUserDetails:i,data:n,handleStarredChange:l,handleImportantChange:o}=e,c=(0,a.Z)(),{fontFamily:x}=(0,P.Z)(),h=(0,t.Z)(c.breakpoints.down("md")),[p,j]=(0,r.useState)(null),Z=e=>{j(null==e?void 0:e.currentTarget)},g=()=>{j(null)},[u,b]=(0,r.useState)(!1),k=()=>{b(!0)};return(0,s.jsxs)(A.Z,{sx:{bgcolor:"dark"===c.palette.mode?"dark.main":"grey.50"},content:!1,children:[(0,s.jsx)(m.Z,{children:(0,s.jsx)(d.ZP,{container:!0,spacing:W.dv,children:(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(d.ZP,{container:!0,alignItems:"center",justifyContent:"space-between",spacing:h?1:0,children:[(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsxs)(en.Z,{direction:"row",alignItems:"center",spacing:h?1:2,children:[(0,s.jsx)(I.Z,{onClick:e=>i(e,null),size:"small","aria-label":"prev",children:(0,s.jsx)(eZ.Z,{})}),(0,s.jsx)(ed.Z,{alt:null==n?void 0:n.profile.name,src:(null==n?void 0:n.profile)&&n.profile.avatar&&"".concat("/assets/images/users","/").concat(n.profile.avatar),size:h?"xs":"sm"}),(0,s.jsxs)(d.ZP,{container:!0,alignItems:"center",children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(en.Z,{direction:h?"column":"row",alignItems:h?"flex-start":"center",spacing:h?0:1,children:[(0,s.jsx)(M.Z,{variant:h?"h5":"h4",children:null==n?void 0:n.profile.name}),(0,s.jsxs)(M.Z,{sx:{display:{xs:"block",sm:"none"}},variant:"subtitle2",children:["From: <",null==n?void 0:n.profile.to,">"]})]})}),(0,s.jsx)(d.ZP,{item:!0,sx:{display:{xs:"none",sm:"block"}},children:(0,s.jsxs)(M.Z,{variant:"subtitle2",children:["From: <",null==n?void 0:n.profile.to,">"]})})]})]})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(M.Z,{variant:"subtitle2",children:(0,ea.Z)(new Date(null==n?void 0:n.time),"d MMM")})})]})})})}),(0,s.jsx)(m.Z,{sx:{pt:0},children:(0,s.jsx)(d.ZP,{container:!0,spacing:W.dv,children:(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(d.ZP,{container:!0,spacing:W.dv,children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(d.ZP,{container:!0,alignItems:"center",spacing:0,children:[(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(M.Z,{variant:h?"h4":"h3",children:null==n?void 0:n.subject})}),(0,s.jsx)(d.ZP,{item:!0,xs:!0,zeroMinWidth:!0}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(es.Z,{checked:null==n?void 0:n.starred,icon:(0,s.jsx)(ej.Z,{}),checkedIcon:(0,s.jsx)(ee.Z,{}),sx:{"&.Mui-checked":{color:c.palette.warning.dark}},onChange:e=>l(e,n)})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(es.Z,{checked:null==n?void 0:n.important,icon:(0,s.jsx)($.Z,{}),checkedIcon:(0,s.jsx)($.Z,{}),sx:{"&.Mui-checked":{color:c.palette.secondary.main}},onChange:e=>o(e,n)})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(es.Z,{defaultChecked:!1,icon:(0,s.jsx)(V.Z,{}),checkedIcon:(0,s.jsx)(V.Z,{}),sx:{"&.Mui-checked":{color:c.palette.error.main}}})}),(0,s.jsxs)(d.ZP,{item:!0,children:[(0,s.jsx)(I.Z,{onClick:Z,size:"large","aria-label":"more options",children:(0,s.jsx)(eg.Z,{})}),(0,s.jsxs)(er.Z,{id:"simple-menu",anchorEl:p,keepMounted:!0,open:Boolean(p),onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[(0,s.jsx)(el.Z,{onClick:g,children:"Name"}),(0,s.jsx)(el.Z,{onClick:g,children:"Date"}),(0,s.jsx)(el.Z,{onClick:g,children:"Ratting"}),(0,s.jsx)(el.Z,{onClick:g,children:"Unread"})]})]})]})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(d.ZP,{container:!0,spacing:W.dv,children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(M.Z,{variant:"body2",children:["Dear ",null==n?void 0:n.profile.name,","]})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,sx:{"& > p":{...c.typography.body1,marginBottom:0}},children:(0,s.jsx)(et.D,{remarkPlugins:[eo.Z],children:null==n?void 0:n.message})}),(0,s.jsxs)(d.ZP,{item:!0,xs:12,children:[(0,s.jsx)(M.Z,{variant:"body2",children:"Kind Regards,"}),(0,s.jsx)(M.Z,{variant:"body2",children:null==n?void 0:n.sender.name})]})]})}),(null==n?void 0:n.attachments)&&(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(d.ZP,{container:!0,spacing:W.dv,children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(en.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,s.jsx)(_.Z,{fontSize:"small"}),(0,s.jsxs)(M.Z,{variant:"h5",children:[null==n?void 0:n.attachments.length," "]}),(0,s.jsx)(M.Z,{variant:"h5",children:"Attachments"})]})}),null==n?void 0:n.attachments.map((e,i)=>(0,s.jsx)(d.ZP,{item:!0,xs:12,sm:6,md:4,lg:3,children:(0,s.jsx)(em,{image:e.image,title:e.title})},i))]})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsxs)(d.ZP,{container:!0,spacing:1,alignItems:"center",children:[(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(C.Z,{variant:"outlined",startIcon:(0,s.jsx)(eu.Z,{}),onClick:k,children:"Reply"})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(C.Z,{variant:"outlined",startIcon:(0,s.jsx)(eb.Z,{}),onClick:k,children:"Forward"})})]})}),(0,s.jsx)(L.Z,{in:u,sx:{width:"100%"},children:u&&(0,s.jsx)(d.ZP,{item:!0,xs:12,sx:{p:3},children:(0,s.jsxs)(ep.Z,{sx:{bgcolor:"dark"===c.palette.mode?"dark.dark":c.palette.primary[200]+40,"& .quill":{bgcolor:"dark"===c.palette.mode?"dark.main":"grey.50",borderRadius:"12px","& .ql-toolbar":{bgcolor:"dark"===c.palette.mode?"dark.light":"grey.100",borderColor:"dark"===c.palette.mode?c.palette.dark.light+20:c.palette.primary.light,borderTopLeftRadius:"12px",borderTopRightRadius:"12px"},"& .ql-container":{fontFamily:x,fontSize:"0.875rem",borderColor:"dark"===c.palette.mode?"".concat(c.palette.dark.light+20," !important"):c.palette.primary.light,borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px","& .ql-editor":{minHeight:125}}}},children:[(0,s.jsx)(ek,{theme:"snow"}),(0,s.jsxs)(d.ZP,{container:!0,spacing:1,alignItems:"center",sx:{mt:2},children:[(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(I.Z,{size:"large","aria-label":"upload file",children:(0,s.jsx)(N.Z,{})})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(I.Z,{size:"large","aria-label":"any attachment file",children:(0,s.jsx)(_.Z,{})})}),(0,s.jsx)(d.ZP,{item:!0,sx:{flexGrow:1}}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(C.Z,{onClick:()=>b(!1),sx:{color:c.palette.grey[900]},children:"Cancel"})}),(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(C.Z,{variant:"contained",children:"Reply"})})]})]})})})]})})})})]})};var ef=n(10155),eP=n(53184),ey=n(53816),ew=n(98102),eC=n(72882),ez=n(7906),eS=n(295),eM=n(87952),eI=n(49990),eR=n(36125);let eD=()=>{let e=(0,a.Z)();return(0,s.jsxs)(en.Z,{alignItems:"center",spacing:W.dv,children:[(0,s.jsx)(ex.Z,{component:"img",image:"dark"===e.palette.mode?"/assets/images/maintenance/empty-dark.svg":"/assets/images/maintenance/empty.svg",title:"Slider5 image",sx:{maxWidth:720}}),(0,s.jsxs)(en.Z,{spacing:1,children:[(0,s.jsx)(M.Z,{variant:"h1",color:"inherit",component:"div",children:"There is No Mail"}),(0,s.jsx)(M.Z,{variant:"body2",children:"When You have message that will Display here"})]})]})};var eL=n(87109),eT=n(69750),eO=n(23365),eW=n(51201);let eF=e=>{let{search:i,handleSearch:n,length:l,rowsPerPage:a,page:o,handleChangePage:c,handleChangeRowsPerPage:x,handleDrawerOpen:h,handleDenseTable:m}=e,p=(0,t.Z)(e=>e.breakpoints.down("md")),[j,Z]=(0,r.useState)(null),g=e=>{Z(e.currentTarget)},u=()=>{Z(null)};return(0,s.jsxs)(d.ZP,{container:!0,alignItems:"center",justifyContent:"space-between",children:[(0,s.jsx)(d.ZP,{item:!0,xs:!0,children:(0,s.jsxs)(en.Z,{direction:"row",alignItems:"center",justifyContent:"flex-start",spacing:1.5,children:[(0,s.jsx)(I.Z,{onClick:h,size:"small","aria-label":"mail",children:(0,s.jsx)(eT.Z,{fontSize:"small"})}),(0,s.jsx)(I.Z,{onClick:m,size:"small","aria-label":"click to size change of mail",children:(0,s.jsx)(eO.Z,{fontSize:"small"})}),(0,s.jsx)(I.Z,{onClick:g,size:"small","aria-label":"more options",children:(0,s.jsx)(eg.Z,{fontSize:"small"})}),(0,s.jsxs)(er.Z,{id:"simple-menu",anchorEl:j,keepMounted:!0,open:Boolean(j),onClose:u,children:[(0,s.jsx)(el.Z,{onClick:u,children:"Name"}),(0,s.jsx)(el.Z,{onClick:u,children:"Date"}),(0,s.jsx)(el.Z,{onClick:u,children:"Ratting"}),(0,s.jsx)(el.Z,{onClick:u,children:"Unread"})]}),(0,s.jsx)(D.Z,{sx:{display:{xs:"block",sm:"none"}},fullWidth:p,InputProps:{startAdornment:(0,s.jsx)(eL.Z,{position:"start",children:(0,s.jsx)(eW.Z,{fontSize:"small"})})},onChange:n,placeholder:"Search Mail",value:i,size:"small"})]})}),(0,s.jsx)(d.ZP,{item:!0,sx:{display:{xs:"none",sm:"block"}},children:(0,s.jsxs)(en.Z,{direction:"row",alignItems:"center",justifyContent:"flex-end",spacing:1.5,children:[(0,s.jsx)(D.Z,{InputProps:{startAdornment:(0,s.jsx)(eL.Z,{position:"start",children:(0,s.jsx)(eW.Z,{fontSize:"small"})})},onChange:n,placeholder:"Search Mail",value:i,size:"small"}),(0,s.jsx)(eR.Z,{sx:{"& .MuiToolbar-root":{pl:1}},rowsPerPageOptions:[],component:"div",count:l,rowsPerPage:a,page:o,onPageChange:c,onRowsPerPageChange:x})]})})]})};var e_=n(33430),eE=n(34597),eN=n(57634),eB=n(80013);let eq=e=>{let{numSelected:i}=e;return(0,s.jsx)(ef.Z,{sx:{p:0,pl:1,pr:1,...i>0&&{color:e=>e.palette.secondary.main}},children:i>0&&(0,s.jsxs)(M.Z,{color:"inherit",variant:"h4",component:"div",children:[i," Mail Selected"]})})};function eH(e){let{selected:i}=e;return(0,s.jsx)(eP.Z,{children:(0,s.jsx)(ey.Z,{children:(0,s.jsx)(ew.Z,{padding:"none",colSpan:5,children:(0,s.jsx)(eq,{numSelected:i.length})})})})}let eG=e=>{let{data:i,search:n,handleSearch:l,handleDrawerOpen:c,handleUserDetails:x,handleStarredChange:h,handleImportantChange:m}=e,p=(0,a.Z)(),j=(0,t.Z)(p.breakpoints.down("md")),[Z,g]=r.useState([]),[u,b]=r.useState(0),[k,v]=r.useState(10),f=(e,i)=>{let n=Z.indexOf(i),s=[];
1-1===n?s=s.concat(Z,i):0===n?s=s.concat(Z.slice(1)):n===Z.length-1?s=s.concat(Z.slice(0,-1)):n>0&&(s=s.concat(Z.slice(0,n),Z.slice(n+1))),g(s)},P=(e,i)=>{b(i)},y=e=>{v(parseInt(null==e?void 0:e.target.value,10)),b(0)},w=e=>-1!==Z.indexOf(e),C=u>0?Math.max(0,(1+u)*k-i.length):0,[z,S]=r.useState(!1),R=()=>{S(!z)},D="dark"===p.palette.mode?"dark.main":"grey.100";return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(d.ZP,{container:!0,spacing:j?3:1,children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(eF,{search:n,handleSearch:l,length:i.length,rowsPerPage:k,page:u,handleChangePage:P,handleChangeRowsPerPage:y,handleDrawerOpen:c,handleDenseTable:R})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:i.length?(0,s.jsx)(A.Z,{content:!1,sx:{bgcolor:"dark"===p.palette.mode?"dark.800":"grey.50"},children:(0,s.jsx)(eC.Z,{children:(0,s.jsxs)(ez.Z,{size:z?"small":void 0,"aria-labelledby":"tableTitle",sx:{minWidth:320,"& td":{whiteSpace:"nowrap",px:.75,py:z?.5:1.25}},children:[Z.length>0&&(0,s.jsx)(eH,{selected:Z}),(0,s.jsxs)(eS.Z,{children:[i.slice(u*k,u*k+k).map((e,i)=>{let n=w(e.profile.name),r="enhanced-table-checkbox-".concat(i);return(0,s.jsxs)(ey.Z,{hover:!0,sx:{bgcolor:e.isRead?"":D,"& td:last-of-type>div":{position:"absolute",top:"50%",right:5,transform:"translateY(-50%)",display:"none",background:"dark"===p.palette.mode?p.palette.dark[800]:"#fff",boxShadow:"0px 1px 4px rgba(0, 0, 0, 0.1)",borderRadius:"12px",py:1,px:1.75,"& button + button":{ml:.625}},"&:hover":{"& td:last-of-type>div":{display:"block"}}},"aria-checked":n,tabIndex:-1,selected:n,children:[(0,s.jsxs)(ew.Z,{children:[(0,s.jsx)(es.Z,{checked:n,color:"primary",onChange:i=>f(i,e.profile.name),inputProps:{"aria-labelledby":r}}),(0,s.jsx)(es.Z,{icon:(0,s.jsx)(ej.Z,{}),checkedIcon:(0,s.jsx)(ee.Z,{}),sx:{"&.Mui-checked":{color:p.palette.warning.dark}},checked:e.starred,onChange:i=>h(i,e),size:"small"}),(0,s.jsx)(es.Z,{icon:(0,s.jsx)(eE.Z,{}),checkedIcon:(0,s.jsx)($.Z,{}),sx:{"&.Mui-checked":{color:p.palette.secondary.main}},checked:e.important,onChange:i=>m(i,e),size:"small"})]}),(0,s.jsx)(ew.Z,{id:r,sx:{cursor:"pointer"},onClick:i=>x(i,e),children:(0,s.jsxs)(d.ZP,{container:!0,spacing:2,alignItems:"center",sx:{flexWrap:"nowrap"},children:[(0,s.jsx)(d.ZP,{item:!0,children:(0,s.jsx)(eM.Z,{sx:{width:z?30:40,height:z?30:40},alt:e.profile.name,src:e.profile&&e.profile.avatar&&"".concat("/assets/images/users","/").concat(e.profile.avatar)})}),(0,s.jsx)(d.ZP,{item:!0,xs:!0,zeroMinWidth:!0,children:(0,s.jsx)(eI.Z,{disableRipple:!0,children:(0,s.jsx)(M.Z,{align:"left",variant:e.isRead?"body2":"subtitle1",component:"div",children:e.profile.name})})})]})}),(0,s.jsx)(ew.Z,{sx:{cursor:"pointer"},onClick:i=>x(i,e),children:(0,s.jsxs)(o.Z,{component:"span",sx:{display:"flex",width:{xs:220,md:350,lg:600,xl:700}},children:[(0,s.jsxs)(M.Z,{variant:e.isRead?"body2":"subtitle1",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:[e.subject," - ",e.message]}),e.promotions&&(0,s.jsx)(e_.Z,{label:"Promotions",size:"small",sx:{color:p.palette.primary.main,bgcolor:p.palette.primary.light}}),e.forums&&(0,s.jsx)(e_.Z,{label:"Forums",size:"small",sx:{ml:e.promotions?1:0,mr:e.attach?1:0,color:p.palette.warning.dark,bgcolor:p.palette.warning.light}})]})}),(0,s.jsx)(ew.Z,{align:"center",children:e.attach&&(0,s.jsx)(I.Z,{size:"large","aria-label":"attachment",children:(0,s.jsx)(_.Z,{fontSize:"small"})})}),(0,s.jsxs)(ew.Z,{align:"center",sx:{position:"relative"},children:[(0,ea.Z)(new Date(e.time),"d MMM yy HH:mm a"),(0,s.jsxs)("div",{children:[(0,s.jsx)(I.Z,{size:"large","aria-label":"archive",children:(0,s.jsx)(eN.Z,{fontSize:"small"})}),(0,s.jsx)(I.Z,{size:"large","aria-label":"mail",children:(0,s.jsx)(U.Z,{fontSize:"small"})}),(0,s.jsx)(I.Z,{size:"large","aria-label":"delete",children:(0,s.jsx)(K.Z,{fontSize:"small"})}),(0,s.jsx)(I.Z,{size:"large","aria-label":"view",children:(0,s.jsx)(eB.Z,{fontSize:"small"})})]})]})]},i)}),C>0&&(0,s.jsx)(ey.Z,{style:{height:53*C},children:(0,s.jsx)(ew.Z,{colSpan:6})})]})]})})}):(0,s.jsx)(eD,{})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,sx:{pt:"0 !important",display:{xs:"block",sm:"none"}},children:(0,s.jsx)(eR.Z,{rowsPerPageOptions:[],component:"div",count:i.length,rowsPerPage:k,page:u,onPageChange:P,onRowsPerPageChange:y})})]})})};var eA=n(62981),eU=n(8781),eY=n(31881);let eX=(0,l.ZP)("main",{shouldForwardProp:e=>"open"!==e})(e=>{let{theme:i,open:n}=e;return{width:"calc(100% - 320px)",flexGrow:1,paddingLeft:n?i.spacing(3):0,transition:i.transitions.create("margin",{easing:i.transitions.easing.sharp,duration:i.transitions.duration.shorter}),marginLeft:"-".concat(W.D2,"px"),[i.breakpoints.down("xl")]:{paddingLeft:0,marginLeft:0},...n&&{transition:i.transitions.create("margin",{easing:i.transitions.easing.easeOut,duration:i.transitions.duration.shorter}),marginLeft:0}}}),eJ=()=>{let e=(0,a.Z)(),i=(0,t.Z)(e.breakpoints.down("xl")),n=(0,eU.I0)(),[l,c]=(0,r.useState)(!1),[h,m]=(0,r.useState)(null),p=async e=>{e&&(await n((0,eY.$h)(e.id)),await n((0,eY.Y9)())),m(e),c(e=>!e)},[j,Z]=(0,r.useState)(!0),g=()=>{Z(e=>!e)};(0,r.useEffect)(()=>{i?Z(!1):Z(!0)},[i]);let[u,b]=(0,r.useState)([]),[k,v]=(0,r.useState)(),f=(0,eU.v9)(e=>e.mail);(0,r.useEffect)(()=>{b(f.mails),v(f.unreadCount)},[f]),(0,r.useEffect)(()=>{n((0,eA.FJ)(!1)),n((0,eY.Y9)())},[]);let[P,y]=(0,r.useState)("all"),w=async e=>{c(!1),y(e),await n((0,eY.tj)(e))},C=async(e,i)=>{i&&(await n((0,eY.LL)(i.id)),w(P))},z=async(e,i)=>{i&&(await n((0,eY.OQ)(i.id)),w(P))},[S,M]=(0,r.useState)(""),I=e=>{let i=e.target.value;if(M(i),i){let e=u.filter(e=>{let n=!0,s=!1;return["name"].forEach(n=>{e.profile[n].toString().toLowerCase().includes(i.toString().toLowerCase())&&(s=!0)}),s||(n=!1),n});b(e)}else w(P)};return(0,s.jsx)(x.Z,{title:"Mail",children:(0,s.jsxs)(o.Z,{sx:{display:"flex"},children:[(0,s.jsx)(ei,{openMailSidebar:j,handleDrawerOpen:g,filter:P,handleFilter:w,unreadCounts:k}),(0,s.jsx)(eX,{theme:e,open:j,children:(0,s.jsx)(d.ZP,{container:!0,spacing:W.dv,children:(0,s.jsx)(d.ZP,{item:!0,xs:12,children:l?(0,s.jsx)(ev,{data:h,handleUserDetails:(e,i)=>p(i),handleImportantChange:C,handleStarredChange:z}):(0,s.jsx)(eG,{handleUserDetails:(e,i)=>p(i),handleDrawerOpen:g,handleImportantChange:C,handleStarredChange:z,data:u,search:S,handleSearch:I})})})})]})})};eJ.getLayout=function(e){return(0,s.jsx)(c.Z,{children:e})};var eK=eJ}},function(e){e.O(0,[9584,7819,7520,8220,3394,676,2912,5685,2405,641,8246,5312,9774,2888,179],function(){return e(e.s=13909)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.