1import{I as e,j as t}from"./chunk-KS7C4IRE-DIkipulk.js";import{t as n}from"./jsx-runtime-CsaOnxTR.js";import{Ai as r,Fi as i,Ia as a,La as o,Li as s,Ra as c,Va as l,Xr as u,Yr as d,Zr as f,ea as p,ji as m,jt as h,sa as g,ta as _}from"./Elements-C-xYWSPQ.js";import{t as v}from"./ST-logo-default-DY1puEYz.js";var y=e(t(),1),b=n(),x=e=>{let[t,n]=(0,y.useState)(!1),{url:x,headerItems:S}=e,C=()=>{h(x||window.location.href),n(!0)};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`div`,{className:a(`block border-b border-default`,`px-16 py-04 desktop:py-08`,`flex justify-between items-center`,`transition-all duration-100 ease-linear`),"data-testid":`header-wrapper-test-id`,children:(0,b.jsxs)(`div`,{className:a(`w-full flex justify-between mobile:flex-nowrap tablet:flex-wrap h-full items-stretch breakpoint:max-w-breakpoint breakpoint:mx-auto`),children:[(0,b.jsx)(`div`,{className:`flex items-center`,"data-testid":`header-main-left-test-id`,children:(0,b.jsx)(p,{type:_.IMAGE_ONLY,alt:`Straitstimes.com header logo`,src:v,url:l,textClassName:`flex items-start`,imageClassName:`h-48 py-16 aspect-auto desktop:h-56 flex-shrink-0 w-auto object-contain`},`header-st-logo-default`)}),(0,b.jsx)(`div`,{className:`flex items-center`,"data-testid":`header-main-right-test-id`,children:g(S)&&S.map((e,t)=>(0,b.jsxs)(y.Fragment,{children:[t!==0&&(0,b.jsx)(m,{type:r.DEFAULT,vertical:!0,className:`hidden desktop:block`},`divider-${t}`),(0,b.jsx)(f,{handler:e.handler===void 0?C:e.handler,type:e.type??s.ICON_LEFT,text:e.text??`Share`,fill:e.fill??i.NONE,textClassName:e.textClassName??`text-secondary font-secondary-label-sm-regular hidden tablet:block`,className:e.className??`px-08`,icon:e.icon??{iconName:o.ACTION_SHARE_OUTLINED,iconWidth:c.SMALL,className:`icon-secondary`},testId:e.testId??`icon-header-button-${t}`},`button-${t}`)]},`fragment-${t}`))})]})}),t&&(0,b.jsx)(`div`,{className:`relative whitespace-nowrap`,"data-testid":`link-copied-toast-container-test-id`,children:(0,b.jsx)(d,{type:u.SUCCESS,message:`Link copied`,duration:3e3,handler:()=>{n(!1)},testId:`link-copied-toast-test-id`,className:`w-fit absolute top-72 left-1/2 transform -translate-x-1/2 z-1300`,textClassName:`h-18`})})]})};export{x 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.