PageSourceSearch

https://my.boardoutlook.com/Content/dist/react/chunks/ErrorBoundary-D0xofI8y.js

js boardoutlook.com collected 2026-10-07 05:55:54 UTC 4,525 bytes, 1 lines download raw bytes

1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{T as t,t as n,w as r}from"./vendor-BU7VyDBj.js";import{t as i}from"./BOButton-CA3TkJo1.js";import{t as a}from"./main-Dzg-muFE.js";var o=e(r(),1),s=[/Failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/Importing a module script failed/i];function c(e){return e instanceof Error?e.name===`ChunkLoadError`||s.some(t=>t.test(e.message)):!1}var l=n(),u=t(),d=5,f=`bo:stale-chunk-reload-attempted`,p=6e4,m=e=>{if(typeof e!=`object`||!e||!(`count`in e)||!(`lastAttemptAt`in e))return!1;let{count:t,lastAttemptAt:n}=e;return typeof t==`number`&&typeof n==`number`},h=e=>{let t=globalThis.sessionStorage.getItem(f);if(!t)return null;let n=Number(t);if(Number.isFinite(n))return e-n>p?null:{count:1,lastAttemptAt:n};let r;try{r=JSON.parse(t)}catch{return null}return!m(r)||e-r.lastAttemptAt>p?null:r},g=e=>{globalThis.sessionStorage.setItem(f,JSON.stringify(e))},_=()=>{let e=Date.now();g({count:(h(e)?.count??0)+1,lastAttemptAt:e}),globalThis.location.reload()},v=(e=Date.now())=>h(e)!==null,y=(e=Date.now())=>h(e)?.count??0,b=e=>{let t=(0,l.c)(16),{countdownSeconds:n}=e,r=n===void 0?d:n,[s]=(0,o.useState)(x),c=s>=3,[f,p]=(0,o.useState)(r),m,h;if(t[0]!==s||t[1]!==c?(m=()=>{if(c){a.addError(Error(`Stale chunk reload cap exceeded`),{kind:`chunk-load-reload-cap-exceeded`,attemptCount:s});return}let e=globalThis.setInterval(()=>{p(t=>t<=1?(globalThis.clearInterval(e),_(),0):t-1)},1e3);return()=>globalThis.clearInterval(e)},h=[c,s],t[0]=s,t[1]=c,t[2]=m,t[3]=h):(m=t[2],h=t[3]),(0,o.useEffect)(m,h),c){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,u.jsx)(`h1`,{className:`mb-3 text-xl font-medium text-gray-900`,children:`We can't load BoardOutlook right now`}),t[4]=e):e=t[4];let n;t[5]===s?n=t[6]:(n=(0,u.jsxs)(`p`,{className:`mb-6 text-sm text-gray-600`,children:[`We tried reloading `,s,` times without success. Please try again in a few minutes, or contact support if the problem persists.`]}),t[5]=s,t[6]=n);let r;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,u.jsx)(i,{intent:`primary`,onClick:_,children:`Try again`}),t[7]=r):r=t[7];let a;return t[8]===n?a=t[9]:(a=(0,u.jsx)(`div`,{className:`flex min-h-screen items-center justify-center px-4`,children:(0,u.jsxs)(`div`,{"aria-live":`polite`,className:`max-w-md rounded-lg border border-gray-100 bg-white p-8 text-center shadow-sm`,role:`alert`,children:[e,n,r]})}),t[8]=n,t[9]=a),a}let g;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,u.jsx)(`h1`,{className:`mb-3 text-xl font-medium text-gray-900`,children:`A new version of BoardOutlook is available`}),t[10]=g):g=t[10];let v=`Reloading in ${String(f)} second${f===1?``:`s`}…`,y;t[11]===v?y=t[12]:(y=(0,u.jsx)(`p`,{className:`mb-6 text-sm text-gray-600`,children:v}),t[11]=v,t[12]=y);let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,u.jsx)(i,{intent:`primary`,onClick:_,children:`Reload now`}),t[13]=b):b=t[13];let S;return t[14]===y?S=t[15]:(S=(0,u.jsx)(`div`,{className:`flex min-h-screen items-center justify-center px-4`,children:(0,u.jsxs)(`div`,{"aria-live":`polite`,className:`max-w-md rounded-lg border border-gray-100 bg-white p-8 text-center shadow-sm`,role:`alert`,children:[g,y,b]})}),t[14]=y,t[15]=S),S};function x(){return y()}function S(e,t){return e.length===t.length&&e.every((e,n)=>Object.is(e,t[n]))}var C=class extends o.Component{static getDerivedStateFromError(e){return{hasError:!0,isChunkLoad:c(e)}}state={hasError:!1,isChunkLoad:!1};componentDidCatch(e,t){let n=this.props.boundary??this.props.label??`root`;if(c(e)){if(this.props.containChunkErrors){a.addError(e,{boundary:n,kind:`chunk-load-contained`,componentStack:t.componentStack});return}v()&&a.addError(e,{boundary:n,kind:`chunk-load-after-reload`,componentStack:t.componentStack});return}a.addError(e,{boundary:n,componentStack:t.componentStack}),this.props.onError?this.props.onError(e,t):typeof console<`u`&&console.error(`[${n}] caught render error`,e,t),this.props.fallback===void 0&&globalThis.location.assign(`/error/notfound`)}componentDidUpdate(e){if(!this.state.hasError)return;let t=`resetKey`in this.props&&!Object.is(this.props.resetKey,e.resetKey),n=this.props.resetKeys!==void 0&&(e.resetKeys===void 0||!S(e.resetKeys,this.props.resetKeys));(t||n)&&this.setState({hasError:!1,isChunkLoad:!1})}render(){return this.state.hasError?this.state.isChunkLoad&&!this.props.containChunkErrors?(0,u.jsx)(b,{}):this.props.fallback??null:this.props.children}};export{c as i,b as n,v as r,C 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.