1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[594],{14606:(e,n,t)=>{t.d(n,{_:()=>L,e:()=>R});var r,i=t(76367),o=t(30694),a=t(22514),l=t(91167),s=t(98952),u=t(45159),c=t(3976),d=t(36667),f=t(23912),m=t(35409),h=t(90722),v=t(38659),p=t(14695),g=t(86645),b=t(27579),x=t(54429),w=t(84465),y=t(82728);function j(e){var n;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(n=e.as)?n:k)!==u.Fragment||1===u.Children.count(e.children)}var _=(0,u.createContext)(null);_.displayName="TransitionContext";var N=((r=N||{}).Visible="visible",r.Hidden="hidden",r),E=(0,u.createContext)(null);function C(e){return"children"in e?C(e.children):e.current.filter(function(e){return null!==e.el.current}).filter(function(e){return"visible"===e.state}).length>0}function T(e,n){var t=(0,h.Y)(e),r=(0,u.useRef)([]),i=(0,f.a)(),o=(0,c.L)(),a=(0,d._)(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.mK.Hidden,a=r.current.findIndex(function(n){return n.el===e});-1!==a&&((0,w.Y)(n,{[y.mK.Unmount](){r.current.splice(a,1)},[y.mK.Hidden](){r.current[a].state="hidden"}}),o.microTask(function(){var e;!C(r)&&i.current&&(null==(e=t.current)||e.call(t))}))}),s=(0,d._)(function(e){var n=r.current.find(function(n){return n.el===e});return n?"visible"!==n.state&&(n.state="visible"):r.current.push({el:e,state:"visible"}),function(){return a(e,y.mK.Unmount)}}),m=(0,u.useRef)([]),v=(0,u.useRef)(Promise.resolve()),p=(0,u.useRef)({enter:[],leave:[]}),g=(0,d._)(function(e,t,r){m.current.splice(0),n&&(n.chains.current[t]=n.chains.current[t].filter(function(n){return(0,l._)(n,1)[0]!==e})),null==n||n.chains.current[t].push([e,new Promise(function(e){m.current.push(e)})]),null==n||n.chains.current[t].push([e,new Promise(function(e){Promise.all(p.current[t].map(function(e){var n=(0,l._)(e,2);return n[0],n[1]})).then(function(){return e()})}
1)]),"enter"===t?v.current=v.current.then(function(){return null==n?void 0:n.wait.current}).then(function(){return r(t)}):r(t)}),b=(0,d._)(function(e,n,t){Promise.all(p.current[n].splice(0).map(function(e){var n=(0,l._)(e,2);return n[0],n[1]})).then(function(){var e;null==(e=m.current.shift())||e()}).then(function(){return t(n)})});return(0,u.useMemo)(function(){return{children:r,register:s,unregister:a,onStart:g,onStop:b,wait:v,chains:p}},[s,a,r,g,b,p,v])}E.displayName="NestingContext";var k=u.Fragment,A=y.Ac.RenderStrategy,F=(0,y.FX)(function(e,n){var t=e.show,r=e.appear,c=void 0!==r&&r,f=e.unmount,h=(0,a._)(e,["show","appear","unmount"]),g=(0,u.useRef)(null),x=j(e),w=p.P.apply(void 0,(0,s._)(x?[g,n]:null===n?[]:[n]));(0,v.g)();var N=(0,b.O_)();if(void 0===t&&null!==N&&(t=(N&b.Uw.Open)===b.Uw.Open),void 0===t)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var k=(0,l._)((0,u.useState)(t?"visible":"hidden"),2),F=k[0],L=k[1],R=T(function(){t||L("hidden")}),S=(0,l._)((0,u.useState)(!0),2),U=S[0],O=S[1],H=(0,u.useRef)([t]);(0,m.s)(function(){!1!==U&&H.current[H.current.length-1]!==t&&(H.current.push(t),O(!1))},[H,t]);var G=(0,u.useMemo)(function(){return{show:t,appear:c,initial:U}},[t,c,U]);(0,m.s)(function(){t?L("visible"):C(R)||null===g.current||L("hidden")},[t,R]);var K={unmount:void 0===f||f},M=(0,d._)(function(){var n;U&&O(!1),null==(n=e.beforeEnter)||n.call(e)}),Y=(0,d._)(function(){var n;U&&O(!1),null==(n=e.beforeLeave)||n.call(e)}),I=(0,y.Ci)();return u.createElement(E.Provider,{value:R},u.createElement(_.Provider,{value:G},I({ourProps:(0,o._)((0,i._)({},K),{as:u.Fragment,children:u.createElement(P,(0,o._)((0,i._)({ref:w},K,h),{beforeEnter:M,beforeLeave:Y}))}),theirProps:{},defaultTag:u.Fragment,features:A,visible:"visible"===F,name:"Transition"})))}),P=(0,y.FX)(function(e,n){var t,r,o=e.transition,c=void 0===o||o,f=e.beforeEnter,h=e.afterEnter,N=e.beforeLeave,F=e.afterLeave,P=e.enter,L=e.enterFrom,R=e.enterTo,S=e.entered,U=e.leave,O=e.leaveFrom,H=e.leaveTo,G=(0,a._)(e,["transition","beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),K=(0,l._)((0,u.useState)(null),2),M=K[0],Y=K[1],I=(0,u.useRef)(null),V=j(e),B=p.P.apply(void 0,(0,s._)(V?[I,n,Y]:null===n?[]:[n])),D=null==(t=G.unmount)||t?y.mK.Unmount:y.mK.Hidden,z=function(){var e=(0,u.useContext)(_);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),Q=z.show,X=z.appear,Z=z.initial,$=(0,l._)((0,u.useState)(Q?"visible":"hidden"),2),q=$[0],W=$[1],J=function(){var e=(0,u.useContext)(E);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),ee=J.register,en=J.unregister;(0,m.s)(function(){return ee(I)},[ee,I]),(0,m.s)(function(){if(D===y.mK.Hidden&&I.current)return Q&&"visible"!==q?void W("visible"):(0,w.Y)(q,{hidden:function(){return en(I)},visible:function(){return ee(I)}})},[q,I,ee,en,Q,D]);var et=(0,v.g)();(0,m.s)(function(){if(V&&et&&"visible"===q&&null===I.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[I,q,et,V]);var er=Z&&!X,ei=X&&Q&&Z,eo=(0,u.useRef)(!1),ea=T(function(){eo.current||(W("hidden"),en(I))},J),el=(0,d._)(function(e){eo.current=!0,ea.onStart(I,e?"enter":"leave",function(e){"enter"===e?null==f||f():"leave"===e&&(null==N||N())})}),es=(0,d._)(function(e){var n=e?"enter":"leave";eo.current=!1,ea.onStop(I,n,function(e){"enter"===e?null==h||h():"leave"===e&&(null==F||F())}),"leave"!==n||C(ea)||(W("hidden"),en(I))});(0,u.useEffect)(function(){V&&c||(el(Q),es(Q))},[Q,V,c]);var eu=!(!c||!V||!et||er),ec=(0,l._)((0,g.p)(eu,M,Q,{start:el,end:es}),2)[1],ed=(0,y.oE)((0,i._)({ref:B,className:(null==(r=(0,x.x)(G.className,ei&&P,ei&&L,ec.enter&&P,ec.enter&&ec.closed&&L,ec.enter&&!ec.closed&&R,ec.leave&&U,ec.leave&&!ec.closed&&O,ec.leave&&ec.closed&&H,!ec.transition&&Q&&S))?void 0:r.trim())||void 0},(0,g.B)(ec))),ef=0;"visible"===q&&(ef|=b.Uw.Open),"hidden"===q&&(ef|=b.Uw.Closed),ec.enter&&(ef|=b.Uw.Opening),ec.leave&&(ef|=b.Uw.Closing);var em=(0,y.Ci)();return u.createElement(E.Provider,{value:ea},u.createElement(b.El,{value:ef},em({ourProps:ed,theirProps:G,defaultTag:k,features:A,visible:"visible"===q,name:"Transition.Child"})))}),L=(0,y.FX)(function(e,n){var t=null!==(0,u.useContext)(_),r=null!==(0,b.O_)();return u.createElement(u.Fragment,null,!t&&r?u.createElement(F,(0,i._)({ref:n},e)):u.createElement(P,(0,i._)({ref:n},e)))}),R=Object.assign(F,{Child:L,Root:F})},16983:(e,n,t)=>{t.r(n),t.d(n,{default:()=>P});var r=t(60143),i=t(92584),o=t(29722),a=t(45159),l=t(54166),s=t(62715),u=t(98165),c=t(90330),d=t(80293),f=t(70172),m=t(61874),h=t(29228),v=t(65389),p=t(64095),g=t(91464),b=t(66877),x=t(86300),w=t(3522),y=["row-1","row-2","row-3","row-4"],j=[{key:"pill-1",width:"w-28"},{key:"pill-2",width:"w-40"},{key:"pill-3",width:"w-24"},{key:"pill-4",width:"w-36"},{key:"pill-5",width:"w-32"},{key:"pill-6",width:"w-28"},{key:"pill-7",width:"w-44"},{key:"pill-8",width:"w-24"}];function _(e){var n=e.children;return(0,r.jsx)("section",{className:"flex flex-col gap-7 rounded-xl border border-gray-200 bg-white p-4 shadow-sm md:p-10",children:n})}function N(e){var n=e.children;return(0,r.jsx)("div",{className:"py-4",children:n})}function E(e){var n=e.children;return(0,r.jsx)("h2",{className:"font-inter text-2xl font-semibold leading-5 text-gray-900",children:n})}function C(e){var n=e.children;return(0,r.jsx)("p",{className:"mt-4 font-inter text-sm font-normal leading-normal text-gray-600",children:n})}function T(e){var n=e.onUnfollow,t=e.topic;return(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4 border-b border-gray-200 py-3 last:border-b-0 last:pb-0",children:[(0,r.jsx)("span",{className:"font-inter text-base font-semibold leading-5 text-gray-900",children:t.label}),(0,r.jsxs)("button",{"aria-label":"Unfollow ".concat(t.label),className:"flex h-7 shrink-0 items-center justify-center gap-2 rounded-full bg-gray-800 px-3 font-inter text-sm font-medium leading-5 text-white transition-opacity hover:opacity-80",onClick:function(){return n(t)},type:"button",children:[(0,r.jsx)(l.y,{icon:i.e68}),"Added"]})]})}function k(e){var n=e.topic;
1return(0,r.jsxs)("div",{"aria-hidden":!0,className:"flex h-10 animate-pulse items-center justify-center gap-2 rounded-full border border-gray-200 bg-gray-200 px-5 font-inter text-base font-medium leading-5 text-transparent",children:[(0,r.jsx)(l.y,{icon:i.QLR}),n.label]})}function A(e){var n=e.disabled,t=e.onFollow,a=e.topic;return(0,r.jsxs)("button",{"aria-label":"Follow ".concat(a.label),className:(0,o.A)("flex h-10 items-center justify-center gap-2 rounded-full border border-gray-300 bg-white px-5 font-inter text-base font-medium leading-5 text-gray-900 transition-colors",n?"cursor-not-allowed opacity-40":"hover:border-gray-900"),disabled:n,onClick:function(){return t(a)},type:"button",children:[(0,r.jsx)(l.y,{icon:i.QLR}),a.label]})}function F(){return(0,r.jsxs)("div",{"aria-hidden":!0,className:"animate-pulse font-inter",children:[(0,r.jsx)("div",{className:"h-5 w-56 rounded bg-gray-200"}),(0,r.jsxs)("div",{className:"mb-10 mt-6 flex flex-col gap-10",children:[(0,r.jsxs)(_,{children:[(0,r.jsxs)(N,{children:[(0,r.jsx)("div",{className:"h-6 w-64 rounded bg-gray-200"}),(0,r.jsx)("div",{className:"mt-3 h-4 w-full max-w-md rounded bg-gray-200"})]}),(0,r.jsx)("div",{children:y.map(function(e){return(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4 border-b border-gray-200 py-3 last:border-b-0 last:pb-0",children:[(0,r.jsx)("div",{className:"h-5 w-40 rounded bg-gray-200"}),(0,r.jsx)("div",{className:"h-7 w-20 shrink-0 rounded-full bg-gray-200"})]},e)})})]}),(0,r.jsxs)(_,{children:[(0,r.jsxs)(N,{children:[(0,r.jsx)("div",{className:"h-6 w-48 rounded bg-gray-200"}),(0,r.jsx)("div",{className:"mt-3 h-4 w-full max-w-md rounded bg-gray-200"})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-3",children:j.map(function(e){return(0,r.jsx)("div",{className:"h-10 rounded-full bg-gray-200 ".concat(e.width)},e.key)})})]})]})]})}let P=function(){var e,n,t,i,o=(0,s.GV)(function(e){return e.page}),l=(0,s.GV)(function(e){return e.conf.mode}),y=(0,s.GV)(function(e){return e.features.braze}),j=(0,s.GV)(function(e){return e.piano}),P=j.hasSubscription,L=j.initialized,R=j.subscribeButtonHref,S=j.user,U=l===u.G9.EDIT,O=!!S&&!U&&P,H=(0,h.O)(O),G=H.followedUuids,K=H.loaded,M=H.setFollowing,Y=H.unavailable,I=(0,w.S_)();(0,a.useEffect)(function(){if(!U&&L&&!S){(0,p.Gd)("Not logged in. Please log in to access the Manage Topics page.",{id:"manage-topics-logged-out"});var e=window.setTimeout(function(){(0,p.jL)()},2500);return function(){return window.clearTimeout(e)}}},[U,L,S]),(0,a.useEffect)(function(){if(!U&&L&&S&&!P){(0,p.Gd)("You need a paid account to use this feature.",{id:"manage-topics-non-subscriber"});var e=window.setTimeout(function(){(0,b.hd)(null!=R?R:"/subscribe/",b.md)},2500);return function(){return window.clearTimeout(e)}}},[P,U,L,R,S]);var V=null!=(i=y.enabled?y.data.topics:void 0)?i:[],B=V.filter(function(e){return G.includes(e.uuid)}),D=V.filter(function(e){return!G.includes(e.uuid)}),z=(0,a.useCallback)(function(e){(0,x.Y$)(e.label),(0,g.A)("follow_topic",{source:"manage_topics",topic:e.label}),M(e.uuid,!0).catch(console.error)},[M]),Q=(0,a.useCallback)(function(e){(0,x.ss)(e.label),(0,g.A)("unfollow_topic",{source:"manage_topics",topic:e.label}),M(e.uuid,!1).catch(console.error)},[M]);return(0,r.jsx)(d.A,{showNavigationAd:!1,showStickyFooterAd:!0,children:(0,r.jsxs)(c.A,{className:"mx-auto mt-4 md:mt-10",noGutter:!0,children:[(0,r.jsx)(m.A,{name:v.Oo.TOP}),(0,r.jsxs)("div",{className:"mx-auto w-full max-w-968 px-4 font-inter md:px-6 xl:px-0",children:[(0,r.jsx)(f.A,{show:o.showHeading,text:o.name}),O||U?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"text-base font-normal leading-normal text-gray-600",children:[I.toLocaleDateString("en-US",{day:"numeric",month:"short",timeZone:"Australia/Sydney"})," ⢠",(0,w.g_)(I.getHours()),(null==S?void 0:S.given_name)?", ".concat(S.given_name):""]}),(0,r.jsxs)("div",{className:"mb-10 mt-6 flex flex-col gap-10",children:[(0,r.jsxs)(_,{children:[(0,r.jsxs)(N,{children:[(0,r.jsxs)(E,{children:["Topics you follow (",B.length,")"]}),(0,r.jsx)(C,{children:(n=(e={followedCount:B.length,loaded:K,unavailable:Y}).followedCount,t=e.loaded,e.unavailable?"We couldn't load the topics you follow. Please refresh the page to try again.":t?0===n?"You aren't following any topics yet. Add one below to personalise your news.":"Topics you're currently following. Remove any you're no longer interested in.":"Loading the topics you followâ¦")})]}),(0,r.jsx)("div",{children:B.map(function(e){return(0,r.jsx)(T,{onUnfollow:Q,topic:e},e.uuid)})})]}),(0,r.jsxs)(_,{children:[(0,r.jsxs)(N,{children:[(0,r.jsx)(E,{children:"Suggested topics"}),(0,r.jsx)(C,{children:"Select topics that interest you & we will personalise your news."})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-3",children:K||Y?D.map(function(e){return(0,r.jsx)(A,{disabled:!K,onFollow:z,topic:e},e.uuid)}):V.map(function(e){return(0,r.jsx)(k,{topic:e},e.uuid)})})]})]})]}):(0,r.jsx)(F,{})]})]})})}},23912:(e,n,t)=>{t.d(n,{a:()=>o});var r=t(45159),i=t(35409);function o(){var e=(0,r.useRef)(!1);return(0,i.s)(function(){return e.current=!0,function(){e.current=!1}},[]),e}},66877:(e,n,t)=>{t.d(n,{hd:()=>o,md:()=>r,yh:()=>i});var r="cta_modal",i="cta_pill";function o(e,n){var t=new URL(e,window.location.href);t.searchParams.set("perso_source","index"),t.searchParams.set("perso_medium",n),t.searchParams.set("perso_campaign","personalisation"),window.location.href=t.href}},70172:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(60143),i=t(29722);function o(e){var n=e.className,t=e.show,o=e.text;return t&&o?(0,r.jsx)("h1",{className:(0,i.A)("font-inter text-3xl font-bold text-gray-900 md:text-5xl",void 0===n?"mb-4 md:mb-5":n),children:o}):null}},86300:(e,n,t)=>{t.d(n,{CH:()=>m,E2:()=>c,OQ:()=>s,Y$:()=>v,_q:()=>d,fo:()=>f,pU:()=>p,ss:()=>h,y1:()=>u});var r=t(63233),i="carousel",o="for you",a="list";function l(e){(0,r.CI)({data:e,event:"personalisation_interactions"})}function s(){l({action:"impression",category:i})}function u(e){l({action:"click",category:i,label:e,section:o,type:"pill"})}function c(e){u(e)}function d(e){u(e.toLowerCase())}function f(e){var n=e.storyId;l({action:"click",category:i,label:e.title,section:o,story_id:String(n),type:"article"})}function m(){l({action:"click",category:i,label:"Manage Topics",section:o,type:"navigation"})}function h(e){l({action:"click",category:a,label:e,section:"manage topics",type:"remove"})}function v(e){l({action:"click",category:a,label:e,section:"suggested topics",type:"add"})}function p(){l({action:"click",label:"follow",type:"follow_topic"})}},91464:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(1438);function i(e,n){(0,r.UM)().then(function(t){t.logCustomEvent(e,n)||console.error("[Braze] Could not log custom event: ".concat(e))}).catch(console.error)}},94831:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(22514),i=t(91167),o=t(19927),a=t(45159);let l=a.forwardRef(function(e,n){var t=(0,o._)([e,n]),l=t[0],s=t.slice(1),u=l.title,c=l.titleId,d=(0,r._)(l,["title","titleId"]),f=(0,i._)(s,1)[0];return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":c},d),u?a.createElement("title",{id:c},u):null,a.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))})}}]);
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.