"use strict";(globalThis.webpackChunkzip_mcp=globalThis.webpackChunkzip_mcp||[]).push([[192],{3192(e,s,r){r.r(s),r.d(s,{default:()=>p});var n=r(1609),a=r(9795),i=r(418),d=r(9492),t=r(9174),o=r(9448),c=r(790);function p({title:e,message:s,retry_kind:r,card_id:p}){const l=(0,o.e)(),m=!!l?.isResolved,u=function({retry_kind:e,card_id:s}={}){if("resume"===e&&s){const e="Yes, go ahead";return{mode:"resume",component:"approval-card",decision:"approved",message:e,payload:{approve_message:e,card_id:s}}}const r="Please try again";return{mode:"rerun",component:"retry",decision:"retry",message:r,payload:{retry_message:r}}}({retry_kind:r,card_id:p}),x="resume"===u.mode,g=(0,n.useCallback)(()=>{l?.submit?l.submit(u.decision,u.payload,{component:u.component}):window.__eraChatBridge?.sendMessage?.(u.message,{user_action:{component:u.component,decision:u.decision,payload:u.payload}})},[l,u]);return(0,c.jsxs)("div",{className:(0,a.cn)("rounded-lg border border-border bg-card overflow-hidden pt-3 px-3.5",m&&"pb-3 opacity-90"),children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,c.jsx)("span",{className:"w-[18px] h-[18px] rounded-[5px] bg-warn-soft border border-border grid place-items-center text-warn shrink-0",children:(0,c.jsx)(i.A,{size:11})}),(0,c.jsx)("div",{className:"flex-1 min-w-0 text-[14px] font-semibold tracking-[-0.01em] text-foreground truncate",children:e||"Action paused"}),m&&(0,c.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-[2px] rounded-full bg-sunken text-ink-3 text-[10.5px] font-semibold uppercase tracking-[0.04em]",children:[(0,c.jsx)("span",{className:"w-[5px] h-[5px] rounded-full bg-ink-4"}),x?"Resuming":"Sent"]})]}),(0,c.jsx)("p",{className:"text-[12.5px] text-ink-3 leading-[1.5] mb-1 m-0",children:s||"This action didn't finish. Retry to pick up where it left off."}),!m&&(0,c.jsx)("div",{className:"flex items-center justify-end gap-2 py-3 px-3.5 -mx-3.5 mt-1 bg-sunken border-t border-border",children:(0,c.jsxs)(t.$,{variant:"primaryInk",size:"sm",className:"rounded-md gap-1.5",onClick:g,children:[(0,c.jsx)(d.A,{size:13,strokeWidth:2.4}),x?"Resume":"Try again"]})})]})}}}]);