1"use strict";(self.webpackChunkarvesta_brand_website_v2=self.webpackChunkarvesta_brand_website_v2||[]).push([[4],{12491:function(e,t,i){i.r(t),i.d(t,{Head:function(){return S}});var n=i(13887),o=i(14041),a=i(16492),s=i(90819),l=i(97574),d=i(32996),r=i(84670),u=i(78664),c=i(51957),g=i(57911),p=i(46754),v=i(31085);t.default=e=>{var t,i,l,g,S,f,h,m,b,A,w;let D=e.data,T=e.pageContext,_=e.location;const F=D.contentfulArticleDetailPage,I=F.heroImage,C=F.title,y=F.date,H=F.mainCategories,M=F.subcategories,P=F.shortDescription,U=F.seoMetadata,k=F.slug,x=F.content,L=F.updatedAt,j=F.showDate,E=F.gated,N="true"==={}.GATED_CONTENT&&E,G=(0,n.As)(),R=(0,o.useState)(!1),O=R[0],Z=R[1];if((0,o.useEffect)(()=>{const e=window.location.hash.substring(1);if(e){const t=new URLSearchParams(e),i="1"===t.get("account_created");Z(i),console.log(t)}},[]),(0,p.v)(null==G?void 0:G.state,{contentId:T.id,contentTitle:C,contentType:"article",isGated:null!=E&&E,isNewAccount:O,userId:null!=G&&null!==(t=G.state)&&void 0!==t&&t.isAuthenticated&&null!==(i=null===(l=G.state.userState)||void 0===l?void 0:l.oid)&&void 0!==i?i:null}),(0,o.useEffect)(()=>{var e;const t=sessionStorage.getItem("login_pending");t&&null!=G&&null!==(e=G.state)&&void 0!==e&&e.isAuthenticated&&t.toString()===T.id.toString()&&(c.M.pushArticleLoginSuccess({contentId:T.id,contentTitle:C}),sessionStorage.removeItem("login_pending"))},[null==G||null===(g=G.state)||void 0===g?void 0:g.isAuthenticated,T.id,C]),!G)return null;const q={contentfulSettings:D.contentfulSettings,id:T.id,isHomepage:!1,ogPageType:"article",pageDescription:null==U?void 0:U.description,pageImage:null!=I?I:void 0,pageLocale:T.node_locale,pageSettings:U,pageSlug:k,pageTitle:C||(null==U?void 0:U.title),pageType:"articleDetail",siteUrl:null!==(S=null===(f=D.site.siteMetadata)||void 0===f?void 0:f.siteUrl)&&void 0!==S?S:"",updatedAt:L},z={showFooterSubscribeForm:null!==(h=D.contentfulSettings.footerShowSubscribeForm)&&void 0!==h&&h,showFooterSubscribeFormCountryField:!1,subscribeFormHeading:null!==(m=null===(b=D.contentfulSettings.footerSubscribeFormHeading)||void 0===b?void 0:b.footerSubscribeFormHeading)&&void 0!==m?m:""},B=u.D(x||[],D.contentfulSettings,_);return(0,v.jsx)(a.A,{pageProps:q,subscribeForm:z,translatedSlugs:D.translatedSlugs.nodes,heroReference:I,children:(0,v.jsx)(d.Zj,{mainCategories:(0,r.mG)(H),subcategories:(0,r.mM)(M),contentsSectionCollection:(0,s.o)(B,D,_,T,C),date:y,description:null==P?void 0:P.shortDescription,title:C,isAuthenticated:null!==(A=null===(w=G.state)||void 0===w?void 0:w.isAuthenticated)&&void 0!==A&&A,isLockedForNonAuthenticatedUsers:N,showDate:j,contentId:T.id})})};const S=e=>{var t;let i=e.data,n=e.pageContext;const o=i.contentfulArticleDetailPage,a=o.heroImage,s=o.updatedAt,d=o.seoMetadata,r=o.slug,u=o.title,c={contentfulSettings:i.contentfulSettings,id:n.id,isHomepage:!1,ogPageType:"article",pageImage:a||void 0,pageLocale:n.node_locale,pageSettings:d,pageSlug:r||"",pageTitle:u,pageType:"articleDetail",siteUrl:(null===(t=i.site.siteMetadata)||void 0===t?void 0:t.siteUrl)||"",updatedAt:s},p=(0,g.A)(c).metaData;return(0,v.jsx)(l.A,{metaData:p,image:a})}}}]); 2//# sourceMappingURL=component---src-templates-article-detail-tsx-34e7e5f87d319ddc9576.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.