PageSourceSearch

https://blog-nothanii.vercel.app/_next/static/chunks/pages/post/%5Bslug%5D-ff693691255bb88d.js

js blog-nothanii.vercel.app collected 2026-10-03 06:17:39 UTC 13,105 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[515],{2306:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/post/[slug]",function(){return n(9610)}])},7432:function(e,t){"use strict";t.Z={src:"/_next/static/media/opengraph.64411bc2.jpg",height:925,width:1238,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAGAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAb/xAAfEAABAwQDAQAAAAAAAAAAAAADAAECBAURIQYiMTL/xAAVAQEBAAAAAAAAAAAAAAAAAAADBP/EABcRAQEBAQAAAAAAAAAAAAAAAAIBABH/2gAMAwEAAhEDEQA/AK6xchGWNZdHLcCMasYEQGPGUR5dvnTYbt5vxERUgGntwtWLk3//2Q==",blurWidth:8,blurHeight:6}},5110:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(5893),s=n(1664),a=n.n(s),i=n(6020);function o(e){let t={green:"text-emerald-700",blue:"text-blue-600",orange:"text-orange-700",purple:"text-purple-600",avocado:"text-avocado-90",red:"text-red",yellow:"text-yellow",green2:"text-green2"};return(0,r.jsx)("span",{className:(0,i.cx)("inline-block mt-5 text-xs font-medium tracking-wider uppercase ",t[e.color]||t[pink]),children:e.children})}function l(e){let{categories:t}=e;return(0,r.jsx)("div",{className:"flex gap-3",children:(null==t?void 0:t.length)&&t.slice(0).map((e,t)=>(0,r.jsx)(a(),{href:"#",children:(0,r.jsx)("a",{children:(0,r.jsx)(o,{color:e.color,children:e.title})})},t))})}},2582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(5893);async function s(e,t){let n=await fetch(e,t);return n.json()}var a=n(7294),i=n(8100);let o=e=>{var t;let{slug:n}=e,{data:o}=(0,i.ZP)("/api/views/".concat(n),s);return(0,a.useEffect)(()=>{fetch("/api/views/".concat(n),{method:"POST"})},[n]),(0,r.jsx)("span",{children:"".concat((null!==(t=null==o?void 0:o.count)&&void 0!==t?t:0)>0?o.count.toLocaleString():"–––"," views")})};var l=o},1705:function(e,t,n){"use strict";n.d(t,{Y:function(){return m},me:function(){return h},wz:function(){return p}});var r=n(7297),s=n(114),a=n.n(s);function i(){let e=(0,r.Z)(['\n*[_type == "post"] | order(publishedAt desc, _createdAt desc) {\n  ...,\n  author->,\n  categories[]->\n}\n']);return i=function(){return e},e}function o(){let e=(0,r.Z)(['\n*[_type == "siteconfig"][0] {\n  ...,\n}\n']);return o=function(){return e},e}function l(){let e=(0,r.Z)(['\n*[_type == "post" && slug.current == $slug][0] {\n  ...,\n  author->,\n  categories[]->,\n  "estReadingTime": round(length(pt::text(body)) / 5 / 180 )\n}\n']);return l=function(){return e},e}function c(){let e=(0,r.Z)(["\n*[_type == \"post\"] {\n  'slug': slug.current,\n}\n"]);return c=function(){return e},e}function d(){let e=(0,r.Z)(['\n*[_type == "author"] {\n ...\n}\n']);return d=function(){return e},e}function u(){let e=(0,r.Z)(['\n*[_type == "listing"] | order(_createdAt desc) [$start..$end] {\n  ...,\n  category->\n }\n']);return u=function(){return e},e}function x(){let e=(0,r.Z)(['\n*[_type == "listing" && slug.current == $slug][0] {\n  ...,\n  category-> {\n    ...,\n    enqform->,\n    vendorform->\n  }\n }\n']);return x=function(){return e},e}let h=a()(i()),p=a()(o()),m=a()(l());a()(c()),a()(d()),a()(u()),a()(x())},9610:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return M},default:function(){return z}});var r=n(1799),s=n(9396),a=n(5893),i=n(9008),o=n.n(i),l=n(5675),c=n.n(l),d=n(1664),u=n.n(d),x=n(2722),h=n(5691),p=n(1163),m=n(8209),g=n(2918),A=n(9595),j=n(6159),v=n(8420),f=n(2962),k=n(7432),w=n(1705),b=n(5110);function y(e){let{author:t}=e,n=(null==t?void 0:t.image)?(0,A.Z)(t.image):null;return(0,a.jsx)("div",{className:"px-8 py-8 mt-3 text-gray-500 rounded-2xl bg-gray-50 dark:bg-pepper-70 dark:text-gray-400",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-start sm:space-x-6 sm:flex-nowrap",children:[(0,a.jsx)("div",{className:"relative flex-shrink-0 w-24 h-24 mt-1 ",children:n&&(0,a.jsx)(c(),{src:n.src,loader:n.loader,blurDataURL:n.blurDataURL,objectFit:"cover",alt:t.name,placeholder:"blur",layout:"fill",className:"rounded-full"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-3",children:(0,a.jsxs)("h4",{className:"text-lg font-medium text-gray-800 dark:text-gray-300",children:["About ",t.name]})}),(0,a.jsx)("div",{children:t.bio&&(0,a.jsx)(m.YI,{value:t.bio})})]})]})})}var L=n(2582),C=n(6616),N=n(3597),Z=n(7294),_=n(640),E=n.n(_);function D(e){var t;let{slug:n,title:r}=e,[s,i]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{0:n,1:r}=(0,Z.useState)(!1),s=(0,Z.useCallback)(()=>{void 0!==window&&(E()(null!=t?t:window.location.href),r(!0))},[t]);return(0,Z.useEffect)(()=>{let t;return n&&e&&(t=setTimeout(()=>r(!1),e)),()=>{clearTimeout(t)}},[n,e]),[n,s]}(1500),o="https://blog-nothanii.vercel.app/post/".concat(n);return(0,a.jsxs)("div",{className:"flex items-center space-x-3 m-0 justify-center",children:[(0,a.jsx)(C.Z,{url:o,title:r,via:"nothanii",children:(0,a.jsx)("svg",{className:"w-9 h-9 md:w-8 md:h-8 hover:rotate-[-4deg]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M9.31 18.25C14.7819 18.25 17.7744 13.4403 17.7744 9.26994C17.7744 9.03682 17.9396 8.83015 18.152 8.73398C18.8803 8.40413 19.8249 7.49943 18.8494 5.97828C18.2031 6.32576 17.6719 6.51562 16.9603 6.74448C15.834 5.47393 13.9495 5.41269 12.7514 6.60
1761C11.9785 7.37819 11.651 8.52686 11.8907 9.62304C9.49851 9.49618 6.69788 7.73566 5.1875 5.76391C4.39814 7.20632 4.80107 9.05121 6.10822 9.97802C5.63461 9.96302 5.1716 9.82741 4.75807 9.58305V9.62304C4.75807 11.1255 5.75654 12.4191 7.1444 12.7166C6.70672 12.8435 6.24724 12.8622 5.80131 12.771C6.19128 14.0565 7.87974 15.4989 9.15272 15.5245C8.09887 16.4026 6.79761 16.8795 5.45806 16.8782C5.22126 16.8776 4.98504 16.8626 4.75 16.8326C6.11076 17.7588 7.69359 18.25 9.31 18.2475V18.25Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,a.jsx)(N.Z,{title:r,url:o,children:(0,a.jsxs)("svg",{className:"w-9 h-9 md:w-8 md:h-8 hover:rotate-[-4deg]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M4.75 7.75C4.75 6.09315 6.09315 4.75 7.75 4.75H16.25C17.9069 4.75 19.25 6.09315 19.25 7.75V16.25C19.25 17.9069 17.9069 19.25 16.25 19.25H7.75C6.09315 19.25 4.75 17.9069 4.75 16.25V7.75Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M10.75 16.25V14C10.75 12.7574 11.7574 11.75 13 11.75C14.2426 11.75 15.25 12.7574 15.25 14V16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M10.75 11.75V16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M7.75 11.75V16.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M7.75 8.75V9.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,a.jsxs)("button",{className:"group ".concat(s?"text-teal-500":""),onClick:()=>i(),children:[(0,a.jsx)("span",{className:"sr-only",children:"Copy code"}),(0,a.jsxs)("svg",{"aria-hidden":"true",viewBox:"0 0 32 32",fill:"none",className:"w-12 h-12 md:w-11 md:h-11 stroke-current transform group-hover:rotate-[-4deg] transition",children:[(0,a.jsx)("path",{d:"M12.9975 10.7499L11.7475 10.7499C10.6429 10.7499 9.74747 11.6453 9.74747 12.7499L9.74747 21.2499C9.74747 22.3544 10.6429 23.2499 11.7475 23.2499L20.2475 23.2499C21.352 23.2499 22.2475 22.3544 22.2475 21.2499L22.2475 12.7499C22.2475 11.6453 21.352 10.7499 20.2475 10.7499L18.9975 10.7499",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M17.9975 12.2499L13.9975 12.2499C13.4452 12.2499 12.9975 11.8022 12.9975 11.2499L12.9975 9.74988C12.9975 9.19759 13.4452 8.74988 13.9975 8.74988L17.9975 8.74988C18.5498 8.74988 18.9975 9.19759 18.9975 9.74988L18.9975 11.2499C18.9975 11.8022 18.5498 12.2499 17.9975 12.2499Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M13.7475 16.2499L18.2475 16.2499",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M13.7475 19.2499L18.2475 19.2499",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsxs)("g",{className:"transition-opacity ".concat(s?"opacity-100 transform rotate-[-4deg] transition":"opacity-0"),children:[(0,a.jsx)("path",{d:"M15.9975 5.99988L15.9975 3.99988",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M19.9975 5.99988L20.9975 4.99988",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M11.9975 5.99988L10.9975 4.99988",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]})]})]})}var M=!0;function z(e){var t,n,i;let{postdata:l,siteconfig:d,preview:C}=e,N=(0,p.useRouter)(),{slug:Z}=N.query,{data:_}=(0,m.$r)(w.Y,{params:{slug:Z},initialData:l,enabled:C||void 0!==N.query.preview}),{data:E}=(0,m.$r)(w.wz,{initialData:d,enabled:C||void 0!==N.query.preview});if(!N.isFallback&&!(null==_?void 0:_.slug))return(0,a.jsx)(g.default,{statusCode:404});let M=(null==_?void 0:_.mainImage)?(0,A.Z)(null==_?void 0:_.mainImage):null,z=(null==_?void 0:null===(t=_.author)||void 0===t?void 0:t.image)?(0,A.Z)(_.author.image):null,B=(null==E?void 0:E.openGraphImage)?(0,A.Z)(null==E?void 0:E.openGraphImage).src:k.Z.src;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o(),{children:(0,a.jsx)("script",{async:!0,src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5767841662546897",crossorigin:"anonymous"})}),_&&E&&(0,a.jsxs)(x.Z,(0,s.Z)((0,r.Z)({},E),{children:[(0,a.jsx)(f.PB,{title:"".concat(_.title," - ").concat(E.title),description:_.excerpt||"",canonical:"".concat(null==E?void 0:E.url,"/post/").concat(_.slug.current),openGraph:{url:"".concat(null==E?void 0:E.url,"/post/").concat(_.slug.current),title:"".concat(_.title," - ").concat(E.title),description:_.excerpt||"",images:[{url:(0,A.Z)(null==_?void 0:_.mainImage).src||B,width:800,height:600,alt:""}],site_name:E.title},twitter:{cardType:"summary_large_image"}}),(0,a.jsx)(h.Z,{className:"!pt-0",children:(0,a.jsxs)("div",{className:"max-w-screen-md mx-auto ",children:[(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)(b.Z,{categories:_.categories})}),(0,a.jsx)("h1",{className:"mt-2 mb-3 text-3xl font-semibold tracking-tight text-center lg:leading-snug text-brand-primary lg:text-4xl dark:text-white",children:_.title}),(0,a.jsx)("div",{className:"flex justify-center mt-3 space-x-3 text-gray-500 ",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"relative flex-shrink-0 w-10 h-10",children:z&&(0,a.jsx)(c(),{src:z.src,blurDataURL:z.blurDataURL,loader:z.loader,objectFit:"cover",alt:null==_?void 0:null===(n=_.author)||void 0===n?void 0:n.name,placeholder:"blur",layout:"fill",className:"rounded-full"})}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"text-gray-800 dark:text-gray-400",children:[_.author.name," ",(0,a.jsx)(L.Z,{slug:_.slug.current})]}),(0,a.jsx)("div",{}),(0,a.jsxs)("div",{className:"flex items-center space-x-2 text-sm",children:[(0,a.jsx)("time",{className:"text-gray-500 dark:text-gray-400",dateTime:(null==_?void 0:_.publishedAt)||_._createdAt,children:(0,j.Z)((0,v.Z)((null==_?void 0:_.publishedAt)||_._createdAt),"MMMM dd, yyyy")}),(0,a.jsxs)("span",{children:["\xb7 ",_.estReadingTime||"5"," min read"]})]})]})]})})]})}),(0,a.jsx)("div",{className:"relative z-0 max-w-screen-lg mx-auto overflow-hidden lg:rounded-lg aspect-video",children:M&&(0,a.jsx)(c(),{src:M.src,loader:M.loader,blurDataURL:M.blurDataURL,alt:(null===(i=_.mainImage)||void 0===i?void 0:i.alt)||"Thumbnail",placeholder:"blur",layout:"fill",loading:"eager",objectFit:"cover"})}),(0,a.jsxs)(h.Z,{children:[(0,a.jsxs)("article",{className:"max-w-screen-md mx-auto ",children:[(0,a.jsx)("div",{className:"mx-auto my-3 prose prose-base dark:prose-invert prose-a:text-blue-500",children:_.body&&(0,a.jsx)(m.YI,{value:_.body})}),(0,a.jsxs)("aside",{className:" w-full lg:inline-block md:sticky md:top-[175px] md:self-start col-span-3 space-y-8",children:[(0,a.jsx)("h3",{className:"m-0 text-sm font-semibold tracking-wider text-center uppercase",children:"Share Article"}),(0,a.jsx)(D,{title:_.title,slug:_.slug.current})]}),_.author&&(0,a.jsx)(y,{author:_.author})]}),(0,a.jsxs)("div",{className:"flex justify-center mt-7 mb-7",children:[(0,a.jsx)("iframe",{src:"https://nothanii.substack.com/embed",className:"px-8 py-8 mt-3 text-gray-500 rounded-2xl bg-gray-50 dark:bg-pepper-70 dark:text-gray-400"}),"",(0,a.jsx)(u(),{href:"/",children:(0,a.jsx)("a",{className:"px-5 py-2 text-sm text-blue-600 rounded-full dark:text-blue-500 bg-brand-secondary/20 ",children:"← View all posts"})})]})]})]}))]})}}},function(e){e.O(0,[866,556,180,825,653,722,774,888,179],function(){return e(e.s=2306)}),_N_E=e.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.