PageSourceSearch

https://nmwyhwh.com/static/js/ErrorBoundary.C3pQgzeg.chunk.js

js nmwyhwh.com collected 2026-10-02 01:37:55 UTC 3,493 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime.DAXXjFlN.chunk.js";import{c as t}from"./vendor-charts.unFWSimy.chunk.js";import{t as n}from"./vendor-react.BASlk-Hb.chunk.js";import{r}from"./logger.CC8K8DOX.chunk.js";import{t as i}from"./Button.CsN3nrns.chunk.js";var a=e(t()),o=n(),s=[`ChunkLoadError`,`Loading chunk`,`Failed to fetch dynamically imported module`,`error loading dynamically imported module`,`Importing a module script failed`,`Unable to preload CSS`];function c(e){let t=String(e?.message||``),n=String(e?.name||``);return s.some(e=>n.includes(e)||t.includes(e))}var l=class extends a.Component{constructor(e){super(e),this.state={hasError:!1,error:null,isChunkError:!1,errorHint:``}}static getDerivedStateFromError(e){return{hasError:!0,error:e,isChunkError:c(e)}}componentDidCatch(e,t){r({type:`react.boundary`,message:e?.message,stack:e?.stack,source:void 0,lineno:void 0,colno:void 0,context:{componentStack:String(t?.componentStack||``).slice(0,1500)}});let n=String(t?.componentStack||``),i=this.state.isChunkError||c(e),a=``;if(n.toLowerCase().includes(`onboarding`)?a=`onboarding`:n.toLowerCase().includes(`dashboard`)&&(a=`dashboard`),this.setState({errorHint:a}),i&&typeof window<`u`&&window.sessionStorage){let e=`arkhevault_chunk_reload_attempts`,t=Number(window.sessionStorage.getItem(e)||`0`);if(t<2){window.sessionStorage.setItem(e,String(t+1));let n=()=>{let e=new URL(window.location.href);e.searchParams.set(`v`,String(Date.now())),window.location.replace(e.toString())};t===0?n():(async()=>{try{if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistrations();await Promise.all(e.map(e=>e.unregister()))}if(typeof caches<`u`){let e=await caches.keys();await Promise.all(e.map(e=>caches.delete(e)))}}catch{}n()})();return}}if(a===`onboarding`&&typeof window<`u`&&window.sessionStorage){let e=`arkhevault_disable_onboarding_once`;window.sessionStorage.getItem(e)||(window.sessionStorage.setItem(e,`1`),window.location.reload())}if(a===`dashboard`&&typeof window<`u`&&window.sessionStorage){let e=`arkhevault_skip_dashboard_once`;window.sessionStorage.getItem(e)||(window.sessionStorage.setItem(e,`1`),window.location.reload())}}render(){if(this.state.hasError){if(this.props.fallback!==void 0)return this.props.fallback;let e=this.state.isChunkError?`A new app version was deployed. Refresh to load latest files.`:`The application encountered an unexpected error.`,t=String(this.state?.error?.message||``).trim(),n=[String(this.state?.error?.name||``).trim(),t].filter(Boolean).join(`: `);return(0,o.jsx)(`div`,{className:`min-h-[60vh] flex items-center justify-center p-6`,children:(0,o.jsxs)(`div`,{className:`max-w-md w-full text-center space-y-6 bg-white/[0.05] border border-white/10 rounded-2xl p-8 backdrop-blur-xl`,children:[(0,o.jsx)(`div`,{className:`w-14 h-14 bg-red-500/20 border border-red-500/30 rounded-2xl flex items-center justify-center mx-auto`,children:(0,o.jsx)(`span`,{className:`text-2xl text-red-400`,"aria-hidden":`true`,children:`!`})}),(0,o.jsxs)(`div`,{className:`space-y-3`,children:[(0,o.jsx)(`h3`,{className:`text-lg font-bold text-white`,children:`Something went wrong`}),(0,o.jsx)(`p`,{className:`text-white/60 text-sm`,children:e}),n?(0,o.jsx)(`p`,{className:`text-xs text-white/60 break-words font-mono`,children:n}):null,(0,o.jsx)(i,{variant:`primary`,onClick:()=>window.location.reload(),"aria-label":`Reload the application`,children:`Reload Application`})]})]})})}return this.props.children}};export{l as t};

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.