import{r as e,j as o}from"./vendor-react-Dp9pL_Wn.js";import{M as r}from"./vendor-intl-D2wGIp4M.js";import{y as s}from"./c6eedc03a-CsEFTfjy.js";import{a as t}from"./vendor-ant-cds-bBedrtIN.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-base-ui-DNypCIlh.js";import"./vendor-radix-Ch96tRrt.js";import"./vendor-zod-0xcuG3aM.js";import"./vendor-zustand-BeF8W8xk.js";import"./vendor-icons-CokWnmlw.js";import"./vendor-lodash-BvMLws5K.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-BwvgHhJ1.js";import"./vendor-zod-v3-CZy0YPWu.js";import"./vendor-motion-EDlUw66k.js";import"./vendor-luxon-CZxT8ieM.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-virtual-DRz8lJfQ.js";function n(e){return o.jsx("span",{className:"font-bold text-primary",children:e})}const a=e.memo(function(){const a=s(e=>null!==e.pendingCacheMissWarningResolver),i=s(e=>e.pendingCacheMissWarning),d=i?.targetLabel??"",l=i?.kind??"model",m=s(e=>e.resolveCacheMissWarning),g=e.useCallback(e=>{e||m(!1)},[m]),u=e.useCallback(()=>{m(!0)},[m]);return o.jsx(t,{open:a,onOpenChange:g,onConfirm:u,title:"effort"===l?o.jsx(r,{defaultMessage:"Change effort level?",id:"3EaeMr9hCZ"}):"thinking"===l?o.jsx(r,{defaultMessage:"Change thinking mode?",id:"x/xUEDhOyP"}):o.jsx(r,{defaultMessage:"Switch model?",id:"u4CqFrjN3B"}),description:"effort"===l?o.jsx(r,{defaultMessage:"Your next response will be slower and use more tokens. This task is cached for the current effort level. Switching to <bold>{targetLabel}</bold> means the full history gets re-read on your next message.",id:"zELfAL6AAI",values:{targetLabel:d,bold:n}}):"thinking"===l?o.jsx(r,{defaultMessage:"Your next response will be slower and use more tokens. This task is cached for the current thinking mode. Switching to <bold>{targetLabel}</bold> means the full history gets re-read on your next message.",id:"EXYJeF+9+J",values:{targetLabel:d,bold:n}}):o.jsx(r,{defaultMessage:"Your next response will be slower and use more tokens. This task is cached for the current model. Switching to <bold>{targetLabel}</bold> means the full history gets re-read on your next message.",id:"yLV+cfDMdo",values:{targetLabel:d,bold:n}}),confirmLabel:o.jsx(r,{defaultMessage:"Switch to {targetLabel}",id:"0JhRbXCJfF",values:{targetLabel:d}})})});a.displayName="CoworkCacheMissWarningModal";export{a as CoworkCacheMissWarningModal};
