PageSourceSearch

https://www.drrichapathak.com/_next/static/chunks/f683f22b993fde54.js

js drrichapathak.com collected 2026-10-02 00:29:32 UTC 8,480 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,54513,e=>{"use strict";var t,s,l=e.i(71645),r=Object.defineProperty,o=new Map,n=new WeakMap,i=0;function a({threshold:e,delay:s,trackVisibility:r,rootMargin:c,root:d,triggerOnce:m,skip:h,initialInView:u,fallbackInView:x,onChange:p}={}){var g;let[f,y]=l.useState(null),b=l.useRef(p),v=l.useRef(u),[w,j]=l.useState({inView:!!u,entry:void 0});b.current=p,l.useEffect(()=>{let l;if(void 0===v.current&&(v.current=u),!h&&f)return l=function(e,s,l={},r=t){if(void 0===window.IntersectionObserver&&void 0!==r){let t=e.getBoundingClientRect();return s(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof l.threshold?l.threshold:0,time:0,boundingClientRect:t,intersectionRect:t,rootBounds:t}),()=>{}}let{id:a,observer:c,elements:d}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var s;return`${t}_${"root"===t?!(s=e.root)?"0":(n.has(s)||(i+=1,n.set(s,i.toString())),n.get(s)):e[t]}`}).toString(),s=o.get(t);if(!s){let l,r=new Map,n=new IntersectionObserver(t=>{t.forEach(t=>{var s;let o=t.isIntersecting&&l.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(s=r.get(t.target))||s.forEach(e=>{e(o,t)})})},e);l=n.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),s={id:t,observer:n,elements:r},o.set(t,s)}return s}(l),m=d.get(e)||[];return d.has(e)||d.set(e,m),m.push(s),c.observe(e),function(){m.splice(m.indexOf(s),1),0===m.length&&(d.delete(e),c.unobserve(e)),0===d.size&&(c.disconnect(),o.delete(a))}}(f,(e,t)=>{let s=v.current;v.current=e,(void 0!==s||e)&&(j({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&m&&l&&(l(),l=void 0))},{root:d,rootMargin:c,threshold:e,trackVisibility:r,delay:s},x),()=>{l&&l()}},[Array.isArray(e)?e.toString():e,f,d,c,m,h,r,x,s]);let N=null==(g=w.entry)?void 0:g.target,k=l.useRef(void 0);f||!N||m||h||k.current===N||(k.current=N,j({inView:!!u,entry:void 0}),v.current=u);let C=[y,w.inView,w.entry];return C.ref=C[0],C.inView=C[1],C.entry=C[2],C}l.Component,null!=(null!=(s=l.useInsertionEffect)?s:l.useLayoutEffect)||l.useEffect,e.s(["useInView",()=>a])},85817,e=>{"use strict";var t=e.i(43476),s=e.i(47163);e.s(["BentoGrid",0,({className:e,children:l})=>(0,t.jsx)("div",{className:(0,s.cn)("mx-auto grid w-full grid-cols-1 gap-4 sm:gap-6 md:auto-rows-auto md:grid-cols-3 lg:grid-cols-4",e),children:l}),"BentoGridItem",0,({className:e,title:l,description:r,header:o,icon:n,style:i,onMouseEnter:a,onMouseLeave:c})=>(0,t.jsxs)("div",{className:(0,s.cn)("group/bento row-span-1 flex flex-col space-y-3 sm:space-y-4 rounded-lg transition-all duration-300",e),style:i,onMouseEnter:a,onMouseLeave:c,children:[o,(0,t.jsxs)("div",{className:"flex flex-col flex-1 transition duration-200 group-hover/bento:translate-x-1",children:[n,(0,t.jsx)("div",{className:"min-w-0",children:l}),(0,t.jsx)("div",{className:"mt-auto pt-2",children:r})]})]})])},68814,e=>{"use strict";var t=e.i(43476),s=e.i(46932),l=e.i(54513),r=e.i(22016),o=e.i(85817),n=e.i(47163);function i({articles:e=[],showViewAll:i=!0,showHeader:a=!0}){let[c,d]=(0,l.useInView)({triggerOnce:!0,threshold:.1});return Array.isArray(e)&&0!==e.length?(0,t.jsxs)("section",{id:"articles",className:"min-h-screen w-full flex items-center py-4 relative overflow-hidden",style:{backgroundColor:"hsl(35, 20%, 98%)"},children:[(0,t.jsx)("div",{className:"absolute top-20 right-8 sm:right-12 md:right-16 pointer-events-none z-0 opacity-5",children:(0,t.jsx)("img",{src:"/peacock.png",alt:"Peacock decoration",className:"w-40 h-40 sm:w-48 sm:h-48 md:w-56 md:h-56 object-contain",style:{filter:"brightness(0) opacity(0.08)"}})}),(0,t.jsx)("div",{className:"absolute bottom-20 left-8 sm:left-12 md:left-16 pointer-events-none z-0 opacity-5",children:(0,t.jsx)("img",{src:"/lotus.svg",alt:"Lotus decoration",className:"w-36 h-36 sm:w-44 sm:h-44 md:w-52 md:h-52",style:{filter:"brightness(0) opacity(0.08)"}})}),(0,t.jsxs)("div",{ref:c,className:"max-w-7xl mx-auto px-4 sm:px-6 w-full relative z-10",children:[!1!==a&&(0,t.jsxs)(s.motion.div,{initial:{opacity:0,y:30},animate:d?{opacity:1,y:0}:{},transition:{duration:.8},className:"text-center mb-6 sm:mb-8 md:mb-12",children:[(0,t.jsx)("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-semibold my-4 sm:my-6 leading-tight font-cormorant tracking-wide",style:{color:"hsl(245, 45%, 25%)"},children:"Recent Articles & Activities"}),(0,t.jsx)("p",{className:"text-sm sm:text-base md:text-lg font-poppins font-light max-w-2xl mx-auto",style:{color:"hsl(25, 30%, 35%)"},children:"Explore the latest writings, insights, and professional activities"})]}),(0,t.jsx)(o.BentoGrid,{className:"max-w-7xl mx-auto gap-4 sm:gap-6 md:gap-8 md:auto-rows-auto mb-6 sm:mb-8 md:mb-12",children:e.map((e,l)=>{let i=l>=4,a=e.title?.length||0,c=0===l,m=a>60,h=e.documentId||e.id,u=`/article/${h}`;return(0,t.jsx)(s.motion.div,{initial:{opacity:0,y:20},animate:d?{opacity:1,y:0}:{},transition:{duration:.5,delay:.05*l},className:i?"hidden md:block":"",children:(0,t.jsx)(r.default,{href:u,className:"block h-full",style:{textDecoration:"none",color:"inherit"},children:(0,t.jsx)(o.BentoGridItem,{className:(0,n.cn)(c&&m?"md:col-span-2 md:row-span-2 lg:col-span-2 lg:row-span-2":c?"md:col-span-2 lg:col-span-2":m&&(l%4==2||l%4==3)?"md:row-span-2 lg:row-span-2":a>40&&a<=60&&l%4==1?"lg:col-span-2":"","p-4 sm:p-5 md:p-6 lg:p-7 h-full"),header:(0,t.jsxs)("div",{className:"flex flex-col",children:[e.cover?(0,t.jsx)("div",{className:"relative w-full mb-3 sm:mb-4 rounded-lg overflow-hidden",children:(0,t.jsx)("img",{src:e.cover?.url,alt:e.title,className:"w-full h-auto object-contain",onError:e=>{e.currentTarget.style.display="none"}})}):(0,t.jsx)("div",{className:"relative w-full mb-3 sm:mb-4 rounded-lg overflow-hidden bg-gradient-to-br from-gray-100 to-gray-200",style:{minHeight:"200px"},children:(0,t.jsx)("div",{className:"flex items-center justify-center h-full min-h-[200px]",children:(0,t.jsx)("span",{className:"text-xs text-gray-400 font-poppins",children:"No Image"})})}),e.category&&(0,t.jsx)("div",{className:"mb-3 sm:mb-4",children:(0,t.jsx)("span",{className:"inline-block px-3 py-1 text-[10px] sm:text-xs font-medium uppercase tracking-wider rounded-full font-poppins",style:{color:"hsl(25, 20%, 45%)",backgroundColor:"hsl(35, 20%, 95%)"},children:e.category.name||""})}),(0,t.jsx)("p",{className:"text-xs sm:text-sm mb-3 sm:mb-4 font-poppins font-light",style:{color:"hsl(25, 20%, 50%)"},children:(0,n.formatDate)(e.publishedAt,!1)})]}),title:(0,t.jsx)("div",{className:"space-y-3 sm:space-y-4",children:(0,t.jsx)("h3",{className:"text-base sm:text-lg md:text-xl lg:text-2xl font-bold leading-tight font-cormorant break-words",style:{color:"hsl(25, 30%, 15%)"},children:e.title})}),description:(0,t.jsxs)("div",{className:"inline-flex items-center text-sm font-light transition-colors font-poppins mt-2",children:["Read More",(0,t.jsx)("svg",{className:"ml-2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]}),style:{backgroundColor:"hsl(0, 0%, 100%)",border:"1px solid hsla(35, 85%, 55%, 0.2)"},onMouseEnter:e=>{let t=e.currentTarget;t.style.borderColor="hsla(35, 85%, 55%, 0.4)",t.style.boxShadow="0 8px 24px hsla(35, 85%, 55%, 0.15)"},onMouseLeave:e=>{let t=e.currentTarget;t.style.borderColor="hsla(35, 85%, 55%, 0.2)",t.style.boxShadow="none"}})})},h??l)})}),!1!==i&&(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(r.default,{href:"/article",children:(0,t.jsx)(s.motion.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"px-6 sm:px-8 py-2.5 sm:py-3 border-2 text-sm sm:text-base font-medium rounded-sm transition-colors touch-manipulation font-poppins",style:{borderColor:"hsl(245, 45%, 25%)",color:"hsl(245, 45%, 25%)"},onMouseEnter:e=>{let t=e.currentTarget;t.style.backgroundColor="hsl(245, 45%, 25%)",t.style.color="hsl(35, 25%, 98%)"},onMouseLeave:e=>{let t=e.currentTarget;t.style.backgroundColor="transparent",t.style.color="hsl(245, 45%, 25%)"},children:"View All Articles →"})})})]})]}):(0,t.jsx)("section",{id:"articles",className:"py-12",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:(0,t.jsx)("p",{className:"text-center text-gray-500 font-poppins",children:"No articles available at the moment."})})})}e.s(["default",()=>i])}]);

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.