PageSourceSearch

https://novaco.ai/assets/SuccessStoryDetail-qWpZEHZu.js

js novaco.ai collected 2026-10-05 12:45:09 UTC 12,211 bytes, 8 lines download raw bytes

1import{g as V,b as O,u as K,a as W,r as Y,j as e,N,S as G,L as y}from"./index-Be_2bHJP.js";import{u as J}from"./useQuery-v4v3CGWS.js";import{F as v}from"./Footer-DydoStv_.js";import{c as U,p as X,g as Z,I as ee}from"./use-success-stories-_gHA0iYw.js";import{S as se}from"./SuccessStoriesCTA-CDZYNFsK.js";import{A as R}from"./arrow-left-DeyPSrl5.js";import{A as te}from"./arrow-right-CoNQ7cOL.js";import"./popover-KytfA0IP.js";import"./button-BlG-9S0h.js";import"./chevron-left-BZy9fw63.js";import"./chevron-right-CG6ZPdFS.js";import"./sparkles-BMDsLi-g.js";import"./calendar-Dx13B1N8.js";import"./message-circle-CjMyS_lS.js";import"./check-C3aNFezU.js";import"./types-3c7sL9OC.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const oe=V("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);async function ae(){const u=await fetch(`${ee}?type=integrations`);if(!u.ok)throw new Error("Failed to fetch integrations");return u.json()}const C={en:{back:"All success stories",loading:"Loading…",notFound:"Story not found",notFoundBody:"This success story is no longer available or has not been published yet.",results:"Results",challenge:"The challenge",solution:"The solution",outcome:"The outcome",products:"Nova products in use",integrations:"Connected systems",gallery:"Gallery",published:"Published"},nl:{back:"Alle klantverhalen",loading:"Laden…",notFound:"Verhaal niet gevonden",notFoundBody:"Dit klantverhaal is niet meer beschikbaar of nog niet gepubliceerd.",results:"Resultaten",challenge:"De uitdaging",solution:"De oplossing",outcome:"Het resultaat",products:"Ingezette Nova-producten",integrations:"Gekoppelde systemen",gallery:"Galerij",published:"Gepubliceerd"},de:{back:"Alle Erfolgsgeschichten",loading:"Wird geladen…",notFound:"Story nicht gefunden",notFoundBody:"Diese Erfolgsgeschichte ist nicht mehr verfügbar oder noch nicht veröffentlicht.",results:"Ergebnisse",challenge:"Die Herausforderung",solution:"Die Lösung",outcome:"Das Ergebnis",products:"Eingesetzte Nova-Produkte",integrations:"Verbundene Systeme",gallery:"Galerie",published:"Veröffentlicht"},fr:{back:"Tous les témoignages",loading:"Chargement…",notFound:"Témoignage introuvable",notFoundBody:"Ce témoignage n'est plus disponible ou n'a pas encore été publié.",results:"Résultats",challenge:"Le défi",solution:"La solution",outcome:"Le résultat",products:"Produits Nova utilisés",integrations:"Systèmes connectés",gallery:"Galerie",published:"Publié"},it:{back:"Tutte le storie di successo",loading:"Caricamento…",notFound:"Storia non trovata",notFoundBody:"Questa storia di successo non è più disponibile o non è ancora stata pubblicata.",results:"Risultati",challenge:"La sfida",solution:"La soluzione",outcome:"Il risultato",products:"Prodotti Nova in uso",integrations:"Sistemi collegati",gallery:"Galleria",published:"Pubblicato"},es:{back:"Todos los casos de éxito",loading:"Cargando…",notFound:"Caso no encontrado",notFoundBody:"Este caso de éxito ya no está disponible o aún no se ha publicado.",results:"Resultados",challenge:"El reto",solution:"La solución",outcome:"El resultado",products:"Productos Nova en uso",integrations:"Sistemas conectados",gallery:"Galería",published:"Publicado"},pt:{back:"Todos os casos de sucesso",loading:"A carregar…",notFound:"Caso não encontrado",notFoundBody:"Este caso de sucesso já não está disponível ou ainda não foi publicado.",results:"Resultados",challenge:"O desafio",solution:"A solução",outcome:"O resultado",products:"Produtos Nova em uso",integrations:"Sistemas ligados",gallery:"Galeria",published:"Publicado"},ar:{back:"كل قصص النجاح",loading:"جارٍ التحميل…",notFound:"القصة غير موجودة",notFoundBody:"هذه القصة لم تعد متاحة أو لم تُنشر بعد.",results:"النتائج",challenge:"التحدي",solution:"الحل",outcome:"النتيجة",products:"منتجات Nova المستخدمة",integrations:"الأنظمة المتصلة",gallery:"المعرض",published:"نُشر"}},ve=()=>{var S,F,T,L,P,I,q,A,E,z,B,D;const{slug:u}=O(),{i18n:$}=K(),g=W(),_=($.language||"en").slice(0,2),a=C[_]||C.en,{data:s,isLoading:H}=U(u),{data:h}=J({queryKey:["integrations"],queryFn:ae,staleTime:5*60*1e3}),p=Y.useMemo(()=>
6{if(!(s!=null&&s.integration_ids)||!h)return[];const o=new Set(s.integration_ids);return h.filter(n=>o.has(n.id))},[s,h]);if(H)return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(N,{}),e.jsx("main",{className:"pt-32 pb-24",children:e.jsx("p",{className:"text-center text-foreground/60",children:a.loading})}),e.jsx(v,{})]});if(!s)return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(G,{title:a.notFound,description:a.notFoundBody,path:"/success-stories",noindex:!0}),e.jsx(N,{}),e.jsx("main",{className:"pt-32 pb-24",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-2xl text-center",children:[e.jsx("h1",{className:"text-3xl font-bold mb-4 text-foreground",children:a.notFound}),e.jsx("p",{className:"text-foreground/70 mb-8",children:a.notFoundBody}),e.jsxs(y,{to:g("/success-stories"),className:"inline-flex items-center gap-2 text-accent font-semibold hover:text-accent/80",children:[e.jsx(R,{size:16}),a.back]})]})}),e.jsx(v,{})]});const t=X(s,_),r=((S=s.organisation)==null?void 0:S.name)||((F=s.group)==null?void 0:F.name)||"",w=((T=s.organisation)==null?void 0:T.country)||"",l=(t.subtitle||"").trim(),M=(t.summary||"").trim(),m=(t.intro||"").trim(),c=M||(l&&l.length<=160?l:""),b=[];l&&l!==c&&b.push(l),m&&m!==c&&m!==l&&b.push(m);const k=b.join(`
7
8`),d=t,j=d.results&&d.results.length>0?d.results:s.results,i={text:((L=d.quote)==null?void 0:L.text)||((P=s.quote)==null?void 0:P.text)||"",author_role:((I=d.quote)==null?void 0:I.author_role)||((q=s.quote)==null?void 0:q.author_role)||((A=s.quote)==null?void 0:A.role)||"",author_name:((E=s.quote)==null?void 0:E.author_name)||((z=s.quote)==null?void 0:z.author)||"",author_photo_url:((B=s.quote)==null?void 0:B.author_photo_url)||""},x=i.author_name,f=i.author_role,Q=c||l.slice(0,160)||(t.body?t.body.replace(/<[^>]+>/g," ").trim().slice(0,160):"");return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(G,{title:t.title||r,description:Q||`${r} — Novaco success story`,path:`/success-stories/${s.slug}`,image:s.hero_image_url||void 0,type:"article"}),e.jsx(N,{}),e.jsxs("main",{className:"pb-24",children:[s.hero_image_url&&e.jsxs("div",{className:"relative w-full aspect-[21/9] max-h-[70vh] overflow-hidden bg-foreground
8/5",children:[e.jsx("img",{src:s.hero_image_url,alt:t.title||r,className:"w-full h-full object-cover",fetchPriority:"high",decoding:"async",loading:"eager"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-background/40 via-transparent to-background/20"})]}),e.jsxs("div",{className:`container mx-auto px-6 ${s.hero_image_url?"pt-12":"pt-32"}`,children:[e.jsx("div",{className:"max-w-3xl mx-auto mb-8",children:e.jsxs(y,{to:g("/success-stories"),className:"inline-flex items-center gap-2 text-sm text-foreground/60 hover:text-foreground transition-colors",children:[e.jsx(R,{size:14}),a.back]})}),e.jsxs("header",{className:"max-w-3xl mx-auto mb-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.logo_url&&e.jsx("img",{src:s.logo_url,alt:`${r} logo`,className:"w-10 h-10 rounded object-contain bg-white border border-border/20"}),e.jsxs("p",{className:"text-xs font-semibold uppercase tracking-widest text-accent",children:[r,w?` · ${w}`:""]})]}),e.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-foreground leading-tight mb-5",children:t.title}),c&&e.jsx("p",{className:"text-lg md:text-xl text-foreground/70 leading-relaxed",children:c}),s.published_at&&e.jsxs("p",{className:"mt-5 text-xs text-foreground/50",children:[a.published," · ",Z(s.published_at)]})]}),j&&j.length>0&&e.jsxs("section",{className:"max-w-5xl mx-auto mb-12",children:[e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-accent mb-4",children:a.results}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:j.map((o,n)=>e.jsxs("div",{className:"glass-card rounded-2xl p-6",children:[e.jsx("p",{className:"text-2xl md:text-3xl font-bold text-primary leading-tight",children:o.value}),e.jsx("p",{className:"mt-2 text-sm font-semibold text-foreground",children:o.label}),o.description&&e.jsx("p",{className:"mt-1 text-xs text-foreground/60 leading-relaxed",children:o.description})]},n))})]}),e.jsxs("article",{className:"max-w-3xl mx-auto",children:[k&&e.jsx("div",{className:"mb-8 space-y-4",children:k.split(/\n\n+/).map((o,n)=>e.jsx("p",{className:"text-lg text-foreground/80 leading-relaxed",children:o},n))}),t.challenge&&e.jsxs("section",{className:"mb-10",children:[e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-accent mb-3",children:a.challenge}),e.jsx("div",{className:"legal-prose",dangerouslySetInnerHTML:{__html:t.challenge}})]}),t.solution&&e.jsxs("section",{className:"mb-10",children:[e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-accent mb-3",children:a.solution}),e.jsx("div",{className:"legal-prose",dangerouslySetInnerHTML:{__html:t.solution}})]}),t.outcome&&e.jsxs("section",{className:"mb-10",children:[e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-accent mb-3",children:a.outcome}),e.jsx("div",{className:"legal-prose",dangerouslySetInnerHTML:{__html:t.outcome}})]}),t.body&&!t.challenge&&!t.solution&&!t.outcome&&e.jsx("div",{className:"legal-prose",dangerouslySetInnerHTML:{__html:t.body}})]}),i.text&&e.jsx("aside",{className:"max-w-3xl mx-auto my-12",children:e.jsxs("div",{className:"glass-card rounded-2xl p-8 md:p-10 relative",children:[e.jsx(oe,{className:"text-accent/40 mb-4",size:32}),e.jsxs("p",{className:"text-xl md:text-2xl font-medium text-foreground leading-snug mb-6",children:["“",i.text,"”"]}),(x||f)&&e.jsxs("div",{className:"flex items-center gap-3",children:[i.author_photo_url&&e.jsx("img",{src:i.author_photo_url,alt:x,className:"w-12 h-12 rounded-full object-cover border border-border/20"}),e.jsxs("div",{children:[x&&e.jsx("p",{className:"text-sm font-semibold text-foreground",children:x}),f&&e.jsx("p",{className:"text-xs text-foreground/60",children:f})]})]})]})}),s.gallery_urls&&s.gallery_urls.length>0&&e.jsxs("section",{className:"max-w-5xl mx-auto mt-12",children:[e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-accent mb-4",children:a.gallery}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:s.gallery_urls.map((o,n)=>e.jsx("div",{className:"aspect-[4/3] overflow-hidden rounded-xl border border-border/20 bg-foreground
8/5",children:e.jsx("img",{src:o,alt:`${t.title||r} — ${n+1}`,className:"w-full h-full object-cover",loading:"lazy"})},n))})]}),(((D=s.products)==null?void 0:D.length)||p.length>0)&&e.jsxs("section",{className:"max-w-3xl mx-auto mt-16 grid sm:grid-cols-2 gap-8",children:[s.products&&s.products.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-accent mb-3",children:a.products}),e.jsx("ul",{className:"space-y-2",children:s.products.map(o=>e.jsx("li",{className:"text-sm font-medium text-foreground/80",children:o},o))})]}),p.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-widest text-accent mb-3",children:a.integrations}),e.jsx("ul",{className:"space-y-2",children:p.map(o=>e.jsx("li",{children:e.jsxs(y,{to:g(`/integrations/${o.slug}`),className:"inline-flex items-center gap-1.5 text-sm font-semibold text-accent hover:text-accent/80",children:[o.name,e.jsx(te,{size:14})]})},o.id))})]})]})]}),e.jsx(se,{storyTitle:t.title||r,storySlug:s.slug})]}),e.jsx(v,{})]})};export{ve 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.