PageSourceSearch

https://fontedavida.com.br/assets/Single-BuBEgw1X.js

js fontedavida.com.br collected 2026-09-26 18:04:06 UTC 6,569 bytes, 1 lines download raw bytes

1import{_ as b,m as D,j as P,b as d,$ as L,c as r,o as i,g as n,d as N,e as c,w as v,Z as M,t as a,a as e,F as I,a1 as j,s as k,f as B}from"./index-sUPB-bMu.js";import{a as R}from"./ministries-D3IFCArf.js";import{m as w}from"./menuItemNameMixin-D-Sxrcvm.js";import{_ as T}from"./img-ministerios-placeholder-BYFzsDt-.js";const A={name:"MinistriesSingle",mixins:[w],props:{ministryId:{type:Number,required:!0}},data(){return{ministry:null,loading:null,alertBox:{type:null,message:null}}},computed:{...P(["churchData"]),hasProject(){return!!this.ministry.projetosSociais.length},hasLeaderContent(){return!!(this.hasLeader||this.hasMail||this.hasPhone)},hasLeader(){return this.ministry.responsavel!==" "},hasPhone(){return this.ministry.telefone!==" "},hasMail(){return this.ministry.email!==" "},hasEvent(){return!!this.ministry.eventos.length}},watch:{ministryId(s,_){s!==_&&this.getMinistryData()}},created(){this.getMinistryData(),this.ministry&&this.$useHead({title:`${this.ministry.nome} - ${this.$t("MINISTRIES.MODULE_NAME")}`})},methods:{formatEventDate(s){const _=this.$dayjs.utc(s.dataInicio),m=s.dataFim?this.$dayjs.utc(s.dataFim):null;if(m&&!_.isSame(m,"day")){const y=_.format("D"),u=_.format("MMM"),o=_.format("LT"),p=m.format("D"),g=m.format("MMM"),f=m.format("LT");return`${this.$t("EVENT.GLOBAL.TEXT.DATES.DIFFERENT",{dayStart:y,monthStart:u,hourStart:o,dayEnd:p,monthEnd:g,hourEnd:f})}`}const S=_.format("D"),t=_.format("MMM"),l=_.format("LT");return`${this.$t("EVENT.GLOBAL.TEXT.DATES.SAME",{day:S,month:t,hour:l})}`},...D(["setProject"]),async getMinistryData(){this.loading=!0;try{const s=await R.getMinistryData(this.churchData.slug,this.ministryId);if(s.data.code)throw s.data.code;this.ministry=s.data}catch{this.alertBox={type:"error",message:this.$t("MINISTRIES.INDEX.MESSAGE.ERROR.GENERIC")}}this.loading=!1},sendToProjecPage(s){this.setProject(s),this.$router.push({name:"ministriesProject",params:{ministryId:this.ministryId,projectId:s.id}})}}},C={class:"ministry-single"},x={key:1,class:"loading"},O={class:"loading__thumb"},F={class:"loading__content"},G={class:"loading__title"},V={class:"loading__description"},H={class:"loading__line"},X={class:"loading__line"},U={class:"loading__line"},q={class:"loading__line"},J={class:"loading__subtitle"},Z={class:"loading__projects"},z={class:"loading__projects__card"},K={class:"loading__projects__card"},Q={class:"loading__projects__card"},W={class:"loading__subtitle"},Y={class:"loading__line"},$={class:"loading__line"},ee={class:"ministry-single__banner"},te={key:0,class:"panel-image image-gradient"},se=["src","alt"],ie=["src","alt"],ne={key:1,class:"panel-image image-gradient"},oe=["alt"],re=["alt"],ae={class:"ministry-single__wrapper"},_e={class:"ministry-single__info"},le={class:"ministry-single__info__title"},ce={class:"ministry-single__info__description"},me={key:0,class:"ministry-single__projects"},he={class:"subtitle"},de={class:"ministry-single__projects__buttons"},ge=["onClick"],ye={key:1,class:"ministry-single__events"},ue={class:"subtitle"},pe={class:"ministry-single__events__buttons"},fe={class:"event-button__title"},Ee={class:"event-button__date"},ve={key:2,class:"ministry-single__leader"},Ie={class:"subtitle"},Se={class:"ministry-single__leader__wrapper"},Ne={key:0,class:"ministry-single__leader__name"},Me=["href"],ke={class:"ministry-single__leader__info__text"},Te=["href"],be={class:"ministry-single__leader__info__text"};function De(s,_,m,S,t,l){const y=d("PageContentHeader"),u=d("AlertBox"),o=d("SkeletonElement"),p=d("router-link"),g=d("SvgElement"),f=L("dompurify-html");return i(),r("div",C,[n(y,{padded:!0,"color-white":!t.alertBox.message,type:"groups",class:"ministry-single__header"},{default:v(()=>[M(a(s.menuItemName("INPCAPP_MINISTERIOS")||s.$t("MINISTRIES.MODULE_NAME")),1)]),_:1},8,["color-white"]),t.alertBox.message?(i(),N(u,{key:0,type:t.alertBox.type},{default:v(()=>[M(a(t.alertBox.message),1)]),_:1},8,["type"])):c("",!0),t.loading?(i(),r("div",x,[e("div",O,[n(o,{height:"100%"})]),e("div",F,[e("div",G,[n(o,{height:"2rem"})]),e("div",V,[e("div",H,[n(o,{height:"1.4rem"})]),e("div",X,[n(o,{height:"1.4rem"})]),e("div",U,[n(o,{height:"1.4rem"})]),e("div",q,[n(o,{height:"1.4rem"})])]),e("div",J,[n(o,{height:"1.4rem"})]),e("div",Z,[e("div",z,[n(o,{height:"3rem"})]),e("div",K,[n(o,{height:"3rem"})]),e("div",Q,[n(o,{height:"3rem"})])]),e("div",W,[n(o,{height:"1.4rem"}),e("div",Y,[n(o,{height:"1.4rem"})]),e("div",$,[n(o,{height:"1.4rem"})])])])])):t.ministry?(i(),r(I,{key:2},[e("div",ee,[t.ministry.imageName?(i(),r("picture",te,[e("img",{src:t.ministry.imageName,alt:t.ministry.nome,class:"background-image"},null,8,se),e("img",{src:t.ministry.imageName,alt:t.ministry.nome,class:"front-image"}
1,null,8,ie)])):(i(),r("picture",ne,[e("img",{src:T,alt:t.ministry.nome,class:"background-image"},null,8,oe),e("img",{src:T,alt:t.ministry.nome,class:"front-image"},null,8,re)]))]),e("div",ae,[e("section",_e,[e("h1",le,a(t.ministry.nome),1),j(e("div",ce,null,512),[[f,t.ministry.detalhes]])]),l.hasProject?(i(),r("section",me,[e("h4",he,a(s.$t("MINISTRIES.SINGLE.INFO.PROJECT")),1),e("div",de,[(i(!0),r(I,null,k(t.ministry.projetosSociais,(h,E)=>(i(),r("button",{key:E,class:"project-button btn btn--color-primary",onClick:B(Pe=>l.sendToProjecPage(h),["prevent"])},a(h.nome),9,ge))),128))])])):c("",!0),l.hasEvent?(i(),r("section",ye,[e("h4",ue,a(s.$t("MINISTRIES.SINGLE.INFO.EVENT")),1),e("div",pe,[(i(!0),r(I,null,k(t.ministry.eventos,(h,E)=>(i(),N(p,{key:E,class:"event-button",to:{name:"eventsSingle",params:{eventId:h.id}}},{default:v(()=>[e("h5",fe,a(h.nome),1),e("p",Ee,a(l.formatEventDate(h)),1)]),_:2},1032,["to"]))),128))])])):c("",!0),l.hasLeaderContent?(i(),r("section",ve,[e("h4",Ie,a(s.$t("MINISTRIES.SINGLE.INFO.RESPONSIBLE")),1),e("div",Se,[l.hasLeader?(i(),r("p",Ne,a(t.ministry.responsavel),1)):c("",!0),l.hasPhone?(i(),r("a",{key:1,href:`tel:${t.ministry.telefone}`,class:"ministry-single__leader__info",target:"_blank",rel:"noopener noreferrer"},[n(g,{name:"PhoneBorder",title:"PhoneBorder",width:"24",height:"24",class:"ministry-single__leader__info__icon"}),e("p",ke,a(t.ministry.telefone),1)],8,Me)):c("",!0),l.hasMail?(i(),r("a",{key:2,href:`mailto:${t.ministry.email}`,class:"ministry-single__leader__info",target:"_blank",rel:"noopener noreferrer"},[n(g,{name:"Email",title:"Email",width:"24",height:"24",class:"ministry-single__leader__info__icon"}),e("p",be,a(t.ministry.email),1)],8,Te)):c("",!0)])])):c("",!0)])],64)):c("",!0)])}const we=b(A,[["render",De],["__scopeId","data-v-a03b6e03"]]);export{we 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.