PageSourceSearch

https://fonoloji.com/_next/static/chunks/6689-cef14e959796d336.js

js fonoloji.com collected 2026-09-24 14:43:15 UTC 33,945 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6689],{60330:function(e,t,n){n.r(t),n.d(t,{ExchangeBadge:function(){return u},StockLogo:function(){return o},stripExchangeSuffix:function(){return d}});var r=n(83890),i=n(58496),a=n(71597);let s={US:{flag:"\uD83C\uDDFA\uD83C\uDDF8",name:"ABD (NASDAQ/NYSE)"},LN:{flag:"\uD83C\uDDEC\uD83C\uDDE7",name:"Londra (LSE)"},BB:{flag:"\uD83C\uDDE7\uD83C\uDDEA",name:"Br\xfcksel (Euronext)"},FP:{flag:"\uD83C\uDDEB\uD83C\uDDF7",name:"Paris (Euronext)"},NA:{flag:"\uD83C\uDDF3\uD83C\uDDF1",name:"Amsterdam (Euronext)"},GY:{flag:"\uD83C\uDDE9\uD83C\uDDEA",name:"Frankfurt (XETRA)"},GR:{flag:"\uD83C\uDDE9\uD83C\uDDEA",name:"Almanya"},SW:{flag:"\uD83C\uDDE8\uD83C\uDDED",name:"İsvi\xe7re (SIX)"},SM:{flag:"\uD83C\uDDEA\uD83C\uDDF8",name:"Madrid (BME)"},IM:{flag:"\uD83C\uDDEE\uD83C\uDDF9",name:"İtalya (Borsa Italiana)"},JP:{flag:"\uD83C\uDDEF\uD83C\uDDF5",name:"Tokyo (TSE)"},HK:{flag:"\uD83C\uDDED\uD83C\uDDF0",name:"Hong Kong (HKEX)"},KS:{flag:"\uD83C\uDDF0\uD83C\uDDF7",name:"Seul (KRX)"},AU:{flag:"\uD83C\uDDE6\uD83C\uDDFA",name:"Avustralya (ASX)"},CN:{flag:"\uD83C\uDDE8\uD83C\uDDE6",name:"Kanada (TSX)"},SP:{flag:"\uD83C\uDDE8\uD83C\uDDF3",name:"Şanghay (SSE)"}},l=["svg","jpg","png"];function o({ticker:e,size:t=32,className:n,tightCrop:s=!0}){let o=e.toUpperCase().trim(),u=/\s+[A-Z]{2}$/.test(o)?o.replace(/\s+[A-Z]{2}$/,""):o,[d,c]=(0,i.useState)(0),m=`/stock-logos/${encodeURIComponent(o)}.${l[d]}?v=2`,f=u.length>=9&&/^[A-Z]{2}[A-Z0-9]+$/.test(u),x=function(e){let t=0;for(let n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)>>>0;return t%360}(u),p=f?u.slice(2,4):u.slice(0,2);return(0,r.jsxs)("span",{className:(0,a.cn)("relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-white","rounded-full ring-1 ring-border/40",n),style:{width:t,height:t},children:[!f&&(0,r.jsx)("img",{src:m,alt:`${o} logo`,width:t,height:t,loading:"lazy",decoding:"async",className:(0,a.cn)("h-full w-full",s?"scale-110 object-cover":"object-contain p-1"),onError:e=>{if(d<l.length-1){c(d+1);return}let t=e.currentTarget;t.style.display="none";let n=t.nextElementSibling;n&&(n.style.display="flex")}}),(0,r.jsx)("span",{"aria-hidden":!0,className:(0,a.cn)("absolute inset-0 items-center justify-center font-bold tracking-tighter",f?"flex":"hidden"),style:{background:`hsl(${x} 55% 45%)`,color:"#fff",fontSize:.38*t},children:p})]})}function u({ticker:e,className:t}){let n=/\s+([A-Z]{2})$/.exec(e.trim());if(!n)return null;let i=n[1],l=s[i];return l?(0,r.jsxs)("span",{className:(0,a.cn)("inline-flex items-center gap-0.5 rounded bg-muted/30 px-1.5 py-0.5 text-[9px] font-semibold uppercase text-muted-foreground ring-1 ring-border/30",t),title:l.name,children:[(0,r.jsx)("span",{"aria-hidden":!0,children:l.flag}),(0,r.jsx)("span",{children:i})]}):null}function d(e){return e.trim().replace(/\s+[A-Z]{2}$/,"")}},34742:function(e,t,n){n.d(t,{L:function(){return ex},k:function(){return J}});var r=n(83890),i=n(58496),a=n(2130),s=n(77072),l=n(39298),o=n(41810),u=n(58318),d=n(53573),c=n(23703),m=n(64414),f=n(49320),x=n(50297),p=n(15729),h=n(34391),g=n(68400),b=n(22109),k=n(48027),y=n(49087),j=n(6683),w=n(84811),v=n(98221),N=n(56362),D=n(60138),C=n(57002),S=n(32187),E=n(41408),Z=n(75326),_=n(13195),I=n(89966),z=n(718),A=n(39488),$=n(91394),F=n(57482),T=n(96602),P=n(56788),B=n(88779),O=n(52087),M=n(60330),L=n(71597);function K(){return"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window?"denied"===Notification.permission?"reddedildi":"granted"===Notification.permission?"acik":"izin-bekliyor":"desteklenmiyor"}async function R(){let e=await navigator.serviceWorker.register("/sw-bildirim.js",{scope:"/"});await navigator.serviceWorker.ready;let t=await e.pushManager.getSubscription();if(!t){let n=await fetch("/auth/web-push/public-key",{credentials:"include"});if(!n.ok)return!1;let{publicKey:r}=await n.json();t=await e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),n=atob((e+t).replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(n,e=>e.charCodeAt(0))}(r)})}return(await fetch("/auth/me/web-push",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t.toJSON())})).ok}async function H(){if("desteklenmiyor"===K())return"desteklenmiyor";try{let e=await Notification.requestPermission();if("granted"!==e)return"denied"===e?"reddedildi":"izin-bekliyor";return await R()?"acik":"izin-bekliyor"}catch{return K()}}let U=!1;async function W(){if(!U&&"acik"===K()){U=!0;try{await R()}catch{}}}let Y="fonoloji:bildirimler-ac",G="fnl-webpush-serit-kapali";function J(){window.dispatchEvent(new Event(Y))}let X=e=>"string"==typeof e&&e.trim()?e.trim():null,V=e=>e.replace(/^[\p{Extended_Pictographic}\uFE0F\s]+/u,"");function q(e){let t=e.meta??{},n=X(t.code)??X(t.fund_code)??X(t.fundCode);return n&&/^[A-Z0-9]{3}$/.test(n)?n:null}let Q={fiyat:{etiket:"Fiyat",Ikon:l.Z,susturulabilir:!0},fiyat_duzeltme:{etiket:"Fiyat d\xfczeltmesi",Ikon:o.Z,susturulabilir:!0},gece_verisi:{etiket:"Gece verisi",Ikon:u.Z,ton:"brand",susturulabilir:!0},fon_duyurusu:{etiket:"Fon duyurusu",Ikon:d.Z,ton:"warn",susturulabilir:!0},kap_fund:{etiket:"Fon KAP",Ikon:c.Z,ton:"brand",susturulabilir:!0},kap_stock:{etiket:"Hisse KAP",Ikon:m.Z,ton:"brand",susturulabilir:!0},kurum:{etiket:"Kurum",Ikon:m.Z,ton:"brand",susturulabilir:!0},borsa:{etiket:"Borsa",Ikon:f.Z,susturulabilir:!0},ekonomi:{etiket:"Ekonomi",Ikon:x.Z,ton:"brand",susturulabilir:!0},weekly_summary:{etiket:"Haftalık karne",Ikon:p.Z,susturulabilir:!0},weekly_digest:{etiket:"Haftalık \xf6zet",Ikon:p.Z,susturulabilir:!0},portfoy_gunluk:{etiket:"Portf\xf6y\xfcn bug\xfcn",Ikon:h.Z,ton:"brand",susturulabilir:!0},mesaj:{etiket:"Mesaj",Ikon:g.Z,ton:"brand",susturulabilir:!1},topluluk:{etiket:"Topluluk",Ikon:b.Z,susturulabilir:!0},duyuru:{etiket:"Duyuru",Ikon:d.Z,ton:"brand",susturulabilir:!0},broadcast:{etiket:"Duyuru",Ikon:d.Z,ton:"brand",susturulabilir:!0},haber:{etiket:"Haber",Ikon:k.Z,susturulabilir:!0},endeks:{etiket:"Endeks",Ikon:f.Z,susturulabilir:!0},api:{etiket:"API",Ikon:y.Z,susturulabilir:!1},activation_reminder:{etiket:"Hatırlatma",Ikon:j.Z,susturulabilir:!0},bug_report:{etiket:"Destek",Ikon:w.Z,susturulabilir:!1},system:{etiket:"Sistem",Ikon:v.Z,susturulabilir:!1},sistem:{etiket:"Sistem",Ikon:v.Z,susturulabilir:!1}};function ee(e){if("anomaly_fund"===e.kind){let t=e.meta??{},n="down"===t.direction||"number"==typeof t.return_today&&t.return_today<0;return{etiket:"Olağandışı hareket",Ikon:n?N.Z:D.Z,ton:n?"down":"up",susturulabilir:!0}}let t=Q[e.kind];return t?{ton:"neutral",...t}:{etiket:"Bildirim",Ikon:C.Z,ton:"neutral",susturulabilir:!1}}let et=new Intl.DateTimeFormat("en-CA",{timeZone:"Europe/Istanbul"}),en=new Intl.DateTimeFormat("tr-TR",{timeZone:"Europe/Istanbul",hour:"2-digit",minute:"2-digit"}),er=new Intl.DateTimeFormat("tr-TR",{timeZone:"Europe/Istanbul",day:"numeric",month:"short"});function ei(e,t){let n=t-e;if(n<6e4)return"şimdi";if(n<36e5)return`${Math.floor(n/6e4)} dk`;let r=et.format(e);return r===et.format(t)?en.format(e):r===et.format(t-864e5)?`D\xfcn ${en.format(e)}`:er.format(e)}function ea(e){if("anomaly_fund"===e.kind){let t=e.meta?.return_today;if("number"!=typeof t||!Number.isFinite(t))return null;
1let n=Math.abs(100*t).toLocaleString("tr-TR",{minimumFractionDigits:2,maximumFractionDigits:2});return{yazi:`${t<0?"−":"+"}%${n}`,ton:t<0?"down":"up"}}if("fiyat"===e.kind||"fiyat_duzeltme"===e.kind){let t=e.body.match(/([▲▼])\s*[+\-−]?%\s*([\d.,]+)/);if(!t)return null;let n="▼"===t[1];return{yazi:`${n?"−":"+"}%${t[2]}`,ton:n?"down":"up"}}return null}let es={up:"bg-gain/[0.12] text-gain ring-gain/20",down:"bg-loss/[0.12] text-loss ring-loss/20",brand:"bg-brand-500/[0.14] text-brand-300 ring-brand-500/25",warn:"bg-amber-400/[0.12] text-amber-300 ring-amber-400/20",neutral:"bg-white/[0.05] text-foreground/80 ring-white/10"},el={up:"bg-gain/10 text-gain",down:"bg-loss/10 text-loss",brand:"bg-brand-500/15 text-brand-300",warn:"bg-amber-400/10 text-amber-300",neutral:"bg-white/5 text-muted-foreground"};async function eo(e){let t=new URLSearchParams({limit:String(e.limit??30)});e.unread&&t.set("unread","1"),e.before&&t.set("before",String(e.before));try{let e=await fetch(`/auth/me/notifications?${t}`,{credentials:"include"});if(!e.ok)return null;let n=await e.json();return{items:Array.isArray(n.items)?n.items:[],unreadCount:Number(n.unreadCount??0)}}catch{return null}}let eu=e=>fetch(`/auth/me/notifications/${e}/read`,{method:"POST",credentials:"include"}).catch(()=>{}),ed=()=>fetch("/auth/me/notifications/mark-all-read",{method:"POST",credentials:"include"}).catch(()=>{}),ec=e=>fetch(`/auth/me/notifications/${e}`,{method:"DELETE",credentials:"include"}).catch(()=>{}),em=e=>fetch("/auth/me/notification-mutes",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).catch(()=>{}),ef=e=>fetch(`/auth/me/notification-mutes?kapsam=${e.kapsam}&anahtar=${encodeURIComponent(e.anahtar)}`,{method:"DELETE",credentials:"include"}).catch(()=>{});function ex({className:e}){let t=(0,B.useRouter)(),[n,l]=i.useState(!1),[o,u]=i.useState("liste"),[d,c]=i.useState("all"),[m,f]=i.useState([]),[x,p]=i.useState(0),[h,g]=i.useState(!1),[b,k]=i.useState(!0),[y,j]=i.useState(null),[w,v]=i.useState(null),[N,D]=i.useState(0),[$,F]=i.useState(()=>Date.now()),[T,M]=i.useState(null),[R,U]=i.useState(null),[J,V]=i.useState("desteklenmiyor"),[Q,ee]=i.useState(!0),en=i.useRef(null),er=i.useRef(null),ei=i.useCallback(e=>{null!=en.current&&e>en.current&&D(e=>e+1),en.current=e,p(e)},[]),ea=i.useCallback(async()=>{g(!0);let e=await eo({unread:"unread"===d});e&&(f(e.items),k(e.items.length>=30),ei(e.unreadCount)),g(!1),F(Date.now())},[d,ei]),es=i.useCallback(async()=>{if(h||!b||0===m.length)return;g(!0);let e=await eo({unread:"unread"===d,before:m[m.length-1].id});e&&(f(t=>[...t,...e.items.filter(e=>!t.some(t=>t.id===e.id))]),k(e.items.length>=30)),g(!1)},[h,b,m,d]);function el(e){let t=e.filter(e=>!e.read_at);if(0===t.length)return;let n=new Set(t.map(e=>e.id)),r=Date.now();for(let e of(f(e=>"unread"===d?e.filter(e=>!n.has(e.id)):e.map(e=>n.has(e.id)?{...e,read_at:r}:e)),p(e=>Math.max(0,e-t.length)),en.current=Math.max(0,(en.current??t.length)-t.length),t))eu(e.id)}function ex(e){f(t=>t.filter(t=>t.id!==e.id)),e.read_at||(p(e=>Math.max(0,e-1)),en.current=Math.max(0,(en.current??1)-1)),ec(e.id)}function ep(e){el([e]);let n=function(e){let t=e.meta??{};if("web_route"in t)return X(t.web_route);if("weekly_digest"===e.kind)return"/panel/portfoy/haftalik";if("bug_report"===e.kind)return null;let n=X(t.route);if(n&&n.startsWith("/")&&!n.startsWith("/yardim/"))return n;if("kap_fund"===e.kind&&e.source_disclosure_index)return`/bildirim/${e.source_disclosure_index}`;let r=X(t.ticker);if("kap_stock"===e.kind&&r)return`/hisse/${r}`;let i=q(e);return i?`/fon/${i}`:r?`/hisse/${r}`:null}(e);n?(l(!1),t.push(n)):j(t=>t===e.id?null:e.id)}function eb(e,t){let n=t=>"fon"===e.kapsam?q(t)===e.anahtar:t.kind===e.anahtar,r=m.filter(n);f(e=>e.filter(e=>!n(e))),em(e),U({metin:`${t} sessize alındı`,geriAl:()=>{ef(e),f(e=>[...e,...r].sort((e,t)=>t.id-e.id)),U({metin:"Geri alındı"})}})}async function ew(){let e=await H();V(e),"acik"===e?U({metin:"Tarayıcı bildirimleri a\xe7ıldı"}):"reddedildi"===e&&U({metin:"Tarayıcı izni reddetti — adres \xe7ubuğundaki kilit simgesinden a\xe7abilirsin"})}i.useEffect(()=>{let e=!1,t=async()=>{let t=await eo({unread:!1,limit:1});t&&!e&&ei(t.unreadCount)};if(n){ea();let t=setInterval(()=>{ea()},3e4);return()=>{e=!0,clearInterval(t)}}t();let r=setInterval(()=>{t()},6e4);return()=>{e=!0,clearInterval(r)}},[n,ea,ei]),i.useEffect(()=>{let e=()=>l(!0);window.addEventListener(Y,e);let t=new URL(window.location.href);"ac"===t.searchParams.get("bildirimler")&&(l(!0),t.searchParams.delete("bildirimler"),window.history.replaceState(window.history.state,"",t.pathname+(t.search||"")+t.hash)),V(K());try{ee("1"===window.localStorage.getItem(G))}catch{ee(!1)}return W(),()=>window.removeEventListener(Y,e)},[]),i.useEffect(()=>{n||(u("liste"),U(null))},[n]),i.useEffect(()=>{if(!R)return;let e=setTimeout(()=>U(null),6e3);return()=>clearTimeout(e)},[R]),i.useEffect(()=>{"sessiz"===o&&fetch("/auth/me/notification-mutes",{credentials:"include"}).then(e=>e.ok?e.json():{items:[]}).then(e=>M(Array.isArray(e.items)?e.items:[])).catch(()=>M([]))},[o]),i.useEffect(()=>{let e=er.current;if(!n||"liste"!==o||!e)return;let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&es()},{rootMargin:"120px"});return t.observe(e),()=>t.disconnect()},[n,o,es]);let ev=i.useMemo(()=>{let e=[];for(let t of m){let n=function(e,t){let n=et.format(e);return n===et.format(t)?"Bug\xfcn":n===et.format(t-864e5)?"D\xfcn":t-e<6048e5?"Bu hafta":"Daha \xf6nce"}(t.created_at,$),r=e[e.length-1];r&&r.ad===n?r.girisler.push({tip:"tek",it:t}):e.push({ad:n,girisler:[{tip:"tek",it:t}]})}for(let t of e){let e=t.girisler.filter(e=>"tek"===e.tip&&"fiyat"===e.it.kind);if(e.length<3)continue;let n=t.girisler.indexOf(e[0]),r={tip:"kume",anahtar:`${t.ad}-fiyat`,ogeler:e.map(e=>e.it)};t.girisler=t.girisler.filter(e=>!("tek"===e.tip&&"fiyat"===e.it.kind)),t.girisler.splice(n,0,r)}return e},[m,$]),eN="izin-bekliyor"===J&&!Q&&"liste"===o;return(0,r.jsxs)(O.J2,{open:n,onOpenChange:l,children:[(0,r.jsx)(O.xo,{asChild:!0,children:(0,r.jsxs)("button",{type:"button",className:(0,L.cn)("relative inline-flex h-8 w-8 items-center justify-center rounded-md border border-border bg-secondary/40 text-muted-foreground transition hover:bg-secondary hover:text-foreground data-[state=open]:bg-secondary data-[state=open]:text-foreground",e),"aria-label":x>0?`Bildirimler, ${x} okunmamış`:"Bildirimler",title:"Bildirimler",children:[(0,r.jsx)(a.E.span,{className:"inline-flex",initial:!1,animate:N?{rotate:[0,-16,13,-9,6,0]}:void 0,transition:{duration:.7,ease:"easeInOut"},style:{transformOrigin:"50% 10%"},children:x>0?(0,r.jsx)(S.Z,{className:"h-3.5 w-3.5"}):(0,r.jsx)(C.Z,{className:"h-3.5 w-3.5"})},N),x>0&&(0,r.jsx)("span",{className:"absolute -right-1 -top-1 flex h-4 min-w-[16px] items-center justify-center rounded-full bg-brand-500 px-1 font-mono text-[9px] font-bold text-white ring-2 ring-background",children:x>99?"99+":x})]})}),(0,r.jsxs)(O.yk,{align:"end",sideOffset:10,collisionPadding:8,className:"relative z-[70] flex w-[min(420px,calc(100vw-16px))] flex-col overflow-hidden rounded-2xl border-border/80 bg-popover/95 p-0 shadow-2xl shadow-black/40 backdrop-blur-xl",onOpenAutoFocus:e=>e.preventDefault(),children:["sessiz"===o?(0,r.jsx)(ek,{liste:T,onGeri:()=>u("liste"),onKaldir:e=>{M(t=>(t??[]).filter(t=>!(t.kapsam===e.kapsam&&t.anahtar===e.anahtar))),ef(e)}}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 px-4 pb-3 pt-4",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("h2",{className:"text-[15px] font-semibold tracking-tight text-foreground",children:"Bildirimler"}),x>0&&(0,r.jsxs)("span",{className:"rounded-full bg-brand-500/15 px-2 py-0.5 font-mono text-[10.5px] font-semibold text-brand-300",children:[x," yeni"]})]}),(0,r.jsx)("p",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:"Telefonuna gelen her şey burada da"})]}),(0,r.jsx)("button",{type:"button",onClick:function(){let e=Date.now();f(t=>"unread"===d?[]:t.map(t=>t.read_at?t:{...t,read_at:e})),p(0),en.current=0,ed()},disabled:0===x,className:"inline-flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground transition hover:bg-white/[0.06] hover:text-foreground disabled:pointer-events-none disabled:opacity-35",title:"T\xfcm\xfcn\xfc okundu say","aria-label":"T\xfcm\xfcn\xfc okundu say",children:(0,r.jsx)(E.Z,{className:"h-4 w-4"})}),(0,r.jsx)(P.default,{href:"/panel?tab=mail",onClick:()=>l(!1),className:"inline-flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground transition hover:bg-white/[0.06] hover:text-foreground",title:"Bildirim tercihleri","aria-label":"Bildirim tercihleri",children:(0,r.jsx)(Z.Z,{className:"h-4 w-4"})})]}),(0,r.jsx)("div",{className:"px-4 pb-2",children:(0,r.jsx)("div",{className:"relative grid grid-cols-2 rounded-xl bg-white/[0.04] p-1 text-[12.5px]",children:["all","unread"].map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>{c(e),j(null),v(null)},className:(0,L.cn)("relative z-10 rounded-lg py-1.5 font-medium transition-colors",d===e?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[d===e&&(0,r.jsx)(a.E.span,{layoutId:"bildirim-suzgec",className:"absolute inset-0 -z-10 rounded-lg bg-white/[0.08] shadow-sm",transition:{type:"spring",stiffness:500,damping:38}}),"all"===e?"T\xfcm\xfc":`Okunmamış${x>0?` \xb7 ${x}`:""}`]},e))})}),eN&&(0,r.jsxs)("div",{className:"mx-4 mb-2 flex items-center gap-3 rounded-xl border border-brand-500/25 bg-brand-500/[0.08] px-3 py-2.5",children:[(0,r.jsx)(_.Z,{className:"h-4 w-4 shrink-0 text-brand-300"}),(0,r.jsxs)("p",{className:"min-w-0 flex-1 text-[12px] leading-snug text-foreground
1/90",children:[(0,r.jsx)("span",{className:"font-semibold",children:"Masa\xfcst\xfcnde de al."})," ",(0,r.jsx)("span",{className:"text-muted-foreground",children:"Sekme kapalıyken bile telefondaki gibi."})]}),(0,r.jsx)("button",{type:"button",onClick:()=>{ew()},className:"shrink-0 rounded-lg bg-brand-500 px-2.5 py-1.5 text-[11.5px] font-semibold text-white transition hover:bg-brand-400",children:"A\xe7"}),(0,r.jsx)("button",{type:"button",onClick:function(){ee(!0);try{window.localStorage.setItem(G,"1")}catch{}},"aria-label":"Kapat",className:"shrink-0 text-muted-foreground transition hover:text-foreground",children:(0,r.jsx)(I.Z,{className:"h-3.5 w-3.5"})})]}),(0,r.jsxs)("div",{className:"max-h-[min(560px,66vh)] overflow-y-auto overscroll-contain pb-1",children:[0===m.length&&h&&(0,r.jsx)(ey,{}),0===m.length&&!h&&(0,r.jsx)(ej,{okunmamis:"unread"===d,onKapat:()=>l(!1)}),ev.map(e=>(0,r.jsxs)("section",{children:[(0,r.jsx)("h3",{className:"sticky top-0 z-10 bg-popover/95 px-4 pb-1.5 pt-3 text-[10px] font-semibold uppercase tracking-[0.14em] text-muted-foreground/80 backdrop-blur",children:e.ad}),(0,r.jsx)("ul",{children:(0,r.jsx)(s.M,{initial:!1,children:e.girisler.map(e=>"kume"===e.tip?(0,r.jsx)(eg,{ogeler:e.ogeler,acik:w===e.anahtar,onAcKapa:()=>{v(t=>t===e.anahtar?null:e.anahtar)},onHepsiniOku:()=>el(e.ogeler),simdi:$,altSatir:e=>(0,r.jsx)(eh,{it:e,simdi:$,acik:y===e.id,ic:!0,onTikla:()=>ep(e),onOkundu:()=>el([e]),onSil:()=>ex(e),onSustur:eb},e.id)},e.anahtar):(0,r.jsx)(eh,{it:e.it,simdi:$,acik:y===e.it.id,onTikla:()=>ep(e.it),onOkundu:()=>el([e.it]),onSil:()=>ex(e.it),onSustur:eb},e.it.id))})})]},e.ad)),m.length>0&&b&&(0,r.jsx)("div",{ref:er,className:"py-3 text-center text-[11px] text-muted-foreground",children:h?"Y\xfckleniyor…":""}),m.length>0&&!b&&(0,r.jsx)("p",{className:"py-4 text-center text-[11px] text-muted-foreground/70",children:"Hepsi bu kadar"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 border-t border-border/70 px-4 py-2.5 text-[12px]",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>u("sessiz"),className:"inline-flex items-center gap-1.5 text-muted-foreground transition hover:text-foreground",children:[(0,r.jsx)(z.Z,{className:"h-3.5 w-3.5"})," Sessize alınanlar"]}),(0,r.jsxs)("a",{href:"https://t.me/fonoloji_bot",target:"_blank",rel:"noopener noreferrer",className:"ml-auto inline-flex items-center gap-1.5 font-medium text-brand-300 transition hover:text-foreground",title:"@fonoloji_bot — bildirimleri Telegram'dan da al",children:[(0,r.jsx)(A.Z,{className:"h-3.5 w-3.5"})," Telegram'da da al"]})]})]}),(0,r.jsx)(s.M,{children:R&&(0,r.jsxs)(a.E.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},className:"pointer-events-auto absolute inset-x-3 bottom-12 z-20 flex items-center gap-3 rounded-xl border border-border bg-popover px-3 py-2.5 text-[12px] text-foreground shadow-xl",children:[(0,r.jsx)("span",{className:"min-w-0 flex-1",children:R.metin}),R.geriAl&&(0,r.jsx)("button",{type:"button",onClick:R.geriAl,className:"shrink-0 font-semibold text-brand-300 hover:text-foreground",children:"Geri al"})]})})]})]})}function ep({it:e,ton:t,Ikon:n,boyut:i=40}){let a=q(e),s="kap_stock"===e.kind?X(e.meta?.ticker):null,l={width:i,height:i};return(0,r.jsxs)("div",{className:"relative shrink-0 self-start",style:l,children:[s?(0,r.jsx)(M.StockLogo,{ticker:s,size:i,className:"rounded-xl"}):(0,r.jsx)("div",{className:(0,L.cn)("flex items-center justify-center rounded-xl ring-1 ring-inset",es[t]),style:l,children:a?(0,r.jsx)("span",{className:"font-mono font-bold tracking-tight",style:{fontSize:i>=40?11.5:9.5},children:a}):(0,r.jsx)(n,{className:"h-[18px] w-[18px]"})}),(a||s)&&(0,r.jsx)("span",{className:(0,L.cn)("absolute -bottom-1 -right-1 flex h-[18px] w-[18px] items-center justify-center rounded-full bg-popover ring-2 ring-popover",el[t]),children:(0,r.jsx)(n,{className:"h-[10px] w-[10px]",strokeWidth:2.5})})]})}function eh({it:e,simdi:t,acik:n,ic:s,onTikla:l,onOkundu:o,onSil:u,onSustur:d}){var c,m;let f;let x=ee(e),{etiket:p,Ikon:h,ton:g}=x,b=q(e),k=(c=e.body??"",m=e.title,f=(f=c.replace(/<br\s*\/?>/gi," ").replace(/<\/(p|div|li)>/gi," ").replace(/<[^>]+>/g,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/\s+/g," ").trim()).replace(/^[\p{Extended_Pictographic}\uFE0F\s]+/u,""),m&&f.toLocaleLowerCase("tr-TR").startsWith(m.toLocaleLowerCase("tr-TR"))&&(f=f.slice(m.length).replace(/^[\s·:—-]+/,"")),f),y=ea(e),j=function(e){let t=e.meta?.neden;return"portfoy"===t?"Portf\xf6y\xfcnde":"takip"===t?"Takip listende":null}(e),w=!e.read_at,[v,N]=i.useState(!1),D=[];return b&&D.push({s:{kapsam:"fon",anahtar:b},yazi:`${b} bildirimlerini sessize al`,etiket:b}),x.susturulabilir&&D.push({s:{kapsam:"tur",anahtar:e.kind},yazi:`“${p}” bildirimlerini kapat`,etiket:`“${p}”`}),(0,r.jsxs)(a.E.li,{layout:!0,initial:{opacity:0,y:-4}
1,animate:{opacity:1,y:0},exit:{opacity:0,height:0,transition:{duration:.18}},className:"group/satir relative",onMouseLeave:()=>N(!1),children:[(0,r.jsxs)("div",{role:"button",tabIndex:0,onClick:l,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l())},className:(0,L.cn)("mx-2 flex cursor-pointer gap-3 rounded-xl px-2.5 py-2.5 outline-none transition-colors","hover:bg-white/[0.04] focus-visible:bg-white/[0.05] focus-visible:ring-1 focus-visible:ring-brand-500/50",w&&"bg-brand-500/[0.045]",s&&"ml-6 py-2"),children:[(0,r.jsx)(ep,{it:e,ton:g,Ikon:h,boyut:s?32:40}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[!s&&(0,r.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,r.jsx)("span",{className:"truncate",children:p}),j&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"text-muted-foreground/50",children:"\xb7"}),(0,r.jsx)("span",{className:"shrink-0 text-muted-foreground/90",children:j})]}),(0,r.jsx)("span",{className:"ml-auto shrink-0 pl-2 font-mono text-[10.5px] tabular-nums text-muted-foreground/80 transition-opacity group-focus-within/satir:opacity-0 group-hover/satir:opacity-0",children:ei(e.created_at,t)})]}),(0,r.jsxs)("div",{className:"mt-0.5 flex items-start gap-2",children:[(0,r.jsx)("p",{className:(0,L.cn)("min-w-0 flex-1 text-[13.5px] leading-snug",w?"font-semibold text-foreground":"font-medium text-foreground/85",!n&&"line-clamp-1",s&&"text-[12.5px]"),children:V(e.title)}),y&&(0,r.jsx)("span",{className:(0,L.cn)("mt-px shrink-0 rounded-md px-1.5 py-0.5 font-mono text-[11px] font-semibold tabular-nums",el[y.ton]),children:y.yazi})]}),k&&!s&&(0,r.jsx)("p",{className:(0,L.cn)("mt-0.5 text-[12.5px] leading-relaxed text-muted-foreground",!n&&"line-clamp-2"),children:k})]}),w&&!s&&(0,r.jsx)("span",{"aria-label":"okunmadı",className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-brand-500 shadow-[0_0_0_3px_rgba(122,92,255,0.18)] group-hover/satir:opacity-0"})]}),(0,r.jsxs)("div",{className:"pointer-events-none absolute right-4 top-2 flex gap-1 opacity-0 transition-opacity group-focus-within/satir:pointer-events-auto group-focus-within/satir:opacity-100 group-hover/satir:pointer-events-auto group-hover/satir:opacity-100",children:[w&&(0,r.jsx)(eb,{title:"Okundu işaretle",onClick:o,children:(0,r.jsx)($.Z,{className:"h-3.5 w-3.5"})}),D.length>0&&(0,r.jsx)(eb,{title:"Sessize al",onClick:()=>N(e=>!e),children:(0,r.jsx)(z.Z,{className:"h-3.5 w-3.5"})}),(0,r.jsx)(eb,{title:"Sil",onClick:u,children:(0,r.jsx)(I.Z,{className:"h-3.5 w-3.5"})})]}),v&&(0,r.jsx)("div",{className:"absolute right-4 top-10 z-30 w-60 overflow-hidden rounded-xl border border-border bg-popover p-1 shadow-2xl",children:D.map(e=>(0,r.jsxs)("button",{type:"button",onClick:t=>{t.stopPropagation(),N(!1),d(e.s,e.etiket)},className:"flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left text-[12.5px] text-foreground/90 transition hover:bg-white/[0.06]",children:[(0,r.jsx)(z.Z,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})," ",e.yazi]},`${e.s.kapsam}-${e.s.anahtar}`))})]})}function eg({ogeler:e,acik:t,onAcKapa:n,onHepsiniOku:i,simdi:l,altSatir:o}){let u=e.filter(e=>!e.read_at).length,d=e.slice(0,4).map(e=>({kod:q(e)??"—",c:ea(e)}));return(0,r.jsxs)(a.E.li,{layout:!0,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"relative",children:[(0,r.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>{n(),t||i()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n())},className:(0,L.cn)("mx-2 flex cursor-pointer gap-3 rounded-xl px-2.5 py-2.5 outline-none transition-colors hover:bg-white/[0.04] focus-visible:ring-1 focus-visible:ring-brand-500/50",u>0&&"bg-brand-500/[0.045]"),children:[(0,r.jsx)("div",{className:"relative h-10 w-10 shrink-0 self-start",children:e.slice(0,3).reverse().map((e,t,n)=>(0,r.jsx)("span",{className:"absolute flex h-8 w-8 items-center justify-center rounded-lg bg-popover font-mono text-[9.5px] font-bold text-foreground/85 ring-1 ring-inset ring-white/15",style:{left:(n.length-1-t)*4,top:(n.length-1-t)*4,zIndex:t},children:q(e)},e.id))}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[(0,r.jsx)("span",{children:"Fiyat"}),(0,r.jsx)("span",{className:"ml-auto shrink-0 font-mono text-[10.5px] tabular-nums text-muted-foreground/80",children:ei(e[0].created_at,l)})]}),(0,r.jsxs)("p",{className:(0,L.cn)("mt-0.5 text-[13.5px] leading-snug",u>0?"font-semibold text-foreground":"font-medium text-foreground/85"),children:[e.length," fonunun fiyatı a\xe7ıklandı"]}),(0,r.jsxs)("div",{className:"mt-1 flex flex-wrap gap-1",children:[d.map((e,t)=>(0,r.jsxs)("span",{className:(0,L.cn)("rounded-md px-1.5 py-0.5 font-mono text-[10.5px] font-semibold tabular-nums",e.c?el[e.c.ton]:el.neutral),children:[e.kod,e.c?` ${e.c.yazi}`:""]},t)),e.length>4&&(0,r.jsxs)("span",{className:"px-1 py-0.5 text-[10.5px] text-muted-foreground",children:["+",e.length-4]})]})]}),(0,r.jsx)(F.Z,{className:(0,L.cn)("mt-1 h-4 w-4 shrink-0 text-muted-foreground transition-transform",t&&"rotate-180")})]}),(0,r.jsx)(s.M,{initial:!1,children:t&&(0,r.jsx)(a.E.ul,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden",children:e.map(e=>o(e))})})]})}function eb({title:e,onClick:t,children:n}){return(0,r.jsx)("button",{type:"button",title:e,"aria-label":e,onClick:e=>{e.stopPropagation(),t()},className:"inline-flex h-7 w-7 items-center justify-center rounded-lg border border-border/80 bg-popover text-muted-foreground shadow-sm transition hover:border-brand-500/40 hover:text-foreground",children:n})}function ek({liste:e,onGeri:t,onKaldir:n}){return(0,r.jsxs)("div",{className:"flex min-h-[320px] flex-col",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 border-b border-border/70 px-3 py-3",children:[(0,r.jsx)("button",{type:"button",onClick:t,className:"inline-flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground transition hover:bg-white/[0.06] hover:text-foreground","aria-label":"Geri",children:(0,r.jsx)(T.Z,{className:"h-4 w-4"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"text-[14px] font-semibold text-foreground",children:"Sessize alınanlar"}),(0,r.jsx)("p",{className:"text-[11.5px] text-muted-foreground",children:"Bunlar telefona, kutuya ve tarayıcıya gelmez"})]})]}),(0,r.jsxs)("div",{className:"max-h-[420px] flex-1 overflow-y-auto p-2",children:[null===e&&(0,r.jsx)("p",{className:"px-3 py-6 text-center text-[12px] text-muted-foreground",children:"Y\xfckleniyor…"}),null!==e&&0===e.length&&(0,r.jsxs)("div",{className:"px-6 py-10 text-center",children:[(0,r.jsx)(z.Z,{className:"mx-auto mb-3 h-6 w-6 text-muted-foreground/60"}),(0,r.jsx)("p",{className:"text-[13px] font-medium text-foreground",children:"Sessize aldığın bir şey yok"}),(0,r.jsx)("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Bir bildirimin \xfczerine gelip zil simgesiyle fonu ya da t\xfcr\xfc susturabilirsin."})]}),e?.map(e=>{let t="tur"===e.kapsam?ee({kind:e.anahtar,meta:null}):null,i=t?.Ikon??l.Z;return r.jsxs("div",{className:"flex items-center gap-3 rounded-xl px-2.5 py-2 hover:bg-white/[0.03]",children:[r.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-white/[0.05] text-foreground
1/80 ring-1 ring-inset ring-white/10",children:"fon"===e.kapsam?r.jsx("span",{className:"font-mono text-[11px] font-bold",children:e.anahtar}):r.jsx(i,{className:"h-4 w-4"})}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"truncate text-[13px] font-medium text-foreground",children:"fon"===e.kapsam?`${e.anahtar} fonu`:t?.etiket??e.anahtar}),r.jsx("p",{className:"text-[11px] text-muted-foreground",children:"fon"===e.kapsam?"Bu fonla ilgili t\xfcm bildirimler":"Bu t\xfcrdeki t\xfcm bildirimler"})]}),r.jsx("button",{type:"button",onClick:()=>n(e),className:"shrink-0 rounded-lg border border-border px-2.5 py-1 text-[11.5px] font-medium text-foreground/90 transition hover:border-brand-500/40 hover:text-foreground",children:"A\xe7"})]},`${e.kapsam}-${e.anahtar}`)})]})]})}function ey(){return(0,r.jsx)("div",{className:"space-y-1 px-4 pt-3","aria-label":"Y\xfckleniyor",children:[0,1,2,3].map(e=>(0,r.jsxs)("div",{className:"flex gap-3 py-2.5",children:[(0,r.jsx)("div",{className:"h-10 w-10 shrink-0 animate-pulse rounded-xl bg-white/[0.06]"}),(0,r.jsxs)("div",{className:"flex-1 space-y-2 pt-0.5",children:[(0,r.jsx)("div",{className:"h-2.5 w-24 animate-pulse rounded bg-white/[0.06]"}),(0,r.jsx)("div",{className:"h-3 w-3/4 animate-pulse rounded bg-white/[0.08]"}),(0,r.jsx)("div",{className:"h-2.5 w-full animate-pulse rounded bg-white/[0.05]"})]})]},e))})}function ej({okunmamis:e,onKapat:t}){return(0,r.jsxs)("div",{className:"flex flex-col items-center px-8 pb-8 pt-10 text-center",children:[(0,r.jsxs)("div",{className:"relative mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-brand-500/10 text-brand-300 ring-1 ring-inset ring-brand-500/20",children:[e?(0,r.jsx)(E.Z,{className:"h-6 w-6"}):(0,r.jsx)(C.Z,{className:"h-6 w-6"}),(0,r.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full bg-brand-500/60 blur-[2px]"})]}),(0,r.jsx)("p",{className:"text-[14px] font-semibold text-foreground",children:e?"Hepsini okudun":"Her şey sakin"}),(0,r.jsx)("p",{className:"mt-1 max-w-[260px] text-[12.5px] leading-relaxed text-muted-foreground",children:e?"Yeni bir gelişme olduğunda burada ve telefonunda g\xf6receksin.":"Takip ettiğin ve portf\xf6y\xfcndeki fonlarda \xf6nemli bir gelişme olduğunda burada g\xf6receksin."}),!e&&(0,r.jsx)(P.default,{href:"/fonlar",onClick:t,className:"mt-4 inline-flex items-center gap-1.5 rounded-lg bg-brand-500 px-3.5 py-2 text-[12.5px] font-semibold text-white transition hover:bg-brand-400",children:"Fon keşfet ve takibe al"})]})}},52087:function(e,t,n){n.d(t,{J2:function(){return l},xo:function(){return o},yk:function(){return u}});var r=n(83890),i=n(46936),a=n(58496),s=n(71597);let l=i.fC,o=i.xz;i.ee;let u=a.forwardRef(({className:e,align:t="center",sideOffset:n=8,...a},l)=>(0,r.jsx)(i.h_,{children:(0,r.jsx)(i.VY,{ref:l,align:t,sideOffset:n,className:(0,s.cn)("z-50 w-72 rounded-xl border border-border bg-popover p-4 text-popover-foreground shadow-xl outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));u.displayName=i.VY.displayName},14766:function(e,t,n){n.d(t,{SF:function(){return m},pk:function(){return x},vx:function(){return f}});var r=n(58496);let i=null,a=null,s=new Set,l=null,o=new Set;function u(e){for(let t of(i=e,s))t(e)}function d(e){for(let t of(l=e,o))t(e)}function c(){return null!==i?Promise.resolve(i):(a||(a=fetch("/auth/me",{credentials:"include",cache:"no-store"}).then(e=>{if(!e.ok)throw Error(String(e.status));return e.json()}).then(e=>{let t=!!(e&&e.user);return d(t&&e?.liveData===!0),u(t),t}).catch(()=>{throw Error("auth-belirsiz")}).finally(()=>{a=null})),a.catch(()=>null))}function m(e){if(a=null,"boolean"==typeof e){d(!!e&&null),u(e),e&&c();return}u(null),d(null),c()}function f(){let[e,t]=(0,r.useState)(l);return(0,r.useEffect)(()=>{let e=!0,n=n=>{e&&t(n)};return o.add(n),c().then(()=>{e&&t(l)}),()=>{e=!1,o.delete(n)}},[]),e}function x(e){let[t,n]=(0,r.useState)(e??i);return(0,r.useEffect)(()=>
1{if(void 0!==e)return;let t=!0,r=e=>{t&&n(e)};return s.add(r),c().then(e=>{t&&n(e)}),()=>{t=!1,s.delete(r)}},[e]),void 0!==e?e:t}}}]);

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.