1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4476],{2028:(e,r,t)=>{t.d(r,{$:()=>$});var l=t(54568),i=t(12595),n=t(7620),o=t(62142),a=t(25469),s=t(75477);let d=(0,i.createStyledContext)({variant:"primary",disabled:!1,loading:!1}),c=(0,i.styled)(o.$n,{alignItems:"center",color:"$white",context:d,flexDirection:"row",justifyContent:"center",minWidth:"$56",name:"Button",paddingHorizontal:"$20",paddingVertical:"$8",unstyled:!0,cursor:"pointer",$lg:{paddingHorizontal:"$20",paddingVertical:"$8"},variants:{variant:{primary:(e,{props:r})=>({backgroundColor:r.disabled?"$grey_25":"$orange_600",hoverStyle:{backgroundColor:"$orange_700"},pressStyle:{backgroundColor:"$orange_500"}}),secondary:(e,{props:r})=>({color:r.disabled?"$white":"$grey_600",borderWidth:2,minHeight:"$56",backgroundColor:r.disabled?"$grey_25":"$white",borderColor:"grey_500",hoverStyle:{backgroundColor:"$orange_blossom_primary"},pressStyle:{backgroundColor:"$seville_tint_primary"}}),cta:(e,{props:r})=>({backgroundColor:r.disabled?"$light_grey_primary":"$seville_primary",borderRadius:"$30",hoverStyle:{backgroundColor:"$seville_dark_primary"},minHeight:"$48",paddingVertical:"$11",paddingHorizontal:"$24",pressStyle:{backgroundColor:"$seville_light_primary"},$lg:{minHeight:"$56",paddingHorizontal:"$32",paddingVertical:"$16"}}),cta_large:(e,{props:r})=>({backgroundColor:r.disabled?"$light_grey_primary":"$seville_primary",borderRadius:"$30",height:"$60",hoverStyle:{backgroundColor:"$seville_dark_primary"},paddingHorizontal:"$32",paddingVertical:"$17",pressStyle:{backgroundColor:"$seville_light_primary"}}),cta_sale:(e,{props:r})=>({backgroundColor:r.disabled?"$light_grey_primary":"$green_200",borderRadius:"$30",color:"$black",hoverStyle:{backgroundColor:"$green_200"},minHeight:"$48",paddingVertical:"$11",paddingHorizontal:"$24",pressStyle:{backgroundColor:"$red_200_tint"},$lg:{minHeight:"$56",paddingHorizontal:"$32",paddingVertical:"$16"}}),icon:{paddingHorizontal:0,paddingVertical:0,borderWidth:0,justifyContent:"center",alignItems:"center"}},disabled:{true:{cursor:"not-allowed"},false:{cursor:"pointer"}},withIcon:{true:{paddingLeft:"$24",paddingRight:"$26"},false:{}},radius:{false:{borderRadius:0},true:{borderRadius:"$30"}}},defaultVariants:{variant:"primary",disabled:!1,withIcon:!1,radius:!1}}),g=(0,n.forwardRef)(({loading:e,disabled:r,children:t,icon:i,iconAfter:n,...o},s)=>(0,l.jsx)(d.Provider,{loading:e,children:(0,l.jsxs)(c,{role:"button",...o,ref:s,disabled:r||e,alignItems:"center",withIcon:!!i||!!n,accessible:!0,children:[e&&(0,l.jsx)(a.y,{color:"$color"}),!e&&i,t,!e&&n]})}));g.displayName="ButtonComponent";let h=(0,i.styled)(s.x,{name:"ButtonText",context:d,color:"$white",userSelect:"none",variants:{variant:{primary:{color:"$white"},secondary:(e,{props:r})=>({color:r.disabled?"$white":"$grey_600"})},disabled:{true:{},false:{}},loading:{true:{},false:{}}}}),$=(0,i.withStaticProperties)(g,{Props:d.Provider,Text:h})},2846:(e,r,t)=>{t.d(r,{M:()=>i});var l=t(5974);let i=(0,l.createServerReference)("602cd33609f964e440f94936940c055b38bfed80e6",l.callServer,void 0,l.findSourceMapURL,"postUserPreferences")},4476:(e,r,t)=>{t.d(r,{q:()=>F});var l=t(54568),i=t(2846),n=t(22062),o=t(17947),a=t(7620),s=t(42584),d=t(54076),c=t(25469),g=t(30770),h=t(59902),$=t(97486),x=t(2028),u=t(43742),m=t(32165),p=t(73105),y=t(42288),f=t(42694),b=t(22548),j=t(77158),_=t(5564),S=t(93031),w=t(50457);let C=({title:e,description:r,frequency:t,backgroundColor:i,onToggle:n,defaultSelected:o=!1,newsletterKey:s,isArticle:c=!1})=>{let[h,x]=(0,a.useState)(o),u=(e,r)=>{if("string"==typeof e&&e.startsWith("$")){let t=e.slice(1);return w.T[t]??r??e}return e??r},m=u("$grey_600",w.T.grey_600),p=u("$white",w.T.white),y=u(i,i),f=async()=>{n&&n?.(s,!h),x(e=>!e)};return(0,l.jsx)(g.Se,{width:"100%",backgroundColor:y,paddingHorizontal:"$8",paddingTop:"$8",paddingBottom:"$16",$lg:{paddingHorizontal:"$16",paddingTop:"$16",paddingBottom:"$16"},flex:1,children:(0,l.jsx)(b.default,{accessibilityRole:"button","aria-label":`Toggle ${e} newsletter subscription`,onPress:()=>f(),testID:"comms-opt-button",style:{flex:1},children:(0,l.jsxs)(g.lW,{gap:"$8",alignItems:"center",flex:1,$xl:{alignItems:"flex-start"},children:[(0,l.jsxs)(g.Se,{gap:"$8",flex:1,children:[(0,l.jsx)(g.lW,{children:(0,l.jsx)($.a,{"aria-label":`Newsletter title: ${e}`,textAlign:"left",fontWeight:700,color:m,children:e})}),t&&(0,l.jsx)(g.lW,{gap:"$4",children:t.map((e,r)=>(0,l.jsx)($.a,{fontFamily:"$caslonDoric",lineHeight:"$24",fontSize:"$14",borderRadius:"$14",backgroundColor:e.isActive?p:"$colorTransparent",padding:"$6",width:"$32",textAlign:"center",color:m,children:e.letter},`${e}-${r}`))}),(0,l.jsx)(d.View,{display:"none",$xl:{display:"flex"},marginBottom:"$8",children:r&&(0,l.jsx)($.a,{display:"none",$xl:{display:"block"},textAlign:"left",flexShrink:1,color:m,children:r})})]}),h?(0,l.jsx)(j.M,{size:"$32","aria-label":`${e} selected`,alignItems:"center",justifyContent:"center",$xl:{alignSelf:c?"center":"flex-end"},children:(0,l.jsx)(S.A,{"aria-label":"Selected",color:m})}):(0,l.jsx)(j.M,{size:"$32","aria-label":`${e} not selected`,alignItems:"center",justifyContent:"center",$xl:{alignSelf:c?"center":"flex-end"},children:(0,l.jsx)(_.A,{"aria-label":"Add",color:m})})]})})})};
1var v=t(67832),W=t(61550),E=t(86143),L=t(81001);let T=(0,d.styled)(g.Se,{alignSelf:"center",variants:{type:{article:{padding:"$24",$md:{padding:"$32"},$lg:{padding:"$48"}},page:{}}},width:"100%"});var k=t(90850),H=t(11213),I=t(50843),A=t(68402),R=t(68728),B=t(17031),O=t(19053),z=t(73891),V=t(22890),M=t(6818),P=t(69413),N=t(48648),D=t(85266);let F=({isArticle:e=!1,topic:r,secondaryTopic:t,journalists:b})=>{let j=(0,d.useTheme)(),[_,S]=(0,a.useState)(new Set),[F,Z]=(0,a.useState)(!1),[K,X]=(0,a.useState)(!1),[G,U]=(0,a.useState)(!1),Y=(0,a.useRef)(null),q=(0,a.useRef)(0),[Q,J]=(0,a.useState)(!1),{openDialog:ee,closeDialog:er}=(0,L.b)(),{currentUser:et}=(0,A.As)(),el=(0,M.r)(),ei=(0,P.a)(),en=(0,R.jE)(),eo="/newsletters"===ei,ea=(0,D.X)(j.background_secondary??j.background_primary,w.r.newsletterBackground),es=(0,D.X)(j.text_primary,w.r.textPrimary),ed=eo?(0,D.X)(j.background_secondary,w.T.background_secondary):(0,D.X)(j.grey_75,w.T.grey_75),ec=eo?(0,D.X)(j.background_secondary,w.T.background_secondary):(0,D.X)(j.grey_75,w.T.grey_75),eg=(0,D.X)(j.text_primary,w.r.textPrimary),eh=(0,D.X)(j.text_primary,w.r.textPrimary),{isError:e$,error:ex,isLoading:eu,data:em}=(0,B.I)({queryKey:["user_preferences"],queryFn:()=>(0,z.o)(encodeURIComponent(et?.email||"")),enabled:!!et?.email}),{mutateAsync:ep,isPending:ey}=(0,O.n)({mutationFn:({email:e,payload:r})=>(0,i.M)(e,r),onSuccess:()=>{en.invalidateQueries({queryKey:["user_preferences"]})}}),{control:ef,handleSubmit:eb,setValue:ej,formState:{errors:e_}}=(0,s.mN)({mode:"onBlur",defaultValues:{email:""}}),eS=(0,a.useMemo)(()=>{if(eo)return W.$w;if(e){let e=(0,E.Ze)(r,t,b?.map(e=>e.slug));return W.$w.filter(r=>r.newsletterKey===e)}return W.$w.slice(0,4)},[eo,e,r,t,b]),ew=(0,a.useCallback)(async({email:e})=>{let r={};et?U(_.size<q.current):U(!1),et?(r=Object.fromEntries(eS.map(e=>[e.newsletterKey,_.has(e.newsletterKey)]))).MARKETING=F:(r=Object.fromEntries(Array.from(_).map(e=>[e,!0])),F&&(r.MARKETING=!0));let t=Array.from(_);n.ex.dispatch({type:"newsletter_opt_in",listNames:t}),await ep({email:e,payload:r}),et&&(q.current=_.size),X(!0),et||Z(!1)},[F,_,et,eS,ep]),eC=(e,r)=>{X(!1),U(!1),J(!0),S(t=>{let l=new Set(t);return r?l.add(e):l.delete(e),l})},ev=(0,a.useMemo)(()=>K?(0,l.jsxs)(g.lW,{borderTopWidth:4,borderTopColor:"$orange_600",backgroundColor:ec,justifyContent:"center",alignItems:"center",children:[(0,l.jsx)(T,{width:"100%",flex:1,maxWidth:"$maxContentWidth",marginBottom:"$0",children:(0,l.jsx)(f.d,{unsubscribe:G})}),!eo&&(0,l.jsx)(x.$,{"aria-label":"Close",variant:"icon",onPress:()=>{J(!1)},alignSelf:"flex-start",icon:(0,l.jsx)(I.b,{width:32,height:32,color:eg}),padding:0,marginTop:"$16",cursor:"pointer"})]}):(0,l.jsxs)(g.lW,{borderTopWidth:4*!eo,borderTopColor:"$orange_600",backgroundColor:ed,justifyContent:"center",alignItems:"center",children:[(0,l.jsxs)(T,{width:"100%",flex:1,padding:eo?"$0":"$32",maxWidth:"$maxContentWidth",margin:0,children:[(0,l.jsxs)($.a,{color:eg,children:[_.size," ",et?`newsletter${_.size>1?"s":""} selected.`:o.Wb.A_]}),(!et||et.isAnonymous)&&(0,l.jsx)(s.xI,{control:ef,name:"email",rules:{required:o.Wb.pA,pattern:{value:W.LQ,message:o.Wb.oU}},render:({field:{onChange:e,onBlur:r,value:t}})=>(0,l.jsx)(p.p,{errorMessage:e_.email?.message,id:"newsletter-email",marginTop:"$16",onBlur:r,onChangeText:e,placeholder:"Your email",textContentType:"emailAddress",value:t,backgroundColor:ea,maxWidth:486})}),(0,l.jsx)(x.$,{"aria-label":"Signup Button",variant:"primary",alignSelf:"flex-start",mt:"$8",mb:"$16",height:"$48",disabled:!!e_.email||ey,onPress:eb(ew),children:et?"Confirm selection":o.Wb.HL}),(0,l.jsx)(m.S,{checked:F,onCheckedChange:()=>Z(e=>!e),size:"$20",label:o.Wb.sm,labelColor:eh})]}),!eo&&(0,l.jsx)(x.$,{"aria-label":"Close",variant:"icon",onPress:()=>J(!1),alignSelf:"flex-start",icon:(0,l.jsx)(I.b,{width:32,height:32,color:eg}),padding:0,marginTop:"$32",cursor:"pointer"})]}),[_.size,ef,e_.email,eb,ew,K,et,F,G]);return((0,a.useEffect)(()=>(Q&&!eo?ee(ev,{snapPointsMode:"fit",moveOnKeyboardChange:!0,onOpenChange:J}):er(),()=>{er()}),[Q,ev,_,ee,er,J,eo]),(0,a.useEffect)(()=>{et?.email&&ej("email",et.email)},[et]),(0,a.useEffect)(()=>
1{if(em){let e=eS.map(e=>e.newsletterKey).filter(e=>!0===em[e]);S(new Set(e)),q.current=e.length,Z(!!em.MARKETING)}},[em,eS]),e$)?(console.error("Error fetching user preferences:",ex),(0,l.jsx)(V.M,{message:"Page not found"})):eu?(0,l.jsx)(c.y,{}):(0,l.jsxs)(T,{gap:"$8",paddingVertical:24*!!e,paddingHorizontal:24*!!e,$lg:{paddingVertical:48*!!e,paddingHorizontal:48*!!e},ref:Y,children:[(0,l.jsxs)(g.Se,{borderTopColor:eo?"unset":"$seville_primary_light",borderTopWidth:+!eo,paddingVertical:16*!!e,$lg:{paddingVertical:14*!!e},children:[!e&&(0,l.jsx)(k.H3,{tag:eo?"h1":"h3",fontWeight:"$700",children:o.Wb.DD}),!e&&(0,l.jsx)(H.H4,{tag:eo?"h2":"h4",marginBottom:"$8",color:"$grey_600",children:o.Wb.VA}),e&&(0,l.jsx)(N.H5,{tag:"h3",fontWeight:"$700",children:o.Wb.ZY})]}),(0,l.jsx)(d.Stack,{flexDirection:"row",flexWrap:"wrap",marginTop:"$16",marginHorizontal:-4,gap:"$8",$lg:{gap:e?"$24":"$8"},children:eS.map((r,t)=>(0,l.jsx)(d.Stack,{flexBasis:"100%",$lg:{flexBasis:e?"100%":"50%"},$xl:{flexBasis:e?"100%":"25%"},children:(0,l.jsx)(C,{...r,onToggle:eC,isArticle:e,defaultSelected:em?.[r.newsletterKey]===!0})},t))}),!eo&&(0,l.jsx)(u.Z,{marginTop:"$8",marginBottom:"$16",iconAfter:(0,l.jsx)(v.Q,{color:es,width:30,height:15}),lineColor:"$orange_600",cursor:"pointer",alignSelf:"flex-start",href:"/newsletters",onPress:()=>el.push("/newsletters"),children:(0,l.jsx)(u.Z.Text,{children:o.ju.Vc})}),(0,l.jsxs)(y.W,{color:es,borderBottomColor:"$seville_primary",borderBottomWidth:+!eo,paddingBottom:16,children:[o.Wb.zf,(0,l.jsx)(h.M,{"aria-label":"Privacy Policy Link",href:`${W.bw.PRIVACY_DATA_USAGE_AND_COOKIE_POLICY}`,fontSize:"$14",lineHeight:"$20",fontFamily:"$caslonDoric",fontWeight:"$400",color:es,unstyled:!1,children:o.Wb.hM})]}),eo&&ev]})}},5564:(e,r,t)=>{t.d(r,{A:()=>n});var l=t(54568),i=t(5595);let n=({color:e="#333333",...r})=>{let{accessible:t=!0,...n}=r;return(0,l.jsxs)(i.Ay,{role:"img",accessible:t,"data-testid":"comms-plus",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",...n,children:[(0,l.jsx)(i.jl,{cx:"20",cy:"20",r:"19.5",stroke:e}),(0,l.jsx)(i.wA,{d:"M20.833 19.166L30 19.167V20.833H20.833V30H19.167V20.833H10V19.166H19.167V10H20.833V19.166Z",fill:e})]})}},8762:(e,r,t)=>{t.d(r,{B:()=>n});var l=t(54076),i=t(50481);let n=(0,l.styled)(i.f,{color:"$grey_600",accessible:!0,accessibilityRole:"text",fontFamily:"$caslonDoric",fontWeight:"$400",fontSize:"$14",lineHeight:"$20",$lg:{fontSize:"$16",lineHeight:"$20"}})},10428:(e,r,t)=>{t.d(r,{S:()=>g});var l=t(54568),i=t(7620),n=t(54076),o=t(8114),a=t(30770),s=t(45367),d=t(83576);let c=(0,n.styled)(o.JU,{flex:1,cursor:"pointer",accessible:!0,accessibilityRole:"text",color:"$grey_600",fontFamily:"$caslonDoric",fontWeight:"$400",fontSize:"$14",lineHeight:"$20",$lg:{fontSize:"$16",lineHeight:"$20"}}),g=({size:e="$16",label:r="Accept terms and conditions",checked:t,onCheckedChange:n,defaultChecked:o,labelColor:g,...h})=>{let $=`checkbox-${(0,i.useId)()}`,[x,u]=(0,i.useState)(o||!1),m=void 0!==t,p=m?t:x;return(0,l.jsxs)(a.lW,{gap:"$12",alignItems:"center",children:[(0,l.jsx)(s.Sc,{accessible:!0,backgroundColor:p?"$orange_700":"$white",borderColor:p?"$orange_700":"$grey_500",borderRadius:"0",borderStyle:"solid",borderWidth:2,checked:p,height:e,hoverStyle:{borderColor:p?"$orange_700":"$grey_500"},id:$,onCheckedChange:e=>{m||u(e),n?.(e)},width:e,...h,children:(0,l.jsx)(s.Sc.Indicator,{children:(0,l.jsx)(d.S,{color:"white"})})},`checkbox-${$}-${p}`),(0,l.jsx)(c,{htmlFor:$,color:g,children:r})]})}},11213:(e,r,t)=>{t.d(r,{H4:()=>n});var l=t(54076),i=t(90830);let n=(0,l.styled)(i.H4,{accessible:!0,color:"$text_primary",fontWeight:"$400",fontFamily:"$caslonIonic",fontSize:"$22",lineHeight:"$29",defaultVariants:{},variants:{weight:{light:{fontWeight:300}}},$lg:{fontSize:"$26",lineHeight:"$34"}})},12366:(e,r,t)=>{t.d(r,{WA:()=>i,TF:()=>n,yb:()=>o,Oj:()=>s,N_:()=>a});var l=t(17947);let i=e=>/[a-z]/.test(e),n=e=>e.length>=12,o=e=>/\d/.test(e),a=e=>/[A-Z]/.test(e),s=e=>!!(i(e)&&n(e)&&o(e)&&a(e))||l.Wp.Oj},17942:(e,r,t)=>{t.d(r,{K:()=>l.K});var l=t(83619)},22890:(e,r,t)=>{t.d(r,{M:()=>l.NotFound});
1var l=t(28781)},28781:(e,r,t)=>{t.d(r,{NotFound:()=>$});var l=t(54568),i=t(7620),n=t(69413),o=t(30770),a=t(84975),s=t(17947),d=t(59902),c=t(97486),g=t(32815),h=t(61550);let $=({message:e})=>{let r=(0,n.a)(),t=e||s.z3.B.D,$=t.split("\n").filter(e=>e.trim());return(0,i.useEffect)(()=>{(0,a.$s)("ui_error",{error_type:"404",message:t,url:r||""})},[t,r]),(0,l.jsxs)(o.Se,{flex:1,height:400,$lg:{height:450},$xl:{height:450},$md:{height:400},width:"100%",justifyContent:"center",alignItems:"center",paddingHorizontal:"$16",gap:"$8",children:[(0,l.jsx)(o.Se,{gap:"$12",marginBottom:"$32",alignItems:"center",maxWidth:600,children:$.map((e,r)=>0===r?(0,l.jsx)(g.H2,{textAlign:"center",children:e},r):(0,l.jsx)(c.a,{textAlign:"center",children:e},r))}),(0,l.jsx)(d.M,{href:h.bw.HOME,children:s.z3.B.l})]})}},32165:(e,r,t)=>{t.d(r,{S:()=>l.S});var l=t(10428)},32815:(e,r,t)=>{t.d(r,{H2:()=>n});var l=t(54076),i=t(90830);let n=(0,l.styled)(i.H2,{accessible:!0,color:"$text_primary",fontWeight:"$400",fontFamily:"$caslonIonic",fontSize:"$28",lineHeight:"$36",variants:{},defaultVariants:{},$lg:{fontSize:"$42",lineHeight:"$55"}})},42694:(e,r,t)=>{t.d(r,{d:()=>$});var l=t(54568),i=t(54076),n=t(30770),o=t(69413),a=t(97486),s=t(48648),d=t(5595);let c=({fill:e="#333333",...r})=>(0,l.jsx)(d.BS,{width:"62",height:"49",viewBox:"0 0 62 49",fill:"none",...r,children:(0,l.jsx)(d.wA,{d:"M0 0V49H62V0H0ZM2.81345 13.3757L19.9286 24.5133L2.81345 35.6509V13.3757ZM59.1866 43.2447H2.81345V38.5286L22.1429 25.9521L31 31.7075L39.8571 25.9521L59.1866 38.5286V43.2447ZM59.1866 35.6509L42.0714 24.5133L59.1866 13.3757V35.6509ZM59.1866 10.2316L31 25.9521L2.81345 10.2316V2.87765H59.1866V10.205V10.2316Z",fill:e})});var g=t(50457),h=t(85266);let $=({unsubscribe:e})=>{let r=(0,i.useTheme)(),t="/newsletters"===(0,o.a)()?(0,h.X)(r.background_secondary,g.T.background_secondary):(0,h.X)(r.grey_75,g.T.grey_75);return(0,l.jsx)(i.View,{flex:1,backgroundColor:t,alignItems:"flex-start",children:(0,l.jsxs)(n.Se,{flexDirection:"column",justifyContent:"center",padding:"$32",gap:"$16",$lg:{flexDirection:"row",alignItems:"center"},children:[(0,l.jsxs)(n.Se,{flex:1,minWidth:0,maxWidth:724,gap:"$24",children:[(0,l.jsx)(s.H5,{fontWeight:"bold",color:"black",children:e?"All done!":"Thanks for subscribing"}),(0,l.jsx)(a.a,{color:"black",children:e?"Your newsletter preferences have been updated":"Across news, culture and style, The Observer's newsletters deliver the best of our reporting, straight to your inbox."})]}),(0,l.jsx)(i.View,{alignSelf:"center",justifyContent:"center",children:(0,l.jsx)(c,{width:62,height:49})})]})})}},43742:(e,r,t)=>{t.d(r,{Z:()=>h});var l=t(54568),i=t(12595),n=t(7620),o=t(54076),a=t(59902),s=t(84965);let d=(0,i.createStyledContext)({variant:"primary"}),c=(0,i.styled)(a.M,{name:"ButtonUnderlined",context:d,display:o.isWeb?"inline-flex":"flex",variants:{variant:{primary:{color:"$text_primary"},secondary:{color:"$color.white"}}}}),g=(0,n.forwardRef)(({children:e,icon:r,iconAfter:t,lineColor:i="$orange_600",onClick:n,...a},s)=>(0,l.jsx)(d.Provider,{children:(0,l.jsx)(c,{role:"link",alignItems:"center",...a,onClick:n,ref:s,accessible:!0,unstyled:!0,layout:!0,children:(0,l.jsxs)(o.Stack,{flexDirection:"row",alignItems:"center",borderBottomColor:i,borderBottomWidth:2,gap:"$8",children:[r,e,t]})})}));g.displayName="ButtonUnderlinedComponent";let h=(0,i.withStaticProperties)(g,{Props:d.Provider,Text:s.a})},50843:(e,r,t)=>{t.d(r,{b:()=>n});var l=t(54568),i=t(5595);let n=({color:e="#333",...r})=>(0,l.jsx)(i.BS,{role:"img",accessible:!0,width:48,height:48,viewBox:"0 0 48 48",fill:"none",...r,children:(0,l.jsx)(i.wA,{d:"M24 21.879l7.424-7.425 2.122 2.121L26.12 24l7.425 7.424-2.122 2.122L24 26.12l-7.425 7.425-2.121-2.122L21.878 24l-7.424-7.425 2.121-2.121L24 21.879z",fill:e})})},67832:(e,r,t)=>{t.d(r,{Q:()=>n});var l=t(54568),i=t(5595);let n=({color:e="currentColor",...r})=>(0,l.jsx)(i.BS,{role:"img",accessible:!0,viewBox:"0 0 25 25",...r,children:(0,l.jsx)(i.wA,{d:"m17.5 5.999-.707.707 5.293 5.293H1v1h21.086l-5.294 5.295.707.707L24 12.499l-6.5-6.5z",fill:e})})},73105:(e,r,t)=>{t.d(r,{p:()=>E}
1);var l=t(54568),i=t(7620),n=t(41756),o=t(54076),a=t(30770),s=t(17942),d=t(8114);let c=(0,o.styled)(d.JU,{color:"$grey_600",accessible:!0,accessibilityRole:"text",fontFamily:"$caslonDoric",fontWeight:"$400",fontSize:"$14",lineHeight:"$20",marginBottom:"$8",$lg:{fontSize:"$18",lineHeight:"$20"}});var g=t(8762),h=t(5595);let $=e=>(0,l.jsx)(h.Ay,{role:"img",accessible:!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:(0,l.jsx)(h.wA,{d:"M12.94 17.62L14.26 19.3C13.54 19.42 12.8 19.5 12 19.5C4.62 19.5 0 12.5 0 12.5C0 12.5 1.85001 9.70999 5.07001 7.64999L7.08002 10.2C6.72002 10.89 6.51001 11.67 6.51001 12.5C6.51001 15.37 8.97 17.7 12 17.7C12.32 17.7 12.63 17.67 12.94 17.62ZM18.92 17.59L22 21.5H19L16.75 18.65L15.22 16.71L8.65002 8.39L7.17999 6.53L4 2.5H7L9.58002 5.75999C10.35 5.59999 11.16 5.5 12 5.5C19.38 5.5 24 12.5 24 12.5C24 12.5 22.38 15.52 18.92 17.59ZM10.88 7.42L16.83 14.96C17.25 14.23 17.49 13.39 17.49 12.5C17.49 9.63 15.03 7.3 12 7.3C11.61 7.3 11.24 7.35 10.88 7.42Z",fill:"#333333"})}),x=e=>(0,l.jsx)(h.Ay,{role:"img",accessible:!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:(0,l.jsx)(h.wA,{d:"M12 5.5C4.62 5.5 0 12.5 0 12.5C0 12.5 4.62 19.5 12 19.5C20.31 19.5 24 12.5 24 12.5C24 12.5 19.38 5.5 12 5.5ZM12 17.7C8.97 17.7 6.51001 15.37 6.51001 12.5C6.51001 9.63 8.97 7.3 12 7.3C15.03 7.3 17.49 9.63 17.49 12.5C17.49 15.37 15.03 17.7 12 17.7ZM12 15.47C10.22 15.47 8.77002 14.1 8.77002 12.41C8.77002 10.72 10.22 9.35001 12 9.35001C13.78 9.35001 15.23 10.72 15.23 12.41C15.23 14.1 13.78 15.47 12 15.47Z",fill:"#333333"})}),u=e=>(0,l.jsxs)(h.Ay,{role:"img",accessible:!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:[(0,l.jsxs)(h.G,{clipPath:"url(#clip0_4103_2542)",children:[(0,l.jsx)(h.jl,{cx:"12",cy:"12",r:"12",fill:"#F00000"}),(0,l.jsx)(h.wA,{d:"M13 13L13.5 5H10.5L11 13H13ZM12 15C10.9 15 10 15.9 10 17C10 18.1 10.9 19 12 19C13.1 19 14 18.1 14 17C14 15.9 13.1 15 12 15Z",fill:"white"})]}),(0,l.jsx)(h.lA,{children:(0,l.jsx)(h.Ce,{id:"clip0_4103_2542",children:(0,l.jsx)(h.rw,{width:"24",height:"24",fill:"white"})})})]});var m=t(91675);let p=(0,o.styled)(o.Stack,{name:"InputFrame",width:"100%"}),y=(0,o.styled)(m.pd,{alignItems:"center",backgroundColor:"transparent",borderColor:"$grey_400",borderRadius:0,borderWidth:1,borderBottomWidth:4,color:"$text_primary",focusStyle:{borderColor:"$text_primary",outlineWidth:0},fontFamily:"$caslonIonic",fontSize:"$20",fontWeight:"$300",hoverStyle:{borderColor:"$grey_400"},lineHeight:"ios"===n.A.OS?0:"$26",minHeight:"$48",paddingVertical:"$8",name:"StyledInput",paddingLeft:"$16",placeholderTextColor:"$grey_400",variants:{error:{true:{borderColor:"$error_text",backgroundColor:"$error_background"}}}});(0,o.styled)(a.lW,{name:"InputLabels",justifyContent:"space-between",marginBottom:"$8"});let f=(0,o.styled)(o.Stack,{name:"InputMessage",marginTop:"$8",width:"100%",maxWidth:"100%"});var b=t(83576);let j=e=>(0,l.jsx)(h.BS,{width:6,height:6,viewBox:"0 0 6 6",fill:"none",...e,children:(0,l.jsx)(h.jl,{cx:3,cy:3,r:3,fill:e.color||"#333333"})});var _=t(50457),S=t(85266),w=t(12366);let C=[{label:"12 characters",validate:w.TF},{label:"One uppercase letter",validate:w.N_},{label:"One lowercase letter",validate:w.WA},{label:"One number",validate:w.yb}],v=({label:e,satisfied:r,unsatisfiedColor:t})=>{let i=(0,l.jsx)(b.S,{color:(0,o.getTokenValue)("$success")}),n=(0,l.jsx)(j,{color:t});return(0,l.jsxs)(a.lW,{alignItems:"center",gap:"$6",role:"listitem",children:[(0,l.jsx)(o.View,{alignItems:"center",width:"$14",children:r?i:n}),(0,l.jsx)(g.B,{color:r?"$success":t,children:e})]})},W=({value:e=""})=>{let r=(0,o.useTheme)(),t=(0,S.X)(r.text_primary,_.r.textPrimary),i=(0,S.X)(r.grey_400??r.grey_200??r.text_primary,_.r.grey400);return(0,l.jsxs)(a.Se,{gap:"$8",width:"100%",maxWidth:"100%",flexWrap:"nowrap",paddingTop:"$8",children:[(0,l.jsx)(g.B,{color:t,children:"Your password must contain at least:"}),(0,l.jsx)(a.Se,{gap:"$8",role:"list",children:C.map(({label:r,validate:t})=>(0,l.jsx)(v,{label:r,satisfied:t(e),unsatisfiedColor:i},r))})]})},E=({errorMessage:e,id:r,labelBottom:t,labelTop:d,...h})=>{let{type:m,role:b,secureTextEntry:j,...w}=h,C=!!e,v="newPassword"===h.textContentType,E="password"===h.textContentType||v,L=E||h.icon,[T,k]=(0,i.useState)(!1),H=E&&!T,I=H?"password":m??"text",A=o.isWeb||"web"===n.A.OS,R=(0,o.useTheme)(),B=(0,S.X)(R.text_primary,_.r.textOnDark),O=(0,S.X)(R.grey_400??R.light_grey_primary,_.r.placeholder);return(0,l.jsxs)(p,{children:[d&&(0,l.jsx)(c,{htmlFor:r,tabIndex:-1,$lg:{fontSize:"$14",lineHeight:"$20"},children:d}),(0,l.jsxs)(a.lW,{position:"relative",alignItems:"center",width:"100%",children:[(0,l.jsx)(y,{id:r,width:"100%",paddingRight:L?"$48":"$16",error:C,secureTextEntry:E?H:j,role:b??"combobox",color:h.color??B,placeholderTextColor:h.placeholderTextColor??O,...w,...I?{type:I}:{}}),E&&(0,l.jsx)(s.K,{"aria-label":"toggle-password",borderWidth:0,height:"$48",justifyContent:"center",onPress:()=>{k(!T)},position:"absolute",right:"$2",width:"$48",zIndex:1,...A?{type:"button"}:{},children:A?T?(0,l.jsx)(x,{"aria-label":"eye-open-icon"}):(0,l.jsx)($,{"aria-label":"eye-closed-icon"}):T?(0,l.jsx)($,{"aria-label":"eye-closed-icon"}):(0,l.jsx)(x,{"aria-label":"eye-open-icon"})}),h.icon&&!E&&(0,l.jsx)(s.K,{position:"absolute",right:0,paddingHorizontal:"$8",justifyContent:"center",...A?{type:"button"}:{},children:h.icon})]}),(0,l.jsx)(f,{children:C?(0,l.jsxs)(a.lW,{alignItems:"center",gap:"$8",width:"100%",maxWidth:"100%",flexWrap:"nowrap",children:[(0,l.jsx)(o.View,{tabIndex:-1,
1children:(0,l.jsx)(u,{width:20,height:20,color:"$red"})}),(0,l.jsx)(g.B,{wordWrap:"break-word",role:"alert",color:"$error_text",tabIndex:-1,"aria-label":"string"==typeof e?e:void 0,children:e})]}):t?(0,l.jsx)(g.B,{tabIndex:-1,"aria-label":t,children:t}):null}),v&&(0,l.jsx)(W,{value:h.value||""})]})}},73891:(e,r,t)=>{t.d(r,{o:()=>i});var l=t(5974);let i=(0,l.createServerReference)("4059f428815b2e490683e2df7f32837751694323de",l.callServer,void 0,l.findSourceMapURL,"getUserPreferences")},75477:(e,r,t)=>{t.d(r,{x:()=>n});var l=t(54076),i=t(50481);let n=(0,l.styled)(i.f,{accessible:!0,color:"$grey_600",fontFamily:"$caslonIonic",fontWeight:"$300",fontSize:"$14",lineHeight:"$21",$lg:{fontSize:"$16",lineHeight:"$24"},variants:{weight:{regular:{fontWeight:300},bold:{fontWeight:700}}}})},81001:(e,r,t)=>{t.d(r,{j:()=>g,b:()=>h});var l=t(54568),i=t(7620),n=t(54076),o=t(10580),a=t(97530),s=t(50457),d=t(85266);let c=(0,i.createContext)(void 0),g=({children:e})=>{let[r,t]=(0,i.useState)(!1),[g,h]=(0,i.useState)(null),[$,x]=(0,i.useState)({}),u=(0,n.useTheme)(),m=(0,d.X)(u.background_secondary??u.background_primary,s.r.backgroundSecondary),p=(0,i.useCallback)((e,r={})=>{h(e),x(r),t(!0)},[]),y=(0,i.useCallback)(()=>{t(!1)},[]),{onOpenChange:f,...b}=$,j=(0,i.useCallback)(e=>{t(e),f&&f(e)},[f]),_=(0,i.useMemo)(()=>({openDialog:p,closeDialog:y}),[p,y]);return(0,l.jsxs)(c.Provider,{value:_,children:[e,(0,l.jsxs)(o.lG,{modal:!0,open:r,onOpenChange:j,disableRemoveScroll:!0,
1children:[(0,l.jsx)(a.PE,{when:"xxs",children:(0,l.jsx)(o.lG.Sheet,{animation:"medium",zIndex:1e5,modal:!0,forceRemoveScrollEnabled:!1,...b,children:(0,l.jsx)(o.lG.Sheet.Frame,{backgroundColor:m,children:(0,l.jsx)(a.PE.Contents,{})})})}),(0,l.jsx)(o.lG.Portal,{pointerEvents:"none",children:(0,l.jsx)(o.lG.Content,{elevate:!0,onPointerDownOutside:e=>e.preventDefault(),children:g},"content")})]})]})},h=()=>{let e=(0,i.useContext)(c);if(!e)throw Error("useGlobalDialog must be used within a GlobalDialogProvider");return e}},83576:(e,r,t)=>{t.d(r,{S:()=>n});var l=t(54568),i=t(5595);let n=e=>(0,l.jsx)(i.BS,{width:"14",height:"14",viewBox:"0 0 14 14",...e,children:(0,l.jsx)(i.wA,{d:"M12.9425 0.5L4.70635 9.67944L1.05753 6.65333L0 7.73667L3.98499 13.5H5.42071L14 1.58333L12.9425 0.5Z",fill:e.color||"#333333"})})},83619:(e,r,t)=>{t.d(r,{K:()=>n});var l=t(54076),i=t(62142);let n=(0,l.styled)(i.qj,{accessibilityRole:"button",accessible:!0,unstyled:!0})},84965:(e,r,t)=>{t.d(r,{a:()=>n});var l=t(54076),i=t(50481);let n=(0,l.styled)(i.f,{color:"$grey_600",accessible:!0,accessibilityRole:"text",fontFamily:"$caslonDoric",fontWeight:"$400",fontSize:"$18",lineHeight:"$23",$lg:{fontSize:"$18",lineHeight:"$27"}})},86143:(e,r,t)=>{t.d(r,{DW:()=>a,TT:()=>g,Ze:()=>h});var l=t(61550);let i={"rachel-sylvester":"POLITICS_WEEKLY","patricia-clarke":"AI_NEWSLETTER","caitlin-okane":"NEWSLETTER_PUZZLES","nigel-slater":"NL_NIGEL_SLATER","jeevan-vasagar":"NL_CLIMATE","james-harding":"NL_EDITORS_NOTEBOOK","barney-macintyre":"BOARDROOM_SM","rory-smith":"SPORTS_WEEKLY","holly-oneill":"OBSERVER_FOOD","ben-zaranko":"ECONOMICS_NEWSLETTER","james-tapper":"NL_SCIENCE","basia-cummings":"NL_MUST_READS","tom-gatti":"NL_BOOKS","eva-wiseman":"NL_EVA_WISEMAN","chloe-hadjimatheou":"NL_PODCASTS"},n={sport:"SPORTS_WEEKLY",food:"OBSERVER_FOOD",restaurants:"OBSERVER_FOOD",drink:"OBSERVER_FOOD",recipes:"OBSERVER_FOOD",business:"ECONOMICS_NEWSLETTER","the-sensemaker":"DAILY_SM","science-technology":["NL_SCIENCE","AI_NEWSLETTER"],technology:"AI_NEWSLETTER",international:"NL_CLIMATE"},o={news:"POLITICS_WEEKLY",puzzles:"NEWSLETTER_PUZZLES",style:"OBSERVER_DESIGN",food:"OBSERVER_FOOD"},a="DAILY_SM",s=e=>e?.toLowerCase()??"",d=e=>l.$w.some(r=>r.newsletterKey===e),c=e=>void 0===e?[]:Array.isArray(e)?e:[e],g=(e,r,t)=>[...c(((e=[])=>{for(let r of e){let e=i[r];if(e)return e}})(t)),...c(n[s(r)]),...c(o[s(e)])],h=(e,r,t)=>g(e,r,t).find(d)??a},90850:(e,r,t)=>{t.d(r,{H3:()=>n});var l=t(54076),i=t(90830);let n=(0,l.styled)(i.H3,{accessible:!0,color:"$text_primary",fontWeight:"$400",fontFamily:"$caslonIonic",fontSize:"$26",lineHeight:"$34",variants:{},defaultVariants:{},$lg:{fontSize:"$28",lineHeight:"$36"}})},93031:(e,r,t)=>{t.d(r,{A:()=>n});var l=t(54568),i=t(5595);let n=({color:e="#333333",...r})=>(0,l.jsxs)(i.Ay,{"data-testid":"comms-selected",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",role:"img",accessible:!0,...r,children:[(0,l.jsx)(i.jl,{cx:"20",cy:"20",r:"20",fill:e}),(0,l.jsx)(i.wA,{d:"M26.8975 12.5L17.3377 23.0917L13.1025 19.6L11.875 20.85L16.5004 27.5H18.1669L28.125 13.75L26.8975 12.5Z",fill:"white"})]})},97486:(e,r,t)=>{t.d(r,{a:()=>n});var l=t(54076),i=t(50481);let n=(0,l.styled)(i.f,{accessible:!0,accessibilityRole:"text",fontFamily:"$caslonIonic",fontWeight:"$300",color:"$grey_600",fontSize:"$18",lineHeight:"$26"})}}]); 2//# sourceMappingURL=4476-87b907067d8c934e.js.map
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.