PageSourceSearch

https://fontedavida.com.br/assets/Index-CFyk570o.js

js fontedavida.com.br collected 2026-09-26 18:03:23 UTC 13,087 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Card-DQPM3ezL.js","assets/optimizedImage-CqpgVSCQ.js","assets/celulas-BFNja8my.js","assets/index-sUPB-bMu.js","assets/index-CjsJg3P0.css","assets/Card-CMzTYbBt.css","assets/CellDetail-Dz_ccVD_.js","assets/optimizedImage-CqToSDpL.js","assets/CellDetail-CGe3dN2R.css"])))=>i.map(i=>d[i]);
2import{_ as R,m as P,j as w,k,b as L,c as n,o as l,g as c,d as C,e as m,w as p,Z as M,t as d,a as i,F as I,s as U,n as N,a1 as T,a4 as G,T as v,f as F,p as D}from"./index-sUPB-bMu.js";import{m as B}from"./menuItemNameMixin-D-Sxrcvm.js";const O=k(()=>D(()=>import("./Card-DQPM3ezL.js"),__vite__mapDeps([0,1,2,3,4,5]))),z=k(()=>D(()=>import("./CellDetail-Dz_ccVD_.js"),__vite__mapDeps([6,2,7,3,4,8]))),X={name:"CelulasAll",components:{Card:O,CellDetail:z},mixins:[B],data(){return{alertBox:{type:null,message:null},search:null,loading:!0,celulasEmpty:!1,mode:"LIST",selectedCell:null,currentCellIndex:0,currentLocationGroup:null,googleMaps:null}},computed:{...w({celulas:"celulasGetList",userCelulas:"celulasGetUserCelulas",userLogged:"userLoggedIn",studiesFlag:"celulasGetStudiesFlag",screenSize:"appScreenSize"}),availableCelulas(){return this.search?this.searched(this.celulas).filter(e=>!this.userCelulas.find(t=>t.nome===e.nome)):this.search?this.celulas:this.celulas?this.celulas.filter(e=>!this.userCelulas.find(t=>t.nome===e.nome)):null},celulasList(){return this.search?this.searched(this.celulas):this.celulas},userCelulasList(){return this.search?this.searched(this.userCelulas):this.userCelulas},hasStudies(){return!!this.studiesFlag},celulasWithLocal(){return this.celulasList.filter(({enderecos:e})=>e[0]?.latitude&&e[0]?.longitude)},mapConfig(){if(!this.celulasWithLocal.length)return{center:{lat:0,lng:0},zoom:2};const e=this.celulasWithLocal.map(A=>A.enderecos[0].latitude),t=this.celulasWithLocal.map(A=>A.enderecos[0].longitude),o=Math.min(...e),r=Math.max(...e),s=Math.min(...t),a=Math.max(...t),u=(o+r)/2,f=(s+a)/2,S=r-o,E=a-s,g=Math.max(S,E);let _=16;return g>1&&(_=14),g>2&&(_=12),g>4&&(_=10),g>8&&(_=8),g>16&&(_=6),g>24&&(_=5),g>32&&(_=4),g>40&&(_=3),g>90&&(_=2),{center:{lat:u,lng:f},zoom:_}},isMobile(){return this.screenSize<768}},async created(){this.$useHead({title:this.$t("CELULAS.MODULE_NAME")});try{this.loading=!0;const e=[this.getCelulasList(),this.getStudiesFlag(),this.loadGoogleMapsAPI()];this.userLogged&&e.push(this.getUserCelulasList()),await Promise.all(e),this.celulasEmpty=!(this.celulas.length>0)}catch(e){console.error("Error loading page:",e)}finally{this.loading=!1}},methods:{...P(["fetchCelulas","fetchUserCelulas","fetchStudiesFlag"]),searched(e){const t=e.filter(u=>u.nome.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().includes(this.search.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase())),o=e.filter(u=>u.categorias.find(f=>f.nome.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().includes(this.search.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase()))),r=e.filter(u=>u.enderecos[0]?.bairro?u.enderecos[0].bairro.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().includes(this.search.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase()):null),s=e.filter(u=>u.enderecos[0]?.enderecoCompleto?u.enderecos[0].enderecoCompleto.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().includes(this.search.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase()):null),a=[...t,...o,...r,...s];
2return[...new Set(a)]},async getCelulasList(){try{await this.fetchCelulas()}catch{this.alertBox={type:"error",message:this.$t("CELULAS.INDEX.MESSAGE.ERROR.GENERIC")}}},async getUserCelulasList(){try{await this.fetchUserCelulas()}catch{this.alertBox={type:"error",message:this.$t("CELULAS.INDEX.MESSAGE.ERROR.GENERIC")}}},async getStudiesFlag(){try{await this.fetchStudiesFlag()}catch{this.alertBox={type:"error",message:this.$t("CELULAS.INDEX.MESSAGE.ERROR.GENERIC")}}},clear(){this.search&&(this.search=null)},async loadGoogleMapsAPI(){return new Promise((e,t)=>{if(window.google&&window.google.maps){this.googleMaps=window.google.maps,e(this.googleMaps);return}const o=document.createElement("script");o.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyADVZMrWUWaWJ1blylllws4Tl1XenjK4Dw&libraries=maps&v=beta&libraries=marker",o.async=!0,o.defer=!0,o.onload=()=>{this.googleMaps=window.google.maps,e(this.googleMaps)},o.onerror=r=>t(r),document.head.appendChild(o)})},groupCellsByLocation(e){const t={};return e.forEach(o=>{const r=o.enderecos[0],s=`${r.latitude.toFixed(6)}_${r.longitude.toFixed(6)}`;t[s]||(t[s]={position:{lat:r.latitude,lng:r.longitude},cells:[],locationKey:s}),t[s].cells.push(o)}),t},createSingleMarker(e,t){const o=Array.isArray(t),r=o?t[0].enderecos[0]:t.enderecos[0],s=()=>{const u=document.createElement("img");return u.src=o?new URL("/img/icons/pinMapPlus.png",import.meta.url).href:new URL("/img/icons/pinMap.png",import.meta.url).href,u};new this.googleMaps.marker.AdvancedMarkerElement({map:e,content:s(),position:{lat:r.latitude,lng:r.longitude},title:o?"":t.nome}).addListener("gmp-click",()=>{o?(this.currentLocationGroup=this.groupCellsByLocation(this.celulasWithLocal)[`${r.latitude.toFixed(6)}_${r.longitude.toFixed(6)}`],this.currentCellIndex=0,this.selectedCell=this.currentLocationGroup.cells[0]):(this.selectedCell=t,this.currentCellIndex=0,this.currentLocationGroup=null)})},async initMap(){if(!this.googleMaps){console.error("Google Maps not loaded");return}try{const{Map:e}=await this.googleMaps.importLibrary("maps");await this.googleMaps.importLibrary("marker");const t=new e(document.getElementById("map"),{zoom:this.mapConfig.zoom,center:this.mapConfig.center,mapId:"INPEACEAPP_WEB_GROUPS_MAP",fullscreenControl:!1}),o=this.groupCellsByLocation(this.celulasWithLocal);Object.values(o).forEach(r=>{r.cells.length===1?this.createSingleMarker(t,r.cells[0]):this.createSingleMarker(t,r.cells)}),this.celulasWithLocal.length===0&&new this.googleMaps.marker.AdvancedMarkerElement({map:t,position:this.mapConfig.center})}catch(e){console.error("Error initializing map:",e)}},navigateCell(e){if(!this.currentLocationGroup)return;const t=this.currentCellIndex+e;t>=0&&t<this.currentLocationGroup.cells.length&&(this.currentCellIndex=t,this.selectedCell=this.currentLocationGroup.cells[t])},closeDetail(){this.selectedCell=null,this.currentCellIndex=0,this.currentLocationGroup=null},toggleMode(){this.mode==="LIST"?(setTimeout(()=>this.initMap(),500),this.mode="MAP"):this.mode="LIST"}}},x={class:"groups-page container"},W={key:1,class:"loading"},V={class:"loading__filters"},H={class:"loading__search"},Y={class:"loading__subtitle"},j={class:"loading__list"},K={key:2,class:"celulas-list"},Z={class:"celulas-list__filters"},q={class:"input-search input-item"},J={class:"celulas-list__filters__label"},Q={class:"svg-icon"},$=["placeholder"],ee={key:0,class:"studies"},te={class:"studies__button btn btn--color-primary"},se={class:"svg-icon"},le={key:0},ae={key:0,class:"celulas-list__content"},ie={key:0,class:"celulas-list-title title"},oe={key:1,class:"celulas-user"},ne={key:2,class:"celulas-list-title title"},re={key:3,class:"celulas-all"},ce={class:"celulas-list__empty__title"},ue={class:"celulas-list__empty__subtitle"},de={key:1,class:"celulas-list__content"},he={key:0,class:"celulas-list-title title"},me={class:"celulas-all"},_e={class:"celulas-list__empty__title"},ge={class:"celulas-list__empty__text"},pe={key:1,class:"map-container"},Ee={class:"celula-selected"},Le={key:0,class:"empty"},Ce=["textContent"],fe={key:1,class:"celula-selected__detail"},Ae={key:3,class:"groups-page__empty__content"},Se={class:"groups-page__empty__content__title"},ye={class:"groups-page__empty__content__subtitle"},Me=["textContent"];function Ie(e,t,o,r,s,a){const u=L("PageContentHeader"),f=L("AlertBox"),S=L("SkeletonElement"),E=L("SvgElement"),g=L("router-link"),_=L("Card"),A=L("CellDetail"),b=L("ModalElement");return l(),n("div",x,[c(u,{padded:!0},{default:p(()=>[M(d(e.menuItemName("INPCAPP_CELULA")||e.$t("CELULAS.MODULE_NAME")),1
2)]),_:1}),s.alertBox.message?(l(),C(f,{key:0,type:s.alertBox.type},{default:p(()=>[M(d(s.alertBox.message),1)]),_:1},8,["type"])):m("",!0),s.loading?(l(),n("div",W,[i("div",V,[i("div",H,[c(S,{height:"3rem"})])]),i("div",Y,[c(S,{height:"1.6rem",width:"8rem"})]),i("div",j,[(l(),n(I,null,U(5,h=>i("div",{key:h,class:"loading__item"},[c(S,{height:"100%"})])),64))])])):e.celulas&&!s.celulasEmpty?(l(),n("div",K,[i("div",Z,[c(v,{name:"fade"},{default:p(()=>[s.mode==="LIST"?(l(),n("div",{key:0,class:N(["celulas-list__wrapper",{"celulas-list__wrapper--center":!a.hasStudies}])},[i("div",q,[i("p",J,d(e.$t("CELULAS.INDEX.FILTERS.SEARCH")),1),i("label",{class:N(["input-search__label",{"input-search__label--active":s.search}])},[i("div",Q,[c(E,{name:"Search",title:"Search"})]),T(i("input",{"onUpdate:modelValue":t[0]||(t[0]=h=>s.search=h),type:"text",class:"input-item__search search",placeholder:e.$t("CELULAS.INDEX.FILTERS.INPUT")},null,8,$),[[G,s.search]]),s.search?(l(),n("button",{key:0,class:"clear",onClick:t[1]||(t[1]=(...h)=>a.clear&&a.clear(...h))},[c(E,{name:"Close",title:"Close"})])):m("",!0)],2)]),a.hasStudies?(l(),n("div",ee,[c(g,{to:{name:"studiesAll"}},{default:p(()=>[i("button",te,[i("div",se,[c(E,{name:"Studie",title:"Studie"})]),M(" "+d(e.$t("CELULAS.STUDIES.MODULE_NAME")),1)])]),_:1})])):m("",!0)],2)):m("",!0)]),_:1}),i("button",{class:"celulas-list__mode",onClick:t[2]||(t[2]=(...h)=>a.toggleMode&&a.toggleMode(...h))},[c(E,{type:"icon",class:"icon",name:"Map",title:"Map",width:"24",height:"24"}),M(" "+d(e.$t(`CELULAS.INDEX.BUTTON.${s.mode==="MAP"?"LIST":"MAP"}`)),1)])]),c(v,{name:"slide-fade"},{default:p(()=>[s.mode==="LIST"?(l(),n("div",le,[e.userLogged?(l(),n("div",ae,[a.userCelulasList.length?(l(),n("h2",ie,d(e.$t("CELULAS.INDEX.CELULAS.USER",{groups:e.menuItemName("INPCAPP_CELULA")||e.$t("CELULAS.MODULE_NAME")})),1)):m("",!0),a.userCelulasList.length?(l(),n("div",oe,[(l(!0),n(I,null,U(a.userCelulasList,(h,y)=>(l(),C(_,{key:y,celula:h},null,8,["celula"]))),128))])):m("",!0),a.availableCelulas.length?(l(),n("h2",ne,d(e.$t("CELULAS.INDEX.CELULAS.AVAILABLE",{groups:e.menuItemName("INPCAPP_CELULA")||e.$t("CELULAS.MODULE_NAME")})),1)):m("",!0),a.availableCelulas.length?(l(),n("div",re,[(l(!0),n(I,null,U(a.availableCelulas,(h,y)=>(l(),C(_,{key:y,celula:h},null,8,["celula"]))),128))])):m("",!0),!a.availableCelulas.length&&!a.userCelulasList.length?(l(),C(f,{key:4},{icon:p(()=>[c(E,{name:"Alert",title:e.$t("ALERT_MESSAGE.TITLE"),width:"1.5rem",height:"100%",class:"prayers-list__empty__icon"},null,8,["title"])]),default:p(()=>[i("p",ce,d(e.$t("CELULAS.INDEX.MESSAGE.ERROR.SEARCH")),1),i("p",ue,d(e.$t("CELULAS.INDEX.MESSAGE.ERROR.TERM")),1)]),_:1})):m("",!0)])):m("",!0),e.userLogged?m("",!0):(l(),n("div",de,[a.celulasList.length?(l(),n("h2",he,d(e.$t("CELULAS.INDEX.CELULAS.AVAILABLE",{groups:e.menuItemName("INPCAPP_CELULA")||e.$t("CELULAS.MODULE_NAME")})),1)):m("",!0),i("div",me,[(l(!0),n(I,null,U(a.celulasList,(h,y)=>(l(),C(_,{key:y,celula:h},null,8,["celula"]))),128)),a.celulasList.length?m("",!0):(l(),C(f,{key:0},{icon:p(()=>[c(E,{name:"Alert",title:e.$t("ALERT_MESSAGE.TITLE"),width:"1.5rem",height:"100%",class:"celulas-list__empty__icon"},null,8,["title"])]),default:p(()=>[i("h3",_e,d(e.$t("CELULAS.INDEX.MESSAGE.ERROR.SEARCH")),1),i("p",ge,d(e.$t("PRAYER.INDEX.MESSAGE.ERROR.SEARCH_MESSAGE")),1)]),_:1}))])]))])):(l(),n("div",pe,[t[5]||(t[5]=i("div",{id:"map",class:"shadow-3 rounded-borders"},null,-1)),i("div",Ee,[c(v,{name:"fade",mode:"out-in"},{default:p(()=>[s.selectedCell?(l(),n("div",fe,[a.isMobile?(l(),C(b,{key:0,show:s.selectedCell&&a.isMobile,"modal-id":"cell-map","click-to-close":!0,"close-button":!0,onClosed:t[3]||(t[3]=h=>s.selectedCell=null)},{default:p(()=>[c(A,{celula:s.selectedCell,"has-previous":s.currentCellIndex>0,"has-next":s.currentCellIndex<(s.currentLocationGroup?.cells?.length-1||0),onNavigate:a.navigateCell},null,8,["celula","has-previous","has-next","onNavigate"])]),_:1},8,["show"])):(l(),C(A,{key:1,celula:s.selectedCell,"has-previous":s.currentCellIndex>0,"has-next":s.currentCellIndex<(s.currentLocationGroup?.cells?.length-1||0),onNavigate:a.navigateCell},null,8,["celula","has-previous","has-next","onNavigate"]))])):(l(),n("div",Le,[c(E,{name:"IlustraGroups",type:"other",class:"icon",width:"100%",heigth:"100%"}),i("p",{class:"celula-selected__title",textContent:d(e.$t("CELULAS.INDEX.EMPTY.SELECTED"))},null,8,Ce)]))]),_:1})])]))]),_:1})])):m("",!0),s.celulasEmpty?(l(),n("div",Ae,[c(E,{name:"IlustraGroups",type:"other",class:"icon",width:"100%",heigth:"100%"}),i("h1",Se,d(e.$t("CELULAS.INDEX.EMPTY.TITLE",{grupos:e.menuItemName("INPCAPP_CELULA")||e.$t("CELULAS.MODULE_NAME")})),1),i("h2",ye,d(e.$t("CELULAS.INDEX.EMPTY.SUBTITLE")),1),i("button",{class:"btn btn--size-sm groups-page__empty__content__button",onClick:t[4]||(t[4]=F(h=>e.$router.go(-1),["prevent"])),textContent:d(e.$t("CELULAS.INDEX.EMPTY.BUTTON"))},null,8,Me)])):m("",!0)])}const Ne=R(X,[["render",Ie],["__scopeId","data-v-7150a889"]]);export{Ne 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.