import{f as o,d as e,h as s,i as t}from"./vendor-ant-cds-BLsR_p72.js";import{b2 as n,b3 as r,b4 as a}from"./c2ee0272b-DPDuX889.js";import{r as i}from"./vendor-react-Dp9pL_Wn.js";import{d as u}from"./vendor-intl-D2wGIp4M.js";const f=(()=>{const o=new Map;return function e(s){var t;if("object"==typeof(t=s)&&null!==t&&"string"==typeof t.cssVar&&o.set(s.__name,s),"object"==typeof s&&null!==s)for(const[o,n]of Object.entries(s))"cssVar"!==o&&"value"!==o&&"modes"!==o&&"densities"!==o&&"__name"!==o&&"type"!==o&&e(n)}(r),o})();function m(r){const a=o(),i=e(),u=s(),m=t(),l=n();if("font-sans"===r){const o=f.get("font-system")?.value??"";if("system"===u)return o;if(l.sans)return`${l.sans}, ${o}`}else{if("font-mono"===r&&l.mono){const o="string"==typeof m?m.trim():"";return`${o?`"${o.replaceAll(/[\u0000-\u001f\u007f]/g,"").replaceAll("\\","\\\\").replaceAll('"','\\"')}", `:""}${l.mono}, "Anthropic Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace`}if("font-voice"===r&&l.serif)return`${l.serif}, ui-serif, Georgia, "Times New Roman", serif`}const c=f.get(r);return("comfortable"===i?c?.densities?.comfortable:void 0)??("dark"===a?c?.modes?.dark:void 0)??c?.value??""}const l=["control","setup_confirm"];function c(o){const e=a("cowork_role_setup_confirm",o),s=void 0!==(t=e)&&l.includes(t)?e:null;var t;const[n,r]=i.useState(null);return i.useEffect(()=>{o&&null===n&&null!==s&&r(s)},[s,o,n]),{variant:n??s??"control",resolved:!o||null!==n||null!==s}}const p="setup-cowork",d=`/${p}`,g=u({setupConfirmPrompt:{defaultMessage:"Can you set up Cowork for me using {setupCommand}?",id:"+bAtbrummb"},setupConfirmPromptNoCommand:{defaultMessage:"Can you set up Cowork for me?",id:"Qu/nIwjTrA"},sessionTitle:{defaultMessage:"Set up Cowork",id:"+s6HG+puLa"}});function v(o,e){return e?o.formatMessage(g.setupConfirmPrompt,{setupCommand:d}):o.formatMessage(g.setupConfirmPromptNoCommand)}function C(o){return o.formatMessage(g.sessionTitle)}export{p as S,c as a,v as b,C as g,m as u};
