1import{d as w,a as s,n as g,B as y,j as o,u as r,D as B,A as z,w as f,ar as q,e as u,bw as G,r as C,au as U,x as W,o as X,y as Y,b as e,i as D,t as x,l as v,F,g as M,G as J,_ as N}from"./index-C3At19p_.js";import{m as K}from"./marked.esm-Dw7dpdZy.js";import{j as Q}from"./js-yaml-mbYHt68G.js";import{_ as Z}from"./BlogHeader-BpEWmYL4.js";import{a as tt,b as et,_ as ot}from"./index-Cf9aDX6i.js";import{_ as st}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./sun-medium-DaJpVYyS.js";const at=w({__name:"Breadcrumb",props:{class:{}},setup(l){const n=l;return(t,p)=>(o(),s("nav",{"aria-label":"breadcrumb",class:g(n.class)},[y(t.$slots,"default")],2))}}),j=w({__name:"BreadcrumbItem",props:{class:{}},setup(l){const n=l;return(t,p)=>(o(),s("li",{class:g(r(B)("inline-flex items-center gap-1.5",n.class))},[y(t.$slots,"default")],2))}}),rt=w({__name:"BreadcrumbLink",props:{asChild:{type:Boolean},as:{default:"a"},class:{}},setup(l){const n=l;return(t,p)=>(o(),z(r(q),{as:t.as,"as-child":t.asChild,class:g(r(B)("transition-colors hover:text-foreground",n.class))},{default:f(()=>[y(t.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),nt=w({__name:"BreadcrumbList",props:{class:{}},setup(l){const n=l;return(t,p)=>(o(),s("ol",{class:g(r(B)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",n.class))},[y(t.$slots,"default")],2))}}),lt=w({__name:"BreadcrumbPage",props:{class:{}},setup(l){const n=l;return(t,p)=>(o(),s("span",{role:"link","aria-disabled":"true","aria-current":"page",class:g(r(B)("font-normal text-foreground",n.class))},[y(t.$slots,"default")],2))}}),it=w({__name:"BreadcrumbSeparator",props:{class:{}},setup(l){const n=l;return(t,p)=>(o(),s("li",{role:"presentation","aria-hidden":"true",class:g(r(B)("[&>svg]:size-3.5",n.class))},[y(t.$slots,"default",{},()=>[u(r(G))])],2))}}),ct={class:"flex flex-col min-h-screen bg-background text-foreground"},dt={class:"py-6 border-b border-border"},ut={class:"flex-grow"},pt={class:"container mx-auto px-8 py-8 text-left"},ht={class:"flex flex-col md:flex-row gap-8 relative overflow-none"},mt={class:"content w-full md:w-2/3"},_t={key:0},vt={key:1,class:"text-sm text-muted-foreground mb-4"},ft={key:0},gt={key:1},bt={key:2},xt=["innerHTML"],wt={key:3},yt={class:"w-full md:w-1/3 relative"},kt={class:"space-y-6 md:sticky md:top-8"},Bt={key:0,class:"p-4 border border-border rounded-md"},$t={class:"flex flex-wrap gap-2"},St={class:"p-4 border border-border rounded-md"},Ct={class:"flex gap-3"},Lt={class:"p-2 hover:text-primary",title:"Share on X"},Pt={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},Tt=["d"],Et={class:"p-2 hover:text-primary",title:"Share on Facebook"},It={width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},Dt=["d"],Ft={key:1,class:"p-4 border border-border rounded-md"},Mt={class:"space-y-1 text-sm"},Nt=["href"],jt={class:"container mx-auto px-8 py-8 text-left border-t"},Ot={__name:"BlogPost",props:{slug:{type:String,required:!0}},setup(l){const n=l,t=C(null),p=C(null),$=C([]),T=C({});U(T);const L=W(()=>{if(t.value&&t.value.date instanceof Date)try{return t.value.date.toLocaleDateString("en-GB",{day:"2-digit",month:"long",year:"numeric"})}catch(i){return console.error("Error formatting date:",i),t.value.date.toISOString().split("T")[0]}return null}),O=()=>{navigator.clipboard.writeText(window.location.href).then(()=>{alert("Link copied to clipboard!")}).catch(i=>{console.error("Failed to copy link: ",i)})},V=i=>{const a=document.createElement("div");a.innerHTML=i;const c=a.querySelectorAll("h2"),d=[];return c.forEach((_,h)=>{const S=_.id||`heading-${h}`;_.id=S;const b=parseInt(_.tagName.substring(1));d.push({id:S,text:_.textContent,level:b})}),{toc:d,htmlWithIds:a.innerHTML}},E=async i=>{var a,c;if(i){p.value=null,t.value=null,$.value=[];try{const d=Object.assign({
1"/src/blog/ai-driven-ides-transforming-software-dev.md":()=>N(()=>import("./ai-driven-ides-transforming-software-dev-R8ywebC1.js"),[]).then(h=>h.default),
1"/src/blog/fastest-moving-api-understanding-llm.md":()=>N(()=>import("./fastest-moving-api-understanding-llm-Jz_4RBds.js"),[])
1.then(h=>h.default)}),_=`/src/blog/${i}.md`;if(d[_]){const h=await d[_](),S=/^---\s*([\s\S]*?)\s*---/,b=h.match(S);let m={},I=h;if(b&&b[1])try{m=Q.load(b[1]),I=h.substring(b[0].length).trim()}catch(P){console.error("Error parsing frontmatter:",P)}const R=K(I),{toc:H,htmlWithIds:A}=V(R);$.value=H;let k=null;if(m.date)try{k=new Date(m.date),isNaN(k.getTime())&&(console.warn(`Invalid date format in frontmatter: ${m.date}. Falling back.`),k=null)}catch(P){console.error(`Error parsing date string "${m.date}":`,P),k=null}t.value={title:m.title||"Untitled Post",description:m.description||"",author:m.author||null,date:k,tags:m.tags||[],content:A},T.value={title:`Superchange.ai | ${t.value.title}`||"Superchange.ai | Blog Post",meta:[{name:"description",content:t.value.description||"Read this blog post on Superchange.ai."},{property:"og:title",content:`Superchange.ai | ${t.value.title}`||"Blog Post"},{property:"og:description",content:t.value.description||"Read this blog post on Superchange.ai."},{property:"og:type",content:"article"},{property:"article:published_time",content:((a=t.value.date)==null?void 0:a.toISOString())||""},{property:"article:tag",content:((c=t.value.tags)==null?void 0:c.join(", "))||""}]}}else throw new Error(`Blog post not found at path: ${_}`)}catch(d){console.error("Failed to fetch or process post:",d),p.value="Failed to load the post.",t.value={title:"Error",content:p.value}}}};return X(()=>{E(n.slug)}),Y(()=>n.slug,i=>{E(i)}),(i,a)=>(o(),s("div",ct,[e("header",dt,[u(Z)]),e("main",ut,[e("div",pt,[u(r(at),{class:"mb-4"},{default:f(()=>[u(r(nt),null,{default:f(()=>[u(r(j),null,{default:f(()=>[u(r(rt),{href:"/blog"},{default:f(()=>a[0]||(a[0]=[D(" Blog ")])),_:1})]),_:1}),u(r(it)),u(r(j),null,{default:f(()=>[u(r(lt),null,{default:f(()=>[D(x(t.value?t.value.title:"Post"),1)]),_:1})]),_:1})]),_:1})]),_:1}),e("div",ht,[e("div",mt,[t.value?(o(),s("h1",_t,x(t.value.title),1)):v("",!0),t.value?(o(),s("div",vt,[t.value.author?(o(),s("span",ft,"By "+x(t.value.author),1)):v("",!0),t.value.author&&L.value?(o(),s("span",gt," | ")):v("",!0),L.value?(o(),s("span",bt,x(L.value),1)):v("",!0)])):v("",!0),t.value?(o(),s("div",{key:2,innerHTML:t.value.content},null,8,xt)):(o(),s("div",wt,"Loading post..."))]),e("div",yt,[e("div",kt,[t.value&&t.value.tags&&t.value.tags.length>0?(o(),s("div",Bt,[a[1]||(a[1]=e("h3",{class:"text-lg font-semibold mb-2"},"Tags",-1)),e("div",$t,[(o(!0),s(F,null,M(t.value.tags,(c,d)=>(o(),s("span",{key:d,class:"px-2 py-1 bg-secondary text-secondary-foreground text-xs rounded-md"},x(c),1))),128))])])):v("",!0),e("div",St,[a[4]||(a[4]=e("h3",{class:"text-lg font-semibold mb-2"},"Share",-1)),e("div",Ct,[e("button",Lt,[(o(),s("svg",Pt,[e("path",{d:r(tt).path},null,8,Tt)]))]),a[3]||(a[3]=J('<button class="p-2 hover:text-primary" title="Share on LinkedIn" data-v-5ba1f37c><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-5ba1f37c><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z" data-v-5ba1f37c></path><rect x="2" y="9" width="4" height="12" data-v-5ba1f37c></rect><circle cx="4" cy="4" r="2" data-v-5ba1f37c></circle></svg></button>',1)),e("button",Et,[(o(),s("svg",It,[e("path",{d:r(et).path},null,8,Dt)]))]),e("button",{class:"p-2 hover:text-primary",title:"Copy Link",onClick:O},a[2]||(a[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),e("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})],-1)]))])]),$.value.length>0?(o(),s("div",Ft,[a[5]||(a[5]=e("h3",{class:"text-lg font-semibold mb-2"},"Table of Contents",-1)),e("nav",null,[e("ul",Mt,[(o(!0),s(F,null,M($.value,(c,d)=>(o(),s("li",{key:d,class:"pl-2"},[e("a",{href:`#${c.id}`,class:g(["hover:text-primary block py-1",{"pl-2":c.level===3,"pl-4":c.level>3}])},x(c.text),11,Nt)]))),128))])])])):v("",!0)])])])])]),e("footer",jt,[u(ot)])]))}},Ut=st(Ot,[["__scopeId","data-v-5ba1f37c"]]);export{Ut as default};
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.