1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7794],{11724:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/settings/notifications",function(){return s(46967)}])},18497:(e,t,s)=>{"use strict";s.d(t,{A:()=>S});var l=s(37876),n=s(14232),i=s(2171),a=s(89311),r=s(21639),o=s(83872),c=s(34321),u=s(71297),d=s(6827),m=s(63819),x=s(70657),E=s(94296),_=s(70514);let S=e=>{let{rolesTitleSize:t="sm",titleClamp:s=!1,subtitleClamp:S=!1,onDelete:N=()=>{},onLimitReachedDelete:O=()=>{}}=e,{primaryUserData:A}=(0,i.useSelector)(e=>e.PrimaryUserData),[h,T]=(0,n.useState)(!1),j=(0,i.useDispatch)(),[p,P]=(0,n.useState)(),[f,b]=(0,n.useState)([]),g=async e=>{try{var t,s,l;T(!0);let n=await c.vS.deleteJobAlert(e),i=null==n||null==(s=n.data)||null==(t=s.data)?void 0:t.jobAlerts;i&&((null==A||null==(l=A.jobAlerts)?void 0:l.length)===_.A.JOB_ALERTS_LIMIT_COUNT&&O(e),N(e),j(d.Yt.updatePrimaryUserData({jobAlerts:[...i||[]]})))}catch(e){u.A.ErrorToast("Failed to delete the job notification alert.")}finally{T(!1),x.A.capture(E.Ay.CLICKED_ON_DELETE_JOB_ALERTS)}};(0,n.useEffect)(()=>{var e;if((null==A||null==(e=A.jobAlerts)?void 0:e.length)>=0){let e=[...(null==A?void 0:A.jobAlerts)||[]];null==e||e.sort((e,t)=>new Date(null==t?void 0:t.createdAt)-new Date(null==e?void 0:e.createdAt)),b(e)}},[null==A?void 0:A.jobAlerts]);let C=e=>{var t;let s=[];if(e.remote&&(e.cities||e.countries)){let t=[...e.cities||[],...e.countries||[]];s.push("Remote (".concat((null==t?void 0:t.length)>0?t.join(", "):"",")"))}else if(e.remote&&!(e.cities||e.countries))s.push("Remote");else if(!e.remote&&(e.cities||e.countries)){let t=[...e.cities||[],...e.countries||[]];s.push("".concat((null==t?void 0:t.length)>0?t.join(", "):""))}return(null==(t=e.skills)?void 0:t.length)>0&&s.push(e.skills.join(", ")),e.minExp&&e.maxExp?s.push("".concat(e.minExp,"-").concat(e.maxExp," years of experience")):e.minExp?s.push("".concat(e.minExp," years of experience")):e.maxExp&&s.push("".concat(e.maxExp," years of experience")),e.jobType&&s.push(e.jobType),s.filter(e=>e)},y={[t]:!0};return(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"flex flex-col gap-3",children:null==f?void 0:f.map(e=>{var t;return(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{className:"pr-4",children:[(null==e||null==(t=e.roles)?void 0:t.length)>0?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.default.SemiBoldText,{className:s?"paragraph-clamp1":"",...y,children:e.roles.join(", ")}),(0,l.jsx)(a.default.NormalText,{xs:!0,textColor:"text-gray-700",className:S?"paragraph-clamp1":"",children:C(e).join(" ⢠")})]}):(0,l.jsxs)(a.default.SemiBoldText,{className:s?"paragraph-clamp1":"",...y,children:["Jobs in ",C(e).join(" ⢠")]}),(0,l.jsxs)(a.default.NormalText,{xxs:!0,textColor:"text-gray-500",children:["Created ",(0,m.timeSince)(e.createdAt,!0)]})]}),(0,l.jsx)("div",{children:(0,l.jsx)(r.Ay.CarbonOutline,{loading:h&&e.uuid===p,small:!0,circular:!0,onClick:()=>{P(e.uuid),g(e.uuid)},children:(0,l.jsx)("p",{className:"text-red",children:(0,l.jsx)(o.TrashIcon,{size:15,background:"none",color:"currentColor"})})})})]},e.uuid)})})})}},46967:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>P});var l=s(37876),n=s(14232),i=s(2171),a=s(61382),r=s(86425),o=s(83872),c=s(89311),u=s(63414);let d=JSON.parse('{"DAILY_PROFILE_SUMMARY":true,"WEEKLY_PROFILE_SUMMARY":true,"MENTION":true,"COMMENT":true,"COMMUNICATION":true,"SURVEY":true,"BLOG":true,"HACKATHON":true,"PROJECT_SPOTLIGHT":true,"VOUCH":true,"JOB_RECOMMENDATIONS":true,"FOLLOWED_YOU":true,"PROFILE_VIEWED":true,"SOMEONE_YOU_KNOWN_JOINS":true,"YOUR_COMPANY_POSTED_JOB":true,"INBOX_NEW_MESSAGE":true,"PROJECT_LAUNCH_WINDOW_OPEN":true,"WEEKLY_SPOTLIGHT_ROUNDUP":true,"USER_STREAKS":true,"PN_FOLLOWED_YOU":true,"PN_PROFILE_VIEWED":true,"PN_INBOX_NEW_MESSAGE":true,"PN_ADDED_COLLABORATOR":true,"PN_SCROLL_UPVOTES":true,"PN_SCROLL_COMMENTS_ON_POST":true,"PN_SCROLL_MENTIONS":true,"PN_SCROLL_REPOST_A_POST":true,"PN_SCROLL_RESHARED_A_POST":true,"PN_SCROLL_POLL_VOTED":true,"PN_SCROLL_POLL_RESULTS_AVAILABLE":true,"PN_SCROLL_RECOMMENDED_POST":true,"PN_SCROLL_CREATED_TO_FOLLOWING_USERS":true,"PN_PROJECT_LAUNCH_WINDOW_OPEN":true,"PN_PROJECT_COMMENT":true,"PN_PROJECT_UPVOTES":true,"PN_PROJECT_WEEKLY_LAUNCHED_PROJECTS":true,"PN_PROJECT_STAFF_PICKED":true,"PN_ARTICLE_VIEW_MILESTONE":true,"PN_USER_STREAKS":true}');var m=s(34321),x=s(68827),E=s(69198),_=s(71297),S=s(18497),N=s(70514),O=s(16495);let A="MENTION",h="COMMENT",T="HACKATHON",j="PROJECT_SPOTLIGHT",p="USER_STREAKS",P=()=>{var e,t;
1let[s,P]=(0,n.useState)(d),{primaryUserData:f}=(0,i.useSelector)(e=>e.PrimaryUserData),b=async e=>{try{await m.Eo.updateNotificationsSetting({settings:e}),_.A.SuccessToast(E.A.SETTINGS.notificationSettingsUpdated)}catch(e){_.A.ErrorToast(x.A.GLOBAL.wrong)}},g=async()=>{try{var e,t;let s=await m.Eo.getNotificationSettings();P(null==(t=s.data)||null==(e=t.data)?void 0:e.settings)}catch(e){_.A.ErrorToast(x.A.GLOBAL.wrong)}},C=e=>{let t=s[e],l={...s};l[e]=!t,P(l),b(l)};return(0,n.useEffect)(()=>{g()},[]),(0,l.jsx)(a.default,{pageHeading:"Settings â Notifications",children:(0,l.jsxs)("div",{className:"p-6 flex flex-col gap-20",children:[(0,l.jsx)(r.A.Section,{title:"SCROLL",icon:(0,l.jsx)(o.HomeIcon,{background:"none",size:16}),children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 mt-6 mb-2",children:[(0,l.jsx)(u.A,{label:"Someone mentions me on Peerlist",subText:"Recommended. Helps you actively engage with your network.",enabled:null==s?void 0:s[A],setEnabled:()=>C(A)}),(0,l.jsx)(u.A,{label:"Someone comments on my post",enabled:null==s?void 0:s[h],setEnabled:()=>C(h)})]})}),(0,l.jsx)(r.A.Section,{title:"INBOX",icon:(0,l.jsx)(o.ChatBubbleIcon,{size:16}),children:(0,l.jsx)(u.A,{label:"Someone sends me a message.",subText:"Sent only if the messages are unread for > 1 hour.",enabled:null==s?void 0:s[O.NOTIFICATION_SETTINGS_KEY.INBOX_NEW_MESSAGE],setEnabled:()=>C(O.NOTIFICATION_SETTINGS_KEY.INBOX_NEW_MESSAGE)})}),(null==f||null==(e=f.jobAlerts)?void 0:e.length)>0?(0,l.jsx)(r.A.Section,{title:"JOBS",icon:(0,l.jsx)(o.BriefCaseIcon,{size:16}),children:(0,l.jsx)("div",{className:"flex flex-col gap-6 mt-6 mb-2",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)(c.default.SemiBoldText,{sm:!0,className:"mb-4",children:["Job Alerts (",(null==f||null==(t=f.jobAlerts)?void 0:t.length)||0,"/",N.A.JOB_ALERTS_LIMIT_COUNT,")"]}),(0,l.jsx)(S.A,{rolesTitleSize:"xs"})]})})}):null,(0,l.jsx)(r.A.Section,{title:"FROM PEERLIST",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 mt-6 mb-2",children:[(0,l.jsx)(u.A,{label:"Hackathons by Peerlist",subText:"Recommended to be subscribed if youâre participating in hackathons.",enabled:null==s?void 0:s[T],setEnabled:()=>C(T)}),(0,l.jsx)(u.A,{label:"Launchpad",subText:"Recommended to be subscribed if you build and launch projects.",enabled:null==s?void 0:s[j],setEnabled:()=>C(j)}),(0,l.jsx)(u.A,{label:"Streaks",subText:"Recommended. Stay updated with milestone achievements.",enabled:null==s?void 0:s[p],setEnabled:()=>C(p)})]})}),(0,l.jsxs)(r.A.Section,{title:"SYSTEM EMAIL NOTIFICATIONS",icon:(0,l.jsx)(o.NotificationsIcon,{size:16}),children:[(0,l.jsx)(c.default.NormalText,{textColor:"text-gray-1k",xs:!0,className:"mt-6",children:"System notifications are necessary to maintain system sanity, privacy and safety of Peerlist members. By default Peerlist will send you system, privacy and security related email notifications, for example:"}),(0,l.jsx)("ul",{className:"mt-2 mb-10 list-disc",children:["When there is a reset password request, password changed, etc.","Updates to our Privacy Policy, Code of Conduct and Terms of Use.","When we notice any unusual activity related to your account.","When there is a login from a new device."].map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(c.default.NormalText,{xs:!0,textColor:"text-gray-1k",className:"leading-4",children:e})},"ex-".concat(t+1)))})]})]})})}},61382:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>N});var l=s(37876),n=s(77328),i=s.n(n),a=s(14232),r=s(2171),o=s(57994),c=s(38614),u=s(47553),d=s(5357),m=s(21639),x=s(82669),E=s(16495),_=s(83872);let S=(0,a.memo)(()=>{var e,t;let{primaryUserData:s}=(0,r.useSelector)(e=>e.PrimaryUserData),n=[{label:"profile",key:"profile",url:E.APP_PATHS.profileSettings,event:"settings-profile-tab",description:"Edit your profile information like name, profile picture, skills"},{label:"inbox",key:"inbox",url:E.APP_PATHS.inboxSettings,event:"settings-inbox-tab",description:"Edit shorthands and control who can send you messages on Peerlist"},{label:"account",key:"account",url:E.APP_PATHS.accountSettings,event:"settings-account-tab",description:"Change your password anytime."},{label:"notifications",key:"notifications",url:E.APP_PATHS.notificationSettings,event:"notifications-account-tab",description:"Select the kinds of notifications you get about your activities, interests, and recommendations."},{label:"job preferences",key:"jobPreferences",url:E.APP_PATHS.jobPreferenceSettings,event:"settings-jobPreferences-tab",description:"You can see & set your job preferences",badge:(null==s||null==(e=s.jobPreferences)?void 0:e.status)!==E.JOB_PREFERENCES_CONST.STATUS_INACTIVE?(0,l.jsx)(d.A.Green,{className:"ml-2",children:"Open"}):null},{label:"custom domain",key:"customDomain",url:E.APP_PATHS.customDomainSettings,event:"settings-customDomain-tab",description:"Use your profile as a portfolio on your domain",badge:(null==s||null==(t=s.customDomain)?void 0:t.domainName)?(0,l.jsx)(d.A.Green,{className:"ml-2",children:"Connected"}):(0,l.jsx)(d.A.Red,{className:"ml-2",children:"Not Connected"})}];return(0,l.jsx)("ul",{children:n.map(e=>"notifications"!==e.key||(null==s?void 0:s.published)?(0,l.jsx)("li",{className:"w-full",children:(0,l.jsx)(c.A,{page:e,children:(0,l.jsx)("p",{className:"text-xs block lg:hidden",children:e.description})})},e.url):null)})}),N=(0,u.A)(e=>{let{children:t,pageHeading:s="Settings",title:n=null,loading:r=!1,centerTopChildren:c=null}=e,[u,d]=(0,a.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i(),{children:(0,l.jsx)("title",{children:"Peerlist Settings | ".concat(n||s)})}),(0,l.jsxs)(o.A.Center,{children:[(0,l.jsxs)(o.A.CenterTop,{internalPage:!0,children:[(0,l.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(o.A.BackButton,{}),(0,l.jsx)(o.A.PageHeading,{children:s})]}),c]}),(0,l.jsx)(m.Ay.CarbonOutline,{circular:!0,onClick:()=>d(e=>!e),className:"lg:hidden flex",children:u?(0,l.jsx)(_.CloseXIcon,{size:18}):(0,l.jsx)(_.MenuIcon,{size:16})})]}),(0,l.jsx)("main",{children:r?(0,l.jsx)("div",{className:"flex items-center justify-center vertical-center-loader w-full",children:(0,l.jsx)(x.A,{})}):(0,l.jsx)("div",{children:t})})]}),(0,l.jsx)(o.A.Right,{showSidePanel:u,paddingX:"px-0",children:(0,l.jsx)(S,{})})]})})}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=11724)),_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.