import{r as o,j as s}from"./vendor-react-AXa6hZO5.js";import{l as r,L as e,e as i}from"./c6eedc03a-C8LSdtro.js";import{E as n,L as d,I as t}from"./index-D35RxkWr.js";import{M as a}from"./vendor-motion-DGh7M6mr.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zod-1gcJXWab.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./c365fd3fe-Dmpsm876.js";import"./c70a3d12b-BI7Bbafv.js";import"./vendor-luxon-Y8l99kBI.js";import"./tree-sitter-BFuuT2ac.js";const m=o.memo(({sessionId:m,permissions:c,isScheduledTask:l,source:p})=>{const j=function(){const s=n();return o.useCallback((o,i,n,t)=>{d?.respondToToolPermission?(s(o,i),d.respondToToolPermission(i,t,n)):r.error(e.DESKTOP_API,"respondToToolPermission not available")},[s])}(),{track:v}=i(),u=o.useCallback((o,s,r,e)=>{j(m,o,r,e),v({event_key:"claudeai.cowork.inline_review.decision",session_id:m,source:p,decision:e})},[j,m,p,v]);return s.jsx(a,{reducedMotion:"always",children:s.jsx("div",{className:"[&>*]:!my-0 [&>*>*]:!border-0 [&>*>*]:!shadow-none",children:s.jsx(t,{toolPermissionRequests:c,onToolDecision:u,isScheduledTask:l,disableKeyboardShortcuts:!0})})})});m.displayName="InlineToolApproval";export{m as InlineToolApproval};
