import{_ as i,a as t,p as n}from"./tauri-ecac0ad6.js";function e(){return i(this,void 0,void 0,(function(){return t(this,(function(i){switch(i.label){case 0:return"default"===window.Notification.permission?[3,2]:[4,Promise.resolve("granted"===window.Notification.permission)];case 1:return[2,i.sent()];case 2:return[4,n({cmd:"isNotificationPermissionGranted"})];case 3:return[2,i.sent()]}}))}))}function o(){return i(this,void 0,void 0,(function(){return t(this,(function(i){switch(i.label){case 0:return[4,window.Notification.requestPermission()];case 1:return[2,i.sent()]}}))}))}function s(i){"string"==typeof i?new window.Notification(i):new window.Notification(i.title,i)}var r=Object.freeze({__proto__:null,sendNotification:s,requestPermission:o,isPermissionGranted:e});export{e as i,r as n,o as r,s};
