1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30042,92755,60352,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(57688),r=e.i(46932),s=e.i(88653),n=e.i(63178),l=e.i(61745),o=e.i(48148),c=e.i(93712),d=e.i(18566),h=e.i(27166),m=e.i(27821),u=e.i(13801),x=e.i(47037);let g=[{code:"english",short:"EN",name:"English",nativeName:"English"},{code:"arabic",short:"AR",name:"Ø§ÙØ¹Ø±Ø¨ÙØ©",nativeName:"Arabic"},{code:"sorani",short:"KU",name:"Ú©ÙØ±Ø¯Û",nativeName:"Kurdish"},{code:"turkish",short:"TR",name:"Türkçe",nativeName:"Turkish"},{code:"kurmanci",short:"KR",name:"Kurdî",nativeName:"Kurdish Kurmanji"}],p={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3}},f={initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.1,duration:.3}},y=({onClick:e})=>(0,t.jsx)("button",{type:"button",onClick:e,className:"w-10 h-10 lg:w-12 lg:h-12 rounded-full bg-[#fafafa] dark:bg-rudaw-charcoal border border-gray-200 dark:border-white/10 flex items-center justify-center hover:bg-gray-50 dark:hover:bg-white/5 transition-all group shadow-sm","aria-label":"Close menu",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",className:"text-rudaw-orange group-hover:rotate-90 transition-transform duration-300",children:(0,t.jsx)("path",{d:"M1 1L13 13M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),w=({isOpen:e})=>(0,t.jsx)("svg",{width:"8",height:"6",viewBox:"0 0 10 6",fill:"currentColor",className:(0,h.cn)("text-gray-900 dark:text-white transition-transform",e&&"rotate-180"),children:(0,t.jsx)("path",{d:"M0 0L5 6L10 0H0Z"})}),b=()=>(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,t.jsx)("path",{d:"M13 4L6 11L3 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),v=({isOpen:e,onToggle:a,currentLocale:i,onLanguageChange:n,showNativeName:l=!1})=>{let o=g.find(e=>e.code===i)||g[0];return(0,t.jsxs)("div",{className:"relative language-dropdown-container",children:[(0,t.jsxs)("button",{type:"button",onClick:a,className:"flex items-center gap-2.5 px-2 py-2 transition-colors text-sm font-medium text-gray-700 dark:text-white group leading-none h-12",children:[(0,t.jsx)("div",{className:"shrink-0 flex items-center justify-center",children:(0,t.jsx)(m.default,{name:"earth",size:24,className:"text-rudaw-orange"})}),(0,t.jsx)("span",{className:"inline leading-none",children:o.name}),(0,t.jsx)(w,{isOpen:e})]}),(0,t.jsx)(s.AnimatePresence,{children:e&&(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"absolute top-full mt-2 end-0 w-48 bg-[#fafafa] dark:bg-rudaw-charcoal rounded-xl shadow-lg border border-gray-100 dark:border-white/10 overflow-hidden z-50 p-1.5",children:(0,t.jsx)("div",{className:"flex flex-col gap-0.5",children:g.map(e=>{let a=i===e.code;return(0,t.jsxs)("button",{type:"button",onClick:()=>n(e.code),className:(0,h.cn)("w-full flex items-center justify-between px-3 py-2.5 rounded-lg text-sm transition-all duration-200 group",a?"bg-rudaw-orange/10 text-rudaw-orange font-medium":"text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-white/5"),children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:(0,h.cn)("text-xs font-rudaw-bold uppercase tracking-wider w-6 text-center",a?"text-rudaw-orange":"text-gray-400 dark:text-gray-500 group-hover:text-gray-600 dark:group-hover:text-gray-300"),children:e.short}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("span",{className:(0,h.cn)("leading-none",a&&"font-rudaw-bold"),children:e.name}),l&&(0,t.jsx)("span",{className:(0,h.cn)("text-[10px] leading-none",a?"text-rudaw-orange/80":"text-gray-400 dark:text-gray-500"),children:e.nativeName})]})]}),a&&(0,t.jsx)(b,{})]},e.code)})})})})]})};e.s(["CheckIcon",0,b,"ChevronIcon",0,w,"CloseButton",0,y,"FADE_IN",0,p,"LanguageDropdown",0,v,"SLIDE_UP",0,f],92755);var j=e.i(67153),k=e.i(17055);let N={sorani:"Ú¯ÛÚØ§Ù...",arabic:"Ø¬Ø§Ø±Ù Ø§ÙØ¨ØØ«...",turkish:"Aranıyor...",kurmanci:"Tê lêgerîn..."},C={sorani:"ئÛÙØ¬Ø§Ù
ÛÚ© ÙÛØ¯ÛزراÛÛÙÛ",arabic:"ÙØ§ ÙØªØ§Ø¦Ø¬",turkish:"Sonuç bulunamadı",kurmanci:"Encam nehate dîtin"},L=({theme:e,resolvedTheme:a,mounted:i})=>i?"system"===e?(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-rudaw-orange",children:[(0,t.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"2"}),(0,t.jsx)("path",{d:"M8 21h8M12 17v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}):"dark"===a?(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-rudaw-orange",children:(0,t.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,t.jsx)(m.default,{name:"sun",size:24,className:"text-rudaw-orange"}):null,S=({label:e,icon:a,isActive:i,onClick:r})=>(0,t.jsxs)("button",{onClick:r,className:(0,h.cn)("w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors",i?"bg-rudaw-orange/10 text-rudaw-orange":"text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-white/5"),children:[(0,t.jsx)("span",{className:"shrink-0",children:a}),(0,t.jsx)("span",{className:"flex-1 text-left",children:e}),i&&(0,t.jsx)(b,{})]}),M=({isOpen:e,onToggle:a,theme:i,setTheme:n,resolvedTheme:l,mounted:o,t:c})=>(0,t.jsxs)("div",{className:"relative theme-dropdown-container",children:[(0,t.jsxs)("button",{onClick:a,className:"flex items-center gap-2.5 px-2 py-2 transition-colors text-sm font-medium text-gray-700 dark:text-white group leading-none h-12",children:[(0,t.jsx)("div",{className:"shrink-0 flex items-center justify-center",children:(0,t.jsx)(L,{theme:i,resolvedTheme:l,mounted:o})}),(0,t.jsx)("span",{className:"leading-none",children:c(o?"system"===i?"
1system":"dark"===l?"darkMode":"lightMode":"theme")}),(0,t.jsx)(w,{isOpen:e})]}),(0,t.jsx)(s.AnimatePresence,{children:e&&(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"absolute top-full mt-2 start-0 sm:start-auto sm:end-0 w-44 sm:w-48 bg-[#fafafa] dark:bg-rudaw-charcoal rounded-xl shadow-lg border border-gray-100 dark:border-white/10 overflow-hidden z-50",children:(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsx)(S,{label:c("system"),icon:(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"2"}),(0,t.jsx)("path",{d:"M8 21h8M12 17v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),isActive:"system"===i,onClick:()=>n("system")},"system"),(0,t.jsx)(S,{label:c("lightMode"),icon:(0,t.jsx)(m.default,{name:"sun",size:18,className:"shrink-0"}),isActive:"light"===i,onClick:()=>n("light")},"light"),(0,t.jsx)(S,{label:c("darkMode"),icon:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:(0,t.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),isActive:"dark"===i,onClick:()=>n("dark")},"dark")]})})})]}),A=({searchQuery:e,onChangeQuery:a,onSearch:i,onKeyDown:r,placeholder:s,results:n=[],authors:l=[],loading:o=!1,locale:c,onResultClick:d})=>{let h=!!e.trim();return(0,t.jsx)("div",{className:"hidden md:flex flex-1 max-w-2xl mx-4 lg:mx-8",children:(0,t.jsxs)("form",{onSubmit:i,className:"relative w-full",children:[(0,t.jsxs)("div",{className:"relative w-full h-12 rounded-full p-[2px]",style:{background:"linear-gradient(90deg, #FE6420 0%, rgba(254, 100, 32, 0.19) 21%, rgba(254, 100, 32, 0.40) 50%, rgba(254, 100, 32, 0.20) 79%, #FE6420 100%)"},children:[(0,t.jsx)("div",{className:"absolute left-5 inset-y-0 flex items-center text-gray-400 dark:text-gray-500 pointer-events-none z-10",children:(0,t.jsx)(m.default,{name:"search_ai_icon",size:24})}),(0,t.jsx)("input",{type:"text",value:e,onChange:e=>a(e.target.value),onKeyDown:r,placeholder:s,className:"w-full h-full pl-14 pr-6 rounded-full bg-[#fafafa] dark:bg-rudaw-charcoal text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none transition-all font-medium"})]}),h&&(0,t.jsx)("div",{className:"absolute left-0 right-0 top-full mt-2 z-50 bg-[#fafafa] dark:bg-rudaw-dark border border-gray-200 dark:border-white/10 rounded-2xl shadow-2xl overflow-hidden",children:(0,t.jsxs)("div",{className:"max-h-[60vh] overflow-y-auto overscroll-contain",children:[o&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3 px-6 py-8",children:[(0,t.jsx)("div",{className:"w-5 h-5 border-2 border-gray-300 dark:border-gray-600 border-t-rudaw-orange rounded-full animate-spin"}),(0,t.jsx)("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:N[c]||"Searching..."})]}),!o&&0===n.length&&0===l.length&&(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center px-6 py-8 text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-gray-100 dark:bg-white/5 flex items-center justify-center mb-3",children:(0,t.jsx)(m.default,{name:"search_ai_icon",size:20,className:"text-gray-400 dark:text-gray-500"})}),(0,t.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:C[c]||"No results found"})]}),!o&&l.length>0&&(0,t.jsx)("div",{className:"px-4 sm:px-6 py-3 border-b border-gray-100 dark:border-white/10",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-3",children:l.map(e=>{let a=e.slug?e.slug.replace(/^\/[^/]+\/authors\//,""):encodeURIComponent(e.name.replace(/\s+/g,"_")),i=`/${c}/authors/${a}`,r=e.image?`https://images.rudaw.net${e.image.startsWith("/")?"":"/"}${e.image}`:null;return(0,t.jsxs)("a",{href:i,onClick:e=>{e.preventDefault(),d({_type:"author",href:i})},className:"flex items-center gap-2 px-3 py-2 rounded-full bg-gray-100 dark:bg-white/10 hover:bg-rudaw-orange/10 dark:hover:bg-rudaw-orange/20 transition-colors",children:[r?(0,t.jsx)("img",{src:r,alt:"",className:"w-8 h-8 rounded-full object-cover shrink-0"}):(0,t.jsx)("div",{className:"w-8 h-8 rounded-full bg-rudaw-orange/20 flex items-center justify-center shrink-0",children:(0,t.jsx)("span",{className:"text-rudaw-orange text-sm font-bold",children:e.name.charAt(0)})}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 dark:text-white whitespace-nowrap",children:e.name})]},e.id)})})}),!o&&n.length>0&&(0,t.jsx)("ul",{className:"py-2",children:n.map(e=>{let a=(0,j.buildImageUrl)(e.imgPath);return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>d(e),className:"w-full flex items-center gap-3 px-4 sm:px-6 py-3 text-start hover:bg-gray-50 dark:hover:bg-white/5 active:bg-gray-100 dark:active:bg-white/10 transition-colors",children:[a&&(0,t.jsx)("img",{loading:"lazy",decoding:"async",src:a,alt:"",className:"w-14 h-10 sm:w-16 sm:h-12 object-cover rounded-lg shrink-0"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white line-clamp-2 leading-snug",children:e.Title}),e.CategoryName&&(0,t.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:e.CategoryName})]})]})},e.ID)})})]})})]})})},z=({categories:e,onNavigate:a})=>{if(!e.length)return null;let i=Math.ceil(e.length/3),s=[e.slice(0,i),e.slice(i,2*i),e.slice(2*i)].filter(e=>e.length>0);return(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-6 lg:gap-8",children:s.map((e,i)=>(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:16}
1,animate:{opacity:1,y:0},transition:{delay:.25+.05*i,duration:.3},children:(0,t.jsx)("ul",{className:"space-y-3 sm:space-y-4",children:e.map(e=>{let i=e.Name.toLowerCase().replace(/\s+/g,"-"),r=`/categories/${i}`;return(0,t.jsx)("li",{children:(0,t.jsx)(c.Link,{href:r,onClick:e=>a(e,r),className:"text-gray-500 dark:text-gray-400 hover:text-rudaw-orange active:text-rudaw-orange transition-colors text-sm sm:text-base leading-snug",children:e.Name})},e.ID)})})},i))})})},_=({trendingNews:e,textNews:a,t:i})=>(0,t.jsx)("div",{className:"hidden sm:flex flex-col flex-1 min-w-0",children:(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.3,duration:.35},className:"flex flex-col flex-1",children:[(0,t.jsx)("h2",{className:"text-sm sm:text-base font-rudaw-bold text-gray-900 dark:text-white mb-5 uppercase tracking-wide",children:i("trending")}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:gap-5 mb-5 sm:mb-6",children:e.map((e,a)=>(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.38+.07*a,duration:.3},children:(0,t.jsx)(u.default,{data:{title:e.title,category:e.category,date:e.date,image:e.image,href:e.href,isVideo:!!e.isVideo},variant:"vertical",size:"sm",showCategory:!0,showDate:!0,aspectRatio:"video",className:"[&_img]:rounded-xl"})},e.id||`trending-${a}`))}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6",children:a.map((e,a)=>(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{delay:.48+.04*a,duration:.25},className:"py-3 border-b border-gray-100 dark:border-white/8 last:border-0",children:(0,t.jsx)(u.default,{data:{title:e.title,category:e.category,date:e.date,href:e.href},variant:"text-only",size:"sm",showCategory:!0,showDate:!0})},e.id||`text-${a}`))})]})});function $({isOpen:e,onClose:h,navCategories:u=[]}){let{theme:g,setTheme:w,resolvedTheme:b}=(0,n.useTheme)(),N=(0,l.useLocale)(),C=(0,j.useCategoryMap)(),L=(0,c.useRouter)(),S=(0,d.usePathname)(),$=(0,c.usePathname)(),T=(0,o.useTranslations)("Menu"),[P,E]=(0,a.useState)(!1),[D,I]=(0,a.useState)(!1),[W,R]=(0,a.useState)(!1),[B,U]=(0,a.useState)(""),[O,F]=(0,a.useState)([]),[K,Z]=(0,a.useState)([]),[H,V]=(0,a.useState)(!1),X=(0,a.useRef)(null),[q,Q]=(0,a.useState)([]),[J,Y]=(0,a.useState)([]),[G,ee]=(0,a.useState)([]),[et,ea]=(0,a.useState)([]),[ei,er]=(0,a.useState)([]);(0,a.useEffect)(()=>{let e=requestAnimationFrame(()=>E(!0));return()=>cancelAnimationFrame(e)},[]),(0,a.useEffect)(()=>{let e={english:3,arabic:4,sorani:1,turkish:5,kurmanci:2}[N]??3;fetch(`/api/categories?lang=${e}`).then(e=>e.json()).then(e=>{e.success&&Array.isArray(e.data)&&ee(e.data)}).catch(()=>{}),fetch(`/api/menus?type=footer&lang=${N}`).then(e=>e.json()).then(e=>{e.success&&Array.isArray(e.data)&&ea(e.data)}).catch(()=>{})},[N]),(0,a.useEffect)(()=>{if(!e)return;let t={english:3,arabic:4,sorani:1,turkish:5,kurmanci:2}[N]??3;fetch(`/api/news?lang=${t}&limit=6&images=1`).then(e=>e.json()).then(e=>{if(!e.success||!Array.isArray(e.data?.items))return;let t=e.data.items.map(e=>({id:e.ArticleId||e.ID,title:e.Title,category:e.CategoryName||"",date:e.ArticleDate||e.PublishDate||"",image:(0,j.buildImageUrl)(e.imgPath)||null,href:(0,j.buildArticleHref)(e,C),isVideo:!!(e.VideoPath&&"None"!==e.VideoPath)}));Q(t.slice(0,2)),Y(t.slice(2,6))}).catch(()=>{})},[e,N]),(0,a.useEffect)(()=>{if(!e)return;let t=window.scrollY,a=document.body,i={position:a.style.position,top:a.style.top,width:a.style.width,overflow:a.style.overflow};return a.style.position="fixed",a.style.top=`-${t}px`,a.style.width="100%",a.style.overflow="hidden",()=>{a.style.position=i.position,a.style.top=i.top,a.style.width=i.width,a.style.overflow=i.overflow,window.scrollTo(0,t)}},[e]),(0,a.useEffect)(()=>{let t=e=>{"Escape"===e.key&&h()};return e&&document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,h]),(0,a.useEffect)(()=>{let e=e=>{D&&!e.target.closest(".theme-dropdown-container")&&I(!1),W&&!e.target.closest(".language-dropdown-container")&&R(!1)};return(D||W)&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[D,W]);let es="sport"===(0,a.useMemo)(()=>{let e=S.match(/\/categories\/([^/]+)/);return e?e[1].toLowerCase():null},[S]);(0,a.useEffect)(()=>{es&&fetch(`/api/pages/sport-nav?lang=${encodeURIComponent(N)}`).then(e=>e.ok?e.json():null).then(e=>{let t=e&&Array.isArray(e.data)?e.data:null;t&&t.length&&er(t.map(e=>({id:e.slug,title:e.title||e.slug,url:e.href||`/categories/sport/${String(e.slug||"").replace(/^sport-/i,"")}`})))}).catch(()=>{})},[es,N]);let en=es&&ei.length?ei:u,el=(0,a.useCallback)(e=>{if(!e.trim()){F([]),Z([]),V(!1);return}V(!0),fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:e,locale:N,limit:8})}).then(e=>e.json()).then(e=>{F(e?.data?.items||[]),Z(e?.data?.authors||[]),V(!1)}).catch(()=>V(!1))},[N]),eo=(0,a.useCallback)(e=>{if(U(e),clearTimeout(X.current),!e.trim()){F([]),V(!1);return}
1X.current=setTimeout(()=>el(e),350)},[el]),ec=(0,a.useCallback)(e=>{e.preventDefault()},[]),ed=(0,a.useCallback)(e=>{"Enter"===e.key&&e.preventDefault()},[]),eh=(0,a.useCallback)(e=>{if("author"===e._type&&e.href){U(""),F([]),Z([]),h(),L.push(e.href);return}let t=e.categorySlug||(e.CategoryName||"news").toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")||"news";U(""),F([]),h(),L.push(`/categories/${t}/${e.ID}`)},[L,h]);(0,a.useEffect)(()=>{e||(clearTimeout(X.current),U(""),F([]),V(!1))},[e]);let em=(0,a.useCallback)(e=>{if(R(!1),"arabic"===e){window.location.href="https://www.rudawarabia.net/arabic";return}if(window.location.hostname.includes("rudawarabia")){window.location.href="https://www.rudaw.net/"+e;return}L.replace("/",{locale:e})},[L]),eu=(0,a.useCallback)(e=>{w(e),I(!1)},[w]),ex=(0,a.useCallback)((e,t)=>{t&&"#"!==t&&(e.preventDefault(),L.push(t),h())},[L,h]);return(0,t.jsx)(s.AnimatePresence,{children:e&&(0,t.jsxs)(r.motion.div,{...p,className:"fixed inset-0 z-110 bg-[#fafafa] dark:bg-rudaw-dark overflow-y-auto overflow-x-hidden overscroll-contain flex flex-col w-screen max-w-full",children:[(0,t.jsx)(r.motion.header,{...f,className:"sticky top-0 bg-[#fafafa] dark:bg-rudaw-dark z-10 border-b border-gray-100 dark:border-white/10",children:(0,t.jsx)("div",{className:"container mx-auto px-4 sm:px-8 lg:px-12 py-3 sm:py-4",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 sm:gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4 lg:gap-6",children:[(0,t.jsx)(y,{onClick:h}),(0,t.jsx)(c.Link,{href:"/",onClick:e=>{"/"===$?(e.preventDefault(),h?.(),window.location.reload()):h?.()},className:"shrink-0",children:(0,t.jsx)(i.default,{src:k.default,alt:"Rudaw Logo",width:120,height:40,className:"h-7 sm:h-8 lg:h-10 w-auto dark:brightness-0 dark:invert"})})]}),(0,t.jsx)(A,{searchQuery:B,onChangeQuery:eo,onSearch:ec,onKeyDown:ed,placeholder:T("aiSearch"),results:O,authors:K,loading:H,locale:N,onResultClick:eh}),(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3 lg:gap-4",children:[(0,t.jsx)("div",{className:"hidden lg:block",children:(0,t.jsx)(M,{isOpen:D,onToggle:()=>I(!D),theme:g,setTheme:eu,resolvedTheme:b,mounted:P,t:T})}),(0,t.jsx)(v,{isOpen:W,onToggle:()=>R(!W),currentLocale:N,onLanguageChange:em,showNativeName:!0})]})]})})}),(0,t.jsx)(r.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{delay:.12,duration:.3},className:"border-b border-gray-100 dark:border-white/10 bg-[#fafafa] dark:bg-rudaw-dark lg:hidden",children:(0,t.jsx)("div",{className:"container mx-auto px-4 sm:px-8 lg:px-12",children:(0,t.jsx)("div",{className:"flex justify-start py-1",children:(0,t.jsx)(M,{isOpen:D,onToggle:()=>I(!D),theme:g,setTheme:eu,resolvedTheme:b,mounted:P,t:T})})})}),(0,t.jsx)(r.motion.div,{initial:{y:-10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.15,duration:.3},className:"border-b border-gray-100 dark:border-white/10 bg-[#fafafa] dark:bg-rudaw-dark",children:(0,t.jsx)("div",{className:"container mx-auto px-4 sm:px-8 lg:px-12 py-3 sm:py-4",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-6 gap-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 overflow-x-auto scrollbar-none",children:[(0,t.jsxs)("span",{className:"flex flex-col text-xs leading-tight text-gray-400 dark:text-gray-500 shrink-0",children:[(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-wider",children:T("ourSocials")}),(0,t.jsx)("span",{className:"font-semibold text-gray-600 dark:text-gray-300",children:T("followUs")})]}),(0,t.jsx)(x.default,{showLabel:!1,variant:"megaMenu",mode:"links"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-2 w-full sm:w-auto sm:flex sm:items-center sm:gap-4 sm:shrink-0",children:[[{href:"/live-tv",label:T("live"),iconName:"live"},{href:"/radio",label:T("radioAudio"),iconName:"radio"},{href:"/tv-audio",label:T("tvAudio"),iconName:"tv_audio"}].map(({href:e,label:a,iconName:i})=>(0,t.jsxs)(c.Link,{href:e,onClick:h,className:"flex items-center justify-between gap-2 px-2.5 py-1.5 rounded-full bg-gray-100/70 dark:bg-white/5 sm:bg-transparent sm:dark:bg-transparent sm:px-0 sm:py-0 sm:justify-start group",children:[(0,t.jsx)("span",{className:"font-rudaw-bold text-[11px] sm:text-sm text-gray-900 dark:text-white group-hover:text-rudaw-orange transition-colors truncate sm:whitespace-nowrap",children:a}),(0,t.jsxs)("span",{className:"w-6 h-6 sm:w-9 sm:h-9 rounded-full bg-white dark:bg-white/10 sm:bg-gray-100 flex items-center justify-center shrink-0 group-hover:bg-rudaw-orange/10 transition-colors",children:[(0,t.jsx)("span",{className:"flex sm:hidden",children:(0,t.jsx)(m.default,{name:i,size:12,className:"text-rudaw-orange"})}),(0,t.jsx)("span",{className:"hidden sm:flex",children:(0,t.jsx)(m.default,{name:i,size:16,className:"text-rudaw-orange"})})]})]},e)),(0,t.jsxs)(c.Link,{href:"/ai",onClick:h,className:"flex items-center justify-between gap-2 px-2.5 py-1.5 rounded-full bg-gray-100/70 dark:bg-white/5 sm:bg-transparent sm:dark:bg-transparent sm:px-0 sm:py-0 sm:justify-start group",children:[(0,t.jsx)("span",{className:"font-rudaw-bold text-[11px] sm:text-sm text-gray-900 dark:text-white group-hover:text-rudaw-orange transition-colors truncate sm:whitespace-nowrap",children:T("aiLink")}),(0,t.jsxs)("span",{className:"w-6 h-6 sm:w-9 sm:h-9 rounded-full bg-white dark:bg-white/10 sm:bg-gray-100 flex items-center justify-center shrink-0 group-hover:bg-rudaw-orange/10 transition-colors",children:[(0,t.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 35 34",fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-rudaw-orange sm:hidden",children:(0,t.jsx)("path",{d:"M25.6905 0L27.7233 3.81168L31.535 5.84458L27.7233 7.87747L25.6905 11.6892L23.6575 7.87747L19.8459 5.84458L23.6575 3.81168L25.6905 0ZM11.8176 4.81696L15.928 12.5241L23.6352 16.6345L15.928 20.745L11.8176 28.4522L7.70712 20.745L0 16.6345L7.70712 12.5241L11.8176 4.81696ZM29.8009 23.3141L27.2319 18.4972L24.6628 23.3141L19.8459 25.8831L24.6628 28.4522L27.2319 33.2691L29.8009 28.4522L34.6178 25.8831L29.8009 23.3141Z"})}),(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 35 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-rudaw-orange hidden sm:block",children:(0,t.jsx)("path",{d:"M25.6905 0L27.7233 3.81168L31.535 5.84458L27.7233 7.87747L25.6905 11.6892L23.6575 7.87747L19.8459 5.84458L23.6575 3.81168L25.6905 0ZM11.8176 4.81696L15.928 12.5241L23.6352 16.6345L15.928 20.745L11.8176 28.4522L7.70712 20.745L0 16.6345L7.70712 12.5241L11.8176 4.81696ZM29.8009 23.3141L27.2319 18.4972L24.6628 23.3141L19.8459 25.8831L24.6628 28.4522L27.2319 33.2691L29.8009 28.4522L34.6178 25.8831L29.8009 23.3141Z"})})]})]})]})]})})}),en.length>0&&(0,t.jsx)(r.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{delay:.18,duration:.3},className:"min-[1566px]:hidden border-b border-gray-100 dark:border-white/10 bg-[#fafafa] dark:bg-rudaw-dark",children:(0,t.jsx)("div",{className:"container mx-auto px-4 sm:px-8 py-3 sm:py-4",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:en.map(e=>(0,t.jsx)(c.Link,{href:e.url||"#",onClick:t=>ex(t,e.url),className:"px-3 py-1.5 rounded-full text-sm font-semibold uppercase tracking-wide bg-gray-100 dark:bg-white/10 text-gray-700 dark:text-gray-300 hover:bg-rudaw-orange hover:text-white active:bg-rudaw-orange active:text-white transition-colors",children:e.title},e.id||e.key))})})}),(0,t.jsx)(r.motion.main,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.2,duration:.35},className:"container mx-auto px-4 sm:px-8 lg:px-12 py-6 sm:py-8 flex-1 flex min-w-0 overflow-x-hidden",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8 lg:gap-0 flex-1 min-w-0",children:[et.length>0?(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-6 lg:gap-8",children:et.map((e,a)=>(0,t.jsx)(r.motion.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.25+.06*a,duration:.3},children:(0,t.jsx)("ul",{className:"space-y-3 sm:space-y-4",children:e.children?.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(c.Link,{href:e.url||"#",onClick:t=>ex(t,e.url),className:"text-gray-700 dark:text-gray-300 hover:text-rudaw-orange active:text-rudaw-orange transition-colors text-sm sm:text-[15px] leading-snug",children:e.title})},e.id||e.key))})},e.id||a))})}):(0,t.jsx)(z,{categories:G,onNavigate:ex}),(0,t.jsx)("div",{className:"hidden lg:block w-px bg-gray-200 dark:bg-white/10 mx-8 xl:mx-12 self-stretch"}),(0,t.jsx)(_,{trendingNews:q,textNews:J,t:T})]})})]},"mega-menu")})}e.s(["default",()=>$],30042);let T={english:3,arabic:4,sorani:1,turkish:5,kurmanci:2};function P({category:e,isScrolled:i=!1,isTransparent:r=!1}){let s=(0,d.usePathname)(),n=(0,d.useParams)(),l=n?.locale||"english",[o,m]=(0,a.useState)([]);if((0,a.useEffect)(()=>{if(!e)return;let t=T[l]??3;fetch(`/api/categories?lang=${t}`).then(e=>e.json()).then(t=>{if(!t.success||!Array.isArray(t.data))return;let a=t.data.find(t=>0===t.ParentID&&t.Name&&t.Name.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")===e.toLowerCase());a&&m(t.data.filter(e=>e.ParentID===a.ID).sort((e,t)=>(e.MenuOrder||0)-(t.MenuOrder||0)).map(e=>({name:e.Name,slug:e.Name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")})))}).catch(()=>{})},[e,l]),!o.length)return null;let u=s.split("/"),x=u[u.length-1];return(0,t.jsx)("div",{className:(0,h.cn)("w-full border-b border-white/5 transition-colors duration-300",i||!r?"bg-neutral-600":"bg-transparent"),children:(0,t.jsx)("div",{className:"container mx-auto px-4 sm:px-8 lg:px-16",children:(0,t.jsx)("nav",{className:"flex items-center gap-6 lg:gap-10 h-10 lg:h-12 overflow-x-auto scrollbar-hide",role:"navigation","aria-label":"Subcategory navigation",children:o.map(a=>{let i=x===a.slug;return(0,t.jsx)(c.Link,{href:`/categories/${e.toLowerCase()}/${a.slug}`,className:(0,h.cn)("text-sm font-medium whitespace-nowrap transition-colors",i?"text-rudaw-orange":"text-white/80 hover:text-white"),"aria-current":i?"page":void 0,children:a.name},a.slug)})})})})}e.s(["default",()=>P],60352)},84931,e=>{"use strict";var t=e.i(43476),a=e.i(63178);function i({children:e,...i}){return(0,t.jsx)(a.ThemeProvider,{attribute:"class",defaultTheme:"light",enableSystem:!0,disableTransitionOnChange:!1,...i,children:e})}e.s(["ThemeProvider",()=>i])},85184,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(57688),r=e.i(27821);let s={src:e.i(89984).default,width:1508,height:133,blurWidth:0,blurHeight:0},n={src:e.i(69819).default,width:1920,height:133,blurWidth:0,blurHeight:0};var l=e.i(46932),o=e.i(88653),c=e.i(141),d=e.i(64289),h=e.i(61745),m=e.i(37727),u=e.i(55900),x=e.i(90597),g=e.i(93712),p=e.i(27166);let f={type:"spring",stiffness:300,damping:30,mass:1},y={hidden:{},visible:{transition:{staggerChildren:.08,delayChildren:.15}},exit:{transition:{staggerChildren:.04,staggerDirection:-1}}},w={hidden:{opacity:0,y:12},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:400,damping:25}},exit:{opacity:0,y:8,transition:{duration:.2}}},b={hidden:{opacity:0,scale:.7},visible:{opacity:1,scale:1,transition:{type:"spring",stiffness:500,damping:25}},exit:{opacity:0,scale:.8,transition:{duration:.2}}},v={hidden:{opacity:0,x:20},visible:{opacity:1,x:0,transition:{type:"spring",stiffness:400,damping:25}},exit:{opacity:0,x:10,transition:{duration:.15}}};function j(e){if(!e||!isFinite(e))return"0:00";let t=Math.floor(e/60),a=Math.floor(e%60);return`${t}:${a.toString().padStart(2,"0")}`}let k={english:3,arabic:4,sorani:1,turkish:5,kurmanci:2};function N(e){return e&&"string"==typeof e?e.startsWith("http")?e:e.startsWith("/images/")?"https://images.rudaw.net"+e:`https://d1vfp6pn1dc9d1.cloudfront.net/${e}`:null}function C(e){let t=e.duration>0?e.duration:e.audio_file_size>0?Math.round(e.audio_file_size/2e4):0,a=t>0?Math.floor(t/60):0,i=t>0?Math.floor(t%60):0;return{id:e.id,title:e.title||"",audioUrl:N(e.audio),image:N(e.image||e.channel_image),channelImage:N(e.channel_image||e.image),channelName:e.channel_name||"",channelSlug:e.channel_slug||e.slug||"",channelColor:e.channel_c
1olor||e.color||null,categoryColor:e.category_color||null,category:e.category_name||e.channel_name||"",duration:t>0?`${a}:${i.toString().padStart(2,"0")}`:"",durationSec:t,href:e.channel_slug?`/categories/podcast/${e.channel_slug}`:"#"}}e.s(["default",0,()=>{let e=(0,h.useLocale)(),N=["arabic","sorani"].includes(e),{currentEpisode:L,isPlaying:S,currentTime:M,duration:A,volume:z,playlist:_,togglePlay:$,seekByPercent:T,setVolume:P,skipNext:E,skipPrev:D,close:I,play:W}=(0,c.usePodcastPlayer)(),{toggleEpisode:R,isEpisodeFavorite:B}=(0,d.usePodcastFavorites)(),U=!!L&&B(L.id),[O,F]=(0,a.useState)(!1),[K,Z]=(0,a.useState)([]),[H,V]=(0,a.useState)(!1),[X,q]=(0,a.useState)(null),Q=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!O||!L?.channelSlug||X===L.channelSlug&&K.length>0)return;V(!0);let t=k[e]??3;fetch(`/api/podcasts/channels/${L.channelSlug}/episodes?lang=${t}`).then(e=>e.json()).then(e=>{e.success&&Array.isArray(e.data)&&(Z(e.data.map(C)),q(L.channelSlug))}).catch(()=>{}).finally(()=>V(!1))},[O,L?.channelSlug,e,X,K.length]),(0,a.useEffect)(()=>{L?.channelSlug!==X&&(Z([]),q(null))},[L?.channelSlug,X]),(0,a.useEffect)(()=>{if(!O)return;let e=e=>{Q.current&&!Q.current.contains(e.target)&&F(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[O]),(0,a.useEffect)(()=>{L||F(!1)},[L]);let J=K.length>0?K:_,Y=(0,a.useCallback)(e=>{let t=e.currentTarget.getBoundingClientRect();T(Math.max(0,Math.min(100,(N?t.right-e.clientX:e.clientX-t.left)/t.width*100)))},[T,N]),G=(0,a.useCallback)(e=>{let t=e.currentTarget.getBoundingClientRect();P(Math.max(0,Math.min(1,(N?t.right-e.clientX:e.clientX-t.left)/t.width)))},[P,N]),ee=A>0?M/A*100:0;return(0,t.jsx)(o.AnimatePresence,{mode:"wait",children:L&&(0,t.jsxs)(l.motion.div,{initial:{y:"100%",opacity:0}
1,animate:{y:0,opacity:1},exit:{y:"100%",opacity:0},transition:{...f,opacity:{duration:.3}},className:"fixed bottom-0 left-0 right-0 z-50 w-full text-white shadow-[0_-4px_24px_rgba(0,0,0,0.15)] h-[90px] flex items-center",style:{backgroundColor:L?.categoryColor||L?.channelColor||"#7941FD"},children:[(0,t.jsx)(l.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.8,delay:.3},className:"absolute inset-0 pointer-events-none select-none",children:(0,t.jsxs)("div",{className:"relative w-full h-full max-w-4xl mx-auto",children:[(0,t.jsx)("div",{className:"absolute inset-0 opacity-25",style:{backgroundColor:"#ffffff",WebkitMaskImage:`url(${s.src})`,maskImage:`url(${s.src})`,WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"}}),(0,t.jsx)("div",{className:"absolute inset-0 opacity-15",style:{backgroundColor:"#ffffff",WebkitMaskImage:`url(${n.src})`,maskImage:`url(${n.src})`,WebkitMaskSize:"contain",maskSize:"contain",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"}})]})}),(0,t.jsxs)(l.motion.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",className:"container mx-auto px-4 sm:px-8 lg:px-16 flex items-center gap-4 lg:gap-8 relative z-10 w-full h-full",children:[(0,t.jsxs)("div",{className:"flex items-center shrink-0 w-[140px] sm:w-[200px] lg:w-[280px] relative",ref:Q,children:[(0,t.jsxs)(g.Link,{href:L.href||(L.channelSlug?`/categories/podcast/${L.channelSlug}`:"#"),className:"flex items-center gap-4 cursor-pointer group/info flex-1 min-w-0",children:[(0,t.jsx)(l.motion.div,{variants:b,className:"w-14 h-14 rounded-lg overflow-hidden shrink-0 relative bg-neutral-800 shadow-md",children:L.image&&(0,t.jsx)(i.default,{src:L.image,alt:L.title||"",fill:!0,className:"object-cover"})}),(0,t.jsxs)(l.motion.div,{variants:v,className:"min-w-0 flex flex-col justify-center hidden sm:flex",children:[(0,t.jsx)("h4",{className:"text-white font-rudaw-bold text-sm lg:text-base leading-tight truncate mb-1 group-hover/info:underline underline-offset-2",children:L.title}),(0,t.jsx)("p",{className:"text-white/70 text-xs font-medium uppercase tracking-wide truncate",children:L.channelName||L.category||""})]})]}),L.channelSlug&&(0,t.jsx)(l.motion.button,{variants:b,onClick:()=>F(e=>!e),className:(0,p.cn)("w-7 h-7 rounded-full flex items-center justify-center shrink-0 transition-all ml-2",O?"bg-[#fafafa] text-neutral-800":"bg-white/20 text-white hover:bg-white/30"),"aria-label":"Toggle playlist",children:(0,t.jsx)(u.ChevronUp,{size:16,className:(0,p.cn)("transition-transform duration-200",O?"rotate-0":"rotate-180")})}),(0,t.jsx)(o.AnimatePresence,{children:O&&(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2},className:"absolute bottom-full mb-3 left-0 w-[320px] sm:w-[380px] max-h-[60vh] bg-neutral-900 rounded-xl shadow-2xl border border-white/10 overflow-hidden z-50",children:[(0,t.jsxs)("div",{className:"px-4 py-3 border-b border-white/10 flex items-center justify-between",children:[(0,t.jsx)("p",{className:"text-sm font-rudaw-bold text-white",children:L.channelName||L.category||"Playlist"}),(0,t.jsxs)("span",{className:"text-xs text-white/50",children:[J.length," episodes"]})]}),(0,t.jsx)("div",{className:"overflow-y-auto max-h-[calc(60vh-48px)] scrollbar-hide",children:H&&0===K.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,t.jsx)("div",{className:"w-5 h-5 border-2 border-white/20 border-t-white rounded-full animate-spin"})}):J.map(e=>{let a=L?.audioUrl===e.audioUrl,s=e.channelColor||e.categoryColor||L?.categoryColor||L?.channelColor||"#7941FD";return(0,t.jsxs)("button",{onClick:()=>{a?$():W(e,J)},className:(0,p.cn)("flex items-center gap-3 w-full px-4 py-3 text-left transition-all",a?"text-white":"text-white/70 hover:bg-white/5"),style:a?{backgroundColor:s}:void 0,children:[(0,t.jsxs)("div",{className:"w-8 h-8 rounded-lg overflow-hidden shrink-0 relative",children:[e.channelImage||e.image?(0,t.jsx)(i.default,{src:e.channelImage||e.image,alt:"",fill:!0,className:"object-cover"}):(0,t.jsx)("div",{className:"w-full h-full bg-white/10 rounded-lg"}),a&&(0,t.jsx)("div",{className:"absolute inset-0 bg-black/40 flex items-center justify-center",children:S?(0,t.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"white",children:[(0,t.jsx)("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),(0,t.jsx)("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]}
1):(0,t.jsx)(r.default,{name:"play_no_circle",size:10,className:"fill-white ml-0.5"})})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:(0,p.cn)("text-sm font-medium truncate",a?"text-white":"text-white/80"),children:e.title}),e.duration&&(0,t.jsx)("p",{className:(0,p.cn)("text-xs mt-0.5",a?"text-white/60":"text-white/40"),children:e.duration})]})]},e.id||e.audioUrl)})})]})})]}),(0,t.jsxs)(l.motion.div,{variants:w,className:"flex items-center gap-2 md:gap-3 shrink-0",children:[(0,t.jsx)("button",{onClick:E,className:"text-white/70 hover:text-white transition-colors hidden sm:block",children:(0,t.jsx)(r.default,{name:"fluent_next",size:22,className:N?"rotate-180":""})}),(0,t.jsx)(l.motion.button,{onClick:$,className:"w-10 h-10 rounded-full bg-[#fafafa] flex items-center justify-center shadow-sm mx-1",style:{color:L?.categoryColor||L?.channelColor||"#7941FD"},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{type:"spring",stiffness:500,damping:20},children:(0,t.jsx)(o.AnimatePresence,{mode:"wait",initial:!1,children:S?(0,t.jsxs)(l.motion.svg,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.5,opacity:0},transition:{duration:.15},width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,t.jsx)("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),(0,t.jsx)("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]},"pause"):(0,t.jsx)(l.motion.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.5,opacity:0},transition:{duration:.15},className:"flex items-center justify-center",children:(0,t.jsx)(r.default,{name:"play_no_circle",size:16,className:"fill-current ml-0.5"})},"play")})}),(0,t.jsx)("button",{onClick:D,className:"text-white/70 hover:text-white transition-colors hidden sm:block",children:(0,t.jsx)(r.default,{name:"fluent_next",size:22,className:N?"":"rotate-180"})})]}),(0,t.jsxs)(l.motion.div,{variants:w,className:"flex-1 flex items-center gap-2 md:gap-3 px-1 md:px-2",children:[(0,t.jsx)("span",{className:"text-white/60 text-xs font-medium tabular-nums hidden sm:block",children:j(M)}),(0,t.jsxs)("div",{className:"flex-1 h-1.5 bg-white/20 rounded-full overflow-hidden cursor-pointer relative group",onClick:Y,children:[(0,t.jsx)("div",{className:"h-full bg-[#fafafa] rounded-full transition-[width] duration-100",style:{width:`${ee}%`}}),(0,t.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-[#fafafa] rounded-full shadow-sm opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",style:{[N?"right":"left"]:`calc(${ee}% - 6px)`}})]}),(0,t.jsx)("span",{className:"text-white/60 text-xs font-medium tabular-nums hidden sm:block",children:j(A)})]}),(0,t.jsxs)(l.motion.div,{variants:v,className:"hidden lg:flex items-center gap-3 shrink-0 w-[140px]",children:[(0,t.jsx)("button",{onClick:()=>P(z>0?0:.8),className:"text-white/80 hover:text-white transition-colors",children:(0,t.jsx)(r.default,{name:"uil_volume_up",size:20})}),(0,t.jsx)("div",{className:"flex-1 h-1.5 bg-white/20 rounded-full overflow-hidden cursor-pointer",onClick:G,children:(0,t.jsx)("div",{className:"h-full bg-[#fafafa] rounded-full",style:{width:`${100*z}%`}})})]}),(0,t.jsx)("button",{onClick:()=>L&&R(L),className:(0,p.cn)("transition-colors shrink-0",U?"text-white":"text-white/60 hover:text-white"),"aria-label":U?"Remove from favorites":"Add to favorites",children:(0,t.jsx)(x.Heart,{size:20,fill:U?"currentColor":"none"})}),(0,t.jsx)("button",{onClick:I,className:"text-white/60 hover:text-white transition-colors shrink-0",children:(0,t.jsx)(m.X,{size:20})})]})]},"podcast-player")})}],85184)}]);
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.