const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["MkSigninDialog-DTpAU63e.js","MkSigninDialog.vue_vue_type_script_setup_true_lang-BMYOvPQu.js","MkSignin-M1x-8lQg.js","app-QjDgb7aF.js","vue-Cm77DuTi.js","charts-3gEHPHRq.js","media-DuCIZ-3n.js","app-CV_aoXZ3.css","2fa-C8X1mOPn.js","MkSignin-DSafcdnM.css","MkSignupDialog-CRS3nAbR.js","MkSignupDialog.vue_vue_type_script_setup_true_lang-DDpLylY6.js","MkCaptcha.vue_vue_type_script_setup_true_lang-BXhUIZsD.js","MkSignupDialog-D2x77DIs.css"])))=>i.map(i=>d[i]);
import{aA as V,b as s,M as B,aF as m,$ as D,d as I,f as h,bg as L,a as f,bh as A,at as P,l as v,A as $,_ as j}from"./app-QjDgb7aF.js";import{F as R}from"./suspense-jJyLIr98.js";import{b as O,E as d,j as l,p,k as n,i as g,q as a,J as S,D as U,u as q,F as G,G as J,a as k,d as b}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const W={class:"_formRoot"},z=["onClick"],H={class:"avatar"},K={class:"body"},Q={class:"name"},X={class:"acct"},Y=O({__name:"accounts",setup(Z){const c=k(null),i=k(null),x=async()=>{m().then(t=>(c.value=t.filter(e=>e.id!==D.id),console.log(c.value),I("users/show",{userIds:c.value.map(e=>e.id)}))).then(t=>{i.value=t,console.log(i.value)})};function M(t,e){h([{text:s.ts.switch,icon:"ph-swap ph-bold ph-lg",action:()=>T(t)},{text:s.ts.remove,icon:"ph-trash ph-bold ph-lg",danger:!0,action:()=>y(t)}],e.currentTarget??e.target)}function w(t){h([{text:s.ts.existingAccount,action:()=>{C()}},{text:s.ts.createAccount,action:()=>{E()}}],t.currentTarget??t.target)}function y(t){L(t.id)}function C(){f(b(()=>v(()=>import("./MkSigninDialog-DTpAU63e.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),{},{done:t=>{A(t.id,t.i),P()}},"closed")}function E(){f(b(()=>v(()=>import("./MkSignupDialog-CRS3nAbR.js"),__vite__mapDeps([10,11,4,5,3,6,7,12,13]))),{},{done:t=>{A(t.id,t.i),_(t.i)}},"closed")}async function T(t){const r=(await m()).find(u=>u.id===t.id).token;_(r)}function _(t){$(t)}return V({title:s.ts.accounts,icon:"ph-users ph-bold ph-lg"}),(t,e)=>{const r=d("MkAvatar"),u=d("MkUserName"),F=d("MkAcct");return l(),p("div",W,[n(R,{p:x},{default:g(()=>[n(B,{primary:"",onClick:w},{default:g(()=>[e[0]||(e[0]=a("i",{class:"ph-plus ph-bold ph-lg"},null,-1)),S(" "+U(q(s).ts.addAccount),1)]),_:1}),(l(!0),p(G,null,J(i.value,o=>(l(),p("button",{key:o.id,class:"_panel _button lcjjdxlm",onClick:N=>M(o,N)},[a("div",H,[n(r,{user:o,class:"avatar",disableLink:""},null,8,["user"])]),a("div",K,[a("div",Q,[n(u,{user:o},null,8,["user"])]),a("div",X,[n(F,{user:o},null,8,["user"])])])],8,z))),128))]),_:1})])}}}),at=j(Y,[["__scopeId","data-v-fd0773ea"]]);export{at as default};
//# sourceMappingURL=accounts-D4VIArG8.js.map
