import{_ as g}from"./BkZi-A8e.js";import{_ as h}from"./CAQNniay.js";import{_ as A}from"./BRE0h88b.js";import{d as L,m as R}from"./Cfh3kXIQ.js";import{u as k}from"./DiIdhs-Z.js";import{u as v}from"./BQKfvuZz.js";import{u as x}from"./Cjs1FLPk.js";import{u as C}from"./CzEXYf9D.js";import{l as P,a0 as n,z as w,E as e,P as B,u as s,F as r,N as E,U as m,K as N,L as U}from"./DEIzhR9A.js";import"./BruexLpw.js";import"./DpUJxqoL.js";import"./_ECBCnJP.js";import"./DdY_a9Gh.js";import"./BD6iv5wT.js";import"./C_YNEQWT.js";import"./AQgvJZua.js";import"./APZTHeFf.js";import"./DAoAjQ1Z.js";import"./BrvZKvXP.js";import"./CSqzEET8.js";import"./BNS08PCs.js";const $={class:"mb-16"},M="1",ro=P({name:"HomePage",__name:"index",async setup(S){let o,t;const{fetchBySlug:i}=k(),c=L(),p=R(),{isLoggedIn:_}=([o,t]=n(()=>v()),o=await o,t(),o),u=x(),{data:a}=([o,t]=n(()=>C("homepage-cms-content",()=>i(""))),o=await o,t(),o),l=()=>{c.query.login===M&&!_.value&&p.push({path:"signin"})};return w(()=>{l()}),(V,b)=>{const f=g,d=h,y=A;return e(),B("div",$,[s(u).isMobile?(e(),r(d,{key:0,ssr:""},{default:E(()=>[U(f)]),_:1})):m("",!0),(e(),r(N,null,[s(a)?(e(),r(y,{key:0,story:s(a)},null,8,["story"])):m("",!0)],1024))])}}});export{ro as default};