import{_ as R}from"./oR4zGOQ3.js";import{g as M,_ as V}from"./BS7eBWjz.js";import{_ as D,a as q}from"./OylXpNja.js";import{X as z,i as C,d as f,l as F,c as i,a as e,e as t,v as c,b as T,F as E,r as O,q as m,o as s,V as W,W as X}from"./Dk7D6tME.js";import{u as $}from"./DMoFaF99.js";import{_ as A}from"./DlAUqK2U.js";import"./IdU_jbGJ.js";import"./DElAtia6.js";import"./CwLGbeD0.js";import"./DtGw4K5h.js";import"https://js.hsforms.net/forms/v2.js";const h=u=>(W("data-v-cfc64d56"),u=u(),X(),u),G={class:""},J={class:"hero-section text-white border-b border-dashed border-brand-dark-300 flex items-center justify-center"},K={class:"container px-4"},P={key:0,class:"flex flex-col-reverse xl:flex-row items-center xl:py-12"},Q={class:"w-full xl:w-6/12 grid gap-y-6 mb-4 text-center xl:text-left xl:pe-24"},U=["innerHTML"],Y=["innerHTML"],Z={key:0,class:"w-full xl:w-6/12 mb-4"},ee={class:"img-wrapper relative flex justify-center xl:justify-end"},te={key:1,class:"w-full xl:w-6/12 mb-4"},se={class:"img-wrapper relative flex justify-center xl:justify-end"},oe={class:"xl:py-12 bg-brand-dark border-t border-b border-dashed border-brand-dark-300"},re={class:"container"},ne={class:"grid py-6"},ie={key:0,class:""},ce=h(()=>e("h2",{class:"text-white text-center xl:text-start !font-semibold"},"Latest content",-1)),ae=[ce],le={key:0,class:"grid grid-cols-1 xl:grid-cols-4 gap-6 justify-start px-6"},de={key:1,class:"grid grid-cols-12 justify-center"},_e=h(()=>e("div",{class:"col-span-12"},[e("p",{class:"text-brand-gold lead text-center"},"No videos found in this category.")],-1)),pe=[_e],ue={class:"container py-12"},he={class:"grid grid-cols-12 justify-center"},fe=h(()=>e("div",{class:"col-span-12 flex overflow-hidden py-3 px-2"},[e("h2",{class:"text-white"},"Series to check out")],-1)),me={class:"col-span-12"},ge={class:"container py-12"},ye={class:"grid grid-cols-12 justify-center"},ve=h(()=>e("div",{class:"col-span-12 flex overflow-hidden py-3 px-2"},[e("h2",{class:"text-white"},"Other topics")],-1)),xe={class:"col-span-12"},be={__name:"[category]",setup(u){const j=$(),{model:a,loading:_,isLoading:N}=z(j),g=C().currentRoute.value,d=g.params.taxonomy,p=g.params.category;console.log("Displaying",p,"from",d);const y=f(()=>{if(!p)return!1;try{const n=p;let o=a.value[d].find(l=>l.properties.slug===n);return o==null?void 0:o.id}catch{return!1}}),r=f(()=>{if(!p)return!1;try{const n=p;let o=a.value[d].find(l=>l.properties.slug===n);return o==null?void 0:o.properties}catch{return!1}}),v=f(()=>_.value?[]:a.value.videos?(console.log(d,y.value),a.value.videos.filter(o=>{if(o.properties[d])return o.properties[d].includes(y.value)})):[]);return F({title:()=>r.value?r.value.Name+" | The Reach Network":"The Reach Network",meta:[{description:"Helping you stay on the forefront of the cross-border payments ecosystem to scale your international ecommerce business."}]}),(n,o)=>{var x,b,w,k,I;const l=R,B=V,L=D,H=q;return s(),i("div",G,[e("section",J,[e("div",K,[!t(_)&&t(r)?(s(),i("div",P,[e("div",Q,[e("h1",{class:"text-2xl",innerHTML:t(r).Name},null,8,U),typeof t(r).Description=="string"?(s(),i("p",{key:0,class:"text-brand-gold !font-normal !text-xl !leading-loose",innerHTML:(x=t(r))==null?void 0:x.Description},null,8,Y)):c("",!0)]),(w=(b=t(r))==null?void 0:b.Icon)!=null&&w.length?(s(),i("div",Z,[e("div",ee,[T(l,{src:t(r).Icon[0],alt:"Topic Icon",class:"img-fluid relative rounded-5 border border-fancy z-0 p-5",width:"350",height:"350"},null,8,["src"])])])):c("",!0),(I=(k=t(r))==null?void 0:k.featured_image)!=null&&I.length?(s(),i("div",te,[e("div",se,[T(l,{src:t(r).featured_image[0],alt:"Topic Icon",format:"webp",quality:"90",class:"img-fluid relative rounded-4 border border-fancy z-0",width:"350",height:"517",fit:"contain"},null,8,["src"])])])):c("",!0)])):c("",!0)])]),e("section",oe,[e("div",re,[e("div",ne,[t(N)?c("",!0):(s(),i("div",ie,ae))]),t(v).length>0?(s(),i("div",le,[t(_)?c("",!0):(s(!0),i(E,{key:0},O(t(v),S=>(s(),m(B,{video:S,series:("getSeriesById"in n?n.getSeriesById:t(M))(S,t(a))},null,8,["video","series"]))),256))])):(s(),i("div",de,pe))])]),e("section",ue,[e("div",he,[fe,e("div",me,[t(_)?c("",!0):(s(),m(L,{key:0,series:t(a).series},null,8,["series"]))])])]),e("section",ge,[e("div",ye,[ve,e("div",xe,[t(_)?c("",!0):(s(),m(H,{key:0,topics:t(a).topics},null,8,["topics"]))])])])])}}},Me=A(be,[["__scopeId","data-v-cfc64d56"]]);export{Me as default};
