import{_ as M}from"./Bqak8VdM.js";import Q from"./BrcSGC9q.js";import{d as u,c as x,o as n,w as p,f as e,e as y,t as T,a as c,u as t,Y as R,s as l,E as P,b as Y,F as f,A as b,v as G,z as J,L as K,k as O,q as U}from"./m2W8DxR4.js";import{a as W,_ as X}from"./DzRK5nIs.js";import Z from"./Ce_cQdpG.js";import{_ as i}from"./CTby_rp-.js";import{u as tt,_ as et}from"./BjwMfbly.js";import{_ as ot}from"./CUZc3WDI.js";import{_ as st,a as nt}from"./CEyI8lcf.js";import"./D4cd7EFQ.js";import"./DT-hKSom.js";import"./CbxdrCRW.js";import"./_K6KS46d.js";import"./CYT-4scj.js";import"./56PacuBL.js";import"./f4OvDAmT.js";import"./DaqkdMVO.js";import"./DN4yyKL7.js";import"./Wxbikq7x.js";import"./BXVhohEk.js";import"./C8p6Bfm2.js";import"./ByXNX2C_.js";const rt=u({__name:"BLogHero",setup(g){const r=()=>{const o=document.getElementById("subscribe");o==null||o.scrollIntoView({behavior:"smooth"})};return(o,d)=>{const a=M,_=Q;return n(),x(_,{pages:[{name:o.$t("blogs")}],"video-url":"/videos/blog-hero.mp4"},{title:p(()=>[y("h1",null,T(o.$t("blogsHero.title")),1)]),button:p(()=>[e(a,{contnet:o.$t("blogsHero.button"),onClick:r},null,8,["contnet"])]),_:1},8,["pages"])}}}),at={class:"flex flex-col h-full bg-[#0B0F1A] rounded-xl border border-surface-border overflow-hidden shadow-md animate-pulse"},ct={class:"p-4 flex flex-col gap-3"},it={class:"mt-4"},lt=u({__name:"BlogCardSkeleton",setup(g){return(r,o)=>(n(),c("div",at,[e(t(i),{class:"w-full h-[200px] sm:h-[200px] md:h-[200px] lg:h-[216px] rounded-t-xl"}),y("div",ct,[e(t(i),{class:"w-24 h-4 rounded-full"}),e(t(i),{class:"w-[90%] h-6 rounded-md"}),e(t(i),{class:"w-[70%] h-6 rounded-md"}),e(t(i),{class:"w-[95%] h-4 rounded-md"}),e(t(i),{class:"w-[90%] h-4 rounded-md"}),e(t(i),{class:"w-[85%] h-4 rounded-md"}),y("div",it,[e(t(i),{class:"w-28 h-9 rounded-lg"})])])]))}}),dt={id:"blogs",class:"bg-gradient-odd py-section px-4"},_t={key:0,class:"container mx-auto grid grid-cols-1 gap-10 md:grid-cols-2 lg:grid-cols-3"},mt={key:1,class:"container mx-auto grid grid-cols-1 gap-10 md:grid-cols-2 lg:grid-cols-3"},pt={key:2,class:"container mx-auto flex items-center justify-center"},ut={key:3,class:"mt-8 flex items-center justify-center gap-2"},gt=u({__name:"BlogSection",setup(g){const r=R(),o=l(()=>Number(r.query.page)||1),d=tt(o),a=l(()=>d.data.value||{}),_=l(()=>d.status.value);return P(()=>r.query.page,()=>{const m=document.getElementById("blogs");m&&m.scrollIntoView({behavior:"smooth"})}),(m,ht)=>{var B,v,$,C,I,L,q,N,V,E,H;const A=W,w=Z,D=lt,F=et,j=ot,S=st,k=nt,h=G,z=X;return n(),c("section",dt,[e(A,{title:m.$t("blogs-main-section.title"),description:m.$t("blogs-main-section.description"),"custom-style":"!gap-1","title-heading":"h2"},null,8,["title","description"]),e(w),t(_)==="pending"?(n(),c("div",_t,[(n(),c(f,null,b(6,s=>e(D,{key:s})),64))])):t(d).data&&((v=(B=t(a))==null?void 0:B.data)==null?void 0:v.length)>0?(n(),c("div",mt,[(n(!0),c(f,null,b(($=t(a))==null?void 0:$.data,s=>(n(),x(F,{id:s.id,key:s.id,slug:s.slug,title:s.title,tag:s.tag,description:s.description,image:s.image},null,8,["id","slug","title","tag","description","image"]))),128))])):(n(),c("div",pt,[e(j)])),((I=(C=t(a))==null?void 0:C.meta)==null?void 0:I.last_page)>1?(n(),c("div",ut,[e(h,{class:"mx-2 cursor-pointer disabled:opacity-50",to:{query:t(o)>2?{page:String(t(o)-1)}:{}},"aria-disabled":t(o)===1},{default:p(()=>[e(S,{class:"hidden h-5 w-5 rtl:block"}),e(k,{class:"h-5 w-5 rtl:hidden"})]),_:1},8,["to","aria-disabled"]),(n(!0),c(f,null,b((q=(L=t(a))==null?void 0:L.meta)==null?void 0:q.last_page,s=>(n(),x(h,{key:s,class:K(["w-9 cursor-pointer !rounded-sm px-3 py-1 text-center",s===t(o)?"hover:bg-accent/90 border-surface-border ws-gradient-border border-1 bg-transparent shadow-xs":"text-primary underline-offset-4 hover:underline"]),to:{query:s===1?{}:{page:String(s)}}},{default:p(()=>[J(T(s),1)]),_:2},1032,["class","to"]))),128)),e(h,{class:"mx-2 cursor-pointer disabled:opacity-50",to:{query:t(o)<((V=(N=t(a))==null?void 0:N.meta)==null?void 0:V.last_page)?{page:String(t(o)+1)}:{page:String(t(o))}},"aria-disabled":t(o)===((H=(E=t(a))==null?void 0:E.meta)==null?void 0:H.last_page)},{default:p(()=>[e(k,{class:"hidden h-5 w-5 rtl:block"}),e(S,{class:"h-5 w-5 rtl:hidden"})]),_:1},8,["to","aria-disabled"])])):Y("",!0),e(w),e(z)])}}}),jt=u({__name:"index",setup(g){const{t:r}=O();return U({title:l(()=>r("blogSeo.title")),description:l(()=>r("blogSeo.description")),ogTitle:l(()=>r("blogSeo.ogTitle")),ogDescription:l(()=>r("blogSeo.ogDescription")),keywords:l(()=>r("blogSeo.keywords"))}),(o,d)=>{const a=rt,_=gt;return n(),c("main",null,[e(a),e(_)])}}});export{jt as default};
