2FAuth/public/build/assets/Accounts-Ma2P5PrK.js

7 lines
53 KiB
JavaScript
Raw Normal View History

2024-10-12 20:09:07 +02:00
import{a as Nt,e as te,f as E,g as C,h as y,F as ut,E as dt,m as O,p as R,n as W,t as x,i as p,U as $e,j as ze,I as hn,r as oe,J as tt,K as mn,y as gn,u as Qt,k as Ee,l as Y,L as vn,M as bn,N as _n,D as nt,O as Lt,P as ot,Q as yn,R as wn,b as En,S as Sn,T as Dn,c as kn,V as Cn,s as bt,x as Tn,o as On,H as _t,C as Oe,W as In,z as yt,X as An,w as wt,Y as Ge,A as Xt,Z as Mn}from"./app-SZK8VCXD.js";import{_ as $n,a as xn,b as Pn}from"./OtpDisplay-D0I30jj_.js";import{_ as Nn}from"./SearchBox-CVIMp336.js";import{u as Fn}from"./bus-B5bab611.js";import"./Spinner-YD_iyg7o.js";/*! 2FAuth version 5.3.1 - Copyright (c) 2024 Bubka - https://github.com/Bubka/2FAuth */const Rn={id:"groupSwitch",class:"container groups"},Bn={class:"columns is-centered"},Gn={class:"column is-one-third-tablet is-one-quarter-desktop is-one-quarter-widescreen is-one-quarter-fullhd"},Ln={class:"columns is-multiline"},Xn=["onClick"],Yn={class:"columns is-centered"},zn={class:"column has-text-centered"},Hn={__name:"GroupSwitch",props:{showGroupSwitch:Boolean,groups:Array},emits:["update:showGroupSwitch"],setup(o,{emit:e}){const n=Nt(),t=e;function i(r){n.preferences.activeGroup=r,n.preferences.rememberActiveGroup&&hn.updatePreference("activeGroup",r),t("update:showGroupSwitch",!1)}return(r,a)=>{const l=te("RouterLink"),u=te("ButtonBackCloseCancel"),s=te("VueFooter");return E(),C("div",Rn,[y("div",Bn,[y("div",Gn,[y("div",Ln,[(E(!0),C(ut,null,dt(o.groups,f=>(E(),C("div",{class:"column is-full",key:f.id},[O(p($e),null,{default:R(({mode:c})=>[y("button",{class:W(["button is-fullwidth",{"is-dark has-text-light is-outlined":c=="dark"}]),onClick:v=>i(f.id)},x(f.name),11,Xn)]),_:2},1024)]))),128))]),y("div",Yn,[y("div",zn,[O(l,{to:{name:"groups"}},{default:R(()=>[ze(x(r.$t("groups.manage_groups")),1)]),_:1})])])])]),O(s,{showButtons:!0},{default:R(()=>[O(u,{action:"close",useLinkTag:!1,onClosed:a[0]||(a[0]=f=>r.$emit("update:showGroupSwitch",!1))})]),_:1})])}}},qn={class:"container group-selector"},Un={class:"columns is-centered is-multiline"},Wn={class:"column is-full has-text-centered"},jn={class:"column is-one-third-tablet is-one-quarter-desktop is-one-quarter-widescreen is-one-quarter-fullhd"},Vn={class:"columns is-multiline"},Kn=["onClick"],Qn={key:0,class:"is-italic"},Zn={key:1},Jn={class:"columns is-centered"},eo={class:"column has-text-centered"},to={class:"control"},no={__name:"DestinationGroupSelector",props:{showDestinationGroupSelector:Boolean,selectedAccountsIds:Array,groups:Array},emits:["update:showDestinationGroupSelector","accounts-moved"],setup(o,{emit:e}){const n=o,t=oe(null),i=e;async function r(){t.value===0?await tt.withdraw(n.selectedAccountsIds):await mn.assign(n.selectedAccountsIds,t.value),i("accounts-moved")}return(a,l)=>{const u=te("RouterLink"),s=te("ButtonBackCloseCancel"),f=te("VueFooter");return E(),C("div",qn,[y("div",Un,[y("div",Wn,x(a.$t("groups.move_selected_to")),1),y("div",jn,[y("div",Vn,[(E(!0),C(ut,null,dt(o.groups,c=>(E(),C("div",{class:"column is-full",key:c.id},[O(p($e),null,{default:R(({mode:v})=>[y("button",{class:W(["button is-fullwidth",{"is-link":p(t)===c.id,"is-dark has-text-light is-outlined":v=="dark"}]),onClick:S=>t.value=c.id},[c.id===0?(E(),C("span",Qn,x(a.$t("groups.no_group")),1)):(E(),C("span",Zn,x(c.name),1))],10,Kn)]),_:2},1024)]))),128))]),y("div",Jn,[y("div",eo,[O(u,{to:{name:"groups"}},{default:R(()=>[ze(x(a.$t("groups.manage_groups")),1)]),_:1})])])])]),O(f,{showButtons:!0},{default:R(()=>[y("p",to,[y("button",{class:"button is-link is-rounded",onClick:r},x(a.$t("commons.move")),1)]),O(s,{action:"cancel",useLinkTag:!1,onCanceled:l[0]||(l[0]=c=>a.$emit("update:showDestinationGroupSelector",!1))})]),_:1})])}}},oo={class:"toolbar has-text-centered"},io={class:"columns"},ro={class:"column has-nowrap px-0"},ao={class:"has-text-grey mr-1"},so=["title"],lo=["title"],uo=["title"],co=["title"],fo={__name:"Toolbar",props:{selectedCount:Number},setup(o){return(e,n)=>{const t=te("FontAwesomeIcon");return E(),C("div",oo,[y("div",io,[y("div",ro,[y("span",ao,x(e.$t("commons.x_selected",{count:o.selectedCount})),1),y("bu
2024-05-29 15:29:30 +02:00
* Sortable 1.15.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
2024-09-27 00:21:52 +02:00
*/function Yt(o,e){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);e&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),n.push.apply(n,t)}return n}function me(o){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yt(Object(n),!0).forEach(function(t){So(o,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(n,t))})}return o}function it(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?it=function(e){return typeof e}:it=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(o)}function So(o,e,n){return e in o?Object.defineProperty(o,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[e]=n,o}function be(){return be=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(o[t]=n[t])}return o},be.apply(this,arguments)}function Do(o,e){if(o==null)return{};var n={},t=Object.keys(o),i,r;for(r=0;r<t.length;r++)i=t[r],!(e.indexOf(i)>=0)&&(n[i]=o[i]);return n}function ko(o,e){if(o==null)return{};var n=Do(o,e),t,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i<r.length;i++)t=r[i],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(o,t)&&(n[t]=o[t])}return n}var Co="1.15.2";function ve(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var _e=ve(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ve=ve(/Edge/i),zt=ve(/firefox/i),He=ve(/safari/i)&&!ve(/chrome/i)&&!ve(/android/i),Zt=ve(/iP(ad|od|hone)/i),Jt=ve(/chrome/i)&&ve(/android/i),en={capture:!1,passive:!1};function I(o,e,n){o.addEventListener(e,n,!_e&&en)}function T(o,e,n){o.removeEventListener(e,n,!_e&&en)}function ct(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function To(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function se(o,e,n,t){if(o){n=n||document;do{if(e!=null&&(e[0]===">"?o.parentNode===n&&ct(o,e):ct(o,e))||t&&o===n)return o;if(o===n)break}while(o=To(o))}return null}var Ht=/\s+/g;function J(o,e,n){if(o&&e)if(o.classList)o.classList[n?"add":"remove"](e);else{var t=(" "+o.className+" ").replace(Ht," ").replace(" "+e+" "," ");o.className=(t+(n?" "+e:"")).replace(Ht," ")}}function b(o,e,n){var t=o&&o.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(n=o.currentStyle),e===void 0?n:n[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=n+(typeof n=="string"?"":"px")}}function Re(o,e){var n="";if(typeof o=="string")n=o;else do{var t=b(o,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!e&&(o=o.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function tn(o,e,n){if(o){var t=o.getElementsByTagName(e),i=0,r=t.length;if(n)for(;i<r;i++)n(t[i],i);return t}return[]}function he(){var o=document.scrollingElement;return o||document.documentElement}function B(o,e,n,t,i){if(!(!o.getBoundingClientRect&&o!==window)){var r,a,l,u,s,f,c;if(o!==window&&o.parentNode&&o!==he()?(r=o.getBoundingClientRect(),a=r.top,l=r.left,u=r.bottom,s=r.right,f=r.height,c=r.width):(a=0,l=0,u=window.innerHeight,s=window.innerWidth,f=window.innerHeight,c=window.innerWidth),(e||n)&&o!==window&&(i=i||o.parentNode,!_e))do if(i&&i.getBoundingClientRect&&(b(i,"transform")!=="none"||n&&b(i,"position")!=="static")){var v=i.getBoundingClientRect();a-=v.top+parseInt(b(i,"border-top-width")),l-=v.left+parseInt(b(i,"border-left-width")),u=a+r.height,s=l+r.width;break}while(i=i.parentNode);if(t&&o!==window){var S=Re(i||o),D=S&&S.a,k