1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Card-DOZSUE9t.js","assets/img-ministerios-placeholder-BYFzsDt-.js","assets/index-sUPB-bMu.js","assets/index-CjsJg3P0.css","assets/Card-CU_fSpRL.css"])))=>i.map(i=>d[i]); 2import{_ as y,j as R,k as f,b as r,c as a,o as i,g as s,d as E,e as u,w as c,Z as I,t as l,a as t,F as S,s as v,p as C}from"./index-sUPB-bMu.js";import{a as k}from"./ministries-D3IFCArf.js";import{m as A}from"./menuItemNameMixin-D-Sxrcvm.js";const b=f(()=>C(()=>import("./Card-DOZSUE9t.js"),__vite__mapDeps([0,1,2,3,4]))),B={name:"MinistriesAll",components:{Card:b},mixins:[A],data(){return{ministries:null,loading:!1,alertBox:{type:null,message:null},searchTerm:null}},computed:{...R(["churchData"]),availableMinistries(){return this.searchTerm&&this.searchTerm!==""?this.searched:this.ministries.slice()},searched(){return this.ministries.filter(e=>e.nome.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().includes(this.searchTerm?.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase()))}},async created(){this.$useHead({title:this.$t("MINISTRIES.MODULE_NAME")}),await this.getMinistriesList()},methods:{async getMinistriesList(){this.ministries=null;try{this.loading=!0;const e=await k.getMinistriesList(this.churchData.slug);e.data.code||(this.ministries=e.data)}catch{this.alertBox={type:"error",message:this.$t("MINISTRIES.INDEX.MESSAGE.ERROR.GENERIC")}}this.loading=!1},clear(){this.searchTerm&&(this.searchTerm=null)}}},D={class:"ministries-page container"},L={key:1,class:"loading"},P={class:"loading__search"},O={class:"loading__list"},U={class:"loading__item"},x={class:"loading__item"},G={class:"loading__item"},H={class:"loading__item"},F={class:"loading__item"},V={class:"ministries-list"},w={class:"ministries-list__search-label input-item"},X=["placeholder"],$={class:"ministries-list__content"},Y={key:0,class:"ministries-list__empty"},z={class:"ministries-list__empty__title"},j={class:"empty__subtitle"},Z={key:3,class:"notfound"},q={class:"notfound__title"},J={class:"notfound__subtitle"};function K(e,m,Q,W,n,d){const g=r("PageContentHeader"),p=r("AlertBox"),o=r("SkeletonElement"),h=r("SvgElement"),T=r("Card"),M=r("router-link");return i(),a("div",D,[s(g,{padded:!0},{default:c(()=>[I(l(e.menuItemName("INPCAPP_MINISTERIOS")||e.$t("MINISTRIES.MODULE_NAME")),1)]),_:1}),n.alertBox.message?(i(),E(p,{key:0,type:n.alertBox.type},{default:c(()=>[I(l(n.alertBox.message),1)]),_:1},8,["type"])):u("",!0),n.loading?(i(),a("div",L,[t("div",P,[s(o,{height:"3rem"})]),t("div",O,[t("div",U,[s(o,{height:"100%"})]),t("div",x,[s(o,{height:"100%"})]),t("div",G,[s(o,{height:"100%"})]),t("div",H,[s(o,{height:"100%"})]),t("div",F,[s(o,{height:"100%"})])])])):n.ministries?(i(),a(S,{key:2},[t("div",V,[t("label",w,[s(h,{name:"Search",title:"Search",class:"ministries-list__search-label__icon"}),t("input",{type:"text",class:"ministries-list__search-label__input search",placeholder:e.$t("MINISTRIES.INDEX.FILTERS.INPUT"),onInput:m[0]||(m[0]=_=>n.searchTerm=_.target.value)},null,40,X),n.searchTerm?(i(),a("div",{key:0,class:"ministries-list__search-label__clear",onClick:m[1]||(m[1]=(..._)=>d.clear&&d.clear(..._))},[s(h,{name:"Close",title:"Close"})])):u("",!0)]),t("div",$,[(i(!0),a(S,null,v(d.availableMinistries,(_,N)=>(i(),E(T,{key:N,ministry:_},null,8,["ministry"]))),128))])]),d.availableMinistries.length?u("",!0):(i(),a("div",Y,[s(p,null,{icon:c(()=>[s(h,{name:"Alert",title:e.$t("ALERT_MESSAGE.TITLE"),class:"ministries-list__empty__icon"},null,8,["title"])]),default:c(()=>[t("h3",z,l(e.$t("MINISTRIES.INDEX.MESSAGE.ERROR.SEARCH_TITLE")),1),t("p",j,l(e.$t("MINISTRIES.INDEX.MESSAGE.ERROR.SEARCH_DESCRIPTION")),1)]),_:1})]))],64)):(i(),a("div",Z,[s(h,{name:"IlustraMinistries",type:"other",class:"notfound__icon"}),t("h1",q,l(e.$t("MINISTRIES.EMPTY.TITLE")),1),t("h2",J,l(e.$t("MINISTRIES.EMPTY.SUBTITLE")),1),s(M,{to:{name:"churchHome"},class:"btn btn--color-primary notfound__button"},{default:c(()=>[I(l(e.$t("MINISTRIES.EMPTY.BUTTON")),1)]),_:1})]))])}const ie=y(B,[["render",K],["__scopeId","data-v-f7da177a"]]);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.