import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{o as t}from"./lib-MoKmYgcO.js";var n=e();function r(e){if(e==null)return 0;switch(e.phase){case`checking`:return 0;case`downloading`:return e.downloadedBytes==null||e.totalBytes==null?0:Math.floor(Math.min(e.downloadedBytes/e.totalBytes*100,100));case`verifying`:case`extracting`:return 98;case`validating`:case`installed`:case`configuring`:case`ready`:return 100;case`error`:return 0}}function i(e,r){switch(e?.phase){case void 0:case`checking`:case`downloading`:case`error`:return(0,n.jsx)(t,{id:`localConversation.primaryRuntimeInstallStatus.downloading`,defaultMessage:`Setting up your workspace: {percent}%`,description:`Thread status shown while Codex downloads required local runtime tools before starting a response`,values:{percent:r}});case`extracting`:return(0,n.jsx)(t,{id:`localConversation.primaryRuntimeInstallStatus.extracting`,defaultMessage:`Preparing your workspace`,description:`Thread status shown while Codex extracts required local runtime tools before starting a response`});case`verifying`:case`validating`:case`installed`:case`configuring`:case`ready`:return(0,n.jsx)(t,{id:`localConversation.primaryRuntimeInstallStatus.finalizing`,defaultMessage:`Finalizing your workspace`,description:`Thread status shown while Codex finalizes required local runtime tools before starting a response`})}}export{i as n,r as t};
//# sourceMappingURL=primary-runtime-install-status-message-DcPj1Taa.js.map