1import{$ as u,A as m,D as _,Mt as k,N as y,R as A,T as f,Tt as j,Vt as t,Yt as C,_ as D,j as r,pn as s,rt as M,vt as a,w as e}from"./vue.runtime.esm-bundler-CjpbemCW.js";import{n as L,r as T,t as x}from"./jwt-C1g7L4pz.js";import{B as S}from"./index.js";import{n as w,r as B}from"./alert-VqrAprss.js";import{a as E,i as F,n as N,o as b,t as V}from"./card-CTrnnpXR.js";import{t as I}from"./administrate-account-api-DORisbvf.js";A();j(),C();var O={class:"table-striped table"},$={class:"boxed"},v=y({__name:"AccountMessages",props:{account:{}},setup(l){const n=l,g=new I(x,T,L),{t:i}=S(),c=k();async function h(){if(!n.account.key)return;const d=await g.getEmailsSentToAccount(n.account.key);d.data&&(c.value=d.data)}return h(),(d,H)=>(u(),f(t(b),null,{default:a(()=>[r(t(N),null,{default:a(()=>[r(t(V),null,{default:a(()=>[m(s(t(i)("messages")),1)]),_:1}),r(t(F),null,{default:a(()=>[m(s(t(i)("account-list-of-emails-sent-info"))+" ",1),e("b",null,s(l.account.email),1)]),_:1})]),_:1}),r(t(E),null,{default:a(()=>[c.value&&c.value.length>0?(u(),f(t(b),{key:0},{default:a(()=>[e("table",O,[e("thead",null,[e("tr",$,[e("th",null,s(t(i)("from")),1),e("th",null,s(t(i)("subject")),1),e("th",null,s(t(i)("date")),1)])]),e("tbody",null,[(u(!0),_(D,null,M(c.value,o=>(u(),_("tr",{key:o.id},[e("td",null,s(o.username),1),e("td",null,s(o.subject),1),e("td",null,s(o.logTime?d.$d(new Date(o.logTime),"long"):""),1)]))),128))])])]),_:1})):(u(),f(t(B),{key:1,variant:"informative"},{default:a(()=>[r(t(w),null,{default:a(()=>[m(s(t(i)("no-emails-sent",{email:l.account.email})),1)]),_:1})]),_:1}))]),_:1})]),_:1}))}});function p(l){const n=l;n.__i18n=n.__i18n||[],n.__i18n.push({locale:"",resource:{"nb-no":{messages:{t:0,b:{t:2,i:[{t:3}],s:"Meldinger"}},from:{t:0,b:{t:2,i:[{t:3}],s:"Fra"}},subject:{t:0,b:{t:2,i:[{t:3}],s:"Emne"}},date:{t:0,b:{t:2,i:[{t:3}],s:"Dato"}},"account-list-of-emails-sent-info":{t:0,b:{t:2,i:[{t:3}],s:"Liste over e-poster sendt til kontoen"}},"no-emails-sent":{t:0,b:{t:2,i:[{t:3,v:"Ingen e-post er hittil sendt til "},{t:4,k:"email"}]}}},"en-us":{messages:{t:0,b:{t:2,i:[{t:3}],s:"Messages"}},from:{t:0,b:{t:2,i:[{t:3}],s:"From"}},subject:{t:0,b:{t:2,i:[{t:3}],s:"Subject"}},date:{t:0,b:{t:2,i:[{t:3}],s:"Date"}},"account-list-of-emails-sent-info":{t:0,b:{t:2,i:[{t:3}],s:"List of emails sent to the account"}},"no-emails-sent":{t:0,b:{t:2,i:[{t:3,v:"No emails have been sent to "},{t:4,k:"email"},{t:3,v:" yet"}]}}},"sv-se":{messages:{t:0,b:{t:2,i:[{t:3}],s:"Meddelanden"}},from:{t:0,b:{t:2,i:[{t:3}],s:"FrÃ¥n"}},subject:{t:0,b:{t:2,i:[{t:3}],s:"Ãmne"}},date:{t:0,b:{t:2,i:[{t:3}],s:"Datum"}},"account-list-of-emails-sent-info":{t:0,b:{t:2,i:[{t:3}],s:"Lista över e-post skickad till kontot"}},"no-emails-sent":{t:0,b:{t:2,i:[{t:3,v:"Ingen e-post har skickats till "},{t:4,k:"email"},{t:3,v:" än"}]}}},"fi-FI":{messages:{t:0,b:{t:2,i:[{t:3}],s:"Viestit"}},from:{t:0,b:{t:2,i:[{t:3}],s:"Lähettäjä"}},subject:{t:0,b:{t:2,i:[{t:3}],s:"Aihe"}},date:{t:0,b:{t:2,i:[{t:3}],s:"Päivämäärä"}},"account-list-of-emails-sent-info":{t:0,b:{t:2,i:[{t:3}],s:"Luettelo tilille lähetetyistä sähköposteista"}},"no-emails-sent":{t:0,b:{t:2,i:[{t:3,v:"Sähköposteja ei ole vielä lähetetty osoitteeseen "},{t:4,k:"email"}]}}}}})}typeof p=="function"&&p(v);var G=v;export{G 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.