1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{24732:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/playin/activities/notifications",function(){return s(83602)}])},90394:function(e,t,s){"use strict";s.d(t,{v:function(){return x}});var l=s(31549),a=s(3357),n=s(37438),i=s(33654),r=s(68882),c=s(84875),d=s(66842),o=s(89806);let x=()=>{let{isEighteenPlus:e,showIsEighteenPlusModal:t}=(0,i.J)(),s=(0,c.S)(),x=(0,r.t)(),u=l=>{if(!e){t();return}x.push((0,o.I4)(s,l))};return(0,l.jsx)("div",{className:"flex h-full w-full flex-col items-center",children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center gap-8",children:[(0,l.jsx)("h1",{className:"text-center font-bold text-5xl text-text",children:"Not signed in"}),(0,l.jsx)("p",{className:"text-center font-light text-gray-500 text-sm",children:"Join the community to get in on the action."}),(0,l.jsxs)("div",{className:"flex w-full max-w-md flex-col items-center justify-center gap-12 rounded-xl bg-gray-100 p-8",children:[(0,l.jsx)(a.r,{tenant:n.zm,className:"h-auto w-28"}),(0,l.jsxs)("div",{className:"flex w-full min-w-[250px] flex-col gap-4 lg:min-w-[312px]",children:[(0,l.jsx)(d.r0,{onClick:()=>u("signin"),type:"button",size:"xl",variant:"filled",className:"w-full",children:"Sign in"}),(0,l.jsxs)("div",{className:"flex w-full items-center gap-2 text-gray-700",children:[(0,l.jsx)(d.PF,{className:"w-full"}),"or",(0,l.jsx)(d.PF,{className:"w-full"})]}),(0,l.jsx)(d.r0,{onClick:()=>u("signup"),type:"button",size:"xl",variant:"outlined",className:"w-full",children:"Create account"})]})]})]})})}},33654:function(e,t,s){"use strict";s.d(t,{J:function(){return u}});var l=s(4930),a=s(46267),n=s(16194),i=s(60154),r=s(68882),c=s(44194),d=s(19371),o=s(44677),x=s(48394);let u=()=>{let e=(0,o.T)(),{hasClientMounted:t}=(0,n.E)(),{push:s}=(0,r.t)(),{deleteQS:u,hasOne:f}=(0,i.S)(),g=(0,a.aF)(),{showIsEighteenPlusModal:h,isEighteenPlusState:m,eighteenPlusStudio:p}=(0,o.C)(e=>e.general),[j,b]=(0,d.Z)(l.d.isEighteenPlus,!1);return(0,c.useEffect)(()=>{j&&e((0,x.TG)("isEighteenPlus"))},[e,j]),{shouldShowIsEighteenPlusModal:h,isEighteenPlus:!!g||!t||"isEighteenPlus"===m,hideIsEighteenPlusModal:()=>{e((0,x.a1)(!1)),e((0,x.Vi)(null))},showIsEighteenPlusModal:t=>{e((0,x.Vi)(t||null)),e((0,x.TG)("pending")),e((0,x.a1)(!0))},handleSetIsEighteenPlus:()=>{b(!0),e((0,x.a1)(!1)),e((0,x.TG)("isEighteenPlus"))},isEighteenPlusState:m,handleSetIsNotEighteenPlus:()=>{f("replay")&&u("replay"),s("/").then(()=>{b(!1),e((0,x.a1)(!1)),e((0,x.TG)("isNotEighteenPlus"))})},eighteenPlusStudio:p}}},60154:function(e,t,s){"use strict";s.d(t,{S:function(){return i}});var l=s(68882),a=s(39220),n=s(44194);let i=()=>{let{push:e,asPath:t,query:s}=(0,l.t)(),i=(0,a.usePathname)(),[r,c]=(0,n.useState)(null);(0,n.useEffect)(()=>{let[,e]=t.split("?");c(new URLSearchParams(e))},[t,s]);let d=(0,n.useCallback)(async(s,l)=>{if(!r)return;r.set(s,l);let a=`${i}?${r.toString()}`;a!==t&&await e(a,void 0,{shallow:!0})},[t,i,e,r,s]),o=(0,n.useCallback)(async(s,l)=>{if(!r)return;r.set(s,l);let a=`${i}?${r.toString()}`;a!==t&&await e(a,void 0,{shallow:!0})},[t,i,e,r,s]),x=(0,n.useCallback)(async t=>{r&&(r.delete(t),await e({query:r.toString()},void 0,{shallow:!0}))},[t,i,e,r,s]);return{hasOne:e=>r?.has(e)||null,getOne:e=>r?.get(e)||null,getAll:e=>r?.getAll(e)||null,getKeys:r?[...r.keys()]:null,getValues:r?[...r.values()]:null,getEntries:r?[...r.entries()]:null,upsertQS:(e,t)=>d(e,t),appendQS:(e,t)=>o(e,t),deleteQS:e=>x(e)}}},83602:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return b},default:function(){return N}});var l=s(31549),a=s(88295),n=s(83745),i=s(66842),r=s(46267),c=s(9145),d=s(90394),o=s(9406),x=s(36810),u=s(5898);let f=({children:e})=>(0,r.kP)()?(0,l.jsx)(u.H,{hasSidebarRight:!1,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-start",children:[(0,l.jsx)("div",{className:"flex w-full flex-shrink-0 gap-2 rounded-lg bg-backgroundContrast p-2 md:max-w-[192px] md:flex-col",children:(0,l.jsxs)(i.r0,{variant:"filled",className:(0,o.cn)("flex gap-2"),children:[(0,l.jsx)(x.bI9,{size:20}),(0,l.jsx)("span",{className:"hidden md:flex",children:"Notifications"})]})}),e]})}):(0,l.jsxs)("div",{className:"relative h-screen w-full bg-background",children:[(0,l.jsxs)("div",{className:"group absolute top-4 left-4 place-self-end px-2 py-1 font-light text-gray-700 lg:top-8 lg:left-8",children:[(0,l.jsx)(c.A,{"aria-label":"home",href:"/",children:(0,l.jsxs)("div",{className:"flex flex-row items-center justify-center gap-2 font-semibold text-md lg:text-xl",children:[(0,l.jsx)(x.O8Q,{size:"24"}),(0,l.jsx)("div",{children:"Home"})]})}),(0,l.jsx)("span",{className:"absolute right-0 -bottom-1 h-px w-0 bg-gray-800 transition-all duration-100 group-hover:w-full"})]}),(0,l.jsx)("div",{className:"pt-16 lg:pt-[15vh]",children:(0,l.jsx)(d.v,{})})]});var g=s(91341),h=s(29787),m=s.n(h),p=s(44194),j=s(97695),b=!0,N=()=>{let[e,t]=(0,p.useState)(0),s=(0,r.aF)(),[c,d]=(0,p.useState)(!1),[u]=(0,a.bJ)(),[h]=(0,a.WH)(),[b]=(0,a.EG)(),{data:N=[]}=(0,a.pc)(s?.id||g.CN),{data:v,refetch:w,isFetching:y,isLoading:k,isError:E}=(0,a.ut)({userId:s?.id||"",from:7*e,to:(e+1)*7-1,onlyUnread:c},{skip:!s?.id}),C=v?.count,P=(0,p.useMemo)(()=>!v?.rows||m()(v.rows)?[]:c?v.rows.filter(e=>!e.opened):v.rows,[v?.rows,c]),S=e=>{e.opened||h([e.id])};(0,p.useEffect)(()=>{!y&&N.length>0&&w()},[N,y,w]),(0,p.useEffect)(()=>{u()},[u]);let _=e=>{S(e),window.open(`${e.slug}`,"_blank")},z=()=>{t(0),d(!1)},I=()=>{t(0),d(!0)};return(0,l.jsx)(f,{children:(0,l.jsxs)("div",{className:"flex flex-grow flex-col gap-4 overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex w-full justify-between gap-4 roun
1ded-lg bg-backgroundContrast px-4 py-2 text-gray-700 shadow-sm",children:[(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("button",{type:"button",className:(0,o.cn)("px-3 font-semibold text-gray-500 text-lg transition-colors duration-200",{"text-text":!c}),onClick:()=>z(),children:"All"}),(0,l.jsx)("button",{type:"button",className:(0,o.cn)("px-3 font-semibold text-gray-500 text-lg transition-colors duration-200",{"text-text":c}),onClick:()=>I(),children:"Unread"})]}),(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)(i.r0,{size:"lg",variant:"text",onClick:()=>{s?.id&&b(s.id)},children:"Mark all as read"})})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[m()(P)&&(0,l.jsx)("div",{className:"flex items-center justify-center p-2 text-gray-500",children:(0,l.jsxs)("p",{children:["You do not have any ",c?"unread":""," notifications."]})}),E||!k&&P?P?.map(e=>l.jsx("div",{className:o.cn("flex flex-col gap-2 rounded-lg bg-backgroundContrast px-4 py-2 shadow-sm",{"bg-blue-100":!e.seen}),children:l.jsxs("div",{className:"flex gap-2 pt-1 pr-4 text-gray-700",children:[l.jsx(n.b,{notification:e}),l.jsxs("div",{className:"flex w-fit items-center justify-end gap-2",children:[l.jsxs(i.r0,{className:o.cn("flex items-center gap-2 text-nowrap bg-blue-500/30 p-2 text-blue-600",{"hover:bg-blue-500/50":!e.opened,"bg-gray-200/20 text-gray-300":e.opened}),variant:"text",disabled:e.opened,onClick:()=>S(e),children:["Mark read",l.jsx(x.NNX,{size:16})]}),l.jsxs(i.r0,{className:o.cn("flex items-center gap-2 text-gray-700 hover:bg-gray-200/60"),variant:"text",onClick:()=>_(e),children:["Open",l.jsx(x.xXr,{size:16})]})]})]})},e.id)):(0,l.jsx)("div",{className:"flex items-center justify-center rounded-lg bg-backgroundContrast p-4",children:(0,l.jsx)(j.frZ,{className:"animate-spin"})}),E&&(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 rounded-lg bg-backgroundContrast p-4 text-red-700",children:[(0,l.jsx)(x.SZZ,{size:24}),(0,l.jsx)("p",{className:"text-md text-semibold",children:"Error"}),(0,l.jsx)("p",{className:"text-center font-light text-sm",children:"Could not load notifications. You can try again by refreshing the page."})]})]}),(0,l.jsxs)("div",{className:(0,o.cn)("mt-4 flex justify-between gap-2",{hidden:E||k}),children:[(0,l.jsx)("div",{className:"text-gray-700 text-sm",children:C?`Page ${e+1} of ${Math.ceil(C/7)}`:""}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(i.r0,{onClick:()=>t(e-1),variant:"filled",color:"gray-flat",className:"disabled:bg-transparent disabled:text-gray-500",disabled:!C||0===e,children:"Previous"}),(0,l.jsx)(i.r0,{onClick:()=>t(e+1),variant:"filled",color:"gray-flat",className:"disabled:bg-transparent disabled:text-gray-500",disabled:!C||(e+1)*7>=C,children:"Next"})]})]})]})})}}},function(e){e.O(0,[5126,1340,8718,623,4743,5709,8081,2510,8827,201,3550,9137,9220,9190,7073,592,168,8340,9018,1202,6075,2186,611,5521,5898,2888,9774,179],function(){return e(e.s=24732)}),_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.