1import{b as C,_ as B}from"./cms.b0167f03.js";import{V as L,W as V,X as $,d as q,h as D,Y as H,$ as M,u as N,c as s,k as P,w as T,b as e,o,a as r,q as i,t as c,O as x,Z as f}from"./entry.f29c803b.js";import{u as A}from"./api.5cd8547a.js";import"./Breadcrumb.82bcb259.js";import"./FLink.vue_vue_type_script_setup_true_lang.7ce9c716.js";import"./Subscription.vue_vue_type_script_setup_true_lang.4420943b.js";import"./FInput.vue_vue_type_script_setup_true_lang.6df5ad8d.js";import"./FField.vue_vue_type_script_setup_true_lang.fb62544f.js";import"./form.d702e496.js";const E=async function(d){const{post:a}=await L(V` 2 query post($id: ID!) { 3 post(id: $id) { 4 id 5 title 6 description 7 image 8 content 9 links { 10 label 11 link 12 } 13 attachments { 14 id 15 name 16 path 17 } 18 category { 19 id 20 name 21 children { 22 id 23 name 24 } 25 posts { 26 id 27 title 28 } 29 parent { 30 id 31 name 32 children { 33 id 34 name 35 } 36 posts { 37 id 38 title 39 } 40 } 41 } 42 } 43 } 44 `,{id:d});if(!a)throw $(404);return a},F=""+new URL("download.3feff0d1.svg",import.meta.url).href,I={class:"pt-4 md:pt-11"},Q={class:"xl:grid xl:grid-cols-8 xl:gap-x-6"},R={class:"xl:col-span-7"},W=["src"],O={key:1,class:"bg-primary text-white px-7 py-6 rounded-xl mb-4 xl:px-12 xl:py-8 xl:rounded-2xl"},S=["innerHTML"],U={key:2,class:"pt-10 xl:pt-15"},X={class:"divide-y divide-gray-lighter"},Y=["href","download"],Z=r("img",{src:F,alt:""},null,-1),j={key:3,class:"flex flex-wrap items-center pt-6 xl:pt-10"},z=["href"],nt=q({__name:"[id]",async setup(d){var _,g;let a,p;const{id:m}=D().params,b=m,t=([a,p]=H(()=>A(`posts-${m}`,()=>E(b))),a=await a,p(),a),k=((_=t.category)==null?void 0:_.parent)||t.category,w=C(t.category),u=M((g=t.content)!=null?g:"").substring(0,200);if(t.title&&u){const l=[{key:"og:title",property:"og:title",content:t.title},{key:"og:description",property:"og:description",content:u}],y=t.image?[...l,{key:"og:image",property:"og:image",content:t.image}]:l;N({meta:y})}return(l,y)=>{const v=B;return o(),s("div",I,[P(v,{title:e(t).title,breadcrumb:e(w),category:e(k)},{default:T(()=>[r("div",Q,[r("div",R,[e(t).image?(o(),s("img",{key:0,class:"max-w-full mb-4 xl:mb-6",src:e(t).image},null,8,W)):i("",!0),e(t).description?(o(),s("div",O,c(e(t).description),1)):i("",!0),r("div",{class:"prose overflow-x-auto",innerHTML:e(t).content},null,8,S),e(t).attachments.length>0?(o(),s("div",U,[r("ul",X,[(o(!0),s(x,null,f(e(t).attachments,n=>(o(),s("li",{class:"py-5",key:n.id},[r("a",{target:"_blank",href:n.path,download:n.name,class:"inline-flex items-center space-x-2 hoverable hover:text-gray-dark"},[Z,r("span",null,c(n.name),1)],8,Y)]))),128))])])):i("",!0),e(t).links.length>0?(o(),s("ul",j,[(o(!0),s(x,null,f(e(t).links,({label:n,link:h})=>(o(),s("li",{class:"mr-4 mb-4 xl:mb-5",key:h},[r("a",{target:"_blank",href:h,class:"btn btn-primary rounded-full py-2 px-6"},c(n),9,z)]))),128))])):i("",!0)])])]),_:1},8,["title","breadcrumb","category"])])}}});export{nt 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.