PageSourceSearch

https://www.trt1.com.tr/_next/static/chunks/424.a3a6d994f42ca60f.js

js trt1.com.tr collected 2026-10-02 07:03:02 UTC 5,019 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[424],{50424:function(e,t,l){l.r(t),l.d(t,{default:function(){return d}});var n=l(74817),r=l(30080),i=l.n(r),a=l(95548),s=l(83201),u=l(71248);let o=()=>{let e=(0,s.usePathname)(),t=(0,s.useSearchParams)(),{basePath:l,currentTabPath:n,segments:r,segmentsWithoutPagination:i,currentLevel:a}=(0,u.useMemo)(()=>{if(!e||"/"===e)return{basePath:"/",currentTabPath:null,segments:[],segmentsWithoutPagination:[],currentLevel:0};let t=e.split("/").filter(Boolean),l=isNaN(+t[t.length-1])?[...t]:[...t.slice(0,-1)];if(0===t.length)return{basePath:"/",currentTabPath:null,segments:[],segmentsWithoutPagination:[],currentLevel:0};if(1===t.length)return{basePath:e,currentTabPath:null,segments:t,segmentsWithoutPagination:t,currentLevel:1};let n=t[t.length-1];return{basePath:"/"+(isNaN(+t[t.length-1])?[...t]:t.slice(0,-1)).join("/"),currentTabPath:n,segments:t,segmentsWithoutPagination:l,currentLevel:t.length}},[e]),o=e=>{if(!Array.isArray(e)||0===e.length)return e;let t=[],l=null;for(let n of e)n!==l&&(t.push(n),l=n);return t},h=e=>{if(!t||0===t.size)return e;let l=e.split("?")[0],n=t.toString();return n?"".concat(l,"?").concat(n):l},c=function(e){var l;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return"/";let a=e,s=new URLSearchParams;if((null==r?void 0:null===(l=r.primaryParams)||void 0===l?void 0:l.length)>0){let l=e.split("/").filter(Boolean),n=l[l.length-1];if(n&&!isNaN(n)&&!isNaN(parseFloat(n))){let e=l.slice(0,-1);a=e.length>0?"/"+e.join("/"):"/"}r.primaryParams.forEach(e=>{t.has(e)&&!i&&s.set(e,t.get(e))})}else i||(s=new URLSearchParams(t.toString()));Object.entries(n).forEach(e=>{let[t,l]=e;null!=l&&""!==l?s.set(t,l):s.delete(t)});let u=s.toString(),o=decodeURIComponent(u);return u?"".concat(a,"?").concat(o):a},d=(t,l)=>{let n;if(t&&null!==t&&""!==t&&"null"!==t){let u=t.startsWith("/")?t.substring(1):t,h=u.split("/").filter(Boolean);if(h.length>1){if(h.length===(null==i?void 0:i.length)&&h[0]===i[0])n="/"+u;else{var a,s;let e=[null==i?void 0:null===(s=i.slice(0,Math.max(0,l-1)))||void 0===s?void 0:null===(a=s.filter(e=>e&&e.length))||void 0===a?void 0:a.join("/"),h[h.length-1]].filter(Boolean).join("/");n="/".concat(e)}}else if((r[l-1]||null)===u)n=e;else{let e=r.slice(0,l-1);e.push(u),n="/"+o(e).join("/")}}else{let e=r.slice(0,l-1);n=e.length>0?"/"+e.join("/"):"/"}return h(n)},v=(e,t)=>{if(!e||null===e)return!1;let l=e.startsWith("/")?e.substring(1):e,n=l.split("/").filter(Boolean),r=(null==i?void 0:i[t-1])||null;return n.length>1?r===n[n.length-1]:r===l};return{buildTabPathForLastLevel:e=>{var t,n,r;let i,{tabPath:a="",pageOptions:s={}}=e,u=null==s?void 0:null===(t=s.tab)||void 0===t?void 0:t.urlChangeLevel,o=null==s?void 0:null===(n=s.tab)||void 0===n?void 0:n.defaultTabLevel,h=(null==s?void 0:null===(r=s.tab)||void 0===r?void 0:r.singleQueryChoice)||!1,d={primaryParams:null==s?void 0:s.primaryParams},v=a.includes("="),f=l.startsWith("/")?l.substring(1):l,g=f.split("/").filter(Boolean);if(a&&null!==a&&""!==a&&"null"!==a&&"/"!==a?i=u&&u>0&&!v?u===g.length?[...g.slice(0,u-1),a].join("/"):[...g,a].join("/"):f:o&&(i=g.slice(0,o).join("/")),v){let e={};return new URLSearchParams(a).forEach((t,l)=>{e[l]=t}),"/".concat(c(i,e,d,h))}return"/".concat(i)},isTabActiveForLastLevel:r=>{var a,s,u;let{tabPath:o="",pageOptions:h={}}=r,c=null==h?void 0:null===(a=h.tab)||void 0===a?void 0:a.defaultTabLevel,d=(null==h?void 0:null===(s=h.tab)||void 0===s?void 0:s.defaultButtonUsesOnlyQuery)||!1,v=null==h?void 0:null===(u=h.tab)||void 0===u?void 0:u.urlChangeLevel;if(!o)return!1;let f=!1,g=o.includes("="),p=(l.startsWith("/")?l.substring(1):l).split("/").filter(Boolean),b=(e.startsWith("/")?e.substring(1):e).split("/").filter(Boolean),m=isNaN(b[b.length-1])?[...b].join("/"):[...b.slice(0,-1)].join("/"),P=p[p.length-1],L=c?[...p.slice(0,c)].join("/"):p[0];if("/"===o){if(d){if(m===L&&0===t.size)return!0}else if(m===L)return!0;return!1}if(g){let[e,l]=o.split("=");l===t.get(e)&&(f=!0)}else v&&v>0?i[v-1]===o&&(f=!0):n===o?f=!0:P===o&&(f=!0);return f},buildTabPathForLevel:d,isTabActiveForLevel:v,processArrayData:(e,t)=>Array.isArray(e)?e.map(e=>{let l=e.path||e.slug||e.url||"";return{...e,href:d(l,t),isActive:v(l,t),shouldRender:!0}}):(console.warn("processArrayData: data must be an array"),[]),segments:r,currentLevel:a,basePath:l,currentPath:e,currentTabPath:n,buildUrlWithQuery:c,preserveCurrentQuery:h}};var h=l(900);function c(e){let{data:t=[]}=e,{processArrayData:l}=o(),r=l(t,3);if(!(null==t?void 0:t.length))return(0,n.jsx)(h.default,{variant:"text",height:"50px"});let i=r.findIndex(e=>
1e.active||e.isActive);return(0,n.jsx)(a.default,{inset:!0,preset:"menuList",pagination:!1,card:"MenuListItem",data:r,scrollIndex:i,carouselTheme:"transparent"})}c.displayName="CarouselMenuListRow",c.propTypes={data:i().array,selectedSlideIndex:i().number};var d=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.