import{d as f,p as _,G as o,A as p,w as u,W as c,k as b,c as g,o as h,a as v,b as s,j as k,u as l,m as w,L as E,F as P}from"./app-BidmlC59.js";import{u as m}from"./useToastify-Bhe2cyz3.js";import{u as d}from"./useHexToRgb-Crf73LpK.js";/* empty css            */const x=["href"],F=["content"],M={class:"page-wrapper"},j={class:"page-content auth-page-content"},V=f({__name:"AuthLayout",setup(B){const n=_(o().props.dark);typeof window<"u"&&$(()=>{let e={attributes:!0,attributeFilter:["id"]},t=function(y,O){for(let i of y)i.type==="attributes"&&i.attributeName==="id"&&(document.body.id=="dark"?n.value=!0:n.value=!1)};new MutationObserver(t).observe(document.body,e)});const r=p(()=>o().props.errors);u(r,e=>{for(let t in e)m(e[t],"fail",4e3);r.value!=null&&Object.keys(r.value).length>0&&c.reload({only:["errors"]})});const a=p(()=>typeof o().props.flash<"u"?o().props.flash.message:[]);return u(a,e=>{for(let t in e)m(e[t],"success",4e3);a.value!=null&&Object.keys(a.value).length>0&&c.reload({only:["flash"]})}),b(()=>{if(o().props.template!=null){const e=o().props.template.get_options;document.documentElement.style.setProperty("--main-background",e.style.site_background_color),document.documentElement.style.setProperty("--primary",e.style.site_main_color),document.documentElement.style.setProperty("--primary-rgb",d(e.style.site_main_color)),document.documentElement.style.setProperty("--secondary",o().props.template.get_options.style.site_secondary_color),document.documentElement.style.setProperty("--secondary-rgb",d(o().props.template.get_options.style.site_secondary_color)),document.documentElement.style.setProperty("--shadow-1",e.style.site_main_shadow)}}),(e,t)=>(h(),g(P,null,[v(l(w),null,{default:k(()=>[s("link",{rel:"icon",type:"image/x-icon",href:e.$page.props.appFavicon},null,8,x),s("meta",{name:"theme-color",content:n.value?"#262631":l(o)().props.template!=null?l(o)().props.template.get_options.style.site_main_color:"#1c1c25"},null,8,F),t[0]||(t[0]=s("meta",{name:"robots",content:"noindex,nofollow"},null,-1)),t[1]||(t[1]=s("meta",{name:"googlebot",content:"noindex"},null,-1))]),_:1}),s("div",M,[s("div",j,[E(e.$slots,"default")])])],64))}});export{V as _};
