"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3951],{95776:function(e,t,n){n.r(t),n.d(t,{default:function(){return q}});var i=n(67294),o=n(28216),a=n(10593),r=n(63366),l=n(87462),s=n(97326),c=n(94578),d=n(220);function m(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function f(e,t,n){return null!=n[t]?n[t]:e.props[t]}function u(e,t,n){var o=m(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,o=Object.create(null),a=[];for(var r in e)r in t?a.length&&(o[r]=a,a=[]):a.push(r);var l={};for(var s in t){if(o[s])for(i=0;i({type:x.Zg,payload:e});var _=()=>i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 12.6522 18.9464 15.1957 17.0711 17.0711C15.1957 18.9464 12.6522 20 10 20C7.34784 20 4.8043 18.9464 2.92893 17.0711C1.05357 15.1957 0 12.6522 0 10C0 7.34784 1.05357 4.8043 2.92893 2.92893C4.8043 1.05357 7.34784 0 10 0V0ZM10 1.25C7.67936 1.25 5.45376 2.17187 3.81282 3.81282C2.17187 5.45376 1.25 7.67936 1.25 10C1.25 12.3206 2.17187 14.5462 3.81282 16.1872C5.45376 17.8281 7.67936 18.75 10 18.75C12.3206 18.75 14.5462 17.8281 16.1872 16.1872C17.8281 14.5462 18.75 12.3206 18.75 10C18.75 7.67936 17.8281 5.45376 16.1872 3.81282C14.5462 2.17187 12.3206 1.25 10 1.25ZM10.8337 8.33375V13.555C10.8337 14.0013 11.2638 14.02 11.6663 14.1675V15H8.33375V14.1663C8.73625 14.0175 9.16625 13.9988 9.16625 13.5538V9.83125C9.16625 9.38625 8.73625 9.31625 8.33375 9.1675V8.33375H10.8337ZM9.99875 4.79125C10.2754 4.79125 10.5407 4.90115 10.7364 5.09677C10.932 5.2924 11.0419 5.55772 11.0419 5.83437C11.0419 6.11103 10.932 6.37635 10.7364 6.57198C10.5407 6.7676 10.2754 6.8775 9.99875 6.8775C9.7221 6.8775 9.45677 6.7676 9.26115 6.57198C9.06553 6.37635 8.95563 6.11103 8.95563 5.83437C8.95563 5.55772 9.06553 5.2924 9.26115 5.09677C9.45677 4.90115 9.7221 4.79125 9.99875 4.79125Z",fill:"black"})),M=n(10586),Z=n(94737),O=n(88169);const L=(0,M.iv)(["display:flex;align-items:center;width:17rem;position:relative;margin-bottom:0.5rem;margin-right:0;margin-left:auto;&.item-enter{opacity:0.01;transform:translate(0,80px);}&.item-enter-active{opacity:1;transition:opacity 500ms,transform 250ms;transform:translate(0);}&.item-exit{top:0;right:0;opacity:1;margin-top:0;}&.item-exit-active{margin-top:-80px;right:0;opacity:0.01;transition:opacity 500ms,margin-top 250ms;}"]),P=(0,M.iv)(["display:flex;align-items:center;width:100%;cursor:pointer;position:relative;z-index:2;border-radius:0.5rem;"]),z=M.ZP.div.withConfig({displayName:"NotificationToastsListstyled__ToastList",componentId:"sc-wbudn0-0"})(["display:flex;flex-direction:column;align-items:flex-end;position:fixed;right:1rem;top:3.5rem;z-index:9999999;overflow:visible;"]),A=(0,M.iv)(["font-size:0.8rem;text-align:left;line-height:20px;font-weight:600;user-select:text;width:100%;","{font-size:0.7rem;line-hegith:20px;}"],Z.Z.mobile),N=M.ZP.div.withConfig({displayName:"NotificationToastsListstyled__Title",componentId:"sc-wbudn0-1"})(["",";margin:0 0 0.25rem;"],A),j=M.ZP.button.withConfig({displayName:"NotificationToastsListstyled__Remove",componentId:"sc-wbudn0-2"})(["position:absolute;right:0.25rem;top:0.25rem;width:1rem;height:1rem;border:none;background:transparent;z-index:3;opacity:0;cursor:pointer;transition:opacity 0.25s ease;& svg{width:100%;height:auto;}"]),k=M.ZP.div.withConfig({displayName:"NotificationToastsListstyled__AppElement",componentId:"sc-wbudn0-3"})(["",";","{color:#fff;}"," &:hover{","{opacity:0.6;&:hover{opacity:1;}}}"],L,N,(e=>!e.hasMsg&&(0,M.iv)(["","{margin:0;}"],N)),j),D=M.ZP.div.withConfig({displayName:"NotificationToastsListstyled__AppContainer",componentId:"sc-wbudn0-4"})(["",";padding:0.75rem 0.5rem;background-color:#191b1f;border:1px solid #3d3e42;box-shadow:0 1rem 2rem -0.5rem rgba(0,0,0,0.6);","{padding:0.25rem 0.5rem;}"],P,Z.Z.mobile),I=(0,M.ZP)(O.Z).withConfig({displayName:"NotificationToastsListstyled__Message",componentId:"sc-wbudn0-5"})(["& h3{",";margin:0 0 0.25rem;}font-size:0.75rem;font-weight:400;color:rgba(255,255,255,0.8);line-height:1rem;text-align:left;margin:0;","{font-size:0.6rem;line-height:15px;}& p{font-size:0.75rem;font-weight:400;color:rgba(255,255,255,0.8);line-height:1rem;text-align:left;margin:0;","{font-size:0.6rem;line-height:15px;}}& a{display:inline-block;font-size:0.8rem;font-weight:500;line-height:1rem;color:#007aff;text-decoration:none;","{font-size:0.6rem;line-height:15px;}&:hover{color:#57a5ff;}}"],A,Z.Z.mobile,Z.Z.mobile,Z.Z.mobile),T=M.ZP.div.withConfig({displayName:"NotificationToastsListstyled__UIContainer",componentId:"sc-wbudn0-6"})(["",";padding:1rem 0.75rem;background-color:#fff;border:1px solid #d4d8dc;box-shadow:0 1rem 2rem -0.75rem rgba(0,0,0,0.5);"],P),V=M.ZP.div.withConfig({displayName:"NotificationToastsListstyled__UIElement",componentId:"sc-wbudn0-7"})([""," ","{color:#2d2d30;margin:0;}"],L,N),S=M.ZP.div.withConfig({displayName:"NotificationToastsListstyled__IconContainer",componentId:"sc-wbudn0-8"})(["margin-right:0.5rem;width:1rem;height:1rem;display:flex;align-self:flex-start;justify-content:center;flex-shrink:0;"," & svg{width:100%;height:auto;}"],(e=>e.isPersonal&&(0,M.iv)(["margin-right:0.25rem;"]))),R=M.ZP.div.withConfig({displayName:"NotificationToastsListstyled__Content",componentId:"sc-wbudn0-9"})(["display:flex;flex-direction:column;align-items:flex-start;flex:1 1 0;position:relative;padding-right:1rem;z-index:2;user-select:text;word-break:break-word;"]),F={[x.pn]:()=>i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10 0C15.52 0 20 4.48 20 10C20 15.52 15.52 20 10 20C4.48 20 0 15.52 0 10C0 4.48 4.48 0 10 0ZM16.4556 5.27333L5.27333 16.4556C6.64368 17.4616 8.29999 18.0028 10 18C14.42 18 18 14.42 18 10C18.0028 8.29999 17.4616 6.64368 16.4556 5.27333V5.27333ZM10 2C8.94934 1.99971 7.90892 2.20644 6.93819 2.60837C5.96745 3.0103 5.08542 3.59957 4.34249 4.34249C3.59957 5.08542 3.0103 5.96745 2.60837 6.93819C2.20644 7.90892 1.99971 8.94934 2 10C2 11.85 2.62667 13.5522 3.68 14.9067L14.9067 3.68C13.5044 2.58817 11.7772 1.99679 10 2V2Z",fill:"url(#paint0_linear_105_3)"}),i.createElement("defs",null,i.createElement("linearGradient",{id:"paint0_linear_105_3",x1:"10",y1:"0",x2:"10",y2:"18.5872",gradientUnits:"userSpaceOnUse"},i.createElement("stop",{offset:"0%",stopColor:"#F3576B"}),i.createElement("stop",{offset:"100%",stopColor:"#DC3F52"})))),[x.MR]:()=>i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z",fill:"#26C03B"}),i.createElement("path",{d:"M12.7386 7.07837L8.67143 11.2211L6.85473 9.3975C6.76755 9.31032 6.66406 9.24117 6.55015 9.19399C6.43625 9.14681 6.31417 9.12253 6.19088 9.12253C6.06759 9.12253 5.94551 9.14681 5.8316 9.19399C5.7177 9.24117 5.6142 9.31032 5.52702 9.3975C5.43984 9.48468 5.37069 9.58818 5.32351 9.70208C5.27633 9.81599 5.25204 9.93807 5.25204 10.0614C5.25204 10.1846 5.27633 10.3067 5.32351 10.4206C5.37069 10.5345 5.43984 10.638 5.52702 10.7252L8.77123 13.9614L14.2597 8.63914C14.3636 8.53833 14.4466 8.41802 14.5039 8.28509C14.5613 8.15217 14.5919 8.00923 14.5939 7.86447C14.596 7.71971 14.5694 7.57596 14.5159 7.44147C14.4623 7.30697 14.3827 7.18436 14.2817 7.08066C14.1814 6.97768 14.0615 6.89579 13.9291 6.83978C13.7967 6.78377 13.6545 6.75478 13.5108 6.75452C13.367 6.75425 13.2247 6.78271 13.0921 6.83823C12.9595 6.89374 12.8393 6.9752 12.7386 7.0778V7.07837Z",fill:"white"})),[x.H_]:_};var H=e=>{const t=(0,y.T)(),n=i.useMemo((()=>F[e.notification.type]||_),[e.notification.type]);return i.createElement(V,Object.assign({onClick:()=>{t(b(e.id))}},w.A("notification.system.toast",{title:e.notification.message})),i.createElement(T,null,i.createElement(S,{isPersonal:!0},i.createElement(n,null)),i.createElement(R,null,i.createElement(N,null,e.notification.message))))},B=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"},i.createElement("defs",null,i.createElement("linearGradient",{id:"a2344",x1:"8.679%",x2:"82.005%",y1:"-57.183%",y2:"238.199%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"}))),i.createElement("path",{d:"M2.165 14.81c.234-.392 1.857-1.824 2.183-4.123.481-2.429.81-5.562 1.44-6.665C6.42 2.92 7.078 2.327 8.515 2c.071-.228.096-1.16.407-1.508C9.202.18 9.542 0 10 0c.458 0 .785.175 1.07.491.329.321.339 1.102.453 1.508 1.457.356 2.006.775 2.751 2.023.746 1.249.915 4.264 1.376 6.665.347 2.327 1.972 3.759 2.185 4.122.238.236.205.588 0 .764a.816.816 0 01-.495.152H2.66c-.397 0-.66-.243-.66-.61 0-.071.058-.205.165-.306zM9.918 20c-1.421 0-2.475-.896-2.475-2.29 0-.046.028-.153.165-.153h4.784c.165 0 .165.11.165.153 0 1.394-1.06 2.29-2.64 2.29z",transform:"translate(5 5)",fill:"url(#a2344)",fillRule:"nonzero"})),G=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20"},i.createElement("g",{fill:"none",fillRule:"evenodd",opacity:".602"},i.createElement("rect",{width:"20",height:"20",rx:"10",fill:"#000",fillOpacity:".4"}),i.createElement("path",{fill:"#FFF",d:"M6.323 13.677a.65.65 0 010-.92l2.758-2.756-2.758-2.759a.65.65 0 11.92-.919L10 9.083l2.758-2.76a.65.65 0 11.919.92L10.919 10l2.758 2.757a.65.65 0 11-.92.919L10 10.921l-2.758 2.756a.65.65 0 01-.919 0z"}))),U=n(32134),X=n(80128);const $={102:B,207:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"},i.createElement("defs",null,i.createElement("linearGradient",{id:"afgfg",x1:"-14.554%",x2:"100%",y1:"-27.44%",y2:"185.974%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"}))),i.createElement("path",{d:"M7.222 10.392a4.2 4.2 0 01-4.204-4.196C3.018 3.88 4.9 2 7.222 2s4.204 1.879 4.204 4.196a4.2 4.2 0 01-4.204 4.196zM5.174 19H2.588c-.388 0-.772-.07-1.13-.208-.414-.157-.714-.343-.9-.557-.655-.748-.995-2.231.494-4.131.993-1.267 2.675-2.197 4.122-2.234 1.447-.037 2.6-.037 4.096 0s3.13.967 4.122 2.234c1.49 1.9 1.15 3.383.495 4.13-.187.215-.487.4-.9.558a3.174 3.174 0 01-1.13.208H5.174zM17.5 4.55h1.65a.85.85 0 110 1.7H17.5v1.717a.833.833 0 01-1.667 0V6.25h-1.65a.85.85 0 110-1.7h1.65V2.833a.833.833 0 011.667 0V4.55z",transform:"translate(5 5)",fill:"url(#afgfg)",fillRule:"nonzero"})),209:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"},i.createElement("defs",null,i.createElement("linearGradient",{id:"avbn",x1:"-14.554%",x2:"100%",y1:"-27.44%",y2:"185.974%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"}))),i.createElement("path",{fill:"url(#avbn)",fillRule:"nonzero",d:"M9.27 11.87c1.496.037 3.13.967 4.122 2.234 1.49 1.9 1.15 3.383.495 4.13-.187.215-.487.4-.9.558a3.174 3.174 0 01-1.13.208h-9.27c-.387 0-.77-.07-1.13-.208-.413-.157-.713-.343-.9-.557-.654-.748-.994-2.231.495-4.131.993-1.267 2.675-2.197 4.122-2.234a75.58 75.58 0 014.096 0zM7.204 2a4.2 4.2 0 014.204 4.196c0 2.318-1.882 4.196-4.204 4.196S3 8.514 3 6.196A4.2 4.2 0 017.204 2zm9.553 0a.48.48 0 01.35.154l.296.315c.093.1.144.233.144.374s-.051.275-.144.374l-1.904 2.031h4.006l-.014-.003c.273 0 .509.23.509.52v.447c0 .29-.23.54-.502.54h-4.02l1.925 2.042a.541.541 0 010 .737l-.296.315a.476.476 0 01-.7 0l-3.263-3.473A.542.542 0 0113 6c0-.14.05-.273.144-.373l3.263-3.472a.475.475 0 01.35-.154z",transform:"translate(5 5)"})),208:B,211:B,210:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"},i.createElement("defs",null,i.createElement("linearGradient",{id:"a5454",x1:"-14.554%",x2:"100%",y1:"-55.169%",y2:"234.664%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"}))),i.createElement("path",{d:"M1.034 18.83c.728-1.477 1.536-3.507 1.495-4.92C1.548 12.701 1 10.304 1 8.72 1 4.254 5.247 1 10 1c4.724 0 9 3.23 9 7.721 0 4.047-2.009 8.643-11.484 7.885-1.172 1.434-4.074 2.224-6.482 2.224z",transform:"translate(5 5)",fill:"url(#a5454)",fillRule:"nonzero"}))};var K=e=>{const t=(0,y.T)(),n=$[e.notification.type]||B;return i.useEffect((()=>{setTimeout((()=>{t(b(e.id))}),7e3)}),[t,e.id]),i.createElement(k,Object.assign({hasMsg:!!e.notification.realTimeMessage,onClick:()=>{if(e.notification.type===x.LL&&e.notification.newMessage&&e.notification.newMessage.conversationId)return t((0,U.Wb)({conversationId:e.notification.newMessage.conversationId,userId:e.notification.newMessage.userId})),void t(b(e.id));t((0,X.i)(e.notification.id))}},w.A("notification.personal.toast")),i.createElement(j,Object.assign({onClick:n=>{n.stopPropagation(),t(b(e.id))}},w.A("notification.personal.toast.close")),i.createElement(G,null)),i.createElement(D,null,i.createElement(S,null,i.createElement(n,null)),i.createElement(R,null,e.notification.realTimeMessage&&i.createElement(I,{html:e.notification.realTimeMessage}))))};const W=()=>{const e=(0,C.C)(v.SP,o.shallowEqual),t=i.useMemo((()=>[102,208,207,209,210,211]),[]);return i.createElement(z,null,i.createElement(g,null,e.map((e=>{const n=t.findIndex((t=>t===e.type))>=0;return i.createElement(a.Z,{key:`toast-${e.id}`,classNames:"item",timeout:{enter:250,exit:250}},n?i.createElement(K,{key:`toast-${e.id}`,notification:e,id:e.id}):i.createElement(H,{key:`toast-${e.id}`,notification:e,id:e.id}))}))))};var q=()=>i.createElement(E.w,null,i.createElement(W,null))},35038:function(e,t,n){n.d(t,{w:function(){return m}});var i=n(67294),o=n(85002),a=n(54733),r=n(5758);const l=(e,t)=>e===t,s=e=>Object.assign(Object.assign({},e),{readDate:Date.now(),signal:!1}),c=e=>Object.assign(Object.assign({},e),{signal:!1}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.LI,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.PA:{const n=(0,a.mN)([...e.list,...t.payload],"id");return Object.assign(Object.assign({},e),{list:n})}case r.ik:return Object.assign(Object.assign({},e),{list:e.list.map((e=>l(e.id,t.payload)?s(e):e))});case r.Zg:return Object.assign(Object.assign({},e),{list:e.list.map((e=>l(e.id,t.payload)?c(e):e))});case r.Zw:return Object.assign(Object.assign({},e),{list:e.list.filter((e=>e.id!==t.payload))});case r.ci:return Object.assign(Object.assign({},e),{unreadCount:t.payload});default:return e}},m=e=>{let{children:t}=e;return i.createElement(o.DynamicModuleLoader,{modules:[{id:"notifications-dynamic-module",reducerMap:{notifications:d}}]},t)}},80128:function(e,t,n){n.d(t,{i:function(){return r}});var i=n(82885),o=n(5758),a=n(34510);const r=e=>t=>{return n=void 0,r=void 0,s=function*(){t({type:o.ik,payload:e});try{yield i.iG({id:e}),t((0,a.O)())}catch(e){console.error(e)}},new((l=void 0)||(l=Promise))((function(e,t){function i(e){try{a(s.next(e))}catch(e){t(e)}}function o(e){try{a(s.throw(e))}catch(e){t(e)}}function a(t){var n;t.done?e(t.value):(n=t.value,n instanceof l?n:new l((function(e){e(n)}))).then(i,o)}a((s=s.apply(n,r||[])).next())}));var n,r,l,s}},22318:function(e,t,n){n.d(t,{Go:function(){return p},SP:function(){return f},uX:function(){return u}});var i=n(20573),o=n(54733),a=n(5758),r=n(85955);const l=e=>e.notifications,s=(0,i.P1)(l,(e=>e.list)),c=((0,i.P1)(s,(e=>e.filter((e=>(0,r.SO)(e.type))))),(0,i.P1)(s,(e=>e.filter((e=>(0,r.SO)(e.type)&&!e.readDate))))),d=(0,i.P1)(c,(e=>(0,o.Xo)(e,"createdDate","desc"))),m=(0,i.P1)(s,(e=>e.filter((e=>e.signal&&!e.readDate)))),f=(0,i.P1)(m,(e=>(0,o.Xo)(e,"createdDate","asc"))),u=(0,i.P1)(d,(e=>e.slice(0,a.SR))),p=(0,i.P1)(l,(e=>e.unreadCount))},4393:function(e,t,n){n.d(t,{C:function(){return o}});var i=n(28216);function o(e,t){return(0,i.useSelector)(e,t)}}}]);