1import{W as w}from"./WhiteContainer-w3yYkAfg.js";import{D as y}from"./Divider-C_9oaDr5.js";import{d as A,R as L,A as k,v as N,r as m,a as R,c as s,e as i,h as D,m as x,f as o,t as n,F as C,D as S,n as g,u as B,q as F,y as p,z as E}from"./index-Osyfy_wq.js";import{u as I}from"./useStoreFunctions-BrKWlKIi.js";import{_ as $}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./logo-sgl6Tjd3.js";import"./menu-DA6uyEdk.js";import"./ellipsis-green-Cb3Xi0GG.js";import"./policy-black-CmIZ9VtY.js";import"./project-list-black-CMTeeuSl.js";import"./project-list-green-Ch03X9HE.js";import"./welcome-messages-black-bOBY1diN.js";import"./icon-key-black-O6JwX5zL.js";import"./icon-pdf-setting-black-BPIR0SR_.js";import"./icon-pdf-setting-green-B4gMqHo1.js";const M="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%3e%3cg%20id='Group_16237'%20data-name='Group%2016237'%20transform='translate(-1090%20-464)'%3e%3crect%20id='Rectangle_3472'%20data-name='Rectangle%203472'%20width='20'%20height='20'%20transform='translate(1090%20484)%20rotate(-90)'%20fill='none'/%3e%3cpath%20id='Path_147'%20data-name='Path%20147'%20d='M0,5,5,0l5,5'%20transform='translate(1103%20469)%20rotate(90)'%20fill='none'%20stroke='%23242424'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1.5'/%3e%3c/g%3e%3c/svg%3e",V={class:"login-account"},W={class:"container-list-account"},b={class:"title mb-16"},G={class:"description mb-16"},P={class:"list-account"},j={class:"item-row"},q={class:"item-account"},z=["onClick"],T={class:"text-tag"},H={class:"account-text mr-8"},J={class:"account-text"},K={key:0,class:"green-tag"},O=["src"],Q=A({__name:"LoginAccount",setup(U){const{loginAccount:_,getListAccountLogin:h}=L.getRepository(k).withRouter(N()),{showError:u}=I(),r=m([]),l=m(!1);async function f(){try{const t=await h();if(!t)return;const a=t.data.map(e=>({prefectureName:e.prefectureName??"",cityName:e.cityName??"",value:e.id}));t.pagination.accountId?(l.value=!0,a.forEach((e,c)=>{if(e.value==t.pagination.accountId){const d=a.splice(c,1)[0];a.unshift(d)}})):l.value=!1,r.value=a}catch(t){u(p(t))}}async function v(t){const a=new FormData;a.append("accountId",t);try{await _(a),E.getLocalStorage().add("login_account_success",!0)}catch(e){u(p(e))}}return R(async()=>{await f()}),(t,a)=>(s(),i("div",V,[D(w,null,{content:x(()=>[o("div",W,[o("p",b,n(t.$t("login.loginAccountTitle")),1),o("p",G,n(t.$t("login.loginAccountDes")),1),o("div",P,[(s(!0),i(C,null,S(r.value,(e,c)=>(s(),i("div",j,[o("div",q,[o("div",{class:"account",onClick:d=>v(e.value)},[o("div",T,[o("p",H,n(e.prefectureName),1),o("p",J,n(e.cityName),1),l.value&&c==0?(s(),i("span",K,n(t.$t("login.lastLogin")),1)):g("",!0)]),o("img",{src:B(M),class:"icon-right"},null,8,O)],8,z)]),c<r.value.length-1?(s(),F(y,{key:0,class:"divider"})):g("",!0)]))),256))])])]),_:1})]))}}),mt=$(Q,[["__scopeId","data-v-501ed5ca"]]);export{mt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.