PageSourceSearch

https://novaco.ai/assets/ArticlePage-BN0qhHxV.js

js novaco.ai collected 2026-10-05 12:44:34 UTC 7,101 bytes, 2 lines download raw bytes

1import{b as A,u as I,a as C,j as e,N as h,L as g,S as K,d as M,f as L,e as H}from"./index-Be_2bHJP.js";import{F as f}from"./Footer-DydoStv_.js";import{u as O,o as q}from"./img-DQxsAtEf.js";import{A as E}from"./arrow-left-DeyPSrl5.js";import{A as V}from"./arrow-right-CoNQ7cOL.js";import"./useQuery-v4v3CGWS.js";const b=5,j=3,W={"applications-are-now-open-for-five-nova-voice-pilot-dealerships":{titleKey:"articleCta.novaVoicePilot.title",descKey:"articleCta.novaVoicePilot.desc",buttonKey:"articleCta.novaVoicePilot.button",promptKey:"articleCta.novaVoicePilot.prompt",showSlots:!0}},G=()=>{const{slug:x,lang:_}=A(),{t:n}=I(),u=C(),{articles:N,isLoading:k}=O(),t=N.find(s=>s.slug===x);if(k)return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(h,{}),e.jsx("div",{className:"pt-32 pb-24 text-center",children:e.jsxs("div",{className:"animate-pulse space-y-4 max-w-3xl mx-auto px-6",children:[e.jsx("div",{className:"h-8 bg-muted rounded w-3/4 mx-auto"}),e.jsx("div",{className:"h-4 bg-muted rounded w-1/4 mx-auto"}),e.jsx("div",{className:"h-64 bg-muted rounded-2xl"})]})}),e.jsx(f,{})]});if(!t)return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(h,{}),e.jsxs("div",{className:"pt-32 pb-24 text-center",children:[e.jsx("h1",{className:"font-display text-3xl font-bold",children:"Article not found"}),e.jsx(g,{to:u("/blog"),className:"text-accent mt-4 inline-block",children:"← Back to blog"})]}),e.jsx(f,{})]});const y=N.filter(s=>s.slug!==x),i=x?W[x]:void 0,v=y.filter(s=>s.categories.some(r=>t.categories.includes(r))),T=y.filter(s=>!v.includes(s)),w=[...v,...T].slice(0,3),P=s=>{const r=s.split(`
2`),a=[];let l=0,p=[];const c=()=>{p.length>0&&(a.push(e.jsx("ul",{className:"list-disc pl-6 space-y-1 text-muted-foreground",children:p.map((o,d)=>e.jsx("li",{dangerouslySetInnerHTML:{__html:m(o)}},d))},`list-${a.length}`)),p=[])},m=o=>(o=o.replace(/\*\*(.+?)\*\*/g,'<strong class="text-foreground font-semibold">$1</strong>'),o=o.replace(/_(.+?)_/g,"<em>$1</em>"),o);for(;l<r.length;){const o=r[l].trim();if(o===""){l++;continue}if(o==="---"||o==="* * *"){c(),a.push(e.jsx("hr",{className:"my-10 border-border"},`hr-${l}`)),l++;continue}if(o.startsWith("### ")){c();const d=o.replace(/^### \**/,"").replace(/\**$/,"");a.push(e.jsx("h3",{className:"font-display text-xl font-bold mt-10 mb-4",dangerouslySetInnerHTML:{__html:m(d)}},`h3-${l}`)),l++;continue}if(o.startsWith("- ")){p.push(o.slice(2)),l++;continue}if(o.startsWith("> ")){c(),a.push(e.jsx("blockquote",{className:"border-l-4 border-accent pl-4 italic text-muted-foreground my-4",dangerouslySetInnerHTML:{__html:m(o.slice(2))}},`bq-${l}`)),l++;continue}if(o.match(/^\d+\. /)){c();const d=[];for(;l<r.length&&r[l].trim().match(/^\d+\. /);)d.push(r[l].trim().replace(/^\d+\. /,"")),l++;a.push(e.jsx("ol",{className:"list-decimal pl-6 space-y-2 text-muted-foreground",children:d.map((S,$)=>e.jsx("li",{dangerouslySetInnerHTML:{__html:m(S)}},$))},`ol-${a.length}`));continue}c(),a.push(e.jsx("p",{className:"text-muted-foreground leading-relaxed",dangerouslySetInnerHTML:{__html:m(o)}},`p-${l}`)),l++}return c(),a};return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(K,{title:t.title,description:t.excerpt||t.title,path:`/blog/${t.slug}`,type:"article",image:t.image,jsonLd:M({title:t.title,description:t.excerpt||t.title,image:t.image,datePublished:t.date,url:`https://novaco.ai/${_||"en"}/blog/${t.slug}`})}),e.jsx(h,{}),e.jsx("article",{className:"pt-32 pb-24 bg-background",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[e.jsxs(g,{to:u("/blog"),className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors mb-8",children:[e.jsx(E,{size:16})," ",n("blog.backToBlog","Back to Perspectives")]}),e.jsx("div",{className:"flex gap-2 mb-4",children:t.categories.map(s=>e.jsx("span",{className:"text-xs font-medium text-accent bg-accent/10 px-2 py-1 rounded-full",children:s},s))}),e.jsx("h1",{className:"font-display text-3xl sm:text-4xl font-bold mb-4",children:t.title}),e.jsx("p",{className:"text-sm text-muted-foreground mb-8",children:L(t.date)}),t.image&&e.jsx("img",{src:q(t.image,1200),alt:t.title,width:1200,height:900,className:"w-full rounded-2xl mb-12",decoding:"async"}),t.content&&t.content.trim().startsWith("<")?e.jsx("div",{className:"prose prose-lg max-w-none prose-headings:font-display prose-headings:font-bold prose-h2:text-2xl prose-h2:mt-10 prose-h2:mb-3 prose-h3:text-xl prose-h3:mt-8 prose-h3:mb-3 prose-p:text-muted-foreground prose-p:leading-relaxed prose-p:my-3 prose-li:text-muted-foreground prose-li:my-1 prose-ul:my-3 prose-ol:my-3 prose-strong:text-foreground prose-blockquote:border-accent prose-blockquote:text-muted-foreground prose-blockquote:my-4 prose-a:text-accent prose-a:underline hover:prose-a:text-accent/80 prose-hr:border-border prose-hr:my-6 prose-img:rounded-xl prose-img:my-4",dangerouslySetInnerHTML:{__html:t.content}}):e.jsx("div",{className:"space-y-4",children:P(t.content)}),i&&e.jsxs("div",{className:"glass-card mt-14 rounded-2xl p-8 text-center",children:[e.jsx("h2",{className:"font-display text-2xl font-bold mb-3",children:n(i.titleKey)}),e.jsx("p",{className:"text-muted-foreground mb-6",children:n(i.descKey)}),i.showSlots&&e.jsxs("div",{className:"mb-6 flex flex-col items-center gap-2",children:[e.jsx("div",{className:"flex items-center gap-1.5","aria-hidden":"true",children:Array.from({length:b}).map((s,r)=>e.jsx("span",{className:r<j?"h-2.5 w-8 rounded-full bg-accent":"h-2.5 w-8 rounded-full bg-accent/15 border border-accent/30"},r))}),e.jsxs("p",{className:"text-xs font-semibold text-foreground",children:[n("voicePilot.slotsTaken",{taken:j,total:b}
2),e.jsx("span",{className:"mx-1.5 text-muted-foreground/50",children:"·"}),e.jsx("span",{className:"text-accent",children:n("voicePilot.slotsLeft",{left:b-j})})]})]}),e.jsxs("button",{onClick:()=>H(n(i.promptKey)),className:"btn-accent-glass inline-flex items-center justify-center gap-2 rounded-xl px-8 py-3 text-sm font-semibold text-accent-foreground",children:[n(i.buttonKey)," ",e.jsx(V,{size:16})]})]})]})}),w.length>0&&e.jsx("section",{className:"bg-background border-t border-border/20 py-20",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[e.jsx("h2",{className:"font-display text-2xl font-bold mb-10",children:n("blog.moreArticles","More from Perspectives")}),e.jsx("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:w.map(s=>e.jsxs(g,{to:u(`/blog/${s.slug}`),className:"glass-card rounded-2xl overflow-hidden group hover:scale-[1.02] transition-transform duration-200",children:[e.jsx("img",{src:s.image,alt:s.title,className:"w-full h-44 object-cover"}),e.jsxs("div",{className:"p-5",children:[e.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:L(s.date)}),e.jsx("h3",{className:"font-display font-bold text-sm leading-snug group-hover:text-accent transition-colors",children:s.title}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2 line-clamp-2",children:s.excerpt})]})]},s.slug))})]})}),e.jsx(f,{})]})};export{G 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.