1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="5c1a2230-ce4a-4048-87a3-8b471c4e2c9e",e._sentryDebugIdIdentifier="sentry-dbid-5c1a2230-ce4a-4048-87a3-8b471c4e2c9e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5370],{55370:(e,i,t)=>{t.r(i),t.d(i,{FirebaseMessagingWeb:()=>o});var n=t(77805),r=t(40361);class o extends n.WebPlugin{constructor(){super(),(0,r.TT)().then(e=>{if(!e)return;let i=(0,r.dG)();(0,r.xD)(i,e=>this.handleNotificationReceived(e))})}async checkPermissions(){return await (0,r.TT)()?{receive:this.convertNotificationPermissionToPermissionState(Notification.permission)}:{receive:"denied"}}async requestPermissions(){if(!await (0,r.TT)())return{receive:"denied"};let e=await Notification.requestPermission();return{receive:this.convertNotificationPermissionToPermissionState(e)}}async isSupported(){return{isSupported:await (0,r.TT)()}}async getToken(e){let i=(0,r.dG)();return{token:await (0,r.gf)(i,{vapidKey:e.vapidKey,serviceWorkerRegistration:e.serviceWorkerRegistration})}}async deleteToken(){let e=(0,r.dG)();await (0,r.ni)(e)}async getDeliveredNotifications(){this.throwUnimplementedError()}async removeDeliveredNotifications(e){this.throwUnimplementedError()}async removeAllDeliveredNotifications(){this.throwUnimplementedError()}async subscribeToTopic(e){this.throwUnimplementedError()}async unsubscribeFromTopic(e){this.throwUnimplementedError()}async createChannel(e){this.throwUnimplementedError()}async deleteChannel(e){this.throwUnimplementedError()}async listChannels(){this.throwUnimplementedError()}handleNotificationReceived(e){let i=this.createNotificationResult(e);this.notifyListeners(o.notificationReceivedEvent,{notification:i})}createNotificationResult(e){var i,t,n;return{body:null==(i=e.notification)?void 0:i.body,data:e.data,id:e.messageId,image:null==(t=e.notification)?void 0:t.image,title:null==(n=e.notification)?void 0:n.title}}convertNotificationPermissionToPermissionState(e){let i="prompt";switch(e){case"granted":i="granted";break;case"denied":i="denied"}return i}throwUnimplementedError(){throw this.unimplemented("Not implemented on web.")}}o.notificationReceivedEvent="notificationReceived"}}]);
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.