PageSourceSearch

https://www.vistaprint.fi/assets/ubik/web/@vp/fragment-recommendat…/react-error-boundary.esm-zOizUkH1.js

js vistaprint.fi collected 2026-10-03 21:26:49 UTC 2,068 bytes, 2 lines download raw bytes

1System.register(["react"],(function(l){"use strict";var h,d,f,E,y,m;return{setters:[function(a){h=a.Component,d=a.createElement,f=a.createContext,E=a.useContext,y=a.useState,m=a.useMemo}],execute:(function(){l("u",v);const a=f(null),c={didCatch:!1,error:null};class C extends h{constructor(r){super(r),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=c}static getDerivedStateFromError(r){return{didCatch:!0,error:r}}resetErrorBoundary(){const{error:r}=this.state;if(r!==null){for(var e,t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];(e=(t=this.props).onReset)===null||e===void 0||e.call(t,{args:i,reason:"imperative-api"}),this.setState(c)}}componentDidCatch(r,e){var t,n;(t=(n=this.props).onError)===null||t===void 0||t.call(n,r,e)}componentDidUpdate(r,e){const{didCatch:t}=this.state,{resetKeys:n}=this.props;if(t&&e.error!==null&&g(r.resetKeys,n)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:n,prev:r.resetKeys,reason:"keys"}),this.setState(c)}}render(){const{children:r,fallbackRender:e,FallbackComponent:t,fallback:n}=this.props,{didCatch:i,error:s}=this.state;let u=r;if(i){const B={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof e=="function")u=e(B);else if(t)u=d(t,B);else if(n!==void 0)u=n;else throw s}return d(a.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}l("E",C);function g(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.length!==r.length||o.some((e,t)=>!Object.is(e,r[t]))}function p(o){if(o==null||typeof o.didCatch!="boolean"||typeof o.resetErrorBoundary!="function")throw new Error("ErrorBoundaryContext not found")}function v(){const o=E(a);p(o);const[r,e]=y({error:null,hasError:!1}),t=m(()=>({resetBoundary:()=>{o.resetErrorBoundary(),e({error:null,hasError:!1})},showBoundary:n=>e({error:n,hasError:!0})}),[o.resetErrorBoundary]);if(r.hasError)throw r.error;return t}})}}));
2//# sourceMappingURL=react-error-boundary.esm-LLA031C5.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.