PageSourceSearch

https://www.cognitivelab.in/_next/static/chunks/app/blog/page-383dc845b0c3d49a.js

js cognitivelab.in collected 2026-10-03 23:09:11 UTC 12,857 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[404],{39221:function(e,t,a){Promise.resolve().then(a.t.bind(a,71102,23)),Promise.resolve().then(a.bind(a,48691)),Promise.resolve().then(a.bind(a,40521)),Promise.resolve().then(a.bind(a,14202)),Promise.resolve().then(a.bind(a,68309))},14202:function(e,t,a){"use strict";a.d(t,{default:function(){return g}});var r=a(65559),s=a(16185),n=a.n(s),l=a(56763),i=a(90584),o=a(82227),c=a(37915),d=a(96898),m=a(79047),f=a(99705),x=a(40521);function u(e){let{children:t,className:a}=e;return(0,r.jsxs)("div",{className:(0,m.cn)("group relative mx-auto flex max-w-fit flex-row items-center justify-center rounded-2xl bg-black/40 px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#8fdfff1f] backdrop-blur-sm transition-shadow duration-500 ease-out [--bg-size:300%] hover:shadow-[inset_0_-5px_10px_#8fdfff3f] dark:bg-black/40",a),children:[(0,r.jsx)("div",{className:"absolute inset-0 block h-full w-full animate-gradient bg-gradient-to-r from-[#ffaa40]/50 via-[#9c40ff]/50 to-[#ffaa40]/50 bg-[length:var(--bg-size)_100%] p-[1px] [border-radius:inherit] ![mask-composite:subtract] [mask:linear-gradient(#fff_0_0)_content-box,linear-gradient(#fff_0_0)]"}),t]})}var h=a(2908),p=a(69694),g=e=>{let{title:t="",subtitle:a,highlightBadge:s,highlightText:g,height:v="50vh",ctaText:b,ctaLink:j="/contact",emoji:y="\uD83D\uDE80"}=e,w=(0,i._)(),N=(0,l.useRef)(null),k=(0,o.Y)(N),[z,E]=(0,l.useState)({rows:0,cols:0});(0,l.useEffect)(()=>{k&&w.start("visible")},[w,k]),(0,l.useEffect)(()=>{let e=()=>{if(N.current){let{width:e,height:t}=N.current.getBoundingClientRect(),a=Math.min(60,e/10);E({rows:Math.floor(t/a),cols:Math.floor((e-40)/a)})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let _={hidden:{opacity:0,scale:.5},visible:{opacity:1,scale:1,transition:{type:"spring",damping:10,stiffness:100}}};return(0,r.jsxs)(f.Z,{className:"-mt-[5.25rem] pt-[12rem]",crosses:!0,crossesOffset:"lg:translate-y-[5.25rem]",customPaddings:!0,id:"hero",children:[(0,r.jsxs)("div",{ref:N,style:{height:v},className:"jsx-3256262076492e18 relative",children:[(0,r.jsx)(c.E.div,{className:"absolute inset-0 z-0 px-5 lg:px-7.5 xl:px-10",initial:"hidden",animate:w,variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.01,delayChildren:.2}}},children:Array.from({length:z.rows*z.cols}).map((e,t)=>(0,r.jsx)(c.E.div,{className:"absolute rounded-md border border-gray-200/30 transition-all duration-300 ease-in-out",variants:_,style:{width:"calc(100% / ".concat(z.cols,")"),height:"calc(100% / ".concat(z.rows,")"),left:"".concat(t%z.cols*(100/z.cols),"%"),top:"".concat(Math.floor(t/z.cols)*(100/z.rows),"%"),animation:"diagonalShrink ".concat(5+t%z.cols*.1,"s infinite ease-in-out"),animationDelay:"".concat((t%z.cols+Math.floor(t/z.cols))*.1,"s")},whileHover:{scale:1.2,zIndex:10,borderColor:"rgba(255,255,255,0.5)",transition:{duration:0}}},t))}),(0,r.jsx)("div",{className:"jsx-3256262076492e18 relative z-1 mx-auto flex h-full w-full items-center justify-center px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)(c.E.div,{className:"rounded-md border-2 border-gray-800 bg-transparent p-8 backdrop-blur-sm hover:border-gray-600",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1},children:[s&&(0,r.jsx)("div",{className:"jsx-3256262076492e18 z-10 mb-4 flex min-h-[4rem] cursor-pointer items-center justify-center",children:(0,r.jsxs)(u,{children:[y," ",(0,r.jsx)("hr",{className:"jsx-3256262076492e18 mx-2 h-4 w-[1px] shrink-0 bg-gray-300"})," ",(0,r.jsx)("span",{className:"jsx-3256262076492e18 "+((0,m.cn)("metallic-text inline animate-gradient bg-gradient-to-r from-[#ffaa40] via-[#9c40ff] to-[#ffaa40] bg-[length:var(--bg-size)_100%] bg-clip-text text-transparent")||""),children:s}),(0,r.jsx)(h.Z,{className:"ml-1 size-3 transition-transform duration-300 ease-in-out group-hover:translate-x-0.5"})]})}),t&&(0,r.jsx)(c.E.h1,{className:"h1 mb-6 text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:(()=>{if(!t)return null;if(g){let e=t.split(RegExp("(".concat(g,")"),"i"));return(0,r.jsx)(r.Fragment,{children:e.map((e,t)=>e.toLowerCase()===(null==g?void 0:g.toLowerCase())?(0,r.jsx)("span",{className:"animated-gradient-text metallic-text",children:e},t):e)})}return t})()}),a&&(0,r.jsx)(c.E.p,{className:"mx-auto mb-8 max-w-3xl text-center text-lg text-n-3 lg:text-xl",initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},children:a}),b&&(0,r.jsx)(c.E.div,{className:"flex w-full items-center justify-center gap-5 p-2 pt-6",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},children:(0,r.jsx)(d.default,{href:j,className:"cursor-pointer",children:(0,r.jsx)(p.Z,{className:"shadow-2xl",children:(0,r.jsx)("span",{className:"jsx-3256262076492e18 whitespace-pre-wrap text-center text-sm font-medium leading-none tracking-tight text-white dark:from-white dark:to-slate-900/10 lg:text-lg",children:b})})})})]})})]}),(0,r.jsx)(n(),{id:"3256262076492e18",children:"@-webkit-keyframes diagonalShrink{0%,100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}50%{-webkit-transform:scale(.8);transform:scale(.8);opacity:.5}}@-moz-keyframes diagonalShrink{0%,100%{-moz-transform:scale(1);transform:scale(1);opacity:1}50%{-moz-transform:scale(.8);transform:scale(.8);opacity:.5}}@-o-keyframes diagonalShrink{0%,100%{-o-transform:scale(1);transform:scale(1);opacity:1}50%{-o-transform:scale(.8);transform:scale(.8);opacity:.5}}@keyframes diagonalShrink{0%,100%{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1);opacity:1}50%{-webkit-transform:scale(.8);-moz-transform:scale(.8);-o-transform:scale(.8);transform:scale(.8);opacity:.5}}"}),(0,r.jsx)(x.BottomLine,{})]})}},48691:function(e,t,a){"use strict";a.d(t,{default:function(){return x}});var r=a(65559),s=a(45687),n=a(96898),l=a(90268),i=a(9243),o=e=>{let{dateString:t}=e,a=(0,l.D)(t);return(0,r.jsx)("time",{dateTime:t,children:(0,i.WU)(a,"LLLL	d, yyyy")})},c=a(59681),d=a(18308),m=a(13698),f=a(56763),x=e=>{let{blog:t,format:a="grid",mainFeature:l=!1}=e,{title:i,slug:x,coverImage:u,date:h,excerpt:p,author:g,contentType:v="blog",tags:b=[]}=t;(0,f.useEffect)(()=>{let e=e=>{document.querySelectorAll(".horizontal-scroll").forEach(t=>{0!==e.deltaY&&t instanceof HTMLElement&&(t.scrollLeft+=e.deltaY,e.preventDefault())})},t=document.querySelectorAll(".horizontal-scroll");return t.forEach(t=>{t.addEventListener("wheel",e,{passive:!1})}),()=>{t.forEach(t=>{t.removeEventListener("wheel",e)})}},[]);let j=b.length>0?b:x.split("-").slice(0,3).map(e=>e.charAt(0).toUpperCase()+e.slice(1));return l?(0,r.jsx)("div",{className:"group relative flex h-full flex-col overflow-hidden rounded-2xl border border-n-6 bg-conic-gradient p-0.25 transition-all duration-500 hover:scale-[1.01]",children:(0,r.jsxs)("div",{className:"relative z-10 flex h-full flex-col rounded-[18px] bg-n-8 backdrop-blur-sm lg:flex-row",children:[(0,r.jsxs)("div",{className:"relative h-64 p-3 sm:h-72 md:h-80 lg:h-auto lg:w-1/2 lg:p-4",children:[(0,r.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-xl",children:(0,r.jsx)(s.default,{src:u||"/assets/blog/default-cover.jpg",alt:i,className:"h-full object-cover transition-transform duration-500 group-hover:scale-105",fill:!0})}),(0,r.jsx)("div",{className:"absolute left-6 top-6 z-10",children:(0,r.jsx)(c.C,{variant:"announcement"===v?"destructive":"default",className:"font-medium",children:"announcement"===v?"Announcement":"Blog"})})]}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col p-6 sm:p-7 lg:p-8",children:[(0,r.jsxs)("div",{className:"mb-3 flex items-center text-xs text-n-3",children:[(0,r.jsx)(d.Z,{className:"mr-1.5 h-3.5 w-3.5"}),(0,r.jsx)(o,{dateString:h})]}),(0,r.jsx)("h3",{className:"group-hover:text-gradient-500 mb-3 line-clamp-2 flex-none text-xl font-bold text-n-1 transition-colors sm:text-2xl lg:line-clamp-3 lg:text-3xl",children:(0,r.jsx)(n.default,{href:"/blog/".concat(x),children:i})}),(0,r.jsx)("p",{className:"mb-4 line-clamp-2 flex-grow text-sm text-n-3 sm:line-clamp-3 sm:text-base lg:line-clamp-4",children:p}),(0,r.jsxs)("div",{className:"mt-auto flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-end sm:justify-between",children:[(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:j.slice(0,3).map((e,t)=>(0,r.jsx)(c.C,{variant:"outline",className:"text-xs font-medium",children:e},t))}),(0,r.jsxs)(n.default,{href:"/blog/".concat(x),className:"text-primary-500 hover:text-gradient-500 flex items-center text-sm font-medium transition-all",children:["Read more",(0,r.jsx)(m.Z,{className:"ml-1.5 h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]})]})}):(0,r.jsx)("div",{className:"group relative flex h-full w-full flex-col overflow-hidden rounded-2xl border border-n-6 bg-conic-gradient p-0.25 transition-all duration-500 hover:scale-[1.02]",children:(0,r.jsxs)("div",{className:"relative z-10 flex h-full flex-col rounded-[18px] bg-n-8 backdrop-blur-sm",children:[(0,r.jsxs)("div",{className:"relative p-3",children:[(0,r.jsx)("div",{className:"relative h-48 w-full overflow-hidden rounded-lg md:h-52",children:(0,r.jsx)(s.default,{src:u||"/assets/blog/default-cover.jpg",alt:i,className:"object-cover transition-transform duration-500 group-hover:scale-105",fill:!0})}),(0,r.jsx)("div",{className:"absolute left-6 top-6",children:(0,r.jsx)(c.C,{variant:"announcement"===v?"destructive":"default",className:"font-medium",children:"announcement"===v?"Announcement":"Blog"})})]}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col p-5 md:p-6",children:[(0,r.jsxs)("div",{className:"mb-2 flex items-center text-xs text-n-3",children:[(0,r.jsx)(d.Z,{className:"mr-1.5 h-3.5 w-3.5"}),(0,r.jsx)(o,{dateString:h})]}),(0,r.jsx)("h3",{className:"group-hover:text-gradient-500 mb-3 line-clamp-2 flex-none text-lg font-bold text-n-1 transition-colors md:text-xl",children:(0,r.jsx)(n.default,{href:"/blog/".concat(x),children:i})}),(0,r.jsx)("p",{className:"mb-4 line-clamp-3 flex-grow text-sm text-n-3",children:p}),(0,r.jsxs)("div",{className:"mt-auto flex flex-wrap items-end justify-between",children:[(0,r.jsx)("div",{className:"mb-2 flex flex-wrap gap-2",children:j.slice(0,3).map((e,t)=>(0,r.jsx)(c.C,{variant:"outline",className:"text-xs font-medium",children:e},t))}),(0,r.jsxs)(n.default,{href:"/blog/".concat(x),className:"text-primary-500 hover:text-gradient-500 flex items-center text-xs font-medium transition-all",children:["Read more",(0,r.jsx)(m.Z,{className:"ml-1 h-3.5 w-3.5 transition-transform group-hover:translate-x-1"})]})]})]})]})})}},59681:function(e,t,a){"use strict";a.d(t,{C:function(){return i}});var r=a(65559);a(56763);var s=a(73886),n=a(79047);let l=(0,s.j)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-2 bg-black text-white hover:bg-primary-400",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"border-n-5 bg-n-7/50 text-n-1 hover:border-primary-500 hover:text-primary-500"}},defaultVariants:{variant:"default"}});function i(e){let{className:t,variant:a,...s}=e;return(0,r.jsx)("div",{className:(0,n.cn)(l({variant:a}),t),...s})}},68309:function(e,t,a){"use strict";a.d(t,{Tabs:function(){return i},TabsContent:function(){return d},TabsList:function(){return o},TabsTrigger:function(){return c}});var r=a(65559),s=a(56763),n=a(49503),l=a(79047);let i=n.fC,o=s.forwardRef((e,t)=>
1{let{className:a,...s}=e;return(0,r.jsx)(n.aV,{ref:t,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",a),...s})});o.displayName=n.aV.displayName;let c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.xz,{ref:t,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",a),...s})});c.displayName=n.xz.displayName;let d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.VY,{ref:t,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...s})});d.displayName=n.VY.displayName}},function(e){e.O(0,[353,517,684,710,103,944,250,192,221,744],function(){return e(e.s=39221)}),_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.