1import{_ as x}from"./AnswerArticle-DN1YPr6rQ.js";import{_ as A}from"./ShellSwitch-u0_aiQdVv.js";import{u as k,y as S,d as R,a7 as f,a8 as B,c as C,B as P,g as U,x as c,G as g,i as t,a9 as b,aa as E,ab as V,V as $,h as n}from"./B6nVQaMA.js";import"./Shell-Bv9CK-wPE.js";import"./lodash-C5hb1S-ZT.js";const q={class:"answer-page"},N="/answers/",I={__name:"[id]",async setup(O){var i,p,_,m;let e,s;const{isUserAuthorized:h}=k(),l=S(),{$apollo:v}=R(),{data:u,error:w}=([e,s]=f(async()=>E(`page-${l.params.id}`,async()=>{var r;const o=await v.clients.default.query({query:V,variables:{pathOrUrl:String(l.params.id)}});return((r=o==null?void 0:o.data)==null?void 0:r.conversationsRoomStatePage)||null})),e=await e,s(),e);if(w.value||!u.value)throw B({statusCode:404,statusMessage:"Page not found",fatal:!0});const a=C(()=>u.value);return(p=(i=a.value)==null?void 0:i.path)!=null&&p.startsWith(N)&&([e,s]=f(()=>$(a.value.path,{replace:!0})),await e,s()),P({title:(_=a.value)==null?void 0:_.title,meta:[{name:"robots",content:"noindex, nofollow, noarchive"}],htmlAttrs:{lang:((m=a.value)==null?void 0:m.locale)||"en"}}),(o,r)=>{const d=x,y=A;return n(),U("div",q,[t(h)?t(a)?(n(),c(d,{key:1,page:t(a)},null,8,["page"])):g("",!0):(n(),c(y,{key:0,cta:!1},{default:b(()=>[t(a)?(n(),c(d,{key:0,page:t(a)},null,8,["page"])):g("",!0)]),_:1}))])}}};export{I 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.