"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3951],{25866:function(e,t,n){n.r(t),n.d(t,{default:function(){return K}});var i=n(67294),a=n(28216),o=n(88983),r=n(63366),l=n(87462),s=n(97326),c=n(94578),d=(n(45697),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 p(e,t,n){var a=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,a=Object.create(null),o=[];for(var r in e)r in t?o.length&&(a[r]=o,o=[]):o.push(r);var l={};for(var s in t){if(a[s])for(i=0;ii.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M5 5h20v20H5V5zm0 0h20v20H5V5z"}),i.createElement("path",{fill:"#007AFF",fillRule:"nonzero",d:"M14.991 6C19.968 6 24 10.032 24 15s-4.032 9-9.009 9C10.023 24 6 19.968 6 15s4.023-9 8.991-9zM15 7.8c-3.978 0-7.2 3.222-7.2 7.2s3.222 7.2 7.2 7.2 7.2-3.222 7.2-7.2-3.222-7.2-7.2-7.2zM15 18a1 1 0 110 2 1 1 0 010-2zm0-8a1 1 0 011 1v5a1 1 0 01-2 0v-5a1 1 0 011-1z"}))),x=n(5758);const y=e=>({type:x.Zg,payload:e});var b=n(91288),z=n(94737),C=n(88169);const M=(0,b.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;}"]),_=(0,b.iv)(["display:flex;align-items:center;width:100%;cursor:pointer;position:relative;z-index:2;border-radius:0.5rem;"]),A=b.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:2500;overflow:visible;"]),O=(0,b.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),P=b.ZP.div.withConfig({displayName:"NotificationToastsListstyled__Title",componentId:"sc-wbudn0-1"})(["",";margin:0 0 0.25rem;"],O),L=b.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;}"]),Z=b.ZP.div.withConfig({displayName:"NotificationToastsListstyled__AppElement",componentId:"sc-wbudn0-3"})(["",";","{color:#fff;}"," &:hover{","{opacity:0.6;&:hover{opacity:1;}}}"],M,P,(e=>!e.hasMsg&&(0,b.iv)(["","{margin:0;}"],P)),L),N=b.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;}"],_,z.Z.mobile),j=(0,b.ZP)(C.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;}}"],O,z.Z.mobile,z.Z.mobile,z.Z.mobile),D=b.ZP.div.withConfig({displayName:"NotificationToastsListstyled__UIContainer",componentId:"sc-wbudn0-6"})(["",";padding:0.5rem 0.5rem 0.75rem;background-color:#fff;border:1px solid #d4d8dc;box-shadow:0 1rem 2rem -0.75rem rgba(0,0,0,0.5);"],_),k=b.ZP.div.withConfig({displayName:"NotificationToastsListstyled__UIElement",componentId:"sc-wbudn0-7"})([""," ","{color:#2d2d30;margin:0;}"],M,P),I=b.ZP.div.withConfig({displayName:"NotificationToastsListstyled__IconContainer",componentId:"sc-wbudn0-8"})(["margin-right:0.5rem;width:1.5rem;height:1.5rem;display:flex;align-self:flex-start;justify-content:center;flex-shrink:0;"," & svg{width:100%;height:auto;}"],(e=>e.isPersonal&&(0,b.iv)(["margin-right:0.25rem;"]))),T=b.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;"]),R={[x.pn]:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"},i.createElement("defs",null,i.createElement("linearGradient",{id:"aczxvzxcv",x1:"50%",x2:"50%",y1:"0%",y2:"92.936%"},i.createElement("stop",{offset:"0%",stopColor:"#F3576B"}),i.createElement("stop",{offset:"100%",stopColor:"#DC3F52"}))),i.createElement("path",{d:"M10 1c4.968 0 9 4.032 9 9s-4.032 9-9 9-9-4.032-9-9 4.032-9 9-9zm5.81 4.746L5.746 15.81A7.168 7.168 0 0010 17.2c3.978 0 7.2-3.222 7.2-7.2a7.168 7.168 0 00-1.39-4.254zM10 2.8A7.198 7.198 0 002.8 10c0 1.665.564 3.197 1.512 4.416L14.416 4.312A7.167 7.167 0 0010 2.8z",transform:"translate(5 5)",fill:"url(#aczxvzxcv)",fillRule:"evenodd"})),[x.u_]:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"},i.createElement("defs",null,i.createElement("linearGradient",{id:"axcvbxcvb",x1:"50%",x2:"50%",y1:"0%",y2:"100%"},i.createElement("stop",{offset:"0%",stopColor:"#29C93F"}),i.createElement("stop",{offset:"100%",stopColor:"#1C9F2E"}))),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M5 5h20v20H5V5zm0 0h20v20H5V5z"}),i.createElement("path",{fill:"url(#axcvbxcvb)",d:"M13.494 6.659L8.2 11.953 5.604 9.365a.9.9 0 00-1.27 0 .9.9 0 000 1.27L8.2 14.5l6.563-6.563a.904.904 0 00.002-1.276.896.896 0 00-1.269-.004l-.002.002zM10 1c-4.968 0-9 4.032-9 9s4.032 9 9 9 9-4.032 9-9-4.032-9-9-9zm0 16.2c-3.978 0-7.2-3.222-7.2-7.2S6.022 2.8 10 2.8s7.2 3.222 7.2 7.2-3.222 7.2-7.2 7.2z",transform:"translate(5 5)"}))),[x.H_]:w};var V=e=>{const t=(0,a.useDispatch)(),n=R[e.notification.type]||w;return i.createElement(k,Object.assign({onClick:()=>{t(y(e.id))}},E.A("notification.system.toast",{title:e.notification.message})),i.createElement(D,null,i.createElement(I,{isPersonal:!0},i.createElement(n,null)),i.createElement(T,null,i.createElement(P,null,e.notification.message))))},F=()=>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"})),S=()=>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"}))),H=n(32134),G=n(80128);const U={102:F,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:F,211:F,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 X=e=>{const t=(0,a.useDispatch)(),n=U[e.notification.type]||F;return i.useEffect((()=>{setTimeout((()=>{t(y(e.id))}),7e3)}),[t,e.id]),i.createElement(Z,Object.assign({hasMsg:!!e.notification.realTimeMessage,onClick:()=>{if(e.notification.type===x.LL&&e.notification.newMessage&&e.notification.newMessage.conversationId)return t((0,H.Wb)({conversationId:e.notification.newMessage.conversationId,userId:e.notification.newMessage.userId})),void t(y(e.id));t((0,G.i)(e.notification.id))}},E.A("notification.personal.toast")),i.createElement(L,Object.assign({onClick:n=>{n.stopPropagation(),t(y(e.id))}},E.A("notification.personal.toast.close")),i.createElement(S,null)),i.createElement(N,null,i.createElement(I,null,i.createElement(n,null)),i.createElement(T,null,e.notification.realTimeMessage&&i.createElement(j,{html:e.notification.realTimeMessage}))))},B=n(35038);const $=()=>{const e=(0,a.useSelector)(v.SP,a.shallowEqual),t=i.useMemo((()=>[102,208,207,209,210,211]),[]);return i.createElement(A,null,i.createElement(g,null,e.map((e=>{const n=t.findIndex((t=>t===e.type))>=0;return i.createElement(o.Z,{key:`toast-${e.id}`,classNames:"item",timeout:{enter:250,exit:250}},n?i.createElement(X,{key:`toast-${e.id}`,notification:e,id:e.id}):i.createElement(V,{key:`toast-${e.id}`,notification:e,id:e.id}))}))))};var K=()=>i.createElement(B.w,null,i.createElement($,null))},35038:function(e,t,n){n.d(t,{w:function(){return c}});var i=n(67294),a=n(85002),o=n(54733),r=n(5758);const l=(e,t)=>e===t,s=(e=r.LI,t)=>{switch(t.type){case r.PA:{const n=(0,o.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)?(e=>Object.assign(Object.assign({},e),{readDate:Date.now(),signal:!1}))(e):e))});case r.Zg:return Object.assign(Object.assign({},e),{list:e.list.map((e=>l(e.id,t.payload)?(e=>Object.assign(Object.assign({},e),{signal:!1}))(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}},c=({children:e})=>i.createElement(a.DynamicModuleLoader,{modules:[{id:"notifications-dynamic-module",reducerMap:{notifications:s}}]},e)},80128:function(e,t,n){n.d(t,{i:function(){return r}});var i=n(82885),a=n(5758),o=n(34510);const r=e=>t=>{return n=void 0,r=void 0,s=function*(){t({type:a.ik,payload:e});try{yield i.iG({id:e}),t((0,o.O)())}catch(e){console.error(e)}},new((l=void 0)||(l=Promise))((function(e,t){function i(e){try{o(s.next(e))}catch(e){t(e)}}function a(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){var n;t.done?e(t.value):(n=t.value,n instanceof l?n:new l((function(e){e(n)}))).then(i,a)}o((s=s.apply(n,r||[])).next())}));var n,r,l,s}},22318:function(e,t,n){n.d(t,{SP:function(){return p},uX:function(){return u},Go:function(){return h}});var i=n(42279),a=n(54733),o=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))))),d=(0,i.P1)(s,(e=>e.filter((e=>(0,r.SO)(e.type)&&!e.readDate)))),m=(0,i.P1)(d,(e=>(0,a.Xo)(e,"createdDate","desc"))),f=(0,i.P1)(s,(e=>e.filter((e=>e.signal&&!e.readDate)))),p=(0,i.P1)(f,(e=>(0,a.Xo)(e,"createdDate","asc"))),u=((0,i.P1)(c,(e=>(0,a.Xo)(e,"createdDate","desc"))),(0,i.P1)(m,(e=>e.slice(0,o.SR)))),h=(0,i.P1)(l,(e=>e.unreadCount))}}]);