2024-02-23 15:31:08 +01:00
|
|
|
import{a as Ft,e as Q,f as w,g as k,h as v,F as ut,G as dt,m as I,p as B,n as H,t as x,i as p,U as Me,j as ze,J as hn,r as te,K as nt,L as mn,o as Bt,s as gn,k as ve,z as vn,u as Zt,l as Y,M as bn,N as _n,O as yn,P as We,E as ot,Q as wn,b as Sn,R as En,S as Dn,c as kn,T as Cn,x as bt,v as Tn,I as _t,D as Ie,V as In,A as yt,W as On,w as wt,X as Ge,B as Yt,Y as $n}from"./app-06176200.js";import{_ as An,a as Mn,b as xn}from"./OtpDisplay-6b6605f3.js";import{u as Pn}from"./bus-01c5df37.js";import"./Spinner-1a29b2e3.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=Q("RouterLink"),l=Q("ButtonBackCloseCancel"),u=Q("VueFooter");return w(),k("div",Nn,[v("div",Fn,[v("div",Bn,[v("div",Rn,[(w(!0),k(ut,null,dt(t.groups,a=>(w(),k("div",{class:"column is-full",key:a.id},[I(p(Me),null,{default:B(({mode:c})=>[v("button",{class:H(["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))]),v("div",Ln,[v("div",Xn,[I(s,{to:{name:"groups"}},{default:B(()=>[ze(x(i.$t("groups.manage_groups")),1)]),_:1})])])])]),I(u,{showButtons:!0},{default:B(()=>[I(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"},Un={class:"column is-full has-text-centered"},qn={class:"column is-one-third-tablet is-one-quarter-desktop is-one-quarter-widescreen is-one-quarter-fullhd"},Hn={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=te(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=Q("RouterLink"),u=Q("ButtonBackCloseCancel"),a=Q("VueFooter");return w(),k("div",zn,[v("div",Wn,[v("div",Un,x(r.$t("groups.move_selected_to")),1),v("div",qn,[v("div",Hn,[(w(!0),k(ut,null,dt(t.groups,c=>(w(),k("div",{class:"column is-full",key:c.id},[I(p(Me),null,{default:B(({mode:f})=>[v("button",{class:H(["button is-fullwidth",{"is-link":p(o)===c.id,"is-dark has-text-light is-outlined":f=="dark"}]),onClick:y=>o.value=c.id},[c.id===0?(w(),k("span",Vn,x(r.$t("groups.no_group")),1)):(w(),k("span",Kn,x(c.name),1))],10,jn)]),_:2},1024)]))),128))]),v("div",Qn,[v("div",Zn,[I(l,{to:{name:"groups"}},{default:B(()=>[ze(x(r.$t("groups.manage_groups")),1)]),_:1})])])])]),I(a,{showButtons:!0},{default:B(()=>[v("p",Jn,[v("button",{class:"button is-link is-rounded",onClick:i},x(r.$t("commons.move")),1)]),I(u,{action:"cancel",useLinkTag:!1,onCanceled:s[0]||(s[0]=c=>r.$emit("update:showDestinationGroupSelector",!1))})]),_:1})])}}},to={role:"search",class:"field"},no={class:"control has-icons-right"},oo=["aria-label","title","value"],io={class:"icon is-small is-right"},ro=["title"],so={__name:"SearchBox",props:{keyword:String},setup(t){const e=te(null);Bt(()=>{document.addEventListener("keydown",n)}),gn(()=>{document.removeEventListener("keydown",n)});function n(o){var i;o.key==="f"&&(o.ctrlKey||o.metaKey)&&(o.preventDefault(),(i=e.value)==null||i.focus())}return(o,i)=>{const r=Q("FontAwesomeIco
|
2024-02-23 15:31:08 +01:00
|
|
|
*/function zt(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?zt(Object(n),!0).forEach(function(o){Mo(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zt(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 Mo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _e(){return _e=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},_e.apply(this,arguments)}function xo(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 Po(t,e){if(t==null)return{};var n=xo(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 No="1.15.0";function be(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var ye=be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ke=be(/Edge/i),Wt=be(/firefox/i),Ue=be(/safari/i)&&!be(/chrome/i)&&!be(/android/i),Jt=be(/iP(ad|od|hone)/i),en=be(/chrome/i)&&be(/android/i),tn={capture:!1,passive:!1};function O(t,e,n){t.addEventListener(e,n,!ye&&tn)}function T(t,e,n){t.removeEventListener(e,n,!ye&&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 Fo(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=Fo(t))}return null}var Ut=/\s+/g;function ee(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(Ut," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(Ut," ")}}function b(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=b(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,!ye))do if(i&&i.getBoundingClientRect&&(b(i,"transform")!=="none"||n&&b(i,"position")!=="static")){var y=i.getBoundingClientRect();s-=y.top+parseInt(b(i,"border-top-width")),l-=y.left+parseInt(b(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,
|