PageSourceSearch

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

js fontedavida.com.br collected 2026-09-26 18:04:01 UTC 5,523 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Card-DdTiTQgy.js","assets/index-sUPB-bMu.js","assets/index-CjsJg3P0.css","assets/optimizedImage-CqpgVSCQ.js","assets/Card-hR-1MtTX.css"])))=>i.map(i=>d[i]);
2import{_ as C,m as L,j as S,k as R,b as _,c as i,o as a,g as o,d as f,e as E,w as m,Z as g,t as r,a as e,a1 as D,ai as V,F as I,s as A,a4 as k,n as B,p as P}from"./index-sUPB-bMu.js";import{a as M}from"./devotional-BTjAHOSf.js";import{m as b}from"./menuItemNameMixin-D-Sxrcvm.js";const U=R(()=>P(()=>import("./Card-DdTiTQgy.js"),__vite__mapDeps([0,1,2,3,4]))),F={name:"DevotionalsAll",components:{Card:U},mixins:[b],data(){return{devotionals:null,categories:null,loading:null,alertBox:{type:null,message:null},selected:"All",searchTerm:null}},computed:{...S(["churchData"]),availableDevotionals(){return this.selected==="All"&&this.searchTerm?this.searched:this.selected!=="All"&&!this.searchTerm?this.selectedCategory(this.selected):this.selected!=="All"&&this.searchTerm?this.searched.filter(t=>t.categorias.find(n=>n.nome===this.selected)):this.devotionals},searched(){return this.devotionals.filter(t=>t.descricao.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().includes(this.searchTerm.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase()))}},async created(){this.$useHead({title:this.$t("DEVOTIONAL.MODULE_NAME")}),await this.getdevotionalsList()},methods:{...L(["appSetLoadingState"]),async getdevotionalsList(){this.devotionals=null,this.loading=!0;try{const t=await M.getDevotionalList(this.churchData.slug);t.data.devocionais.length&&(this.devotionals=t.data.devocionais,this.categories=this.devotionalGetCategories())}catch{this.alertBox={type:"error",message:this.$t("DEVOTIONAL.INDEX.MESSAGE.ERROR.GENERIC")}}this.loading=!1},devotionalGetCategories(){return Object.values(this.devotionals.reduce((n,h)=>{const c=n;return h.categorias.forEach(({nome:s})=>{c[s]||(c[s]={nome:s,devotionals:[]}),c[s].devotionals.push(h)}),c},{}))},selectedCategory(t){return this.devotionals.filter(h=>h.categorias.find(c=>c.nome===t))},clear(){this.searchTerm&&(this.searchTerm=null)}}},G={class:"devotional-page container"},w={key:1,class:"loading"},x={class:"loading__filters"},H={class:"loading__select"},X={class:"loading__search"},z={class:"loading__list"},Y={class:"loading__item"},j={class:"loading__item"},W={class:"loading__item"},Z={key:2,class:"devotionals-list"},q={class:"devotionals-list__filters"},J={class:"category-search input-item"},K={class:"category-search__label"},Q={value:"All",class:"category-option"},$=["value"],ee={class:"input-search input-item"},te={class:"input-search__label"},se=["placeholder"],oe={class:"devotionals-list__content"},ne={key:0,class:"notfound"},ae={class:"notfound__title"},le={class:"notfound__subtitle"},ie={key:3,class:"notfound__content"},re={class:"notfound__content__ilustration"},ce={class:"notfound__content__title"},de={class:"notfound__content__subtitle"};function _e(t,n,h,c,s,v){const O=_("PageContentHeader"),T=_("AlertBox"),u=_("SkeletonElement"),d=_("SvgElement"),N=_("Card"),y=_("router-link");return a(),i("div",G,[o(O,{padded:!0},{default:m(()=>[g(r(t.menuItemName("INPCAPP_DEVOCIONAL")||t.$t("DEVOTIONAL.MODULE_NAME")),1)]),_:1}),s.alertBox.message?(a(),f(T,{key:0,type:s.alertBox.type},{default:m(()=>[g(r(s.alertBox.message),1)]),_:1},8,["type"])):E("",!0),s.loading?(a(),i("div",w,[e("div",x,[e("div",H,[o(u,{height:"3rem"})]),e("div",X,[o(u,{height:"3rem"})])]),e("div",z,[e("div",Y,[o(u,{height:"100%"})]),e("div",j,[o(u,{height:"100%"})]),e("div",W,[o(u,{height:"100%"})])])])):s.devotionals?(a(),i("div",Z,[e("div",q,[e("div",J,[e("div",K,[o(d,{name:"Filter",title:"Filter",class:"category-search__icon"}),D(e("select",{"onUpdate:modelValue":n[0]||(n[0]=l=>s.selected=l),class:"input-item__select"},[e("option",Q,r(t.$t("DEVOTIONAL.INDEX.FILTERS.DROPDOWN")),1),(a(!0),i(I,null,A(s.categories,(l,p)=>(a(),i("option",{key:p,value:l.nome,class:"category-option"},r(l.nome),9,$))),128))],512),[[V,s.selected]]),o(d,{class:"arrow-down",name:"ChevronBottom",title:"ChevronBottom"})])]),e("div",ee,[e("label",te,[o(d,{name:"Search",title:"Search",class:"svg"}),D(e("input",{"onUpdate:modelValue":n[1]||(n[1]=l=>s.searchTerm=l),type:"text",class:B(["input-item__search search",{"input-item__search--hasSearchTerm":s.searchTerm}]),placeholder:t.$t("DEVOTIONAL.INDEX.FILTERS.INPUT")},null,10,se),[[k,s.searchTerm]]),s.searchTerm?(a(),i("div",{key:0,class:"clear",onClick:n[2]||(n[2]=(...l)=>v.clear&&v.clear(...l))},[o(d,{name:"Close",title:"Close"}
2)])):E("",!0)])])]),e("div",oe,[(a(!0),i(I,null,A(v.availableDevotionals,(l,p)=>(a(),f(N,{key:p,devotional:l},null,8,["devotional"]))),128)),v.availableDevotionals.length?E("",!0):(a(),i("div",ne,[o(T,null,{icon:m(()=>[o(d,{name:"Alert",title:t.$t("ALERT_MESSAGE.TITLE"),class:"notfound__icon"},null,8,["title"])]),default:m(()=>[e("h3",ae,r(t.$t("DEVOTIONAL.INDEX.MESSAGE.ERROR.SEARCH_TITLE")),1),e("p",le,r(t.$t("DEVOTIONAL.INDEX.MESSAGE.ERROR.SEARCH_DESCRIPTION")),1)]),_:1})]))])])):(a(),i("div",ie,[e("div",re,[n[3]||(n[3]=e("div",{class:"cover"},null,-1)),o(d,{name:"IlustraDevotional",type:"other",class:"notfound-icon"})]),e("h1",ce,r(t.$t("DEVOTIONAL.EMPTY.TITLE")),1),e("h2",de,r(t.$t("DEVOTIONAL.EMPTY.SUBTITLE")),1),o(y,{to:{name:"churchHome"},class:"btn btn--color-primary notfound__content__button"},{default:m(()=>[g(r(t.$t("DEVOTIONAL.EMPTY.BUTTON")),1)]),_:1})]))])}const ve=C(F,[["render",_e],["__scopeId","data-v-46303521"]]);export{ve 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.