1/*! For license information please see 5327.2cc25339.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[5327],{2861(e,t,n){n.d(t,{A:()=>a});const a=(0,n(77784).A)("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},59906(e,t,n){n.d(t,{A:()=>s});var a=n(65043);const s=()=>{const[e,t]=(0,a.useState)(null),[n,s]=(0,a.useState)(!1),[i,r]=(0,a.useState)(!1),[o,l]=(0,a.useState)(navigator.onLine),[d,c]=(0,a.useState)(!1),[p,u]=(0,a.useState)(null);(0,a.useEffect)(()=>{const e=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone||document.referrer.includes("android-app://");r(e);const n=e=>{e.preventDefault(),t(e),s(!0)},a=()=>{r(!0),s(!1),t(null)},i=()=>l(!0),o=()=>l(!1);return window.addEventListener("beforeinstallprompt",n),window.addEventListener("appinstalled",a),window.addEventListener("online",i),window.addEventListener("offline",o),"serviceWorker"in navigator&&(navigator.serviceWorker.ready.then(e=>{u(e),e.addEventListener("updatefound",()=>{const t=e.installing;t.addEventListener("statechange",()=>{"installed"===t.state&&navigator.serviceWorker.controller&&c(!0)})})}),navigator.serviceWorker.addEventListener("controllerchange",()=>{window.location.reload()})),()=>{window.removeEventListener("beforeinstallprompt",n),window.removeEventListener("appinstalled",a),window.removeEventListener("online",i),window.removeEventListener("offline",o)}},[]);return{isInstallable:n,isInstalled:i,isOnline:o,updateAvailable:d,installApp:(0,a.useCallback)(async()=>{if(!e)return!1;e.prompt();const{outcome:n}=await e.userChoice;return t(null),s(!1),"accepted"===n},[e]),applyUpdate:(0,a.useCallback)(()=>{p&&p.waiting&&p.waiting.postMessage({type:"SKIP_WAITING"})},[p]),checkForUpdates:(0,a.useCallback)(async()=>{p&&await p.update()},[p])}}},95327(e,t,n){n.r(t),n.d(t,{default:()=>r});var a=n(2861),s=n(59906),i=n(70579);const r=()=>{const{isOnline:e}=(0,s.A)();return e?null:(0,i.jsx)("div",{className:"fixed bottom-20 left-1/2 transform -translate-x-1/2 z-[100] animate-in slide-in-from-bottom-2 duration-300",children:(0,i.jsxs)("div",{className:"bg-amber-500/90 backdrop-blur-sm text-white px-4 py-2 rounded-full shadow-lg flex items-center gap-2",children:[(0,i.jsx)(a.A,{className:"w-4 h-4"}),(0,i.jsx)("span",{className:"text-sm font-medium",children:"You're offline"})]})})}}}]); 3//# sourceMappingURL=5327.2cc25339.chunk.js.map
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.