import{ap as w,a6 as y,u,aq as g,ar as x,b as v,as as b,ab as k,g as C,O as $}from"./C70HEaGd.js";import{j as B,a4 as N,z as P,u as c,L as m,O as H,P as M,I as a,M as R,W as V}from"./DokyoHAC.js";const z={key:0,class:"container mx-auto space-y-2 py-4"},A={class:"w-full max-w-xl"},j=B({name:"HomePage",__name:"index",async setup(O){let n,l;const{$config:r}=C(),{activeCategory:d}=w(),{data:i,fetchBySlug:f,pending:p}=y("page"),t=u(),o=t.query,h=g({robots:(o==null?void 0:o.home)!==void 0?"noindex,follow":"index,follow",canonical:x(`${r.public.baseUrl}${t==null?void 0:t.path}`)});return v(h),[n,l]=N(()=>f("home",2)),await n,l(),P(()=>{const s=u();let e=b("home-redirect").value;!s.fullPath.startsWith("/?home")&&e?(s.fullPath.includes("?")&&(e=e+"?"+s.fullPath.split("?")[1]),location.href=`/c${e}`):d.value=void 0}),(s,_)=>{const e=$;return c(p)?(m(),H("div",z,[M("div",A,[a(e,{class:"mb-10 w-full","full-width":""})]),a(e,{type:"custom",class:"h-6 w-72"}),a(e,{type:"custom",class:"h-6 w-48"}),a(e,{type:"custom",class:"mb-10 h-6 w-72"}),a(e,{type:"custom",class:"h-40 w-full"})])):c(i)?(m(),R(k,{key:1,data:c(i)},null,8,["data"])):V("",!0)}}});export{j as default};