"use strict";(globalThis.webpackChunkzip_mcp=globalThis.webpackChunkzip_mcp||[]).push([[974],{8974(e,s,a){a.r(s),a.d(s,{default:()=>p});var r=a(1609),i=a(418),c=a(5773),l=a(9795),n=a(790);const d=r.forwardRef(({className:e,...s},a)=>(0,n.jsx)("div",{ref:a,className:(0,l.cn)("flex flex-col gap-3 w-[min(100%,640px)] p-4 bg-card border border-border rounded-xl shadow-card overflow-hidden",e),...s}));d.displayName="Card",r.forwardRef(({className:e,...s},a)=>(0,n.jsx)("div",{ref:a,className:(0,l.cn)("flex flex-col gap-1",e),...s})).displayName="CardHeader",r.forwardRef(({className:e,...s},a)=>(0,n.jsx)("div",{ref:a,className:(0,l.cn)("text-sm font-semibold text-heading leading-normal",e),...s})).displayName="CardTitle",r.forwardRef(({className:e,...s},a)=>(0,n.jsx)("p",{ref:a,className:(0,l.cn)("text-sm text-body leading-normal",e),...s})).displayName="CardDescription";const t=r.forwardRef(({className:e,...s},a)=>(0,n.jsx)("div",{ref:a,className:(0,l.cn)("flex flex-col gap-2",e),...s}));t.displayName="CardContent";const o=r.forwardRef(({className:e,...s},a)=>(0,n.jsx)("div",{ref:a,className:(0,l.cn)("flex items-center gap-2",e),...s}));o.displayName="CardFooter";var m=a(9174),x=a(9448);function p({issue:e,action:s,retry_message:a,skip_message:l}){const{submit:p,isResolved:f}=(0,x.e)()||{},g=(0,r.useCallback)(()=>{a&&(p?p("retry",{retry_message:a}):window.__eraChatBridge?.sendMessage?.(a,{user_action:{component:"error-recovery",decision:"retry"}}))},[a,p]),N=(0,r.useCallback)(()=>{l&&(p?p("skip",{skip_message:l}):window.__eraChatBridge?.sendMessage?.(l,{user_action:{component:"error-recovery",decision:"skip"}}))},[l,p]);return(0,n.jsxs)(d,{children:[(0,n.jsxs)(t,{className:"p-0 gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(i.A,{size:14,className:"shrink-0 text-warning-border","aria-hidden":"true"}),(0,n.jsx)("span",{className:"text-[10px] leading-[14px] font-semibold tracking-[0.08em] uppercase text-medium",children:"Recovery"})]}),(0,n.jsx)("p",{className:"text-sm text-body leading-normal m-0",children:e}),s&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground leading-normal m-0",children:s})]}),(a||l)&&!f&&(0,n.jsxs)(o,{className:"gap-2",children:[a&&(0,n.jsx)(m.$,{className:"flex-1",onClick:g,children:"Try again"}),l&&(0,n.jsx)(m.$,{variant:"secondary",className:"flex-1",onClick:N,children:"Skip this step"})]}),f&&(0,n.jsx)(o,{className:"gap-2",children:(0,n.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,n.jsx)(c.A,{size:13,className:"shrink-0 text-success","aria-hidden":"true"}),(0,n.jsx)("span",{children:"Your choice was sent - continuing."})]})})]})}}}]);