import{r as e,j as o}from"./vendor-react-DcxrbCFs.js";import{M as s}from"./vendor-intl-C0z7gCkr.js";import{I as r}from"./c4b350ac1-BTR_0NaM.js";import{C as t}from"./vendor-ant-cds-BOj-tX6j.js";import"./vendor-base-ui-dYhdtXSh.js";import"./vendor-radix-BZeqcGXH.js";import"./vendor-zod-Zyr3BDtu.js";import"./vendor-zustand-BLLlCrLG.js";import"./vendor-icons-ChFdOXlJ.js";import"./vendor-lodash--OmUGVwS.js";import"./vendor-router-DD4soP8u.js";import"./vendor-query-DdY22HAU.js";import"./vendor-luxon-Y8l99kBI.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-motion-HFQQEH7Z.js";import"./vendor-growthbook-Bq25eETo.js";import"./vendor-virtual-sigx4wjL.js";const a=e=>o.jsx("span",{className:"font-bold text-primary",children:e});const n=e.memo(function(){const n=r(e=>null!==e.pendingCacheMissWarningResolver),i=r(e=>e.pendingCacheMissWarning),l=i?.targetLabel??"",d=i?.kind??"model",m=r(e=>e.resolveCacheMissWarning),g=e.useCallback(e=>{e||m(!1)},[m]),u=e.useCallback(()=>{m(!0)},[m]);return o.jsx(t,{open:n,onOpenChange:g,onConfirm:u,title:"effort"===d?o.jsx(s,{defaultMessage:"Change effort level?",id:"3EaeMr9hCZ"}):"thinking"===d?o.jsx(s,{defaultMessage:"Change thinking mode?",id:"x/xUEDhOyP"}):o.jsx(s,{defaultMessage:"Switch model?",id:"u4CqFrjN3B"}),description:"effort"===d?o.jsx(s,{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(s,{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(s,{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(s,{defaultMessage:"Switch to {targetLabel}",id:"0JhRbXCJfF",values:{targetLabel:l}}),cancelLabel:o.jsx(s,{defaultMessage:"Cancel",id:"47FYwba+bI"})})});n.displayName="CoworkCacheMissWarningModal";export{n as CoworkCacheMissWarningModal};
