PageSourceSearch

https://rohitpatil.me/_next/static/chunks/pages/[username]/articles/[slug]-c0d03e464acb6adc.js

js rohitpatil.me collected 2026-09-28 07:18:23 UTC 8,062 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[710],{20629:(e,l,n)=>{"use strict";n.r(l),n.d(l,{__N_SSP:()=>b,default:()=>N});var t=n(37876),i=n(77328),s=n.n(i),r=n(89099),d=n(14232),a=n(2171),o=n(57994),u=n(63819),c=n(18480),m=n(34217),x=n(58385),h=n(29006),j=n(44657),v=n(16495),p=n(9102);let f=e=>{let{article:l,setArticle:n}=e;return(0,t.jsx)("div",{className:"w-full flex justify-center md:justify-end pr-4 ",children:(0,t.jsxs)("div",{className:"fixed bottom-14 md:top-[50%] -translate-y-[50%] z-5 bg-gray-00 md:bg-transparent p-2 rounded-xl flex md:flex-col flex-row items-end gap-4",children:[(0,t.jsx)(p.OZ,{article:l}),(0,t.jsx)(p.gL,{article:l,setArticle:n}),(0,t.jsx)(p.J3,{article:l,setArticle:n}),(0,t.jsx)("div",{className:"hidden md:block",children:(0,t.jsx)(p.xj,{article:l})}),(0,t.jsx)(p.qr,{article:l}),(null==l?void 0:l.views)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"md:h-0.5 h-6 md:w-6 w-0.5 mx-1 rounded-2xl bg-gray-200"}),(0,t.jsx)(p.fN,{article:l})]}):null]})})};var g=n(87156),A=n(61415),w=n(95993),b=!0;let N=e=>{var l,n,i,p,b,N,P,C,y,T,_,E;let{articleData:S,jsonLD:k}=e,{isLoggedIn:H}=(0,g.A)(),B=(0,r.useRouter)(),[O,F]=(0,d.useState)(S);if(!O)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s(),{children:(0,t.jsx)("title",{children:"Article"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(o.A.CenterTop,{}),(0,t.jsx)("div",{className:"my-40",children:(0,t.jsx)(m.A.EmptyState,{icon:(0,t.jsx)(x.A.DeletedPost,{}),title:"Can't find the article you're looking for.",description:"This might happen due to multiple reasons."})})]})]});let L=(null==O?void 0:O.content)?u.default.getBlogReadTime(O.content):null,D=(0,a.useSelector)(w.B$),I=(null==O||null==(l=O.creator)?void 0:l.id)===D;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.A,{title:(null==O||null==(n=O.seo)?void 0:n.title)||(null==O?void 0:O.title),description:(null==O||null==(i=O.seo)?void 0:i.description)||(null==O?void 0:O.subTitle),noIndex:(null==O?void 0:O.noIndex)||!1,keywords:(null==O||null==(b=O.seo)||null==(p=b.keywords)?void 0:p.length)?null==O||null==(P=O.seo)||null==(N=P.keywords)?void 0:N.join(", "):null,jsonLD:k,url:null==O?void 0:O.url,canonical:null==O?void 0:O.url,ogImage:(null==O||null==(C=O.seo)?void 0:C.ogImage)||(null==O?void 0:O.featuredImage)||(null==O||null==(y=O.creator)?void 0:y.profilePicture)||null,extraMetaTags:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("meta",{name:"twitter:label1",content:"Written by"}),(0,t.jsx)("meta",{name:"twitter:data1",content:"".concat(null==O||null==(T=O.creator)?void 0:T.firstName," ").concat(null==O||null==(_=O.creator)?void 0:_.lastName)}),(0,t.jsx)("meta",{name:"twitter:label2",content:"Read time"}),(0,t.jsx)("meta",{name:"twitter:data2",content:"".concat(L," min")})]})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(h.A,{article:O}),(null==O||null==(E=O.creator)?void 0:E.id)&&!H?(0,t.jsx)("div",{className:"mb-10 px-4 md:w-1/3 mx-auto",children:(0,t.jsx)(m.A.JoinUserOnPeerlist,{user:O.creator,router:B})}):null,(null==O?void 0:O.id)?(0,t.jsx)("div",{id:"comments-section",className:"mx-auto w-full max-w-640 mb-24 px-0 sm:px-6",children:(0,t.jsx)(j.A,{post:O,commentType:v.COMMENT_TYPES.BLOG,writeCommentClassName:"py-4 px-4 sm:px-0",upvoteTabLabel:"Likes",isOwner:I,onCommentAdd:()=>F(e=>({...e,commentCount:((null==e?void 0:e.commentCount)||0)+1})),onCommentRemove:()=>F(e=>({...e,commentCount:Math.max(((null==e?void 0:e.commentCount)||0)-1,0)}))})}):null,(null==O?void 0:O.id)&&(null==O?void 0:O.publishedAt)?(0,t.jsx)(f,{article:O,setArticle:F}):null,(null==O?void 0:O.id)?(0,t.jsx)(A.A,{article:O}):null]})]})}},24421:(e,l,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[username]/articles/[slug]",function(){return n(20629)}])},29006:(e,l,n)=>{"use strict";n.d(l,{A:()=>w});var t=n(37876),i=n(89099),s=n(48230),r=n.n(s),d=n(87156),a=n(38234),o=n(57994),u=n(83872),c=n(21639),m=n(4755),x=n(89311),h=n(16495),j=n(63819),v=n(36449),p=n(28857),f=n(1245);let g=e=>{let{onlyIcon:l=!1}=e,n=(0,i.useRouter)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),e.preventDefault(),n.push(h.APP_PATHS.dec24WritingChallenge)},type:"button","data-tip":!0,"data-for":"challenge-info",children:(0,t.jsxs)(x.default.SemiBoldText,{textColor:"text-blue-400",className:"flex items-center gap-0.5 uppercase",as:"span",xs:!0,children:[(0,t.jsx)(u.PencilTipIcon,{size:l?14:16})," ",l?null:"CHALLENGE"]})}),(0,t.jsx)(f.A,{id:"challenge-info",text:"Part of December Writing Challenge"})]})};var A=n(26512);let w=e=>{var l,n,s,f,w,b,N,P;let{article:C,isPreview:y=!1,isPeerlistBlog:T=!1}=e;(0,v.A)();let _=(0,i.useRouter)(),{isLoggedIn:E}=(0,d.A)(),S=(null==C?void 0:C.content)?j.default.getBlogReadTime(C.content):null,k=(null==C||null==(l=C.creator)?void 0:l.profileHandle)?h.APP_PATHS.userBlogPage({profileHandle:null==C||null==(n=C.creator)?void 0:n.profileHandle,absolute:!0}):null;return(0,t.jsxs)("div",{children:[(0,t.jsxs)(o.A.CenterTop,{internalPage:!0,children:[(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(c.Ay.CarbonOutline,{circular:!0,className:"mr-2",onClick:()=>{var e,l;return y?T?_.push(h.APP_PATHS.addNewBlog(null==C?void 0:C.id)):_.push(h.APP_PATHS.addArticle(null==C?void 0:C.id)):(null==(l=window)||null==(e=l.history)?void 0:e.length)>1?_.back():void _.push(k)},children:(0,t.jsx)(u.ArrowLeftIcon,{size:18})})})}),E&&(null==C?void 0:C.editAccess)?(0,t.jsx)(c.Ay.CarbonOutline,{iconLeft:(0,t.jsx)(u.EditPencilIcon,{size:16}),onClick:()=>
1{if(T)return void _.push(h.APP_PATHS.addNewBlog(null==C?void 0:C.id));_.push(h.APP_PATHS.addArticle(null==C?void 0:C.id))},children:"Edit"}):null]}),(0,t.jsxs)("div",{className:"py-10 mt-14 mx-auto w-full max-w-640 px-4 sm:px-6",children:[(0,t.jsx)("div",{className:"flex justify-center mb-4",children:(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"mb-0.5",children:(0,t.jsx)(p.A,{profileHandle:null==C||null==(s=C.creator)?void 0:s.profileHandle,children:(0,t.jsx)(r(),{prefetch:!1,href:k,className:"mx-auto",children:(0,t.jsx)(m.Ay.Small,{image:null==C||null==(f=C.creator)?void 0:f.profilePicture,verified:null==C||null==(w=C.creator)?void 0:w.verified})})})}),(0,t.jsx)(p.A,{profileHandle:null==C||null==(b=C.creator)?void 0:b.profileHandle,children:(0,t.jsx)(r(),{prefetch:!1,href:k,children:(0,t.jsxs)(x.default.SemiBoldText,{sm:!0,className:"hover:underline transition-all ease-in-out mb-0.5",children:[null==C||null==(N=C.creator)?void 0:N.firstName," ",null==C||null==(P=C.creator)?void 0:P.lastName]})})}),(0,t.jsxs)(x.default.MutedText,{xs:!0,className:"flex items-center mt-1",children:[(null==C?void 0:C.publishedAt)?(0,t.jsx)(t.Fragment,{children:a.A.getFormattedDate(new Date(C.publishedAt))}):null,S?(0,t.jsxs)(t.Fragment,{children:[(null==C?void 0:C.publishedAt)?(0,t.jsx)(x.default.Dot,{}):null,S," min read"]}):null,(null==C?void 0:C.isArticlePartOfChallenge)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.default.Dot,{}),(0,t.jsx)(g,{xxs:!0})]}):null]})]})}),(0,t.jsx)(A.BM,{article:C}),(0,t.jsx)(A.xK,{article:C}),(0,t.jsx)(A.sq,{article:C}),(0,t.jsx)(A.cm,{article:C})]})]})}},36449:(e,l,n)=>{"use strict";n.d(l,{A:()=>i});var t=n(14232);let i=()=>{(0,t.useEffect)(()=>{var e,l,n,t;let i,s;return(null==(e=window)?void 0:e.hljs)?null==(t=window)||null==(n=t.hljs)||null==(l=n.highlightAll)||l.call(n):(i=document.createElement("script"),s=document.createElement("script"),i.defer=!0,i.src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js",s.defer=!0,s.src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/go.min.js",document.body.appendChild(i),document.body.appendChild(s),i.onload=()=>{var e,l,n;(null==(e=window)?void 0:e.hljs)&&(null==(n=window)||null==(l=n.hljs)||l.highlightAll())}),()=>{i&&document.body.removeChild(i),s&&document.body.removeChild(s)}},[])}}},e=>{e.O(0,[6318,5389,5777,2705,1894,9263,1415,4657,636,6593,8792],()=>e(e.s=24421)),_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.