PageSourceSearch

https://www.airgradient.com/_nuxt/C5bGpfk8.js

js airgradient.com collected 2026-09-24 09:05:38 UTC 4,229 bytes, 1 lines download raw bytes

1import{_ as P}from"./D9MvgeHQ.js";import{af as $,f as H,r as L,e as s,y as N,w as y,g as D,G as U,c,d as a,a as b,v as F,i as o,h as k,t as I,F as R,p as V,z as q,B as z,Y as O,aa as j,o as m,a3 as G,b6 as K}from"./hpNDvw06.js";import{_ as W}from"./D2Y35rdR.js";import{t as Y}from"./pNhx-2bg.js";import{e as J}from"./Ba2DXm-M.js";import{n as S}from"./BWs-39rO.js";import{u as Q}from"./BrzfQfBx.js";import{a as X}from"./Cf455Atp.js";import{u as Z}from"./FlglfO0c.js";import"./JrGicTRf.js";import"./DF9UM6-c.js";import"./BVqq2g7N.js";import"./M64MF_6r.js";import"./BaFDrqxG.js";import"./CBiJdLIR.js";import"./B2uhwKW3.js";import"./C7Mt72-V.js";import"./80ZLblZw.js";import"./BiLWZylx.js";import"./DQlIppG_.js";import"./35YfCQm7.js";import"./CmUhXe1c.js";import"./j13ruzi3.js";import"./bkoTKxJW.js";import"./fKmXImwy.js";import"./BLsi-FzY.js";import"./QWLA88-l.js";import"./DxPj4bkJ.js";import"./CuFP4UCa.js";import"./CeYVOOGl.js";import"./DtZyGKpY.js";const ee={class:"blog-preview-actions no-print"},te={key:0,class:"ag-v2-page ag-v2-page--content blog-post-page"},re={class:"section blog-section"},ne={class:"container"},oe={class:"content post"},ae={key:0,class:"post-type-info"},ie=["innerHTML"],se=["innerHTML"],ce={key:0,id:"discourse-comments",class:"mt-4 no-print"},me={key:1,class:"container pb-5"},ue={__name:"[id]",async setup(le){let u,_;const l=H(),{renderBlock:d}=Q(),g=L(null),B=s(()=>String(l.query.returnTo||"").trim()||"/admin/cms"),v=q(),M=s(()=>{var t;const e=(t=v.public)==null?void 0:t.apiUrl;return String(e||"").replace(/\/+$/,"")}),{data:i,error:x}=([u,_]=N(async()=>X("blog-post-preview",async()=>{var e;try{return await $fetch(`${M.value}/content-posts/${l.params.id}`,{credentials:"include",headers:z(),query:{internal:1}})}catch(t){const n=Number((t==null?void 0:t.statusCode)||((e=t==null?void 0:t.response)==null?void 0:e.status));if(n===401||n===403)return await O("/admin/access-required"),null;if(n===404)return null;throw t}},{server:!1,watch:[()=>l.params.id]})),u=await u,_(),u);y(x,e=>{e&&K(e)},{immediate:!0});const C=e=>Array.isArray(e)?e.some(t=>S(t)==="knowledge_base"):!1,T=e=>Array.isArray(e)?e.some(t=>S(t)==="forum_entry"):!1,A=e=>{var n;const t=String((e==null?void 0:e.slug)||"").trim();if(C(e==null?void 0:e.categories))return t?`/documentation/kb/${t}`:"/documentation/kb";if(T(e==null?void 0:e.categories)){const f=String(((n=e==null?void 0:e.forumMetadata)==null?void 0:n.series)||"").trim();return f==="OS-Initiative"?"/open-source-initiative/":f==="Webinar"||f==="Meeting"?"/professional/scientific-research/":"/forum/"}return t?`/blog/${t}`:"/blog"},r=s(()=>{var e,t,n;return i.value?{...i.value,image:String(((e=i.value)==null?void 0:e.heroImage)||((t=i.value)==null?void 0:t.image)||""),_path:A(i.value),commentSection:((n=i.value)==null?void 0:n.commentSection)===!0}:null}),w=s(()=>{var t,n;if(!((t=r.value)!=null&&t.bodyMarkdown))return"";const e=j(v);return d(Y(r.value.bodyMarkdown||"",{apiOrigin:e,contentPath:((n=r.value)==null?void 0:n._path)||"",renderMarkdownBlock:d}))});let p=()=>{};const h=async()=>{p(),r.value&&(await V(),p=J(g.value))},E=s(()=>{var e;return(e=r.value)!=null&&e._path?new URL(r.value._path,window.location.origin).toString():""});return Z({containerElementId:"discourse-comments",enabled:s(()=>{var e;return((e=r.value)==null?void 0:e.commentSection)===!0}),embedUrl:E}),y(()=>w.value,async()=>{await h()},{immediate:!0}),D(async()=>{await h()}),U(()=>{p()}),(e,t)=>{const n=P;return m(),c(R,null,[a("div",ee,[b(n,{class:"btn btn-outline-secondary",to:o(B)},{default:F(()=>[...t[0]||(t[0]=[G("Back to editor",-1)])]),_:1},8,["to"])]),o(r)?(m(),c("div",te,[b(W,{doc:o(r)},null,8,["doc"]),a("section",re,[a("div",ne,[a("div",oe,[o(r).project&&o(r).description?(m(),c("div",ae,[a("p",null,I(o(r).description),1)])):o(r).warningMessage?(m(),c("div",{key:1,class:"alert-warning",innerHTML:o(d)(o(r).warningMessage)},null,8,ie)):k("",!0),a("div",{ref_key:"previewPane",ref:g,class:"post-body",innerHTML:o(w)},null,8,se)]),o(r).commentSection?(m(),c("div",ce)):k("",!0)])])])):(m(),c("div",me,[...t[1]||(t[1]=[a("div",{class:"alert alert-warning"},"Post not found.",-1)])]))],64)}}},ze=$(ue,[["__scopeId","data-v-f87e1aff"]]);export{ze 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.