1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4412],{42885:(t,i,e)=>{"use strict";e.r(i),e.d(i,{default:()=>tn});var n=e(6029),o=e(55729),a=e(58894),s=e(20220),l=e(9789),r=e(82862),c=e(7893),p=e(82612),d=e.n(p);e(81348),e(42588);var C=e(70415),x=e(89696),f=e(41735),u=e(27724),h=e(95667),g=e(88417),m=e(63980),j=e(27737);let y="#0063E4",b="#424242",w=[{id:0,title:"ÐÑе",icon:j.E3},{id:1,title:"СиÑÑемнÑе",icon:j.wB},{id:2,title:"ФинанÑовÑе",icon:j.uW},{id:3,title:"ÐаÑкеÑинговÑе",icon:j.j0}];function k({activeCategoryId:t,onCategoryChange:i}){return(0,n.jsx)(v,{"data-testid":"notifications-menu",children:w.map(({id:e,title:o,icon:a})=>{let s=e===t;return(0,n.jsxs)(M,{type:"button",$active:s,onClick:()=>i(e),"data-testid":`notifications-menu-item-${e}`,children:[(0,n.jsx)(a,{color:s?y:b,size:20}),o]},e)})})}let v=f.default.div.withConfig({componentId:"sc-81e56787-0"})(["display:flex;flex-direction:column;align-items:flex-start;margin-top:20px;","{width:100%;flex-direction:row;justify-content:center;align-items:center;margin-top:16px;}","{overflow-x:auto;justify-content:flex-start;}"],(0,u.Hc)("tablet"),(0,u.Hc)("mobile")),M=f.default.button.withConfig({componentId:"sc-81e56787-1"})(["display:flex;align-items:center;padding:0;border:none;background:transparent;font-size:16px;font-weight:500;line-height:1.5;color:",";cursor:pointer;white-space:nowrap;& svg{margin-right:8px;flex-shrink:0;}&:not(:last-child){margin-bottom:20px;}","{&:not(:last-child){margin-bottom:0;margin-right:24px;}}"],({$active:t})=>t?y:b,(0,u.Hc)("tablet")),_={1:j.wB,2:j.uW,3:j.j0,4:j.wB,5:j.wB};function H({categoryId:t,message:i,timestamp:e,isRead:o,onMarkAsRead:a}){let s=_[t];return(0,n.jsxs)(L,{$active:!o,onClick:o?void 0:a,role:o?void 0:"button",tabIndex:o?void 0:0,onKeyDown:t=>{o||"Enter"!==t.key||a?.()},"data-testid":"notifications-item",children:[(0,n.jsx)(I,{children:(0,n.jsx)(Z,{$active:!o})}),(0,n.jsxs)(F,{children:[(0,n.jsxs)(O,{children:[s?(0,n.jsx)(E,{children:(0,n.jsx)(s,{color:"#1A2B4D",size:16})}):null,(0,n.jsx)(S,{dangerouslySetInnerHTML:{__html:i}})]}),(0,n.jsx)(V,{children:new Date(1e3*e).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})})]})]})}let L=f.default.div.withConfig({componentId:"sc-531cb58-0"})(["width:100%;display:flex;border-bottom:solid 1px ",";padding:12px 0 8px;cursor:",";"],(0,u.MF)("bw300"),({$active:t})=>t?"pointer":"default"),I=f.default.div.withConfig({componentId:"sc-531cb58-1"})(["height:20px;display:flex;align-items:center;flex:0 0 auto;padding:0 12px;"]),Z=f.default.div.withConfig({componentId:"sc-531cb58-2"})(["width:8px;height:8px;border-radius:4px;background-color:",";"],({$active:t})=>t?"#4D8AF0":(0,u.MF)("bw300")),F=f.default.div.withConfig({componentId:"sc-531cb58-3"})(["display:flex;flex-direction:column;align-items:flex-start;min-width:0;
1"]),O=f.default.div.withConfig({componentId:"sc-531cb58-4"})(["",";color:",";margin-bottom:8px;position:relative;padding-left:24px;"],(0,u.XC)("text1"),(0,u.MF)("bw800")),E=f.default.div.withConfig({componentId:"sc-531cb58-5"})(["position:absolute;top:2px;left:0;display:flex;"]),S=f.default.span.withConfig({componentId:"sc-531cb58-6"})(["word-break:break-word;"]),V=f.default.div.withConfig({componentId:"sc-531cb58-7"})(["",";color:",";","{display:block;}"],(0,u.XC)("caption"),(0,u.MF)("bw500"),(0,u.Hc)("mobile"));function A(){return(0,n.jsxs)("svg",{width:"242",height:"261",viewBox:"0 0 242 261",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsxs)("g",{opacity:"0.3",clipPath:"url(#clip0)",children:[(0,n.jsx)("path",{d:"M146.474 14.6435L20.3948 45.2899L57.772 242.636L183.852 211.99L146.474 14.6435Z",fill:"#E0E0E0"}),(0,n.jsx)("g",{opacity:"0.5",children:(0,n.jsx)("path",{opacity:"0.5",d:"M145.007 18.6163L23.1589 48.1086L59.421 238.757L181.269 209.264L145.007 18.6163Z",fill:"url(#paint0_linear)"})}),(0,n.jsx)("path",{d:"M143.691 20.2783L24.9736 49.1351L60.2896 235.598L179.007 206.741L143.691 20.2783Z",fill:"#FAFAFA"}),(0,n.jsx)("path",{d:"M112.404 19.4278L53.51 33.7433L56.571 49.905L115.465 35.5895L112.404 19.4278Z",fill:"url(#paint1_linear)"}),(0,n.jsx)("path",{d:"M79.9656 10.8002C75.4187 11.9067 72.5418 17.0778 73.5421 22.3492C74.5423 27.6206 79.0362 31.0034 83.5743 29.897C88.1124 28.7906 90.9981 23.6194 89.9978 18.348C88.9976 13.0766 84.5126 9.69382 79.9656 10.8002ZM82.8189 25.8757C81.8579 26.1354 80.8505 26.065 79.9249 25.6735C78.9994 25.2821 78.1977 24.5874 77.622 23.6778C77.0463 22.7683 76.7227 21.6852 76.6924 20.5665C76.6621 19.4478 76.9265 18.3443 77.4519 17.3965C77.9773 16.4487 78.7399 15.6996 79.6426 15.2446C80.5452 14.7897 81.547 14.6495 82.5202 14.8419C83.4934 15.0343 84.394 15.5506 85.1072 16.3251C85.8205 17.0995 86.314 18.097 86.5249 19.1904C86.6707 19.9051 86.6903 20.6454 86.5828 21.3688C86.4752 22.0921 86.2426 22.7843 85.8982 23.4055C85.5539 24.0267 85.1046 24.5647 84.5761 24.9887C84.0477 25.4126 83.4505 25.714 82.8189 25.8757Z",fill:"url(#paint2_linear)"}),(0,n.jsx)("path",{d:"M111.652 18.8853L53.9988 32.8993L56.9249 48.3485L114.578 34.3346L111.652 18.8853Z",fill:"#0063E4"}),(0,n.jsx)("path",{d:"M79.9653 10.8003C78.3717 11.1878 76.9153 12.1019 75.7803 13.4271C74.6453 14.7522 73.8826 16.4289 73.5887 18.2451C73.2948 20.0613 73.4829 21.9355 74.1292 23.6306C74.7755 25.3256 75.851 26.7656 77.2197 27.7682C78.5883 28.7709 80.1887 29.2913 81.8184 29.2636C83.4481 29.2359 85.034 28.6613 86.3755 27.6126C87.717 26.5639 88.7538 25.088 89.355 23.3717C89.9561 21.6554 90.0945 19.7757 89.7526 17.9704C89.5256 16.7715 89.0924 15.635 88.4776 14.6259C87.8629 13.6167 87.0787 12.7546 86.1699 12.0888C85.261 11.423 84.2453 10.9665 83.1807 10.7454C82.1161 10.5243 81.0235 10.543 79.9653 10.8003ZM82.6917 25.2073C81.7719 25.4309 80.8142 25.3404 79.9397 24.9474C79.0652 24.5543 78.3133 23.8763 77.779 22.9991C77.2447 22.1219 76.952 21.0849 76.9379 20.0193C76.9239 18.9536 77.1891 17.9072 77.7 17.0123C78.211 16.1174 78.9447 15.4143 79.8084 14.9918C80.6721 14.5693 81.627 14.4465 82.5523 14.6389C83.4776 14.8312 84.3318 15.3301 85.0069 16.0725C85.6819 16.8148 86.1474 17.7673 86.3446 18.8094C86.609 20.2065 86.3727 21.6654 85.6876 22.8652C85.0026 24.065 83.925 24.9075 82.6917 25.2073Z",fill:"#0063E4"}),(0,n.jsx)("path",{d:"M205.043 39.0792H76.094V240.917H205.043V39.0792Z",fill:"#E0E0E0"}),(0,n.jsx)("g",{opacity:"0.5",children:(0,n.jsx)("path",{opacity:"0.5",d:"M202.866 42.4922H78.2747V237.508H202.866V42.4922Z",fill:"url(#paint3_linear)"})}),(0,n.jsx)("path",{d:"M201.278 43.9296H79.8591V234.636H201.278V43.9296Z",fill:"white"}),(0,n.jsx)("path",{d:"M170.845 35.6597H110.611V52.1892H170.845V35.6597Z",fill:"url(#paint4_linear)"}),(0,n.jsx)("path",{d:"M140.728 19.5245C136.078 19.5245 132.307 23.8968 132.307 29.2919C132.307 34.687 136.078 39.0592 140.728 39.0592C145.378 39.0592 149.149 34.687 149.149 29.2919C149.149 23.8968 145.378 19.5245 140.728 19.5245ZM140.728 34.9276C139.739 34.9542 138.766 34.6464 137.933 34.0435C137.099 33.4406 136.443 32.57 136.048 31.5428C135.654 30.5157 135.538 29.3785 135.717 28.2766C135.895 27.1747 136.359 26.1581 137.05 25.3565C137.741 24.5549 138.627 24.0047 139.595 23.7762C140.563 23.5477 141.569 23.6512 142.485 24.0735C143.401 24.4959 144.185 25.2179 144.737 26.1473C145.289 27.0768 145.584 28.1716 145.585 29.2919C145.594 30.7642 145.088 32.181 144.178 33.2321C143.268 34.2832 142.027 34.8832 140.728 34.9009V34.9276Z",fill:"url(#paint5_linear)"}),(0,n.jsx)("path",{d:"M170.211 34.951H111.246V50.7519H170.211V34.951Z",fill:"#0063E4"}),(0,n.jsx)("path",{d:"M140.728 19.5245C139.098 19.5245 137.505 20.0721 136.149 21.098C134.794 22.1238 133.738 23.5819 133.114 25.2879C132.49 26.9938 132.327 28.871 132.645 30.682C132.963 32.4931 133.748 34.1566 134.901 35.4623C136.053 36.768 137.522 37.6571 139.12 38.0174C140.719 38.3776 142.376 38.1927 143.882 37.4861C145.388 36.7795 146.675 35.5828 147.58 34.0475C148.486 32.5122 148.969 30.7072 148.969 28.8606C148.969 26.3846 148.101 24.0099 146.555 22.259C145.01 20.5082 142.914 19.5245 140.728 19.5245ZM140.728 34.2491C139.788 34.2477 138.869 33.9309 138.088 33.3386C137.307 32.7463 136.698 31.9051 136.339 30.9212C135.979 29.9372 135.885 28.8547 136.069 27.8102C136.252 26.76
158 136.704 25.8063 137.368 25.0528C138.033 24.2994 138.879 23.7858 139.801 23.5769C140.723 23.368 141.678 23.4732 142.547 23.8792C143.416 24.2852 144.16 24.9738 144.683 25.858C145.207 26.7422 145.488 27.7824 145.49 28.8473C145.49 29.5552 145.366 30.256 145.127 30.9099C144.887 31.5637 144.536 32.1576 144.094 32.6577C143.652 33.1578 143.127 33.5542 142.549 33.8244C141.972 34.0946 141.353 34.2332 140.728 34.2323V34.2491Z",fill:"#0063E4"}),(0,n.jsxs)("g",{opacity:"0.5",children:[(0,n.jsx)("path",{opacity:"0.5",d:"M5.61506 246.372H4.50562V253.502H5.61506V246.372Z",fill:"#47E6B1"}),(0,n.jsx)("path",{opacity:"0.5",d:"M8.20825 250.568V249.311H1.91454V250.568H8.20825Z",fill:"#47E6B1"})]}),(0,n.jsxs)("g",{opacity:"0.5",children:[(0,n.jsx)("path",{opacity:"0.5",d:"M134.328 0H133.219V7.12994H134.328V0Z",fill:"#47E6B1"}),(0,n.jsx)("path",{opacity:"0.5",d:"M136.922 4.19189V2.93506L130.628 2.93506V4.19189H136.922Z",fill:"#47E6B1"})]}),(0,n.jsx)("path",{opacity:"0.5",d:"M227.518 258.242C227.212 258.091 226.966 257.818 226.826 257.475C226.686 257.132 226.663 256.742 226.76 256.38C226.776 256.325 226.786 256.268 226.79 256.21C226.798 256.044 226.76 255.88 226.68 255.741C226.6 255.602 226.482 255.496 226.345 255.439C226.208 255.382 226.058 255.376 225.917 255.423C225.777 255.469 225.653 255.566 225.565 255.698C225.534 255.745 225.509 255.795 225.488 255.849C225.355 256.195 225.114 256.475 224.811 256.633C224.508 256.791 224.164 256.818 223.845 256.708C223.796 256.69 223.745 256.679 223.694 256.674C223.548 256.664 223.403 256.708 223.28 256.799C223.158 256.89 223.064 257.022 223.014 257.178C222.963 257.334 222.958 257.504 222.999 257.663C223.041 257.822 223.126 257.962 223.243 258.062C223.284 258.096 223.328 258.126 223.376 258.149C223.682 258.299 223.928 258.573 224.068 258.916C224.208 259.259 224.231 259.649 224.134 260.01C224.118 260.066 224.108 260.123 224.104 260.181C224.096 260.346 224.134 260.511 224.214 260.65C224.294 260.789 224.412 260.894 224.549 260.952C224.686 261.009 224.836 261.015 224.977 260.968C225.117 260.921 225.241 260.825 225.329 260.692C225.36 260.646 225.385 260.595 225.406 260.542C225.539 260.195 225.78 259.916 226.083 259.758C226.386 259.599 226.73 259.573 227.049 259.683C227.098 259.701 227.148 259.712 227.2 259.716C227.346 259.726 227.491 259.683 227.613 259.592C227.736 259.501 227.83 259.368 227.88 259.213C227.931 259.057 227.936 258.887 227.895 258.728C227.853 258.569 227.768 258.429 227.651 258.329C227.61 258.294 227.565 258.265 227.518 258.242Z",fill:"#4D8AF0"}),(0,n.jsx)("path",{opacity:"0.5",d:"M40.3264 189.697C40.0204 189.546 39.774 189.273 39.6342 188.93C39.4944 188.587 39.4708 188.197 39.5681 187.835C39.5838 187.78 39.5937 187.723 39.5976 187.665C39.6064 187.499 39.5679 187.335 39.4878 187.196C39.4078 187.057 39.2904 186.951 39.153 186.894C39.0156 186.836 38.8656 186.831 38.7252 186.877C38.5847 186.924 38.4612 187.021 38.3731 187.153C38.3424 187.2 38.3166 187.25 38.2964 187.304C38.1632 187.65 37.9221 187.93 37.619 188.088C37.316 188.246 36.9721 188.273 36.6529 188.163C36.604 188.145 36.5535 188.134 36.5024 188.129C36.3562 188.119 36.2112 188.163 36.0886 188.254C35.966 188.344 35.8725 188.477 35.8219 188.633C35.7712 188.789 35.7662 188.959 35.8074 189.118C35.8487 189.277 35.9341 189.417 36.0509 189.517C36.092 189.551 36.1366 189.581 36.1837 189.604C36.4897 189.754 36.7361 190.028 36.8759 190.371C37.0157 190.714 37.0393 191.104 36.942 191.465C36.9263 191.521 36.9164 191.578 36.9125 191.636C36.9037 191.802 36.9422 191.966 37.0223 192.105C37.1023 192.244 37.2197 192.35 37.3571 192.407C37.4945 192.464 37.6445 192.47 37.785 192.423C37.9254 192.377 38.0489 192.28 38.137 192.147C38.1677 192.101 38.1935 192.05 38.2137 191.997C38.347 191.65 38.588 191.371 38.8911 191.213C39.1941 191.054 39.538 191.028 39.8573 191.138C39.9061 191.156 39.9566 191.167 40.0077 191.171C40.1539 191.181 40.299 191.138 40.4215 191.047C40.5441 190.956 40.6376 190.823 40.6882 190.668C40.7389 190.512 40.744 190.342 40.7027 190.183C40.6614 190.024 40.5761 189.884 40.4592 189.784C40.4181 189.749 40.3735 189.72 40.3264 189.697Z",fill:"#FDD835"}),(0,n.jsx)("path",{opacity:"0.5",d:"M196.241 22.7905C195.935 22.6396 195.689 22.3665 195.549 22.0232C195.409 21.6799 195.386 21.2903 195.483 20.9286C195.499 20.8733 195.509 20.8161 195.512 20.7582C195.521 20.5926 195.483 20.4283 195.403 20.2894C195.323 20.1506 195.205 20.0446 195.068 19.9872C194.93 19.9299 194.78 19.9241 194.64 19.9709C194.5 20.0176 194.376 20.1143 194.288 20.2467C194.257 20.2933 194.231 20.3438 194.211 20.3972C194.078 20.7438 193.837 21.0229 193.534 21.1813C193.231 21.3397 192.887 21.3664 192.568 21.2562C192.519 21.2385 192.468 21.2272 192.417 21.2228C192.271 21.2128 192.126 21.2564 192.003 21.3471C191.881 21.4378 191.787 21.5708 191.737 21.7265C191.686 21.8821 191.681 22.052 191.722 22.2112C191.763 22.3703 191.849 22.5101 191.966 22.61C192.007 22.6448 192.051 22.6739 192.099 22.6969C192.405 22.8478 192.651 23.1209 192.791 23.4642C192.931 23.8075 192.954 24.1971 192.857 24.5588C192.841 24.6141 192.831 24.6713 192.827 24.7293C192.819 24.8948 192.857 25.0592 192.937 25.198C193.017 25.3369 193.135 25.4428 193.272 25.5002C193.409 25.5576 193.559 25.5633 193.7 25.5166C193.84 25.4698 193.964 25.3731 194.052 25.2407C194.083 25.1941 194.108 25.1436 194.129 25.0903C194.262 24.7436 194.503 24.4645 194.806 24.3061C195.109 24.1477 195.453 24.1211 195.772 24.2312C195.821 24.249 195.871 24.2602 195.923 24.2646C196.069 24.2746 196.214 24.231 196.336 24.1403C196.459 24.0496 196.552 23.9166 196.603 23.761C196.654 23.6054 196.659 23.4354 196.618 23.2763C196.576 23.1172 196.491 22.9773 196.374 22.8774C196.333 22.8427 196.288 22.8135 196.241 22.7905Z",fill:"#FDD835"}),(0,n.jsx)("path",{opacity:"0.5",d:"M239.781 107.634C241.008 107.634 242.003 106.507 242.003 105.117C242.003 103.727 241.008 102.6 239.781 102.6C238.554 102.6 237.559 103.727 237.559 105.117C237.559 106.507 238.554 107.634 239.781 107.634Z",fill:"#F55F44"}),(0,n.jsx)("path",{opacity:"0.5",d:"M68.0802 252.098C69.3073 252.098 70.3021 250.971 70.302
11 249.581C70.3021 248.191 69.3073 247.064 68.0802 247.064C66.8531 247.064 65.8584 248.191 65.8584 249.581C65.8584 250.971 66.8531 252.098 68.0802 252.098Z",fill:"#F55F44"}),(0,n.jsx)("path",{opacity:"0.5",d:"M216.964 162.04C218.191 162.04 219.186 160.913 219.186 159.523C219.186 158.133 218.191 157.006 216.964 157.006C215.737 157.006 214.742 158.133 214.742 159.523C214.742 160.913 215.737 162.04 216.964 162.04Z",fill:"#F55F44"}),(0,n.jsx)("path",{opacity:"0.5",d:"M25.7118 34.7239C26.9389 34.7239 27.9337 33.597 27.9337 32.2069C27.9337 30.8167 26.9389 29.6898 25.7118 29.6898C24.4847 29.6898 23.49 30.8167 23.49 32.2069C23.49 33.597 24.4847 34.7239 25.7118 34.7239Z",fill:"#4D8AF0"}),(0,n.jsx)("path",{opacity:"0.5",d:"M2.22183 103.386C3.44892 103.386 4.44367 102.259 4.44367 100.869C4.44367 99.4787 3.44892 98.3518 2.22183 98.3518C0.994749 98.3518 0 99.4787 0 100.869C0 102.259 0.994749 103.386 2.22183 103.386Z",fill:"#47E6B1"})]}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:"paint0_linear",x1:"120.343",y1:"224.011",x2:"74.7453",y2:"35.6225",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),(0,n.jsx)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})]}),(0,n.jsxs)("linearGradient",{id:"paint1_linear",x1:"32399.9",y1:"-4779.67",x2:"32208.1",y2:"-5569.02",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),(0,n.jsx)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})]}),(0,n.jsxs)("linearGradient",{id:"paint2_linear",x1:"9460.89",y1:"545.181",x2:"9193.22",y2:"-556.034",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),(0,n.jsx)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})]}),(0,n.jsxs)("linearGradient",{id:"paint3_linear",x1:"59433.4",y1:"138607",x2:"59433.4",y2:"24832.8",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),(0,n.jsx)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})]}),(0,n.jsxs)("linearGradient",{id:"paint4_linear",x1:"28838.8",y1:"2616.42",x2:"28838.8",y2:"1799.03",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),(0,n.jsx)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})]}),(0,n.jsxs)("linearGradient",{id:"paint5_linear",x1:"11363.7",y1:"3465.24",x2:"11363.7",y2:"2323.64",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#808080",stopOpacity:"0.25"}),(0,n.jsx)("stop",{offset:"0.54",stopColor:"#808080",stopOpacity:"0.12"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#808080",stopOpacity:"0.1"})]}),(0,n.jsx)("clipPath",{id:"clip0",children:(0,n.jsx)("rect",{width:"242",height:"261",fill:"white"})})]})]})}let N={0:"",1:"ÑиÑÑемнÑÑ
",2:"ÑинанÑовÑÑ
",3:"маÑкеÑинговÑÑ
"};function $({categoryId:t,isLoading:i}){let e=N[t]??"",o=i?"ÐагÑÑзка...":`У Ð²Ð°Ñ Ð½ÐµÑ ${e?`${e} `:""}Ñведомлений`;return(0,n.jsxs)(B,{"data-testid":"notifications-no-messages",children:[(0,n.jsx)(U,{children:o}),!i&&(0,n.jsx)(A,{})]})}let B=f.default.div.withConfig({componentId:"sc-a02b98cc-0"})(["display:flex;flex-direction:column;align-items:center;flex:0 1 100%;margin-top:84px;","{margin-top:40px;}"],(0,u.Hc)("tablet")),U=f.default.div.withConfig({componentId:"sc-a02b98cc-1"})(["",";font-weight:500;color:",";text-align:center;margin-bottom:12px;"],(0,u.XC)("text1"),(0,u.MF)("bw800"));function z({onMarkAllAsRead:t,disabled:i}){return(0,n.jsx)(D,{children:(0,n.jsx)(P,{type:"button",onClick:t,disabled:i,"data-testid":"notifications-mark-as-read",children:"ÐÑмеÑиÑÑ Ð²Ñе как пÑоÑиÑаннÑе"})})}let D=f.default.div.withConfig({componentId:"sc-bf0d1299-0"})(["width:100%;display:flex;justify-content:flex-end;padding-bottom:40px;","{justify-content:flex-start;}","{padding-bottom:32px;}"],(0,u.Hc)("tablet"),(0,u.Hc)("mobile")),P=f.default.button.withConfig({componentId:"sc-bf0d1299-1"})(["",";padding:0;border:none;background:transparent;color:",";cursor:pointer;&:disabled{color:",";cursor:default;}"],(0,u.XC)("text1"),(0,u.MF)("brandPrimary"),(0,u.MF)("bw400"));var R=e(70784);function G({currentPage:t,pagesCount:i,onPageChange:e}){return!i||i<=1?null:(0,n.jsx)(X,{"data-testid":"notifications-pagination",children:(0,n.jsx)(R.d,{activePage:t,pagesCount:i,onPageChange:e})})}let X=f.default.div.withConfig({componentId:"sc-a968a0f6-0"})(["width:100%;display:flex;justify-content:flex-end;padding-top:24px;","{justify-content:center;}"],(0,u.Hc)("mobile"));function W(t){return!!t.is_new}function T({token:t}){let[i,e]=(0,o.useState)([]),[a,s]=(0,o.useState)(0),[l,r]=(0,o.useState)(1),[c,p]=(0,o.useState)({totalCount:0,pagesCount:0,pageSize:8}),[d,C]=(0,o.useState)(!0),[x,f]=(0,o.useState)(null),u=(0,o.useCallback)(async(i,n)=>{C(!0),f(null);try{let o=await function({token:t,page:i=1,onlyNew:e=0,pageSize:n=8,categoryId:o=0}
1){let a=new FormData;return t&&a.append("auth_token",t),a.append("page",String(i)),a.append("page_size",String(n)),e&&a.append("only_new",String(e)),o&&a.append("category_id",String(o)),g.V.post("notification/get-list/",a).then(t=>{var i;let e,o,a,s;return i=t.data,e=i.data&&"object"==typeof i.data&&!Array.isArray(i.data)?i.data:null,o=i.notifications??e?.notifications??e?.data??(Array.isArray(i.data)?i.data:[]),a=Array.isArray(o)?o:[],s=i.pagination??e?.pagination??{},{notifications:a,pagination:{totalCount:Number(s.totalCount??a.length),pagesCount:Number(s.pagesCount??1),pageSize:Number(s.pageSize??n)}}}).catch((0,m.kB)())}({token:t,page:i,pageSize:8,onlyNew:0,categoryId:n});e(o.notifications),p(o.pagination),r(i),s(n)}catch{f("Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ ÑведомлениÑ"),e([]),p({totalCount:0,pagesCount:0,pageSize:8})}finally{C(!1)}},[t]);(0,o.useEffect)(()=>{u(1,0)},[u]);let j=(0,o.useCallback)(t=>{t!==a&&u(1,t)},[a,u]),y=(0,o.useCallback)(t=>{t!==l&&u(t,a)},[a,l,u]),b=(0,o.useCallback)(async i=>{if(i.length)try{await function({token:t,ids:i}){let e=new FormData,n=Array.isArray(i)?i:[i];return t&&e.append("auth_token",t),n.forEach(t=>{e.append("notification_ids[]",String(t))}),g.V.post("notification/mark-read/",e).then((0,m.mi)()).catch((0,m.kB)())}({token:t,ids:i}),e(t=>t.map(t=>i.includes(t.id)?{...t,is_new:!1}:t))}catch{}},[t]),w=i.filter(W).map(({id:t})=>t),v=!d&&!x&&0===i.length;return(0,n.jsxs)(q,{"data-testid":"notifications-page",children:[(0,n.jsxs)(K,{children:[(0,n.jsx)(Q,{children:"УведомлениÑ"}),(0,n.jsx)(k,{activeCategoryId:a,onCategoryChange:j})]}),x?(0,n.jsx)(ti,{children:x}):null,!x&&d&&0===i.length?(0,n.jsx)(J,{children:(0,n.jsx)(h.aH,{active:!0})}):null,x||v||!(i.length>0)?null:(0,n.jsxs)(Y,{children:[(0,n.jsx)(z,{onMarkAllAsRead:()=>b(w),disabled:0===w.length||d}),i.map(({id:t,create_time:i,category_id:e,message:o,is_new:a})=>(0,n.jsx)(H,{categoryId:e,message:o,timestamp:i,isRead:!a,onMarkAsRead:()=>b([t])},t)),(0,n.jsx)(G,{currentPage:l,pagesCount:c.pagesCount,onPageChange:y})]}),!x&&v?(0,n.jsx)($,{categoryId:a,isLoading:!1}):null,!x&&d&&i.length>0?(0,n.jsx)(tt,{children:(0,n.jsx)(h.aH,{active:!0})}):null]})}let q=f.default.div.withConfig({componentId:"sc-43e93e83-0"})(["width:100%;max-width:1082px;min-height:calc(100vh - 460px);margin:0 auto 64px;padding:0 16px;display:flex;position:relative;","{flex-direction:column;margin:0 auto 28px;}"],(0,u.Hc)("tablet")),K=f.default.div.withConfig({componentId:"sc-43e93e83-1"})(["display:flex;flex-direction:column;margin-right:120px;margin-top:28px;flex-shrink:0;","{margin-right:0;width:100%;align-items:center;}"],(0,u.Hc)("tablet")),Q=f.default.h1.withConfig({componentId:"sc-43e93e83-2"})(["margin:0;font-size:24px;font-weight:600;line-height:1.3;color:#1a2b4d;","{width:100%;text-align:center;}","{font-size:20px;}"],(0,u.Hc)("tablet"),(0,u.Hc)("mobile")),Y=f.default.div.withConfig({componentId:"sc-43e93e83-3"})(["display:flex;flex-direction:column;flex:0 1 100%;margin-top:36px;min-width:0;","{margin-top:28px;}","{margin-top:20px;}"],(0,u.Hc)("tablet"),(0,u.Hc)("mobile")),J=f.default.div.withConfig({componentId:"sc-43e93e83-4"})(["display:flex;justify-content:center;align-items:flex-start;flex:1;padding:84px 0;","{padding:40px 0;}"],(0,u.Hc)("tablet")),tt=f.default.div.withConfig({componentId:"sc-43e93e83-5"})(["position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(255,255,255,0.5);pointer-events:none;"]),ti=f.default.p.withConfig({componentId:"sc-43e93e83-6"})(["",";color:",";text-align:center;flex:1;padding:84px 0;"],(0,u.XC)("text1"),(0,u.MF)("bw500")),te=({ip:t,profile:i,ssrToken:e})=>{let{token:p}=(0,o.useContext)(r.B),f=p||e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.g7,{title:"Ð£Ð²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ | UREMONT",description:"УведомлениÑ",canonical:`${c.NB}/notifications`,ogImage:l.AG.uremont}),(0,n.jsxs)("div",{className:"page-layout","data-testid":"notifications-page",children:[(0,n.jsx)(a.Y,{ip:t,profile:i,contacts:C.PL,authLink:"/join/login"}),(0,n.jsx)("main",{className:d().main,children:f?(0,n.jsx)(T,{token:f}):(0,n.jsx)("div",{className:d().authWrapper,children:(0,n.jsx)(x.R,{specialRedirectLink:"/notifications"})})}),(0,n.jsx)(s.c,{uremontMainLink:c.NB,uremontLink:c.$7,autopartsLink:c.S$,serviceLink:c.hM,insuranceLink:c.HV,corpar
1kLink:c.hu,uremontMapLink:c.SI})]})]})};te.getInitialProps=async({req:t})=>({});let tn=te},53409:(t,i,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications",function(){return e(42885)}])},70784:(t,i,e)=>{"use strict";e.d(i,{d:()=>l});var n=e(6029),o=e(41735),a=e(27737),s=e(27724);function l({activePage:t,pagesCount:i,onPageChange:e}){if(!i||i<=1)return null;let o=function({activePage:t,pagesCount:i}){if(i<=1)return[];let e=Array.from(Array(i).keys());return i>5?t<4?e.slice(1,5):t>i-3?e.slice(-5,-1):e.slice(t-3,t+2):e.slice(1,i-1)}({activePage:t,pagesCount:i});return(0,n.jsxs)(r,{children:[1!==t&&(0,n.jsx)(c,{type:"button",$pointer:!0,onClick:()=>e(t-1),children:(0,n.jsx)(a.cL,{direction:"left",size:16})}),(0,n.jsx)(c,{type:"button",$active:1===t,$pointer:!0,onClick:()=>e(1),children:"1"}),i>6&&t>5&&(0,n.jsx)(c,{as:"span",children:"..."}),o.map(i=>(0,n.jsx)(c,{type:"button",$active:t===i+1,$pointer:!0,onClick:()=>e(i+1),children:i+1},i)),i>6&&t<i-4&&(0,n.jsx)(c,{as:"span",children:"..."}),i>1&&(0,n.jsx)(c,{type:"button",$active:t===i,$pointer:!0,onClick:()=>e(i),children:i}),t!==i&&(0,n.jsx)(c,{type:"button",$pointer:!0,onClick:()=>e(t+1),children:(0,n.jsx)(a.cL,{direction:"right",size:16})})]})}let r=o.default.div.withConfig({componentId:"sc-7166d10c-0"})(["display:flex;align-items:center;justify-content:center;gap:0.25rem;white-space:nowrap;"]),c=o.default.button.withConfig({componentId:"sc-7166d10c-1"})(["width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;padding:0.25rem;border:none;border-radius:0.5rem;background:transparent;font-size:0.9375rem;font-weight:500;line-height:1.25rem;color:",";"," ",""],(0,s.MF)("textPrimary"),({$active:t})=>t&&(0,o.css)(["background-color:",";color:",";"],(0,s.MF)("brandPrimary"),(0,s.MF)("bw0")),({$pointer:t})=>t&&(0,o.css)(["cursor:pointer;"]))},82612:t=>{t.exports={main:"Notifications_main__CRIZD",authWrapper:"Notifications_authWrapper__ZUQjq"}}},t=>{t.O(0,[4477,4568,2592,3897,5465,2074,5439,3725,5633,4981,292,636,6593,8792],()=>t(t.s=53409)),_N_E=t.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.