1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="41ed4438-9313-443c-aa63-027b935ffb99",e._sentryDebugIdIdentifier="sentry-dbid-41ed4438-9313-443c-aa63-027b935ffb99")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[883],{4294:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>g});var i=s(37876),l=s(24178),a=s(54431),r=s(92963),n=s(79350);let o=(0,n.J1)` 2 query GetTodayHub { 3 getTodayHub { 4 summary { 5 title 6 subtitle 7 energyLabel 8 readyRewardCount 9 unreadCount 10 highPriorityCount 11 streakAtRisk 12 activeGroupCount 13 hotMomentCount 14 } 15 actions { 16 key 17 title 18 description 19 ctaLabel 20 ctaLink 21 tone 22 icon 23 } 24 notifications { 25 _id 26 key 27 type 28 title 29 description 30 link 31 actorAvatar 32 isRead 33 createdAt 34 priority 35 priorityLabel 36 } 37 rewards { 38 key 39 title 40 description 41 status 42 progress 43 meta 44 ctaLabel 45 ctaLink 46 tone 47 } 48 dailyQuestions { 49 key 50 title 51 description 52 ctaLabel 53 ctaLink 54 meta 55 tone 56 } 57 trendingConversation { 58 key 59 title 60 description 61 ctaLabel 62 ctaLink 63 meta 64 tone 65 } 66 todayResults { 67 key 68 title 69 description 70 ctaLabel 71 ctaLink 72 meta 73 tone 74 } 75 liveGroups { 76 _id 77 title 78 slug 79 thumbnail 80 memberCount 81 recentPostCount 82 momentumLabel 83 } 84 hotMoments { 85 key 86 type 87 badge 88 accentColor 89 title 90 subtitle 91 link 92 createdAt 93 actor { 94 _id 95 username 96 firstName 97 lastName 98 profilePicture 99 isOnline 100 lastSeen 101 recentLabel 102 } 103 group { 104 _id 105 title 106 slug 107 thumbnail 108 memberCount 109 recentPostCount 110 momentumLabel 111 } 112 } 113 quietHoursDigest { 114 activeNow 115 totalUnread 116 highPriorityCount 117 mediumPriorityCount 118 lowPriorityCount 119 windowLabel 120 title 121 description 122 } 123 inviteCard { 124 referralCode 125 inviteLink 126 shareText 127 registeredCount 128 activatedCount 129 pendingCount 130 earnedXp 131 } 132 } 133 } 134`;var d=s(44983),c=s(48230),m=s.n(c),u=s(97685);function x({value:e,label:t}){return(0,i.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-slate-50 p-4",children:[(0,i.jsx)("div",{className:"text-xl font-semibold text-slate-950",children:e}),(0,i.jsx)("div",{className:"mt-1 text-xs text-slate-500",children:t})]})}function b({title:e,meta:t}){return(0,i.jsxs)("div",{className:"flex items-end justify-between gap-4",children:[(0,i.jsx)("h2",{className:"text-xl font-semibold text-slate-950",children:e}),t?(0,i.jsx)("p",{className:"text-sm text-slate-500",children:t}):null]})}function p({href:e,title:t,description:s,meta:l,action:a="A\xe7"}){return(0,i.jsxs)(m(),{href:e,className:"block rounded-2xl border border-slate-200 bg-white p-4 transition hover:border-slate-300 hover:bg-slate-50",children:[(0,i.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("p",{className:"text-base font-semibold text-slate-950",children:t}),s?(0,i.jsx)("p",{className:"mt-1 line-clamp-2 text-sm leading-6 text-slate-600",children:s}):null]}),l?(0,i.jsx)("span",{className:"shrink-0 rounded-full bg-slate-100 px-3 py-1 text-xs font-semibold text-slate-600",children:l}):null]}),(0,i.jsx)("div",{className:"mt-3 text-sm font-semibold text-secondary",children:a})]})}let h=()=>{let{data:e,loading:t,error:s,refetch:l}=function(){let e=(0,r.A)();return(0,a.IT)(o,{notifyOnNetworkStatusChange:!0,skip:!e?.token})}(),n=e?.getTodayHub;if(t&&!n)return(0,i.jsx)("div",{className:"mx-auto w-full max-w-5xl px-4 py-10",children:(0,i.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-white p-8",children:[(0,i.jsx)("div",{className:"text-lg font-semibold text-slate-950",children:"Bug\xfcn hazırlanıyor"}),(0,i.jsx)("div",{className:"mt-2 text-sm text-slate-500",children:"Bildirimler ve hazır adımlar toplanıyor."})]})});if(s instanceof Error||!n)return(0,i.jsx)("div",{className:"mx-auto w-full max-w-5xl px-4 py-10",children:(0,i.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-white p-8",children:[(0,i.jsx)("div",{className:"text-lg font-semibold text-slate-950",children:"Bug\xfcn a\xe7ılamadı"}),(0,i.jsx)("div",{className:"mt-2 text-sm text-slate-500",children:s instanceof Error?s.message:"Bug\xfcnk\xfc hareketler y\xfcklenemedi."})]})});let c=n.actions?.slice(0,3)||[],h=n.notifications?.slice(0,4)||[],g=n.rewards?.slice(0,4)||[],f=[...n.dailyQuestions||[],...n.trendingConversation||[],...n.todayResults||[]].slice(0,6),y=async()=>{let e=function(e){let t=e?.inviteLink?.trim();if(t)return t;let s=e?.referralCode?.trim();if(!s)return"";let i=`/sign-up?ref=${encodeURIComponent(s)}`;return`${window.location.origin}${i}`}(n.inviteCard);if(!e)return void u.Ay.error("Davet linki bulunamadı.");try{if(!navigator.clipboard?.writeText)throw Error("Clipboard API unavailable");await navigator.clipboard.writeText(e),u.Ay.success("Davet linki kopyalandı.")}catch{u.Ay.error("Davet linki kopyalanamadı.")}};return(0,i.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-4 py-8",children:[(0,i.jsxs)("section",{className:"rounded-2xl border border-slate-200 bg-white p-5 shadow-sm sm:p-6",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[(0,i.jsxs)("div",{className:"max-w-2xl",children:[(0,i.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.14em] text-secondary",children:"Bug\xfcn"}),(0,i.jsx)("h1",{className:"mt-2 text-3xl font-semibold tracking-tight text-slate-950",children:n.summary?.title||"Bug\xfcnk\xfc \xf6ncelikler
134in"}),(0,i.jsx)("p",{className:"mt-2 text-sm leading-6 text-slate-600",children:n.summary?.subtitle||"D\xf6nmen gereken yerler ve hazır \xf6d\xfcller sade bir listede."})]}),(0,i.jsx)("button",{type:"button",className:"btn btn-ghost self-start",onClick:()=>void l(),children:"Yenile"})]}),(0,i.jsxs)("div",{className:"mt-5 grid gap-3 sm:grid-cols-3",children:[(0,i.jsx)(x,{value:n.summary?.unreadCount||0,label:"Bekleyen"}),(0,i.jsx)(x,{value:n.summary?.readyRewardCount||0,label:"Hazır \xf6d\xfcl"}),(0,i.jsx)(x,{value:n.summary?.activeGroupCount||0,label:"Canlı grup"})]})]}),n.quietHoursDigest?(0,i.jsxs)("section",{className:"rounded-2xl border border-violet-200 bg-violet-50 p-4",children:[(0,i.jsx)("p",{className:"text-sm font-semibold text-violet-900",children:n.quietHoursDigest.title||"Sen yokken birikenler"}),(0,i.jsx)("p",{className:"mt-1 text-sm text-violet-800",children:n.quietHoursDigest.description}),(0,i.jsxs)("p",{className:"mt-2 text-xs font-semibold text-violet-700",children:[n.quietHoursDigest.windowLabel||"23:00 - 08:00"," \xb7"," ",n.quietHoursDigest.totalUnread||0," bildirim"]})]}):null,(0,i.jsxs)("section",{className:"rounded-2xl border border-slate-200 bg-white p-5 shadow-sm sm:p-6",children:[(0,i.jsx)(b,{meta:`${c.length} \xf6neri`,title:"\xd6nce bunlara bak"}),(0,i.jsx)("div",{className:"mt-4 grid gap-3",children:c.length?c.map(e=>(0,i.jsx)(p,{action:e.ctaLabel||"A\xe7",description:e.description,href:(0,d.S)(e.ctaLink)||"/",meta:e.meta,title:e.title},e.key)):(0,i.jsx)("p",{className:"rounded-2xl bg-slate-50 p-4 text-sm text-slate-600",children:"Åu anda acil bir \xf6neri g\xf6r\xfcnm\xfcyor."})})]}),(0,i.jsxs)("section",{className:"grid gap-6 lg:grid-cols-2",children:[(0,i.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-white p-5 shadow-sm sm:p-6",children:[(0,i.jsx)(b,{meta:`${h.length} bildirim`,title:"Bildirimler"}),(0,i.jsx)("div",{className:"mt-4 grid gap-3",children:h.length?h.map(e=>(0,i.jsx)(p,{description:e.description||"Yeni bir hareket var.",href:(0,d.S)(e.link)||"/notifications",meta:e.priorityLabel||function(e){return e?new Intl.DateTimeFormat("tr-TR",{dateStyle:"medium",timeStyle:"short"}).format(new Date(e)):"Åimdi"}(e.createdAt),title:e.title},e.key)):(0,i.jsx)("p",{className:"rounded-2xl bg-slate-50 p-4 text-sm text-slate-600",children:"Bekleyen bildirim yok."})})]}),(0,i.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-white p-5 shadow-sm sm:p-6",children:[(0,i.jsx)(b,{meta:`${g.length} kart`,title:"Hazır \xf6d\xfcller"}),(0,i.jsx)("div",{className:"mt-4 grid gap-3",children:g.length?g.map(e=>(0,i.jsxs)(m(),{href:(0,d.S)(e.ctaLink)||"/profile/me",className:"block rounded-2xl border border-slate-200 bg-white p-4 transition hover:border-slate-300 hover:bg-slate-50",children:[(0,i.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,i.jsx)("p",{className:"text-base font-semibold text-slate-950",children:e.title}),(0,i.jsx)("span",{className:"shrink-0 rounded-full bg-slate-100 px-3 py-1 text-xs font-semibold text-slate-600",children:e.status})]}),(0,i.jsx)("p",{className:"mt-1 text-sm leading-6 text-slate-600",children:e.description}),(0,i.jsx)("div",{className:"mt-3 h-2 overflow-hidden rounded-full bg-slate-100",children:(0,i.jsx)("div",{className:"h-full rounded-full bg-secondary",style:{width:`${Math.max(6,e.progress||0)}%`}})}),(0,i.jsx)("div",{className:"mt-3 text-sm font-semibold text-secondary",children:e.ctaLabel||"A\xe7"})]},e.key)):(0,i.jsx)("p",{className:"rounded-2xl bg-slate-50 p-4 text-sm text-slate-600",children:"Hazır \xf6d\xfcl yok."})})]})]}),f.length?(0,i.jsxs)("section",{className:"rounded-2xl border border-slate-200 bg-white p-5 shadow-sm sm:p-6",children:[(0,i.jsx)(b,{meta:`${f.length} \xf6neri`,title:"KeÅfet"}),(0,i.jsx)("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:f.map(e=>(0,i.jsx)(p,{action:e.ctaLabel||"A\xe7",description:e.description,href:(0,d.S)(e.ctaLink)||"/",meta:e.meta,title:e.title},e.key))})]}):null,n.liveGroups?.length||n.hotMoments?.length?(0,i.jsxs)("section",{className:"rounded-2xl border border-slate-200 bg-white p-5 shadow-sm sm:p-6",children:[(0,i.jsx)(b,{title:"Topluluk"}),(0,i.jsxs)("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:[(n.liveGroups||[]).slice(0,3).map(e=>(0,i.jsx)(p,{description:e.momentumLabel||`${e.memberCount||0} \xfcye`,href:e.slug?`/group/${e.slug}`:"/group/create",title:e.title||"Grup"},e._id||e.slug)),(n.hotMoments||[]).slice(0,3).map(e=>(0,i.jsx)(p,{description:e.subtitle,href:(0,d.S)(e.link)||"/",meta:e.actor?.recentLabel||"Yeni",title:e.title,action:function(e){return[e?.firstName,e?.lastName].filter(
134Boolean).join(" ").trim()||e?.username||"Wuubi \xfcyesi"}(e.actor)},e.key))]})]}):null,n.inviteCard?.referralCode?(0,i.jsxs)("section",{className:"rounded-2xl border border-amber-200 bg-amber-50 p-5 shadow-sm sm:p-6",children:[(0,i.jsx)(b,{meta:n.inviteCard.referralCode,title:"Davetler"}),(0,i.jsxs)("p",{className:"mt-2 text-sm text-amber-900",children:[n.inviteCard.pendingCount||0," kiÅi ilk hareketini bekliyor. Toplam ",n.inviteCard.earnedXp||0," XP kazandın."]}),(0,i.jsxs)("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:[(0,i.jsx)(x,{value:n.inviteCard.registeredCount||0,label:"Kayıt"}),(0,i.jsx)(x,{value:n.inviteCard.activatedCount||0,label:"AktifleÅen"}),(0,i.jsx)(x,{value:n.inviteCard.earnedXp||0,label:"XP"})]}),(0,i.jsx)("button",{type:"button",onClick:()=>void y(),className:"btn btn-secondary mt-4",children:"Davet linkini kopyala"})]}):null]})},g=h;h.getLayout=e=>(0,i.jsx)(l.A,{children:e})},44983:(e,t,s)=>{"use strict";s.d(t,{S:()=>l});let i=new Set(["type","create","edit","my-content","publish","publish-post","vote-poll","resolve-test","resolve-exam","like-content","archive-content","get-attributed-content","upload-inline-image"]);function l(e){if(!e)return null;let t=e.trim();if(!t||t.startsWith("http://")||t.startsWith("https://"))return t||null;if("/content/create"===t)return"/publish-post";if("/profile-settings/account"===t)return"/settings";let s=t.match(/^\/content\/([^/?#]+)([?#].*)?$/);return s?.[1]&&!i.has(s[1])?`/${s[1]}${s[2]||""}`:t.startsWith("/groups/")?t.replace(/^\/groups\//,"/group/"):t}},69721:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/today",function(){return s(4294)}])}},e=>{e.O(0,[4938,152,4178,636,6593,8792],()=>e(e.s=69721)),_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.