import{r as o,j as s}from"./vendor-react-AXa6hZO5.js";import{l as r,L as e,e as i}from"./cec18ad9a-DiLjrOUd.js";import{z as n,L as d,D as t}from"./index-C_tZnXTW.js";import{M as a}from"./vendor-motion-0BJMgYoH.js";import"./vendor-radix-glKlawmm.js";import"./vendor-zod-CMvj0_Fd.js";import"./vendor-intl-BdADXLLt.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.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};
