PageSourceSearch

https://type.com/assets/app-global-nav-DZJKzjDI.js

js type.com collected 2026-10-03 23:05:30 UTC 23,259 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifact-library-create-menu-CeO1_Tx3.js","assets/react-DtWX0OMs.js","assets/index-CNFpuu8E.js","assets/index-CwVOhZ7d.css","assets/use-channels-live-CLpIzLcQ.js","assets/use-messages-CeVf5I5f.js","assets/use-channel-subchannels-DQfbYSn9.js","assets/use-feature-switch-AY-l0k-o.js","assets/files-DCWoTexH.js","assets/mentions-CJeaHazG.js","assets/external-doc-import-providers-DWWY-es2.js","assets/vendor-icons-8Zk9nafa.js","assets/space-name-label-BnZfbsEa.js","assets/filled-icons-Ih3SpCxR.js","assets/use-sidekick-context-DMLG75_Y.js","assets/dialog-BILeWrjW.js","assets/index-DDl1Klq8.js","assets/index-DtvoNnqd.js","assets/Combination-Bp7Yf08s.js","assets/tslib.es6-xGYA-reH.js","assets/empty-BfVH0WR5.js","assets/input-r9Quj-Wz.js","assets/select-BDGqAuUW.js","assets/index-Vop_09HO.js","assets/index-YmT68Y7e.js","assets/index-3JiP5kxz.js","assets/index-Dr21_43n.js","assets/index-D2a3mer3.js","assets/dropdown-item-classes-BnhRhfW6.js","assets/skeleton-DcVPWm_E.js","assets/format-CDnOkMTZ.js","assets/google-drive-picker-CcwYIJ0U.js","assets/folder-open-CB4bU3-L.js","assets/createLucideIcon-BoctUOGT.js","assets/integration-instance-label-B7xF4urk.js","assets/import-doc-choice-dialog-5OqPovxM.js","assets/channel-orb-B_EHad4R.js","assets/agent-orbs-CO4sTdCa.js","assets/dropdown-menu-CdecpR_4.js","assets/index-CeEvQ-BK.js","assets/searchable-popover-DGHg9aXw.js","assets/command-DhIICPst.js","assets/popover-eKnFJy1H.js","assets/tooltip-BICWObj0.js","assets/use-app-shell-C3heqHQy.js","assets/artifact-message-references-CoTkw8XY.js","assets/sidekick-creation-destinations-IeJwpOic.js","assets/create-skill-prefill-BEaEdNQa.js","assets/use-artifact-file-upload-flow-CxjkbnPZ.js","assets/upload-to-presigned-url-BX0xW1VM.js","assets/use-space-route-resolution-CoOQ3qV6.js","assets/use-channel-directory-BfADvCyl.js","assets/artifact-file-uploads-CUKSch_r.js","assets/use-integrations-live-LjdrapFc.js","assets/global-import-create-processor-Cnae1Fz-.js"])))=>i.map(i=>d[i]);
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"471ea52245f40a6eae5bca2a01642f4910b4ed4f"};var s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="557abe0e-9650-4760-ad9b-04d33ed4b878",e._sentryDebugIdIdentifier="sentry-dbid-557abe0e-9650-4760-ad9b-04d33ed4b878")}catch(t){}}();import{ax as e,mB as s,j as t,mC as a,b7 as n,B as r,bW as i,p as o,aw as l,aD as c,mm as d,f8 as p,eG as u,bS as m,ly as h,bQ as g,aS as j,j9 as f,ic as x,au as b,aG as v,w as y,b0 as k,ee as C,a6 as w,gu as S,_ as I,c_ as N,ds as D,dp as R,dk as z,dq as O,dE as T,bA as P}from"./index-CNFpuu8E.js";import{r as A,j as G}from"./react-DtWX0OMs.js";import{u as _}from"./useLocation-DZy4Cg_m.js";import{u as M}from"./native-browser-relay-client-DlhGu88L.js";import{S as E}from"./sidekick-avatar-v2-Cf9dNB1d.js";import{d as L}from"./dropdown-menu-CdecpR_4.js";import{H as F}from"./hotkey-BZEu42qK.js";import{M as B}from"./menu-item-row-BUnkd8bQ.js";import{P as V,b as $,c as q,a as K}from"./popover-eKnFJy1H.js";import{S as U}from"./skeleton-DcVPWm_E.js";import{S as Q}from"./split-button-ChSt8y3G.js";import{c as H,T as W,a as Y,b as Z}from"./tooltip-BICWObj0.js";import{u as X}from"./use-sidekick-context-DMLG75_Y.js";import{o as J,a as ee}from"./command-palette-Bc3Etv5N.js";import{p as se,o as te}from"./_auth-nI39iTSu.js";import{c as ae}from"./copy-to-clipboard-CJRVxVDQ.js";import{a as ne}from"./last-opened-thread-mY-6mUHF.js";import{N as re}from"./use-new-conversation-shortcut-CuG7RTWB.js";import{b as ie}from"./create-skill-prefill-BEaEdNQa.js";import{A as oe}from"./app-sidebar-footer-CAcITzqD.js";import{c as le}from"./use-channel-subchannels-DQfbYSn9.js";import{u as ce}from"./use-integrations-live-LjdrapFc.js";import{u as de}from"./use-skills-live-Dc8hSnwS.js";import{g as pe}from"./artifact-type-icon-CA1OKN2M.js";import"./text-shimmer-xbuWQaHj.js";import{C as ue}from"./connection-app-icon-TM0J_Wz1.js";import"./catalog-policy-D82K2exy.js";import{S as me}from"./skill-visual-32KkajSz.js";import{S as he}from"./space-name-label-BnZfbsEa.js";import{C as ge}from"./channel-orb-B_EHad4R.js";import{r as je,g as fe}from"./recent-navigation-DHfi2svd.js";import{T as xe}from"./type-skills-library-Bz4S46IG.js";import{L as be}from"./loader-circle-BaUvGL_R.js";import"./react-Bal29uV8.js";import"./single-value-8ZeNYmgT.js";import"./index-D7KoCyks.js";import"./blank-sidekick-DpORtd25.js";import"./use-element-visible-DvvctlA_.js";import"./use-reduced-motion-preference-DPvOyvut.js";import"./easings-CakOcaC1.js";import"./index-DLmrcI2_.js";import"./springs-Bbklg5Js.js";import"./index-DtvoNnqd.js";import"./index-YmT68Y7e.js";import"./index-3JiP5kxz.js";import"./Combination-Bp7Yf08s.js";import"./tslib.es6-xGYA-reH.js";import"./index-CeEvQ-BK.js";import"./dropdown-item-classes-BnhRhfW6.js";import"./index-D2a3mer3.js";import"./use-realtime-messages-S30TCBFO.js";import"./typing-store-BJ5ksVch.js";import"./message-gap-repair-AftS59LA.js";import"./shared-channel-subscription-6bQKrQFf.js";import"./use-realtime-drafts-COZrH3uO.js";import"./use-browser-use-enabled-C5yx4kL8.js";import"./use-feature-switch-AY-l0k-o.js";import"./use-channels-live-CLpIzLcQ.js";import"./latest-async-queue-DIV2ff2f.js";
2import"./use-attention-enMsjIgc.js";import"./attention-read-mutation-BUxmUfJQ.js";import"./use-attention-target-navigation-GFrXU3cT.js";import"./billing-utils-BMSnyB14.js";import"./use-notification-intent-navigator-BStmj-yu.js";import"./use-unified-notifications-Cu6ImFBa.js";import"./index-Dpl_iA88.js";import"./blank-line-DzHAknaP.js";import"./index-B54TmoLo.js";import"./app-shell-skeleton-BVakZ16N.js";import"./content-container-Cq65yQkS.js";import"./sidebar-BP7mvmgt.js";import"./sheet-Bu6om2Pe.js";import"./index-DDl1Klq8.js";import"./use-mobile-B1OGnZHI.js";import"./use-desktop-updater-91KoB6Lk.js";import"./workspace-recovery-options-wM_fdrSA.js";import"./inbox-offline-sync-B4uEMBxN.js";import"./use-offline-CPuNcVfm.js";import"./use-stale-token-cleanup-DkCc_tA4.js";import"./card-BmsoVdub.js";import"./onboarding-authenticated-handoff-hdhj8FJm.js";import"./organization-settings-mutations-Db8CNmxg.js";import"./badge-B8NWm5V6.js";import"./native-browser-profile-DzhVFLT-.js";import"./native-browser-host-activity-B8U4vr99.js";import"./use-sidekick-Sdjwnu6h.js";import"./use-agents-live-PzJyErYx.js";import"./use-app-shell-C3heqHQy.js";import"./use-signout-listener-RFpgZZeZ.js";import"./connections-automations-nav-feature-switch-D-emNXyX.js";import"./sidebar-organizations-BZDpKwma.js";import"./workspace-companion-route-search-ByxkZDIy.js";import"./command-palette-shortcut-3OyQtlcm.js";import"./issue-report-plain-C9s8ZF3A.js";import"./book-open-C8OjTK0O.js";import"./createLucideIcon-BoctUOGT.js";import"./stable-tooltip-trigger-UbKAmi6R.js";import"./workspace-member-avatar-D1uMbhl0.js";import"./use-workspace-members-Dul_-yz7.js";import"./format-CDnOkMTZ.js";import"./avatar-DFlbq7dH.js";import"./use-internal-tools-access-8-T8eeez.js";import"./organizations-C3IH6XDg.js";import"./billing-usage-format-BrdGSUxi.js";
2import"./filled-icons-Ih3SpCxR.js";import"./artifact-library-grouping-waiierHm.js";import"./provider-registry-R2UAw1WB.js";import"./vendor-icons-8Zk9nafa.js";import"./provider-catalog-exclusions-B7qwMf6d.js";import"./provider-catalog-first-party-substitutions-D96rPTiD.js";import"./package-CHNcuUM1.js";import"./shield-check-B5AFaNE2.js";import"./agent-orbs-CO4sTdCa.js";import"./integration-instance-label-B7xF4urk.js";import"./thread-title-CVrDS0TA.js";import"./agent-stacks-D9lJOWbe.js";const ve={apps:h,files:m,skills:u};function ye({item:e}){var s,t;switch(e.kind){case"channel":case"space":return G.jsx(ge,{avatarOrbId:e.avatarOrbId,templateId:e.templateId,size:20,className:"size-5"});case"thread":return e.orbPending?G.jsx(U,{className:"size-5 rounded-full"}):G.jsx(ge,{avatarOrbId:e.avatarOrbId,templateId:e.templateId,size:20,className:"size-5"});case"room":return G.jsx(x,{});case"inbox":return G.jsx(f,{});case"integration":return e.connection?G.jsx(ue,{iconUrl:e.connection.iconUrl,name:e.label,provider:e.connection.provider}):G.jsx(j,{});case"library":{if("artifact"===(null==(s=e.libraryItem)?void 0:s.kind)){const s=pe(e.libraryItem.artifactType);return G.jsx(s,{})}if("skill"===(null==(t=e.libraryItem)?void 0:t.kind))return G.jsx(me,{displayIcon:e.libraryItem.displayIcon,displayColor:e.libraryItem.displayColor,size:"sm"});const a=e.libraryType?ve[e.libraryType]:g;return G.jsx(a,{})}case"settings":return G.jsx(p,{});case"internal-tools":return G.jsx(d,{});default:return G.jsx(c,{})}}function ke({item:e}){const s="space"===e.kind||"channel"===e.kind?G.jsx(he,{channelId:e.channelId,visibility:e.visibility,className:"type-label",children:e.label}):G.jsx("span",{className:"truncate type-label",children:e.label});return G.jsxs("span",{className:"flex min-w-0 flex-col",children:[s,e.subtitle?!e.visibility||"room"!==e.kind&&"thread"!==e.kind?G.jsx("span",{className:"truncate type-caption text-fg-muted",children:e.subt
2itle}):G.jsx(he,{channelId:e.channelId,visibility:e.visibility,className:"type-caption text-fg-muted",children:e.subtitle}):null]})}function Ce({userChannels:e,userChannelsPending:s=!1}){const[o,l]=A.useState(!1),c=A.useRef(!1),d=t(),p=a(),u=A.useCallback(e=>{n.navigation.sidebarItemClicked({item:e.label,section:"header"}),l(!1),d({href:e.href})},[d]),m=A.useCallback(e=>{c.current&&e.preventDefault(),c.current=!1},[]);return G.jsx(H,{delayDuration:300,children:G.jsxs(W,{children:[G.jsxs(V,{open:o,onOpenChange:l,children:[G.jsx($,{asChild:!0,children:G.jsx(Y,{asChild:!0,children:G.jsx(r,{type:"button",variant:"ghost",size:"icon","aria-label":"Recently viewed",className:"shrink-0 data-[state=open]:bg-alpha-100","data-testid":"recently-viewed-trigger",onKeyDown:()=>{c.current=!1},onPointerDown:()=>{c.current=!0},children:G.jsx(i,{})})})}),o?G.jsx(we,{recentEntries:p.history,userChannels:e,userChannelsPending:s,onOpenAutoFocus:m,onSelect:u}):null]}),G.jsx(Z,{side:"bottom",children:"Recently viewed"})]})})}function we({onOpenAutoFocus:t,onSelect:a,recentEntries:n,userChannels:r,userChannelsPending:i}){const c=o(),d=l(),p=ce(),u=le(),m=de(),h=A.useMemo(()=>function(t){return t.getQueriesData({queryKey:e.channels.getRecentThreads.key()}).flatMap(([,e])=>e?s(e)?e.pages.flatMap(e=>e.threads):e.threads:[])}(d),[d]),g=A.useMemo(()=>function(s,t){return[...new Set(t.flatMap(e=>{const s=e.pathname.split("/").filter(Boolean),t=s.indexOf("artifacts"),a=s[t+1];return t>=0&&a?[a]:[]}))].flatMap(t=>{const a=s.getQueryData(e.workspaceArtifacts.getById.queryOptions({input:{artifactId:t}}).queryKey);return"accessible"===(null==a?void 0:a.status)?[{id:a.artifact.id,title:a.artifact.title,artifactType:a.artifact.artifactType,channelName:a.channelName,updatedAt:a.artifact.updatedAt}]:[]})}(d,n),[d,n]),j=A.useMemo(()=>n.map(e=>je({artifacts:g,channels:r,channelsPending:i,entry:e,integrations:p.data??[],orgSlug:c,recentThreads:h,rooms:u.data??[],skills:m.data??[],typeSkills:xe})).filter(e=>null!==e).slice(0,10),[c,p.data,g,n,h,u.data,m.data,r,i]);return G.jsx(Se,{items:j,isResolving:n.length>0&&(p.isLoading&&n.some(fe)||u.isPending||m.isLoading),onOpenAutoFocus:t,onSelect:a})}function Se({items:e,isResolving:s,onOpenAutoFocus:t,onSelect:a}){return G.jsxs(q,{side:"bottom",align:"start",sideOffset:8,collisionPadding:8,"aria-label":"Recently viewed",className:"w-[360px] p-2","data-testid":"recently-viewed-popover",onOpenAutoFocus:t,children:[G.jsx("h2",{className:"px-2 pb-2 pt-1 type-label text-fg-secondary",children:"Recently viewed"}),e.length>0?G.jsx("div",{className:"max-h-[min(480px,calc(100dvh-var(--space-96)))] overflow-y-auto overscroll-contain",children:G.jsx("div",{className:"flex flex-col gap-[length:var(--space-2)]",children:e.map(e=>G.jsx(B,{icon:G.jsx(ye,{item:e}),leadingVisual:"channel"===e.kind||"space"===e.kind||"thread"===e.kind?"avatar":"icon","data-testid":"recently-viewed-item",onClick:()=>a(e),children:G.jsx(ke,{item:e})},e.key))})}):s?G.jsxs("div",{className:"flex flex-col gap-[length:var(--space-2)] px-2 py-1",children:[G.jsx("span",{className:"sr-only",children:"Loading recently viewed pages"}),["first","second","third"].map(e=>G.jsxs("div",{className:"flex h-10 items-center gap-2",children:[G.jsx(U,{className:"size-5 shrink-0 rounded-sm"}),G.jsx(U,{className:"h-4 w-3/5"})]},e))]}):G.jsx("p",{className:"px-2 py-6 text-center type-body-small text-fg-muted",children:"No recently viewed pages yet."})]})}const Ie=()=>I(()=>import("./artifact-library-create-menu-CeO1_Tx3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53])),Ne=A.lazy(async()=>{const{GlobalAppCreateMenuItem:e,GlobalDocumentCreateMenuItem:s,GlobalAutomationCreateMenuItem:t,GlobalImportCreateMenuItem:a}=await Ie();return{default:({onImportDestinationSelected:n,onDestinationSelected:r,onPendingChange:i,userId:o})=>G.jsxs(G.Fragment,{children:[G.jsx(e,{onDestinationSelected:r,onPendingChange:i,userId:o}),G.jsx(s,{onDestinationSelected:r,onPendingChange:i,userId:o}),G.jsx(t,{onDestinationSelected:r,onPendingChange:i,userId:o}),G.jsx(a,{onDestinationSelected:n})]})}}),De=A.lazy(async()=>{const{GlobalImportCreateProcessor:e}=await I(async()=>{const{GlobalImportCreateProcessor:e}=await import("./global-import-create-processor-Cnae1Fz-.js");return{GlobalImportCreateProcessor:e}},__vite__mapDeps([54,1,2,3,35,15,16,17,18,19,48,49,50,6,7,51,4,52]));return{default:e}});function Re(){return G.jsxs(G.Fragment,{children:[G.jsxs(L,{disabled:!0,children:[G.jsx(R,{className:"size-4 text-fg-secondary"}),"App"]}),G.jsxs(L,{disabled:!0,children:[G.jsx(m,{className:"size-4 text-fg-secondary"}),"Document"]}),G.jsxs(L,{disabled:!0,children:[G.jsx(z,{className:"size-5 text-fg-secondary"}),"Automation"]}),G.jsxs(L,{disabled:!0,children:[G.jsx(O,{className:"size-4 text-fg-secondary"}),"Upload"]})]})}function ze(){const e=N(),s=D(e.history),t=A.useCallback(s=>e.history.subscribe(s),[e.history]),a=A.useCallback(()=>`${e.history.location.state.__TSR_index}:${e.history.length}`,[e.history]);A.useSyncExternalStore(t,a,()=>"0:1");const n=s.canGoBack,i=s.canGoForward,o=G.jsx(r,{type:"button",variant:"ghost",size:"default",className:"disabled:opacity-40","aria-label":"Go back",disabled:!n,onClick:()=>e.history.back(),children:G.jsx(T,{})}),l=G.jsx(r,{type:"button",variant:"ghost",size:"default",className:"disabled:opacity-40","aria-label":"Go forward",disabled:!i,onClick:()=>e.history.forward(),children:G.jsx(P,{})});
2return G.jsx(H,{delayDuration:0,children:G.jsxs("div",{className:"flex shrink-0 items-center gap-0","data-testid":"app-history-navigation",children:[G.jsxs(W,{children:[G.jsx(Y,{asChild:!0,children:n?o:G.jsx("span",{className:"inline-flex",children:o})}),G.jsx(Z,{side:"bottom",shortcut:"cmd+[",shortcutAppearance:"keycap",children:"Go back"})]}),G.jsxs(W,{children:[G.jsx(Y,{asChild:!0,children:i?l:G.jsx("span",{className:"inline-flex",children:l})}),G.jsx(Z,{side:"bottom",shortcut:"cmd+]",shortcutAppearance:"keycap",children:"Go forward"})]})]})})}function Oe({organizations:e,activeOrgId:s,user:a,userChannels:i=[],userChannelsPending:l=!1}){var d;const p=b(),m=t(),h=o(),g=_({select:e=>e.pathname}),f=v(),{sidekick:x,isLoading:I,personalizationEnabled:N}=X(),[D,R]=A.useState(!1),z=A.useRef(null),[O,T]=A.useState(null),P=A.useRef(null),$=A.useRef(null),[W,Y]=A.useState(!1),Z=W||null!==O,{prepareActiveOverlay:le,setOverlayOpen:ce}=M(),de=A.useRef(0),pe=A.useRef(!1),[ue,me]=A.useState(null),he=A.useRef(null),ge=A.useRef(null),je=A.useRef(new DOMRect),fe=A.useRef({getBoundingClientRect:()=>je.current}),xe=e.find(e=>e.id===s)??e.find(e=>e.slug===h),ve=(null==xe?void 0:xe.id)??s,ye=(null==(d=f.user)?void 0:d.id)??"",ke=!x||N&&null===x.agent.sidekickOnboardingCompletedAt?"Set up your Sidekick":`Chat with ${x.agent.name.trim()||"your Sidekick"}`,we=g===`/${h}/sidekick`||g.startsWith(`/${h}/sidekick/`),Se=null!==x&&we,Oe=A.useCallback(()=>{de.current+=1,pe.current=!1,R(!1),ce(!1)},[ce]),Te=A.useCallback(e=>{var s;$.current=e,null==(s=P.current)||s.click(),Oe()},[Oe]),Pe=A.useCallback(e=>{T(s=>s===e?null:s)},[]),Ae=A.useCallback(e=>{if(!e)return void Oe();if(Ie(),D||pe.current)return;const s=le();if(!s)return void R(!0);const t=de.current+1;de.current=t,pe.current=!0,s.match(()=>{de.current===t&&(pe.current=!1,ce(!0),R(!0))},e=>{de.current===t&&(pe.current=!1,y.error(e.message))})},[Oe,D,le,ce]);A.useEffect(()=>()=>{de.current+=1,pe.current=!1,ce(!1)},[ce]);const Ge=(e,s,t)=>{const a=e.querySelector("svg");a instanceof SVGSVGElement&&(ge.current=e,je.current=new DOMRect(s,t),me(a.outerHTML))},_e=G.jsxs(L,{onPointerEnter:se,onFocus:se,onSelect:()=>{n.navigation.sidebarItemClicked({item:"Connection",section:"create"}),te({returnFocusTo:z.current})},children:[G.jsx(j,{className:"size-5! text-fg-secondary"}),G.jsx("span",{children:"Connection"})]}),Me=G.jsxs(L,{onSelect:()=>{n.navigation.sidebarItemClicked({item:"Skill",section:"create"}),ee({prefillAst:ie(),visibility:"private"})},children:[G.jsx(u,{className:"size-5! text-fg-secondary"}),G.jsx("span",{children:"Skill"})]});return G.jsxs(G.Fragment,{children:[G.jsxs("nav",{"aria-label":"Global navigation","data-app-global-nav":"true",className:"relative z-40 hidden h-(--app-global-header-height) shrink-0 items-center justify-between gap-[length:var(--space-16)] py-[length:var(--space-8)] pl-[length:var(--space-10)] pr-[length:var(--space-16)] desktop-drag-region md:flex",children:[G.jsx("div",{className:w("flex min-w-0 shrink-0 items-center gap-[length:var(--space-12)]",p?"ml-[length:var(--desktop-sidebar-stoplight-reserve)]":""),children:G.jsxs(V,{open:null!==ue,onOpenChange:e=>{e||me(null)},children:[G.jsx(K,{virtualRef:fe}),G.jsx(k,{to:"/$orgSlug/inbox",params:{orgSlug:h},"aria-label":"Type — go to Inbox","data-app-global-logo":"true",className:"flex h-8 shrink-0 items-center justify-center rounded-md pt-[length:var(--space-4)] pl-[length:var(--space-6)] text-fg-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-2",onContextMenu:e=>{e.preventDefault(),Ge(e.currentTarget,e.clientX,e.clientY)},onKeyDown:e=>{if(!("ContextMenu"===e.key||e.shiftKey&&"F10"===e.key))return;e.preventDefault();const s=e.currentTarget.getBoundingClientRect();Ge(e.currentTarget,s.left,s.bottom)},children:G.jsx(C,{className:"h-6 w-auto"})}),G.jsxs(q,{side:"bottom",align:"start",sideOffset:4,collisionPadding:8,"aria-label":"Logo actions",className:"flex w-40 flex-col gap-[length:var(--space-2)] p-2",onOpenAutoFocus:e=>{var s;e.preventDefault(),null==(s=he.current)||s.focus({preventScroll:!0})},onCloseAutoFocus:e=>{var s;e.preventDefault(),null==(s=ge.current)||s.focus({preventScroll:!0})},children:[G.jsx(B,{ref:he,onClick:()=>{ue&&(ae(ue).then(e=>{e?y.success("SVG copied to clipboard"):y.error("SVG could not be copied")}),me(null))},children:"Copy as SVG"}),G.jsx(B,{onClick:()=>{ue&&(y.success("SVG downloaded"),function(e){const s=new Blob([e],{type:"image/svg+xml;charset=utf-8"}),t=URL.createObjectURL(s),a=document.createElement("a");a.href=t,a.download="type-logo.svg",a.rel="noopener",document.body.appendChild(a),a.click(),a.remove(),URL.revokeObjectURL(t)}(ue),me(null))},children:"Download SVG"})]})]})}),G.jsxs("div",{className:"flex min-w-0 max-w-[640px] flex-1 items-center justify-center gap-[length:var(--space-8)]",children:[p?G.jsx(ze,{}):null,G.jsx(Ce,{userChannels:i,userChannelsPending:l}),G.jsxs(r,{type:"button",variant:"default",size:"default",elementLeft:!0,elementRight:!0,className:w("h-8 min-w-0 max-w-[500px] flex-1 justify-start px-[length:var(--space-12)]! py-[length:var(--space-6)]!","transition-press active:scale-[0.97]"),"data-testid":"global-search-button",onClick:e=>{n.navigation.sidebarItemClicked({item:"Search",section:"header"}),J(e.currentTarget)},children:[G.jsx(c,{className:"size-5"}),G.jsx("span",{className:"min-w-0 flex-1 text-left type-label text-fg-secondary",children:"Search..."}),G.jsxs("span",{className:"flex items-center gap-1",children:[G.jsx(F,{children:"⌘"}),G.jsx(F,{children:"K"})]})]}
2),G.jsxs(H,{delayDuration:0,children:[G.jsxs(Q,{variant:"primary",size:"default",className:"shrink-0","aria-busy":Z,disabled:Z,"data-testid":"global-create-thread-button",menuLabel:"Create skills, apps, docs, and more...",actionTooltip:"Create a new thread",actionTooltipProps:{side:"bottom",shortcut:re,shortcutAppearance:"keycap"},menuTooltipProps:{side:"bottom"},menuOpen:D,onMenuOpenChange:Ae,menuModal:!1,menuTriggerProps:{"data-testid":"global-create-menu-button",onPointerEnter:Ie,onFocus:Ie},menuTriggerRef:z,menuContentProps:{className:"w-56 [--size-icon-menu:20px] [&_svg]:text-fg-secondary","data-testid":"global-create-menu-content"},onClick:()=>{n.navigation.sidebarItemClicked({item:"Thread",section:"create"}),ee()},menu:G.jsxs(G.Fragment,{children:[G.jsx(A.Suspense,{fallback:G.jsx(Re,{}),children:G.jsx(Ne,{onDestinationSelected:Oe,onImportDestinationSelected:Te,onPendingChange:Y,userId:ye})}),_e,Me]}),children:["New thread",Z?G.jsx(be,{"aria-hidden":"true",className:"size-5 animate-spin motion-reduce:animate-none"}):null]}),O?G.jsx(A.Suspense,{fallback:null,children:G.jsx(De,{onComplete:Pe,request:O})}):null]})]}),G.jsxs("div",{className:"flex h-8 shrink-0 items-center gap-[length:var(--space-4)]",children:[I?G.jsx(U,{className:"h-8 w-8 rounded-full xl:w-[148px] xl:rounded-md","data-testid":"app-global-nav-sidekick-loading"}):G.jsx(r,{type:"button",variant:"ghost",size:"default","aria-label":ke,"aria-current":Se?"page":void 0,className:w("h-8 min-h-8 max-w-[240px] py-[length:var(--space-4)]! pl-[length:var(--space-8)]! pr-[length:var(--space-12)]!",x?"gap-[length:var(--space-8)]":"gap-[length:var(--space-6)]",Se&&"bg-overlay-selected hover:bg-overlay-selected active:bg-overlay-pressed"),onClick:()=>{if(n.navigation.sidebarItemClicked({item:(null==x?void 0:x.agent.name)??"Set up your Sidekick",section:"header"}),!x||N&&null===x.agent.sidekickOnboardingCompletedAt)return void m({to:"/$orgSlug/sidekick-setup",params:{orgSlug:h}});const e=ne();m(e?{to:"/$orgSlug/sidekick/$threadId",params:{orgSlug:h,threadId:e}}:{to:"/$orgSlug/sidekick",params:{orgSlug:h}})},children:x?G.jsxs(G.Fragment,{children:[G.jsx("span",{className:w("max-w-[180px] truncate type-button",p&&"hidden xl:inline"),children:ke}),G.jsx(E,{animateColorChanges:!0,size:"small",color:x.agent.avatarColor,pixelSize:32,className:"shrink-0"})]}):G.jsxs(G.Fragment,{children:[G.jsx(S,{className:"size-5 shrink-0 text-fg-secondary"}),G.jsx("span",{className:w("max-w-[180px] truncate type-button",p&&"hidden xl:inline"),children:ke})]})}),G.jsx(oe,{orgSlug:h,userId:ye,user:a,organizations:e,activeOrgId:ve,canSwitchWorkspace:!1})]})]}),G.jsx("input",{ref:P,type:"file",className:"hidden","data-testid":"global-create-import-input",onChange:e=>{var s;const t=(null==(s=e.target.files)?void 0:s[0])??null,a=$.current;e.target.value="",$.current=null,t&&a&&T({channel:a,file:t})}})]})}export{Oe as AppGlobalNav};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.