1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0804f-86ff-7920-90ec-40f4c4c956ac")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,789821,e=>{"use strict";var n=e.i(943306),t=e.i(447782),i=e.i(935214),r=e.i(297068),s=e.i(746632),l=e.i(156419),a=e.i(581427),o=e.i(779786),c=e.i(74288),d=e.i(93649),u=e.i(47513);let p="import:analysis";function h({details:e}){let{upsertActivity:n,removeActivity:t}=(0,u.useLiveActivityActions)(),i=e?.status==="processing";return(0,r.useEffect)(()=>i?(n({id:p,kind:"import",title:"Chat import",state:"working",statusLabel:"Analyzing your chats",icon:d.Import,detail:"Snow is reading your imported conversations. You can keep chatting while it finishes."}),()=>{t(p)}):void t(p),[i,t,n]),null}function m(){let{user:e}=(0,i.useUser)(),t=function(e){let{workspace:n}=(0,a.useWorkspace)(),[t,i]=(0,r.useState)(null),d=(0,r.useRef)(!1),u=(0,r.useRef)(!1),p=(0,r.useRef)(null),h=(0,r.useRef)(!1),m=(0,r.useRef)(0),x=(0,r.useRef)(0),f=(0,r.useCallback)(()=>{u.current=!1,null!==p.current&&(window.clearTimeout(p.current),p.current=null)},[]),g=(0,r.useCallback)(()=>{m.current+=1,m.current<3||(h.current&&s.toast.error("Unable to check import status right now. Please refresh and try again."),i(null),f())},[f]),b=(0,r.useCallback)(async()=>{let e=x.current,t=()=>d.current&&x.current===e;try{let e=await (0,l.workspaceFetchFor)(n,"/api/import/analyze",{method:"GET"});if(!e.ok){if(!t())return null;let n=await e.json().catch(()=>null);if(429===e.status){let e=(0,o.isObjectRecord)(n)&&"string"==typeof n.error?n.error:"Too many import status checks. Please try again later.";return s.toast.error(e),i(null),f(),null}return g(),null}let r=(0,c.parseImportStatusDetails)(await e.json());if(!t())return null;if(!r)return g(),null;return m.current=0,i(r),"processing"===r.status?h.current=!0:("completed"===r.status?h.current&&s.toast.success("Import complete. Snow learned about you."):"failed"===r.status&&h.current&&s.toast.error("Import failed. Please try again."),f()),r}catch(e){if(!t())return null;return g(),null}},[g,f,n]),v=(0,r.useCallback)(()=>{if(u.current)return;u.current=!0;let e=()=>{p.current=window.setTimeout(async()=>{await b(),u.current&&e()},15e3)};e()},[b]);return(0,r.useEffect)(()=>(d.current=!0,()=>{d.current=!1,f()}),[f]),(0,r.useEffect)(()=>{if(x.current+=1,!e){i(null),h.current=!1,m.current=0,f();return}return(async()=>{let e=await b();e?.status==="processing"&&v()})(),()=>{x.current+=1,f()}},[e,b,v,f]),t}(e?.id);return(0,n.jsx)(h,{details:t})}var x=e.i(901850),f=e.i(766693),g=e.i(164247),b=e.i(252209),v=e.i(873914);function j(){let e=(0,f.usePathname)(),{panelOpen:n,panel:t,panelItemId:i,panelItemSubPath:s}=(0,v.useShellState)();return(0,r.useEffect)(()=>{(0,b.setActiveApp)((0,g.computeActiveApp)({panelOpen:n,selectedAppId:t.selectedAppId,appRoutes:t.appRoutes,appSubView:t.appSubView,panelItemId:i,panelItemSubPath:s}))},[n,t.selectedAppId,t.appRoutes,t.appSubView,i,s]),(0,r.useEffect)(()=>{(0,b.setActiveMainPage)((0,g.computeMainPageActiveApp)(e))},[e]),(0,r.useEffect)(()=>()=>{(0,b.setActiveApp)(null),(0,b.setActiveMainPage)(null)},[]),null}var w=e.i(744636),A=e.i(476772),S=e.i(122488),N=e.i(903090),P=e.i(781914),C=e.i(569031),k=e.i(100781),k=k,E=e.i(662322),y=e.i(265591),I=e.i(72696),R=e.i(27464),T=e.i(176300),L=e.i(583327),_=e.i(901397),z=e.i(106391),D=e.i(370315),B=e.i(576861),O=e.i(980719),M=e.i(760258),G=e.i(389944),F=e.i(444231),U=e.i(124312),H=e.i(395716),V=e.i(792279),W=e.i(809382),q=e.i(839221),K=e.i(514198),Y=e.i(291010),X=e.i(625463),Q=e.i(700292),$=e.i(987576);function J({allAppsLoaded:e,appOrder:t,AppsPanelGrid:i,builtinTiles:r,canCreateApp:s=!0,gridApps:l,gridScrollRef:a,isPendingOpen:o,loadGridApps:c,loadingState:d,obscured:u,onCreateApp:p,onIconGenerationComplete:h,onSaveAppOrder:m,onSelectApp:x,onSelectBuiltinItem:f,onUpdateAppStar:g,otherApps:b,selectedAppId:v,setAppOrder:j,setGridApps:w,starredApps:A}){let S=(0,$.useAppsPanelSearch)({builtinTiles:r,onSelectApp:x,onSelectBuiltinItem:f,otherApps:b,starredApps:A}),N=null!==v||u,C=!o&&"loaded"===d&&(l.length>0||e),k=S.visibleBuiltinTiles&&S.visibleBuiltinTiles.length>0&&f?(0,n.jsx)(X.BuiltinTilesSection,{items:S.visibleBuiltinTiles,onSelect:f,activeSearchResultId:S.activeBuiltinResultId,isSearchResult:S.isSearching}):null,E=S.isSearching&&!S.hasResults?(0,n.jsx)("div",{role:"status",className:"flex min-h-40 items-center justify-center text-center text-sm text-muted-foreground",children:"No apps or essentials found"}):null,y=0===l.length&&!S.isSearching,I=r&&r.length>0&&f?(0,n.jsx)(X.BuiltinTilesSection,{items:r,onSelect:f,forceExpanded:!0}):null;return(0,n.jsxs)(n.Fragment,{children:[!u&&o?(0,n.jsx)("div",{className:"contents",...P.APP_REGION_PRESS_GUARD,children:(0,n.jsx)(B.AppLoadingIndicator,{className:(0,q.cn)("absolute inset-x-0 top-[62px] bottom-0",V.PANEL_CONTENT_ENTER_CLASS),label:"Opening appâ¦"})}):null,u||o||"loading"!==d||0!==l.length?null:(0,n.jsx)(H.ShellScrollFade,{className:(0,q.cn)("absolute inset-0 z-10",V.PANEL_CONTENT_ENTER_CLASS),scrollClassName:"overflow-x-hidden px-6",children:(0,n.jsx)(M.AppGridSkeleton,{})}),u||"error"!==d||o?null:(0,n.jsx)("div",{className:(0,q.cn)("absolute inset-0 flex",V.PANEL_CONTENT_ENTER_CLASS),children:(0,n.jsx)(U.ErrorState,{onRetry:c})}),C?(0,n.jsx)(H.ShellScrollFade,{inert:N||void 0,className:(0,q.cn)("absolute inset-0 z-10",N?"hidden":V.PANEL_CONTENT_ENTER_CLASS),scrollRef:a,scrollClassName:"overflow-x-hidden px-6",children:(0,n.jsxs)("div",{className:(0,q.cn)("mx-auto w-full max-w-5xl",y?"flex min-h-full flex-col gap-8":"space-y-8"),children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(Y.AppSearchField,{className:"min-w-0 flex-1",ariaLabel:"Search apps",placeholder:Y.APP_SEARCH_PLACEHOLDER,value:S.query,onValueChange:S.handleValueChange,onClear:S.clear,onKeyDown:S.handleKeyDown,ariaControl
1s:S.isSearching?K.APPS_SEARCH_RESULTS_ID:void 0,ariaExpanded:S.isSearching?S.hasResults:void 0,ariaActiveDescendant:S.activeResultDomId,clearAriaLabel:"Clear apps search"}),s&&(0,n.jsxs)(W.Button,{variant:"secondary",className:"shrink-0 px-3 font-medium",onClick:p,title:"Build a new app with Snow",children:[(0,n.jsx)(O.Plus,{className:"size-4"}),(0,n.jsx)("span",{children:"New App"})]})]}),(0,n.jsx)("div",{id:S.isSearching?K.APPS_SEARCH_RESULTS_ID:void 0,role:S.isSearching?"region":void 0,"aria-label":S.isSearching?"App search results":void 0,className:(0,q.cn)(y?"flex flex-1 flex-col":"space-y-8"),children:0===l.length?S.isSearching?(0,n.jsxs)(n.Fragment,{children:[k,E]}):(0,n.jsx)(G.EmptyAppsBody,{prompt:(0,n.jsx)(F.EmptyState,{...s?{onCreateApp:p}:{}}),essentials:I}):(0,n.jsxs)(n.Fragment,{children:[S.isSearching?(0,n.jsx)(Q.StaticAppsGrid,{starredApps:S.visibleStarredApps,otherApps:S.visibleOtherApps,onSelectApp:e=>void x(e),onIconGenerationComplete:h,activeSearchResultId:S.activeAppResultId,isSearchResult:!0}):i?(0,n.jsx)(i,{gridApps:l,setGridApps:w,starredApps:A,otherApps:b,appOrder:t,setAppOrder:j,onSelectApp:x,onUpdateAppStar:g,onSaveAppOrder:m,onIconGenerationComplete:h}):(0,n.jsx)(Q.StaticAppsGrid,{starredApps:A,otherApps:b,onSelectApp:e=>void x(e),onIconGenerationComplete:h}),k,E]})})]})}):null]})}var Z=e.i(931988),ee=e.i(872569),en=e.i(864371),et=e.i(211321),ei=e.i(965917);function er(){return(0,n.jsxs)(ei.Tooltip,{children:[(0,n.jsx)(ei.TooltipTrigger,{render:(0,n.jsx)(et.DropdownMenuTrigger,{render:(0,n.jsx)(W.Button,{type:"button",variant:"ghost",size:"icon-sm",className:"text-foreground hover:bg-(--shell-item-hover) hover:backdrop-blur-md","aria-label":"More actions"})}),children:(0,n.jsx)(en.MoreVertical,{className:"size-4"})}),(0,n.jsx)(ei.TooltipContent,{children:"More actions"})]})}function es({href:e}){return(0,n.jsxs)(et.DropdownMenuItem,{className:"cursor-pointer",render:(0,n.jsx)(Z.default,{href:e,target:"_blank",rel:"noopener noreferrer"}),children:[(0,n.jsx)(ee.ExternalLink,{className:"size-4"}),"Open in new tab"]})}var el=e.i(170839),ea=e.i(348493),eo=e.i(488554);let ec="data-history-entry-key";function ed({direction:e,entries:t,onStep:i}){let[s,l]=(0,r.useState)(!1),a=(0,r.useRef)(null),o=(0,r.useRef)(null),c=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useRef)(!1),p=(0,r.useRef)(t);(0,r.useEffect)(()=>{p.current=t});let h="back"===e,m=t[0]??null;s&&null===m&&l(!1);let x=(0,r.useCallback)(()=>{null!==o.current&&(window.clearTimeout(o.current),o.current=null),c.current=null},[]),f=(0,r.useRef)(null),g=(0,r.useCallback)(()=>{let e=()=>{document.removeEventListener("pointerup",n),document.removeEventListener("pointercancel",e),f.current=null},n=n=>{e();let t=document.elementFromPoint(n.clientX,n.clientY),i=t?.closest(`[${ec}]`)?.getAttribute(ec);if(!i)return;let r=p.current.find(e=>e.key===i);r&&(l(!1),r.select())};document.addEventListener("pointerup",n),document.addEventListener("pointercancel",e),f.current=e},[]);(0,r.useEffect)(()=>()=>{x(),f.current?.()},[x]);let b=h?"Back":"Forward";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(ei.Tooltip,{children:[(0,n.jsx)(ei.TooltipTrigger,{render:(0,n.jsx)(W.Button,{ref:a,variant:"ghost",size:"icon-sm",className:"touch-hit-target hover:bg-(--shell-item-hover) hover:backdrop-blur-md",disabled:null===m,onPointerDown:e=>{("mouse"!==e.pointerType||0===e.button)&&(u.current=!1,c.current={x:e.clientX,y:e.clientY},d.current=e.pointerId,o.current=window.setTimeout(()=>{o.current=null,u.current=!0;let e=d.current,n=a.current;null!==e&&n?.hasPointerCapture&&n.hasPointerCapture(e)&&n.releasePointerCapture(e),g(),l(!0)},350))},onPointerMove:e=>{let n=c.current;null===n||null===o.current||Math.hypot(e.clientX-n.x,e.clientY-n.y)>10&&x()},onPointerUp:x,onPointerLeave:x,onPointerCancel:x,onClick:()=>{if(u.current){u.current=!1;return}i()},onContextMenu:e=>{e.preventDefault(),x(),l(!0)},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),l(!0))},"aria-label":b,"aria-haspopup":"menu","aria-expanded":s}),children:h?(0,n.jsx)(ea.ChevronLeft,{className:"size-4"}):(0,n.jsx)(eo.ChevronRight,{className:"size-4"})}),!s&&(0,n.jsx)(ei.TooltipContent,{children:m?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"opacity-70",children:[b," to "]}),(0,n.jsx)("span",{className:"font-medium",children:m.label}),t.length>1&&(0,n.jsx)("div",{className:"mt-0.5 text-[11px] opacity-70",children:"Hold for history"})]}):b})]}),(0,n.jsx)(et.DropdownMenu,{open:s,onOpenChange:e=>{e||l(!1)},children:(0,n.jsx)(et.DropdownMenuContent,{anchor:a,align:"start",sideOffset:6,finalFocus:a,className:"max-h-80 max-w-64 min-w-44","aria-label":`${b} history`,children:t.map(e=>(0,n.jsxs)(et.DropdownMenuItem,{className:"cursor-pointer",onClick:e.select,[ec]:e.key,children:[(0,n.jsx)("span",{className:"flex size-4.5 shrink-0 items-center justify-center","aria-hidden":"true",children:e.icon}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),null!==e.parentLabel&&(0,n.jsx)("span",{className:"ml-2 max-w-24 shrink-0 truncate text-xs text-muted-foreground",children:e.parentLabel})]},e.key))})})]})}var eu=e.i(576848),ep=e.i(857821),eh=e.i(903525);let em=(0,C.default)(()=>e.A(921859).then(e=>e.AppView),{loadableGenerated:{modules:[244893]},ssr:!1,loading:()=>null}),ex=(0,C.default)(()=>e.A(63957).then(e=>e.AppActionsPanelView),{loadableGenerated:{modules:[290473]},ssr:!1,loading:()=>null}),ef=(0,C.default)(()=>e.A(464625).then(e=>e.AppWebsitePanelView),{loadableGenerated:{modules:[815433]},ssr:!1,loading:()=>null}),eg=(0,C.default)(()=>e.A(884602).then(e=>e.AppSettingsOverlay),{loadableGenerated:{modules:[373188]},ssr:!1}),eb=()=>{},ev=(0,r.memo)(function({onClose:e,hideDesktopClose:i=!1,panelOpen:s,isExpanded:l
1=!1,onToggleExpand:a,isPrimaryPane:o=!1,onSwapPrimaryPane:c,history:d,onOpenAppsGrid:u,selectedAppId:p,selectedApp:h,settingsOpen:m,setSettingsOpen:x,gridApps:f,setGridApps:g,starredApps:b,otherApps:v,AppsPanelGrid:j,gridScrollRef:w,appOrder:C,setAppOrder:O,onSelectApp:M,onUpdateAppStar:G,onSaveAppOrder:F,onIconGenerationComplete:U,appSubView:H,onOpenAppSubView:K,loadingState:Y,allAppsLoaded:X,loadGridApps:Q,shouldRenderAppView:$,appsToRender:Z,appRoutes:ee,appRouteEpochs:en,reloadKeys:ea,loadingAppId:eo,activeBuildingAppIds:ec,inactiveBuildingAppIds:ev,selectedAppErrors:ej,darkMode:ew,userId:eA,userName:eS,isPendingOpen:eN,onAppError:eP,onReloadApp:eC,onReloadAppSource:ek,onReloadRequest:eE,onFixWithAI:ey,onPermissionPolicyUpdated:eI,settingsApp:eR,onOpenSettings:eT,canManageApp:eL=!0,onSettingsUpdate:e_,onSettingsDelete:ez,onCreateApp:eD,canCreateApp:eB=!0,builtinTiles:eO,onSelectBuiltinItem:eM,selectedBuiltinItem:eG,builtinContent:eF,hostRequest:eU}){let eH,eV=a?(0,n.jsxs)(ei.Tooltip,{children:[(0,n.jsx)(ei.TooltipTrigger,{render:(0,n.jsx)(W.Button,{variant:"ghost",size:"icon-sm",onClick:a,className:"hover:bg-(--shell-item-hover) hover:backdrop-blur-md max-lg:hidden","aria-label":l?"Switch to split view":"Use full width","aria-pressed":l}),children:l?(0,n.jsx)(I.Minimize2,{className:"size-4"}):(0,n.jsx)(y.Maximize2,{className:"size-4"})}),(0,n.jsx)(ei.TooltipContent,{children:l?"Split view":"Full width"})]}):null,eW=c&&!l?(0,n.jsxs)(ei.Tooltip,{children:[(0,n.jsx)(ei.TooltipTrigger,{render:(0,n.jsx)(W.Button,{variant:"ghost",size:"icon-sm",onClick:c,className:"hover:bg-(--shell-item-hover) hover:backdrop-blur-md max-lg:hidden","aria-label":o?"Make the panel the narrower pane":"Make the panel the wider pane"}),children:(0,n.jsx)(k.default,{className:(0,q.cn)("size-4 transition-transform duration-300 ease-[cubic-bezier(0.32,0.72,0,1)]",o&&"-scale-x-100")})}),(0,n.jsx)(ei.TooltipContent,{children:o?"Narrow panel":"Wide panel"})]}):null,eq=(0,t.useAppBuildRuntimeForApp)(p),eK=(0,z.projectBuilderDraftOntoInstalledRuntime)({draft:eq.workingApp,installedApp:h,builderSessionId:eq.builderSessionId}),eY=h?.status==="building",eX=!!p&&ev.has(p),eQ=!!p&&(ec.has(p)||eq.activeAppId===p),e$=eq.isBuildWorking,eJ=(0,_.resolveAppBuildSurfaceStatus)({hasPendingForm:eq.hasPendingForm,isInactive:eX,isActive:eQ}),eZ=eG??null,e0=void 0!==u,e1=d||e0?(0,n.jsxs)("div",{className:"flex flex-none items-center gap-0.5",children:[d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ed,{direction:"back",entries:d.backEntries,onStep:d.goBack}),(0,n.jsx)(ed,{direction:"forward",entries:d.forwardEntries,onStep:d.goForward})]}),e0&&(0,n.jsxs)(ei.Tooltip,{children:[(0,n.jsx)(ei.TooltipTrigger,{render:(0,n.jsx)(W.Button,{variant:"ghost",size:"icon-sm",onClick:u,className:"touch-hit-target hover:bg-(--shell-item-hover) hover:backdrop-blur-md lg:hidden","aria-label":"Apps home"}),children:(0,n.jsx)(eh.AppsGridIcon,{className:"size-4","aria-hidden":"true"})}),(0,n.jsx)(ei.TooltipContent,{children:"Apps home"})]}),d&&(0,n.jsx)("div",{role:"separator","aria-orientation":"vertical",className:"mx-1 h-4 w-px shrink-0 bg-border/60"})]}):null,e4=p&&eL?H:null,e2=eR?.website??null,[e5,e7]=(0,r.useState)(0),[e8,e3]=(0,r.useState)(0),[e9,e6]=(0,r.useState)(0),ne=(0,el.useAppVersionPreview)({appId:p,onRestored:async()=>{Q(),p&&await ek(p),K(null)},onLeaveToApp:()=>K(null)}),nn=ne.exitPreview;(0,r.useEffect)(()=>{"versions"!==e4&&nn()},[e4,nn]);let nt=ne.preview?.version??null,ni=null!==eZ||eN||null!==e4&&!("versions"===e4&&null!==ne.preview&&!ne.previewLoading)||e$||eY&&!eK,nr=(0,r.useContext)(S.AppViewportSurfaceContext),ns=nr?.hostCollapse,nl=s&&null!==p&&!ni&&!m;return(0,r.useLayoutEffect)(()=>{nl||ns?.()},[nl,ns]),(0,n.jsxs)("div",{className:"flex h-full flex-col",children:[(0,n.jsx)("div",{"data-shell-chrome":"band",className:(0,q.cn)("z-30 flex h-[62px] items-center justify-between px-4 pt-5 md:pt-0","absolute top-0 right-0 left-0","border-border"),children:(0,n.jsxs)(ei.TooltipProvider,{children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e1,p&&h&&(eH=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.AppIcon,{app:{id:h.id,name:h.name,image:h.image},size:"sm",className:"h-7! w-7! shrink-0 rounded-md",priority:!0,onGenerationComplete:U}),(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:h.name})]}),eL?(0,n.jsx)("button",{type:"button",onClick:()=>void eT(),className:"flex min-w-0 items-center gap-2 rounded-md p-1 transition-colors hover:bg-(--shell-item-hover)","aria-label":"Open app settings",children:eH}):(0,n.jsx)("div",{className:"flex min-w-0 items-center gap-2 p-1",children:eH})),!p&&(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-2 p-1",children:[(0,n.jsx)("span",{className:(0,q.cn)("flex size-7 shrink-0 items-center justify-center text-foreground",e0&&!eZ&&"max-lg:hidden"),"aria-hidden":"true",children:eZ?.icon??(0,n.jsx)(eh.AppsGridIcon,{className:"size-4.5"})}),(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-foreground",children:eZ?.name??"Apps"})]})]}),(0,n.jsxs)("div",{className:"flex flex-none items-center gap-1.5",children:[nt&&(0,n.jsx)(el.AppVersionPreviewControl,{onRestore:()=>ne.requestRestore(nt),onClose:ne.closePreview}),p?(0,n.jsxs)(et.DropdownMenu,{children:[(0,n.jsx)(er,{}),(0,n.jsxs)(et.DropdownMenuContent,{align:"end",sideOffset:8,children:[eL&&(0,n.jsx)(es,{href:(0,eu.buildAppSubViewFullPagePath)(p,e4)}),(0,n.jsxs)(et.DropdownMenuItem,{onClick:()=>{p&&!ne.previewLoading&&("actions"===e4?e7(e=>e+1):"website"===e4?e3(e=>e+1):"versions"!==e4||ne.preview?eC(p):e6(e=>e+1))},className:"cursor-pointer",children:[(0,n.jsx)(R.RefreshCw,{className:"size-4"}),"Reload"]}),eL&&(0,n.jsxs)(et.DropdownMenuItem,{onClick:()=>K("actions"),className:"cursor-pointer",children:[(0,n.jsx)(ep.ActionIcon,{className:"size-4"}),"Actions"]}),eL&&h?.websiteUpdatedAt!=null&&(0,n.jsxs)(et.DropdownMenuItem,{onClick:()=>K("website"),className:"cursor-pointer",children:[(0,n.jsx)(A.Globe,{className:"size-4"}),"Website"]}),eL&&(0,n.jsxs)(et.DropdownMenuItem,{onClick:()=>ne.preview?ne.exitPreview():K("versions"),className:"cursor-pointer",children:[(0,n.jsx)(E.History,{className:"size-4"}),"Versions"]})]})]}):eZ?eZ.fullPageHref&&(0,n.jsxs)(et.DropdownMenu,{children:[(0,n.jsx)(er,{}),(0,n.jsx)(et.DropdownMenuContent,{align:"end",sideOffset:8,children:(0,n.jsx)(es,{href:eZ.fullPageHref})})]}):(0,n.jsxs)(et.DropdownMenu,{children:[(0,n.jsx)(er,{}),(0,n.jsx)(et.DropdownMenuContent,{align:"end",sideOffset:8,children:(0,n.jsx)(es,{href:(0,eu.buildAppsPath)({})})})]}),eW,eV,(0,n.jsxs)(ei.Tooltip,{children:[(0,n.jsx)(ei.TooltipTrigger,{render:(0,n.jsx)(W.Button,{type:"button",variant:"ghost",size:"icon-sm",onClick:e,className:(0,q.cn)("touch-hit-target text-foreground hover:bg-(--shell-item-hover) hover:backdrop-blur-md",i&&"lg:hidden"),"aria-label":"Close side panel"}),children:(0,n.jsx)(T.X,{className:"size-4"})}),(0,n.jsx)(ei.TooltipContent,{children:"Close side panel"})]})]})]})}),(0,n.jsxs)("div",{className:"relative flex flex-1 overflow-hidden",children:[(0,n.jsx)(J,{allAppsLoaded:X,appOrder:C,AppsPanelGrid:j,builtinTiles:eO,canCreateApp:eB,gridApps:f,gridScrollRef:w,isPendingOpen:eN,loadGridApps:Q,loadingState:Y,obscured:null!=eZ,onCreateApp:eD,onIconGenerationComplete:U,onSaveAp
1pOrder:F,onSelectApp:M,onSelectBuiltinItem:eM,onUpdateAppStar:G,otherApps:v,selectedAppId:p,setAppOrder:O,setGridApps:g,starredApps:b}),eF,(eY||e$)&&null==eZ&&!e4&&(0,n.jsx)("div",{"data-app-plane":"",className:"absolute inset-x-0 top-[62px] bottom-0 z-10",...P.APP_REGION_PRESS_GUARD,children:e$?(0,n.jsx)(L.AppBuildWorkingOverlay,{phase:eq.workPhase,stepLabel:eq.stepLabel,isDarkMode:ew}):(0,n.jsxs)("div",{className:"pointer-events-none flex h-full flex-col",children:[(0,n.jsxs)("div",{className:"flex flex-none items-center gap-2 border-b border-border/60 bg-primary/5 px-4 py-2 text-xs font-semibold text-primary",children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"size-1.5 rounded-full bg-primary"}),_.BUILD_SURFACE_STATUS_LABELS[eJ]]}),!eK&&(0,n.jsx)(D.AppBuildStatusSurface,{className:"min-h-0 flex-1",showStatusBar:!1,status:eJ,onReturnToChat:e})]})}),$&&(0,n.jsx)("div",{inert:ni||void 0,className:(0,q.cn)("absolute inset-0",ni?"pointer-events-none opacity-0":V.PANEL_CONTENT_ENTER_CLASS),...P.APP_REGION_PRESS_GUARD,children:(0,n.jsx)(em,{appsToRender:Z,workingVersion:eK,previewVersion:ne.previewApp,appRoutes:ee,appRouteEpochs:en,reloadKeys:ea,selectedAppId:p,loadingAppId:eo,selectedAppErrors:ej,previewDevice:"desktop",isDeviceRotated:!1,isResponsivePreview:!1,panelOpen:s,viewportActive:nl,openImmediately:eN,transparentSurface:!0,darkMode:ew,userId:eA,userName:eS,onAppError:eP,onReloadApp:eC,onReloadRequest:eE,onFixWithAI:ey,onPermissionPolicyUpdated:eI,hostRequest:eU})}),null==eZ&&ne.previewLoading&&(0,n.jsx)(B.AppLoadingIndicator,{className:(0,q.cn)("absolute inset-x-0 top-[62px] bottom-0 z-20",V.PANEL_CONTENT_ENTER_CLASS),label:"Loading versionâ¦"}),p&&h&&"actions"===e4&&(0,n.jsx)(ex,{app:{id:h.id,name:h.name,image:h.image},active:s,reloadSignal:e5},h.id),p&&"website"===e4&&(0,n.jsx)("div",{className:"contents",...P.APP_REGION_PRESS_GUARD,children:(0,n.jsx)(ef,{appId:p,website:e2,darkMode:ew,builderPreview:eK?.team?.builderPreview,reloadSignal:e8})}),p&&"versions"===e4&&!ne.preview&&(0,n.jsx)(el.AppVersionsPanelView,{appId:p,reloadSignal:e9,transparentSurface:!0,onPreview:ne.startPreview,onRestore:ne.requestRestore},p),(0,n.jsx)(el.AppVersionRestoreDialog,{controller:ne}),eL&&eR&&(0,n.jsx)(eg,{app:eR,open:m,onOpenChange:x,onUpdate:e_,onDelete:ez,libraryImageSelection:null,pendingLibraryScreenshotUploads:[],failedLibraryScreenshotUploads:[],onLibraryImageSelectionChange:eb,onFailedLibraryScreenshotUploadDismiss:eb,onStartLibraryCaptureFlow:eb,pendingSubmitDialogReopen:!1,onPendingSubmitDialogConsumed:eb,libraryScreenshotsEditable:!1,libraryScreenshotsHelpHref:(0,eu.buildAppWorkspacePath)(eR.id)})]})]})});ev.displayName="AppsPanelContent";var ej=e.i(429284),ew=e.i(150799),eA=e.i(712173),eS=e.i(16970),eN=e.i(329929),eP=e.i(188578),eC=e.i(489841);function ek({item:e,size:t="sm",className:i,fallback:r=null}){return null===e.image?r:(0,n.jsx)(N.AppIcon,{app:{id:e.id,name:e.name,image:e.image},size:t,className:i,decorative:!0})}var eE=e.i(14467),ey=e.i(593958),eI=e.i(76841),eR=e.i(647718);function eT({selectedItemId:e,selectedSubPath:t,panelOpen:i,onNavigateItem:s,onOpenApp:l}){let[a,o]=(0,r.useState)({}),[c,d]=(0,r.useState)({}),[u,p]=(0,r.useState)({});if(e){let n=a[e];n&&n.subPath===t||o({...a,[e]:{subPath:t}})}(0,r.useEffect)(()=>{if(!e||c[e]||u[e])return;let n=(0,eR.getBuiltinPanelItem)(e);if(!n)return;let t=!0;return n.load().then(n=>{t&&d(t=>t[e]?t:{...t,[e]:n.default})}).catch(n=>{t&&((0,eE.captureException)(n,{tags:{area:"shell-panel-item-load"},extra:{itemId:e}}),p(n=>({...n,[e]:!0})))}),()=>{t=!1}},[e,c,u]);let h=(0,r.useCallback)(e=>{p(n=>{if(!n[e])return n;let t={...n};return delete t[e],t})},[]),m=Object.keys(a);return 0===m.length?null:(0,n.jsx)("div",{className:(0,q.cn)("absolute inset-0",e?"z-20":"pointer-events-none z-0",!i&&"pointer-events-none invisible"),children:m.map(t=>{let i=t===e,r=c[t],o=a[t]?.subPath??null,d=(0,eR.getBuiltinPanelItem)(t)?.renderSkeleton(o)??null;return(0,n.jsx)(eI.PanelItemViewLayer,{active:i,children:r?(0,n.jsx)(r,{subPath:o,onNavigate:(e,n)=>s(t,e,n),onOpenApp:l}):u[t]?i&&(0,n.jsx)(ey.PanelErrorState,{className:"h-full p-8",title:`Failed to load ${(0,eR.getBuiltinPanelItem)(t)?.name??"this view"}`,description:"Something went wrong while loading it.",onRetry:()=>h(t)}):i&&d},t)})})}var eL=e.i(26175),e_=e.i(963),ez=e.i(275725),eD=e.i(908178);let eB="__shellPanelBackClose",eO={canGoBack:!1,goBack:()=>{},close:()=>{}};function eM(e){return(0,o.isObjectRecord)(e)&&!0===e[eB]}function eG(){return window.matchMedia?.(eC.BELOW_DESKTOP_MEDIA_QUERY).matches??!1}function eF({location:e,height:t}){let i=(0,eL.parseBuiltinPanelItemLocation)(e),r=i?(0,eR.getBuiltinPanelItem)(i.itemId)?.renderSkeleton(i.subPath)??null:null,s=null!==e&&null===i;return(0,n.jsxs)("div",{className:"lg:hidden","aria-hidden":"true",children:[(0,n.jsx)("div",{className:"fixed inset-0 z-40 bg-black/25 backdrop-blur-xs"}),(0,n.jsxs)("div",{className:"apps-panel-mobile-drawer fixed inset-x-0 bottom-0 z-40 flex flex-col overflow-hidden bg-background ring-1 ring-foreground
1/10",style:{height:t},children:[(0,n.jsx)("div",{className:"pointer-events-none absolute top-0 left-1/2 z-40 -translate-x-1/2",children:(0,n.jsx)("div",{className:"mt-2 mb-2 flex h-6 w-24 items-start justify-center",children:(0,n.jsx)("div",{className:"h-1 w-12 shrink-0 rounded-full bg-muted-foreground/30"})})}),(0,n.jsx)("div",{className:"relative mx-auto min-h-0 w-full max-w-lg flex-1 overflow-hidden",children:s?(0,n.jsx)(B.AppLoadingIndicator,{className:"absolute inset-x-0 top-[62px] bottom-0",label:"Opening appâ¦"}):r||(i?null:(0,n.jsx)(H.ShellScrollFade,{className:"absolute inset-0",scrollClassName:"overflow-x-hidden px-6",children:(0,n.jsx)(M.AppGridSkeleton,{})}))})]})]})}let eU=(0,eR.builtinGalleryTiles)(),eH="calc(100dvh - env(safe-area-inset-top, 0px))";function eV({target:e,label:t}){if("grid"===e.kind)return(0,n.jsx)(eh.AppsGridIcon,{className:"size-4"});if("app"===e.kind)return"actions"===e.subView?(0,n.jsx)(ep.ActionIcon,{className:"size-4"}):"website"===e.subView?(0,n.jsx)(A.Globe,{className:"size-4"}):(0,n.jsx)(N.AppIcon,{app:e.app,size:"sm",className:"h-4.5! w-4.5! rounded-[5px]"});if(null!==e.subPath&&null!==e.imageUrl)return"builtin:integrations"===e.itemId?(0,n.jsx)(eA.IntegrationProviderIcon,{displayName:t,iconUrl:e.imageUrl,providerSlug:e.subPath,size:"xs"}):(0,n.jsx)(N.AppIcon,{app:{id:e.subPath,name:t,image:e.imageUrl},size:"sm",className:"h-4.5! w-4.5! rounded-[5px]"});let i=(0,eR.getBuiltinPanelItem)(e.itemId);if(!i)return null;let r=i.FallbackIcon;return(0,n.jsx)(ek,{item:i,size:"xs",className:"size-4.5! rounded-[5px]",fallback:r?(0,n.jsx)(r,{className:"size-4"}):null})}function eW({panelId:e,builtinTiles:t=eU,canCreateApp:i=!0,hostRequest:s,initialWidth:l,initialLocation:a=null}){let{panelOpen:o,panelExpanded:c,panelAppExpansion:d,mainAppExpansion:u,panelSwapToken:p,panel:h,panelHistory:m,panelItemId:x,panelItemSubPath:g,selectedPanelItem:b,darkMode:j,userId:A,userName:N}=(0,v.useShellState)(),{closePanel:C,togglePanelExpanded:k,swapPanelPrimary:E,reportPanelPrimary:y,openAppsGrid:I,openPanelItem:R,openAppByToken:T}=(0,v.useShellActions)(),L=(0,v.useShellPanelPrimary)(),_=(0,v.useShellPanelAnimating)(),z=(0,e_.useAppsPanelViewportSurface)(),D=(0,r.useCallback)(()=>{if(null!==d){z.hostCollapse(),c&&k();return}k()},[d,c,z,k]),B=(0,e_.useElementRect)(e??w.SHELL_APPS_PANEL_ID,z.showExitPill&&!z.pageImmersed);!function(e,n=eO){let t=(0,r.useRef)(e),i=(0,r.useRef)(!0),s=(0,r.useRef)(e),l=(0,r.useRef)(n.canGoBack),a=(0,r.useRef)(n.goBack),o=(0,r.useRef)(n.close),c=(0,r.useRef)(!1),d=(0,r.useRef)(!1);(0,r.useEffect)(()=>{s.current=e,l.current=n.canGoBack,a.current=n.goBack,o.current=n.close}),(0,r.useEffect)(()=>{let e=e=>{if(d.current){d.current=!1,e.stopImmediatePropagation(),a.current();return}if(!(!s.current||!c.current||eM(window.history.state))){if(!l.current){c.current=!1,o.current();return}e.stopImmediatePropagation(),d.current=!0,window.history.forward()}};return window.addEventListener("popstate",e,{capture:!0}),()=>window.removeEventListener("popstate",e,{capture:!0})},[]),(0,r.useEffect)(()=>{let n=t.current;if(t.current=e,e===n){if(!i.current||!e||!eG()){i.current=!1;return}if(i.current=!1,eM(window.history.state)){c.current=!0;return}let n=window.location.href,t=(0,ez.withoutNextHistoryMarkers)(window.history.state),r=(0,eD.formatShellUrl)((0,eD.mutateShellUrl)(n,{open:!1}));window.history.replaceState(t,"",r),window.history.pushState({...t,[eB]:!0},"",n),c.current=!0;return}if(i.current=!1,e){if(!eG())return;if(eM(window.history.state)){c.current=!0;return}let e=(0,ez.withoutNextHistoryMarkers)(window.history.state);window.history.pushState({...e,[eB]:!0},"",window.location.href),c.current=!0;return}eM(window.history.state)&&(c.current=!1,window.history.back())},[e])}(o,{canGoBack:m.backEntries.length>0,goBack:m.goBack,close:C});let[O,M]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=setTimeout(()=>M(!0),300);return()=>clearTimeout(e)},[]);let{loadGridApps:G,onCreateApp:F}=h,U=(0,r.useRef)(h.gridApps);(0,r.useEffect)(()=>{U.current=h.gridApps});let H=(0,r.useCallback)(async e=>{U.current.some(n=>n.id===e)||await G(),await T(e)},[T,G]),V=(0,r.useCallback)(e=>{(0,eL.isBuiltinPanelItemId)(e)&&R(e)},[R]),W=(0,f.useRouter)(),K=(0,f.usePathname)(),Y=(0,r.useCallback)(()=>
1{if(c&&k(),"/"!==K){(0,eS.requestComposerFocusOnNextLoad)({hint:eS.CREATE_APP_COMPOSER_HINT}),W.push("/");return}F()},[F,c,k,K,W]),X=(0,r.useMemo)(()=>b?{name:b.name,icon:(0,n.jsx)(ek,{item:b,size:"xs",className:"size-4.5! rounded-[5px]",fallback:b.FallbackIcon?(0,n.jsx)(b.FallbackIcon,{className:"size-4.5"}):null}),fullPageHref:x?(0,eL.buildBuiltinPanelItemFullPagePath)(x,g):null}:null,[b,x,g]),Q=(0,r.useMemo)(()=>(0,n.jsx)(eT,{selectedItemId:x,selectedSubPath:g,panelOpen:o,onNavigateItem:R,onOpenApp:H}),[x,g,o,R,H]),$=(0,r.useCallback)(e=>({key:String(e.stackIndex),label:e.label,parentLabel:e.parentLabel,icon:(0,n.jsx)(eV,{target:e.target,label:e.label}),select:()=>m.goToEntry(e)}),[m]),J=(0,r.useMemo)(()=>({backEntries:m.backEntries.map($),forwardEntries:m.forwardEntries.map($),goBack:m.goBack,goForward:m.goForward}),[m,$]),Z=h.selectedApp?.name??b?.name??"Apps";return(0,n.jsxs)(n.Fragment,{children:[!O&&o&&(0,n.jsx)(eF,{location:a,height:eH}),(0,n.jsx)(eP.ResizableSidePanel,{open:o,expanded:c,reservedContainerWidth:eN.PANEL_DEFAULTS.MIN_WIDTH+w.SHELL_CARD_GAP_PX,onClose:C,onExpand:k,contentId:e,title:Z,widthStorage:P.APPS_PANEL_WIDTH_STORAGE,initialWidth:l,swapToken:p,onPrimaryStateChange:y,mobileMediaQuery:eC.BELOW_DESKTOP_MEDIA_QUERY,keepMounted:!0,contentInert:"plane"===u||"page"===u,showHeader:!1,mobileHeight:eH,mobilePullIndicatorAbsolute:!0,className:"shell-apps-panel-el bg-background lg:border-l-0 lg:bg-transparent",bodyClassName:(0,q.cn)("shell-chrome shell-card-edge lg:rounded-2xl lg:bg-(--shell-card) lg:shadow-(--shell-card-shadow) lg:[--shell-card-corner-bl:0]",w.SHELL_SQUIRCLE_PANELS&&"shell-card-squircle",z.bandHidden&&"shell-viewport-band-hidden",z.pageImmersed&&"lg:rounded-none"),handleClassName:"lg:-left-3 lg:w-4",disableOpenTranslate:!0,animating:_,wrapperClassName:(0,q.cn)("max-lg:hidden lg:data-[open=true]:ml-2",_&&!c&&!z.bandHidden&&"lg:[clip-path:inset(-100%_-100%_-100%_0)]"),mobileClassName:(0,q.cn)("apps-panel-mobile-drawer rounded-t-none bg-background",z.bandHidden&&"shell-viewport-band-hidden"),children:(0,n.jsx)(S.AppViewportSurfaceContext.Provider,{value:z.surface,children:(0,n.jsx)(ev,{...(0,ej.appsPanelContentStateProps)(h),onCreateApp:Y,canCreateApp:i,onClose:C,hideDesktopClose:!0,panelOpen:o,isExpanded:c,onToggleExpand:D,isPrimaryPane:L,onSwapPrimaryPane:E,history:J,onOpenAppsGrid:I,darkMode:j,userId:A,userName:N,builtinTiles:t,hostRequest:s,onSelectBuiltinItem:V,selectedBuiltinItem:X,builtinContent:Q})})}),z.showExitPill&&(0,n.jsx)(ew.ViewportDismissPill,{onDismiss:z.dismissExpansion,anchorRect:B})]})}var eq=e.i(643307);function eK({children:e}){let{panelExpanded:t,panelAppExpansion:i}=(0,v.useShellState)(),r=t||"plane"===i||"page"===i;return(0,n.jsx)("div",{className:(0,q.cn)("shell-main-surface flex min-w-0 flex-1 transition-opacity duration-300",r&&"lg:pointer-events-none lg:opacity-0"),inert:r||void 0,"aria-hidden":r||void 0,children:e})}var eY=e.i(409978),eX=e.i(423207),eX=eX,eQ=e.i(243784),eQ=eQ,e$=e.i(319458);let eJ=(0,q.cn)("group pointer-events-auto flex size-12 shrink-0 items-center justify-center rounded-xl outline-none","app-icon-squircle app-icon-squircle-sm","transition-[background-color] duration-300 ease-out","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background");function eZ({label:e,onClick:t,isActive:i=!1,disabled:r=!1,entranceDelayMs:s=0,ariaControls:l,ariaExpanded:a,children:o}){return(0,n.jsxs)(ei.Tooltip,{children:[(0,n.jsx)(ei.TooltipTrigger,{render:(0,n.jsx)("button",{type:"button",onClick:r?void 0:t,"aria-label":e,"aria-disabled":r||void 0,"aria-current":void 0===a&&i?"true":void 0,"aria-controls":l,"aria-expanded":a,className:(0,q.cn)(eJ,i?"bg-(--shell-item-active)":"hover:bg-(--shell-item-hover)",r&&"cursor-default opacity-40 hover:bg-transparent")}),children:(0,n.jsx)("div",{className:"animate-in fade-in-0 slide-in-from-right-2 fill-mode-both duration-500 ease-out",style:s>0?{animationDelay:`${s}ms`}:void 0,children:(0,n.jsx)("div",{className:"transition-[scale] duration-200 ease-out group-hover:scale-[1.08] group-active:scale-[0.94] group-active:duration-100",children:o})})}),(0,n.jsx)(ei.TooltipContent,{side:"left",children:e})]})}let e0=(0,eR.builtinRailItems)();function e1({panelId:e,items:t=e0,userControl:i,showChatItem:r=!0}){let{panelOpen:s,panel:l,panelItemId:a,panelAppExpansion:o,mainAppExpansion:c,widgetPlaneLift:d}=(0,v.useShellState)(),{togglePanel:u,toggleAppsGrid:p,toggleApp:h,togglePanelItem:m}=(0,v.useShellActions)(),x=d||"plane"===o||"page"===o||"plane"===c||"page"===c,g="page"===o||"page"===c,b=g||"plane"===o||"plane"===c,{starredApps:j,selectedAppId:A}=l,S=(0,f.usePathname)(),P=s&&null===A&&null===a,C=s&&"builtin:chat"===a,k=j.length>0,E=r&&(S!==eL.CHAT_PAGE_PATH||C);return(0,n.jsx)("nav",{"aria-label":"Main navigation",inert:g||void 0,"aria-hidden":g||void 0,"data-shell-chrome":"rail","data-ph-unmask":"",className:"shell-chrome relative z-10 hidden w-15 flex-none flex-col items-center lg:flex",children:(0,n.jsxs)(ei.TooltipProvider,{delay:400,children:[(0,n.jsx)("div",{className:"mb-3 flex-none",children:(0,n.jsx)(eZ,{label:
1x?"Close the expanded app to use the side panel":s?"Hide side panel":"Show side panel",onClick:u,disabled:x,ariaControls:e,ariaExpanded:s,children:s?(0,n.jsx)(eX.default,{className:"size-4.5 text-foreground","aria-hidden":"true"}):(0,n.jsx)(eQ.default,{className:"size-4.5 text-muted-foreground transition-colors duration-300 ease-out group-hover:text-foreground","aria-hidden":"true"})})}),(0,n.jsxs)("div",{id:w.SHELL_LOWER_RAIL_ID,className:"contents",inert:b||void 0,"aria-hidden":b||void 0,children:[(0,n.jsx)(eZ,{label:"Apps",onClick:p,isActive:P,ariaControls:e,children:(0,n.jsx)(eh.AppsGridIcon,{className:(0,q.cn)("size-5.5 transition-colors duration-300 ease-out",P?"text-foreground":"text-muted-foreground")})}),(0,n.jsx)("div",{className:(0,q.cn)("flex min-h-0 flex-1 flex-col items-center",k&&"no-scrollbar gap-2 overflow-y-auto mask-[linear-gradient(to_bottom,transparent,black_12px,black_calc(100%-12px),transparent)] py-3"),children:k&&j.map((e,t)=>(0,n.jsx)(eZ,{label:e.name,onClick:()=>void h(e.id),isActive:s&&A===e.id,entranceDelayMs:45*t,children:(0,n.jsx)(N.AppIcon,{app:e,size:"sm"})},e.id))}),t.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"my-2 h-px w-7 flex-none bg-border","aria-hidden":"true"}),t.map(e=>{let t=s&&a===e.id,i=e.FallbackIcon;return(0,n.jsx)(eZ,{label:e.railLabel??e.name,onClick:()=>m(e.id),isActive:t,children:(0,n.jsx)(ek,{item:e,size:"xs",className:"size-5.5! rounded-[6px]",fallback:i?(0,n.jsx)(i,{className:(0,q.cn)("size-5.5 transition-colors duration-300 ease-out",t?"text-foreground":"text-muted-foreground")}):null})},e.id)})]}),(0,n.jsx)("div",{className:"my-2 h-px w-7 flex-none bg-border","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"flex flex-none flex-col items-center gap-1",children:[E&&(0,n.jsx)(eZ,{label:"Chat",onClick:()=>m("builtin:chat"),isActive:C,ariaControls:e,children:(0,n.jsx)(eY.MessageCircle,{className:(0,q.cn)("size-5 transition-colors duration-300 ease-out",C?"text-foreground":"text-muted-foreground")})}),i??(0,n.jsx)(e$.UserMenu,{})]})]})]})})}var e4=e.i(706685);e.s(["ShellFrame",0,function({children:e,initialPanel:i,initialPanelWidth:r,initialPanelPrimary:s,funnel:l}){return(0,n.jsxs)(u.ActivityProvider,{children:[!l?.transport&&(0,n.jsx)(m,{}),(0,n.jsx)(t.AppBuildProvider,{runtimeOverrides:l?.buildRuntime,children:(0,n.jsxs)(v.ShellProvider,{initialPanel:i,initialPanelPrimary:s,panelRequest:l?.transport?.panelRequest,viewer:l?.transport?.viewer,hostVariant:l?.transport?"funnel":"app",children:[!l?.transport&&(0,n.jsx)(j,{}),(0,n.jsx)(eq.ShellLayout,{topBar:(0,n.jsx)(e4.ShellTopBar,{}),rail:(0,n.jsx)(e1,{panelId:w.SHELL_APPS_PANEL_ID,items:l?.railItems,userControl:l?.userControl,showChatItem:!l}),panel:(0,n.jsx)(eW,{panelId:w.SHELL_APPS_PANEL_ID,initialWidth:r,initialLocation:i?.location??null,builtinTiles:l?.builtinTiles,canCreateApp:!l,hostRequest:l?.transport?.hostRequest}),children:(0,n.jsx)(eK,{children:e})}),(0,n.jsx)(x.GlobalFeedbackDialog,{})]})})]})}],789821)}]); 2 3//# chunkId=01a0804f-86ff-7920-90ec-40f4c4c956ac
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.