PageSourceSearch

https://crisp.chat/_crisp/Dxg7vqU7.js

js crisp.chat collected 2026-09-24 07:32:17 UTC 3,410 bytes, 1 lines download raw bytes

1import C from"./B8TlgDvx.js";import{aU as W,aY as L,bv as U,l as h,V as b,aZ as k,u as z,a_ as A,aQ as f,b4 as i,bc as y,b3 as m,bx as O,a3 as r,by as P,bd as j,bz as I,aR as c,b2 as v,b5 as V,aP as N,bA as S,bB as D}from"./D1RxsVEU.js";import F from"./B7rqJkx2.js";import H from"./C-VjR0LR.js";import"./zzU_l7Ep.js";import"./CHEND5jN.js";const J={class:"blog-article"},M={class:"blog-article__related"},X={__name:"[slug]",async setup(Q){let n,g;const a=z(),{slug:s}=W().params,u=L(),{data:e,error:$}=([n,g]=U(async()=>P(`blog-article-${s}-${u.locale.value}`,async()=>{let t=await $fetch(`/api/blog/post/${s}/`),l=await $fetch(`/api/blog/posts/${u.locale.value}/related/${s}/`);return{article:t,related:l}})),n=await n,g(),n);if($.value)throw h({statusCode:404});const o=b(()=>{let t=e.value.article.tags.map(l=>l.slug||"").filter(l=>l.match(/^hash-[a-z]{2}$/));return t.length>0?t[0].replace("hash-",""):"en"});if(u.locale.value!==o.value)throw h({statusCode:404});const p=b(()=>`${a.public.URL.WEB}${o.value}/blog/${e.value.article.slug}/`);k({title:e.value.article.title,meta:[{property:"og:type",content:"article"},{property:"og:title",content:e.value.article.title},{property:"og:description",content:e.value.article.excerpt},{property:"og:image",content:e.value.article.feature_image},{property:"og:image:width",content:1920},{property:"og:image:height",content:1080},{property:"article:published_time",content:e.value.article.published_at},{property:"article:modified_time",content:e.value.article.modified_time},{property:"article:publisher",content:a.public.URL.WEB},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@crisp_im"}],link:[{rel:"canonical",href:p},{rel:"alternate",href:p,hreflang:o},{rel:"alternate",href:p,hreflang:"x-default"}]});const{cleanupContent:w}=I();return A(()=>({"@context":"https://schema.org","@type":"Article",publisher:{"@type":"Organization",name:"Crisp",url:a.public.URL.WEB,logo:{"@type":"ImageObject",url:`${a.public.URL.WEB}favicons/favicon-256x256.png`,width:256,height:256}},author:{"@type":"Person",name:e.value.article.primary_author.name,image:{"@type":"ImageObject",url:e.value.article.primary_author.profile_image,width:250,height:250},url:`${a.public.URL.WEB}en/blog/author/${e.value.article.primary_author.slug}`,sameAs:[]},headline:e.value.article.title,url:`${a.public.URL.WEB}blog/${o.value}/${e.value.article.slug}/`,datePublished:e.value.article.published_at,dateModified:e.value.article.updated_at,image:{"@type":"ImageObject",url:e.value.article.feature_image,width:1920,height:1080},keywords:e.value.article.tags.filter(t=>!t.name.startsWith("#")).map(t=>t.name).join("."),description:w(e.value.article.excerpt),mainEntityOfPage:{"@type":"WebPage","@id":a.public.URL.WEB}})),(t,l)=>{const B=C,_=j,x=F,E=H,R=D;return c(),f("div",J,[i(_,{size:"blog"},{default:m(()=>[i(B,{article:r(e).article},null,8,["article"])]),_:1}),y("div",{class:O(["blog-article__content",{"blog-article__content--large-margin":typeof r(e).article.feature_image=="string"}])},[i(_,{size:"blog"},{default:m(()=>[i(x,{content:r(e).article.html},null,8,["content"]),r(e).article.html?(c(),v(E,{key:0,content:r(e).article.html},null,8,["content"])):V("",!0)]),_:1})],2),i(_,null,{default:m(()=>[y("div",M,[(c(!0),f(N,null,S(r(e).related,d=>(c(),v(R,{key:d.slug,article:d,feature:!1},null,8,["article"]))),128))])]),_:1})])}}};export{X 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.