2FAuth/public/build/assets/Import-1adbb4d1.js

2 lines
14 KiB
JavaScript
Raw Normal View History

2024-03-03 22:50:28 +01:00
import{Z as ft,e as v,f as n,g as r,z as mt,m as a,l as f,h as t,i as l,n as C,V as Z,k as P,Q as pt,b as ht,a as _t,c as vt,r as k,d as O,I as p,v as D,x as gt,o as yt,K as kt,p as w,E as J,t as i,U as q,j as _,w as K,D as wt,F as W,G as Q,P as bt}from"./app-32c6ab3e.js";import{F as H}from"./Form-830ceef6.js";import{_ as $t}from"./OtpDisplay-d48e5cb6.js";import{S as Ct}from"./Spinner-fe378243.js";import{u as xt}from"./bus-c5fbcf1b.js";/*! 2FAuth version 5.0.4 - Copyright (c) 2023 Bubka - https://github.com/Bubka/2FAuth */const At=["for","innerHTML"],Ft=["disabled","id","value","placeholder","maxlength"],St=["innerHTML"],zt=Object.assign({inheritAttrs:!1},{__name:"FormTextarea",props:{modelValue:[String,Number,Boolean],label:{type:String,default:""},fieldName:{type:String,default:"",required:!0},fieldError:[String],placeholder:{type:String,default:""},help:{type:String,default:""},size:{type:String,default:""},hasOffset:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},maxLength:{type:Number,default:null},isIndented:Boolean},setup(d){const E=d,{inputId:m}=ft(E.inputType,E.fieldName);return(h,g)=>{const N=v("FontAwesomeIcon"),b=v("FieldError");return n(),r("div",{class:C(["mb-3",{"pt-3":d.hasOffset,"is-flex":d.isIndented}])},[d.isIndented?(n(),r("div",{key:0,class:"mx-2 pr-1",style:mt({opacity:d.isDisabled?"0.5":"1"})},[a(N,{class:"has-text-grey",icon:["fas","chevron-right"],transform:"rotate-135"})],4)):f("",!0),t("div",{class:C(["field",{"is-flex-grow-5":d.isIndented}])},[t("label",{for:l(m),class:"label",innerHTML:h.$t(d.label)},null,8,At),t("div",{class:C(["control",{"has-icons-left":h.leftIcon,"has-icons-right":h.rightIcon}])},[t("textarea",Z({disabled:d.isDisabled,id:l(m),class:["textarea",d.size],value:d.modelValue,placeholder:d.placeholder},h.$attrs,{onInput:g[0]||(g[0]=$=>h.$emit("update:modelValue",$.target.value)),onChange:g[1]||(g[1]=$=>h.$emit("change:modelValue",$.target.value)),maxlength:d.maxLength}),null,16,Ft)],2),d.fieldError!=null?(n(),P(b,{key:0,error:d.fieldError,field:d.fieldName},null,8,["error","field"])):f("",!0),d.help?(n(),r("p",{key:1,class:"help",innerHTML:h.$t(d.help)},null,8,St)):f("",!0)],2)],2)}}}),It={class:"title has-text-grey-dark"},Vt={key:0},Et={class:"block is-size-7-mobile"},Tt={class:"mb-2"},qt={class:"columns"},Nt={class:"column"},Bt={class:"block"},Lt={class:"card"},Mt={class:"card-content"},Ot={class:"media"},Dt={class:"media-left"},Ht={class:"image is-32x32"},Pt={class:"media-content"},Ut=["innerHTML"],Rt={class:"subtitle is-6 is-size-7-mobile"},jt={class:"card-footer"},Gt={class:"block"},Jt={class:"card"},Kt={class:"card-content"},Wt={class:"media"},Qt={class:"media-left"},Zt={class:"image is-32x32"},Xt={class:"media-content"},Yt={class:"title is-5 has-text-grey"},te={class:"subtitle is-6 is-size-7-mobile"},ee={class:"card-footer"},se={class:"block"},oe={class:"card"},ie={class:"card-content"},le={class:"media"},ne={class:"media-left"},ae={class:"image is-32x32"},re={class:"media-content"},ce=["innerHTML"],de={class:"subtitle is-6 is-size-7-mobile"},ue={class:"content"},fe={class:"card-footer"},me=["onClick"],pe={class:"title is-5 has-text-grey-dark"},he={class:"block is-size-7-mobile"},_e={class:"table is-size-7-mobile is-fullwidth"},ve=t("thead",null,[t("tr",null,[t("th"),t("th",null,"Plain text"),t("th",null,"QR code"),t("th",null,"JSON")])],-1),ge=t("th",null,"Google Authenticator",-1),ye=t("td",null,null,-1),ke=t("td",null,null,-1),we=t("th",null,"Aegis Auth",-1),be=t("td",null,null,-1),$e=t("th",null,"2FAS auth",-1),Ce=t("td",null,null,-1),xe=t("td",null,null,-1),Ae=t("th",null,"FreeOTP+",-1),Fe=t("td",null,null,-1),Se=t("td",null,null,-1),ze=t("th",null,"2FAuth",-1),Ie=t("td",null,null,-1),Ve=t("td",null,null,-1),Ee={key:1},Te={key:2},qe={class:"block is-size-7-mobile"},Ne={class:"mb-2"},Be={class:"is-flex is-justify-content-space-between"},Le=["onClick","title"],Me=["src","alt"],Oe={key:1,class:"is-flex-grow-1 has-ellipsis"},De={key:2,class:"tags is-flex-wrap-nowrap"},He=["onClick","title"],Pe=["onClick","title"],Ue={key:3,class:"has-nowrap"},Re={key:0,c