"use strict";var i=require("./tauri-d45d58c1.js");function t(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return"default"===window.Notification.permission?[3,2]:[4,Promise.resolve("granted"===window.Notification.permission)];case 1:return[2,t.sent()];case 2:return[4,i.promisified({cmd:"isNotificationPermissionGranted"})];case 3:return[2,t.sent()]}}))}))}function e(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(i){switch(i.label){case 0:return[4,window.Notification.requestPermission()];case 1:return[2,i.sent()]}}))}))}function n(i){"string"==typeof i?new window.Notification(i):new window.Notification(i.title,i)}var r=Object.freeze({__proto__:null,sendNotification:n,requestPermission:e,isPermissionGranted:t});exports.isPermissionGranted=t,exports.notification=r,exports.requestPermission=e,exports.sendNotification=n;
