1importScripts("https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"),importScripts("https://www.gstatic.com/firebasejs/8.10.0/firebase-messaging.js"),firebase.initializeApp({apiKey:"AIzaSyCjZ0O82EuU4RViBxhCRDI3EciQbjLE36s",authDomain:"employee-link-dev.firebaseapp.com",databaseURL:"https://employee-link-dev.firebaseio.com",projectId:"employee-link-dev",storageBucket:"employee-link-dev.appspot.com",messagingSenderId:"637922759177",appId:"1:637922759177:web:09c57a870812d623315ed8"});const FCM_MSG="FCM_MSG",MessageType={PUSH_RECEIVED:"push-received",NOTIFICATION_CLICKED:"notification-clicked"};function sleep(e){return new Promise(i=>{setTimeout(i,e)})}function claimClients(){return self.clients.claim()}function getClientList(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function getWindowClient(e,i){for(const t of e){const e=new URL(t.url,self.location.href);if(i.host===e.host)return t}return null}function getLink(e){var i,t,n;return(null!==(t=null===(i=e.fcmOptions)||void 0===i?void 0:i.link)&&void 0!==t?t:null===(n=e.notification)||void 0===n?void 0:n.click_action)||null}function interalizePayload(e){let i,t;return(null===(i=null===(t=e.notification)||void 0===t?void 0:t.data)||void 0===i?void 0:i[FCM_MSG])||null}self.addEventListener("notificationclick",e=>{e.waitUntil(getClientList().then(i=>{const t=interalizePayload(e);if(!t)return;const n=getLink(t);if(!n)return;const s=getWindowClient(i,new URL(n));return s?sleep(500).then(()=>{t.messageType=MessageType.PUSH_RECEIVED,s.postMessage(t)}):void 0}))});const initMessaging=async function(){await firebase.messaging.isSupported()&&firebase.messaging()};initMessaging();
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.