1"use strict";(self.webpackChunksocialuwu=self.webpackChunksocialuwu||[]).push([[844],{1186:function(s,i,e){e.d(i,{Z:function(){return u}});var l=e(885),c=e(2791),n=e(4569),a=e.n(n),d=e(3239),o=e(3044),t=e(6871),r=e(6030),h=e(184),u=function(){var s=(0,c.useState)(!0),i=(0,l.Z)(s,2),e=i[0],n=i[1],u=c.useState([]),x=(0,l.Z)(u,2),m=x[0],j=x[1],p=(0,t.s0)(),f=JSON.parse(localStorage.getItem("token")),v=null===f||void 0===f?void 0:f.token;(0,c.useEffect)((function(){a().get("https://socialuwu.herokuapp.com/api/users/whotofollow",{headers:{token:v}}).then((function(s){j(s.data),n(!1)}))}),[a()]);var N=function(s){p("/profile/".concat(s))},F=(0,r.v9)((function(s){return s.user})).authData;return(0,h.jsxs)("div",{className:"leftsidebarfollowdark",children:[(0,h.jsxs)("div",{className:"whotofollowdark",children:[(0,h.jsxs)("div",{className:"upper",children:[(0,h.jsx)("h2",{children:"Who to follow"}),(0,h.jsx)("h3",{children:"View more"})]}),(0,h.jsx)("div",{className:"body",children:e?(0,h.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[(0,h.jsx)(d.Z,{}),(0,h.jsx)(d.Z,{}),(0,h.jsx)(d.Z,{})]}):null===m||void 0===m?void 0:m.map((function(s){var i,e,l;return(0,h.jsxs)("div",{className:"idiots",children:[(0,h.jsxs)("div",{className:"idiotinfo",children:[(0,h.jsx)(o.Z,{src:"",alt:"",sx:{width:43,height:43},onClick:function(){N(null===s||void 0===s?void 0:s._id)}}),(0,h.jsx)("p",{children:(null===s||void 0===s||null===(i=s.username)||void 0===i?void 0:i.length)>4?(null===s||void 0===s||null===(e=s.username)||void 0===e?void 0:e.slice(0,5))+"...":null===s||void 0===s?void 0:s.username})]}),(0,h.jsx)("p",{className:"follow",onClick:function(){N(null===s||void 0===s?void 0:s._id)},children:null!==s&&void 0!==s&&null!==(l=s.followers)&&void 0!==l&&l.includes(null===F||void 0===F?void 0:F._id)?"Unfollow":"Follow"})]})}))})]}),(0,h.jsxs)("div",{className:"topicsfollowdark",children:[(0,h.jsxs)("div",{className:"upper",children:[(0,h.jsx)("h2",{children:"Topics to follow"}),(0,h.jsx)("h3",{children:"More topics"})]}),(0,h.jsxs)("div",{className:"tags-wrapper",children:[(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Typescript"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Jaba"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Brainfck"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Javscript"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Shit"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"VirginScript"})})]})]})]})}},7852:function(s,i,e){e.d(i,{Z:function(){return u}});var l=e(885),c=e(2791),n=e(4569),a=e.n(n),d=e(3239),o=e(3044),t=e(6871),r=e(6030),h=e(184),u=function(){var s=c.useState([]),i=(0,l.Z)(s,2),e=i[0],n=i[1],u=(0,t.s0)(),x=JSON.parse(localStorage.getItem("token")),m=null===x||void 0===x?void 0:x.token,j=(0,c.useState)(!0),p=(0,l.Z)(j,2),f=p[0],v=p[1];console.log(f),(0,c.useEffect)((function(){a().get("https://socialuwu.herokuapp.com/api/users/whotofollow",{headers:{token:m}}).then((function(s){n(s.data),v(!1)}))}),[a()]);var N=function(s){u("/profile/".concat(s))},F=(0,r.v9)((function(s){return s.user})).authData;return(0,h.jsxs)("div",{className:"leftsidebarfollow",children:[(0,h.jsxs)("div",{className:"whotofollow",children:[(0,h.jsxs)("div",{className:"upper",children:[(0,h.jsx)("h2",{children:"Who to follow"}),(0,h.jsx)("h3",{children:"View more"})]}),(0,h.jsx)("div",{className:"body",children:f?(0,h.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"1.5rem"},children:[(0,h.jsx)(d.Z,{}),(0,h.jsx)(d.Z,{}),(0,h.jsx)(d.Z,{})]}):null===e||void 0===e?void 0:e.map((function(s){var i,e,l;return(0,h.jsxs)("div",{className:"idiots",children:[(0,h.jsxs)("div",{className:"idiotinfo",children:[(0,h.jsx)(o.Z,{src:"",alt:"",sx:{width:43,height:43},onClick:function(){N(null===s||void 0===s?void 0:s._id)}}),(0,h.jsx)("p",{children:(null===s||void 0===s||null===(i=s.username)||void 0===i?void 0:i.length)>4?(null===s||void 0===s||null===(e=s.username)||void 0===e?void 0:e.slice(0,5))+"...":null===s||void 0===s?void 0:s.username})]}),(0,h.jsx)("p",{className:"follow",onClick:function(){N(null===s||void 0===s?void 0:s._id)},children:null!==s&&void 0!==s&&null!==(l=s.followers)&&void 0!==l&&l.includes(null===F||void 0===F?void 0:F._id)?"Unfollow":"Follow"})]})}))})]}),(0,h.jsxs)("div",{className:"topicsfollow",children:[(0,h.jsxs)("div",{className:"upper",children:[(0,h.jsx)("h2",{children:"Topics to follow"}),(0,h.jsx)("h3",{children:"More topics"})]}),(0,h.jsxs)("div",{className:"tags-wrapper",children:[(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Typescript"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Jaba"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Brainfck"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Javscript"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"Shit"})}),(0,h.jsx)("span",{className:"tag",children:(0,h.jsx)("small",{children:"VirginScript"})})]})]})]})}},9242:function(s,i,e){e.r(i),e.d(i,{default:function(){return N}});var l=e(885),c=e(2791),n=e(1186),a=e(3107),d=e(693),o=e(184),t=function(){return(0,o.jsxs)("div",{className:"notificationsmiddlestuff",children:[(0,o.jsxs)("div",{className:"notification",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]}),(0,o.jsxs)("div",{className:"notification",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]}),(0,o.jsxs)("div",{className:"notification",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]}),(0,o.jsxs)("div",{className:"notification",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]}),(0,o.jsxs)("div",{className:"notification",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]})]})},r=e(7852),h=e(5313),u=e(5716),x=function(){return(0,o.jsxs)("div",{className:"notificationsmiddlestuff",children:[(0,o.jsxs)("div",{className:"notificationdark",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]}),(0,o.jsxs)("div",{className:"notificationdark",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]}),(0,o.jsxs)("div",{className:"notificationdark",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]}),(0,o.jsxs)("div",{className:"notificationdark",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]}),(0,o.jsxs)("div",{className:"notificationdark",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"user",children:[(0,o.jsx)("div",{className:"pfpboi",children:(0,o.jsx)("img",{alt:"",src:"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.fetchfind.com%2Fblog%2Fwp-content%2Fuploads%2F2017%2F08%2Fcat-2734999_1920-5-common-cat-sounds.jpg&f=1&nofb=1"})}),(0,o.jsxs)("div",{className:"userinfo",children:[(0,o.jsx)("h3",{children:"Idiot"}),(0,o.jsx)("small",{children:"@idiot"})]})]}),(0,o.jsx)("span",{className:"edit",children:(0,o.jsx)("p",{children:"Follow"})})]}),(0,o.jsx)("div",{className:"notificationtitle",children:(0,o.jsx)("p",{children:"Idiot liked your post"})})]})]})},m=e(456),j=e(6871),p=e(6030),f=e(7376),v=e(6960),N=function(){var s=(0,j.s0)(),i=(0,p.I0)(),e=(0,c.useState)(""),N=(0,l.Z)(e,2),F=N[0],w=N[1];return(0,c.useEffect)((function(){var s=localStorage.getItem("theme");s?w(s):(localStorage.setItem("theme","light"),w("light"))}),[]),(0,c.useEffect)((function(){document.title="SocialUwU - Notifications"}),[]),(0,c.useEffect)((function(){document.body.style.backgroundColor="dark"===F?"#272729":"#dae0e6"}),[F]),(0,c.useEffect)((function(){var e=[];try{e=JSON.parse(localStorage.getItem("token"))}catch(d){localStorage.removeItem("token"),window.location.href="/auth"}if(e){var l,c,n=null===(l=e)||void 0===l?void 0:l.token,a=(0,m.Z)(n);i((0,f.RB)(null===a||void 0===a||null===(c=a.user)||void 0===c?void 0:c._id,s))}else s("/auth")}),[s,i]),(0,c.useEffect)((function(){v.Am.info("This feature is not available yet",{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"dark"})}),[]),(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{children:["dark"===F?(0,o.jsx)(d.Z,{}):(0,o.jsx)(a.Z,{}),(0,o.jsx)("main",{children:(0,o.jsxs)("div",{className:"container",children:["dark"===F?(0,o.jsx)(u.Z,{}):(0,o.jsx)(h.Z,{}),"dark"===F?(0,o.jsx)(x,{}):(0,o.jsx)(t,{}),"dark"===F?(0,o.jsx)(n.Z,{}):(0,o.jsx)(r.Z,{})]})})]})})}}}]); 2//# sourceMappingURL=844.ead3f3ed.chunk.js.map
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.