import{r as s,j as o,a as e}from"./vendor--leCAzSo.js";import{l as i,L as r,f as a}from"./ca9c256b9-7brFE8T2.js";import{y as n,L as c,z as d}from"./index-DZuQva-j.js";import"./c723dd3dd-58n3MxoB.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const t=s.memo(({sessionId:t,permissions:l,isScheduledTask:m,source:p})=>{const u=function(){const o=n();return s.useCallback((s,e,a,n)=>{c?.respondToToolPermission?(o(s,e),c.respondToToolPermission(e,n,a)):i.error(r.DESKTOP_API,"respondToToolPermission not available")},[o])}(),{track:j}=a(),T=s.useCallback((s,o,e,i)=>{u(t,s,e,i),j({event_key:"claudeai.cowork.inline_review.decision",session_id:t,source:p,decision:i})},[u,t,p,j]);return o.jsx(e,{reducedMotion:"always",children:o.jsx("div",{className:"[&>*]:!my-0 [&>*>*]:!border-0 [&>*>*]:!shadow-none",children:o.jsx(d,{toolPermissionRequests:l,onToolDecision:T,isScheduledTask:m,disableKeyboardShortcuts:!0})})})});t.displayName="InlineToolApproval";export{t as InlineToolApproval};
