1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[696],{1679:(e,t,a)=>{"use strict";a.d(t,{RouteContainer:()=>h});var i=a(84661),n=a(50540),s=a(71510),r=a(20374),l=a(38659),o=a(66257);let c=()=>{var e,t,a,c;let d=(0,s.o)(),u=(0,r.usePathname)().replaceAll(/^\/|\/$/gu,"").split("/").slice(1).join(","),_=(null==d||null==(e=d.authors)?void 0:e.length)===0?null==(a=d.author)||null==(t=a[0])?void 0:t.name:null==d||null==(c=d.authors)?void 0:c.join(",");return(0,o.useEffect)(()=>{if(n._.enableChartBeat){var e;null!=(e=globalThis.window)._sf_async_config||(e._sf_async_config={}),globalThis.window._sf_async_config.uid=n._.chartBeatUid,globalThis.window._sf_async_config.domain=n._.host,globalThis.window._sf_async_config.useCanonical=!0,globalThis.window._sf_async_config.useCanonicalDomain=!0,globalThis.window._sf_async_config.flickerControl=!1,globalThis.window._sf_async_config.sections=u,globalThis.window._sf_async_config.authors=null!=_?_:""}},[u,_]),n._.enableChartBeat?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(l.default,{dangerouslySetInnerHTML:{__html:"\n if (!window._chartbeatLoaded) {\n window._chartbeatLoaded = true;\n (function() {\n function loadChartBeat() {\n var e = document.createElement('script');\n var n = document.getElementsByTagName('script')[0];\n e.type = 'text/javascript';\n e.async = true;\n e.src = '//static.chartbeat.com/js/chartbeat.js';\n n.parentNode.insertBefore(e, n);\n }\n loadChartBeat();\n })();\n }\n "},id:"chartbeat-analytics",strategy:"afterInteractive"})}):void 0};var d=a(16652),u=a(1876);let _=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"];var b=a(85243);let h=e=>{(()=>{let[e,t]=(0,o.useState)(),a=!!(n._.enableMetaPixel&&n._.metaPixelId),i=(0,o.useRef)(!1);if(a&&void 0!==globalThis.window&&void 0===globalThis.window.fbq){let e=function(){e.callMethod?e.callMethod.apply(e,arguments):e.queue.push(arguments)};e.push=e,e.loaded=!0,e.queue=[],globalThis.window.fbq=e}let s=(0,u.nW)(n._.enableMetaPixel?{id:"fb_pixel_script",insertOnIdleCallback:!0,src:"https://connect.facebook.net/en_US/fbevents.js"}:void 0);return(0,o.useEffect)(()=>{"ready"===s&&!i.current&&globalThis.window.fbq&&(globalThis.window.fbq.initialized||(globalThis.window.fbq("init",n._.metaPixelId),globalThis.window.fbq("track","PageView"),globalThis.window.fbq.initialized=!0),t(globalThis.window.fbq),i.current=!0)},[s]),(0,o.useEffect)(()=>{if(!a)return;let e=document.createElement("noscript");return e.innerHTML='<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id='.concat(n._.metaPixelId,'&ev=PageView&noscript=1"/>'),document.body.append(e),()=>{e.remove()}},[]),null!=e||void 0===globalThis.window||globalThis.window.fbq})(),(()=>{let[e,t]=(0,o.useState)(),a=(0,o.useRef)(!1),i=!!(n._.enableTikTokPixel&&n._.tiktokPixelId);return(0,o.useEffect)(()=>{if(!i||void 0===globalThis.window)return;let e=(()=>{let e=globalThis.window;
1e.TiktokAnalyticsObject="ttq";let t=e.ttq;return t||(e.ttq=t=[]),t.tiktokInitialized||(t.methods=[..._],t.setAndDefer=(e,t)=>{e[t]=function(){for(var a=arguments.length,i=Array(a),n=0;n<a;n++)i[n]=arguments[n];e.push([t,...Array.isArray(i)?i:[i]])}},t.methods.forEach(e=>{t.setAndDefer(t,e)}),t.instance=e=>{var a,i;let n=null!=(i=null==(a=t._i)?void 0:a[e])?i:[];return t.methods.forEach(e=>{t.setAndDefer(n,e)}),n},t.load=(e,a)=>{var i,n,s,r;let l="https://analytics.tiktok.com/i18n/pixel/events.js";null!=(i=t)._i||(i._i={}),null!=(n=t._i)[e]||(n[e]=[]),t._i[e]._u=l,null!=(s=t)._t||(s._t={}),t._t[e]=Date.now(),null!=(r=t)._o||(r._o={}),t._o[e]=null!=a?a:{};let o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="".concat(l,"?sdkid=").concat(e,"&lib=").concat("ttq"),o.id="tiktok_pixel_script";let[c]=document.querySelectorAll("script");(null==c?void 0:c.parentNode)?c.parentNode.insertBefore(o,c):document.head.append(o)},t.tiktokInitialized=!0),t})();e.tiktokLoadedPixelId!==n._.tiktokPixelId&&(e.load(n._.tiktokPixelId),e.tiktokLoadedPixelId=n._.tiktokPixelId),a.current||(e.page(),a.current=!0),t(e)},[i,n._.tiktokPixelId]),null!=e||void 0===globalThis.window||globalThis.window.ttq})();let{children:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{}),(0,i.jsx)(d.GoogleAd,{outOfPageFormat:"BOTTOM_ANCHOR",pos:"Anchor",refreshSlot:!0}),(0,i.jsx)(d.GoogleAd,{outOfPageFormat:"LEFT_SIDE_RAIL",pos:"WL",refreshSlot:!0}),(0,i.jsx)(d.GoogleAd,{outOfPageFormat:"RIGHT_SIDE_RAIL",pos:"WR",refreshSlot:!0}),(0,i.jsx)(d.GoogleAd,{includeLabel:!1,pos:"WP",template:"wallpaper"}),(0,i.jsx)(d.GoogleAd,{includeLabel:!1,pos:"Thirdparty",template:"thirdparty"}),(0,i.jsx)(b.Container,{children:t})]})}},21530:e=>{e.exports={"magazine-grid":"magazine-subscribe_magazine-grid__njVKO","subscribe-text":"magazine-subscribe_subscribe-text__3msnR",link:"magazine-subscribe_link__u82Lk"}},41626:(e,t,a)=>{"use strict";a.d(t,{Sidebar:()=>x});var i=a(84661),n=a(66257),s=a(50540),r=a(93364),l=a(12278),o=a.n(l),c=a(60895),d=a.n(c);let u=()=>{let{craftCover:e,error:t,isError:a,isLoading:n}=(0,r.j)("/api/magazine-cover");return(0,i.jsxs)("div",{className:d()["magazine-cover"],children:[(0,i.jsx)("div",{className:d()["magazine-heading"],children:(0,i.jsx)("span",{children:"Print or Digital \xb7 Never miss out"})}),n?(0,i.jsxs)("div",{"aria-hidden":"true",className:d()["magazine-skeleton"],children:[(0,i.jsx)("div",{className:d()["skeleton-title"]}),(0,i.jsx)("div",{className:d()["skeleton-image"]})]}):void 0,!n&&(null==e?void 0:e.image)?(0,i.jsx)("img",{alt:"Magazine cover",decoding:"async",loading:"lazy",src:e.image,title:"Magazine cover"}):void 0,a?(0,i.jsx)("p",{className:d()["magazine-error"],children:t?"":"Failed to load magazine cover."}):void 0,(0,i.jsxs)("div",{className:d()["cta-group"],children:[(0,i.jsx)("a",{className:o()(d()["edition-subscribe"],d().digital),href:s._.magazineDigitalLink,rel:"noopener noreferrer",target:"_blank",children:"Download your digital edition"}),(0,i.jsx)("a",{className:o()(d()["edition-subscribe"],d().print),href:s._.magazinePrintLink,rel:"noopener noreferrer",target:"_blank",children:"I want a hard copy"})]})]})};var _=a(68845),b=a(97981);let h=async(e,t)=>{let{arg:a}=t;return(await _.A.post(e,a,{headers:{"Content-Type":"application/json"}})).data};var g=a(80137),m=a.n(g);let w=e=>t=>{e(t.target.value)},p=()=>{let{isLoadingNewsletter:e,subscribe:t}=(()=>{let{data:e,error:t,isMutating:a,trigger:i}=(0,b.A)("/api/newsletter/subscribe",h);return{data:e,error:t,isLoadingNewsletter:a,subscribe:i}})(),[a,s]=(0,n.useState)(""),[r,l]=(0,n.useState)(""),[o,c]=(0,n.useState)(""),[d,u]=(0,n.use
1State)(!1),[_,g]=(0,n.useState)(void 0),p=(0,n.useCallback)(async e=>{if(e.preventDefault(),g(void 0),u(!1),!a.trim()||!r.trim())return void g("Please enter your first and last name.");if(!/^[^.@][^@]+@[^@]+\.[^@]+[^.@]$/iu.test(o))return void g("Please enter a valid email address.");try{await t({contact_lastname:r,contact_name:a,email:o,error:""}),u(!0),s(""),l(""),c("")}catch(e){console.error(e),g("Subscription failed, please try again.")}},[a,r,o,t]);return(0,i.jsxs)("div",{className:m()["newsletter-subscribe"],children:[(0,i.jsx)("div",{className:m()["newsletter-subscribe-header"],children:(0,i.jsx)("span",{children:"Subscribe"})}),(0,i.jsxs)("form",{className:m()["newsletter-form"],onSubmit:p,children:[(0,i.jsx)("label",{className:m()["newsletter-label"],htmlFor:"email",children:"Sign up to receive breaking news in your inbox."}),_?(0,i.jsx)("p",{className:m()["newsletter-error"],children:_}):void 0,d?(0,i.jsxs)("div",{className:m()["newsletter-success"],children:[(0,i.jsx)("div",{className:m()["newsletter-success-header"],children:"Thank you for Subscribing!"}),(0,i.jsx)("p",{children:" We have sent a confirmation email to the email address that you\n provided. Click on the link in the email to confirm your subscription \n to our newsletter."})]}):void 0,(0,i.jsx)("input",{className:m()["newsletter-input"],id:"firstName",name:"firstName",onChange:w(s),placeholder:"First Name",required:!0,type:"text",value:a}),(0,i.jsx)("input",{className:m()["newsletter-input"],id:"lastName",name:"lastName",onChange:w(l),placeholder:"Last Name",required:!0,type:"text",value:r}),(0,i.jsx)("input",{className:m()["newsletter-input"],id:"email",name:"email",onChange:w(c),placeholder:"Email Address",required:!0,type:"email",value:o}),(0,i.jsx)("button",{className:m()["newsletter-button"],disabled:e,type:"submit",children:e?"Submitting subscription...":"Subscribe"})]})]})};var f=a(86885),v=a.n(f);let x=()=>(0,i.jsxs)("aside",{className:v().sidebar,children:[(0,i.jsx)(p,{}),(0,i.jsx)(u,{})]})},60005:(e,t,a)=>{"use strict";a.d(t,{r:()=>o});var i=a(84661),n=a(40389),s=a(50540),r=a(21530),l=a.n(r);let o=e=>{let{ctaHref:t=s._.magazineDigitalLink,ctaText:a="Subscribe Now",heading:r="GET THE LATEST ISSUE OF GQ"}=e;return(0,i.jsxs)("div",{className:l()["magazine-grid"],children:[(0,i.jsx)("div",{className:l()["subscribe-text"],children:(0,i.jsx)("p",{children:r})}),(0,i.jsx)("div",{className:l().link,children:(0,i.jsx)(n.Link,{"aria-label":a,href:t,target:"_blank",children:a})})]})}},60895:e=>{e.exports={"magazine-cover":"magazine-cover_magazine-cover__KvnnL","magazine-heading":"magazine-cover_magazine-heading__eeltQ","magazine-error":"magazine-cover_magazine-error__hL_Rx","cta-group":"magazine-cover_cta-group__plRox","edition-subscribe":"magazine-cover_edition-subscribe__SvjvN","magazine-skeleton":"magazine-cover_magazine-skeleton__elz4n","skeleton-title":"magazine-cover_skeleton-title___7SYO","skeleton-loading":"magazine-cover_skeleton-loading__f_aod","skeleton-image":"magazine-cover_skeleton-image__e2_wk"}},80137:e=>{e.exports={"newsletter-subscribe":"newsletter-subscribe_newsletter-subscribe__1tlfa","newsletter-subscribe-header":"newsletter-subscribe_newsletter-subscribe-header__ys1gq","newsletter-form":"newsletter-subscribe_newsletter-form__S24ld","newsletter-label":"newsletter-subscribe_newsletter-label__NvajZ","newsletter-input":"newsletter-subscribe_newsletter-input__U_CRU","newsletter-button":"newsletter-subscribe_newsletter-button__RLlF7","newsletter-error":"newsletter-subscribe_newsletter-error__LZCQ1","newsletter-success":"newsletter-subscribe_newsletter-success__4o3Uo","newsletter-success-header":"newsletter-subscribe_newsletter-success-header__X1OFh"}},86885:e=>{e.exports={sidebar:"sidebar_sidebar__qXbDT"}},93364:(e,t,a)=>{"use strict";a.d(t,{j:()=>r});var i=a(68845),n=a(14332);let s=async e=>{try{return(await i.A.get(e,{headers:{"Content-Type":"application/json"}})).data}catch(e){throw console.error("Error fetching weather data:",e),e}},r=e=>{let{data:t,error:a,isLoading:i,mutate:r}=(0,n.Ay)(e,s,{refreshInterval:3e5,revalidateOnFocus:!1});return{craftCover:t,error:a,isError:!!a,isLoading:i,refreshCraftCover:r}}}}]);
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.