1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/tool-call-detail-sidebar-CAIt7Z-X.js","assets/react-DtWX0OMs.js","assets/index-CNFpuu8E.js","assets/index-CwVOhZ7d.css","assets/filled-icons-Ih3SpCxR.js","assets/markdown-typography-CdVkmJoc.js","assets/badge-B8NWm5V6.js","assets/collapsible-CHWcP_yK.js","assets/index-DtvoNnqd.js","assets/Combination-Bp7Yf08s.js","assets/tslib.es6-xGYA-reH.js","assets/desktop-stream-viewer-YZqEPl0K.js","assets/use-browser-use-enabled-C5yx4kL8.js","assets/use-feature-switch-AY-l0k-o.js","assets/use-messages-CeVf5I5f.js","assets/use-channel-subchannels-DQfbYSn9.js","assets/files-DCWoTexH.js","assets/mentions-CJeaHazG.js","assets/skeleton-DcVPWm_E.js","assets/tooltip-BICWObj0.js","assets/index-D2a3mer3.js","assets/use-fullscreen-BDuI7N9v.js","assets/input-r9Quj-Wz.js","assets/native-browser-profile-DzhVFLT-.js","assets/dialog-BILeWrjW.js","assets/index-DDl1Klq8.js","assets/select-BDGqAuUW.js","assets/index-Vop_09HO.js","assets/index-YmT68Y7e.js","assets/index-3JiP5kxz.js","assets/index-Dr21_43n.js","assets/dropdown-item-classes-BnhRhfW6.js","assets/textarea-pCEd31pK.js","assets/upload-to-presigned-url-BX0xW1VM.js","assets/code-xml-CZk1EfFK.js","assets/createLucideIcon-BoctUOGT.js","assets/mouse-vfnkfx-z.js","assets/scroll-area-Cyj4xGZY.js","assets/agent-tool-display-C60G0PP7.js","assets/tool-display-BStqtec1.js","assets/copy-to-clipboard-CJRVxVDQ.js","assets/tool-call-detail-context-oR1bjS8K.js","assets/useLocation-DZy4Cg_m.js","assets/create-navigation-state-CvU8J1o_.js","assets/use-reduced-motion-Ct4EudbJ.js","assets/index-D7KoCyks.js","assets/space-route-shell-DqD24EeP.js","assets/list-detail-nav-CcDHeDOC.js","assets/resizable-Cdqp5_V5.js","assets/easings-CakOcaC1.js","assets/springs-Bbklg5Js.js","assets/index-28q0Au9n.js","assets/single-value-8ZeNYmgT.js","assets/wrap-BYyiu7-b.js","assets/content-container-Cq65yQkS.js","assets/use-mobile-B1OGnZHI.js","assets/error-state-BQuBW9gq.js","assets/list-sidebar-panel-CxAJR55a.js","assets/use-space-route-resolution-CoOQ3qV6.js","assets/use-channel-directory-BfADvCyl.js","assets/use-channels-live-CLpIzLcQ.js","assets/use-thread-sidebar-default-width-DgADX6xV.js","assets/constants-CnSEdend.js","assets/pretext-cache-D_0EqXPe.js","assets/constants-CtrgcfYw.js","assets/thread-title-CPJcVXpV.js","assets/avatar-group-Cla-o094.js","assets/agent-avatar-_886U7FI.js","assets/blank-sidekick-DpORtd25.js","assets/react-Bal29uV8.js","assets/use-element-visible-DvvctlA_.js","assets/use-reduced-motion-preference-DPvOyvut.js","assets/index-DLmrcI2_.js","assets/use-sidekick-context-DMLG75_Y.js","assets/format-CDnOkMTZ.js","assets/avatar-DFlbq7dH.js","assets/channel-orb-B_EHad4R.js","assets/agent-orbs-CO4sTdCa.js","assets/command-DhIICPst.js","assets/popover-eKnFJy1H.js","assets/workspace-member-avatar-D1uMbhl0.js","assets/use-workspace-members-Dul_-yz7.js","assets/channel-menu-item-CdqY1VRE.js","assets/sidebar-nav-row-hKORK0-q.js","assets/thread-sidebar-dimensions-4STwb1HG.js","assets/use-channel-taxonomy-uNR3aU_i.js","assets/use-inbox-live-DFsxm82J.js","assets/inbox-offline-sync-B4uEMBxN.js","assets/inbox-thread-BUmeV2uT.js","assets/use-prefetch-thread-D8gUDHaM.js","assets/latest-async-queue-DIV2ff2f.js","assets/use-recent-channel-threads-BaUndA1T.js","assets/attention-read-mutation-BUxmUfJQ.js","assets/thread-list-presence-row-COyDwwBj.js","assets/thread-list-row-model-BXmI8iJL.js","assets/connected-source-pile-B-eWPRLR.js","assets/use-inbox-D82wJPsY.js","assets/attention-follow-controls--QlUgY5m.js","assets/nav-pin-button-BpgTWJDQ.js","assets/dropdown-menu-CdecpR_4.js","assets/index-CeEvQ-BK.js","assets/use-nav-pins-Bt28RSQ9.js","assets/shared-channel-subscription-6bQKrQFf.js","assets/card-BmsoVdub.js","assets/switch-DJuLblkn.js","assets/use-attention-enMsjIgc.js","assets/use-space-nav-v2-enabled-BvvyxwFn.js","assets/vendor-icons-8Zk9nafa.js","assets/privacy-badge-DQc2r_ii.js","assets/navigation-click-DuHNIfwk.js","assets/sidebar-thread-pretext-BcIdJYGZ.js","assets/use-container-width-DIwCfDig.js","assets/chat-indicator-Dyj_aPHp.js","assets/chat-indicator-config-yJSKSD-o.js","assets/use-sibling-scroll-DbIW9tdJ.js","assets/command-palette-Bc3Etv5N.js","assets/connections-automations-nav-feature-switch-D-emNXyX.js","assets/last-opened-thread-mY-6mUHF.js","assets/thread-nav-entry-BuZ8W9n2.js","assets/workspace-companion-route-search-ByxkZDIy.js","assets/use-thread-display-title-kQbuLocC.js","assets/thread-title-CVrDS0TA.js","assets/channel-page-shell-DXOcga-C.js","assets/use-realtime-messages-S30TCBFO.js","assets/typing-store-BJ5ksVch.js","assets/message-gap-repair-AftS59LA.js","assets/use-realtime-drafts-COZrH3uO.js","assets/conversation-header-Qr1u_tYG.js","assets/sidebar-BP7mvmgt.js","assets/sheet-Bu6om2Pe.js","assets/list-tree-DRBWuRDH.js","assets/app-chrome-layout-intent-DxuUXGlD.js","assets/content-toolbar-n4fsziQ7.js","assets/details-panel-shell-frame-DM_a1Bur.js","assets/use-resizable-side-panel-D4fMpKsd.js","assets/sidekick-avatar-v2-Cf9dNB1d.js","assets/sidekick-sidebar-CYr9di9a.js","assets/alert-dialog-DYOwg4Yo.js","assets/use-new-conversation-shortcut-CuG7RTWB.js","assets/command-palette-shortcut-3OyQtlcm.js","assets/use-channel-integrations-CXJNWS2C.js","assets/provider-icon-stack-BK3YhqH0.js","assets/provider-registry-R2UAw1WB.js","assets/collapsed-sidebar-toggle-BcT-mazH.js","assets/space-nav-selection-Dq_2PJhz.js","assets/space-name-label-BnZfbsEa.js","assets/use-app-shell-C3heqHQy.js","assets/use-narrow-viewport-C-XzSqau.js","assets/page-header-CAzq2CdL.js","assets/space-automations-D7mI-IV2.js","assets/space-page-header-DqZcSbzR.js","assets/spaces-breadcrumb-CiNZE5zW.js","assets/create-room-dialog-DCQx6yM0.js","assets/label-aAv419WU.js","assets/searchable-popover-DGHg9aXw.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 a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="b1452d47-7253-4fb6-bb1c-a74c83614fbf",e._sentryDebugIdIdentifier="sentry-dbid-b1452d47-7253-4fb6-bb1c-a74c83614fbf")}catch(t){}}();import{cZ as e,B as a,di as t,b7 as s,dg as n,aG as l,gn as r,cy as o,g6 as i,q3 as d,aH as c,q4 as u,ei as p,h as m,_ as h,aj as f}from"./index-CNFpuu8E.js";import{j as b,r as g}from"./react-DtWX0OMs.js";import{u as x}from"./useLocation-DZy4Cg_m.js";import{u as j}from"./use-channels-live-CLpIzLcQ.js";import{u as v}from"./use-users-live-C8ust0Ic.js";import{J as w}from"./json-render-registry-context-BQNhWC40.js";import{A as y,a as k}from"./app-chrome-layout-intent-DxuUXGlD.js";import{A as I}from"./app-shell-skeleton-BVakZ16N.js";import{A as N}from"./app-sidebar-fallback-Djq3sEy3.js";import{L as S,a as _}from"./app-sidebar-lazy-BtRen-Lv.js";import{T as C,u as $}from"./tool-call-detail-context-oR1bjS8K.js";import{C as T,I as z}from"./card-BmsoVdub.js";import{T as L,a as D,b as M}
2from"./tooltip-BICWObj0.js";import{M as A}from"./markdown-typography-CdVkmJoc.js";import{C as E,a as O,b as R}from"./collapsible-CHWcP_yK.js";import{u as B}from"./use-app-shell-C3heqHQy.js";import{u as P}from"./use-sidekick-context-DMLG75_Y.js";import{u as F}from"./use-space-nav-v2-enabled-BvvyxwFn.js";import{b as H}from"./sidebar-organizations-BZDpKwma.js";import"./use-feature-switch-AY-l0k-o.js";import"./content-container-Cq65yQkS.js";import"./skeleton-DcVPWm_E.js";import"./sidebar-BP7mvmgt.js";import"./sheet-Bu6om2Pe.js";import"./index-DDl1Klq8.js";import"./index-DtvoNnqd.js";import"./Combination-Bp7Yf08s.js";import"./tslib.es6-xGYA-reH.js";import"./use-mobile-B1OGnZHI.js";import"./create-navigation-state-CvU8J1o_.js";import"./index-D2a3mer3.js";function U({children:a,resolveSpaceSlugForChannelId:t}){const s=function(e,a){const t=e.split("/").filter(Boolean);if(t.length<2)return e||"/";const[s,n,l]=t,r=t[3];if("inbox"===n)return`/${s}/inbox`;if("channels"===n&&l&&"settings"===r){const e=null==a?void 0:a(l);return e?`/${s}/space/${e}`:`/${s}/space`}return"pings"!==n||!l||r&&"thread"!==r?"space"===n&&l?`/${s}/space/${l}`:"library"===n?`/${s}/library`:"sidekick"===n?`/${s}/sidekick`:e:`/${s}/pings/${l}`}(e({select:e=>(e.resolvedLocation??e.location).pathname}),t);return b.jsx("div",{className:"relative min-h-0 min-w-0 flex-1 overflow-hidden",children:b.jsx("div",{className:"absolute inset-0 flex min-h-0 min-w-0 flex-col overflow-x-visible overflow-y-hidden",children:a},s)})}const V={none:"",sm:"p-3",md:"p-4",lg:"p-6"};function q({padding:e="md",children:a}){return b.jsx(T,{className:`flex w-full min-w-0 flex-col gap-4 ${V[e]}`,children:a})}const G={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6"};function K({gap:e="sm",children:a}){return b.jsx("div",{className:`flex min-w-0 flex-col ${G[e]}`,children:a})}function W(){return b.jsx("hr",{className:"border-border/50 my-3"})}function Z({label:e,value:a}){return b.jsxs("div",{"data-slot":"webhook-field-row",className:"flex min-w-0 items-baseline gap-3 type-body",children:[b.jsx("span",{"data-slot":"webhook-field-label",className:"shrink-0 text-muted-foreground min-w-[80px]",children:e}),b.jsx("span",{className:"min-w-0 break-words text-fg-primary type-body",children:a})]})}function J({href:e,label:n,appearance:l="button"}){const r=function(e){let a;try{a=new URL(e)}catch{return null}return"http:"!==a.protocol&&"https:"!==a.protocol?null:a.toString()}(e);if(!r)return b.jsx("span",{className:"type-body text-muted-foreground",children:n});const o=b.jsxs("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:()=>{s.alerts.actionPerformed({action:"external_link_opened",surface:"webhook_display"})},className:"link"===l?"inline-flex items-center gap-1 type-body text-link hover:text-link-hover hover:underline":void 0,children:[n,"link"===l?b.jsx(t,{className:"size-3"}):null]});return"button"===l?b.jsx(a,{variant:"default",asChild:!0,className:"h-auto max-w-full whitespace-normal text-left",children:o}):o}const X={xs:"type-caption",sm:"type-body",base:"text-base"};function Y(e){const a=new Date(e);if(Number.isNaN(a.getTime()))return e;const t=Date.now()-a.getTime(),s=Math.floor(t/1e3);if(s<60)return"just now";const n=Math.floor(s/60);if(n<60)return`${n}m ago`;const l=Math.floor(n/60);if(l<24)return`${l}h ago`;const r=Math.floor(l/24);return r<30?`${r}d ago`:a.toLocaleDateString()}function Q({timestamp:e,size:a="sm"}){const[t,s]=g.useState(()=>Y(e));return g.useEffect(()=>{s(Y(e));const a=setInterval(()=>{s(Y(e))},6e4);return()=>clearInterval(a)},[e]),b.jsxs(L,{children:[b.jsx(D,{asChild:!0,children:b.jsx("time",{dateTime:e,className:`${X[a]} text-muted-foreground`,children:t})}),b.jsx(M,{children:new Date(e).toLocaleString()})]})}const ee={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6"},ae={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},te={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"};function se({gap:e="sm",align:a="center",justify:t="start",wrap:s=!1,children:n}){return b.jsx("div",{className:`flex min-w-0 ${ee[e]} ${ae[a]} ${te[t]} ${s?"flex-wrap":""}`,children:n})}const ne={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},le={xs:"type-caption",sm:"type-body",base:"text-base",lg:"text-lg",xl:"text-xl"},re={default:"text-fg-primary",muted:"text-fg-secondary",success:"text-success",warning:"text-warning",error:"text-destructive"};function oe({content:e,weight:a="normal",size:t="base",color:s="default"}){return b.jsx("span",{className:`min-w-0 break-words ${ne[a]} ${le[t]} ${re[s]}`,children:e})}function ie({payload:e,label:t="View full webhook payload",appearance:s="thread",children:l}){const[r,o]=g.useState(!1),i=b.jsx("pre",{"data-slot":"webhook-payload",className:`${A} mt-2 max-h-96 w-full overflow-auto whitespace-pre-wrap break-all`,children:b.jsx("code",{"data-slot":"webhook-payload-code",className:"type-code",children:e})});return"feed"===s?b.jsxs(E,{open:r,onOpenChange:o,className:"w-full min-w-0","data-slot":"webhook-data-disclosure",children:[b.jsxs("div",{className:"flex flex-wrap items-center gap-2","data-slot":"webhook-actions",children:[l,b.jsx(O,{asChild:!0,children:b.jsxs(a,{variant:"ghost","data-slot":"webhook-data-trigger",className:"group",children:[r?"Hide webhook data":"Show webhook data",b.jsx(n,{className:"group-data-[state=open]:rotate-180"})]})})]}),b.jsx(R,{children:i})]}):b.jsxs("details",{className:"group w-full",children:[b.jsx("summary",{className:"cursor-pointer type-caption text-muted-foreground transition-colors hover:text-foreground",children:t}),i]})}function de({children:e,title:a,badgeCount:t,surface:s,sourceLabels:n=[]}){const l=g.Children.toArray(e).slice(t),r=b.jsxs("div",{"data-slot":"webhook-content",className:"flex w-full min-w-0 flex-col gap-[length:var(--space-24)] [&_[data-slot=webhook-field-label]]:text-fg-secondary [&_[data-slot=webhook-field-row
2]>span:last-child]:type-body [&_:has(>[data-slot=webhook-field-row])]:gap-[length:var(--space-6)]",children:[a||n.length>0?b.jsxs("div",{className:"flex min-w-0 flex-col gap-1","data-slot":"webhook-header",children:[a?b.jsx("h3",{"data-slot":"webhook-title",className:"min-w-0 break-words type-heading-3 text-fg-primary",children:a}):null,n.length>0?b.jsx("p",{"data-slot":"webhook-source",className:"break-words type-caption text-fg-primary",children:n.join(" · ")}):null]}):null,l]});return"thread"===s?b.jsx(T,{className:`w-full ${z}`,"data-slot":"webhook-thread-card",children:r}):r}const ce={WebhookRoot:({element:e,children:a})=>b.jsx(de,{title:"string"==typeof e.props.title?e.props.title:null,badgeCount:"number"==typeof e.props.badgeCount&&Number.isInteger(e.props.badgeCount)&&e.props.badgeCount>=0?e.props.badgeCount:0,surface:"feed"===e.props.surface?"feed":"thread",sourceLabels:Array.isArray(e.props.sourceLabels)?e.props.sourceLabels.filter(e=>"string"==typeof e):[],children:a}),Card:({element:e,children:a})=>b.jsx(q,{padding:e.props.padding,children:a}),Row:({element:e,children:a})=>b.jsx(se,{gap:e.props.gap,align:e.props.align,justify:e.props.justify,wrap:e.props.wrap,children:a}),Column:({element:e,children:a})=>b.jsx(K,{gap:e.props.gap,children:a}),Text:({element:e})=>b.jsx(oe,{content:e.props.content,weight:e.props.weight,size:e.props.size,color:e.props.color}),Badge:()=>null,Link:({element:e})=>b.jsx(J,{href:e.props.href,label:e.props.label,appearance:"link"===e.props.appearance?"link":"button"}),RelativeTime:({element:e})=>b.jsx(Q,{timestamp:e.props.timestamp,size:e.props.size}),Divider:()=>b.jsx(W,{}),KeyValue:({element:e})=>b.jsx(Z,{label:e.props.label,value:e.props.value}),WebhookPayload:({element:e,children:a})=>b.jsx(ie,{label:e.props.label,payload:e.props.payload,appearance:"feed"===e.props.appearance?"feed":"thread",children:a})},ue=m(()=>h(()=>import("./tool-call-detail-sidebar-CAIt7Z-X.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])),e=>e.ToolCallDetailSidebar),pe=m(()=>h(()=>import("./space-route-shell-DqD24EeP.js"),__vite__mapDeps([46,1,2,3,47,48,49,50,44,45,51,52,53,54,55,56,57,37,8,9,10,29,27,58,15,13,59,60,61,62,63,64,22,19,20,65,66,67,68,69,70,71,72,73,74,75,76,77,78,25,18,31,79,80,81,82,7,83,42,84,85,86,87,88,89,90,91,92,93,94,95,96,97,4,98,99,28,100,101,102,103,104,30,105,106,107,108,6,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,35,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,24,150,151,152,153,154])),e=>e.SpaceRouteShell);function me(){return g.useContext(u)}function he(){const e=me();if(!e)throw new Error("useMainLayoutContext must be used within a _main layout route");return e}function fe(){var e;const a=me(),t=l();return(null==a?void 0:a.userId)??(null==(e=t.user)?void 0:e.id)??""}function be(){var e;const a=me(),t=l(),{data:s}=r(),n=c();return g.useMemo(()=>{var e;if(a)return{userId:a.userId,user:a.user};const l=(null==(e=t.user)?void 0:e.id)??"",r=[null==s?void 0:s.first_name,null==s?void 0:s.last_name].filter(Boolean).join(" ")||(null==s?void 0:s.email)||"",o=(null==n?void 0:n.avatar_url)??(null==s?void 0:s.avatar_url)??null;return{userId:l,user:{name:r,email:(null==s?void 0:s.email)??"",avatarUrl:o}}},[a,null==(e=t.user)?void 0:e.id,s,n])}function ge(){return v(),null}function xe(){return b.jsxs("output",{className:"flex h-full min-h-0 items-center justify-center","data-testid":"main-content-pending","aria-live":"polite",children:[b.jsx("span",{className:"sr-only",children:"Loading main content"}),b.jsx(f,{className:"size-6 animate-spin text-muted-foreground"})]})}function je(){var a,t;const s=l(),{data:n}=r(),{data:m}=j(),h=o({strict:!1});h.orgSlug,h.channelId;const f=x({select:e=>e.pathname}),v=e({select:e=>(e.resolvedLocation??e.location).pathname}),k=f.split("/").filter(Boolean),_=k.indexOf(h.orgSlug??""),$=_>=0?k[_+1]:void 0,T="inbox"===$||"alerts"===$,z=null!=h.spaceSlug?(null==(a=i(m,h.spaceSlug))?void 0:a.id)??void 0:void 0,L=T?void 0:h.channelId??h.spaceId??z,D=F(),M=g.useCallback(e=>d(m,e),[m]),A=D?function({pathname:e,spaceSlug:a,channelId:t,resolveSpaceSlugForChannelId:s}
2){const n=e.split("/").filter(Boolean),[,l,r]=n,o=n[3];return"space"===l&&r&&a?a:"channels"===l&&r&&"settings"===o&&t?(null==s?void 0:s(t))??null:null}({pathname:v,spaceSlug:h.spaceSlug,channelId:h.channelId,resolveSpaceSlugForChannelId:M}):null,E=h.dmId,O=(null==(t=s.user)?void 0:t.id)??"",[R,V]=g.useState(!0),q=c(),{sidebarOrganizations:G,organizationId:K,user:W}=g.useMemo(()=>{const e=[null==n?void 0:n.first_name,null==n?void 0:n.last_name].filter(Boolean).join(" ")||(null==n?void 0:n.email)||"",a=(null==q?void 0:q.organization_id)??"",t=(null==q?void 0:q.avatar_url)??(null==n?void 0:n.avatar_url)??null;return{sidebarOrganizations:H({profile:n,fallbackMembership:q}),organizationId:a,user:{name:e,email:(null==n?void 0:n.email)??"",avatarUrl:t}}},[n,q]),{sidekick:Z}=P(),J=(null==Z?void 0:Z.channelId)??null,{openReferrals:X}=B(),Y=g.useMemo(()=>(null==m?void 0:m.filter(e=>e.id!==J).map(e=>({id:e.id,label:e.name,slug:e.slug??null,visibility:e.visibility,channelType:e.channelType,defaultAgentId:e.defaultAgentId??e.agentId??null,setupThreadId:e.setupThreadId??null,templateId:e.templateId??null,avatarOrbId:e.avatarOrbId??null})))??[],[m,J]),Q=g.useMemo(()=>({userId:O,organizationId:K,user:W,showNewConversationPlaceholder:R,setShowNewConversationPlaceholder:V}),[O,K,W,R]);return b.jsxs(u.Provider,{value:Q,children:[b.jsx(ge,{}),b.jsx(w,{value:ce,children:b.jsx(y,{children:b.jsx(C,{children:b.jsx(g.Suspense,{fallback:b.jsx(I,{showGlobalHeader:!1}),children:b.jsx(ve,{sidebar:b.jsx(g.Suspense,{fallback:b.jsx(N,{}),children:b.jsx(S,{organizations:G,activeOrgId:K||"loading",channels:Y,activeChannelId:L,user:W,onOpenReferrals:X})}),channels:Y,activeChannelId:L,activeDmId:E,showHeader:!1,children:b.jsx(g.Suspense,{fallback:b.jsx(xe,{}),children:b.jsx(U,{resolveSpaceSlugForChannelId:D?M:void 0,children:null===A?b.jsx(p,{}):b.jsx(pe,{spaceSlug:A,userId:O,children:b.jsx(p,{})})})})})})})})})]})}function ve(e){const{isOpen:a,closeToolCallDetail:t}=$(),s=k().match(e=>e.leftSidebarMode,()=>"default");return b.jsx(_,{...e,animateAppNavigation:!0,leftSidebarMode:s,rightSidebar:b.jsx(g.Suspense,{fallback:null,children:b.jsx(ue,{})}),rightSidebarOpen:a,onRightSidebarOpenChange:e=>{e||t()}})}export{je as component,he as useMainLayoutContext,be as useMainLayoutOrAuthUser,fe as useMainLayoutUserId,me as useOptionalMainLayoutContext};
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.