PageSourceSearch

https://www.wineindustryinsight.com/assets/ComponentErrorBoundary-6y1vzF6e.js

js wineindustryinsight.com collected 2026-10-02 10:02:11 UTC 2,305 bytes, 5 lines download raw bytes

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]="8b88b808-a693-5aed-a494-d2a9b4d402e2")}catch(e){}}();
3import{a as e,t}from"./jsx-runtime-CMgEUHpv.js";import{V as n}from"./dist-CAHjj65Z.js";import{t as r}from"./Text-B4PqLHDw.js";var i=e(n()),a=(0,i.createContext)(null),o={didCatch:!1,error:null},s=class extends i.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=o}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(e!==null){var t,n,r=[...arguments];(t=(n=this.props).onReset)==null||t.call(n,{args:r,reason:`imperative-api`}),this.setState(o)}}componentDidCatch(e,t){var n,r;(n=(r=this.props).onError)==null||n.call(r,e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&t.error!==null&&c(e.resetKeys,r)){var i,a;(i=(a=this.props).onReset)==null||i.call(a,{next:r,prev:e.resetKeys,reason:`keys`}),this.setState(o)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:s}=this.state,c=e;if(o){let e={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof t==`function`)c=t(e);else if(n)c=(0,i.createElement)(n,e);else if(r!==void 0)c=r;else throw s}return(0,i.createElement)(a.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};function c(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}var l=t();function u({error:e}){return(0,l.jsx)(`div`,{className:`flex flex-col max-w-2xl py-8 space-y-2`,children:(0,l.jsx)(r,{as:`p`,type:`body`,size:`md`,className:`leading-tight tracking-normal text-center`,children:e.message.split(`Error: `)[1]})})}function d({children:e,fallbackRender:t}){function n({error:e}){return(0,l.jsx)(u,{error:e})}return(0,l.jsx)(s,{fallbackRender:t??n,children:e})}export{u as n,d as t};
4//# sourceMappingURL=ComponentErrorBoundary-6y1vzF6e.js.map
5//# debugId=8b88b808-a693-5aed-a494-d2a9b4d402e2

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.