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