import{j as e,r as t}from"./vendor-react-Dp9pL_Wn.js";import{aT as a,X as s,HU as n,ir as o,l as i,Xc as r,w as l,Nv as d,$H as c,a6 as p,mw as u,R7 as m,Yz as f,ta as x,eu as g,bl as h,$I as k}from"./c6eedc03a-CsEFTfjy.js";import{c as b,N as v,f as j}from"./vendor-ant-cds-bBedrtIN.js";import{M as y,u as w}from"./vendor-intl-D2wGIp4M.js";import{L_ as $,mm as S,mn as _}from"./index-CBEPphRm.js";const A=t=>e.jsx(a,{...t,children:e.jsx("path",{d:"M7.5 2a.5.5 0 0 1 .5.5v3h4V4a.5.5 0 0 1 1 0v1.5A2.5 2.5 0 0 1 15.5 8v7.5A2.5 2.5 0 0 1 13 18H7a2.5 2.5 0 0 1-2.5-2.5V8A2.5 2.5 0 0 1 7 5.5v-3a.5.5 0 0 1 .5-.5M7 6.5A1.5 1.5 0 0 0 5.5 8v7.5A1.5 1.5 0 0 0 7 17h6a1.5 1.5 0 0 0 1.5-1.5V8A1.5 1.5 0 0 0 13 6.5zM12 8a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1zm-4 4h4V9H8z"})});function z({pendingUpdateIsSufficient:t}){return t?e.jsx(s,{variant:"primary",size:"default",className:"w-full",onClick:()=>{n?.restartToUpdate?.()},children:e.jsx(y,{defaultMessage:"Restart to update",id:"0yvHvdtth6"})}):e.jsx(s,{variant:"primary",size:"default",className:"w-full",onClick:()=>{n?.checkForUpdates?n.checkForUpdates():window.open("https://claude.ai/download?open_in_browser=1","_blank")},children:e.jsx(y,{defaultMessage:"Update",id:"BWpuKlRSA1"})})}function N(e){return e.startsWith(m)||e.startsWith(f)}function I({anchorRef:a,isExpanded:s}){const n=w(),{setIsExpanded:o}=x(),i=g(),[r,l]=h(()=>"1"===localStorage.getItem(k),!1),{shouldShow:d,dismiss:c}=S(k,{dateAdded:"2026-03-09",priority:_.HIGH}),p=t.useCallback(()=>{l(!0),c(),localStorage.setItem(k,"1")},[c,l]),u=d&&!i&&!r,m=t.useRef(!1);t.useEffect(()=>{u&&!m.current&&(m.current=!0,s||o(!0))},[u,s,o]);const[f,b]=t.useState(!1);if(t.useEffect(()=>{if(s){const e=setTimeout(()=>b(!0),300);return()=>clearTimeout(e)}b(!1)},[s]),!u||!s||!f)return null;const $=n.formatMessage({defaultMessage:"Dispatch tasks to Claude from anywhere\u2014even your phone.",id:"0+Uwcu7GKS"});return e.jsx(v,{open:!0,onOpenChange:e=>!e&&p(),anchor:a,side:"right",introDelay:.5,"aria-label":$,className:"max-w-[14rem]",badge:e.jsx(j,{size:"xxs",children:e.jsx(y,{defaultMessage:"New",id:"bW7B87wFFp"})}),showClose:!0,children:$})}const C=Object.freeze(Object.defineProperty({__proto__:null,SpacesNavItem:function({isExpanded:a,hideOnCollapse:s,href:n,subtext:m}){const f=w(),x=o(),g=i(r),{track:h}=l(),k=t.useRef(null),v=d(),j="ready"===v.state?v.result:void 0,y=j?.agentNameEnabled?j.dispatchAgentName:void 0,S=c(),_={...p(f,"Dispatch","desktop_update_needed"),button:e.jsx(z,{pendingUpdateIsSufficient:S.pendingUpdateIsSufficient})};if(!x)return null;if(S.requiresUpgrade&&!S.pendingUpdateIsSufficient)return null;const C=e.jsx($,{CustomIcon:e.jsx("div",{className:"flex items-center justify-center transition-all ease-in-out group-hover:-rotate-3 group-hover:scale-110 group-active:rotate-6 group-active:scale-[0.98]",children:e.jsx(A,{size:16})}),href:n,tooltipContent:y??"Dispatch",isExpanded:a,onClick:()=>{h({event_key:"claudeai.sidebar.dispatch_clicked"})},isActive:N,multiline:!!m&&a,className:m&&a?"!py-1":void 0,children:e.jsxs("div",{className:b(s,!!m&&"flex flex-col"),"aria-hidden":!a,children:[e.jsx("span",{children:y??"Dispatch"}),m&&e.jsx("span",{className:"font-small text-text-500 mt-0.5 truncate",children:m})]})});return S.requiresUpgrade?e.jsx(u,{..._,side:"right",align:"start",maxWidthClassName:"max-w-[219px]",layout:"stacked",sideOffset:16,children:e.jsx("div",{className:"opacity-50",inert:!0,children:e.jsx($,{CustomIcon:e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(A,{size:16})}),href:n,isExpanded:a,disabled:!0,isActive:N,children:e.jsx("div",{className:s,"aria-hidden":!a,children:y??"Dispatch"})})})}):e.jsxs("div",{ref:k,className:"relative",children:[C,!g&&e.jsx(I,{anchorRef:k,isExpanded:a})]})}},Symbol.toStringTag,{value:"Module"}));
/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
 * Released under the MIT license
 * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
 *-----------------------------------------------------------------------------*/const U=Object.freeze(Object.defineProperty({__proto__:null,conf:{comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},language:{defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}},Symbol.toStringTag,{value:"Module"}));export{C as S,U as p};
