(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{18168:function(e,t,n){"use strict";n.d(t,{YI:function(){return _}});var r=n(17206),i=n(85893),s=n(67294);let l=["block","list","listItem","marks","types"],o=["listItem"],c=["_key"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e,t,n){let r=t[n],i=e[n];return"function"==typeof r||r&&"function"==typeof i?r:r?u(u({},i),r):i}let m={textDecoration:"underline"},x=(e,t)=>"[@portabletext/react] Unknown ".concat(e,", specify a component for it in the `components.").concat(t,"` prop"),p=e=>x('block type "'.concat(e,'"'),"types"),h=e=>x('mark type "'.concat(e,'"'),"marks"),g=e=>x('block style "'.concat(e,'"'),"block"),j=e=>x('list style "'.concat(e,'"'),"list"),y=e=>x('list item style "'.concat(e,'"'),"listItem");function v(e){console.warn(e)}let b={display:"none"},k={types:{},block:{normal:e=>{let{children:t}=e;return(0,i.jsx)("p",{children:t})},blockquote:e=>{let{children:t}=e;return(0,i.jsx)("blockquote",{children:t})},h1:e=>{let{children:t}=e;return(0,i.jsx)("h1",{children:t})},h2:e=>{let{children:t}=e;return(0,i.jsx)("h2",{children:t})},h3:e=>{let{children:t}=e;return(0,i.jsx)("h3",{children:t})},h4:e=>{let{children:t}=e;return(0,i.jsx)("h4",{children:t})},h5:e=>{let{children:t}=e;return(0,i.jsx)("h5",{children:t})},h6:e=>{let{children:t}=e;return(0,i.jsx)("h6",{children:t})}},marks:{em:e=>{let{children:t}=e;return(0,i.jsx)("em",{children:t})},strong:e=>{let{children:t}=e;return(0,i.jsx)("strong",{children:t})},code:e=>{let{children:t}=e;return(0,i.jsx)("code",{children:t})},underline:e=>{let{children:t}=e;return(0,i.jsx)("span",{style:m,children:t})},"strike-through":e=>{let{children:t}=e;return(0,i.jsx)("del",{children:t})},link:e=>{let{children:t,value:n}=e;return(0,i.jsx)("a",{href:null==n?void 0:n.href,children:t})}},list:{number:e=>{let{children:t}=e;return(0,i.jsx)("ol",{children:t})},bullet:e=>{let{children:t}=e;return(0,i.jsx)("ul",{children:t})}},listItem:e=>{let{children:t}=e;return(0,i.jsx)("li",{children:t})},hardBreak:()=>(0,i.jsx)("br",{}),unknownType:e=>{let{value:t,isInline:n}=e,r=p(t._type);return n?(0,i.jsx)("span",{style:b,children:r}):(0,i.jsx)("div",{style:b,children:r})},unknownMark:e=>{let{markType:t,children:n}=e;return(0,i.jsx)("span",{className:"unknown__pt__mark__".concat(t),children:n})},unknownList:e=>{let{children:t}=e;return(0,i.jsx)("ul",{children:t})},unknownListItem:e=>{let{children:t}=e;return(0,i.jsx)("li",{children:t})},unknownBlockStyle:e=>{let{children:t}=e;return(0,i.jsx)("p",{children:t})}};function _(e){let{value:t,components:n,listNestingMode:o,onMissingComponent:c=v}=e,a=c||I,m=Array.isArray(t)?t:[t],x=(0,r.zL)(m,o||r.RR),p=(0,s.useMemo)(()=>n?function(e,t){let{block:n,list:r,listItem:i,marks:s,types:o}=t,c=d(t,l);return u(u({},e),{},{block:f(e,t,"block"),list:f(e,t,"list"),listItem:f(e,t,"listItem"),marks:f(e,t,"marks"),types:f(e,t,"types")},c)}(k,n):k,[n]),h=(0,s.useMemo)(()=>w(p,a),[p,a]),g=x.map((e,t)=>h({node:e,index:t,isInline:!1,renderNode:h}));return(0,i.jsx)(i.Fragment,{children:g})}let w=(e,t)=>function n(s){let{node:l,index:a,isInline:f}=s,m=l._key||"node-".concat(a);return(0,r.qS)(l)?function(r,s,l){let o=r.children.map((e,t)=>n({node:e._key?e:u(u({},e),{},{_key:"li-".concat(s,"-").concat(t)}),index:t,isInline:!1,renderNode:n})),c=e.list,a="function"==typeof c?c:c[r.listItem],d=a||e.unknownList;if(d===e.unknownList){let e=r.listItem||"bullet";t(j(e),{nodeType:"listStyle",type:e})}return(0,i.jsx)(d,{value:r,index:s,isInline:!1,renderNode:n,children:o},l)}(l,a,m):(0,r.Ii)(l)?function(r,s,l){let c=N({node:r,index:s,isInline:!1,renderNode:n}),a=e.listItem,u="function"==typeof a?a:a[r.listItem],f=u||e.unknownListItem;if(f===e.unknownListItem){let e=r.listItem||"bullet";t(y(e),{type:e,nodeType:"listItemStyle"})}let m=c.children;if(r.style&&"normal"!==r.style){let{listItem:e}=r,t=d(r,o);m=n({node:t,index:s,isInline:!1,renderNode:n})}return(0,i.jsx)(f,{value:r,index:s,isInline:!1,renderNode:n,children:m},l)}(l,a,m):(0,r.tX)(l)?function(s,l,o){let{markDef:c,markType:a,markKey:u}=s,d=e.marks[a]||e.unknownMark,f=s.children.map((e,t)=>n({node:e,index:t,isInline:!0,renderNode:n}));return d===e.unknownMark&&t(h(a),{nodeType:"mark",type:a}),(0,i.jsx)(d,{text:(0,r.pY)(s),value:c,markType:a,markKey:u,renderNode:n,children:f},o)}(l,0,m):l._type in e.types?function(t,r,s,l){let o=e.types[t._type];return o?(0,i.jsx)(o,u({},{value:t,isInline:l,index:r,renderNode:n}),s):null}(l,a,m,f):(0,r.HW)(l)?function(r,s,l,o){let a=N({node:r,index:s,isInline:o,renderNode:n}),{_key:f}=a,m=d(a,c),x=m.node.style||"normal",p="function"==typeof e.block?e.block:e.block[x],h=p||e.unknownBlockStyle;return h===e.unknownBlockStyle&&t(g(x),{nodeType:"blockStyle",type:x}),(0,i.jsx)(h,u(u({},m),{},{value:m.node,renderNode:n}),l)}(l,a,m,f):(0,r.m9)(l)?function(t,n){if("\n"===t.text){let t=e.hardBreak;return t?(0,i.jsx)(t,{},n):"\n"}return t.text}(l,m):function(r,s,l,o){t(p(r._type),{nodeType:"block",type:r._type});let c=e.unknownType;return(0,i.jsx)(c,u({},{value:r,isInline:o,index:s,renderNode:n}),l)}(l,a,m,f)};function N(e){let{node:t,index:n,isInline:i,renderNode:s}=e,l=(0,r.Ic)(t),o=l.map((e,t)=>s({node:e,isInline:!0,index:t,renderNode:s}));return{_key:t._key||"block-".concat(n),children:o,index:n,isInline:i,node:t}}function I(){}},67801:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return n(93969)}])},32717:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893),i=n(40415),s=n(25675),l=n.n(s);function o(e){var t,n;let{name:s,picture:o}=e;return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"relative mr-4 h-12 w-12",children:(0,r.jsx)(l(),{src:(null==o?void 0:null===(t=o.asset)||void 0===t?void 0:t._ref)?(0,i.i)(o).height(96).width(96).fit("crop").url():"https://source.unsplash.com/96x96/?face",className:"rounded-full",height:96,width:96,alt:null!==(n=null==o?void 0:o.alt)&&void 0!==n?n:s})}),(0,r.jsx)("div",{className:"text-xl font-bold",children:s})]})}},80388:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893);function i(e){let{children:t}=e;return(0,r.jsx)("div",{className:"container mx-auto px-5",children:t})}},39393:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(85893),i=n(18168),s=n(41664),l=n.n(s),o=n(86166),c=n.n(o);function a(e){let{title:t,description:n,level:s}=e;switch(s){case 1:return(0,r.jsxs)("header",{className:"mb-10 mt-16 flex flex-col items-center md:mb-12 md:flex-row md:justify-between",children:[(0,r.jsx)("h1",{className:"text-6xl font-bold leading-tight tracking-tighter md:pr-8 md:text-8xl",children:t}),(0,r.jsx)("h4",{className:"mt-5 text-center text-lg md:pl-8 md:text-left ".concat(c().portableText),children:(0,r.jsx)(i.YI,{value:n})})]});case 2:return(0,r.jsx)("header",{children:(0,r.jsx)("h2",{className:"mb-20 mt-8 text-2xl font-bold leading-tight tracking-tight md:text-4xl md:tracking-tighter",children:(0,r.jsx)(l(),{href:"/",className:"hover:underline",children:t})})});default:throw Error("Invalid level: ".concat(JSON.stringify(s)||typeof s,", only 1 or 2 are allowed"))}}},53305:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(85893),i=n(80388),s=n(67294);let l=()=>()=>{};function o(e){let{preview:t,loading:n}=e,o=(0,s.useSyncExternalStore)(l,()=>window.top===window,()=>!1);return o&&t?(0,r.jsx)("div",{className:"".concat(n?"animate-pulse":""," border-b border-accent-7 bg-accent-7 text-white"),children:(0,r.jsx)(i.Z,{children:(0,r.jsxs)("div",{className:"py-2 text-center text-sm",children:["Previewing drafts. ",(0,r.jsx)("a",{href:"/api/disable-draft",className:"underline transition-colors duration-200 hover:text-cyan",children:"Back to published"})]})})}):null}function c(e){let{preview:t,loading:n,children:i}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"min-h-screen",children:[(0,r.jsx)(o,{preview:t,loading:n}),(0,r.jsx)("main",{children:i})]})})}},96255:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893);function i(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1.0"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/favicon/apple-touch-icon.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/favicon/site.webmanifest"}),(0,r.jsx)("link",{rel:"shortcut icon",href:"/favicon/favicon.ico"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#000000"}),(0,r.jsx)("meta",{name:"msapplication-config",content:"/favicon/browserconfig.xml"}),(0,r.jsx)("meta",{name:"theme-color",content:"#000"})]})}},32205:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(85893),i=n(94184),s=n.n(i),l=n(69391),o=n(40415),c=n(25675),a=n.n(c),u=n(41664),d=n.n(u);function f(e){var t;let{title:n,slug:i,image:c,priority:u}=e,f=(null==c?void 0:null===(t=c.asset)||void 0===t?void 0:t._ref)?(0,r.jsx)("div",{className:s()("shadow-small",{"transition-shadow duration-200 hover:shadow-medium":i}),children:(0,r.jsx)(a(),{className:"h-auto w-full",width:2e3,height:1e3,alt:"Cover Image for ".concat(n),src:(0,o.i)(c).height(1e3).width(2e3).url(),sizes:"100vw",priority:u})}):(0,r.jsx)("div",{style:{paddingTop:"50%",backgroundColor:"#ddd"}});return(0,r.jsx)("div",{className:"sm:mx-0",children:i?(0,r.jsx)(d(),{href:"".concat(l.X,"/").concat(i),"aria-label":n,children:f}):f})}},23695:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(85893),i=n(17206),s=n(96255),l=n(64082),o=n(9008),c=n.n(o),a=n(34155);function u(e){let{settings:t}=e,{title:n=l.TN,description:o=l.WL,ogImage:u={}}=t,d=(null==u?void 0:u.title)||l.Zo;return(0,r.jsxs)(c(),{children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)(s.Z,{}),(0,r.jsx)("meta",{name:"description",content:(0,i.Kv)(o)},"description"),(0,r.jsx)("meta",{property:"og:image",content:"".concat(a.env.VERCEL_URL?"https://"+a.env.VERCEL_URL:"","/api/og?").concat(new URLSearchParams({title:d}))})]})}},10392:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(85893),i=n(32717),s=n(32205),l=n(86584),o=n(69391),c=n(41664),a=n.n(c);function u(e){let{title:t,coverImage:n,date:c,excerpt:u,author:d,slug:f}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-5",children:(0,r.jsx)(s.Z,{slug:f,title:t,image:n,priority:!1})}),(0,r.jsx)("h3",{className:"mb-3 text-3xl leading-snug",children:(0,r.jsx)(a(),{href:"".concat(o.X,"/").concat(f),className:"hover:underline",children:t})}),(0,r.jsx)("div",{className:"mb-4 text-lg",children:(0,r.jsx)(l.Z,{dateString:c})}),u&&(0,r.jsx)("p",{className:"mb-4 text-lg leading-relaxed",children:u}),d&&(0,r.jsx)(i.Z,{name:d.name,picture:d.picture})]})}function d(e){let{posts:t}=e;return(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"mb-8 text-6xl font-bold leading-tight tracking-tighter md:text-7xl",children:"More Stories"}),(0,r.jsx)("div",{className:"mb-32 grid grid-cols-1 gap-y-20 md:grid-cols-2 md:gap-x-16 md:gap-y-32 lg:gap-x-32",children:t.map(e=>(0,r.jsx)(u,{title:e.title,coverImage:e.coverImage,date:e.date,author:e.author,slug:e.slug,excerpt:e.excerpt},e._id))})]})}},86584:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(85893),i=n(42298),s=n(23855);function l(e){let{dateString:t}=e;if(!t)return null;let n=(0,s.Z)(t);return(0,r.jsx)("time",{dateTime:t,children:(0,i.Z)(n,"LLLL	d, yyyy")})}},64082:function(e,t,n){"use strict";n.d(t,{TN:function(){return r},WL:function(){return i},Zo:function(){return s}});let r="Blog.",i=[{_key:"9f1a629887fd",_type:"block",children:[{_key:"4a58edd077880",_type:"span",marks:[],text:"A statically generated blog example using "},{_key:"4a58edd077881",_type:"span",marks:["ec5b66c9b1e0"],text:"Next.js"},{_key:"4a58edd077882",_type:"span",marks:[],text:" and "},{_key:"4a58edd077883",_type:"span",marks:["1f8991913ea8"],text:"Sanity"},{_key:"4a58edd077884",_type:"span",marks:[],text:"."}],markDefs:[{_key:"ec5b66c9b1e0",_type:"link",href:"https://nextjs.org/"},{_key:"1f8991913ea8",_type:"link",href:"https://sanity.io/"}],style:"normal"}],s="A Next.js Blog with a Native Authoring Experience"},59199:function(e,t,n){"use strict";n.d(t,{Cd:function(){return a},Sx:function(){return l},gx:function(){return s},hH:function(){return i},tW:function(){return o},wc:function(){return c}});var r=n(34155);let i=!1,s=u("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),l=u("i9pumz99","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");r.env.SANITY_API_READ_TOKEN;let o=r.env.NEXT_PUBLIC_SANITY_API_VERSION||"2023-06-21",c="preview.secret",a="/api/draft";function u(e,t){if(void 0===e)throw Error(t);return e}},69391:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=""},40415:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(6803),i=n.n(r),s=n(59199);let l=i()({projectId:s.Sx,dataset:s.gx}),o=e=>l.image(e).auto("format").fit("max")},21241:function(e,t,n){"use strict";n.d(t,{GL:function(){return f},jX:function(){return x},zl:function(){return m}});var r=n(82729),i=n(37288);function s(){let e=(0,r._)(['\n  _id,\n  title,\n  date,\n  _updatedAt,\n  excerpt,\n  coverImage,\n  "slug": slug.current,\n  "author": author->{name, picture},\n']);return s=function(){return e},e}function l(){let e=(0,r._)(['*[_type == "settings"][0]']);return l=function(){return e},e}function o(){let e=(0,r._)(['\n*[_type == "post"] | order(date desc, _updatedAt desc) {\n  ',"\n}"]);return o=function(){return e},e}function c(){let e=(0,r._)(['\n{\n  "post": *[_type == "post" && slug.current == $slug] | order(_updatedAt desc) [0] {\n    content,\n    ','\n  },\n  "morePosts": *[_type == "post" && slug.current != $slug] | order(date desc, _updatedAt desc) [0...2] {\n    content,\n    ',"\n  }\n}"]);return c=function(){return e},e}function a(){let e=(0,r._)(['\n*[_type == "post" && defined(slug.current)][].slug.current\n']);return a=function(){return e},e}function u(){let e=(0,r._)(['\n*[_type == "post" && slug.current == $slug][0] {\n  ',"\n}\n"]);return u=function(){return e},e}let d=(0,i.Z)(s()),f=(0,i.Z)(l()),m=(0,i.Z)(o(),d),x=(0,i.Z)(c(),d,d);(0,i.Z)(a()),(0,i.Z)(u(),d)},93969:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return b},default:function(){return k}});var r=n(85893),i=n(80388),s=n(39393),l=n(53305),o=n(32717),c=n(32205),a=n(86584),u=n(69391),d=n(41664),f=n.n(d);function m(e){let{title:t,coverImage:n,date:i,excerpt:s,author:l,slug:d}=e;return(0,r.jsxs)("section",{children:[(0,r.jsx)("div",{className:"mb-8 md:mb-16",children:(0,r.jsx)(c.Z,{slug:d,title:t,image:n,priority:!0})}),(0,r.jsxs)("div",{className:"mb-20 md:mb-28 md:grid md:grid-cols-2 md:gap-x-16 lg:gap-x-8",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"mb-4 text-4xl leading-tight lg:text-6xl",children:(0,r.jsx)(f(),{href:"".concat(u.X,"/").concat(d),className:"hover:underline",children:t||"Untitled"})}),(0,r.jsx)("div",{className:"mb-4 text-lg md:mb-0",children:(0,r.jsx)(a.Z,{dateString:i})})]}),(0,r.jsxs)("div",{children:[s&&(0,r.jsx)("p",{className:"mb-4 text-lg leading-relaxed",children:s}),l&&(0,r.jsx)(o.Z,{name:l.name,picture:l.picture})]})]})]})}var x=n(23695),p=n(10392),h=n(64082);function g(e){let{preview:t,loading:n,posts:o,settings:c}=e,[a,...u]=o||[],{title:d=h.TN,description:f=h.WL}=c||{};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.Z,{settings:c}),(0,r.jsx)(l.Z,{preview:t,loading:n,children:(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(s.Z,{title:d,description:f,level:1}),a&&(0,r.jsx)(m,{title:a.title,coverImage:a.coverImage,date:a.date,author:a.author,slug:a.slug,excerpt:a.excerpt}),u.length>0&&(0,r.jsx)(p.Z,{posts:u})]})})]})}var j=n(21241),y=n(90998);function v(e){let[t,n]=(0,y.y)(e.posts,j.zl),[i,s]=(0,y.y)(e.settings,j.GL);return(0,r.jsx)(g,{preview:!0,loading:n||s,posts:t||[],settings:i||{}})}var b=!0;function k(e){let{posts:t,settings:n,draftMode:i}=e;return i?(0,r.jsx)(v,{posts:t,settings:n}):(0,r.jsx)(g,{posts:t,settings:n})}},86166:function(e){e.exports={portableText:"BlogHeader_portableText__I5RfC"}}},function(e){e.O(0,[847,723,300,774,888,179],function(){return e(e.s=67801)}),_N_E=e.O()}]);