import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Mi as s,ki as t}from"./vendor-frame-CwiylG4Y.js";import{Si as a}from"./shared-1-3-6x7RKF.js";import{nn as r}from"./vendor-all-2-BJdkbLSj.js";import{C as o}from"./shared-frame-DbQbH4Yr.js";var n=e(s()),l=t();function i(e){return(0,l.jsx)("span",{className:"font-bold text-primary",children:e})}var d=(0,n.memo)(function(){const e=a(e=>null!==e.pendingCacheMissWarningResolver),s=a(e=>e.pendingCacheMissWarning),t=s?.targetLabel??"",d=s?.kind??"model",g=a(e=>e.resolveCacheMissWarning);return(0,l.jsx)(o,{open:e,onOpenChange:(0,n.useCallback)(e=>{e||g(!1)},[g]),onConfirm:(0,n.useCallback)(()=>{g(!0)},[g]),title:"effort"===d?(0,l.jsx)(r,{defaultMessage:"Change effort level?",id:"3EaeMr9hCZ"}):"thinking"===d?(0,l.jsx)(r,{defaultMessage:"Change thinking mode?",id:"x/xUEDhOyP"}):(0,l.jsx)(r,{defaultMessage:"Switch model?",id:"u4CqFrjN3B"}),description:"effort"===d?(0,l.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:t,bold:i}}):"thinking"===d?(0,l.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:t,bold:i}}):(0,l.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:t,bold:i}}),confirmLabel:(0,l.jsx)(r,{defaultMessage:"Switch to {targetLabel}",id:"0JhRbXCJfF",values:{targetLabel:t}})})});export{d as CoworkCacheMissWarningModal};