PageSourceSearch

https://preconsuite.com/_nuxt/D5Pj44OT.js

js preconsuite.com collected 2026-10-04 04:05:36 UTC 3,862 bytes, 6 lines download raw bytes

1import{_ as P}from"./wKxQcDpo.js";import{f as g,g as x}from"./hTcjfJEO.js";import{_ as C}from"./DlAUqK2U.js";import{k as N,q as i,o as s,w as F,c as a,a as c,t as l,l as t,e as O,m as q,n as h,B as E,C as R,p as T,g as U,h as V,i as L,D as M,f as k,d as b,F as $,b as Q,r as j,s as w,v as H}from"./BalYsd2k.js";import{a as W}from"./Bk4fsdmu.js";import{B as Y}from"./BJWy4TNT.js";const z={props:{post:{type:Object,required:!0}}},G=["src"],J={key:1,class:"card__cover--none"},K={class:"card-content"},X={class:"card__title"},Z={class:"card__date"};function ee(u,r,o,_,m,v){const e=P;return o.post?(s(),N(e,{key:0,class:"card",href:`/post/${o.post.slug.current}`},{default:F(()=>[o.post.mainImage?(s(),a("img",{key:0,class:"card__cover",src:u.$urlFor(o.post.mainImage).width(500).height(300).url(),alt:"Cover image"},null,8,G)):(s(),a("div",J)),c("div",K,[c("h3",X,l(o.post.title),1),c("p",Z,l(("formatDate"in u?u.formatDate:t(g))(o.post._createdAt)),1)])]),_:1},8,["href"])):i("",!0)}const te=C(z,[["render",ee],["__scopeId","data-v-ba59b8bb"]]),se={class:"post"},ae={class:"page-columns"},oe={key:0,class:"post-column"},re={class:"post__title"},ne={key:0,class:"post__date"},ce={key:1,class:"post__date"},le={key:2,class:"author-info"},ie=["src"],ue={key:1,class:"author-name"},_e=["href"],de=["src"],me={key:4,class:"post__cover--none"},pe={class:"post__container"},he={key:0,class:"post__content"},ge={class:"recent-posts-column"},ve='*[_type == "post" && slug.current != $slug] | order(_createdAt desc)[0...5]',fe=O({__name:"[slug]",async setup(u){let r,o;const _=q(),m=Array.isArray(_.params.slug)?_.params.slug[0]:_.params.slug,v=x`*[
2  _type == "post" && (
3    lower(slug.current) == lower($slug) ||
4    count(previousSlugs[lower(@) == lower($slug)]) > 0
5  )
6][0]`,{data:e}=([r,o]=h(()=>w(v,{slug:m})),r=await r,o(),r);if(!e.value)throw E({statusCode:404,statusMessage:"Post not found"});const p=e.value.slug.current,A=`/post/${encodeURIComponent(p)}`;m!==p&&([r,o]=h(()=>H(A,{})),await r,o());const B=R(),{data:D}=([r,o]=h(()=>w(ve,{slug:p})),r=await r,o(),r);T({title:e.value.title,description:e.value.excerpt,ogTitle:`${e.value.title} | PreconSuite`,ogDescription:e.value.excerpt,ogType:"article",ogUrl:()=>B.value||void 0}),U([V({name:e.value.title,description:e.value.excerpt||""}),L({itemListElement:[{name:"Home",item:"/"},{name:e.value.title}]}),M({headline:e.value.title,description:e.value.excerpt||"",datePublished:e.value.dateOverride||e.value._createdAt,dateModified:e.value._updatedAt,author:{name:e.value.authorName||""}})]);const f=k(()=>e.value.authorName?e.value.authorName.toLowerCase().replace(/\s+/g,"-"):null),I=k(()=>W.some(n=>n.slug===f.value));return(n,d)=>{const S=te;return s(),a("section",se,[c("div",ae,[t(e)?(s(),a("div",oe,[c("h1",re,l(t(e).title),1),t(e)?.dateOverride?(s(),a("p",ne,l(("formatDate"in n?n.formatDate:t(g))(t(e).dateOverride)),1)):(s(),a("p",ce,l(("formatDate"in n?n.formatDate:t(g))(t(e)._createdAt)),1)),t(e).authorImage||t(e).authorName?(s(),a("div",le,[t(e).authorImage?(s(),a("img",{key:0,class:"author-image",src:n.$urlFor(t(e).authorImage).url(),alt:"Author image"},null,8,ie)):i("",!0),t(e).authorName?(s(),a("p",ue,[d[0]||(d[0]=b("BY ",-1)),t(I)?(s(),a("a",{key:0,class:"author-link",href:`/authors/${t(f)}`},l(t(e).authorName),9,_e)):(s(),a($,{key:1},[b(l(t(e).authorName),1)],64))])):i("",!0)])):i("",!0),t(e).mainImage?(s(),a("img",{key:3,class:"post__cover",src:n.$urlFor(t(e).mainImage).width(600).url(),alt:"Cover image"},null,8,de)):(s(),a("div",me)),c("div",pe,[t(e).body?(s(),a("div",he,[Q(Y,{blocks:t(e).body},null,8,["blocks"])])):i("",!0)])])):i("",!0),c("div",ge,[d[1]||(d[1]=c("h2",{class:"recent-posts-header"},"Recent Posts",-1)),(s(!0),a($,null,j(t(D),y=>(s(),N(S,{key:y._id,post:y},null,8,["post"]))),128))])])])}}}),Ne=C(fe,[["__scopeId","data-v-7ff7cbb0"]]);export{Ne 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.