PageSourceSearch

https://www.samanyoluhaber.com/_next/static/chunks/a7218a2bfffa0484.js

js samanyoluhaber.com collected 2026-10-02 04:26:09 UTC 9,022 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,217,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.s(["default",0,({slot:e,format:l="auto",className:s=""})=>{let a=(0,r.useRef)(null),i=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(i.current||!a.current)return;let e=()=>{if(i.current||!a.current)return;let e=a.current.getAttribute("data-adsbygoogle-status");if(!e||"unfilled"===e)try{(window.adsbygoogle=window.adsbygoogle||[]).push({}),i.current=!0}catch(e){console.error("Adsbygoogle error:",e)}};if(window.adsbygoogle?.loaded){let t=setTimeout(e,100);return()=>clearTimeout(t)}let t=document.querySelector('script[src*="adsbygoogle"]');if(t){let r=()=>e();return t.addEventListener("load",r),()=>t.removeEventListener("load",r)}let r=0,l=setInterval(()=>{r++,(window.adsbygoogle?.push!==Array.prototype.push||r>=20)&&(e(),clearInterval(l))},500);return()=>clearInterval(l)},[]),(0,t.jsx)("ins",{ref:a,className:`adsbygoogle block ${s}`,style:{display:"block"},"data-ad-client":"ca-pub-2330338024433131","data-ad-slot":e,"data-ad-format":l,"data-full-width-responsive":"true"})}])},77949,e=>{"use strict";let t=e=>{let t={ş:"s",Ş:"S",ğ:"g",Ğ:"G",ü:"u",Ü:"U",ö:"o",Ö:"O",ç:"c",Ç:"C",ı:"i",İ:"I"};return e.replace(/[şŞğĞüÜöÖçÇıİ]/g,e=>t[e]||e)},r=e=>t(e).toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim(),l=e=>e&&"string"==typeof e?t(e).toLowerCase().trim().replace(/[^a-z0-9\s-]/gi,"").replace(/\s+/g,"-").replace(/-+/g,"-"):"";e.s(["convertTitleToSlug",0,r,"generateArticleUrl",0,(e,t,s,a)=>{let i=r(e),n=l(a);return`/yazar/${n}/${i}/${s}`},"generateAuthorUrl",0,(e,t)=>{let r=l(e);return`/yazarlar/${r}`},"generateFullUrl",0,(e,t)=>{let l=r(e);return`/${l}/${t}`}])},1159,e=>{"use strict";var t=e.i(43476),r=e.i(77949);e.s(["default",0,({limit:e=5,initialNews:l=[]})=>(0,t.jsxs)("div",{className:"mt-12 relative",children:[(0,t.jsx)("div",{className:"absolute -top-3.5 left-0 -mt-6 ",children:(0,t.jsx)("div",{className:"news-label orange",style:{bottom:"-1px"},children:"ÇOK OKUNAN HABERLER"})}),(0,t.jsx)("div",{className:"flex flex-col gap-4 pt-4 items-center",children:l.slice(0,e).map(e=>{let l;return(0,t.jsxs)("a",{href:(0,r.generateFullUrl)(e.title,e.id),rel:"noopener noreferrer",className:"flex gap-4 mt-2 items-center hover:bg-gray-100 transition w-full max-w-4xl border-b border-gray-300 sm:border-none pb-4 sm:pb-0",children:[(0,t.jsx)("div",{className:"min-w-[108px] min-h-[77px] max-w-[108px] max-h-[77px] sm:min-w-[140px] sm:min-h-[90px] sm:max-w-[140px] sm:max-h-[90px] overflow-hidden",children:(0,t.jsx)("img",{src:e.path,alt:e.title,loading:"lazy",className:"w-full h-full object-cover"})}),(0,t.jsx)("div",{className:"flex flex-col justify-center text-left",children:(0,t.jsx)("h3",{className:"custom-text-title font-normal",children:(l=e.title,l.length>50?l.slice(0,50)+"...":l)})})]},e.id)})})]})])},17697,e=>{"use strict";var t=e.i(43476),r=e.i(71645),l=e.i(22016),s=e.i(77949),a=e.i(47133);let i=({htmlContent:e})=>{let[l,s]=(0,r.useState)(0),[a,i]=(0,r.useState)("");return(0,r.useEffect)(()=>{let e=()=>s(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.useEffect)(()=>{if("u">typeof document){let t=document.createElement("div");t.innerHTML=e||"";let r=t.textContent||t.innerText||"",s=l<640?40:l<768?60:l<1024?80:100;i(r.length>s?r.substring(0,s)+"...":r)}},[e,l]),(0,t.jsx)("div",{className:"custom-text-details text-gray-600",children:a})};e.s(["default",0,({limit:e=5,initialAuthors:n=[]})=>{let[o,c]=(0,r.useState)(n.slice(0,e));return(0,r.useEffect)(()=>{if(n.length>0)return;let t=new AbortController;return fetch(`${a.API_BASE_URL}/authors?limit=${e}`,{headers:{Authorization:`Bearer ${a.API_TOKEN}`},signal:t.signal}).then(e=>e.json()).then(e=>c(e.data||[])).catch(e=>{"AbortError"!==e.name&&console.error("Error fetching authors:",e)}),()=>t.abort()},[n,e]),(0,t.jsxs)("div",{className:"mt-8 relative",children:[(0,t.jsx)("div",{className:"absolute -top-3.5 left-0 -mt-6",children:(0,t.jsx)(l.default,{href:"/yazarlar",children:(0,t.jsx)("div",{className:"news-label orange cursor-pointer hover:text-blue-600",children:"YAZARLAR"})})}),(0,t.jsx)("div",{className:"flex flex-col gap-4 pt-4 items-center w-full",children:o.map((e,r)=>{var l;let a;return(0,t.jsxs)("div",{onClick:()=>{e.title&&e.editor_id&&e.news_id&&e.editor_name?window.open((0,s.generateArticleUrl)(e.title,e.editor_id,e.news_id,e.editor_name),"_self"):e.editor_id&&e.editor_name&&window.open((0,s.generateAuthorUrl)(e.editor_name,e.editor_id),"_self")},className:"flex gap-4 border-b-2 border-gray-200 w-full max-w-4xl cursor-pointer hover:bg-gray-100 transition mt-2",children:[(0,t.jsx)("div",{className:"min-w-[100px] min-h-[100px] max-w-[100px] max-h-[100px] overflow-hidden",children:e.image_path?.trim()?(0,t.jsx)("img",{src:e.image_path,alt:e.editor_name,className:"w-full h-full object-cover",loading:"lazy"}):(0,t.jsx)("div",{className:"w-full h-full bg-gray-200 text-gray-500 flex items-center justify-center text-xs rounded",children:"No Image"})}),(0,t.jsxs)("div",{className:"flex flex-col justify-center text-left",children:[(0,t.jsx)("h3",{className:"font-bold mb-1 custom-text-details sm:text-base",children:(l=e.editor_name,a={i:"İ",ı:"I",ğ:"Ğ",ü:"Ü",ş:"Ş",ö:"Ö",ç:"Ç"},l.split("").map(e=>a[e]||e.toUpperCase()).join(""))}),e.title&&(0,t.jsx)("div",{className:"cursor-pointer",children:(0,t.jsx)(i,{htmlContent:e.title})})]})]},r)})})]})}])},75646,e=>{"use strict";var t=e.i(43476),r=e.i(71645),l=e.i(22016),s=e.i(217),a=e.i(17697),i=e.i(1159),n=e.i(47133),o=e.i(77949);function c({initialVideos:e,initialPagination:c,initialAuthors:d,initialPopularNews:u,initialTopNews:m}){let[x,h]=(0,r.useState)(e),[g,f]=(0,r.useState)(c.current_page),[p,b]=(0,r.useState)(c.last_page),v=async e=>{try{let t=await fetch(`${n.API_BASE_URL}/video-list?page=${e}`,{headers:{Authorization:`Bearer ${n.API_TOKEN}`,"Content-Type":"application/json"}}),r=await t.json();"success"===r.status&&(h(r.data.items||[]),f(r.data.pagination.current_page||1),b(r.data.pagination.last_page||1))}catch(e){console.error("Error fetching videos:",e)}},w=e=>{e>=1&&e<=p&&(v(e),window.scrollTo({top:0,behavior:"smooth"}))};return(0,t.jsx)("div",{className:"container mx-auto px-4 mt-45 mb-10",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8 items-stretch",children:[(0,t.jsxs)("div",{className:"lg:w-7/10 flex-1 flex flex-col gap-6",children:[(0,t.jsx)("div",{className:"border-b border-gray-300 pb-2 mb-6 flex justify-between items-center",children:(0,t.jsx)("h2",{className:"text-xl font-bold uppercase tracking-wide",children:"Videolar"})}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:x.map(e=>{let r,s,a=e.is_youtube&&(s=(r=e.url.match(/(?:v=|\/)([0-9A-Za-z_-]{11}
1)(?:\?|&|$)/))?r[1]:null)?`https://img.youtube.com/vi/${s}/hqdefault.jpg`:null,i=e.image?.path||a;return(0,t.jsxs)(l.default,{href:`/videos/${(0,o.convertTitleToSlug)(e.title)}-${e.id}`,className:"flex flex-col cursor-pointer bg-white border border-gray-200 rounded-xl shadow-sm hover:shadow-md transition-all duration-300 overflow-hidden",children:[(0,t.jsxs)("div",{className:"relative w-full aspect-video bg-gray-200",children:[i?(0,t.jsx)("img",{src:i,alt:e.title,className:"w-full h-full object-cover"}):(0,t.jsx)("div",{className:"flex justify-center items-center w-full h-full bg-gray-300 text-gray-500",children:"No Image"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-12 h-12 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})]}),(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)("h3",{className:"font-semibold text-gray-900 line-clamp-2",children:e.title})})]},e.id)})}),(0,t.jsxs)("div",{className:"flex justify-center mt-4 space-x-2 flex-wrap",children:[(0,t.jsx)("button",{onClick:()=>w(g-1),disabled:1===g,className:"px-3 py-1 border rounded hover:bg-orange-100 disabled:opacity-50",children:"Prev"}),Array.from({length:p},(e,t)=>t+1).map(e=>1===e||e===p||1>=Math.abs(e-g)?(0,t.jsx)("button",{onClick:()=>w(e),className:`px-3 py-1 border rounded ${e===g?"bg-orange-500 text-white":"hover:bg-orange-100"}`,children:e},e):2===e&&g>3?(0,t.jsx)("span",{children:"..."},"start-ellipsis"):e===p-1&&g<p-2?(0,t.jsx)("span",{children:"..."},"end-ellipsis"):null),(0,t.jsx)("button",{onClick:()=>w(g+1),disabled:g===p,className:"px-3 py-1 border rounded hover:bg-orange-100 disabled:opacity-50",children:"Next"})]})]}),(0,t.jsxs)("div",{className:"lg:w-3/10 relative space-y-6 flex flex-col",children:[(0,t.jsx)(a.default,{limit:5,initialAuthors:d}),(0,t.jsx)(s.default,{slot:"7926233203"}),(0,t.jsx)(i.default,{initialNews:u}),(0,t.jsx)(s.default,{slot:"7926233203"})]})]})})}e.s(["default",()=>c])}]);

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.