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

7 lines
53 KiB
JavaScript
Raw Normal View History

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