PageSourceSearch

https://mg.co.za/_next/static/chunks/8899.dd42628a0b981eb1.js

js mg.co.za collected 2026-10-01 08:44:26 UTC 2,386 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8899],{11353:t=>{t.exports={"html-widget":"html_html-widget__Qbc1J",wrap:"html_wrap__zA6XG","wrap-full-width":"html_wrap-full-width__VfSGJ",content:"html_content__M4e62","content-full-width":"html_content-full-width__Z0ibr"}},78899:(t,e,r)=>{"use strict";r.r(e),r.d(e,{HtmlWidget:()=>h});var l=r(95155),n=r(29722),i=r(12115),s=r(78239),c=r(11353),a=r.n(c);let o=/<script\b[^>]*>[\s\S]*?<\/script>/giu,u=async(t,e)=>{var r;if(!t.source)throw Error("Missing script source");let l=(t=>{let e=t.startsWith("//")?`${globalThis.location.protocol}${t}`:t;try{return new URL(e,globalThis.location.href).toString()}catch{return e}})(t.source),n=(r=t.attributes,"module"!==r.type?.trim().toLowerCase()&&!("async"in r)&&!("defer"in r)),i=document.createElement("script");return Object.entries(t.attributes).forEach(([t,e])=>{"src"!==t&&"string"==typeof e&&i.setAttribute(t,e)}),n&&(i.async=!1),i.src=l,e.append(i),n&&await new Promise(t=>{i.addEventListener("load",()=>{t()},{once:!0}),i.addEventListener("error",()=>{t()},{once:!0})}),i},d=(t,e)=>{let r=document.createElement("script");return Object.entries(t.attributes).forEach(([t,e])=>{"src"!==t&&"string"==typeof e&&r.setAttribute(t,e)}),r.text=t.content,e.append(r),r},h=t=>{let{data:e,display:r="default",fullWidth:c=!1}=t,h=(0,i.useRef)(null),m=(0,i.useMemo)(()=>e.html?e.html.replaceAll(o,""):void 0,[e.html]);return(0,i.useEffect)(()=>{var t;let r,l=h.current;if(!l||!e.html)return;if(c){let t=l.firstElementChild;t instanceof HTMLElement&&(t.style.display="block",t.style.maxWidth="100%",t.style.width="100%")}let n=(t=e.html,(r=document.createElement("template")).innerHTML=t,[...r.content.querySelectorAll("script")].map(t=>{let e={},r=t.getAttribute("src");for(let r of t.attributes)e[r.name]=r.value;return{attributes:e,content:t.text,source:r??void 0}}));if(0===n.length)return;let i=!1,s=[];return(async()=>{for(let t of n){if(i)return;if(t.source){let e=await u(t,l);s.push(e)}else s.push(d(t,l))}})(),()=>{i=!0,s.forEach(t=>{t.remove()})}},[e.html,c]),m?(0,l.jsx)(s.Widget,{className:a()["html-widget"],data:e,display:r,children:(0,l.jsx)("div",{className:(0,n.$)(a().wrap,c?a()["wrap-full-width"]:void 0),children:(0,l.jsx)("div",{className:(0,n.$)(a().content,c?a()["content-full-width"]:void 0),dangerouslySetInnerHTML:{__html:m},id:e.anchor,ref:h})})}):void 0}}}]);

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.