1import{f as k,u as y,h as C,G as H,c as r,d as e,a as l,F as P,k as A,l as f,t as g,m as v,A as B,o as i,j as E,C as $,n as G,e as I,_ as S}from"./index-DnckmsVO.js";import{A as T,e as w}from"./article.api-BwOoMx6g.js";import{n as N}from"./creations-navigation-Di1Pget0.js";import{n as R}from"./direct-link-navigation-ybgpVmG_.js";import{_ as x}from"./BannerLogo.vue_vue_type_style_index_0_lang-BE6pTG3Z.js";import{_ as D}from"./SkeletonLoader.vue_vue_type_style_index_0_lang-De8NYKen.js";import"./projects.config-DlngJ9Uh.js";const L="tapekids-website",O=[`${L}.heroes-page`],U={class:"heroes-page"},V={class:"heroes-after-section"},F={class:"heroes-articles"},z={key:0},j={key:1,class:"heroes-articles-grid"},M=["onClick"],W={class:"heroes-article-card-image"},Z=["src","alt"],q={key:1,class:"heroes-article-thumb-placeholder"},J={class:"heroes-article-card-title"},K={key:2,"aria-label":"Article pagination",class:"heroes-pagination"},Q=["disabled"],X={class:"heroes-page-info"},Y=["disabled"],ee=40,se=k({__name:"Heroes",setup(ae){const c=G(),d=y(),o=v(null),u=v(!0),n=v(1),m=B(()=>{var s;return((s=o.value)==null?void 0:s.items)??[]}),b=s=>{R(s,c)||N(c,d.isoCode,s)||c.push(`/${d.isoCode}/heroes/post/${w(s)}`)},_=async s=>{o.value&&s>=1&&s<=o.value.totalPages&&(n.value=s,await p())},p=async()=>{u.value=!0;try{o.value=await T.getByDestinationPaths(d.isoCode,O,n.value,ee,!0)}catch(s){console.error("Error loading God's Heroes articles:",s),o.value=null}finally{u.value=!1}};return C(()=>{document.body.classList.add("heroes-page-active"),p()}),H(()=>{document.body.classList.remove("heroes-page-active")}),(s,a)=>{const h=I("font-awesome-icon");return i(),r("div",U,[a[3]||(a[3]=e("section",{class:"heroes-hero hero-behind-header"},[e("img",{class:"heroes-title-logo",src:"/images/Creations/Heroes/en/God's-Heroes_title-01.svg",alt:"God's Heroes"}),e("div",{class:"heroes-torn-blue","aria-hidden":"true"}),e("div",{class:"heroes-hero-overlay","aria-hidden":"true"})],-1)),l(x,{dark:""}),a[4]||(a[4]=e("div",{class:"heroes-figure-area"},[e("img",{class:"heroes-scriptures-bg",src:"/images/Creations/Heroes/en/God's-Heroes_Scriptures-background-01.svg",alt:"","aria-hidden":"true"}),e("img",{class:"heroes-figure",src:"/images/Creations/Heroes/God's-Heroes_Brother-Branham-reading.svg",alt:"Brother Branham reading the Bible"})],-1)),a[5]||(a[5]=e("img",{class:"heroes-torn-tan",src:"/images/Creations/Heroes/HeroesBottomTornEdgeV2.svg",alt:"","aria-hidden":"true"},null,-1)),e("div",V,[e("div",F,[u.value?(i(),r("div",z,[l(D,{variant:"thumbnails",count:6})])):o.value&&m.value.length>0?(i(),r("div",j,[(i(!0),r(P,null,A(m.value,t=>(i(),r("article",{key:t.id,class:"heroes-article-card",onClick:oe=>b(t)},[e("div",W,[t.thumbnailUrl?(i(),r("img",{key:0,src:E($)(t.thumbnailUrl,800),alt:t.title,class:"heroes-article-thumbnail",loading:"lazy"},null,8,Z)):(i(),r("div",q,[l(h,{icon:["far","image"]})]))]),e("h3",J,g(t.title),1)],8,M))),128))])):f("",!0),o.value&&o.value.totalPages>1?(i(),r("nav",K,[e("button",{class:"heroes-page-btn",disabled:!o.value.hasPreviousPage,onClick:a[0]||(a[0]=t=>_(n.value-1))},[l(h,{icon:["fas","chevron-left"]})],8,Q),e("span",X,g(n.value)+" / "+g(o.value.totalPages),1),e("button",{class:"heroes-page-btn",disabled:!o.value.hasNextPage,onClick:a[1]||(a[1]=t=>_(n.value+1))},[l(h,{icon:["fas","chevron-right"]})],8,Y)])):f("",!0)]),a[2]||(a[2]=e("div",{class:"cactus-footer-wrap","aria-hidden":"true"},[e("img",{src:"/images/Home/CactusFooterWithPuppets.svg",alt:"",class:"cactus-footer-img"})],-1))])])}}}),ue=S(se,[["__scopeId","data-v-071760e9"]]);export{ue 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.