import{r as t,c,h as s}from"./p-bf76c688.js";const a=class{constructor(s){t(this,s),this.updateAccounts=c(this,"updateAccounts",7),this.selected={}}componentWillLoad(){this.accountsChanged()}accountsChanged(){this.accountsFiltered||(this.accountsFiltered=this.accounts)}handleFilterChanged(t){this.accountsFiltered=t.detail,t.stopPropagation()}handleSelectedChanged(t){this.selected=t.detail}onCreate(t){this.updateAccounts.emit(t.detail)}render(){return[s("payfunc-filter",{filter:this.filter,value:this.accounts}),s("payfunc-accounts-actions",{whitelist:this.whitelist,selected:this.selected}),s("payfunc-accounts-table",{accounts:this.accountsFiltered,orders:this.orders,selected:this.selected,whitelist:this.whitelist}),s("payfunc-account-create-popup",{hidden:!0,onCreate:t=>this.onCreate(t)}),s("payfunc-accounts-footer",{accounts:this.accountsFiltered})]}static get watchers(){return{accounts:["accountsChanged"]}}};a.style=".sc-payfunc-accounts-h{display:block;width:100%;max-width:90em;margin:auto}payfunc-account-create-popup.sc-payfunc-accounts{bottom:3.5em;margin-right:2.5em}";export{a as payfunc_accounts}