PageSourceSearch

https://theedgemalaysia.com/_next/static/chunks/pages/flash-categories/[flash]-de356b98dfc813ae.js

js theedgemalaysia.com collected 2026-09-24 08:41:47 UTC 10,426 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5779,7587],{6181:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/flash-categories/[flash]",function(){return a(30093)}])},48894:function(e,s,a){"use strict";var t=a(85893);a(67294);var r=a(84849),n=a(68392),i=a.n(n);a(28045);let d=()=>(0,t.jsx)("div",{className:i().mainNewsItemcontainer,children:(0,t.jsxs)("div",{className:i().mainNewsContent,children:[(0,t.jsxs)("div",{className:i().mainNewsContentInner,children:[(0,t.jsx)("div",{className:i().mainNewsInfo,children:(0,t.jsx)(r.Z,{count:1,width:254})}),(0,t.jsx)("div",{className:i().mainNewsHead,children:(0,t.jsx)("h2",{children:(0,t.jsx)(r.Z,{count:2})})}),(0,t.jsx)("div",{children:(0,t.jsx)("span",{children:(0,t.jsx)(r.Z,{count:3})})})]}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{children:(0,t.jsx)(r.Z,{count:1,width:254})})})]})});s.Z=d},30093:function(e,s,a){"use strict";a.r(s),a.d(s,{__N_SSP:function(){return F},default:function(){return P}});var t=a(85893),r=a(67294),n=a(5152),i=a.n(n),d=a(29814),l=a(11163),o=a(9008),c=a.n(o),p=a(92615),u=a(3560),h=a(48894),g=a(10682),m=a(66368),v=a.n(m),j=a(1003),x=a(37680),b=a(1259),f=a(66718),w=a(11946);let _=(0,d.Z)(i()(()=>a.e(1420).then(a.bind(a,91420)),{loadableGenerated:{webpack:()=>[91420]},suspense:!0})),N=(0,d.Z)(i()(()=>a.e(5278).then(a.bind(a,62291)),{loadableGenerated:{webpack:()=>[62291]},suspense:!0})),y=(0,d.Z)(i()(()=>a.e(4488).then(a.bind(a,54488)),{loadableGenerated:{webpack:()=>[54488]},suspense:!0})),C=(0,d.Z)(i()(()=>a.e(3801).then(a.bind(a,1125)),{loadableGenerated:{webpack:()=>[1125]},suspense:!0}));(0,d.Z)(i()(()=>a.e(5893).then(a.bind(a,25893)),{loadableGenerated:{webpack:()=>[25893]},suspense:!0})),(0,d.Z)(i()(()=>a.e(4085).then(a.bind(a,74085)),{loadableGenerated:{webpack:()=>[74085]},suspense:!0})),(0,d.Z)(i()(()=>a.e(6443).then(a.bind(a,96443)),{loadableGenerated:{webpack:()=>[96443]},suspense:!0}));let W=(0,d.Z)(i()(()=>Promise.all([a.e(3156),a.e(5924)]).then(a.bind(a,73116)),{loadableGenerated:{webpack:()=>[73116]},suspense:!0})),k=(0,d.Z)(i()(()=>a.e(3567).then(a.bind(a,33567)),{loadableGenerated:{webpack:()=>[33567]},suspense:!0})),A=(0,d.Z)(i()(()=>a.e(4728).then(a.bind(a,54728)),{loadableGenerated:{webpack:()=>[54728]},suspense:!0})),Z=e=>{let{totalRecords:s,corporateData:a,justInMostReadData:n,dfpData:i,chatEdgeAdvId:d}=e,o=(0,r.useRef)(!0),c=(0,l.useRouter)(),{flash:m}=c.query,[Z,S]=(0,r.useState)(!0),[E,F]=(0,r.useState)(!1),[P,G]=(0,r.useState)([]),[I,T]=(0,r.useState)([]),[R,D]=(0,r.useState)([]),[M,B]=(0,r.useState)({});(0,r.useEffect)(()=>{if(o.current){var e,s;o.current=!1;let t=(0,f.b)(i,"ros"),r=null==t?void 0:t.dfp_id,d=(null==t?void 0:t.data)||[];{let l={};for(let u=0;u<(null==d?void 0:d.length);u++){let h=d[u];h&&(l[null==h?void 0:h.unique_key]=!1)}B({...l}),(0,p.Fw)(d,r),(0,p.fP)(e=>{!function(e){let s=e.slot.getSlotElementId(),a={...M};a[s]=!0,B(e=>({...e,...a}))}(e)})}if(a){let g=a.length>0?[...a]:[];G(e=>[...e,...g])}n&&(Array.isArray(e=n.justIn)&&T(s=>[...s,...e]),Array.isArray(s=n.mostRead)&&D(e=>[...e,...s])),S(!1)}let m=()=>{G([]),o.current=!0,(0,p.w$)()};return c.events.on("routeChangeStart",m),()=>{c.events.off("routeChangeStart",m)}},[a,n,c.events,i]);let L=()=>{(async()=>{try{F(!0);let e=await fetch("/api/loadMoreFlashCategories?offset=".concat(P.length,"&flash=").concat(m)),s=await e.json();if(s){F(!1);let a=(null==s?void 0:s.results.length)>0?[...s.results]:[];G(e=>[...e,...a])}}catch(t){console.log(t)}})()},X=()=>{window.scrollTo({top:0,behavior:"smooth"})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.Z,{showAd:!0,id:"div-gpt-ad-pushdown-ros",slots:M}),(0,t.jsx)("div",{className:"flashCategoryContainerWrapper",children:(0,t.jsxs)(g.Z,{className:v().corporateContainer,children:[(0,t.jsx)(w.Z,{chatEdgeAdvId:d}),(0,t.jsx)("div",{className:v().coporatePageHead,children:(0,t.jsx)("h1",{children:(e=>{switch(e){case"frankly speaking":return"Frankly Speaking";case"news":return"新闻";case"esg":return"ESG";case"digitaledge":return"Digital Edge";default:return e.split(" ").reduce((e,s)=>e+" "+s[0].toUpperCase()+s.slice(1),"")}})(m)})}),(0,t.jsxs)("div",{className:v().pageWrapperWithAd,children:[(0,t.jsx)("div",{className:v().pageWrapperContent,children:(0,t.jsxs)("div",{className:v().pageNewsListingWrap,children:[(0,t.jsx)("div",{className:v().mainNewsItemWrap,children:Z||(null==P?void 0:P.length)<=0?(0,t.jsx)(N,{}):(0,t.jsx)(_,{data:P[0]})}),(0,t.jsx)("div",{className:v().rowAdWrapper,children:(0,t.jsx)("div",{id:"div-gpt-ad-row4-ros",className:"row-ad-box"})}),(0,t.jsx)("div",{className:v().pageSubNewsWrap,children:Z||(null==P?void 0:P.length)<=0?(0,t.jsx)(C,{}):(0,t.jsx)(y,{topStories:P.slice(1,4)})})]})}),(0,t.jsx)("div",{className:v().pageWrapperAd,children:(0,t.jsx)("div",{className:v().mrecAdBottomPageWrapper,children:(0,t.jsx)(j.Z,{ids:["div-gpt-ad-mrec1-ros-my","div-gpt-ad-mrec2-ros-my"],slots:M})})})]}),(0,t.jsxs)("div",{className:v().pageWrapperWithAd,children:[(0,t.jsxs)("div",{className:v().pageWrapperContent,children:[(0,t.jsx)("div",{className:v().moreFramComponent,children:(0,t.jsx)(x.Z,{newsList:P.slice(4),category:m,url:"flash-categories",adId:"div-gpt-ad-row5-ros"})}),E&&(0,t.jsx)(h.Z,{type:"",props:void 0},null),!Z&&s&&s>
112?(0,t.jsx)("div",{className:v().loadMoreBtnWrap,children:(0,t.jsx)(k,{onClick:L})}):null]}),(0,t.jsxs)("div",{className:v().pageWrapperAd,children:[(0,t.jsx)("div",{className:v().mrecAdBottomPageWrapper,children:(0,t.jsx)(j.Z,{ids:["div-gpt-ad-mrec3-ros-my"],slots:M})}),(0,t.jsx)("div",{className:"mrecAd4",id:"div-gpt-ad-mrec4-ros-my"}),(0,t.jsx)("div",{children:(0,t.jsx)(W,{justInArticles:I,mostReadArticles:R})}),(0,t.jsx)("div",{children:(0,t.jsx)(j.Z,{ids:["div-gpt-ad-mrec5-ros-my","div-gpt-ad-buttonside1-ros-my"],slots:M})}),(0,t.jsx)("div",{className:"brandedContent",style:{height:"330px",display:"flex",justifyContent:"center"},children:(0,t.jsx)("iframe",{src:"https://mybrandeds.theedgemalaysia.com",width:"300px",height:"330px"})}),(0,t.jsxs)("div",{className:"buttonAdWrapperContainer",children:[(0,t.jsx)("div",{id:"div-gpt-ad-buttonside2-ros-my"}),(0,t.jsx)("div",{id:"div-gpt-ad-buttonside3-ros-my"}),(0,t.jsx)("div",{id:"div-gpt-ad-mrec6-ros-my"})]})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)(A,{onClick:X})})]})}),(0,t.jsx)(u.default,{ids:{Staging_Catfish_ROS_MY:"div-gpt-ad-catfish-ros-my"},slots:M})]})};var S=a(43559);(0,d.Z)(i()(()=>Promise.resolve().then(a.bind(a,3560)),{loadableGenerated:{webpack:()=>[3560]},suspense:!0}));let E=e=>{let{totalRecords:s,corporateData:a,justInMostReadData:n,dfpData:i,chatEdgeAdvId:d}=e,o=(0,r.useRef)(!0),u=(0,l.useRouter)(),{flash:h}=u.query,[g,m]=(0,r.useState)({});function v(){(0,p.w$)()}return(0,r.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),(0,r.useEffect)(()=>(o.current&&(o.current=!1),u.events.on("routeChangeStart",v),()=>{u.events.off("routeChangeStart",v)}),[i]),(0,t.jsxs)(S.Z,{children:[(0,t.jsxs)(c(),{children:[(0,t.jsx)("title",{children:"".concat((e=>{switch(e){case"frankly speaking":return"Frankly Speaking";case"news":return"新闻";default:return e.split(" ").reduce((e,s)=>e+" "+s[0].toUpperCase()+s.slice(1),"")}})(h)," | The Edge Malaysia")}),(0,t.jsx)("script",{async:!0,src:"https://www.googletagservices.com/tag/js/gpt.js"}),(0,t.jsx)("script",{children:"var googletag = window.googletag || {};\n        googletag.cmd = googletag.cmd || [];"}),(0,t.jsx)("link",{rel:"stylesheet",href:"https://myassets.theedgemalaysia.com/css/listing-scriptdms.css "}),(0,t.jsx)("script",{async:!0,src:"https://myassets.theedgemalaysia.com/js/listing-scriptdms.js"})]}),(0,t.jsx)("div",{children:(0,t.jsx)(Z,{totalRecords:s,corporateData:a,justInMostReadData:n,dfpData:i,chatEdgeAdvId:d})})]})};var F=!0,P=E},66368:function(e){e.exports={corporateContainer:"FlashCategories_corporateContainer__LOL3g",coporatePageHead:"FlashCategories_coporatePageHead__GEyZF",pageNewsListingWrap:"FlashCategories_pageNewsListingWrap__bon8J",mainNewsItemWrap:"FlashCategories_mainNewsItemWrap__eISgX",pageSubNewsWrap:"FlashCategories_pageSubNewsWrap__ftNpN",rowAdWrapper:"FlashCategories_rowAdWrapper__UjYXm",pageWrapperWithAd:"FlashCategories_pageWrapperWithAd__qzsxl",pageWrapperContent:"FlashCategories_pageWrapperContent__4BGwr","slick-slider":"FlashCategories_slick-slider__2m1EX",pageWrapperAd:"FlashCategories_pageWrapperAd__D2AM4",mrecAdBottomPageWrapper:"FlashCategories_mrecAdBottomPageWrapper__oxK5m",mrecAdTopPageWrapper:"FlashCategories_mrecAdTopPageWrapper__oEp14"}},68392:function(e){e.exports={tabContainer:"NewsTab_tabContainer__op0xZ","selected-tab":"NewsTab_selected-tab__0XNDS",active:"NewsTab_active__fy65j",tabData:"NewsTab_tabData__0Saiq",tabContainerWrapper:"NewsTab_tabContainerWrapper__Sp3d4"}},28045:function(){},84849:function(e,s,a){"use strict";a.d(s,{Z:function(){return n}});var t=a(67294);let r=t.createContext({});function n({count:e=1,wrapper:s,className:a,containerClassName:n,containerTestId:i,circle:d=!1,style:l,...o}){var c,p,u;let h=t.useContext(r),g={...o};for(let[m,v]of Object.entries(o))void 0===v&&delete g[m];let j={...h,...g,circle:d},x={...l,...function({baseColor:e,highlightColor:s,width:a,height:t,borderRadius:r,circle:n,direction:i,duration:d,enableAnimation:l=!0}){let o={};return"rtl"===i&&(o["--animation-direction"]="reverse"),"number"==typeof d&&(o["--animation-duration"]=`${d}s`),l||(o["--pseudo-element-display"]="none"),("string"==typeof a||"number"==typeof a)&&(o.width=a),("string"==typeof t||"number"==typeof t)&&(o.height=t),("string"==typeof r||"number"==typeof r)&&(o.borderRadius=r),n&&(o.borderRadius="50%"),void 0!==e&&(o["--base-color"]=e),void 0!==s&&(o["--highlight-color"]=s),o}(j)},b="react-loading-skeleton";a&&(b+=` ${a}`);let f=null!==(c=j.inline)&&void 0!==c&&c,w=[],_=Math.ceil(e);for(let N=0;N<_;N++){let y=x;if(_>e&&N===_-1){let C=null!==(p=y.width)&&void 0!==p?p:"100%",W=e%1,k="number"==typeof C?C*W:`calc(${C} * ${W})`;y={...y,width:k}}let A=t.createElement("span",{className:b,style:y,key:N},"‌");f?w.push(A):w.push(t.createElement(t.Fragment,{key:N},A,t.createElement("br",null)))}return t.createElement("span",{className:n,"data-testid":i,"aria-live":"polite","aria-busy":null===(u=j.enableAnimation)||void 0===u||u},s?w.map((e,a)=>t.createElement(s,{key:a},e)):w)}}},function(e){e.O(0,[296,3662,4852,822,5660,9730,1828,3560,5332,1946,9774,2888,179],function(){return e(e.s=6181)}),_N_E=e.O()}]);

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.