mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-04 14:22:00 +01:00
3 lines
1.5 KiB
JavaScript
3 lines
1.5 KiB
JavaScript
|
import{a as h,r as b,x as k,s as V,o as w,H as v,d as t,j as N,k as $,f as s,C as x,$ as B,l as C,m as a,e as n,t as u,i,g as M,p as q}from"./app-CzxRjCVM.js";/*! 2FAuth version 5.4.3 - Copyright (c) 2024 Bubka - https://github.com/Bubka/2FAuth */const R={key:0,class:"error-message"},D={key:1,class:"error-message"},E={key:0,class:"has-text-grey-lighter"},F={key:1,class:"has-text-grey-lighter"},H={key:2,class:"is-size-7 is-family-code"},j={__name:"Error",props:{closable:{type:Boolean,default:!0}},setup(c){const o=h(),m=q(),l=B(),d=b(!0),p=k(()=>!1),g=c;V(d,r=>{r==!1&&f()}),w(()=>{l.query.err&&(o.message=v("errors."+l.query.err))});function f(){window.history.length>1&&l.name!=="404"&&l.name!=="notFound"&&!l.query.err?m.go(-1):m.push({name:"accounts"})}return(r,e)=>{const y=C("modal");return a(),t("div",null,[N(y,{modelValue:s(d),"onUpdate:modelValue":e[0]||(e[0]=_=>x(d)?d.value=_:null),closable:g.closable},{default:$(()=>[r.$route.name=="404"||r.$route.name=="notFound"?(a(),t("div",R,[e[1]||(e[1]=n("p",{class:"error-404"},null,-1)),n("p",null,u(r.$t("errors.resource_not_found")),1)])):(a(),t("div",D,[e[3]||(e[3]=n("p",{class:"error-generic"},null,-1)),n("p",null,u(r.$t("errors.error_occured")),1),s(o).message?(a(),t("p",E,u(s(o).message),1)):i("",!0),s(o).originalMessage?(a(),t("p",F,u(s(o).originalMessage),1)):i("",!0),s(p)&&s(o).debug?(a(),t("p",H,[e[2]||(e[2]=n("br",null,null,-1)),M(u(s(o).debug),1)])):i("",!0)]))]),_:1},8,["modelValue","closable"])])}}};export{j as default};
|
||
|
//# sourceMappingURL=Error-7hWphpNC.js.map
|