1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{60091:function(t,e,n){var r=n(13940),o=n(41225),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},18390:function(t,e,n){var r=n(29259),o=n(16001),i=n(62966),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var l in t)"constructor"==l&&(e||!a.call(t,l))||n.push(l);return n}},93759:function(t,e,n){var r=n(13324),o=n(82857),i=n(17297);t.exports=function(t,e,n){for(var a=-1,l=e.length,u={};++a<l;){var s=e[a],c=r(t,s);n(c,s)&&o(u,i(s,t),c)}return u}},82857:function(t,e,n){var r=n(60091),o=n(17297),i=n(39045),a=n(29259),l=n(33812);t.exports=function(t,e,n,u){if(!a(t))return t;e=o(e,t);for(var s=-1,c=e.length,d=c-1,f=t;null!=f&&++s<c;){var p=l(e[s]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(s!=d){var x=f[p];void 0===(h=u?u(x,p,f):void 0)&&(h=a(x)?x:i(e[s+1])?[]:{})}r(f,p,h),f=f[p]}return t}},4751:function(t,e,n){var r=n(24303);t.exports=function(t,e){var n;return r(t,function(t,r,o){return!(n=e(t,r,o))}),!!n}},76939:function(t,e,n){var r=n(1897),o=n(12680),i=n(18582);t.exports=function(t){return r(t,i,o)}},47353:function(t,e,n){var r=n(60241)(Object.getPrototypeOf,Object);t.exports=r},12680:function(t,e,n){var r=n(65067),o=n(47353),i=n(80633),a=n(30981),l=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=l},62966:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},18149:function(t,e,n){var r=n(88746);t.exports=function(t,e){return r(t,e)}},18582:function(t,e,n){var r=n(1634),o=n(18390),i=n(67878);t.exports=function(t){return i(t)?r(t,!0):o(t)}},42208:function(t,e,n){var r=n(50343),o=n(68286),i=n(93759),a=n(76939);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),function(t){return[t]});return e=o(e),i(t,n,function(t,n){return e(t,n[0])})}},51525:function(t,e,n){var r=n(87064),o=n(68286),i=n(4751),a=n(86152),l=n(82406);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&l(t,e,n)&&(e=void 0),u(t,o(e,3))}},40457:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return n(35719)}])},38005:function(t,e,n){"use strict";n.d(e,{A:function(){return w}});var r=n(52322),o=n(2784),i=n(97729),a=n.n(i),l=n(37312),u=n(8035),s=n(5632),c=n(58661),d=n(97583);let f=()=>{var t;let{isUserAuthenticated:e,logout:n,errorCode:i}
1=(0,u.aC)(),{data:a,removeProfileAsync:f}=(0,d.K7)(),m=(0,s.useRouter)(),v=(0,c.S)({base:!0,xs:!0,md:!1,lg:!1}),{selectedMenuItem:g,setSelectedMenuItem:b,closeNavigation:j}=(0,l.HJj)();(0,o.useEffect)(()=>{b("/kete"===m.pathname?"my-kete":"")},[m.pathname,b]);let y=(0,l._1g)(),k=()=>y.open("auth-modal",{nextAuthenticationFlowCode:"U"}),C=()=>y.open("auth-modal",{nextAuthenticationFlowCode:"I"}),O=null===(t=(0,d.AR)())||void 0===t?void 0:t.keteItems;(0,o.useEffect)(()=>{i&&(0,l.AaD)()},[i]);let T=(0,o.useCallback)(async()=>{if((null==a?void 0:a.completedOnboarding)===!1)try{await f(),(0,l.wpA)({status:"warning",title:"Account not created.",withCloseButton:!0})}catch(t){(0,l.wpA)({title:"We couldnât delete your account.",status:"error"})}if(await n()){if("/about-you"===m.asPath){var t;(null==m?void 0:null===(t=m.query)||void 0===t?void 0:t.r)||m.push("/")}(0,l.wpA)({status:"success",title:"You're signed out.",withCloseButton:!0})}else(0,l.AaD)()},[n,a]),w=null!=m&&!!m.asPath&&m.asPath.startsWith("/about-you");return(0,r.jsxs)(l.aVo.fC,{css:{display:"flex",flexDirection:"column",gap:2,pb:10},children:[(0,r.jsx)(l.izJ,{color:"brand.global.500",mx:8,my:3,hideFrom:"md"}),v&&!e&&(0,r.jsx)(p,{profileTestId:h.createAccountButton,loginButtonTestId:h.signInButton,profileText:"Create account",loginButtonText:"Sign in",profileOnClick:k,loginOnClick:C}),v&&e&&(0,r.jsx)(p,{profileTestId:h.profileButton,loginButtonTestId:h.signOutButton,href:"/about-you?r=".concat(m.asPath),profileText:"Edit account",loginButtonText:"Sign out",profileOnClick:t=>{w&&t.preventDefault(),j()},loginOnClick:T}),!v&&(0,r.jsx)(l.HCh,{children:(0,r.jsx)(l.hLu,{keteText:"My kete",onClick:e?j:t=>{y.open("my-kete-auth-modal"),t.preventDefault()},href:"/kete",numberOfKeteItems:void 0===O?void 0:(0,d.wg)(O),isSelected:"my-kete"===g,css:{...x}})}),!e&&!v&&(0,r.jsx)(p,{profileTestId:h.createAccountButton,loginButtonTestId:h.signInButton,profileText:"Create account",loginButtonText:"Sign in",profileOnClick:k,loginOnClick:C}),e&&!v&&(0,r.jsx)(p,{profileTestId:h.profileButton,loginButtonTestId:h.signOutButton,href:"/about-you?r=".concat(m.asPath),profileText:"Edit account",loginButtonText:"Sign out",profileOnClick:t=>{w&&t.preventDefault(),j()},loginOnClick:T})]})},p=t=>{let{loginButtonTestId:e,profileTestId:n,href:o,profileText:i,loginButtonText:a,profileOnClick:u,loginOnClick:s}=t;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.HCh,{css:{...x,pb:0},children:o?(0,r.jsx)(l.rUS,{...(0,l.Mir)(n),href:o,onClick:u,css:{...m},children:(0,r.jsx)(l.xvT,{textStyle:"paragraph-small-medium",color:"inherit",children:i})}):(0,r.jsx)(l.zxk,{...(0,l.Mir)(n),onClick:u,variant:"secondary",size:"sm",css:{...m},children:(0,r.jsx)(l.xvT,{textStyle:"paragraph-small-medium",color:"inherit",children:i})})}),(0,r.jsx)(l.HCh,{children:(0,r.jsx)(l.zxk,{...(0,l.Mir)(e),variant:"link",onClick:s,css:{...x,color:"brand.global.A2",height:"auto",justifyContent:"start"},children:(0,r.jsx)(l.xvT,{as:"span",textStyle:"paragraph-small-medium",color:"inherit",children:a})})})]})},h={createAccountButton:"user-menu-create-account-button",signInButton:"user-menu-sign-in-button",profileButton:"user-menu-profile-button",signOutButton:"user-menu-sign-out-button"},x={display:"flex",gap:2,color:"brand.neutrals.100",height:"auto",width:"100%",py:3,pl:8},m={px:"9px",py:2,color:"brand.global.400",border:"1px solid",borderColor:"brand.global.400",_hover:{bg:"brand.global.700"}};var v=n(87622),g=n.n(v);let b=t=>{var e;let{items:n}=t,i=null===(e=(0,d.AR)())||void 0===e?void 0:e.keteItems,a=(0,d.Jn)(),u=a?g()(a,t=>t.sectionId):void 0,s=(0,l.Sx0)({base:!0,xs:!0,md:!1,lg:!1});return(0,r.jsxs)(l.lbA,{children:[!s&&(0,r.jsx)(l.bcT,{}),n.map(t=>{let e=i?(0,d.S2)(i,t.theme):void 0,n=u?u[t.theme]:void 0;return(0,o.createElement)(l.klG,{...t,key:t.titleEn,numberOfKeteItems:e,sectionUrl:null==n?void 0:n.url})})]})};var j=n(4684),y=n(47024),k=n(69385),C=n(99956),O=n(42795);let T=t=>{let{meta:e}=t;return(0,r.jsx)(a(),{children:Object.entries(e).map(t=>{let[e,n]=t;if(!n)return null;let o="description"===e?n.trim():n;return(0,r.jsx)("meta",{name:e,content:o},e)})})},w=t=>{let{children:e,title:n="This is the default title",nav:o,footer:i,navigationData:u,alertData:s,meta:c}=t,{visible:d}=(0,O.JO)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a(),{children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,r.jsx)("meta",{name:"format-detection",content:"telephone=no"})]}),c&&(0,r.jsx)(T,{meta:c}),(0,r.jsx)(l.Grf,{}),(0,r.jsxs)(j.r,{...(0,l.Mir)("layout"),gridTemplateAreas:{base:'"alert-banner"\n "navigation"\n "main"\n "footer"',lg:'"navigation alert-banner"\n "navigation main"\n "navigation footer"'},gridTemplateColumns:{base:"auto",lg:"var(--left-navigation-width) 1fr"},gridTemplateRows:{base:"auto",lg:"auto 1fr auto"},minHeight:"100vh",children:[(0,r.jsx)(y.P,{gridArea:"alert-banner",...(0,l.Mir)("layout-alert-banner"),children:s&&(0,r.jsx)(_,{items:s})}),(0,r.jsxs)(y.P,{gridArea:"navigation",height:"full",...(0,l.Mir)("layout-navigation"),children:[(0,r.jsx)(A,{}),(0,r.jsxs)(l.W_F,{children:[(0,r.jsx)(b,{items:u.items}),(0,r.jsx)(f,{})]})]}),(0,r.jsxs)(y.P,{gridArea:"main",...(0,l.Mir)("layout-main"),children:[o,(0,r.jsx)(k.x,{id:"main",as:"main",position:"relative",children:e})]}),(0,r.jsx)(y.P,{gridArea:"footer",...(0,l.Mir)("layout-footer"),children:i}),(0,r.jsx)(y.P,{gridArea:"alert-banner / main / footer / main",position:"relative",pointerEvents:d?void 0:"none",...(0,l.Mir)("layout-overlay-portal"),children:(0,r.jsx)(O.qY,{})})]})]})},_=t=>{let{items:e}=t;return(0,r.jsx)(r.Fragment,{children:e.map((t,e)=>{let{alertType:n,description:o}=t;return(0,r.jsx)(l.Y0Q,{description:o,alertType:n},e)})})},A=()=>(0,r.jsx)(C.r,{href:"#main",variant:"primaryLightDefault",textStyle:"paragraph-small-medium",size:"regular",css:{position:"absolute",ml:{base:-300,lg:-300},mt:{base:2,lg:10},zIndex:40,_focus:{ml:{base:2,lg:8}}},children:"Skip to main content"})},35719:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return a}});var r=n(52322);n(2784);var o=n(55268);let i=t=>{let{pageData:e,footerData:n,navigationData:i}=t,a=i.alerts;return(0,r.jsx)(o.ol,{pageData:e,footerData:n,navigationData:i,alertData:a})};i.displayName="SearchPage";var a=!0;e.default=i},97729:function(t,e,n){t.exports=n(68792)}},function(t){t.O(0,[354,774,888,179],function(){return t(t.s=40457)}),_N_E=t.O()}]);
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.