PageSourceSearch

https://www.africaupdates.com/_next/static/chunks/7704-b99c833c636…?dpl=dpl_3oRqAy8hxjC5pPGYfwq93NWjSLYP

js africaupdates.com collected 2026-10-02 13:12:11 UTC 34,184 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7704],{6074:function(e,t,r){r.d(t,{default:function(){return l},k:function(){return i}});var a=r(57437),s=r(2265);let n=(0,s.createContext)(null);function l(e){let{children:t,value:r}=e;return(0,a.jsx)(n.Provider,{value:r,children:t})}function i(){let e=(0,s.useContext)(n);if(!e)throw Error("useSession must be used within a SessionProvider");return e}},92302:function(e,t,r){r.d(t,{default:function(){return h}});var a=r(57437),s=r(27648),n=r(93448),l=r(99376),i=r(2265),o=r(40875),d=r(92451),c=r(10407),u=r(99795),f=r(71632),m=r(57512);function h(){let e=(0,l.usePathname)(),t=(0,l.useSearchParams)(),r=t.get("categoryId"),[h,x]=(0,i.useState)(null),[g,p]=(0,i.useState)(null),[b,y]=(0,i.useState)(null),v=(0,i.useRef)(null),j=(0,i.useRef)(null),w=(0,i.useRef)({}),{data:N}=(0,f.a)({queryKey:["corporate-media-settings"],queryFn:()=>m.Z.get("/api/admin/corporate-media-settings").json()}),{data:k}=(0,f.a)({queryKey:["mtn-partner-status"],queryFn:async()=>{try{return await m.Z.get("/api/corporate-partners/mtn/status").json()}catch(e){return{isActive:!1}}}}),C=e=>{if(j.current){let{scrollLeft:t}=j.current;j.current.scrollTo({left:"left"===e?t-250:t+250,behavior:"smooth"})}},S=(e,t)=>{v.current&&(clearTimeout(v.current),v.current=null),x(e);let r=t||w.current[e];if(r){let e=r.getBoundingClientRect();y({top:e.bottom+8,left:e.left+e.width/2})}},L=()=>{v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{x(null)},120)},{categories:z,fetchCategories:I,isLoading:A}=(0,u.v)();(0,i.useEffect)(()=>{0!==z.length||A||I()},[z.length,A,I]);let Z=[{label:"Home",href:"/"},{label:"Africa Map",href:"/africa-map"},{label:"Africa Wall",href:"/africa-wall"},{label:"Sasa",href:"/sasa"},{label:"Forum & Poll",href:"/forum"},{label:"All Posts",href:"/posts"},{label:"Safaris",href:"/safaris"},{label:"Mambo",href:"/mambo"},{label:"Hashtags",href:"/hashtags"},{label:"Chat",href:"/messages"},...(null==k?void 0:k.isActive)?[{label:"MTN Media",href:"/corporate-media/mtn"}]:[],{label:"Syndicate",href:"/syndicate"},{label:"Newsletter",href:"/newsletter"}],R=t=>"/"===t?e===t&&!r:e===t||e.startsWith(t+"/"),U=e=>r===e.toString(),q=(()=>{if(0===z.length)return z;let e=e=>{let t=e.toLowerCase();return t.includes("whats")||t.includes("what's")?"What's up":e},t=z.find(e=>{let t=e.label.toLowerCase();return t.includes("more link")||"more links"===t}),r=z.filter(e=>{let t=e.label.toLowerCase();return!t.includes("more link")&&"more links"!==t}).map(t=>({...t,label:e(t.label)}));if(t&&t.subLinks.length>0){let a=t.subLinks.map(t=>({id:t.id||Date.now()+Math.random(),label:e(t.label),subLinks:[],parentId:null,neonKey:t.label.trim().toUpperCase().replace(/[^A-Z0-9]+/g,"_")})),s=Math.max(r.findIndex(e=>{let t=e.label.toLowerCase();return t.includes("media kit")||t.includes("mediakit")}),r.findIndex(e=>{let t=e.label.toLowerCase();return t.includes("africa data")||t.includes("africadata")}));s>=0?r.splice(s+1,0,...a):r.push(...a)}return r})();return(0,a.jsx)("div",{className:"relative w-full bg-white dark:bg-gray-900",style:{zIndex:100},children:(0,a.jsx)("div",{className:"border-b border-t dark:border-gray-800",children:(0,a.jsxs)("div",{className:"mx-auto max-w-7xl px-2 sm:px-4 lg:px-6",children:[(0,a.jsx)("div",{className:"no-scrollbar flex w-full flex-nowrap justify-start overflow-x-auto py-1 sm:justify-center md:flex-wrap md:overflow-visible",children:Z.map(e=>{let r=R(e.href);if("Africa Map"===e.label){let l=z.find(e=>"africa map"===e.label.toLowerCase()),i=l&&l.subLinks&&l.subLinks.length>0;return(0,a.jsxs)("div",{className:"group relative z-[99999] flex-shrink-0",children:[(0,a.jsxs)(s.default,{href:e.href,className:(0,n.cn)("pointer-events-auto relative z-[99999] mx-1 inline-flex items-center gap-1 whitespace-nowrap rounded-md px-3 py-2 text-sm font-medium transition-all duration-200",r?"text-emerald-600 dark:text-emerald-400":"text-gray-700 hover:text-emerald-500 dark:text-gray-300 dark:hover:text-emerald-400"),children:[e.label,i&&(0,a.jsx)(o.Z,{className:(0,n.cn)("h-4 w-4 transition-transform group-hover:rotate-180")}
1)]}),i&&l&&(0,a.jsx)("div",{className:"invisible absolute left-1/2 top-full z-[9999] mt-1 w-64 -translate-x-1/2 opacity-0 transition-all duration-200 group-hover:visible group-hover:opacity-100",children:(0,a.jsxs)("div",{className:"rounded-xl border border-gray-200 bg-white p-3 shadow-2xl backdrop-blur-sm dark:border-gray-600 dark:bg-gray-800",children:[(0,a.jsx)("p",{className:"mb-2 border-b border-gray-200 px-3 pb-2 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:border-gray-700 dark:text-gray-400 sm:hidden",children:e.label}),(0,a.jsx)("div",{className:"max-h-80 overflow-y-auto",children:[...l.subLinks].sort((e,t)=>e.label.localeCompare(t.label)).map(e=>{let r=new URLSearchParams;e.id&&r.set("country",e.label);let l=t.get("country")===e.label;return(0,a.jsxs)(s.default,{href:"/?".concat(r.toString()),className:(0,n.cn)("block rounded-lg px-3 py-2.5 text-sm font-medium transition-all hover:pl-4",l?"bg-emerald-100 pl-4 font-semibold text-emerald-700 dark:bg-emerald-900/50 dark:text-emerald-300":"text-gray-700 hover:bg-emerald-50 hover:text-emerald-600 dark:text-gray-200 dark:hover:bg-emerald-950 dark:hover:text-emerald-400"),children:[l&&"→ ",e.label]},e.id||e.label)})})]})})]},e.href)}return(0,a.jsx)(s.default,{href:e.href,className:(0,n.cn)("pointer-events-auto relative z-[99999] mx-1 flex-shrink-0 whitespace-nowrap rounded-md px-3 py-2 text-sm font-medium transition-all duration-200",r?"text-emerald-600 dark:text-emerald-400":"text-gray-700 hover:text-emerald-500 dark:text-gray-300 dark:hover:text-emerald-400"),children:e.label},e.href)})}),"          ",(0,a.jsxs)("div",{className:"flex items-center w-full border-t border-gray-100 dark:border-gray-800 relative",children:[(0,a.jsx)("button",{onClick:()=>C("left"),className:"z-[1001] flex-shrink-0 flex h-10 w-10 items-center justify-center text-gray-400 hover:text-emerald-500 hover:scale-110 transition-all dark:text-gray-500","aria-label":"Scroll left",children:(0,a.jsx)(d.Z,{className:"h-6 w-6"})}),(0,a.jsx)("div",{ref:j,className:(0,n.cn)("no-scrollbar flex-1 flex gap-2 py-3 overflow-x-auto"),children:A?(0,a.jsx)("div",{className:"flex gap-2 py-2",children:[...Array(6)].map((e,t)=>(0,a.jsx)("div",{className:"h-10 w-24 flex-shrink-0 animate-pulse rounded-full bg-gray-200 dark:bg-gray-700"},t))}):q.slice().reverse().filter(e=>"africa map"!==e.label.toLowerCase()&&"safaris"!==e.label.toLowerCase()&&"newsletter"!==e.label.toLowerCase()).map(e=>{let t=U(e.id),r=h===e.id,l=g===e.id,i=e.subLinks.length>0,d=(0,n.Be)(e.label.replace(/['']/g,""));return(0,a.jsxs)("div",{className:"relative flex-shrink-0",ref:t=>{w.current[e.id]=t},onMouseEnter:t=>S(e.id,t.currentTarget),onMouseLeave:L,style:{zIndex:r||l?9999:1},children:[(0,a.jsx)(s.default,{href:"/".concat(d),onClick:()=>{x(null),p(null)},className:(0,n.cn)("pointer-events-auto relative z-[100] inline-flex items-center gap-1 rounded-full border px-4 py-2 text-sm font-semibold transition-all duration-200","bg-white/80 text-gray-700 dark:bg-gray-800/70 dark:text-gray-200",i&&"pr-10",t?"border-emerald-500 bg-emerald-50 text-emerald-700 shadow-md ring-2 ring-emerald-200 dark:border-emerald-500 dark:bg-emerald-500/20 dark:text-emerald-300 dark:ring-emerald-500/30":"border-gray-200 text-gray-700 hover:border-emerald-300 hover:bg-emerald-50/50 hover:text-emerald-600 hover:shadow-sm dark:border-gray-700 dark:text-gray-300 dark:hover:border-emerald-500/30 dark:hover:bg-emerald-500/10 dark:hover:text-emerald-300"),children:e.label}),i&&(0,a.jsx)("button",{type:"button",className:(0,n.cn)("absolute right-1 top-1 z-[101] flex h-6 w-6 items-center justify-center rounded-full text-emerald-600 transition sm:hidden",l&&"bg-emerald-50"),"aria-label":"Toggle ".concat(e.label," subcategories"),"aria-expanded":l,onClick:t=>{t.preventDefault(),p(t=>t===e.id?null:e.id)},children:(0,a.jsx)(o.Z,{className:(0,n.cn)("h-4 w-4 transition-transform",(l||r)&&"rotate-180")})}),e.subLinks.length>0&&(r||l)&&b&&(0,a.jsxs)("div",{className:(0,n.cn)("w-64 rounded-xl border border-gray-200 bg-white p-3 shadow-2xl backdrop-blur-sm dark:border-gray-600 dark:bg-gray-800",!l&&"hidden sm:block"),style:{position:"fixed",top:b.top,left
1:b.left,transform:"translateX(-50%)",zIndex:99999},onMouseEnter:()=>S(e.id),onMouseLeave:L,children:[(0,a.jsx)("p",{className:"mb-2 border-b border-gray-200 px-3 pb-2 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:border-gray-700 dark:text-gray-400 sm:hidden",children:e.label}),(0,a.jsx)("div",{className:"max-h-80 overflow-y-auto",children:e.subLinks.map(e=>{let t=(0,n.Be)(e.label.replace(/['']/g,""));return(0,a.jsx)(s.default,{href:"/".concat(t),onClick:()=>{x(null),p(null)},className:(0,n.cn)("block rounded-lg px-3 py-2.5 text-sm font-medium transition-all hover:pl-4","text-gray-700 hover:bg-emerald-50 hover:text-emerald-600 dark:text-gray-200 dark:hover:bg-emerald-950 dark:hover:text-emerald-400"),children:e.label},e.id||e.label)})})]})]},e.id)})}),(0,a.jsx)("button",{onClick:()=>C("right"),className:"z-[1001] flex-shrink-0 flex h-10 w-10 items-center justify-center text-gray-400 hover:text-emerald-500 hover:scale-110 transition-all dark:text-gray-500","aria-label":"Scroll right",children:(0,a.jsx)(c.Z,{className:"h-6 w-6"})})]})]})})})}},4260:function(e,t,r){r.d(t,{default:function(){return u}});var a=r(57437),s=r(2265),n=r(94766),l=r(12749),i=r(12381),o=r(69174),d=r(99376),c=r(27648);function u(e){let{role:t}=e,r=(0,d.useRouter)(),[u,f]=(0,s.useState)(0),[m,h]=(0,s.useState)(!1);(0,s.useEffect)(()=>{("SUB_ADMIN"===t||"ADMIN"===t)&&x()},[t]);let x=async()=>{try{h(!0);let e=await fetch("/api/publisher-request");if(e.ok){let t=(await e.json()).filter(e=>"PENDING"===e.status);f(t.length)}}catch(e){console.error("Failed to fetch pending requests:",e)}finally{h(!1)}};return"SUB_ADMIN"!==t&&"ADMIN"!==t?null:(0,a.jsxs)(l.J2,{children:[(0,a.jsx)(l.xo,{asChild:!0,children:(0,a.jsxs)(i.z,{variant:"ghost",size:"icon",className:"relative",children:[(0,a.jsx)(n.Z,{className:"h-5 w-5"}),u>0&&(0,a.jsx)(o.C,{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 p-0 text-xs text-white",children:u})]})}),(0,a.jsx)(l.yk,{className:"w-80",align:"end",children:(0,a.jsxs)("div",{className:"grid gap-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h4",{className:"font-medium leading-none",children:"Notifications"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Manage your notifications and requests"})]}),(0,a.jsxs)("div",{className:"grid gap-2",children:[u>0?(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-md bg-muted p-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Publisher Requests"}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:[u," pending request",1!==u&&"s"]})]}),(0,a.jsx)(i.z,{size:"sm",onClick:()=>r.push("/subadmins/publisher-requests"),className:"bg-green-600 hover:bg-green-700 text-white",children:"Review"})]}):(0,a.jsx)("div",{className:"rounded-md bg-muted p-3",children:(0,a.jsx)("p",{className:"text-sm text-center text-muted-foreground",children:"No new notifications"})}),(0,a.jsx)("div",{className:"flex justify-end pt-2",children:(0,a.jsx)(c.default,{href:"/subadmins/publisher-requests",className:"text-xs text-blue-600 hover:underline",children:"View all publisher requests"})})]})]})})]})}},50767:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var a=r(57437),s=r(2265),n=r(33145),l=r(27648),i=r(32489),o=r(96362),d=r(83153);let c={strip:{shell:"max-h-[68px] sm:max-h-[76px]",image:"w-[88px] sm:w-[104px]",title:"text-[11px] sm:text-xs",cta:"px-2.5 py-1 text-[10px] sm:text-[11px]",badge:"text-[9px] px-1.5 py-0.5"},compact:{shell:"max-h-[84px] sm:max-h-[92px]",image:"w-[96px] sm:w-[112px]",title:"text-xs sm:text-sm",cta:"px-3 py-1 text-[11px] sm:text-xs",badge:"text-[9px] px-1.5 py-0.5"},standard:{shell:"max-h-[96px] sm:max-h-[108px]",image:"w-[104px] sm:w-[128px]",title:"text-xs sm:text-sm",cta:"px-3 py-1.5 text-xs",badge:"text-[10px] px-2 py-0.5"}};function u(e){let{ad:t,variant:r,adIndex:s,adCount:u,onClose:f}=e,m=c[r];return(0,a.jsxs)("div",{className:"relative flex w-full items-stretch overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm transition-shadow hover:shadow-md dark:border-gray-700 dark:bg-gray-900 ".concat(m.shell),children:[(0,a.jsx)("button",{type:"button",onClick:f,className:"absolute right-1.5 top-1.5 z-20 flex h-5 w-5 items-center justify-center rounded-full bg-black/50 text-white hover:bg-black/70",title:"Close advertisement","aria-label":"Close advertisement",children:(0,a.jsx)(i.Z,{className:"h-3 w-3",strokeWidth:2.5})}),(0,a.jsxs)(l.default,{href:t.link||"#",target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,d.v)(t.id),className:"flex min-w-0 flex-1 items-stretch",children:[(0,a.jsx)("div",{className:"relative shrink-0 ".concat(m.image),children:(0,a.jsx)(n.default,{src:t.imageSrc,alt:t.alt,fill:!0,className:"object-cover",sizes:"128px",priority:!0})}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-center justify-between gap-2 px-2.5 py-2 sm:px-3",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"inline-flex rounded bg-gray-900/85 font-semibold uppercase tracking-wide text-white ".concat(m.badge),children:"Ad"}),u>1&&(0,a.jsxs)("span",{className:"text-[10px] font-medium text-gray-400",children:[s+1,"/",u]})]}),(0,a.jsx)("p",{className:"mt-1 line-clamp-2 font-semibold leading-snug text-gray-900 dark:text-gray-100 ".concat(m.title),children:t.alt})]}),(0,a.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-full bg-emerald-600 font-semibold text-white ".concat(m.cta),children:["Learn More",(0,a.jsx)(o.Z,{className:"h-3 w-3 opacity-80"})]})]})]})]})}function f(e){var t;let{position:r,rotationInterval:n=3e4,className:l="",variant:i="standard"}
1=e,[o,f]=(0,s.useState)(0),[m,h]=(0,s.useState)([]),[x,g]=(0,s.useState)(!0),[p,b]=(0,s.useState)(!0);(0,s.useEffect)(()=>{(async()=>{try{g(!0);let e=await fetch("/api/ads/active?scope=website_wide&position=".concat(r)),t=await e.json(),a=Array.isArray(t)?t.filter(e=>!!e&&"string"==typeof e.id&&"string"==typeof e.imageSrc&&e.imageSrc.length>0):[];h(a),f(0)}catch(e){console.error("Error fetching ads:",e),h([]),f(0)}finally{g(!1)}})()},[r]),(0,s.useEffect)(()=>{if(0===m.length){f(0);return}o>=m.length&&f(0)},[m,o]),(0,s.useEffect)(()=>{if(m.length<=1)return;let e=setInterval(()=>{f(e=>(e+1)%m.length)},n);return()=>clearInterval(e)},[m.length,n]);let y=null!==(t=m[o])&&void 0!==t?t:m[0];return((0,s.useEffect)(()=>{(null==y?void 0:y.id)&&(0,d.D)(y.id)},[null==y?void 0:y.id]),p)?x?(0,a.jsx)("div",{className:"relative w-full ".concat(l),children:(0,a.jsx)("div",{className:"animate-pulse rounded-lg border border-gray-200 bg-gray-100 dark:border-gray-800 dark:bg-gray-800 ".concat(c[i].shell)})}):0!==m.length&&y?(0,a.jsx)("div",{className:"relative w-full ".concat(l),children:(0,a.jsx)(u,{ad:y,variant:i,adIndex:o,adCount:m.length,onClose:()=>b(!1)})}):null:null}},48307:function(e,t,r){r.d(t,{default:function(){return i}});var a=r(57437),s=r(73247),n=r(99376),l=r(40279);function i(){let e=(0,n.useRouter)();return(0,a.jsx)("form",{onSubmit:function(t){t.preventDefault();let r=t.currentTarget.q.value.trim();r&&e.push("/search?q=".concat(encodeURIComponent(r)))},method:"GET",action:"/search",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(l.I,{name:"q",placeholder:"Search",className:"pe-10"}),(0,a.jsx)(s.Z,{className:"absolute right-3 top-1/2 size-5 -translate-y-1/2 transform text-muted-foreground"})]})})}},2967:function(e,t,r){r.d(t,{default:function(){return o}});var a=r(57437),s=r(2265),n=r(84325),l=r(93448),i=r(23447);function o(e){var t;let{avatarUrl:r,userName:o,size:d,className:c}=e,[u,f]=(0,s.useState)(!1),m=null!==(t=(0,n.H)(r))&&void 0!==t?t:null!=r?r:null,h=!(m&&(m.startsWith("http://")||m.startsWith("https://")||m.startsWith("/")||!["~/","Images/","NoImage"].some(e=>m.includes(e))))||(null==m?void 0:m.includes("NoImage"))?null:m,x=(0,i.nH)(o),g=null!=d?d:48;return((0,s.useEffect)(()=>{f(!1)},[h]),!h||u)?(0,a.jsx)("div",{className:(0,l.cn)("aspect-square h-fit flex-none rounded-full flex items-center justify-center font-bold text-white",x.color,c),style:{width:g,height:g},children:x.initials}):(0,a.jsx)("img",{src:h,alt:"User avatar",width:g,height:g,onError:()=>f(!0),className:(0,l.cn)("aspect-square h-fit flex-none rounded-full bg-secondary object-cover",c)})}},54434:function(e,t,r){r.d(t,{default:function(){return v}});var a=r(57437);r(83079);var s=(0,r(12119).$)("aac0ce74218b5d0f1f33e3bdf09ccdf81d1313e1"),n=r(6074),l=r(93448),i=r(29827),o=r(92369),d=r(88906),c=r(56439),u=r(99897),f=r(30401),m=r(85929),h=r(97226),x=r(47692),g=r(25922),p=r(27648),b=r(32060),y=r(2967);function v(e){let{className:t}=e,{user:r}=(0,n.k)(),{theme:v,setTheme:j}=(0,g.F)(),w=(0,i.NL)();return(0,a.jsxs)(b.h_,{children:[(0,a.jsx)(b.$F,{asChild:!0,children:(0,a.jsx)("button",{className:(0,l.cn)("flex-none rounded-full",t),children:(0,a.jsx)(y.default,{avatarUrl:r.avatarUrl,size:40,userName:r.displayName})})}),(0,a.jsx)(b.cq,{children:(0,a.jsxs)(b.AW,{style:{zIndex:99999},children:[(0,a.jsxs)(b.Ju,{children:["Logged in as @",r.username]}),(0,a.jsx)(b.VD,{}),(0,a.jsx)(p.default,{href:"/users/".concat(encodeURIComponent(r.username)),children:(0,a.jsxs)(b.Xi,{children:[(0,a.jsx)(o.Z,{className:"mr-2 size-4"}),"Profile"]})}),(0,a.jsx)(p.default,{href:"/settings/2fa",children:(0,a.jsxs)(b.Xi,{children:[(0,a.jsx)(d.Z,{className:"mr-2 size-4"}),"Two-Factor Authentication"]})}),(0,a.jsx)(b.VD,{}),"ADVERTISER"===r.role&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.VD,{}),(0,a.jsxs)(b.Ph,{children:[(0,a.jsxs)(b.kt,{children:[(0,a.jsx)(c.Z,{className:"mr-2 size-4"}),"Ad Module"]}),(0,a.jsx)(b.cq,{children:(0,a.jsxs)(b.TG,{children:[(0,a.jsx)(p.default,{href:"/ad-module/buy-ads/create-ad",children:(0,a.jsx)(b.Xi,{children:"Create New Ad"})}),(0,a.jsx)(p.default,{href:"/ad-module/buy-ads",children:(0,a.jsx)(b.Xi,{children:"My Ads & Campaigns"})}),(0,a.jsx)(p.default,{href:"/ad-module",children:(0,a.jsx)(b.Xi,{children:"Ad Module Home"})})]})})]})]}),"PUBLISHER"===r.role&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.VD,{}),(0,a.jsxs)(b.Ph,{children:[(0,a.jsxs)(b.kt,{children:[(0,a.jsx)(c.Z,{className:"mr-2 size-4"}),"My Ads"]}),(0,a.jsx)(b.cq,{children:(0,a.jsxs)(b.TG,{children:[(0,a.jsx)(p.default,{href:"/publisher-ads/create",children:(0,a.jsx)(b.Xi,{children:"Create New Ad"})}),(0,a.jsx)(p.default,{href:"/publisher-ads",children:(0,a.jsx)(b.Xi,{children:"My Created Ads"})})]})})]})]}),(0,a.jsxs)(b.Ph,{children:[(0,a.jsxs)(b.kt,{children:[(0,a.jsx)(u.Z,{className:"mr-2 size-4"}),"Theme"]}),(0,a.jsx)(b.cq,{children:(0,a.jsxs)(b.TG,{style:{zIndex:99999},children:[(0,a.jsxs)(b.Xi,{onClick:()=>j("system"),children:[(0,a.jsx)(u.Z,{className:"mr-2 size-4"}),"System default","system"===v&&(0,a.jsx)(f.Z,{className:"ms-2 size-4"})]}),(0,a.jsxs)(b.Xi,{onClick:()=>j("light"),children:[(0,a.jsx)(m.Z,{className:"mr-2 size-4"}),"Light","light"===v&&(0,a.jsx)(f.Z,{className:"ms-2 size-4"})]}),(0,a.jsxs)(b.Xi,{onClick:()=>j("dark"),children:[(0,a.jsx)(h.Z,{className:"mr-2 size-4"}),"Dark","dark"===v&&(0,a.jsx)(f.Z,{className:"ms-2 size-4"})]})]})})]}),(0,a.jsx)(b.VD,{}),(0,a.jsxs)(b.Xi,{onClick:()=>{w.clear(),s()},children:[(0,a.jsx)(x.Z,{className:"mr-2 size-4"}),"Logout"]})]})})]})}},99795:function(e,t,r){r.d(t,{v:function(){return a}});let a=(0,r(3011).U)((e,t)=>({categories:[],isLoading:!1,error:null,fetchCategories:async()=>{e({isLoading:!0,error:null});try{console.log("[categoryStore] Starting fetchCategories");let t=await fetch("/api/mssql/categories?parentId=0&active=true");if(console.log("[categoryStore] Parent categories response status:",t.status),!t.ok)throw Error("Failed to fetch categories");let r=await t.json();if(console.log("[categoryStore] Parent categories result:",r),r.success&&r.data){let t=new Map;
1r.data.forEach(e=>{let r="string"==typeof e.text?e.text.trim().toUpperCase().replace(/[^A-Z0-9]+/g,"_"):"";r&&(t.get(r)?"WHAT_S_UP"===r&&26===e.id&&t.set(r,e):t.set(r,e))});let a=Array.from(t.values()).filter(e=>{let t="string"==typeof e.text?e.text.trim().toUpperCase().replace(/[^A-Z0-9]+/g,"_"):"";return"FORUM_POLL"!==t&&"FORUM"!==t&&"POLL"!==t});console.log("[categoryStore] Filtered categories count:",a.length);let s=[];for(let e of a){let t="string"==typeof e.text?e.text.trim().toUpperCase().replace(/[^A-Z0-9]+/g,"_"):void 0;try{console.log("[categoryStore] Fetching subcategories for ".concat(e.text," (ID: ").concat(e.id,")"));let r=await fetch("/api/mssql/categories?parentId=".concat(e.id,"&active=true"));if(console.log("[categoryStore] Subcategories response status for ".concat(e.text," (ID: ").concat(e.id,"):"),r.status),!r.ok){let a=await r.text();console.error("[categoryStore] Failed to fetch subcategories for ".concat(e.text," (ID: ").concat(e.id,"): Status ").concat(r.status,", Response: ").concat(a)),s.push({id:e.id,label:e.text,subLinks:[],parentId:e.parentId,url:e.url,orderId:e.orderId,neonKey:t});continue}let a=await r.json();console.log("[categoryStore] Subcategories result for ".concat(e.text,":"),a);let n=a.success&&a.data?a.data.map(e=>({label:e.text,id:e.id})):[];s.push({id:e.id,label:e.text,subLinks:n,parentId:e.parentId,url:e.url,orderId:e.orderId,neonKey:t})}catch(r){console.error("[categoryStore] Error fetching subcategories for ".concat(e.text,":"),r),s.push({id:e.id,label:e.text,subLinks:[],parentId:e.parentId,url:e.url,orderId:e.orderId,neonKey:t})}}console.log("[categoryStore] Final categories with subs:",s),e({categories:s,isLoading:!1})}else throw Error("Invalid response format")}catch(t){console.error("[categoryStore] Error fetching categories:",t),e({error:t.message||"Failed to fetch categories",isLoading:!1}),e({categories:[]})}},addCategory:t=>e(e=>({categories:[...e.categories,{id:Date.now(),label:t,subLinks:[]}]})),editCategory:(t,r)=>e(e=>{let a=[...e.categories];return a[t].label=r,{categories:a}}),deleteCategory:t=>e(e=>({categories:e.categories.filter((e,r)=>r!==t)})),addSubLink:(t,r)=>e(e=>{let a=[...e.categories];return a[t].subLinks.push({label:r}),{categories:a}}),editSubLink:(t,r,a)=>e(e=>{let s=[...e.categories];return s[t].subLinks[r].label=a,{categories:s}}),deleteSubLink:(t,r)=>e(e=>{let a=[...e.categories];return a[t].subLinks=a[t].subLinks.filter((e,t)=>t!==r),{categories:a}}),setCategories:t=>e({categories:t})}))},69174:function(e,t,r){r.d(t,{C:function(){return i}});var a=r(57437);r(2265);var s=r(90535),n=r(93448);let l=(0,s.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:r,...s}=e;return(0,a.jsx)("div",{className:(0,n.cn)(l({variant:r}),t),...s})}},12381:function(e,t,r){r.d(t,{d:function(){return o},z:function(){return d}});var a=r(57437),s=r(2265),n=r(37053),l=r(90535),i=r(93448);let o=(0,l.j)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>
1{let{className:r,variant:s,size:l,asChild:d=!1,...c}=e,u=d?n.g7:"button";return(0,a.jsx)(u,{className:(0,i.cn)(o({variant:s,size:l,className:r})),ref:t,...c})});d.displayName="Button"},32060:function(e,t,r){r.d(t,{$F:function(){return u},AW:function(){return g},Ju:function(){return b},Ph:function(){return m},TG:function(){return x},VD:function(){return y},Xi:function(){return p},cq:function(){return f},h_:function(){return c},kt:function(){return h}});var a=r(57437),s=r(2265),n=r(28119),l=r(10407),i=r(30401),o=r(40519),d=r(93448);let c=n.fC,u=n.xz;n.ZA;let f=n.Uv,m=n.Tr;n.Ee;let h=s.forwardRef((e,t)=>{let{className:r,inset:s,children:i,...o}=e;return(0,a.jsxs)(n.fF,{ref:t,className:(0,d.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",s&&"pl-8",r),...o,children:[i,(0,a.jsx)(l.Z,{className:"ml-auto h-4 w-4"})]})});h.displayName=n.fF.displayName;let x=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.tu,{ref:t,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",r),...s})});x.displayName=n.tu.displayName;let g=s.forwardRef((e,t)=>{let{className:r,sideOffset:s=4,...l}=e;return(0,a.jsx)(n.Uv,{children:(0,a.jsx)(n.VY,{ref:t,sideOffset:s,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",r),...l})})});g.displayName=n.VY.displayName;let p=s.forwardRef((e,t)=>{let{className:r,inset:s,...l}=e;return(0,a.jsx)(n.ck,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s&&"pl-8",r),...l})});p.displayName=n.ck.displayName,s.forwardRef((e,t)=>{let{className:r,children:s,checked:l,...o}=e;return(0,a.jsxs)(n.oC,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:l,...o,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.wU,{children:(0,a.jsx)(i.Z,{className:"h-4 w-4"})})}),s]})}).displayName=n.oC.displayName,s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(n.Rk,{ref:t,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.wU,{children:(0,a.jsx)(o.Z,{className:"h-2 w-2 fill-current"})})}),s]})}).displayName=n.Rk.displayName;let b=s.forwardRef((e,t)=>{let{className:r,inset:s,...l}=e;return(0,a.jsx)(n.__,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",r),...l})});b.displayName=n.__.displayName;let y=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...s})});y.displayName=n.Z0.displayName},40279:function(e,t,r){r.d(t,{I:function(){return l}});var a=r(57437),s=r(2265),n=r(93448);let l=s.forwardRef((e,t)=>
1{let{className:r,type:s,...l}=e;return(0,a.jsx)("input",{type:s,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","password"===s&&"tracking-normal",r),ref:t,...l})});l.displayName="Input"},12749:function(e,t,r){r.d(t,{J2:function(){return i},xo:function(){return o},yk:function(){return d}});var a=r(57437),s=r(2265),n=r(51777),l=r(93448);let i=n.fC,o=n.xz,d=s.forwardRef((e,t)=>{let{className:r,align:s="center",sideOffset:i=4,...o}=e;return(0,a.jsx)(n.h_,{children:(0,a.jsx)(n.VY,{ref:t,align:s,sideOffset:i,className:(0,l.cn)("z-50 w-72 rounded-md border border-slate-200 bg-white p-4 text-slate-950 shadow-md 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 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",r),...o})})});d.displayName=n.VY.displayName},83153:function(e,t,r){function a(e){return!(!e||e.startsWith("default-"))&&e.length>=8}function s(e,t){let r=JSON.stringify({adId:e,event:t});if("undefined"!=typeof navigator&&navigator.sendBeacon){let e=new Blob([r],{type:"application/json"});navigator.sendBeacon("/api/ads/track",e);return}fetch("/api/ads/track",{method:"POST",headers:{"Content-Type":"application/json"},body:r,keepalive:!0}).catch(()=>{})}function n(e){a(e)&&s(e,"click")}function l(e){if(!a(e))return;let t="ad-impression:".concat(e);try{if(sessionStorage.getItem(t))return;sessionStorage.setItem(t,"1")}catch(e){}s(e,"impression")}r.d(t,{D:function(){return l},v:function(){return n}})},23447:function(e,t,r){r.d(t,{nH:function(){return a}});function a(e){return{initials:function(e){if(!e)return"?";let t=e.trim();return 0===t.length?"?":t.length>5?t.substring(0,2).toUpperCase():t.charAt(0).toUpperCase()}(e),color:function(e){if(!e)return"bg-gray-400";let t=e.trim().toLowerCase();if(0===t.length)return"bg-gray-400";let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r&=r;let a=["bg-red-500","bg-orange-500","bg-yellow-500","bg-green-500","bg-blue-500","bg-indigo-500","bg-purple-500","bg-pink-500","bg-cyan-500","bg-teal-500"],s=Math.abs(r)%a.length;return a[s]}(e)}}},57512:function(e,t,r){let a=r(11399).ZP.create({timeout:3e4,retry:{limit:1,methods:["get","post","put","patch","delete"],statusCodes:[408,429,500,502,503,504]},parseJson:e=>JSON.parse(e,(e,t)=>"string"==typeof t&&e.endsWith("At")&&/^\d{4}-\d{2}-\d{2}T/.test(t)?new Date(t):t)});t.Z=a},84325:function(e,t,r){r.d(t,{H:function(){return a}});function a(e){if(!e)return null;let t=e.trim();if(!t)return null;if(t.startsWith("/api/media")||t.startsWith("/api/image-proxy"))return t;t.startsWith("http://96.31.37.42")?t=t.replace("http://96.31.37.42",""):t.startsWith("http://www.africaupdates.com")?t=t.replace("http://www.africaupdates.com",""):t.startsWith("http://africaupdates.com")&&(t=t.replace("http://africaupdates.com","")),t.startsWith("~/")&&(t=t.replace(/^~\//,"/"));try{let e=new URL(t);if(e.pathname.toLowerCase(),"96.31.37.42"===e.hostname||e.hostname.includes("africaupdates.com")||e.hostname.includes("localhost")){if((t=e.pathname+e.search).startsWith("/api/media")||t.startsWith("/api/image-proxy"))return t}else{if(t.startsWith("https://"))return t;if(t.length>1500)return console.warn("[toProxiedLegacyMediaUrl] URL too long (".concat(t.length," chars), returning as-is:"),t.substring(0,100)),t;return"/api/image-proxy?url=".concat(encodeURIComponent(t))}}catch(e){}t.startsWith("/")||t.startsWith("http")||(t="/"+t);let r=t.toLowerCase();return["/images/","/videos/","/afrovideos/","/uploads/","/content/","/africau1_max/"].some(e=>r.startsWith(e))?"/api/media".concat(t):t.startsWith("/")?t:e}},93448:function(e,t,r){r.d(t,{Be:function(){return d},UE:function(){return o},cn:function(){return n},uf:function(){return l},up:function(){return i}});var a=r(61994),s=r(53335);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.m6)((0,a.W)(t))}function l(e){return Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(e)}function i(e){return null==e||""===e?"":e instanceof Date?e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):String(e)}function o(e){if(!e)return"";let t="undefined"!=typeof document?document.createElement("textarea"):null,r=e;return t?(t.innerHTML=e,r=t.value):r=e.replace(/&quot;/g,'"').replace(/&#34;/g,'"').replace(/&apos;/g,"'").replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&nbsp;/g," ").replace(/&rsquo;/g,"'").replace(/&lsquo;/g,"'").replace(/&rdquo;/g,'"').replace(/&ldquo;/g,'"').replace(/&mdash;/g,"—").replace(/&ndash;/g,"–").replace(/&hellip;/g,"...").replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/&([a-z]+);/gi," "),r.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()}function d(e){return e?e.toLowerCase().replace(/[_\s]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/^-+|-+$/g,"").replace(/-+/g,"-"):""}}}]);

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.