PageSourceSearch

https://theherald.co.za/_next/static/chunks/7432-f8f1fcb1071bf029.js

js theherald.co.za collected 2026-10-02 08:34:21 UTC 14,292 bytes, 8 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7432],{18028:e=>{e.exports={"loading-spinner":"spinner_loading-spinner__rXwIS",page:"spinner_page__hC4NR","page-wave":"spinner_page-wave__41Sfc"}},18868:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});var s=r(95155),a=r(18028),i=r.n(a);let n=()=>(0,s.jsxs)("svg",{"aria-label":"Loading...",className:`loading-spinner ${i()["loading-spinner"]}`,fill:"currentColor",focusable:"false",height:38,role:"img",viewBox:"0 0 38 38",width:38,children:[(0,s.jsx)("g",{className:i().page,children:(0,s.jsx)("path",{d:"M5 9h7v22H5z M7 13v2h3v-2z M7 18v1h3v-1z M7 22v1h3v-1z",fillRule:"evenodd"})}),(0,s.jsx)("g",{className:i().page,children:(0,s.jsx)("path",{d:"M15.5 5h7v26h-7z M17.5 9v3h3V9z M17.5 15v1h3v-1z M17.5 19v1h3v-1z M17.5 23v1h3v-1z",fillRule:"evenodd"})}),(0,s.jsx)("g",{className:i().page,children:(0,s.jsx)("path",{d:"M26 9h7v22h-7z M28 13v2h3v-2z M28 18v1h3v-1z M28 22v1h3v-1z",fillRule:"evenodd"})})]})},21705:(e,t,r)=>{"use strict";r.d(t,{i:()=>p,N:()=>g});var s=r(95155),a=r(12115),i=r(58217),n=r(87358);let o=(e,t)=>{let r=Number.parseInt(e??"",10);return Number.isSafeInteger(r)&&r>0?r:t};o(n.env.NEWSTEAM_ARCHIVE_INDEX_THRESHOLD,5),o(n.env.NEWSTEAM_MEANINGFUL_PROFILE_TEXT_LENGTH,80);let l=e=>{if(!e)return;let t=e.trim().replaceAll("_","-").toLowerCase();return t.length>0?t:void 0},u=e=>e.toLowerCase().trim().replaceAll(/\s+/gu,"-").replaceAll(/[^\w-]+/gu,"").replaceAll(/--+/gu,"-").replace(/^-+/u,"").replace(/-+$/u,""),c=new Set(["in-article","list-ad"]),d=(0,a.createContext)({enabled:!1,networkCode:"",path:"",resolvePosition:e=>e.pos,targeting:{}}),p=e=>{let t,r=(0,i.Z)(),{adUnitPath:n,advertisingEligible:o,children:p,entity:g,pagePath:
1h,targetingContext:v,type:m}=e,f=r.gamNetworkCode,b=`${m}:${f??""}:${n??h??""}:${g?.id??""}`,_=(0,a.useMemo)(()=>({key:b,positionCounts:new Map,slotPositions:new Map}),[b]),w=(0,a.useCallback)(e=>{let{numberPos:t,pos:r,slotId:s}=e;if(!r)return;if(!(t??c.has(r)))return r;let a=`${r}:${s}`,i=_.slotPositions.get(a);if(i)return i;let n=(_.positionCounts.get(r)??0)+1,o=`${r}-${n}`;return _.positionCounts.set(r,n),_.slotPositions.set(a,o),o},[_]),y=(t={entityDisabled:g?.disableAdvertising,networkCode:f,routeEligible:o,siteDisabled:r.disableAdvertising},!!(t.networkCode?.trim()&&t.routeEligible&&!t.siteDisabled&&!t.entityDisabled)),N=(0,a.useMemo)(()=>{if(!y||!f)return{enabled:!1,networkCode:"",path:"",resolvePosition:w,targeting:{}};let e=(e=>{let{networkCode:t,path:r,site:s,type:a}=e,i=s.adUnitName?s.adUnitName.toLowerCase().replaceAll(/\s+/gu,""):void 0,n=i?[t,i]:[t];switch(a){case"article":case"page":if(r&&"/"!==r){let e=r;if("article"===a){let t=r.replace(/\/$/u,""),s=t.lastIndexOf("/");e=t.slice(0,s+1)}let t=e.replaceAll(/^\/|\/$/gu,"");t&&n.push(...t.split("/"))}else n.push("home");break;case"other":n.push("other")}return`/${n.join("/")}`})({networkCode:f,path:n??h,site:r,type:m});return{enabled:!0,networkCode:f,path:e,resolvePosition:w,targeting:(e=>{let{context:t,entity:r}=e,s={};t?.scope&&(s.scope=t.scope);let a=l(t?.contentLanguage);a&&(s.contentLanguage=a);let i=l(r?.metadata?.locale);i&&(s.contentLanguage=i);let n=(e=>{let{publishedAt:t,updatePublishedAt:r}=e,s=(e=>{if(!("number"!=typeof e||Number.isNaN(e))&&!(e<=0))return e<1e12?1e3*e:e})(r??t);if(!s)return;let a=Date.now()-s;return a<0?"future":a<864e5?"0_1d":a<2592e5?"1_3d":a<6048e5?"3_7d":a<2592e6?"7_30d":a<7776e6?"30_90d":"90d_plus"})({publishedAt:r?.publishedAt,updatePublishedAt:r?.updatePublishedAt});n&&(s.contentRecency=n);let o=(e=>{if(!e)return;let t=[],r=e.counts;return(r?.video??0)>0&&t.push("video"),(r?.audio??0)>0&&t.push("audio"),((r?.image??0)>0||(r?.infographic??0)>0)&&t.push("image"),((r?.words??0)>0||0===t.length)&&t.push("text"),t})(r);if(o&&o.length>0&&(s.contentFormat=o),r&&("canonicalUrl"in r||"readDuration"in r)){s.id=r.id,s.keywords=r.metadata?r.metadata.keywords.map(e=>u(e)):[],s.tags=r.tags,s.mentions=r.mentions.map(e=>u(e)).filter(Boolean),s.groups=r.groups,s.hasVideo=(r.counts?.video??0)>0?"yes":"no",s.sponsored=r.isSponsored?"yes":"no",s.sensitive=r.isSensitive?"yes":"no",s.breaking=r.isBreaking?"yes":"no",s.nsfw=r.isNsfw?"yes":"no",s.creators=r.creators.map(e=>
1e.slug).filter(Boolean),s.sponsors=r.sponsors.map(e=>e.slug);let e=(e=>{if(!e)return;let t=e.trim().toUpperCase();return t.length>0?t:void 0})(r.location?.data?.countryCode);e&&(s.contentCountry=e);let t=(e=>{if(!("number"!=typeof e||Number.isNaN(e))&&!(e<=0))return e<=180?"quick":e<=420?"short":e<=900?"medium":e<=1800?"long":"deep"})(r.readDuration);t&&(s.readBand=t)}if(t?.creator){t.creator.slug&&(s.creators=[t.creator.slug]);let e=t.creator.tags.map(e=>u(e)).filter(Boolean);e.length>0&&(s.tags=e)}if(t?.sponsor){t.sponsor.slug&&(s.sponsors=[t.sponsor.slug]);let e=t.sponsor.tags.map(e=>u(e)).filter(Boolean);e.length>0&&(s.tags=e)}if(t?.search){let{search:e}=t;e.query&&(s.searchQuery=u(e.query));let r=(e.tags??[]).map(e=>u(e)).filter(Boolean);r.length>0&&(s.tags=r);let a=e.countries??[];a.length>0&&(s.searchCountries=a);let i=e.cities??[];i.length>0&&(s.searchCities=i),void 0!==e.hasVideo&&(s.searchHasVideo=e.hasVideo?"yes":"no")}let c=(t?.tags??[]).map(e=>u(e)).filter(Boolean);c.length>0&&(s.tags=c);let d=(t?.mentions??[]).map(e=>u(e)).filter(Boolean);return d.length>0&&(s.mentions=d),s})({context:{contentLanguage:r.metadata?.locale,...v,scope:v?.scope??m},entity:g})}},[n,o,y,f,g,h,w,r,v,m]);return(0,s.jsxs)(d.Provider,{value:N,children:[N.enabled?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("link",{href:"https://securepubads.g.doubleclick.net",rel:"preconnect"}),(0,s.jsx)("link",{href:"https://securepubads.g.doubleclick.net",rel:"dns-prefetch"})]}):void 0,p]})},g=()=>(0,a.useContext)(d)},23942:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});var s=r(12115);let a="google-publisher-tag",i=(e=!0)=>{let[t,r]=(0,s.useState)();return(0,s.useEffect)(()=>{if(!e)return void r(void 0);let t=(globalThis.window.googletag||Reflect.set(globalThis.window,"googletag",{cmd:[]}),globalThis.window.googletag);(()=>{if(document.querySelector(`#${a}`))return;let e=document.createElement("script");e.async=!0,e.id=a,e.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",document.head.append(e)})(),r(t)},[e]),t}},41631:e=>{e.exports={progress:"navigation-progress_progress__Wyk4i",bar:"navigation-progress_bar__hpaRX","progress-slide":"navigation-progress_progress-slide__vD6dM"}},49463:(e,t,r)=>{"use strict";r.r(t),r.d(t,{InternalLink:()=>h});var s=r(95155),a=r(98500),i=r.n(a),n=r(73321),o=r(12115),l=r(84349);let u=String,c=/^[a-z][\d+.a-z-]*:/iu,d=e=>{let t=e.trim();return!t.startsWith("//")&&!c.test(t)},p=e=>{if("string"==typeof e)return e;let t=e.pathname??"",r=e.query?(()=>{let t=new URLSearchParams;for(let[r,s]of Object.entries(e.query))void 0===s||(Array.isArray(s)?s.forEach(e=>{t.append(r,u(e))}):null!==s&&t.set(r,u(s)));let r=t.toString();return r?`?${r}`:""})():"",s=e.hash?`#${e.hash}`:"";return`${t}${r}${s}`},g=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e,h=o.forwardRef((e,t)=>{let{href:r,navigationMode:a="auto",onNavigate:u,prefetch:c,...h}=e,v=(0,n.usePathname)(),{start:m}=(0,l.n)(),f=void 0===globalThis.location?"":globalThis.location.search.replace(/^\?/u,""),b=`${g(v)}${f?`?${f}`:""}`,_=p(r).trim(),w=o.useCallback(e=>{let t={prevented:!1};u?.({preventDefault:()=>{t.prevented=!0,e.preventDefault()}}),!t.prevented&&((e,t)=>{let r=p(t).trim();if(r.startsWith("#")||!d(r))return!1;try{let t=new URL(r,globalThis.location.href);return`${g(t.pathname)}${t.search}`!==e}catch{return!1}})(b,r)&&m()},[b,r,u,m]);return!d(_)||"client"!==a&&(_.startsWith("#")||"document"===a||"auto"===a)?(0,s.jsx)("a",{...(e=>{let{as:t,legacyBehavior:r,locale:s,passHref:a,replace:i,scroll:n,shallow:o,transitionTypes:l,...u}=e;return u})(h),href:_,ref:t}):(0,s.jsx)(i(),{...h,href:r,onNavigate:w,prefetch:c??!1,ref:t})});h.displayName="InternalLink"},52740:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Image:()=>u});var s=r(95155),a=r(29722),i=r(12115),n=r(84761),o=r(57320),l=r.n(o);let u=e=>{let{altText:t,aspectRatio:r=e.image?.cuts[0]?`${e.image.cuts[0].width/e.image.cuts[0].height}`:void 0,borderRadius:o,caption:u,children:c,className:d,credit:p,fetchPriority:g,focalX:h,focalY:v,height:m,image:f,imgClassName:b,inlineBlock:_,loading:w="lazy",loadingBackground:y,maxHeight:N,maxWidth:$,minHeight:k,minWidth:x,onClick:C,placeholder:j="blur",sizes:E="auto",style:S,title:P,width:R}=e,L="none"!==j,[T,M]=(0,i.useState)(!1),[z,A]=(0,i.useState)(!1),q=(0,i.useRef)(null),D=f?.cuts.map(e=>`${e.path} ${e.width}w`).join(","),I=h??f?.focalX,W=v??f?.focalY,B=T||!L;(0,i.useEffect)(()=>{let e=q.current;if(M(!L),A(!1),!e||!D)return;let t=()=>{M(!0),A(!1)},r=()=>{A(!0),M(!1)};
1return e.complete?void(e.naturalWidth>0?t():r()):(e.addEventListener("load",t),e.addEventListener("error",r),()=>{e.removeEventListener("load",t),e.removeEventListener("error",r)})},[D,L]);let O=(0,i.useCallback)(()=>{M(!0),A(!1)},[]),U=(0,i.useCallback)(()=>{A(!0),M(!1)},[]),H=(0,i.useCallback)(()=>{C?.()},[C]),V=y||(0,n.e)(f);return(0,s.jsxs)("div",{className:(0,a.$)(l().image,d,z||!D?l().failed:void 0,B?l().loaded:void 0),onClick:H,style:{borderRadius:o,display:_?"inline-block":void 0,height:m,maxHeight:N,maxWidth:$,minHeight:k,minWidth:x??R,width:R,...S},children:[L?(0,s.jsx)("div",{className:l().blur,style:{background:V,borderRadius:o}}):void 0,(0,s.jsx)("img",{alt:t??f?.caption??"",className:(0,a.$)(B?l().loaded:void 0,b),fetchPriority:g,height:m,loading:w,onError:U,onLoad:O,ref:q,sizes:E,srcSet:D,style:{aspectRatio:r,height:m,maxHeight:N,maxWidth:$,minHeight:k,minWidth:x??R,objectPosition:`${I??50}% ${W??50}%`,overflow:"hidden",width:R},width:R}),u||P||p?(0,s.jsxs)("div",{className:l().caption,children:[P?(0,s.jsx)("div",{className:l().title,children:P}):void 0,u?(0,s.jsx)("div",{className:l().captionText,children:u}):void 0,p?(0,s.jsxs)("div",{className:l().credit,children:["image:"," ",p]}):void 0]}):void 0,c]})}},57320:e=>{e.exports={image:"image_image__SLWya",blur:"image_blur__sInOI",loaded:"image_loaded__Icuq6",failed:"image_failed__JCsUO",caption:"image_caption__z0BSO",title:"image_title__GLKz0",credit:"image_credit__WgQWp"}},58217:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var s=r(12115),a=r(83735);let i=()=>{let e=(0,s.useContext)(a.Z);if(!e)throw Error("useSite must be used within a SiteProvider");return e}},65965:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});let s=async(e,t,r)=>{let s,a;try{s=await fetch(`/v1/${e}`,{body:JSON.stringify(t),credentials:"include",headers:{accept:"application/json","content-type":"application/json"},method:"POST",signal:r?.signal})}catch(e){return{data:void 0,error:{message:e instanceof Error?e.message:"request failed",name:e instanceof Error?e.name:"RequestError",response:e}}}let i=Object.fromEntries(s.headers.entries());if(!s.headers.get("content-type")?.includes("application/json"))return{data:void 0,error:{message:"invalid response content-type",name:"RequestError"},headers:i};try{a=await s.json()}catch(e){return{data:void 0,error:{message:e instanceof Error?e.message:"invalid response json",name:"RequestError"},headers:i}}return s.ok?{data:a,error:void 0,headers:i}:{data:void 0,error:((e,t)=>{if("object"==typeof e&&null!==e){let r="string"==typeof e.name?e.name:"RequestError";return{message:"string"==typeof e.message?e.message:t,name:r,response:e}}return{message:t,name:"RequestError",response:e}})(a,"request failed"),headers:i}},a={article:{list:(e,t)=>s("article.list",e,t),popularTerms:(e,t)=>s("article.popular-terms",e,t)},creator:{list:(e,t)=>s("creator.list",e,t)},auth:{updateProfile:(e,t)=>s("auth.update-profile",e,t)},sponsor:{list:(e,t)=>s("sponsor.list",e,t)},subscription:{subscribe:(e,t)=>s("subscription.subscribe",e,t)},widget:{list:(e,t)=>s("widget.list",e,t)}}},83735:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a,l:()=>i});var s=r(95155);let a=(0,r(12115).createContext)(void 0),i=e=>{let{children:t,site:r}=e;return(0,s.jsx)(a.Provider,{value:r,children:t})}},84349:(e,t,r)=>{"use strict";r.d(t,{NavigationProgressProvider:()=>c,n:()=>d});var s=r(95155),a=r(73321),i=r(12115),n=r(41631),o=r.n(n);let l=i.createContext(void 0),u=e=>{e&&clearTimeout(e)},c=e=>{let{children:t}=e,r=(0,a.usePathname)(),n=(0,a.useSearchParams)(),c=`${r}?${n.toString()}`,[d,p]=i.useState(!1),g=i.useRef(!1),h=i.useRef(void 0),v=i.useRef(void 0),m=i.useRef(void 0),f=i.useRef(void 0),b=i.useCallback(()=>{u(h.current),u(v.current),u(m.current),h.current=void 0,v.current=void 0,m.current=void 0,g.current=!1,f.current=void 0,p(!1)},[]),_=i.useCallback(()=>{if(g.current=!1,u(m.current),u(v.current),m.current=void 0,v.current=void 0,!f.current){u(h.current),h.current=void 0,p(!1);return}let e=Date.now()-f.current;e>=280?b():(u(h.current),h.current=void 0,h.current=globalThis.setTimeout(()=>{b()},280-e))},[b]),w=i.useCallback(()=>{g.current=!0,u(h.current),u(m.current),u(v.current),h.current=void 0,m.current=void 0,v.current=void 0,f.current||(m.current=globalThis.setTimeout(()=>{g.current&&(f.current=Date.now(),p(!0))},150)),v.current=globalThis.setTimeout(()=>{_()},8e3)},[_]),y=i.useMemo(()=>({finish:_,start:w}),[_,w]);return i.useEffect(()=>{_()},[c]),i.useEffect(()=>()=>{u(h.current),u(v.current),u(m.current),h.current=void 0,v.current=void 0,m.current=void 0},[]),(0,s.jsxs)(l.Provider,{value:y,children:[t,d?(0,s.jsx)("div",{"aria-hidden":"true",className:o().progress,children:(0,s.jsx)("div",{className:o().bar})}):void 0]})},d=()=>{let e=i.useContext(l);if(!e)throw Error("useNavigationProgress must be used within NavigationProgressProvider");return e}},84761:(e,t,r)=>{"use strict";r.d(t,{e:()=>s});let s=e=>{if(e?.palette&&e.palette.length>0)return e.palette.length>=5?[{color:e.palette[0],position:[0,25]},{color:e.palette[1],position:[75,25]},{color:e.palette[2],position:[35,50]},{color:e.palette[3],position:[10,75]},{color:e.palette[4],position:[75,90]}].map(e=>`radial-gradient(
2                ellipse farthest-corner at
3                ${e.position[0]}%
4                ${e.position[1]}%,
5                ${e.color} 0%,
6                ${e.color} 0%,
7                transparent 65%, transparent
8            )`).join(",").replaceAll("\n",""):`linear-gradient(${e.palette[0]}, ${e.palette[0]})`}},88161:(e,t,r)=>{"use strict";r.d(t,{i:()=>i,r:()=>a});let s=new WeakSet,a=e=>{s.add(e)},i=e=>s.has(e)}}]);

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.