import{r as e,j as o}from"./vendor-react-Dp9pL_Wn.js";import{M as r}from"./vendor-intl-BDR1NhN_.js";import{y as s}from"./c4b350ac1-KLFM4jkb.js";import{a as t}from"./vendor-ant-cds-DvTmcYA1.js";import"./vendor-base-5_f7mmWg.js";import"./vendor-base-ui-CdQU4JQh.js";import"./vendor-radix-D3USJ4lr.js";import"./vendor-zod-DIcz3Rbr.js";import"./vendor-zustand-CI9omAwJ.js";import"./vendor-icons-BBStP_8q.js";import"./vendor-lodash-CIro4mst.js";import"./vendor-router-qG5OCEmI.js";import"./vendor-query-DgCRID2b.js";import"./vendor-motion-D7Z1qgzM.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-growthbook-C66YtMMX.js";import"./vendor-virtual-DRz8lJfQ.js";function a(e){return o.jsx("span",{className:"font-bold text-primary",children:e})}const n=e.memo(function(){const n=s(e=>null!==e.pendingCacheMissWarningResolver),i=s(e=>e.pendingCacheMissWarning),l=i?.targetLabel??"",d=i?.kind??"model",m=s(e=>e.resolveCacheMissWarning),u=e.useCallback(e=>{e||m(!1)},[m]),g=e.useCallback(()=>{m(!0)},[m]);return o.jsx(t,{open:n,onOpenChange:u,onConfirm:g,title:"effort"===d?o.jsx(r,{defaultMessage:"Change effort level?",id:"3EaeMr9hCZ"}):"thinking"===d?o.jsx(r,{defaultMessage:"Change thinking mode?",id:"x/xUEDhOyP"}):o.jsx(r,{defaultMessage:"Switch model?",id:"u4CqFrjN3B"}),description:"effort"===d?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:l,bold:a}}):"thinking"===d?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:l,bold:a}}):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:l,bold:a}}),confirmLabel:o.jsx(r,{defaultMessage:"Switch to {targetLabel}",id:"0JhRbXCJfF",values:{targetLabel:l}})})});n.displayName="CoworkCacheMissWarningModal";export{n as CoworkCacheMissWarningModal};
