1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ShareButtons-pL-O_6lt.js","assets/index-sUPB-bMu.js","assets/index-CjsJg3P0.css","assets/ShareButtons-DOncPu2p.css","assets/attachment-BnyYNTpH.js","assets/attachment-BXYdZy0o.css"])))=>i.map(i=>d[i]); 2import{_ as D,k as y,b as _,$ as x,c as a,o,g as s,d as A,w as g,Z as u,t as c,a as e,e as r,F as b,s as p,a1 as v,p as E}from"./index-sUPB-bMu.js";import{a as C}from"./ebd-cVCg3Zmt.js";import{m as I}from"./menuItemNameMixin-D-Sxrcvm.js";import{h as N}from"./optimizedImage-CqpgVSCQ.js";const P=y(()=>E(()=>import("./ShareButtons-pL-O_6lt.js"),__vite__mapDeps([0,1,2,3]))),L=y(()=>E(()=>import("./attachment-BnyYNTpH.js"),__vite__mapDeps([4,1,2,5]))),w={name:"EbdSingle",components:{ShareButtons:P,Attachment:L},mixins:[I,N],props:{ebdSlug:{type:String,required:!0}},data(){return{ebd:null,alertBox:{type:null,message:null},loading:null}},watch:{ebdSlug(i,l){i!==l&&this.getEbdData()}},created(){this.getEbdData(),this.ebd&&this.$useHead({title:`${this.ebd.descricao} - ${this.$t("EBD.MODULE_NAME")}`})},methods:{async getEbdData(){this.loading=!0;try{const i=await C.getEbdData(this.ebdSlug);this.ebd=i.data.data}catch{this.alertBox={type:"error",message:this.$t("EBD.SINGLE.MESSAGE.ERROR.GENERIC")}}this.loading=!1}}},O={class:"ebd-single"},R={key:1},V={key:0,class:"loading"},M={class:"loading__thumb"},T={class:"loading__content"},q={class:"loading__header"},z={class:"loading__category"},G={class:"loading__share"},H={class:"loading__date"},j={class:"loading__title"},F={class:"loading__description"},U={class:"loading__line"},Z={class:"loading__line"},J={class:"loading__line"},K={class:"loading__line"},Q={class:"loading__attachments"},W={class:"loading__attachment"},X={class:"loading__attachment"},Y={key:1,class:"ebd-single__content"},$={class:"panel-image image-gradient"},ee=["srcset"],te=["src","alt"],se=["src","alt"],oe={class:"ebd-info"},ie={class:"ebd-header"},de={class:"ebd-header__inline-content"},ae={class:"ebd-header__categories"},ne={class:"category__text"},_e={class:"ebd-header__share-button"},ce={class:"ebd-header__date"},le={class:"ebd-header__date__day"},re={class:"text__date"},he={class:"ebd-header__date__hour"},me={class:"text__date"},ge={class:"ebd-header__title"},ue={class:"ebd-content"},be={class:"ebd-content__text"},pe={key:0,class:"ebd-content__embed"},ve={class:"video-container"},ye={class:"embed"},Ee={key:0,class:"ebd-attachments"};function fe(i,l,Be,ke,t,Se){const f=_("PageContentHeader"),B=_("AlertBox"),d=_("SkeletonElement"),k=_("ShareButtons"),h=_("SvgElement"),S=_("Attachment"),m=x("dompurify-html");return o(),a("div",O,[s(f,{padded:!0,"color-white":!t.alertBox.message,type:"communication","fallback-route":"ebdAll"},{default:g(()=>[u(c(i.menuItemName("INPCAPP_EBD")||i.$t("EBD.MODULE_NAME")),1)]),_:1},8,["color-white"]),t.alertBox.message?(o(),A(B,{key:0,type:t.alertBox.type},{default:g(()=>[u(c(t.alertBox.message),1)]),_:1},8,["type"])):(o(),a("article",R,[t.loading?(o(),a("div",V,[e("div",M,[s(d,{height:"100%"})]),e("div",T,[e("div",q,[e("div",z,[s(d,{height:"1.7rem"})]),e("div",G,[s(d,{height:"2.6rem"})])]),e("div",H,[s(d,{height:"1.4rem"})]),e("div",j,[s(d,{height:"2rem"})]),e("div",F,[e("div",U,[s(d,{height:"1.4rem"})]),e("div",Z,[s(d,{height:"1.4rem"})]),e("div",J,[s(d,{height:"1.4rem"})]),e("div",K,[s(d,{height:"1.4rem"})])]),e("div",Q,[e("div",W,[s(d,{height:"3.3rem"})]),e("div",X,[s(d,{height:"3.3rem"})])])])])):(o(),a("div",Y,[e("picture",$,[i.hasOptimizedImage(t.ebd)?(o(),a("source",{key:0,srcset:i.hasOptimizedImage(t.ebd),type:"image/webp"},null,8,ee)):r("",!0),e("img",{src:t.ebd.image.url,alt:t.ebd.descricao,class:"background-image"},null,8,te),e("img",{src:t.ebd.image.url,alt:t.ebd.descricao,class:"front-image"},null,8,se)]),e("div",oe,[e("div",ie,[e("div",de,[e("div",ae,[(o(!0),a(b,null,p(t.ebd.categorias,n=>(o(),a("div",{key:n.id,class:"category"},[l[0]||(l[0]=e("div",{class:"category__cover"},null,-1)),e("p",ne,c(n.nome),1)]))),128))]),e("div",_e,[s(k,{text:t.ebd.descricao,url:`/ebds/${t.ebd.slug}/`,direction:"top",color:"primary"},null,8,["text","url"])])]),e("div",ce,[e("div",le,[s(h,{name:"CalendarBorder",title:"CalendarBorder",height:"18",class:"icon"}),e("span",re,c(i.$dayjs(t.ebd.dataPublicacao).format("LL")),1)]),e("div",he,[
2s(h,{name:"ClockBorder",title:"ClockBorder",height:"18",class:"icon"}),e("span",me,c(i.$dayjs(t.ebd.dataPublicacao).format("LT")),1)])]),e("h1",ge,c(t.ebd.descricao),1)]),e("div",ue,[v(e("div",be,null,512),[[m,t.ebd.conteudo]]),t.ebd.embed?(o(),a("div",pe,[e("div",ve,[v(e("div",ye,null,512),[[m,t.ebd.embed]])])])):r("",!0)]),t.ebd.arquivos&&t.ebd.arquivos.length!==0?(o(),a("div",Ee,[(o(!0),a(b,null,p(t.ebd.arquivos,n=>(o(),a("div",{key:n.id,class:"ebd-attachments__attachment"},[s(S,{url:n.url,name:n.originalName,type:n.mimeType},null,8,["url","name","type"])]))),128))])):r("",!0)])]))]))])}const Ie=D(w,[["render",fe],["__scopeId","data-v-018f7a4c"]]);export{Ie 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.