(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,311720,e=>{"use strict";var r=e.i(618566),o=e.i(15010),n=e.i(530693),i=e.i(809726),t=e.i(614650),a=e.i(305875);e.s(["default",0,function(e){let d,c,s,u,_,{error:l}=e;return d=(0,r.useSearchParams)(),c=(0,r.useRouter)(),s=d.get("preventReload"),u=(0,n.useClientSideRedirectToGenericError)(),_=(0,t.getFlowFromDocument)(),(0,o.useEffect)(()=>{let{digest:e,message:r,name:o,stack:n}=l;if(i.obs.emit("error_boundary","error",{analytics:{digest:e,event_name:"modxo_error_boundary_screen",flow:_,int_error_code:o,int_error_desc:r,is_page_unloading:(0,a.isPageUnloading)()?"Y":"N",state_name:"begin_modxo_error_boundary",transition_name:"prepare_modxo_error_boundary"},logs:{digest:e,message:r,name:o,stack:n},metrics:{dimensions:{digest:e??"",error_code:o,flow:_},metricEventName:"modxo_error_boundary",metricId:"pp.xo.ci.count"}}),!(0,a.isPageUnloading)()){if("ChunkLoadError"===l.name&&!s){let e=new URL(window.location.href);e.searchParams.append("preventReload","true"),window.location.replace(e.href);return}u({code:"ERROR_BOUNDARY"})}},[l,c,s,d,_,u]),!1}],311720)}]);

//# sourceMappingURL=2ni4cpevh_f_h.js.map