1import{bP as m,dX as b,dT as E,dd as r,d3 as t,m as l,ar as R,bu as g,a$ as T,q as I,da as w}from"./index-4k09vm5V.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"8a504455661812f5e913b30c07b22ab249739644"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e0040754-030f-40e1-9cf2-d4d84f9da208",e._sentryDebugIdIdentifier="sentry-dbid-e0040754-030f-40e1-9cf2-d4d84f9da208")})()}catch{}const S=8e3,_=8e3,D=()=>{const o=m.instance.getRoutesRepository(),i=b(),{errorMessage:n,isResolvingErrorMessage:c}=E(),[s,p]=r.useState(o.getPlansUri()),[d,h]=r.useState(!1);r.useEffect(()=>{(async()=>{try{const u=await w.getLastPurchaseFailedInfo(),f=u.data?.planId,x=u.data?.hasQuarterlyModels;f&&(p(`${o.getPlanUri(f)}?hasQuarterlyModels=${x??"true"}&paymentKo=true`),h(!0))}catch{}})()},[]),r.useEffect(()=>{if(!d||c||n)return;const a=setTimeout(()=>i.push(s),S);return()=>clearTimeout(a)},[d,c,n,s]),r.useEffect(()=>{if(!n)return;const a=setTimeout(()=>i.push(s),_);return()=>clearTimeout(a)},[n,s]);const y=()=>{i.push(s)};return t.jsxs(l,{backgroundColor:"white",minHeight:"100vh",display:"flex",flexDirection:"column",alignItems:"center",children:[t.jsxs(l,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",paddingTop:"xxl",maxWidth:"800px",margin:"0 auto",backgroundColor:"white",gap:"xs",children:[t.jsx(R,{name:"exclamation-circle",fontSize:"60px",color:"semantic.text.alerts.danger"}),t.jsxs(g,{fontSize:"24px",fontWeight:"700",lineHeight:"32px",marginTop:"xs",textAlign:"center",marginX:"10px",children:["Ha ocurrido un problema con el pago"," "]}),c?t.jsx(T,{title:"Cargando..."}):t.jsx(g,{textColor:"semantic.text.general.text2",textAlign:"center",children:n??"Revisa tu forma de pago y vuelve a intentarlo."})]}),t.jsx(l,{marginTop:"lg",children:t.jsx(I,{label:"Entendido",onClick:y})})]})};export{D as default};
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.