import{a as s}from"/build/_shared/chunk-SSZCMBQQ.js";import"/build/_shared/chunk-YRRE3DZB.js";import{a as E}from"/build/_shared/chunk-I5Q7WLJC.js";import{a as A,c as d,t as f}from"/build/_shared/chunk-WRTB4GZ2.js";import"/build/_shared/chunk-OW52VRSG.js";import{e as g}from"/build/_shared/chunk-FT6CVJYS.js";import"/build/_shared/chunk-O46BKFWV.js";import"/build/_shared/chunk-ZHPXAORZ.js";import"/build/_shared/chunk-SKVU7MMG.js";import{m as p,n as u}from"/build/_shared/chunk-5OH6P3GJ.js";import{a as l}from"/build/_shared/chunk-ZUBD5LGO.js";import{a as F}from"/build/_shared/chunk-ZXLMDTT4.js";import{d as a}from"/build/_shared/chunk-G5WX4PPA.js";var y=a(A(),1);var R=a(E(),1);var i=a(F(),1);var e=a(l(),1),S=()=>[{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"}],v=({data:o})=>{let t=o?.initial?.data?.seo||{};return[{title:t.title?t.title:""},{name:"description",content:t.description?t.description:""},{property:"og:title",content:t.ogTitle?t.ogTitle:""},{property:"og:description",content:t.ogDescription?t.ogDescription:""},{property:"og:image",content:t.image?f(t.image).url():""}]};function w(){let{initial:o,query:t,params:h}=p(),c=u(),[,m]=d(),{data:r,loading:x}=g(t,h,{initial:o}),[D,b]=(0,i.useState)({}),[T,k]=(0,i.useState)({});return(0,i.useEffect)(()=>{o?.data?.theme||r?.theme?m(()=>"dark"):m(()=>"light"),b(window.parent),k(window.self)},[r?.theme,o?.data?.theme]),x&&!r?(0,e.jsx)("div",{children:"Loading..."}):T!==D?r?.pageModules&&r?.pageModules.map(n=>(0,e.jsx)(s,{module:n,actionData:c},n._key)):o.data?.pageModules&&o.data?.pageModules.map(n=>(0,e.jsx)(s,{module:n,actionData:c},n._key))}function j(){return(0,e.jsxs)("section",{className:"flex flex-grow flex-col items-center justify-center ",children:[(0,e.jsx)("h1",{className:"text-center text-2xl",children:"Opps! 404"}),(0,e.jsx)("p",{className:"text-center",children:"This page doesn't exists!"})]})}export{j as ErrorBoundary,w as default,S as links,v as meta};