1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="359d5287-9502-5899-89c6-ef13525ec698")}catch(e){}}(); 3import{s as e}from"./jsx-runtime-D4ePz0Hl.js";import{t}from"./react-BXH-GOAS.js";var n=e(t(),1);function r({icon:e}={}){(0,n.useEffect)(()=>{if(typeof window>`u`||!e)return;let t=async()=>{if(`serviceWorker`in navigator)try{let t=await navigator.serviceWorker.getRegistration();t?.active&&t.active.postMessage({type:`update_icon`,payload:{icon:e}})}catch(e){console.error(`Error getting service worker registration:`,e)}},n=()=>{t()};return`serviceWorker`in navigator&&navigator.serviceWorker.addEventListener(`controllerchange`,n),t(),()=>{`serviceWorker`in navigator&&navigator.serviceWorker.removeEventListener(`controllerchange`,n)}},[e])}export{r as t}; 4//# sourceMappingURL=usePushNotification-e57ZaPMH.js.map 5//# debugId=359d5287-9502-5899-89c6-ef13525ec698
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.