1import{c as r,o,a as e,A as R,f as P,p as k,B as K,C as U,D as W,b as i,s as M,w as $,j as t,k as H,q as h,d as u,t as g,E as B,F as x,r as w,G as V,H as J,T as O,e as Q,l as L,m as X}from"#entry";import{_ as ee}from"./BgAAxr9G.js";import{_ as te,a as se}from"./BPh9QYYo.js";import{_ as le,a as oe,b as ae}from"./CchmIHY4.js";import{_ as re}from"./D1Uqcer9.js";import{_ as ne}from"./D--dRI1y.js";const ie=["width"],de=["fill"],ce=["fill"],ue=["fill"],me=["fill"],fe=["fill"],ge=["fill"],pe={__name:"books",props:{size:{type:Number,default:45},color:{type:String,default:"#0D2C65"}},setup(d){return(m,y)=>(o(),r("svg",{width:d.size,viewBox:"0 0 66 68",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{opacity:"0.4",d:"M11 8.83105H45.5C47.7091 8.83105 49.5 10.6219 49.5 12.8311V21.5811C49.5 23.7902 47.7091 25.5811 45.5 25.5811H11V8.83105Z",fill:d.color},null,8,de),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 8.83105C3.4375 7.67471 4.36091 6.7373 5.5 6.7373H41.25C46.9454 6.7373 51.5625 11.4243 51.5625 17.2061C51.5625 22.9878 46.9454 27.6748 41.25 27.6748H5.5C4.36091 27.6748 3.4375 26.7374 3.4375 25.5811C3.4375 24.4247 4.36091 23.4873 5.5 23.4873H41.25C44.6673 23.4873 47.4375 20.6751 47.4375 17.2061C47.4375 13.737 44.6673 10.9248 41.25 10.9248H5.5C4.36091 10.9248 3.4375 9.9874 3.4375 8.83105Z",fill:d.color},null,8,ce),e("path",{opacity:"0.4",d:"M11 42.3311H45.5C47.7091 42.3311 49.5 44.1219 49.5 46.3311V55.0811C49.5 57.2902 47.7091 59.0811 45.5 59.0811H11V42.3311Z",fill:d.color},null,8,ue),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 42.3311C3.4375 41.1747 4.36091 40.2373 5.5 40.2373H41.25C46.9454 40.2373 51.5625 44.9243 51.5625 50.7061C51.5625 56.4878 46.9454 61.1748 41.25 61.1748H5.5C4.36091 61.1748 3.4375 60.2374 3.4375 59.0811C3.4375 57.9247 4.36091 56.9873 5.5 56.9873H41.25C44.6673 56.9873 47.4375 54.1751 47.4375 50.7061C47.4375 47.237 44.6673 44.4248 41.25 44.4248H5.5C4.36091 44.4248 3.4375 43.4874 3.4375 42.3311Z",fill:d.color},null,8,me),e("path",{opacity:"0.4",d:"M55 25.5811H20.5C18.2909 25.5811 16.5 27.3719 16.5 29.5811V38.3311C16.5 40.5402 18.2909 42.3311 20.5 42.3311H55V25.5811Z",fill:d.color},null,8,fe),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M62.5625 25.5811C62.5625 24.4247 61.6391 23.4873 60.5 23.4873H24.75C19.0546 23.4873 14.4375 28.1743 14.4375 33.9561C14.4375 39.7378 19.0546 44.4248 24.75 44.4248H60.5C61.6391 44.4248 62.5625 43.4874 62.5625 42.3311C62.5625 41.1747 61.6391 40.2373 60.5 40.2373H24.75C21.3327 40.2373 18.5625 37.4251 18.5625 33.9561C18.5625 30.487 21.3327 27.6748 24.75 27.6748H60.5C61.6391 27.6748 62.5625 26.7374 62.5625 25.5811Z",fill:d.color},null,8,ge)],8,ie))}},_e=["width"],be=["fill"],he={__name:"arrow-down",props:{size:{type:Number,default:12},color:{type:String,default:"#113140"}},setup(d){const m=d;return(y,n)=>(o(),r("svg",{width:m.size,viewBox:"0 0 16 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M15.7349 14.4154L8.22294 21.9034L0.710938 14.4154L1.79094 13.3354L7.47894 19.0234V0.223389H8.99094V19.0234L14.6789 13.3354L15.7349 14.4154Z",fill:d.color},null,8,be)],8,_e))}},S=""+new URL("newsletter-cover.CnghTzmq.svg",import.meta.url).href,ye=S,ve={key:0,class:"container"},xe={class:"sub-container py-16"},we={class:"mb-5"},Ee={key:0,class:"motion-safe:animate-pulse bg-[#E6E6E6] w-32 py-3 rounded-xl"},Ce={key:1,class:"text-primary-100 font-medium"},ke={class:"flex flex-col md:flex-row gap-x-16 items-center"},$e={key:0,class:"flex-grow motion-safe:animate-pulse mb-14"},He={class:"mt-6 flex items-center"},Me={class:"mb-7"},Be={key:0,class:"motion-safe:animate-pulse bg-[#E6E6E6] w-32 py-3 rounded-xl"},Ve={key:1,class:"text-primary-100 font-medium"},Le={class:"mb-5"},Se={key:0,class:"motion-safe:animate-pulse"},De={key:1,class:"text-secondary-900 text-lg"},Ie={class:"flex gap-3"},ze=["href"],Ye=["href"],Fe=["href"],Ne=["href"],Te={class:"text-2xl lg:text-[40px] font-semibold"},Ze={class:"text-lg font-medium mt-6"},je={id:"articles",class:"container md:mt-10"},qe={class:"sub-container"},Ae={class:"flex flex-wrap gap-4 mb-14"},Ge=["data-active","onClick"],Re={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-x-10 gap-y-16 mb-16"},Pe={class:"flex justify-center"},Ke=["disabled"],Ue={class:"lg:container mb-12 mt-24"},We={class:"sub-container"},Je={class:"lg:rounded-xl lg:overflow-hidden flex flex-col lg:flex-row lg:items-center bg-primary-100"},Oe={class:"container lg:w-fit py-14 md:pl-12 md:pr-10"},Qe=["disabled"],rt={__name:"index",setup(d){const{meta:m,api:y}=R().public,{$store:n}=P(),p=k(K().query.filter||n.blog.articles.query),l=k({featured:!1,categories:!1,blogs:!1,subscribe:!1}),v=k({email:"",error:null}),c=U(()=>n.blog.featured[0]);W(p,()=>E()),D(),I(),n.blog.articles.data.length||E();async function D(){try{l.value.categories=!0,await n.blog.getBlogCategories()}finally{l.value.categories=!1}}async function I(){try{l.value.featured=!0,await n.blog.getFeaturedBlogs()}finally{l.value.featured=!1}}async function E(_=!1){const{data:s,current_page:C}=n.blog.articles;try{l.value.blogs=!0;const b=_?C+1:1,f=await $fetch(`${y.database}/blog?${p.value?`category=${p.value}`:""}&status=true&page=${b}&sortby=desc`);n.blog.setArticles({data:_?[...s,...f.blogs.data]:f.blogs.data,current_page:f.blogs.current_page,last_page:f.blogs.last_page,query:p.value})}finally{l.value.blogs=!1}}async function z(_){try{v.value.error=null,l.value.subscribe=!0,await $fetch(`${y.database}/subscribe`,{method:"post",body:{email:_.target.elements.email.value}})}catch(s){v.value.error=s.data?.message||s.message}finally{l.value.subscribe=!1}}return(_,s)=>{const C=O,b=ee,f=te,Y=le,F=oe,N=re,T=ae,Z=Q,j=se,q=pe,A=ne,G=he;return o(),r("div",null,[i(C,null,{default:$(()=>[...s[1]||(s[1]=[u("Blog",-1)])]),_:1}),t(c)?(o(),r("div",ve,[e("div",xe,[e("div",we,[t(l).featured?(o(),r("div",Ee)):(o(),r("h5",Ce,"Featured"))]),e("div",ke,[t(l).featured?(o(),r("div",$e,[s[3]||(s[3]=e("div",{class:"w-full aspect-video md:aspect-auto md:h-80 bg-[#E6E6E6] mb-8 rounded-lg"},null,-1)),s[4]||(s[4]=e("div",{class:"bg-[#E6E6E6] w-11/12 py-2.5 rounded-xl mb-1.5"},null,-1)),s[5]||(s[5]=e("div",{class:"bg-[#E6E6E6] w-11/12 py-2.5 rounded-xl mb-6"},null,-1)),s[6]||(s[6]=e("div",{class:"bg-[#E6E6E6] w-60 py-2 rounded-xl"},null,-1)),e("div",He,[s[2]||(s[2]=e("span",{class:"bg-[#E6E6E6] py-2 rounded-xl mr-2 w-28"},null,-1)),i(b,{color:"#E6E6E6",size:12})])])):(o(),H(f,{key:1,"clamp-title":!1,image:{alt:t(c).title,src:t(c).thumbnail,class:"max-w-[599px] max-h-[599px]"},url:`/blog/${t(c).slug}`,"img-container-class":"w-full aspect-video md:aspect-auto",dark:"",class:"md:w-[55%] mb-14 md:mb-0 justify-center"},null,8,["image","url"])),e("div",{class:h(["flex-shrink-0 md:h-80 flex flex-col justify-center md:px-10 md:border-l",[t(l).featured?"border-[#
1E6E6E6]":"border-primary-100"]])},[e("div",Me,[t(l).featured?(o(),r("div",Be)):(o(),r("h5",Ve,"Follow us"))]),e("div",Le,[t(l).featured?(o(),r("div",Se,[...s[7]||(s[7]=[e("div",{class:"bg-[#E6E6E6] py-2 w-64 rounded-lg mb-2"},null,-1),e("div",{class:"bg-[#E6E6E6] py-2 w-64 rounded-lg"},null,-1)])])):(o(),r("p",De,[...s[8]||(s[8]=[u(" Get the latest news rates ",-1),e("br",null,null,-1),u(" and transfer ",-1)])]))]),e("div",Ie,[e("a",{href:t(m).social.twitter,target:"blank",class:h({"motion-safe:animate-pulse":t(l).featured})},[i(Y,{width:"17",height:"17",color:t(l).featured?"#E6E6E6":"var(--primary-100)"},null,8,["color"])],10,ze),e("a",{href:t(m).social.linkedin,target:"blank",class:h({"motion-safe:animate-pulse":t(l).featured})},[i(F,{width:"17",height:"17",color:t(l).featured?"#E6E6E6":"var(--primary-100)"},null,8,["color"])],10,Ye),e("a",{href:t(m).social.instagram,target:"blank",class:h({"motion-safe:animate-pulse":t(l).featured})},[i(N,{width:"17",height:"17",color:t(l).featured?"#E6E6E6":"var(--primary-100)"},null,8,["color"])],10,Fe),e("a",{href:t(m).social.facebook,target:"blank",class:h({"motion-safe:animate-pulse":t(l).featured})},[i(T,{width:"17",height:"17",color:t(l).featured?"#E6E6E6":"var(--primary-100)"},null,8,["color"])],10,Ne)])],2)]),e("div",null,[e("h1",Te,g(t(c).title),1),e("p",Ze,g(t(c).author)+" ⢠"+g(t(L)(t(c).publish).format("MMMM DD, YYYY")),1)]),i(Z,{to:`/blog/${t(c).slug}`,role:"button",class:"border-b pl-0 pr-1 mt-6 animates rounded-none text-primary-100"},{default:$(()=>[s[9]||(s[9]=u(" Read the story ",-1)),i(b,{class:"ml-2 animates-this to-right"})]),_:1},8,["to"])])])):M("",!0),e("section",je,[e("div",qe,[e("ul",Ae,[t(l).categories?(o(),r(x,{key:0},w(3,a=>e("div",{key:a,class:"bg-[#E6E6E6] py-4 px-9 rounded-md"})),64)):(o(!0),r(x,{key:1},w(t(n).blog.categories,a=>(o(),r("li",{key:a.slug},[e("button",{"data-active":a.slug===t(p),class:"chip !no-underline inline-block font-normal text-primary-100",onClick:Xe=>p.value=a.slug},g(a.title),9,Ge)]))),128))]),e("div",Re,[t(l).blogs?(o(),r(x,{key:0},w(6,a=>i(j,{key:a})),64)):t(n).blog.articles.data.length?M("",!0):(o(),H(A,{key:1,text:"We are yet to create a blog post, it will appear here when we do",class:"py-12 col-span-full"},{icon:$(()=>[i(q)]),_:1})),(o(!0),r(x,null,w(t(n).blog.articles.data,a=>(o(),H(f,X({key:a.slug},{ref_for:!0},{title:a.title,author:a.author,url:`/blog/${a.slug}`,image:{alt:a.title,src:a.thumbnail},readTime:parseInt(a.read_time),published:t(L)(a.publish).format("MMMM DD, YYYY")}),null,16))),128))]),B(e("div",Pe,[e("button",{disabled:t(l).blogs,variant:"blue-invert",class:"border-b text-normal rounded-none animates",onClick:s[0]||(s[0]=a=>E(!0))},[u(g(t(l).blogs?"Loading...":"Load more")+" ",1),i(G,{size:10,color:"var(--primary-100)",class:"ml-3 animates-this to-bottom"})],8,Ke)],512),[[V,t(n).blog.articles.current_page<t(n).blog.articles.last_page]])])]),e("section",Ue,[e("div",We,[e("div",Je,[s[13]||(s[13]=e("picture",null,[e("source",{media:"(min-width: 768px)",srcset:ye}),e("img",{src:S,alt:"",class:"object-cover w-full md:aspect-video lg:max-w-xl"})],-1)),e("div",Oe,[s[11]||(s[11]=e("h5",{class:"text-white font-medium mb-2"}," Sign up for our newsletter ",-1)),s[12]||(s[12]=e("p",{class:"text-white mb-10"},[u(" Enter your email to receive the latest news, updates and "),e("br",{class:"hidden md:inline"}),u(" announcements from Kyshi Clan! ")],-1)),B(e("p",{class:"text-error mb-1"},g(t(v).error),513),[[V,t(v).error]]),e("form",{class:"flex flex-col md:flex-row gap-x-6 gap-y-3",onSubmit:J(z,["prevent"])},[s[10]||(s[10]=e("input",{name:"email",type:"text",class:"flex-grow placeholder-primary-100 bg-primary-200 text-primary-100 py-3 px-6 w-fit md:w-auto rounded-r-md md:rounded-l-lg md:rounded-r-none text-center",variant:"",placeholder:"Enter your email address"},null,-1)),e("button",{disabled:t(l).subscribe,class:"w-fit border-b text-primary-200 rounded-none animates"},[u(g(t(l).subscribe?"Subscribing...":"Subscribe")+" ",1),i(b,{class:"ml-3 animates-this to-right",color:"#c2f232"})],8,Qe)],32)])])])])])}}};export{rt 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.