"use strict";var g=Object.create;var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var C=Object.getPrototypeOf;var S=Object.prototype.hasOwnProperty;var d=(e,t)=>i(e,"name",{value:t,configurable:true});var h=(e,t)=>{for(var s in t)i(e,s,{get:t[s],enumerable:true})};var o=(e,t,s,a)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let r of b(t))if(!S.call(e,r)&&r!==s)i(e,r,{get:()=>t[r],enumerable:!(a=c(t,r))||a.enumerable})}return e};var m=(e,t,s)=>(s=e!=null?g(C(e)):{},o(t||!e||!e.__esModule?i(s,"default",{value:e,enumerable:true}):s,e));var M=e=>o(i({},"__esModule",{value:true}),e);var l={};h(l,{default:()=>n});module.exports=M(l);var u=m(require("dbus-next"));class n extends u.interface.Interface{constructor(s){super("org.ferdium.Ferdium");this.dbus=s}emitMutedChanged(){n.emitPropertiesChanged(this,{Muted:this.dbus.muted},[])}get Muted(){return this.dbus.muted}set Muted(s){if(this.dbus.muted!==s){this.ToggleMute()}}ToggleMute(){this.dbus.trayIcon.mainWindow?.webContents.send("muteApp")}ToggleWindow(){this.dbus.trayIcon._toggleWindow()}ToggleToTalk(){this.dbus.trayIcon.mainWindow?.webContents.send("toggle-to-talk")}emitUnreadChanged(){n.emitPropertiesChanged(this,{UnreadDirectMessageCount:this.dbus.unreadDirectMessageCount,UnreadIndirectMessageCount:this.dbus.unreadIndirectMessageCount,UnreadServices:this.dbus.unreadServices},[])}get UnreadDirectMessageCount(){return this.dbus.unreadDirectMessageCount}get UnreadIndirectMessageCount(){return this.dbus.unreadIndirectMessageCount}get UnreadServices(){return this.dbus.unreadServices}}d(n,"Ferdium");n.configureMembers({methods:{ToggleMute:{inSignature:"",outSignature:""},ToggleWindow:{inSignature:"",outSignature:""},ToggleToTalk:{inSignature:"",outSignature:""}},properties:{Muted:{signature:"b",access:u.interface.ACCESS_READWRITE},UnreadDirectMessageCount:{signature:"u",access:u.interface.ACCESS_READ},UnreadIndirectMessageCount:{signature:"u",access:u.interface.ACCESS_READ},UnreadServices:{signature:"a(suu)",access:u.interface.ACCESS_READ}}});
