1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3925],{922:(e,n,t)=>{t.d(n,{pL:()=>h});var o=t(35306),r=t(86110),i=t(98015),a=t(11800),c=t(76367),s=t(22514),l=t(45159),u=Object.defineProperty,d=function(e,n,t){var o;return(o="symbol"!=typeof n?n+"":n)in e?u(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t},f=new Map,p=new WeakMap,m=0,v=void 0,h=function(e){function n(e){var t;return(0,r._)(this,n),d(t=(0,o._)(this,n,[e]),"node",null),d(t,"_unobserveCb",null),d(t,"handleNode",function(e){t.node&&(t.unobserve(),e||t.props.triggerOnce||t.props.skip||t.setState({inView:!!t.props.initialInView,entry:void 0})),t.node=e||null,t.observeNode()}),d(t,"handleChange",function(e,n){e&&t.props.triggerOnce&&t.unobserve(),"function"==typeof t.props.children&&t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)}),t.state={inView:!!e.initialInView,entry:void 0},t}return(0,a._)(n,e),(0,i._)(n,[{key:"componentDidMount",value:function(){this.unobserve(),this.observeNode()}},{key:"componentDidUpdate",value:function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}},{key:"componentWillUnmount",value:function(){this.unobserve()}},{key:"observeNode",value:function(){if(this.node&&!this.props.skip){var e=this.props,n=e.threshold,t=e.root,o=e.rootMargin,r=e.trackVisibility,i=e.delay,a=e.fallbackInView;this._unobserveCb=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v;if(void 0===window.IntersectionObserver&&void 0!==o){var r=e.getBoundingClientRect();return n(o,{isIntersecting:o,target:e,intersectionRatio:"number"==typeof t.threshold?t.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),function(){}}var i=function(e){var n=Object.keys(e).sort().filter(function(n){return void 0!==e[n]}).map(function(n){var t;return"".concat(n,"_").concat("root"===n?(t=e.root)?(p.has(t)||(m+=1,p.set(t,m.toString())),p.get(t)):"0":e[n])}).toString(),t=f.get(n);if(!t){var o,r=new Map,i=new IntersectionObserver(function(n){n.forEach(function(n){var t,i=n.isIntersecting&&o.some(function(e){return n.intersectionRatio>=e});e.trackVisibility&&void 0===n.isVisible&&(n.isVisible=i),null==(t=r.get(n.target))||t.forEach(function(e){e(i,n)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),t={id:n,observer:i,elements:r},f.set(n,t)}return t}(t),a=i.id,c=i.observer,s=i.elements,l=s.get(e)||[];return s.has(e)||s.set(e,l),l.push(n),c.observe(e),function(){l.splice(l.indexOf(n),1),0===l.length&&(s.delete(e),c.unobserve(e)),0===s.size&&(c.disconnect(),f.delete(a))}}(this.node,this.handleChange,{threshold:n,root:t,rootMargin:o,trackVisibility:r,delay:i},a)}}},{key:"unobserve",value:function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}},{key:"render",value:function(){var e=this.props.children;if("function"==typeof e){var n=this.state;return e({inView:n.inView,entry:n.entry,ref:this.handleNode})}var t=this.props,o=t.as,r=(t.triggerOnce,t.threshold,t.root,t.rootMargin,t.onChange,t.skip,t.trackVisibility,t.delay,t.initialInView,t.fallbackInView,(0,s._)(t,["as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"]));return l.createElement(o||"div",(0,c._)({ref:this.handleNode},r),e)}}]),n}(l.Component)},13406:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(91167),r=t(60143),i=t(29722),a=t(45159),c=t(19798),s=a.memo(function(e){var n=e.className,t=e.placementId,o=e.setContainer;return(0,r.jsx)("div",{className:(0,i.A)("w-full",n),id:"braze-placement-".concat(t),ref:o})},function(e,n){return e.placementId===n.placementId&&e.setContainer===n.setContainer&&e.className===n.className});function l(e){var n=e.className,t=e.onIframeLoaded,i=e.placementId,l=(0,o._)((0,a.useState)(null),2),u=l[0],d=l[1],f=(0,o._)((0,a.useState)(null),2),p=f[0],m=f[1],v=(0,a.useCallback)(function(e){if(e&&window.braze&&u){window.braze.insertBanner(e,u);var n=u.querySelector("iframe");n||console.error('[Braze] Unable to find iframe for "'.concat(i,'"')),m(n)}},[u,m,i]);return(0,c.wx)(i,v),(0,a.useEffect)(function(){if(u){var e=function(){m(u.querySelector("iframe"))};e();var n=new MutationObserver(e);return n.observe(u,{childList:!0,subtree:!0}),function(){return n.disconnect()}}},[u]),(0,c.VI)(i),(0,a.useEffect)(function(){if(p&&t){var e=function(){t(p)};return p.contentDocument&&"complete"===p.contentDocument.readyState?void e():(p.addEventListener("load",e),function(){return p.removeEventListener("load",e)})}},[p,t]),(0,r.jsx)(s,{className:n,placementId:i,setContainer:d})}},41951:(e,n,t)=>{t.d(n,{A:()=>u});var o=t(60143),r=t(45159),i=t(2834),a=t(73091),c=t(19798),s=t(13406);function l(e){return"object"==typeof e&&null!==e&&"id"in e&&"string"==typeof e.id&&"name"in e&&"string"==typeof e.name}function u(){var e=(0,i.wA)(),n=(0,c.r2)(),t=(0,r.useCallback)(function(n,t){"recommended-topics"===n&&Array.isArray(t)&&t.every(l)&&e(a.A.actions.setRecommendedTopics(t.map(function(e){return{name:e.name,uuid:e.id}})))},[e]),u=(0,c.oe)(t).onIframeLoaded;return(0,o.jsx)(s.A,{className:"h-0 max-h-0",onIframeLoaded:u,placementId:n})}},47208:(e,n,t)=>{t.d(n,{A:()=>i});var o=t(60143),r=t(922);function i(e){var n=e.children,t=e.onEnterEvent,i=e.threshold;return(0,o.jsx)(r.pL,{onChange:function(e){e&&t()},threshold:i,triggerOnce:!0,children:n})}},53023:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(98952),r=t(60143),i=t(45159),a=t(62715),c=t(13406),s=t(65389);function l(e){var n=e.className,t=e.onIframeLoaded,l=e.placementId,u=(0,a.GV)(function(e){return e.zoneItems.page}),d=(0,a.GV)(function(e){return e.zoneItems.global}),f=(0,a.GV)(function(e){return e.concepts.stories}),p=(0,a.GV)(function(e){return e.story}),m=(0,i.useMemo)(function(){var e=p.id?[p.id]:[],n=(0,o._)(u).concat((0,o._)(d)).filter(function(e){return[s.Av.ClusteredStoryList,s.Av.TitledStoryList,s.Av.StoryList].includes(e.zoneItemType)}).flatMap(function(e){return e.zoneItemData.stories.map(function(e){return e.id})});return e.push.apply(e,(0,o._)(n)),f&&e.push.apply(e,(0,o._)(f.map(function(e){return e.id}))),e},[u,d,f,p]),v=(0,i.useCallback)(function(e){m.length>0&&function e(n,t,o){if(n.contentWindow){var r=n.contentWindow;if(r.update)return void r.update(t)}Date.now()-o>5e3?console.error("[Braze] Unable to find `update` function on iframe"):requestAnimationFrame(function(){e(n,t,o)})}(e,m,Date.now()),null==t||t(e)},[m,t]);return(0,r.jsx)(c.A,{className:n,onIframeLoaded:v,placementId:l})}},86300:(e,n,t)=>{t.d(n,{CH:()=>p,E2:()=>u,OQ:()=>s,Y$:()=>v,_q:()=>d,fo:()=>f,pU:()=>h,ss:()=>m,y1:()=>l});var o=t(63233),r="carousel",i="for you",a="list";function c(e){(0,o.CI)({data:e,event:"personalisation_interactions"})}function s(){c({action:"impression",category:r})}function l(e){c({action:"click",category:r,label:e,section:i,type:"pill"})}function u(e){l(e)}function d(e){l(e.toLowerCase())}function f(e){var n=e.storyId;c({action:"click",category:r,label:e.title,section:i,story_id:String(n),type:"article"})}function p(){c({action:"click",category:r,label:"Manage Topics",section:i,type:"navigation"})}function m(e){c({action:"click",category:a,label:e,section:"manage topics",type:"remove"})}function v(e){c({action:"click",category:a,label:e,section:"suggested topics",type:"add"})}function h(){c({action:"click",label:"follow",type:"follow_topic"})}},91464:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(1438);function r(e,n){(0,o.UM)().then(function(t){t.logCustomEvent(e,n)||console.error("[Braze] Could not log custom event: ".concat(e))}).catch(console.error)}},93925:(e,n,t)=>{t.r(n),t.d(n,{default:()=>A});var o=t(60143),r=t(92584),i=t(29722),a=t(54166),c=t(62715),s=t(41951),l=t(53023),u=t(65019),d=t(19798),f=t(91464),p=t(86300),m=t(47208);let v=[{name:"Council",uuid:"71d9a354-1d54-3454-bcec-20b6060cb288"},{name:"Court",uuid:"2dbf3a20-f959-38cd-a395-c22950a7d854"},{name:"Education",uuid:"aca9c3ff-247b-3c10-acbe-3cf69d87b2fe"},{name:"Health",uuid:"72a2611a-c270-3508-a8c4-7b66c22c7d96"}
1,{name:"Police",uuid:"85dba28f-1543-3ef7-ac9f-2cc9edfe063f"},{name:"Road accident and incident",uuid:"23c979a9-41dd-36f0-9a5c-293a1e0ef1d9"},{name:"Sport",uuid:"352270df-e349-37e2-8d53-3f92f6942093"},{name:"Weather",uuid:"f79b4f43-ae33-354b-b3dc-16782fcb4674"},{name:"Opinion",uuid:"78847e53-8d7a-3a7c-82d9-1d9b9e06b729"}];var h=t(85406),g=t(91167),b=t(98952),w=t(49303),y=t(45159),x=t(1438),k=t(15204),_=t(43634),C=[2e4,5e4],I=["skeleton-1","skeleton-2","skeleton-3"],N="-mr-5 w-[calc(100%+1.25rem)] min-[601px]:mr-0 min-[601px]:w-full",j="/manage-topics/";let A=function(e){var n,t,A,T,E,z,S,V,B,M,L,U,R,q,O,F,D,G,W,H,P,Y,Q,$,X,K,Z,J,ee,en,et,eo,er,ei,ea,ec,es,el,eu,ed,ef,ep,em,ev,eh,eg,eb,ew=e.zoneItemData.placementId,ey=(0,c.GV)(function(e){return e.features.braze}),ex=!!ey.enabled&&ey.data.personalizedTopicRecommendations,ek=(0,c.GV)(function(e){return e.braze.recommendedTopics}),e_=null!=(eb=ex?ek:v)?eb:[],eC=((0,d.VI)(ew),n=(0,c.GV)(function(e){return e.piano.initialized}),t=(0,c.GV)(function(e){return e.piano.hasSubscription}),A=(0,c.GV)(function(e){var n;return null==(n=e.piano.user)?void 0:n.uid}),T=(0,d.wx)(ew),z=(E=(0,g._)((0,y.useState)(null),2))[0],S=E[1],B=(V=(0,g._)((0,y.useState)([]),2))[0],M=V[1],U=(L=(0,g._)((0,y.useState)(),2))[0],R=L[1],O=(q=(0,g._)((0,y.useState)("idle"),2))[0],F=q[1],G=(D=(0,g._)((0,y.useState)(!1),2))[0],W=D[1],P=(H=(0,g._)((0,y.useState)(!0),2))[0],Y=H[1],$=(Q=(0,g._)((0,y.useState)(),2))[0],X=Q[1],Z=(K=(0,g._)((0,y.useState)(),2))[0],J=K[1],ee=(0,y.useRef)(!1),en=(0,y.useRef)([]),et=(0,y.useRef)("contains"),eo=(0,y.useRef)(void 0),er=(0,y.useRef)(void 0),ei=n&&void 0!==A&&t,ec=(ea="confirming"===O)?B:null!=U?U:[],es=void 0===U&&!ea,el="Follow ".concat(B.length," topic").concat(1===B.length?"":"s"),eu=(0,y.useCallback)(function(){en.current.forEach(function(e){return window.clearTimeout(e)}),en.current=[]},[]),(0,y.useEffect)(function(){n&&void 0===A&&(eu(),(0,d.mH)(ew),eo.current=void 0,er.current=void 0,et.current="contains",S(null),M([]),R(void 0),F("idle"),W(!1),Y(!0),X(void 0),J(void 0))},[eu,n,A,ew]),ed=(0,y.useCallback)(function(e){(0,h._)(function(){var e;return(0,w.YH)(this,function(n){switch(n.label){case 0:return[4,(0,x.UM)()];case 1:return e=n.sent(),[2,new Promise(function(n,t){var o=!1,r=window.setTimeout(function(){o=!0,t(Error("Braze banner refresh timed out"))},1e4);e.requestBannersRefresh((0,d.g$)([ew]),function(){o||(o=!0,window.clearTimeout(r),n())},function(){o||(o=!0,window.clearTimeout(r),t(Error("Braze could not refresh the banner")))})})]}})})().catch(function(n){void 0!==eo.current&&console.error("[Braze] Topic recommendation confirmation request failed",{attempt:e,error:n,placementId:ew})})},[ew]),ef=(0,y.useCallback)(function(e){eu(),eo.current=void 0,et.current="contains",R(e),M([]),F("idle"),A&&(0,_.o)(ew,A),console.info("[Braze] Followed topics confirmed",{followedTopicCount:e.length,placementId:ew})},[eu,A,ew]),ep=(0,y.useCallback)(function(){var e,n,t=null!=(e=eo.current)?e:[],o=null!=(n=er.current)?n:[],r="exact"===et.current?t:(0,b._)(new Set((0,b._)(o).concat((0,b._)(t))));eu(),eo.current=void 0,et.current="contains",R(r),M([]),F("idle"),A&&(0,_.o)(ew,A),console.warn("[Braze] Topic recommendation confirmation expired",{attempts:C.length,expectedTopicCount:t.length,followedTopicCount:o.length,placementId:ew})},[eu,A,ew]),em=(0,y.useCallback)(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"contains";eu(),eo.current=e,et.current=t,F("confirming");var o=Math.max(0,n-Date.now()),r=_.aZ-o,i=C.filter(function(e){return e>r});console.info("[Braze] Topic recommendation confirmation started",{expectedTopicCount:e.length,expiresInSeconds:Math.ceil(o/1e3),placementId:ew,remainingAttempts:i.length});var a=C.flatMap(function(e,n){var t=e-r;return t<=0?[]:[window.setTimeout(function(){void 0!==eo.current&&ed(n+1)},t)]}),c=window.setTimeout(function(){void 0!==eo.current&&ep()},o);en.current=(0,b._)(a).concat([c])},[eu,ep,ew,ed]),ev=(0,y.useCallback)(function(e){if(A){var n=(0,_.AB)(ew,e,A,"exact");(0,k.sq)(),M(e),console.info("[Braze] Followed topics update consumed",{expectedTopicCount:e.length,placementId:ew}),em(e,n.expiresAt,n.confirmationMode)}},[A,ew,em]),(0,y.useEffect)(function(){return function(){eu()}},[eu]),(0,y.useEffect)(function(){if(ei&&void 0===U&&!ea){var e=window.setTimeout(function(){R(function(e){return null!=e?e:[]})},5e3);return function(){return window.clearTimeout(e)}}},[U,ea,ei]),(0,y.useEffect)(function(){if(ei&&A&&void 0===eo.current){var e=(0,k.RP)(A);if(void 0!==e)return void ev(e);var n=(0,_.GC)(ew,A);n&&(M(n.expectedTopicUuids),em(n.expectedTopicUuids,n.expiresAt,n.confirmationMode))}},[ev,ei,A,ew,em]),(0,y.useEffect)(function(){if(ei){var e=function(e){if(e.storageArea===window.localStorage&&e.key===k.wx&&null!==e.newValue){var n=(0,k.Xv)(e.newValue);if(void 0===n){console.error("[Braze] Invalid followed topics update"),(0,k.sq)();return}if(n.pianoUserId!==A)return void(0,k.sq)();ev(n.topicUuids)}};return window.addEventListener("storage",e),function(){return window.removeEventListener("storage",e)}}},[ev,ei,A]),(0,y.useEffect)(function(){if(!ei){ee.current=!1;return}if(!T&&!ee.current){var e,n=!0;return(0,x.lo)(function(t){n&&(e=window.setTimeout(function(){var e;null!=(e=t.getAllBanners())&&e[ew]||(ee.current=!0,t.requestBannersRefresh((0,d.g$)([ew]),void 0,function(){console.error("[Braze] Missing recommendation refresh failed",{placementId:ew})}))},3e3))}),function(){n=!1,window.clearTimeout(e)}}}
1,[T,ei,ew]),eh=(0,y.useCallback)(function(e){S(e)},[]),(0,y.useEffect)(function(){if(z){var e,n=!1,t=function(){void 0!==e&&(window.clearInterval(e),e=void 0)},o=function(e){if(e.source===z.contentWindow){var o,r=e.data;if((null==r?void 0:r.type)==="pr-carousel-state"&&(W(!!r.canPrev),Y(!!r.canNext)),(null==r?void 0:r.type)==="pr-carousel-size"&&"number"==typeof r.height&&J(r.height),(null==r?void 0:r.type)==="pr-carousel-article-click"&&r.title&&(0,p.fo)({storyId:null!=(o=r.storyId)?o:"",title:r.title}),(null==r?void 0:r.type)==="pr-followed-topics-state"&&Array.isArray(r.followedTopicUuids)){n=!0,t();var i,a,c=r.followedTopicUuids.filter(function(e){return"string"==typeof e});er.current=c;var s=eo.current;if(void 0!==s){("exact"===et.current?(i=new Set(c),a=new Set(s),i.size===a.size&&(0,b._)(a).every(function(e){return i.has(e)})):s.every(function(e){return c.includes(e)}))&&ef(c);return}R(c)}}};window.addEventListener("message",o);var r=0,i=function(){var e;r+=1,null==(e=z.contentWindow)||e.postMessage({type:"pr-state-request"},"*")};return i(),e=window.setInterval(function(){n||r>=10?t():i()},500),function(){window.removeEventListener("message",o),t()}}},[z,ef]),{banner:T,bannerHeight:Z,canScrollNext:P,canScrollPrev:G,effectiveFollowedTopicUuids:ec,followLabel:el,followTopicsError:$,isEligibleUser:ei,isFollowTopicsLoading:es,isSavingTopics:"saving"===O,onIframeLoaded:eh,scrollBanner:function(e){var n;(0,p.E2)("prev"===e?"left":"right"),(0,f.A)("carousel_arrow_click",{direction:e,source:"homepage"}),null==z||null==(n=z.contentWindow)||n.postMessage({direction:e,type:"pr-carousel-scroll"},"*")},selectedTopicUuids:B,submitFollowTopics:function(){return(0,h._)(function(){var e,n;return(0,w.YH)(this,function(t){switch(t.label){case 0:if(!A)return[2];(0,p._q)(el),e=(0,b._)(B),(0,f.A)("carousel_follow_topics_click",{source:"homepage",topicCount:e.length}),F("saving"),X(void 0),t.label=1;case 1:var o;return t.trys.push([1,3,,4]),[4,(o=e,(0,h._)(function(){var e,n;return(0,w.YH)(this,function(t){switch(t.label){case 0:return[4,(0,x.UM)()];case 1:if(!(n=(e=t.sent()).getUser()))throw Error("Braze user is unavailable");if(o.map(function(e){return n.addToCustomAttributeArray("followed_topics",e)}).some(function(e){return!e}))throw Error("Braze could not queue all followed topics");return[4,new Promise(function(n,t){var o=!1,r=window.setTimeout(function(){o=!0,t(Error("Braze timed out while saving the followed topics"))},8e3);e.requestImmediateDataFlush(function(e){if(!o){if(o=!0,window.clearTimeout(r),e)return void n();t(Error("Braze could not save the followed topics"))}})})];case 2:return t.sent(),[2]}})})())];case 2:return t.sent(),n=(0,_.AB)(ew,e,A),em(e,n.expiresAt),[3,4];case 3:return console.error("[Braze] Unable to follow topics",t.sent()),eo.current=void 0,et.current="contains",eu(),F("idle"),X("We could not follow those topics. Please try again."),[3,4];case 4:return[2]}})})()},toggleTopic:function(e){(0,p.y1)(e.name),X(void 0);var n=B.includes(e.uuid);(0,f.A)(n?"unfollow_topic":"follow_topic",{source:"homepage",topic:e.name}),M(function(t){return n?t.filter(function(n){return n!==e.uuid}):(0,b._)(t).concat([e.uuid])})}}),eI=eC.banner,eN=eC.bannerHeight,ej=eC.canScrollNext,eA=eC.canScrollPrev,eT=eC.effectiveFollowedTopicUuids,eE=eC.followLabel,ez=eC.followTopicsError,eS=eC.isEligibleUser,eV=eC.isFollowTopicsLoading,eB=eC.isSavingTopics,eM=eC.onIframeLoaded,eL=eC.scrollBanner,eU=eC.selectedTopicUuids,eR=eC.submitFollowTopics,eq=eC.toggleTopic,eO=(0,d.r2)();ex&&(0,d.VI)(eO);var eF=e_.filter(function(e){return eT.includes(e.uuid)}),eD=eT.length>0,eG=eD&&eF.length>0?"Following ".concat((eg=eF.map(function(e){return e.name})).length>2?"".concat(eg.slice(0,2).join(", "),"..."):eg.join(" & ")):"\xa0",eW=!eD&&(eV||e_.length>0||eB),eH="whitespace-nowrap text-sm font-medium text-gray-900 underline",eP=function(){(0,p.CH)(),(0,f.A)("manage_topics_click",{source:"homepage"})};return eS&&ey.enabled&&ey.data.topicsRecommendation?(0,o.jsxs)(m.A,{onEnterEvent:p.OQ,threshold:.9,children:[(0,o.jsx)(s.A,{}),(0,o.jsxs)("section",{className:"w-full px-1 py-5 font-inter",id:ew,children:[(0,o.jsxs)("div",{className:"flex items-end justify-between gap-4",children:[(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("h2",{className:"text-xl font-semibold leading-5 text-gray-900",children:"For You"}),(0,o.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1",children:[(0,o.jsx)("p",{className:"font-merriweather text-sm font-medium text-gray-600",children:eG}),eD&&(0,o.jsx)(u.A,{className:"hidden min-[601px]:inline ".concat(eH),href:j,noStyle:!0,onClick:eP,children:"Manage topics"})]})]}),(0,o.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[eD&&(0,o.jsx)(u.A,{className:"min-[601px]:hidden ".concat(eH),href:j,noStyle:!0,onClick:eP,children:"Manage topics"}),(0,o.jsxs)("div",{className:"hidden gap-2 min-[601px]:flex",children:[(0,o.jsx)("button",{"aria-label":"Scroll to previous stories",className:"flex size-9 items-center justify-center rounded-full border border-gray-300 text-gray-900 transition-colors enabled:hover:border-gray-900 disabled:cursor-not-allowed disabled:opacity-40",disabled:!eA,onClick:function(){return eL("prev")},type:"button",children:(0,o.jsx)(a.y,{icon:r.Wzs})}),(0,o.jsx)("button",{"aria-label":"Scroll to next stories",className:"flex size-9 items-center justify-center rounded-full border border-gray-300 text-gray-900 transition-colors enabled:hover:border-gray-900 disabled:cursor-not-allowed disabled:opacity-40",disabled:!ej,onClick:function(){return eL("next")},type:"button",children:(0,o.jsx)(a.y,{icon:r.XkK})})]})]})]}),eI?(0,o.jsx)("div",{className:N,style:{height:null!=eN?eN:300},children:(0,o.jsx)(l.A,{onIframeLoaded:eM,placementId:ew})}
1):(0,o.jsx)("div",{"aria-hidden":!0,className:"my-4 flex animate-pulse gap-8 overflow-hidden ".concat(N),children:I.map(function(e){return(0,o.jsxs)("div",{className:"w-[76%] shrink-0 min-[601px]:w-[calc((100%-64px)/3)]",children:[(0,o.jsx)("div",{className:"mb-3 aspect-[3/2] w-full rounded-lg bg-gray-200"}),(0,o.jsx)("div",{className:"mb-2 h-4 w-11/12 rounded bg-gray-200"}),(0,o.jsx)("div",{className:"mb-2 h-4 w-3/4 rounded bg-gray-200"}),(0,o.jsx)("div",{className:"mt-3 h-3 w-1/2 rounded bg-gray-200"})]},e)})}),eD&&(0,o.jsx)("div",{"aria-hidden":!0,className:"border-b border-gray-200"}),eW&&(0,o.jsxs)("div",{className:"flex flex-col gap-2 rounded-xl border border-gray-200 p-5",children:[(0,o.jsx)("h3",{className:"text-base font-semibold leading-[24.65px] text-gray-900",children:"Follow topics to personalise your news experience."}),(0,o.jsx)("div",{className:"flex flex-wrap gap-2",children:eV?Array.from({length:6},function(e,n){return(0,o.jsx)("div",{"aria-hidden":!0,className:"h-9 w-24 animate-pulse rounded-full bg-gray-200"},"topic-skeleton-".concat(n))}):e_.map(function(e){var n=eU.includes(e.uuid);return(0,o.jsxs)("button",{"aria-pressed":n,className:(0,i.A)("flex h-9 items-center gap-2 rounded-full border px-3 text-sm font-medium transition-colors",n?"border-gray-900 bg-gray-900 text-white":["border-gray-300 text-gray-900","hover:border-gray-900"]),disabled:eB,onClick:function(){return eq(e)},type:"button",children:[(0,o.jsx)(a.y,{icon:n?r.e68:r.QLR}),e.name]},e.uuid)})}),ez&&(0,o.jsx)("p",{className:"text-sm text-red-700",role:"alert",children:ez}),eU.length>0&&(0,o.jsx)("button",{className:"mt-4 rounded-full bg-gray-900 px-6 py-2.5 text-sm font-semibold text-white min-[601px]:self-start",disabled:eB,onClick:eR,type:"button",children:eB?"Following topicsâ¦":eE})]})]})]}):null}}}]);
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.