1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97671],{97671:function(e,t,a){a.d(t,{Z:function(){return F}}),a(9085),a(76347);var o=a(68117);a(91898),a(21346),a(19298),a(67525),a(15997),new RegExp("".concat("/edit","/?$")),a(77988),a(88843),a(56210);var n=a(94390);a(65655);var r=a(56694);a(72699);var i=a(41834);a(78569),a(2705);var l=a(53442),u=a(85893),d=a(11163),s=a(25105),p=a(8196),g=a(98337),c=a(1004),v=a(6585),m=e=>e.charAt(0).toUpperCase()+e.slice(1),h=a(47111),f=e=>{var t;return(null===(t=null==e?void 0:e.authors)||void 0===t?void 0:t.nodes)?{type:"Authors",authors:{nodes:e.authors.nodes.filter(h.Z).map(e=>{if("author"in e){let t=e.author;return Object.assign(Object.assign({},e),{author:t})}return null}).filter(h.Z),pageInfo:e.authors.pageInfo}}:null},x=a(72329),Z=e=>{var t;let{authors:a,pagination:o}=e,n=(0,v.Z)(),{authorSettings:r,defaultImage:i,site:l}=(0,c.Z)(),d=null===(t=n.pageTypes.author.plural)||void 0===t?void 0:t.default,s=f(a);if(!d||!s)return null;let{component:p,options:h}=d,Z=i?{date:"",excerpt:"",featuredImage:{node:i},featuredImageUrl:null==i?void 0:i.sourceUrl,modified:"",title:"".concat(m(r.taxonomySlug)," | ").concat(l.name),uri:(0,g.normalizePathTrailingSlash)("".concat(r.taxonomySlug))}:null;return(0,u.jsxs)(u.Fragment,{children:[Z&&(0,u.jsx)(x.Z,{page:Z,pageNum:o.pageNum,pageType:"Tag"}),(0,u.jsx)(p,{authors:s,options:h,pagination:o})]})},j=a(71386),y=a(39930),I=e=>{var t,a,o,n;let{author:r,description:i,generalAuthorMetaDesc:l,link:u,name:d,seo:s,uri:p}=e,g=(null==r?void 0:r.authorBio)||(null==s?void 0:s.opengraphDescription)||(null==l?void 0:l.replace(/\[username\]/i,d||""))||null;return{author:r,featuredImage:{node:{id:"",mediaAdditionalData:null,title:null,altText:d,sourceUrl:(null===(a=null===(t=null==r?void 0:r.authorAvatar)||void 0===t?void 0:t.node)||void 0===a?void 0:a.sourceUrl)||"",caption:null,mediaDetails:{height:250,width:250},cropPosition:null}},date:"",excerpt:(null==s?void 0:s.opengraphDescription)||i||"",featuredImageUrl:(null===(n=null===(o=null==r?void 0:r.authorAvatar)||void 0===o?void 0:o.node)||void 0===n?void 0:n.sourceUrl)||"",link:u||"",modified:"",seo:s&&Object.assign(Object.assign({},s),{metaDesc:g}),title:(null==s?void 0:s.title)||"".concat(d," Archives"),uri:p||""}},T=e=>{let{authorData:t,pagination:a}=e,{author:o,description:i,link:l,name:d,seo:s,uri:p}=t,g=(0,v.Z)(),{data:c}=(0,y.Z)(),{data:m}=(0,j.Z)(),{component:h,options:f}=(0,n.pC)(t,c||r.$,g);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(x.Z,{page:I({author:o,description:i,link:l,name:d,seo:s,uri:p,generalAuthorMetaDesc:null==m?void 0:m.optAuthorMetadesc}),pageNum:a.pageNum,pageType:"Author"}),(0,u.jsx)(h,{authorData:t,options:f,pagination:a})]})},A=(e,t,a)=>{var o;let n;return t&&(n={node:t}),{date:"",excerpt:e.description||"",featuredImage:n,featuredImageUrl:null==t?void 0:t.sourceUrl,modified:"",primaryCategory:void 0,title:e.name,uri:e.uri,seo:null!==(o=e.seo)&&void 0!==o?o:null,breadcrumbs:a}},D=e=>{let{categoryPageData:t,pagination:a}=e,{defaultImage:o}=(0,c.Z)(),{category:n}=t,l=function(e){var t,a;let o=null===(a=null===(t=null==e?void 0:e.ancestors)||void 0===t?void 0:t.nodes)||void 0===a?void 0:a.filter(h.Z);if(!o||(null==o?void 0:o.length)===0)return[];let n=null;return[...o.map(()=>{let e=o.find(e=>e.parentDatabaseId===n);return e?(n=e.databaseId,{text:e.name||"",url:e.uri||""}):null}).filter(h.Z),{text:e.name||"",url:e.uri||""}].filter(e=>e.text&&e.url)}(n),d=(0,v.Z)(),{data:s}=(0,y.Z)(),{component:p,options:g}=(0,i.y)(t,s||r.$,d);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(x.Z,{page:A(n,o,l),pageNum:a.pageNum,pageType:"Category"}),(0,u.jsx)(p,{categoryPageData:t,options:g,pagination:a})]})},U=a(13776),b=(e,t)=>({date:"",excerpt:"",featuredImage:t?{node:t}:void 0,featuredImageUrl:null==t?void 0:t.sourceUrl,modified:"",title:e.name,uri:e.uri,seo:e.seo}),N=e=>{let{data:t,pagination:a}=e,o=(0,v.Z)(),{defaultImage:n}=(0,c.Z)(),{data:i}=(0,y.Z)(),{component:d,options:s}=(0,l.G)(t,i||r.$,o);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(x.Z,{page:b(t,n),pageNum:a.pageNum,pageType:"Tag",robots:(null==i?void 0:i.tagSupportDisable)?"noindex, follow":""}),(0,u.jsx)(d,{data:t,options:s,pagination:a})]})},C=a(93990),P=a(15717),k=a(11125),w=a(9961),F=function(){let e=(0,d.useRouter)(),t=(0,o.fu)(),{node:a}=(0,k.Z)(),n=(0,C.Z)(a),r=(0,P.Z)();if(r&&("redirect"in r&&e.push(r.redirect.destination),"notFound"in r)||!a)return(0,u.jsx)(w.Z,{statusCode:404});let{type:i}=a,l="Post"===i?a.primaryCategory:a;return(0,u.jsxs)(s.Z,{category:l,ogTemplateInfo:n,children:["Post"===i&&(0,u.jsx)(p.Z,{data:a}),"Page"===i&&(0,u.jsx)(U.Z,{page:a}),"Category"===i&&(0,u.jsx)(D,{categoryPageData:{category:a},pagination:t}),"Tag"===i&&(0,u.jsx)(N,{data:a,pagination:t}),"AuthorTag"===i&&(0,u.jsx)(T,{authorData:a,pagination:t}),"Authors"===i&&(0,u.jsx)(Z,{authors:a,pagination:t})]})}}}]); 2//# sourceMappingURL=97671-28162f288a8a4f2d.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.