1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59557,e=>{e.q("/_next/static/media/fullstack.000~.5kvxztfe.webp")},28126,e=>{e.q("/_next/static/media/genai.0akcn4ozt1vlt.webp")},93982,e=>{e.q("/_next/static/media/data.0q3h6ej9ylzl7.webp")},82559,e=>{e.q("/_next/static/media/science.0sc80qyrjrp6f.webp")},51374,e=>{e.q("/_next/static/media/ml.0071xt4zl.a59.webp")},34624,e=>{e.q("/_next/static/media/product.0qakz.ocure~n.webp")},52518,e=>{e.q("/_next/static/media/graphic.15a-7y_akw_.i.webp")},55452,e=>{e.q("/_next/static/media/ui.0f3hymanfeh0-.webp")},62817,e=>{e.q("/_next/static/media/video.0_nhvh~.p-0w0.webp")},87735,e=>{e.q("/_next/static/media/market.0tntz.6uteavq.webp")},33791,e=>{e.q("/_next/static/media/bussiness.07i9f1-9nq4hg.webp")},21754,e=>{e.q("/_next/static/media/logo.0rh8v..im-i96.webp")},51517,e=>{"use strict";let t=(0,e.i(1685).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],51517)},49505,e=>{"use strict";let t=(0,e.i(1685).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],49505)},96416,e=>{"use strict";let t=(0,e.i(1685).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],96416)},34380,e=>{"use strict";let t=(0,e.i(1685).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,t],34380)},34752,e=>{"use strict";let t=(0,e.i(1685).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],34752)},73649,30715,e=>{"use strict";async function t(e={}){try{let e=null;!0;{let t=new Date().getTime(),a=await fetch(`/blogs-data/list.json?t=${t}`);a.ok&&(e=await a.json())}if(e&&e.items)return{...e,items:e.items.filter(e=>e.id)}}catch(e){console.error("[BlogAPI] Static list fetch failed:",e)}return{items:[],total:0}}async function a(e){try{if(!(await t()).items.some(t=>t.id===e))return console.warn(`[BlogAPI] Blog ${e} not found in the official list. Filtering out.`),null;{let t=new Date().getTime(),a=await fetch(`/blogs-data/${e}.json?t=${t}`);if(a.ok)return await a.json()}}catch(t){console.error(`[BlogAPI] critical failure for ${e}:`,t)}return null}e.s(["getPublicBlogDetail",0,a,"getPublicBlogs",0,t],73649);let s=(0,e.i(1685).default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);e.s(["Tag",0,s],30715)},27925,e=>{"use strict";var t=e.i(79630),a=e.i(400),s=e.i(53369),l=e.i(73649),i=e.i(24632),r=e.i(14082),n=e.i(735),c=e.i(92988),o=e.i(34380),d=e.i(49505),x=e.i(47344),m=e.i(51517),h=e.i(34752),u=e.i(30715),p=e.i(96416);e.s(["default",0,function(){let[e,g]=(0,s.useState)([]),[f,b]=(0,s.useState)(!0),[y,w]=(0,s.useState)(""),[j,k]=(0,s.useState)(null);(0,s.useEffect)(()=>{!async function(){try{let e=await (0,l.getPublicBlogs)();g(e.items||[])}catch(e){console.error("Failed to fetch public blogs",e)}finally{b(!1)}}()},[]);let v=Array.from(new Map(e.filter(e=>e.category?.name).map(e=>[e.category.name,e.category])).values()),N=e.filter(e=>{let t=!y||e.title?.toLowerCase().includes(y.toLowerCase())||e.summary?.toLowerCase().includes(y.toLowerCase())||e.excerpt?.toLowerCase().includes(y.toLowerCase()),a=!j||e.category?.name===j;return t&&a});return(0,a.jsxs)("div",{className:"flex min-h-screen flex-col font-sans text-foreground bg-background selection:bg-[#4a044e]/10",children:[(0,a.jsx)(i.Navbar,{}),(0,a.jsx)("main",{className:"flex-1 w-full overflow-x-hidden pt-12 pb-24",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 md:px-8 3xl:max-w-7xl animate-in fade-in duration-700",children:[(0,a.jsxs)("div",{className:"text-center mb-16 space-y-6",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-[#4a044e]/5 text-[#4a044e] text-sm font-bold border border-[#4a044e]/10",children:[(0,a.jsx)(h.Sparkles,{className:"size-4"}),(0,a.jsx)("span",{children:"Insights & Updates"})]}),(0,a.jsxs)("h1",{className:"text-4xl md:text-6xl font-extrabold tracking-tight text-[#1b2c3a] leading-tight",children:["Karka Academy ",(0,a.jsx)("span",{className:"text-[#4a044e]",children:"Insights..."})]}),(0,a.jsx)("p",{className:"text-slate-500 text-lg md:text-xl max-w-2xl mx-auto font-medium",children:"Explore the latest in coding, AI, and career transformation from our expert mentors."}),!f&&e.length>0&&(0,a.jsxs)("div",{className:"max-w-3xl mx-auto pt-4 space-y-5",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(p.Search,{className:"absolute left-5 top-1/2 -translate-y-1/2 size-5 text-slate-300"}),(0,a.jsx)("input",{type:"text",placeholder:"Search articles...",value:y,onChange:e=>w(e.target.value),className:"w-full pl-14 pr-6 py-4 rounded-2xl border border-slate-200 bg-white text-sm font-medium text-[#1b2c3a] placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-[#4a044e]/20 focus:border-[#4a044e]/30 transition-all shadow-sm"})]}),v.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,a.jsxs)("button",{onClick:()=>k(null),className:`px-4 py-2 rounded-full text-xs font-black uppercase tracking-widest transition-all ${!j?"bg-[#4a044e] text-white shadow-lg shadow-[#4a044e]/20":"bg-slate-50 text-slate-500 hover:bg-slate-100 border border-slate-200"}`,children:["All (",e.length,")"]}),v.map(t=>{let s=e.filter(e=>e.category?.name===t.name).length;return(0,a.jsxs)("button",{onClick:()=>k(j===t.name?null:t.name),className:`px-4 py-2 rounded-full text-xs font-black uppercase tracking-widest transition-all ${j===t.name?"bg-[#4a044e] text-white shadow-lg shadow-[#4a044e]/20":"bg-slate-50 text-slate-500 hover:bg-slate-100 border border-slate-200"}`,children:[t.name," (",s,")"]},t.name)}
1)]})]})]}),f?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 gap-4",children:[(0,a.jsx)(m.Loader2,{className:"animate-spin text-[#4a044e]",size:40}),(0,a.jsx)("p",{className:"text-slate-500 font-bold uppercase tracking-widest text-sm",children:"Fetching Stories..."})]}):N.length>0?(0,a.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-10",children:N.map((e,s)=>{let l;return(0,a.jsx)(n.default,{href:`/blog/${e.id}`,className:"group",children:(0,a.jsxs)("div",{className:"h-full bg-white rounded-3xl overflow-hidden border border-slate-100 shadow-sm hover:shadow-2xl hover:shadow-[#4a044e]/10 transition-all duration-500 flex flex-col group-hover:-translate-y-2",children:[(0,a.jsxs)("div",{className:"aspect-video bg-slate-50 relative overflow-hidden",children:[e.featuredImage?(0,a.jsx)("img",{src:(e=>{if(!e)return null;if(e.startsWith("http")||e.startsWith("data:")||e.startsWith("/"))return e;if(e.startsWith("blogs-data/"))return`/${e}`;let a=(t.default.env.NEXT_PUBLIC_API_BASE||"").replace("/api",""),s=e.startsWith("/")?e:`/${e}`;return`${a}${s}`})(e.featuredImage)||"",alt:e.title,width:640,height:360,loading:"lazy",className:"w-full h-full object-cover transition-transform group-hover:scale-105 duration-700"}):(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-slate-200",children:(0,a.jsx)(c.BookOpen,{className:"size-16"})}),(0,a.jsx)("div",{className:"absolute top-4 left-4 z-10",children:(0,a.jsx)("span",{className:"bg-[#4a044e] text-white text-[10px] uppercase font-black tracking-widest px-4 py-1.5 rounded-full shadow-lg",children:e.category?.name||"Article"})})]}),(0,a.jsxs)("div",{className:"p-8 flex flex-col flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4 text-[10px] uppercase font-black tracking-widest text-slate-400 mb-4",children:[!1!==e.showDate&&(0,a.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(o.Calendar,{className:"size-3"}),new Date(e.publishedAt||e.createdAt).toLocaleDateString()]}),(0,a.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(d.Clock,{className:"size-3"}),(l=Math.max(1,Math.ceil(((e.content||"")+(e.summary||"")).replace(/<[^>]*>/g,"").split(/\s+/).filter(Boolean).length/200)),`${l} Min Read`)]})]}),(0,a.jsx)("h3",{className:"text-2xl font-black text-[#1b2c3a] group-hover:text-[#4a044e] transition-colors leading-tight mb-4 line-clamp-2",children:e.title}),(0,a.jsx)("p",{className:"text-slate-500 font-medium line-clamp-3 mb-8 text-sm leading-relaxed",children:e.summary||e.excerpt||"Deep dive into the latest coding trends and industry insights from Karka Academy's experts."}),e.tags&&e.tags.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-1.5 mb-6",children:[e.tags.slice(0,3).map((e,t)=>{let s="string"==typeof e?e:e.name;return(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-slate-50 border border-slate-100 text-[9px] font-bold text-slate-500 uppercase tracking-wider",children:[(0,a.jsx)(u.Tag,{className:"size-2.5"})," ",s]},e.id||`tag-${t}`)}),e.tags.length>3&&(0,a.jsxs)("span",{className:"text-[9px] font-bold text-slate-400 px-2 py-1",children:["+",e.tags.length-3]})]}),(0,a.jsxs)("div",{className:"mt-auto flex items-center text-[#4a044e] font-black text-sm gap-2 group-hover:gap-3 transition-all uppercase tracking-widest",children:["Read: ",e.title," ",(0,a.jsx)(x.ArrowRight,{className:"size-4 shrink-0"})]})]})]})},e.id||`blog-${s}`)})}):(0,a.jsxs)("div",{className:"col-span-full py-24 text-center bg-slate-50 rounded-4xl border-2 border-dashed border-slate-200",children:[(0,a.jsx)(c.BookOpen,{className:"size-16 mx-auto text-slate-200 mb-6"}),(0,a.jsx)("h3",{className:"text-2xl font-bold text-slate-400",children:y||j?"No matching articles found":"No stories found"}),(0,a.jsx)("p",{className:"text-slate-400 font-medium mt-2",children:y||j?"Try adjusting your search or filters.":"We're currently crafting new insights. Please check back soon."}),(y||j)&&(0,a.jsx)("button",{onClick:()=>{w(""),k(null)},className:"mt-6 px-6 py-2.5 bg-[#4a044e] text-white rounded-xl font-bold text-sm hover:bg-[#3a033d] transition-colors",children:"Clear Filters"})]})]})}),(0,a.jsx)(r.Footer,{})]})}])}]);
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.