1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3375,e=>{"use strict";var t=e.i(43476),l=e.i(77949);e.s(["default",0,({limit:e=9,initialNews:s=[],initialTimes:r={}})=>{let a=s.slice(0,e).map(e=>({...e,detailTime:r[e.id]||"--:--"}));return(0,t.jsxs)("div",{className:"border-t-0 mt-14 relative",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 -mt-9",children:(0,t.jsx)("div",{className:"news-label orange",style:{bottom:"1px"},children:"SON DAKİKA"})}),(0,t.jsx)("div",{className:"flex flex-col mt-8",children:a.map((e,s)=>{let r;return(0,t.jsxs)("a",{href:(0,l.generateFullUrl)(e.title,e.id),rel:"noopener noreferrer",className:`flex items-center hover:bg-gray-100 transition mt-2 ${s!==a.length-1?" border-gray-200":""}`,children:[(0,t.jsx)("div",{className:"w-24 h-28 flex items-center justify-center mid-icon-content",style:{width:"25%"},children:(0,t.jsx)("div",{className:"text-black font-bold text-3xl",style:{fontFamily:"Outfit, sans-serif"},children:e.detailTime})}),(0,t.jsx)("img",{src:"/Mid.png",alt:"Mid icon",className:"mid-icon mx-2",style:{width:"4.5%"}}),(0,t.jsx)("div",{className:"flex flex-col justify-center h-28 mx-2",style:{width:"70%"},children:(0,t.jsx)("h3",{className:"custom-text-title font-medium",style:{fontFamily:"Outfit, sans-serif"},children:(r=e.title,r.length>60?r.slice(0,60)+"...":r)})})]},e.id)})})]})}])},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)},l=e=>t(e).toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim(),s=e=>e&&"string"==typeof e?t(e).toLowerCase().trim().replace(/[^a-z0-9\s-]/gi,"").replace(/\s+/g,"-").replace(/-+/g,"-"):"";e.s(["convertTitleToSlug",0,l,"generateArticleUrl",0,(e,t,r,a)=>{let i=l(e),n=s(a);return`/yazar/${n}/${i}/${r}`},"generateAuthorUrl",0,(e,t)=>{let l=s(e);return`/yazarlar/${l}`},"generateFullUrl",0,(e,t)=>{let s=l(e);return`/${s}/${t}`}])},217,e=>{"use strict";var t=e.i(43476),l=e.i(71645);e.s(["default",0,({slot:e,format:s="auto",className:r=""})=>{let a=(0,l.useRef)(null),i=(0,l.useRef)(!1);return(0,l.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 l=()=>e();return t.addEventListener("load",l),()=>t.removeEventListener("load",l)}let l=0,s=setInterval(()=>{l++,(window.adsbygoogle?.push!==Array.prototype.push||l>=20)&&(e(),clearInterval(s))},500);return()=>clearInterval(s)},[]),(0,t.jsx)("ins",{ref:a,className:`adsbygoogle block ${r}`,style:{display:"block"},"data-ad-client":"ca-pub-2330338024433131","data-ad-slot":e,"data-ad-format":s,"data-full-width-responsive":"true"})}])},1159,e=>{"use strict";var t=e.i(43476),l=e.i(77949);e.s(["default",0,({limit:e=5,initialNews:s=[]})=>(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:s.slice(0,e).map(e=>{let s;return(0,t.jsxs)("a",{href:(0,l.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:(s=e.title,s.length>50?s.slice(0,50)+"...":s)})})]},e.id)})})]})])},17697,e=>{"use strict";var t=e.i(43476),l=e.i(71645),s=e.i(22016),r=e.i(77949),a=e.i(47133);let i=({htmlContent:e})=>{let[s,r]=(0,l.useState)(0),[a,i]=(0,l.useState)("");return(0,l.useEffect)(()=>{let e=()=>r(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.useEffect)(()=>
1{if("u">typeof document){let t=document.createElement("div");t.innerHTML=e||"";let l=t.textContent||t.innerText||"",r=s<640?40:s<768?60:s<1024?80:100;i(l.length>r?l.substring(0,r)+"...":l)}},[e,s]),(0,t.jsx)("div",{className:"custom-text-details text-gray-600",children:a})};e.s(["default",0,({limit:e=5,initialAuthors:n=[]})=>{let[c,o]=(0,l.useState)(n.slice(0,e));return(0,l.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=>o(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)(s.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:c.map((e,l)=>{var s;let a;return(0,t.jsxs)("div",{onClick:()=>{e.title&&e.editor_id&&e.news_id&&e.editor_name?window.open((0,r.generateArticleUrl)(e.title,e.editor_id,e.news_id,e.editor_name),"_self"):e.editor_id&&e.editor_name&&window.open((0,r.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:(s=e.editor_name,a={i:"İ",ı:"I",Ä:"Ä",ü:"Ã",Å:"Å",ö:"Ã",ç:"Ã"},s.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})})]})]},l)})})]})}])},32636,(e,t,l)=>{t.exports=function(e,t,l){var s,r,a,i,n,c,o,d,m,x=["img","br"],u=[],h=0,f="",g='([\\w|-]+\\s*(=\\s*"[^"]*")?\\s*)*',p="\\s*\\/?\\s*",b=RegExp("<\\/?\\w+\\s*"+g+"\\s*\\/\\s*>"),j=RegExp("<\\/?\\w+\\s*"+g+p+">"),v=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w\-]+@([\w][\w\-]+\.)+[a-zA-Z]{2,3})/g,w=RegExp("<img\\s*"+g+p+">"),y=RegExp("\\W+","g"),N=!0;function _(e,s){var r,a,i=t-h,n=i,c=i<l.slop,o=c?i:l.slop-1,d=c?0:i-l.slop,m=s||i+l.slop;if(!l.truncateLastWord){if(r=e.slice(d,m),s&&r.length<=s)n=r.length;else for(;null!==(a=y.exec(r));)if(a.index<o){if(n=i-(o-a.index),0===a.index&&i<=1)break}else if(a.index===o){n=i;break}else{n=i+(a.index-o);break}e.charAt(n-1).match(/\s$/)&&n--}return n}for((l=l||{}).ellipsis=void 0!==l.ellipsis?l.ellipsis:"...",l.truncateLastWord=void 0===l.truncateLastWord||l.truncateLastWord,l.slop=void 0!==l.slop?l.slop:10>t?t:10;N;){if(!(N=j.exec(e))){if(h>=t)break;if(!(N=v.exec(e))||N.index>=t){f+=e.substring(0,_(e));break}for(;N;)c=N[0],o=N.index,f+=e.substring(0,o+c.length-h),e=e.substring(o+c.length),N=v.exec(e);break}if(c=N[0],o=N.index,h+o>t){f+=e.substring(0,_(e,o));break}h+=o,f+=e.substring(0,o),"/"===c[1]?(u.pop(),m=null):(m=b.exec(c))||(d=function(e){var t=e.indexOf(" ");if(-1===t&&-1===(t=e.indexOf(">")))throw Error("HTML tag is not well-formed : "+e);return e.substring(1,t)}(c),u.push(d)),m?f+=m[0]:f+=c,e=e.substring(o+c.length)}return e.length>t-h&&l.ellipsis&&(f+=l.ellipsis),f+=(s="",u.reverse().forEach(function(e,t){-1===x.indexOf(e)&&(s+="</"+e+">")}),s),l.keepImageTag||(r=f,f=(n=w.exec(r))?(a=n.index,i=n[0].length,r.substring(0,a)+r.substring(a+i)):r),f}},97267,e=>{"use strict";var t=e.i(43476),l=e.i(18566),s=e.i(71645),r=e.i(57688),a=e.i(77949);let i=({initialHeadlines:e=[]})=>
1{let[l]=(0,s.useState)(e.slice(15,30)),[i]=(0,s.useState)(e.slice(0,10)),[n,c]=(0,s.useState)(0),[o,d]=(0,s.useState)({});(0,s.useEffect)(()=>{c(window.innerWidth);let e=()=>c(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let m=()=>n<640?80:n<768?120:n<1024?160:n<1280?250:270,x=e=>{if(!e)return"";let t=m();return e.length>t?e.slice(0,t)+"...":e},u={Spor:"bg-[#41b51e]",Ekonomi:"bg-[#c3963b]",Gündem:"bg-[#c23e4a]",Politika:"bg-[#0095DA]",Dünya:"bg-[#eb7d18]",Teknoloji:"bg-[#00a8b5]",SaÄlık:"bg-[#481380]",Medya:"bg-[#a1c45a]",Kültür:"bg-[#749eaa]",YAZARLAR:"bg-[#E12828]",Anasayfa:"bg-red-500"},h=e=>e.charAt(0).toUpperCase()+e.slice(1);return 0===l.length?null:(0,t.jsxs)("div",{className:"mt-15 relative",children:[(0,t.jsx)("div",{className:"absolute -top-8 left-0 -mt-3",children:(0,t.jsx)("div",{className:"news-label orange",children:"MANÅET"})}),(0,t.jsx)("div",{className:"flex flex-col gap-4 py-4 mt-4",children:l.map(e=>(0,t.jsx)("div",{className:"flex flex-col gap-2 pb-0.5 hover:bg-gray-100 rounded-none transition border-b border-gray-300 sm:border-none",children:(0,t.jsxs)("div",{className:"flex gap-2 sm:gap-4 items-start cursor-pointer",onClick:()=>(e=>{let t=[...l,...i].find(t=>t.id===e);if(t){let e=(0,a.generateFullUrl)(t.title,t.id);window.open(e)}})(e.id),children:[(0,t.jsxs)("div",{className:"relative w-[90px] h-[64px] sm:w-[116px] sm:h-[75px] md:w-[248px] md:h-[157px] lg:w-[280px] lg:h-[182px] xl:w-[330px] xl:h-[206px] overflow-hidden flex-shrink-0",children:[e.news_category&&(0,t.jsx)("span",{className:"mobile-font-size absolute top-2 left-2 text-white text-s px-2 py-1 mt-2 ml-2 rounded z-10 shadow-md transform hover:scale-105 transition-transform duration-200 after:content-[''] after:absolute after:top-full after:left-2 after:border-4 after:border-transparent",style:{backgroundColor:u[e.news_category]?.replace("bg-[","").replace("]","")||"#dc2626",borderTopColor:u[e.news_category]?.replace("bg-[","").replace("]","")||"#dc2626"},children:e.news_category}),e.image_url?(0,t.jsx)(r.default,{src:e.image_url,alt:e.title,width:330,height:206,className:"w-full h-full object-cover object-center",loading:"lazy"}):(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-gray-200 text-gray-600 text-sm",children:"No Image"})]}),(0,t.jsxs)("div",{className:"flex flex-col flex-grow ml-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-base sm:text-lg md:text-xl lg:text-2xl xl:text-2xl leading-tight",children:x(e.title)}),e.published_date&&(0,t.jsx)("p",{className:"text-xs sm:text-sm text-gray-500 mt-1",children:(e=>{if(!e)return"";let t=new Date(e),l=t.toLocaleDateString("tr-TR",{timeZone:"UTC",weekday:"long"}),s=t.toLocaleDateString("tr-TR",{timeZone:"UTC",month:"long"}),r=t.getUTCDate(),a=t.getUTCFullYear();return`Yayınlanma ${h(l)}, ${h(s)} ${r} ${a}`})(e.published_date)}),(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("div",{className:"custom-text-details text-sm sm:text-base",children:o[e.id]?(0,t.jsx)("p",{children:e.abstracts}):(0,t.jsx)("p",{children:x(e.abstracts||"")})}),e.abstracts&&e.abstracts.length>m()&&(0,t.jsx)("div",{className:"flex mt-2",children:(0,t.jsx)("button",{onClick:t=>{var l;t.stopPropagation(),l=e.id,d(e=>({...e,[l]:!e[l]}))},className:"text-blue-600 text-sm sm:text-base custom-text-details font-medium hover:underline",children:o[e.id]?"Show less":""})})]})]})]})},e.id))})]})};var n=e.i(217);let c=({subHeadlines:e=[]})=>{let l=(e,t)=>e.length>t?e.slice(0,t)+"...":e,s=Array.isArray(e)?e:[],r=s.slice(0,5),i=s.slice(5,10),c=e=>{let t=e?.url;return t?t.startsWith("http")||t.startsWith("/")?t:`/${t}`:e?.id?(0,a.generateFullUrl)(e.title,e.id):"#"},o=e=>!!e?.url?.startsWith("http");return(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-6",children:[(0,t.jsxs)("div",{className:"flex flex-col w-full md:w-1/2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0",children:(0,t.jsx)("div",{className:"news-label economic",children:r[0]?.category_name||"EKONOMİ"})}),(0,t.jsx)("div",{className:"mt-10 pt-4"})]}),r.map((e,s)=>(0,t.jsx)("a",{href:c(e),target:o(e)?"_blank":void 0,rel:"noopener noreferrer",className:`hover:bg-gray-100 transition duration-200 flex flex-col mb-2 ${0===s||1===s?"news_big_box":""}`,children:0===s||1===s?(0,t.jsxs)(t.Fragment,{children:[e.path_r?.trim()?(0,t.jsx)("div",{className:"relative w-full aspect-[16/9] sm:aspect-[4/3] md:aspect-[16/9] overflow-hidden rounded",children:(0,t.jsx)("img",{src:e.path_r,alt:e.title,className:"absolute inset-0 w-full h-full object-cover"})}):(0,t.jsx)("div",{className:"w-full h-[200px] bg-gray-200 text-gray-500 flex items-center justify-center text-sm",children:"No Image"}),(0,t.jsx)("h3",{className:"custom-text-title font-bold mt-2 text-left",children:l(e.title,80)}),(0,t.jsx)("p",{className:"custom-text-details text-gray-600 mt-1 text-left",children:l(e.abstract||"",100)})]}):(0,t.jsxs)("div",{className:"flex items-center gap-5 h-[100px]",children:[(0,t.jsx)("div",{className:"w-[155px] h-[100px] flex-shrink-0",children:e.path_r?.trim()?(0,t.jsx)("img",{src:e.path_r,alt:e.title,className:"w-full h-full object-cover rounded"}):(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.jsx)("div",{className:"flex flex-col justify-center h-full overflow-hidden",children:(0,t.jsx)("h3",{className:"text-base custom-text-title text-left line-clamp-3",children:l(e.title,80)})})]})},s))]}),(0,t.jsxs)("div",{className:"flex flex-col w-full md:w-1/2",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0",children:(0,t.jsx)("div",{className:"news-label politics",children:i[0]?.category_name||"POLİTİKA"})}),(0,t.jsx)("div",{className:"mt-10 pt-4"})]}),i.map((e,s)=>(0,t.jsx)("a",{href:c(e),target:o(e)?"_blank":void 0,rel:"noopener noreferrer",className:`hover:bg-gray-100 transition duration-200 flex flex-col mb-2 ${0===s||1===s?"news_big_box pb-2":""}`,children:0===s||1===s?(0,t.jsxs)(t.Fragment,{children:[e.path_r?.trim()?(0,t.jsx)("div",{className:"relative w-full aspect-[16/9] sm:aspect-[4/3] md:aspect-[16/9] overflow-hidden rounded",children:(0,t.jsx)("img",{src:e.path_r,alt:e.title,className:"absolute inset-0 w-full h-full object-cover"})}):(0,t.jsx)("div",{className:"w-full h-[200px] bg-gray-200 text-gray-500 flex items-center justify-center text-sm",children:"No Image"}),(0,t.jsx)("h3",{className:"custom-text-title font-bold mt-2 text-left",children:l(e.title,80)}),(0,t.jsx)("p",{className:"custom-text-details text-gray-600 mt-1 text-left",children:l(e.abstract||"",100)})]}):(0,t.jsxs)("div",{className:"flex items-center gap-5 h-[100px]",children:[(0,t.jsx)("div",{className:"w-[155px] h-[100px] flex-shrink-0",children:e.path_r?.trim()?(0,t.jsx)("img",{src:e.path_r,alt:e.title,className:"w-full h-full object-cover rounded"}):(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.jsx)("div",{className:"flex flex-col justify-center h-full overflow-hidden",children:(0,t.jsx)("h3",{className:"text-base custom-text-title text-left line-clamp-3",children:l(e.title,80)})})]})},s))]})]}),(0,t.jsx)(n.default,{slot:"4972766800",className:"my-2"})]})};var o=e.i(1159),d=e.i(3375),m=e.i(22016),x=e.i(30013);let u=({limit:e=10,itemsPerPage:l=1,initialVideos:r=[]}
1)=>{let[i]=(0,s.useState)(r.slice(0,e)),[n,c]=(0,x.default)({loop:!1}),o=(0,s.useRef)(null),[d,u]=(0,s.useState)(0),[h,f]=(0,s.useState)(!1),[g,p]=(0,s.useState)(!1),[b,j]=(0,s.useState)(1024);(0,s.useEffect)(()=>{let e=()=>j(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,s.useEffect)(()=>{if(!c)return;let e=()=>{u(c.selectedScrollSnap()),f(c.canScrollPrev()),p(c.canScrollNext())};return c.on("select",e),e(),()=>{c.off("select",e)}},[c]);let v=()=>{c&&(w(),o.current=setInterval(()=>{c.canScrollNext()?c.scrollNext():c.scrollTo(0)},4e3))},w=()=>{o.current&&(clearInterval(o.current),o.current=null)};(0,s.useEffect)(()=>{if(c)return v(),()=>w()},[c]);let y=Array.from({length:Math.ceil(i.length/l)},(e,t)=>i.slice(t*l,t*l+l));return(0,t.jsx)("div",{className:"relative mt-8 max-w-screen-xl mx-auto",children:(0,t.jsxs)("div",{className:"relative w-full h-full",children:[(0,t.jsx)("div",{className:"absolute -top-6 left-0 -mt-3",children:(0,t.jsx)(m.default,{href:"/video-list",children:(0,t.jsx)("div",{className:"news-label orange",children:"VIDEO"})})}),(0,t.jsxs)("div",{className:"pt-6 pb-4 h-full w-full relative",children:[(0,t.jsx)("div",{className:"overflow-hidden h-full w-full",ref:n,onMouseEnter:w,onMouseLeave:v,children:(0,t.jsx)("div",{className:"flex h-full w-full",children:y.map((e,l)=>(0,t.jsx)("div",{className:"flex-[0_0_100%] h-full w-full relative",children:e.map(e=>{let l,s,r,i=e.is_youtube&&(s=(l=e.url.match(/(?:v=|\/)([0-9A-Za-z_-]{11})(?:\?|&|$)/))?l[1]:null)?`https://img.youtube.com/vi/${s}/hqdefault.jpg`:null,n=e.image?.path||i;return(0,t.jsxs)(m.default,{href:`/videos/${(0,a.convertTitleToSlug)(e.title)}-${e.id}`,className:"block w-full relative aspect-video",children:[n?(0,t.jsx)("img",{src:n,alt:e.title,className:"w-full h-full object-cover"}):(0,t.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-gray-200 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-16 h-16 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent px-6 py-4 text-white video-title font-semibold",children:(r=e.title,r.length>100?r.slice(0,100)+"...":r)})]},e.id)})},l))})}),(0,t.jsx)("div",{className:"flex justify-between items-center w-full border-b mt-2 select-none",style:{borderColor:"#E13D26"},children:y.map((e,l)=>{let s=l+1,r=d===l;return(0,t.jsxs)("button",{onClick:()=>c?.scrollTo(l),onMouseEnter:()=>{c&&c.scrollTo(l)},className:`relative w-8 h-8 flex items-center justify-center border rounded-sm text-sm font-semibold 2 ${r?"bg-[#E13D26] text-white h-10":"bg-white text-gray-700 hover:bg-gray-100 h-10"} 3 `,"aria-current":r?"page":void 0,children:[s,r&&(0,t.jsx)("span",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2",style:{fontSize:"18px",lineHeight:"-.5"},"aria-hidden":"true",children:"â²"})]},s)})})]})]})})};var h=e.i(17697);function f({className:e=""}){return(0,t.jsx)(m.default,{href:"/category/analiz/71","aria-label":"Analiz yazıları",className:`block bg-[#d82b1d] ${e}`,children:(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{media:"(max-width: 1023px)",srcSet:"/static/analiz-banner-mobil.jpg",width:1372,height:320}),(0,t.jsx)("img",{src:"/static/analiz-banner.jpg",alt:"Analiz",width:1440,height:480,className:"block w-full h-auto lg:mx-auto lg:w-auto lg:h-[90px] lg:max-w-full lg:object-contain"})]})})}var g=e.i(32636);function p({initialHeadlines:e=[],initialTopNews:r=[],initialTopNewsTimes:m={},initialPopularNews:p=[],initialVideos:b=[],initialAuthors:j=[],initialSubHeadlines:v=[]}){let w;(0,l.useRouter)();let[y,N]=(0,s.useState)(e),[_]=(0,s.useState)(j);(0,s.useEffect)(()=>{let e=new AbortController;return async function(){try{let t=await fetch("/api/headlines?limit=30",{signal:e.signal});if(t.ok){let e=await t.json();Array.isArray(e)&&e.length>0&&N(e)}}catch(e){"AbortError"!==e.name&&console.debug("Region headlines fetch failed, using cached headlines")}}(),()=>e.abort()},[]);
3let[k,S]=(0,s.useState)(1),[E,A]=(0,s.useState)(0),[z,T]=(0,s.useState)(null),C=(0,s.useRef)(null),[R,$]=(0,x.default)({loop:!0,skipSnaps:!1,duration:20,align:"start",watchResize:!0,watchSlides:!0}),[L,I]=(0,s.useState)(0),U=(0,s.useRef)(null),W=(0,s.useCallback)(()=>{C.current&&T(Math.floor(C.current.getBoundingClientRect().width))},[]),F=()=>{$&&(M(),U.current=setInterval(()=>{$.scrollNext()},6e3))},M=()=>{U.current&&(clearInterval(U.current),U.current=null)},O=Array.from({length:Math.ceil((w=y.slice(0,15)).length/1)},(e,t)=>w.slice(+t,+t+1));(0,s.useEffect)(()=>{if($)return F(),()=>{M()}},[$]),(0,s.useEffect)(()=>{if(!$)return;let e=()=>I($.selectedScrollSnap());return $.on("select",e),e(),()=>{$.off("select",e)}},[$]);let H=(0,s.useRef)(null);(0,s.useEffect)(()=>{A(window.innerWidth),W();let e=()=>{A(window.innerWidth),W(),H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{$&&$.reInit()},50)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),H.current&&clearTimeout(H.current)}},[$,W]);let D=(0,s.useCallback)(e=>{if(!e?.url)return;let t=(0,a.generateFullUrl)(e.title,e.id);"dismanset"===e.type&&(t=e.url.startsWith("http://")||e.url.startsWith("https://")?e.url:`https://${e.url}`),window.open(t,"_blank")},[]);return(0,t.jsx)("div",{className:"container mx-auto mt-42 top_section_page",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8",children:[(0,t.jsxs)("div",{className:"lg:w-7/10",children:[(0,t.jsx)("div",{className:"relative mb-4 max-w-screen-xl mx-auto",children:(0,t.jsxs)("div",{className:"pb-4 h-full w-full relative",onMouseEnter:M,onMouseLeave:F,children:[(0,t.jsxs)("div",{className:"overflow-hidden",ref:e=>{C.current=e,"function"==typeof R&&R(e)},style:{width:z?`${z}px`:"100%"},children:[(0,t.jsx)("div",{className:"flex",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:O.map((e,l)=>(0,t.jsx)("div",{className:"embla__slide relative slider-height",style:{flex:z?"none":"0 0 100%",width:z?`${z}px`:"100%",minWidth:z?`${z}px`:0},children:e.map(e=>{let l=(e.class||"").split("_"),s=l[0]||"",r=l[1]||"";return(0,t.jsxs)("div",{className:"block relative cursor-pointer slider-height w-full h-full",onClick:()=>D(e),style:{width:"100%",height:"100%"},children:[(0,t.jsx)("img",{src:e.image_url,alt:e.title,loading:"eager",className:"absolute inset-0 w-full h-full object-cover",style:{display:"block",objectFit:"cover",imageRendering:"-webkit-optimize-contrast"},draggable:!1}),"baslikgosterme"!==e.class&&(0,t.jsx)("div",{className:`absolute z-10 font-['Roboto'] font-bold slider-title ${"sag"===s?"right-0":"left-0"}`,style:{fontFamily:"Roboto",fontStyle:"normal",fontWeight:700,lineHeight:"120%",textTransform:"uppercase",letterSpacing:"0",color:"#000",width:"altm"===s?"100%":"55%",marginLeft:"sag"===s?"255px":"0px",paddingRight:"sag"===s?"20px":void 0,padding:"sag"===s?"10px 20px":"1rem",height:"altm"===s?"auto":"100%",backgroundColor:"altm"===s?"rgba(0, 0, 0, 0.6)":"",backgroundImage:"altm"===s?"url('/static/manset-bg4.png')":"sag"===s?"url('/static/manset-bg3.png')":"url('/static/manset-bg2.png')",backgroundRepeat:"altm"===s?"no-repeat":"repeat-y",backgroundPosition:"altm"===s?"0 50px":"sag"===s?"right":"left",backgroundSize:"100% auto",fontSize:"22pt",display:"flex",justifyContent:"altm"===s?"":"center",alignItems:"center",textAlign:"altm"===s?"left":"sag"===s?"right":"left",bottom:"altm"===s?"0":void 0,position:"absolute"},children:(0,t.jsxs)("b",{className:`slider-title ${"altm"===s?"text-white":"text-black"}`,style:{width:"100%"},children:["guncellenen"===r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"krengi",style:{display:"inline-flex",alignItems:"center",gap:"5px",fontSize:"16px"},children:[(0,t.jsx)("span",{children:"Güncellenen Haber"}),(0,t.jsx)("img",{src:"/static/guncel.gif",width:"26",height:"26",alt:"Güncellenen Haber"})]}),(0,t.jsx)("br",{style:{marginBottom:"30px"}})]}),"izle"===r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:"5px",fontSize:"16px"},children:[(0,t.jsx)("span",{children:"İzle"}),(0,t.jsx)("img",{src:"/static/izle.gif",width:"26",height:"26",alt:"Videolu Haber"})]}),(0,t.jsx)("br",{style:{marginBottom:"30px"}})]}),"galeri"===r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"mav
3i",style:{display:"inline-flex",alignItems:"center",gap:"5px",fontSize:"16px"},children:[(0,t.jsx)("span",{children:"Galeri"}),(0,t.jsx)("img",{src:"/static/galeri.gif",width:"26",height:"26",alt:"Foto Galerili Haber"})]}),(0,t.jsx)("br",{style:{marginBottom:"30px"}})]}),"canli"===r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:"5px",fontSize:"16px"},children:[(0,t.jsx)("span",{children:"Canlı"}),(0,t.jsx)("img",{src:"/static/canli.gif",width:"26",height:"26",alt:"Canlı Haber İzle"})]}),(0,t.jsx)("br",{style:{marginBottom:"30px"}})]}),(0,g.default)(e.title.toLocaleUpperCase("tr-TR"),100),"altm"!==s&&(0,t.jsxs)("i",{children:[(0,t.jsx)("img",{src:"/static/manset-alt.png",alt:"alt",style:{width:"100%",height:"100%"}}),e.htitle&&(0,t.jsx)("div",{className:"absolute left-0 w-full px-4 py-2 font-['Roboto'] line-clamp-2 slider-sub-title",style:{fontSize:"15pt",textTransform:"none",color:"#E13D26",fontStyle:"normal",lineHeight:1},children:e.htitle})]})]})})]},e.id)})},l))}),(0,t.jsx)("button",{onClick:()=>$?.scrollPrev(),className:"px-3 py-1 text-gray-600 hover:text-blue-600 sm:px-4 sm:py-2 hover:bg-gray-100 rounded-full slider_prev_arrow","aria-label":"Previous Slide",children:"â®"}),(0,t.jsx)("button",{onClick:()=>$?.scrollNext(),className:"px-3 py-1 text-gray-600 hover:text-blue-600 sm:px-4 sm:py-2 hover:bg-gray-100 rounded-full slider_next_arrow","aria-label":"Next Slide",children:"â¯"})]}),(0,t.jsx)("div",{className:"flex justify-between items-center w-full border-b mt-2 select-none",style:{borderColor:"#E13D26"},children:O.map((e,l)=>{let s=l+1,r=L===l;return(0,t.jsxs)("button",{onClick:()=>$?.scrollTo(l),onMouseEnter:()=>{$&&$.scrollTo(l)},className:`relative w-8 h-8 flex items-center justify-center border rounded-sm text-sm font-semibold 4 ${r?"bg-[#E13D26] text-white h-10":"bg-white text-gray-700 hover:bg-gray-100 h-10"} 5 `,"aria-current":r?"page":void 0,children:[s,r&&(0,t.jsx)("span",{className:"absolute -bottom-2 left-1/2 transform -translate-x-1/2",style:{fontSize:"18px",lineHeight:"-.5"},"aria-hidden":"true",children:"â²"})]},s)})})]})}),(0,t.jsx)(f,{className:"lg:hidden mt-6"}),(0,t.jsx)(n.default,{slot:"7926233203",className:"my-4 mb-6"}),(0,t.jsx)(c,{subHeadlines:v}),(0,t.jsx)(i,{initialHeadlines:e})]}),(0,t.jsxs)("div",{className:"lg:w-3/10 relative",children:[(0,t.jsx)(u,{initialVideos:b}),(0,t.jsx)(f,{className:"hidden lg:block mt-6 mb-16"}),(0,t.jsx)(n.default,{slot:"7926233203",className:"my-6"}),(0,t.jsx)(h.default,{limit:5,initialAuthors:j}),(0,t.jsx)(n.default,{slot:"7926233203",className:"my-6"}),(0,t.jsx)(o.default,{initialNews:p}),(0,t.jsx)(n.default,{slot:"7926233203",className:"my-6"}),(0,t.jsx)(d.default,{initialNews:r,initialTimes:m})]})]})})}e.s(["default",()=>p],97267)}]);
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.