import{c as m,D as b,d as h}from"./index-96Zm5C3V.js";import{d as _,c as r,o as g,y as c,a6 as x,A as e,J as w,F as y,u as L,K as l,S as u,B as v}from"./vendor-vue-CcL5gLKJ.js";function k(d,a={}){const t=d.trim();if(!t)return"";if(a.allowRelative&&t.startsWith("/")&&!t.startsWith("//")||a.allowDataUrl&&t.startsWith("data:image/"))return t;if(!t.match(/^https?:\/\//i))return"";try{const o=new URL(t),i=o.protocol.toLowerCase();return i!=="http:"&&i!=="https:"?"":o.toString()}catch{return""}}const S={class:"relative flex min-h-screen items-center justify-center overflow-hidden p-4"},A={class:"relative z-10 w-full max-w-md"},D={class:"mb-8 text-center"},U={class:"mb-4 inline-flex h-16 w-16 items-center justify-center overflow-hidden rounded-2xl shadow-lg shadow-primary-500/30"},N=["src"],B={class:"text-gradient mb-2 text-3xl font-bold"},F={class:"text-sm text-gray-500 dark:text-dark-400"},R={class:"card-glass rounded-2xl p-8 shadow-glass"},j={class:"mt-6 text-center text-sm"},z={class:"mt-8 text-center text-xs text-gray-400 dark:text-dark-500"},C=_({__name:"AuthLayout",setup(d){const a=m(),t=r(()=>a.siteName||"Sub2API"),o=r(()=>k(a.siteLogo||"",{allowRelative:!0,allowDataUrl:!0})),i=r(()=>{var s;return((s=a.cachedPublicSettings)==null?void 0:s.site_subtitle)||"The most stable and fastest third-party LLM provider for production use"}),p=r(()=>a.publicSettingsLoaded),f=r(()=>new Date().getFullYear());return g(()=>{a.fetchPublicSettings()}),(s,n)=>(v(),c("div",S,[n[0]||(n[0]=x('<div class="absolute inset-0 bg-gradient-to-br from-gray-50 via-primary-50/30 to-gray-100 dark:from-dark-950 dark:via-dark-900 dark:to-dark-950" data-v-fe6333b6></div><div class="pointer-events-none absolute inset-0 overflow-hidden" data-v-fe6333b6><div class="absolute -right-40 -top-40 h-80 w-80 rounded-full bg-primary-400/20 blur-3xl" data-v-fe6333b6></div><div class="absolute -bottom-40 -left-40 h-80 w-80 rounded-full bg-primary-500/15 blur-3xl" data-v-fe6333b6></div><div class="absolute left-1/2 top-1/2 h-96 w-96 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-300/10 blur-3xl" data-v-fe6333b6></div><div class="absolute inset-0 bg-[linear-gradient(rgba(20,184,166,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(20,184,166,0.03)_1px,transparent_1px)] bg-[size:64px_64px]" data-v-fe6333b6></div></div>',2)),e("div",A,[e("div",D,[p.value?(v(),c(y,{key:0},[e("div",U,[e("img",{src:o.value||L(b),alt:"Logo",class:"h-full w-full object-contain"},null,8,N)]),e("h1",B,l(t.value),1),e("p",F,l(i.value),1)],64)):w("",!0)]),e("div",R,[u(s.$slots,"default",{},void 0,!0)]),e("div",j,[u(s.$slots,"footer",{},void 0,!0)]),e("div",z," © "+l(f.value)+" "+l(t.value)+". All rights reserved. ",1)])]))}}),P=h(C,[["__scopeId","data-v-fe6333b6"]]);export{P as A};
