1import{E as e,I as t,j as n}from"./chunk-KS7C4IRE-DIkipulk.js";import{t as r}from"./jsx-runtime-CsaOnxTR.js";import{l as i}from"./components-JSzoenoU.js";import{Ba as a,Ga as o,Kt as s,Sa as c,li as l,nn as u,tn as d}from"./Elements-BJgAzht_.js";var f=t(n(),1),p=r();function m({widgetPlacement:t,widgetContainerId:n,widgetPageType:r,testId:s,className:c}){let m=[`default`,`blog`],{displaySetting:h,displayType:g,urlPath:_,articleIndex:v,isArticlePreview:y}=(0,f.useContext)(l),{pathname:b}=e(),x=(0,f.useRef)(!1),S=v&&v>0?String(v):`0`,C=m.includes(g)&&!h?.hideOutbrain;i&&Object.prototype.hasOwnProperty.call(window,`taboola_enable`)&&(C=C&&window.taboola_enable===1&&!y);let w=n+`-${S}`;return(0,f.useEffect)(()=>{if(!i||x.current)return;let e=o+_;switch(x.current=!0,window._taboola=window._taboola||[],r){case u.ARTICLE:window._taboola.push({article:`auto`,url:e});break;case u.HOMEPAGE:window._taboola.push({homepage:`auto`,url:`https://www.straitstimes.com${b}`});break;default:break}window._taboola.push({mode:d,container:w,placement:t+`-${S}`,target_type:`mix`})},[C,_,w,S]),C?(0,p.jsx)(`div`,{id:w,"data-testid":s,className:a(`min-h-200`,c)}):null}var h=[`is_sponsored`,`is_branded`,`is_deals`],g=(e=``,t=!1)=>!h.includes(e)&&!t||!1;function _(){if(!i)return!1;let e=!1;return new URLSearchParams(window.location.search).get(`dd_demo`)?.toLowerCase()===`true`?(c.set(s,`true`),e=!0):e=c.get(s)?.toLowerCase()===`true`,e}export{g as n,m as r,_ 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.