PageSourceSearch

https://www.straitstimes.com/assets/Wide-LKH0a9jA.js

js straitstimes.com collected 2026-09-24 07:36:59 UTC 5,978 bytes, 1 lines download raw bytes

1import{A as e,I as t,j as n,k as r}from"./chunk-KS7C4IRE-DIkipulk.js";import{t as i}from"./jsx-runtime-CsaOnxTR.js";import{Ba as a,Fn as o,Ha as s,Oa as c,Pr as l,Ua as u,Va as d,Wa as f,_i as p,bi as m,da as h,ni as g,xi as _}from"./Elements-BJgAzht_.js";import{n as v}from"./ssr-CJ2n4bG3.js";var y=`/assets/ST-homepage-qr-C6ilRJPw.png`;_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE,_.IMAGE;var b=[{id:``,urlPath:``,processedElements:[],publishedDate:``,updatedDate:``,contentAccess:c.FREE}],x=t(n(),1),S=i(),C=e(function(){let{slide:e}=r(),[t,n]=(0,x.useState)([]),[i,a]=(0,x.useState)([]),[o,s]=(0,x.useState)([]),[c,d]=(0,x.useState)([]),[p,m]=(0,x.useState)([]);return(0,x.useEffect)(()=>{(async()=>{try{let e=await l(`mbo/wide`,`GET`,{},!1);if(!e)return;let t=h(e.singapore)?e.singapore.filter(t=>!e.hero.some(e=>e.id===t.id)):b,r=h(e.life)?e.life.filter(t=>!e.hero.some(e=>e.id===t.id)):b,i=h(e.business)?e.business.filter(t=>!e.hero.some(e=>e.id===t.id)):b;h(e.hero)&&n(e.hero),h(e.singapore)&&a(t),h(e.life)&&d(r),h(e.business)&&s(i),h(e.shorts)&&m(e.shorts)}catch(e){f(u.ERROR,`BAAS:: STories API request failed`,{err:e})}})()},[]),(0,S.jsxs)(`div`,{className:`mbo-layout`,children:[(0,S.jsx)(`div`,{className:`w-full h-full absolute top-00 left-00 aurora-bg -z-500`}),(0,S.jsx)(`div`,{children:e===`1`?(0,S.jsx)(`div`,{children:(0,S.jsxs)(`div`,{className:`ast-one-container`,children:[(0,S.jsx)(`div`,{className:`ast-one-hero-container`,children:w(t,3,0)}),T(),(0,S.jsx)(`div`,{className:`ast-one-feed-container`,children:(0,S.jsxs)(`div`,{className:`mbo-feed-story-container`,children:[E(i,0),E(o,0),E(c,0)]})})]})}):(0,S.jsx)(`div`,{children:(0,S.jsxs)(`div`,{className:`ast-one-container`,children:[(0,S.jsx)(`div`,{className:`ast-one-hero-container`,children:w(t,3,3)}),T(),(0,S.jsx)(`div`,{className:`ast-one-feed-container`,children:D(p,3)})]})})})]})});function w(e,t,n){if(h(e))return(0,S.jsx)(S.Fragment,{children:e.slice(n,n+t).map((e,t)=>{if(!h(e.media))return;let n=p(e.media)[0];return(0,S.jsxs)(`div`,{className:`mbo-feed-story-item-wrapper`,children:[(0,S.jsx)(o,{src:n.src,alt:n.alt===``?`straitstimes default feed article thumbnail`:n.alt,wrapperClassName:`mbo-feed-media-wrapper`,className:`mbo-feed-media`,size:m.LANDSCAPE}),(0,S.jsx)(`span`,{className:`mbo-feed-title`,children:e.title??``})]},`mbo-feed-story-${t}`)})})}function T(){return(0,S.jsxs)(`div`,{id:`ast-one-utility-container`,className:`h-full rounded-xl `,children:[(0,S.jsxs)(`div`,{className:`mbo-brand-container`,children:[(0,S.jsx)(`div`,{className:`mbo-kicker`,children:`Brought to you by`}),(0,S.jsx)(`div`,{className:`mbo-brand`,children:(0,S.jsx)(g,{iconName:d.ST_FULL_LOGO_WHITE,iconWidth:`971`,iconHeight:`76`,symmetric:!1})})]}),(0,S.jsx)(`div`,{className:`mbo-qr`,children:(0,S.jsx)(`div`,{className:`mbo-qr-content`,children:(0,S.jsx)(o,{src:y,alt:`STQR QR`,size:m.SQUARE,className:`max-h-225`})})}),(0,S.jsxs)(`div`,{className:`mbo-social-container`,children:[(0,S.jsx)(`div`,{className:`mbo-social-kicker`,children:`Follow us on`}),(0,S.jsxs)(`div`,{className:`mbo-social-icons`,children:[(0,S.jsx)(`div`,{className:`p-13`,children:(0,S.jsx)(g,{iconName:d.SOCIAL_TWITTER,iconWidth:s.XXL,symmetric:!0,className:`icon-inverse`})}),(0,S.jsx)(`div`,{className:`p-13`,children:(0,S.jsx)(g,{iconName:d.SOCIAL_TIKTOK,iconWidth:s.XXL,symmetric:!0,className:`icon-inverse`})}),(0,S.jsx)(`div`,{className:`p-13`,children:(0,S.jsx)(g,{iconName:d.SOCIAL_INSTAGRAM,iconWidth:s.XXL,symmetric:!0,className:`icon-inverse`})}),(0,S.jsx)(`div`,{className:`p-13`,children:(0,S.jsx)(g,{iconName:d.SOCIAL_FACEBOOK,iconWidth:s.XXL,symmetric:!0,className:`icon-inverse`})}),(0,S.jsx)(`div`,{className:`p-13`,children:(0,S.jsx)(g,{iconName:d.SOCIAL_YOUTUBE,iconWidth:s.XXL,symmetric:!0,className:`icon-inverse`})}),(0,S.jsx)(`div`,{className:`p-13`,children:(0,S.jsx)(g,{iconName:d.SOCIAL_TELEGRAM,iconWidth:s.XXL,symmetric:!0,className:`icon-inverse`})}),(0,S.jsx)(`div`,{className:`p-13`,children:(0,S.jsx)(g,{iconName:d.SOCIAL_LINKEDIN,iconWidth:s.XXL,symmetric:!0,className:`icon-inverse`})})]})]})]})}function E(e,t){if(!h(e)||t>e.length-1)return;let n=e[t];if(!h(n.media))return;let r=p(n.media)[0];return(0,S.jsx)(S.Fragment,{children:(0,S.jsxs)(`div`,{className:`mbo-feed-story-item-wrapper`,children:[(0,S.jsx)(o,{src:r.src,alt:r.alt===``?`straitstimes default feed article thumbnail`:r.alt,wrapperClassName:`mbo-feed-media-wrapper`,className:`mbo-feed-media`,size:m.LANDSCAPE}),(0,S.jsx)(`span`,{className:`mbo-feed-title`,children:n.title??``})]},`mbo-feed-story-${t}`)})}function D(e,t){return(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(`div`,{className:`mbo-feed-shorts-container`,children:e.map((e,n)=>{if(!(n>t))return(0,S.jsx)(`div`,{className:`mbo-feed-shorts-item-wrapper`,children:(0,S.jsx)(`div`,{className:a(`card flex relative h-full w-full rounded-3xl min-h-1315 max-h-1315 min-w-765`),children:(0,S.jsx)(`div`,{className:`items-stretch w-full h-full min-h-1315 max-h-1315 rounded-3xl`,children:(0,S.jsxs)(`div`,{className:`flex flex-col relative items-stretch w-full h-full aspect-portrait rounded-3xl`,children:[(0,S.jsx)(`video`,{src:`https://mpdf.straitstimes.com/reel/st/${e.id}.mp4`,autoPlay:!0,loop:!0,muted:!0,controls:!1,className:a(`aspect-portrait flex items-start shrink-0 object-cover border border-default shadow-default w-full rounded-3xl min-h-1315 max-h-1315 min-w-765`)}),(0,S.jsx)(`div`,{className:`shorts-gradient absolute top-00 w-full min-h-1315 max-h-1315 rounded-b-3xl`})]})})})},`mbo-feed-story-${n}`)})})})}async function O(e){let t=await v(e);if(!t.context)return console.error(`Error occurred during client-side routing for mbo, returning server Loader Data`),await e.serverLoader();let n=t.context;return(!n||typeof n!=`object`||!(`payload`in n)||typeof n.payload!=`object`)&&console.error(`Client Loader: fetchContext() returned an invali
1d payload for home`),n}export{O as n,C as t};

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.