1import{bf as C,bb as v,o as h,r as _,d as B,j as D,ba as E,a,b as l,ac as L,f as e,dE as x,p as b,t as P,s as d,F as g,c as u,aa as k,fj as S,G as w,ck as H,S as I}from"./index-DcSVvNrM.js";var i=(t=>(t.Comment="comment",t.Post="post",t.Blog="blog",t))(i||{});function M(t,r){const{[v.Entry]:y,[v.Comments]:c}=C(),n=_(!1),s=_(!1),o=_();return h(async()=>{try{n.value=!0,t===i.Post?o.value=await y.getBannedPostById(r):t===i.Comment&&(o.value=await c.getBannedCommentById(r))}catch(f){console.error(f),s.value=!0}finally{n.value=!1}}),{data:o,isLoading:n,isError:s}}const N={class:"banned"},R=["innerHTML"],j={key:0},V=B({__name:"Banned",props:{message:{},entity:{}},setup(t){const r=t,y=D(),c=E(),{data:n,isLoading:s,isError:o}=M(r.entity.type,r.entity.id);function f(m){return"title"in m}function p(m){return"text"in m}return(m,F)=>(a(),l("div",N,[L(b("div",{class:"banned__text",innerHTML:t.message},null,8,R),[[e(x),e(y)]]),b("div",{class:I(["banned__entity",e(s)&&"banned__entity--loading",e(o)&&"banned__entity--error"])},[e(o)?(a(),l("div",j,P(e(c).t("shared.dataLoadingError")),1)):d("",!0),t.entity.type===e(i).Post?(a(),l(g,{key:1},[e(s)?(a(),u(e(k),{key:0,preset:"content"})):e(n)&&f(e(n))?(a(),u(e(S),{key:1,data:e(n),"is-short":!0,"is-embed":!0},null,8,["data"])):d("",!0)],64)):t.entity.type===e(i).Comment?(a(),l(g,{key:2},[e(s)?(a(),u(e(k),{key:0,preset:"comment"})):e(n)&&p(e(n))?(a(),u(e(H),w({key:1},e(n),{i18n:e(c),isDisableReplies:!0,isWithoutContext:!0}),null,16,["i18n"])):d("",!0)],64)):d("",!0)],2)]))}});export{V 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.