import{o}from"./rolldown-runtime-iuO8RvI4.js";import{k_ as r}from"./shared-0-C4kdVF7Y.js";import{Mi as e}from"./vendor-frame-CwiylG4Y.js";import{$t as s}from"./vendor-all-2-BJdkbLSj.js";var t=o(e()),n=["control","setup_confirm"];function u(o){const e=r("cowork_role_setup_confirm",o),s=void 0!==(u=e)&&n.includes(u)?e:null;var u;const[a,m]=(0,t.useState)(null);return(0,t.useEffect)(()=>{o&&null===a&&null!==s&&m(s)},[s,o,a]),{variant:a??s??"control",resolved:!o||null!==a||null!==s}}var a="setup-cowork",m=`/${a}`,i=s({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 l(o,r){return r?o.formatMessage(i.setupConfirmPrompt,{setupCommand:m}):o.formatMessage(i.setupConfirmPromptNoCommand)}function f(o){return o.formatMessage(i.sessionTitle)}export{u as i,l as n,f as r,a as t};