PageSourceSearch

https://polynion.edu.pl/_nuxt/CIWO8w_2.js

js polynion.edu.pl collected 2026-10-04 00:49:25 UTC 2,653 bytes, 1 lines download raw bytes

1import{d as T,u as z,c as R,F as I,E as N,a as S,a6 as U,o as $,R as A,g as i,m as r,w as g,q as P,B as f,a7 as q,i as n,j as D,A as V,k as e,z as F,t as c,p as j,n as _,_ as M,s as W}from"./BrZplLHz.js";const E={class:"py-8 text-center space-y-4"},H={class:"mx-auto w-16 h-16 rounded-2xl bg-gradient-to-br from-emerald-100 to-emerald-50 dark:from-emerald-900/30 dark:to-emerald-800/20 border border-emerald-200/50 dark:border-emerald-700/30 flex items-center justify-center"},L={class:"space-y-1"},G={class:"text-2xl font-bold text-gray-900 dark:text-gray-100"},J={class:"text-gray-500 dark:text-gray-400"},K=20,O=250,Z=T({__name:"authenticating",setup(Q){const{t}=z();R({title:t("auth.authenticating.seoTitle","Authenticating - Polynion"),meta:[{name:"description",content:t("auth.authenticating.seoDescription","Finalizing your sign in session.")},{name:"robots",content:"noindex, nofollow"}]});const u=I(),l=N(),p=S(),{loggedIn:y,fetch:w}=U(),s=f(!0),d=f(0);let h=!1;function m(){const a=q(l.query.redirect,"/");return a==="/auth/signin"||a==="/auth/authenticating"?"/":a}function x(){return l.query.welcome==="1"}async function k(){if(await w(),!y.value)return!1;try{const a=await $fetch("/api/auth/session",{retry:0,headers:{"Cache-Control":"no-cache",Pragma:"no-cache"}});return!a.loggedIn||!a.user?.id?!1:(x()&&p.add({title:t("auth.authenticating.welcomeBack","Welcome back!"),color:"success"}),await u.replace(m()),!0)}catch{return!1}}return $(async()=>{for(;!h&&d.value<K;){if(await k())return;d.value+=1,await new Promise(o=>setTimeout(o,O))}s.value=!1}),A(()=>{h=!0}),(a,o)=>{const b=F,v=j,C=M,B=P;return i(),r(B,{class:"border-gray-200 dark:border-gray-700/50 shadow-xl shadow-gray-200/50 dark:shadow-none overflow-hidden"},{default:g(()=>[n("div",E,[n("div",H,[D(b,{name:"i-heroicons-arrow-path",class:V(["w-8 h-8 text-emerald-600 dark:text-emerald-400",{"animate-spin":e(s)}])},null,8,["class"])]),n("div",L,[n("h1",G,c(e(t)("auth.authenticating.title","Authenticating...")),1),n("p",J,c(e(t)("auth.authenticating.subtitle","Finalizing your session. Please wait.")),1)]),e(s)?_("",!0):(i(),r(v,{key:0,color:"warning",variant:"soft",icon:"i-heroicons-exclamation-triangle",title:e(t)("auth.authenticating.sessionNotReadyTitle","Session not ready"),description:e(t)("auth.authenticating.sessionNotReadyDescription","Please sign in again.")},null,8,["title","description"])),e(s)?_("",!0):(i(),r(C,{key:1,color:"primary",size:"lg",onClick:o[0]||(o[0]=X=>e(u).replace({path:"/auth/signin",query:{redirect:m()}}))},{default:g(()=>[W(c(e(t)("auth.authenticating.backToSignIn","Back to Sign In")),1)]),_:1}))])]),_:1})}}});
1export{Z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.