1import{A as e,I as t,j as n}from"./chunk-KS7C4IRE-DIkipulk.js";import{t as r}from"./jsx-runtime-CsaOnxTR.js";import{Aa as i,Na as a,Pa as o,ga as s,ka as c,yn as l,zn as u}from"./Elements-C-xYWSPQ.js";import{t as d}from"./ssr-CJ2n4bG3.js";import{t as f}from"./MySTEmptyState-mdypUwdw.js";import{f as p,h as m,i as h,m as g,n as _,p as v,r as y,t as b}from"./readingHistory-DMWEv1Fr.js";import{t as x}from"./AccountPageLayout-BXYaTFGl.js";var S=t(n(),1),C=r(),w=e(function(){let{lightbox:e}=u(),[t,n]=(0,S.useState)(`pending`);return(0,S.useEffect)(()=>{if(!e)return;let t=new AbortController;return(async()=>{let r=await e.isAuthenticated();t.signal.aborted||n(r?`signed-in`:`signed-out`)})(),()=>{t.abort()}},[e]),(0,S.useEffect)(()=>{t===`signed-in`&&i({eventCategory:a.ACCOUNT_HUB,eventAction:`view`,eventLabel:`reading history`})},[t]),(0,C.jsxs)(x,{className:`reading-history-page`,children:[(0,C.jsx)(l,{title:m,className:`bg-white`}),t===`pending`?(0,C.jsx)(o,{}):t===`signed-out`?(0,C.jsx)(`div`,{className:`dynamic-padding-x reading-history-empty`,"data-testid":`reading-history-signed-out-test-id`,children:(0,C.jsx)(f,{heading:g,content:p,exploreLabel:v,exploreEventLabel:`reading history::sign in`,exploreEventCategory:a.LOGIN,onExplore:()=>{s(e)},testId:`reading-history-signed-out-empty-state-test-id`})}):(0,C.jsx)(`div`,{className:`dynamic-padding-x reading-history-empty`,"data-testid":`reading-history-content-test-id`,children:(0,C.jsx)(f,{heading:y,content:b,exploreLabel:_,exploreUrl:`/`,exploreEventLabel:`reading history::explore latest stories`,exploreEventCategory:a.ACCOUNT_HUB,testId:`reading-history-empty-state-test-id`})})]})});function T(){return[{title:`${m} | The Straits Times`},{name:`robots`,content:`noindex, nofollow`}]}var E=()=>c.READING_HISTORY?{type:d.SUCCESS,statusCode:200,payload:{path:h}}:{type:d.CLIENT_ERROR,statusCode:404};function D(){return E()}export{D as clientLoader,w as default,T as meta};
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.