1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NotificationInbox-CXnyLSsH.js","assets/vendor-react-BfgFmtGS.js","assets/runtime-utils-GN4cODRt.js","assets/UserMenu-BOK_l6jx.js","assets/runtime-preload-CFP917pd.js","assets/feedBatchMonitorVisibility-Dzs90-gC.js","assets/SpacesIcon-BIw1RF34.js","assets/createLucideIcon-D9HkCDkl.js","assets/useUserSettings-COWmNJt_.js","assets/supabase-client-2CObC91N.js","assets/vendor-supabase-BL1taoPA.js","assets/startup-platform-OWIpYyjW.js","assets/supabase-config-BOS-KsQP.js","assets/vendor-query-XXY4vl9u.js","assets/startup-core-CGeUO7uJ.js","assets/startup-diagnostics-bridge-BB8dzHvV.js","assets/app-_uSXIk0p.js","assets/vendor-capacitor-8exTJy5k.js","assets/documentVisibilitySubscriptions-CqVNm4Da.js","assets/nativeAppStateSubscriptions-Cv_2m-ZS.js","assets/perfConfig-SmqTTOuO.js","assets/house-C9Hke4X6.js","assets/search-D_LVchoc.js","assets/layout-grid-Bpg0VprM.js","assets/plus-O3w64FuI.js","assets/heart-CdAafllh.js","assets/bell-Bjv_251G.js","assets/useAuth-DynbexoK.js","assets/ThemeContext-3fFp6cUT.js","assets/mediaQueryStore-tM2KFt8V.js","assets/idleStorage-DCX8Fjfi.js","assets/echoReview-DxeV6pFI.js","assets/appStore-CvVedgBE.js","assets/chromeExtension-Ba1XSCfq.js","assets/use-mobile-CmledQOG.js","assets/navigationPlacement-DOicjMCP.js","assets/image-utils-BFdDQ3hX.js","assets/dropdown-menu-BAlvmeJa.js","assets/index-Bj_QpGJn.js","assets/index-DvGZCNsD.js","assets/index-h37mMD1s.js","assets/index-DpcxEmoq.js","assets/index-X6GuMWhc.js","assets/index-8Q0hjuah.js","assets/index-BjK_cEYO.js","assets/Combination-BntiNnUt.js","assets/index-DYDcV3bE.js","assets/index-BQmzLb9B.js","assets/index-YTuft30H.js","assets/index-DqIkKHbu.js","assets/check-0D421DYe.js","assets/chevron-right-aaxqAI6v.js","assets/circle-BwVhTjDX.js","assets/dialog-C7V6oQ1v.js","assets/index-BRWrGhkK.js","assets/x-DV2I6wJI.js","assets/lazyWithRetry-DcZLR5wu.js","assets/routeModulePrefetch-GdwohIex.js","assets/vendor-router-QOYqHwMx.js","assets/user-Ds9XOBLy.js","assets/flame-DueLJnbo.js","assets/clock-3-DTtizs3s.js","assets/star-Dj4Zt46N.js","assets/list-filter-v4BTBw0j.js","assets/trash-2-CLE9ZDje.js","assets/sliders-horizontal-D56n2gim.js","assets/palette-BMwl0Vi7.js","assets/settings-DFBLyPRM.js","assets/chevron-down-B1qfJDmk.js","assets/shield-CoYdFdVE.js","assets/activity-Cs2H8ktv.js","assets/log-out-B_mtl7aJ.js","assets/keyboard-D2j3K7oh.js","assets/external-link-BI4-_4re.js","assets/eye-CImpNXgw.js","assets/MarkdownContent-BzQY61Xp.js","assets/vendor-markdown-B_ALTfwe.js","assets/shareUrls-CnKIAmlW.js","assets/avatar-DkgobaOn.js","assets/BoardPreviewAvatar-BIAe0D67.js","assets/VideoPosterOnly-CkOjVgFa.js","assets/videoUtils-CgPXwgg1.js","assets/performanceTier-CKmYu9lG.js","assets/loader-circle-fXsKc0TP.js","assets/video-Bo3AcXon.js","assets/useMemoryPreviews-DvkAtlwZ.js","assets/boundedRequest-B4Q3Iimu.js","assets/echoTypePolicy-D6McwraQ.js","assets/boardPreviewPolicy-CiaGHKpD.js","assets/switch-D6ZBFPtn.js","assets/index-BqeBQ1B3.js","assets/useReminders-DblIENGJ.js","assets/newsArticles-pe0Y7VW0.js","assets/displayText-C8gylbfe.js","assets/check-check-DfUnwbFw.js","assets/refresh-ccw-BwK7HH7T.js","assets/mail-DexW5LxU.js","assets/vendor-date-CJZoUMEw.js","assets/sparkles-Bqh4sfNh.js","assets/users-BxEfMauC.js"])))=>i.map(i=>d[i]); 2import{_ as e}from"./runtime-preload-CFP917pd.js";import{r,j as t}from"./vendor-react-BfgFmtGS.js";import{g as s}from"./feedBatchMonitorVisibility-Dzs90-gC.js";import{a}from"./runtime-utils-GN4cODRt.js";import{u as o,U as n}from"./UserMenu-BOK_l6jx.js";import{PublicNavbar as i}from"./PublicNavbar-ZBBCJgpR.js";import{u as l,b as c}from"./useUserSettings-COWmNJt_.js";import{u as d}from"./ActiveBoardContext-Bdq9TZD9.js";import{B as m}from"./button-CYJdLL_L.js";import{u as p,p as x}from"./likedPrefetch-D8IdXKms.js";import{u}from"./ThemeContext-3fFp6cUT.js";import{p as f}from"./exploreRoutePrefetch-breOUS78.js";import{a as h}from"./startup-platform-OWIpYyjW.js";import{u as g}from"./use-mobile-CmledQOG.js";import{g as b,s as j}from"./navigationPlacement-DOicjMCP.js";import{p as v}from"./routeModulePrefetch-GdwohIex.js";import{P as w,a as N,b as y}from"./popover-DbMJLCIq.js";import{u as _,a as k,L as C,N as z}from"./vendor-router-QOYqHwMx.js";import{C as E}from"./compass-D3UAMNj_.js";import{B as P}from"./bell-Bjv_251G.js";import{P as S}from"./plus-O3w64FuI.js";import{L as B}from"./log-in-Ba3zWN2K.js";const I=r.lazy(()=>e(()=>import("./NotificationInbox-CXnyLSsH.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,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99])).then(e=>({default:e.NotificationInbox}))),L=({title:e,description:L,className:T,onCaptureClick:F,rightAction:M,...O})=>{const A=_(),U=k(),$=h(),R=g(),{user:V}=l(),{settings:Y}=c(),q=b(Y,$||R),D=j(Boolean(V),q),{activeTheme:W}=u(),{activeBoardId:G}=d(),[H,J]=r.useState(!1),[K,Q]=r.useState(!1),[X,Z]=r.useState(()=>!$);r.useEffect(()=>{if(!$||X)return;let e=!1;const r=new Set,t=()=>{e||Z(!0)},s=()=>{r.add(window.setTimeout(t,1800))};return window.addEventListener("echo:first-frame",s,{once:!0}),r.add(window.setTimeout(t,3500)),()=>
2{e=!0,r.forEach(e=>window.clearTimeout(e)),window.removeEventListener("echo:first-frame",s)}},[$,X]);const ee=H||X,{unreadCount:re,hasUnreadNews:te}=o({enabled:ee}),se=p(H||K),ae=/^\/public\/[^/]+$/.test(U.pathname)||/^\/u\/[^/]+\/[^/]+$/.test(U.pathname),oe=!V&&ae,ne=s(Y,q,!0).map(e=>({...e,icon:Y.navigation_items_customized||"explore"!==e.id?e.icon:E})),ie=r.useCallback(()=>{F?F():window.dispatchEvent(new CustomEvent("open-capture-modal",{detail:G?{boardId:G}:void 0}))},[G,F]),le=t.jsxs(w,{open:H,onOpenChange:J,children:[t.jsx(N,{asChild:!0,children:t.jsxs("button",{"aria-label":"Notifications",className:a("relative flex h-10 w-10 items-center justify-center rounded-full transition-all active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45",H?"bg-muted":"hover:bg-muted/70"),children:[t.jsx(P,{className:a("w-5 h-5","text-foreground")}),(re>0||te)&&t.jsx("span",{className:"absolute right-1 top-1 flex items-center justify-center",children:re>0?t.jsx("span",{className:"flex h-4 min-w-4 items-center justify-center rounded-md bg-primary px-1 text-[9px] font-bold leading-none text-primary-foreground",children:re>9?"9+":re}):t.jsx("span",{className:"h-2.5 w-2.5 rounded-sm bg-primary"})})]})}),t.jsx(y,{className:"w-auto p-0 border-none bg-transparent shadow-none",align:"end",sideOffset:8,children:t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"h-48 w-[min(24rem,calc(100vw-2rem))] rounded-2xl bg-popover",role:"status","aria-label":"Loading notifications","aria-busy":"true"}),children:t.jsx(I,{})})})]});return oe?t.jsx(i,{subtitle:"Your own feed",tone:"dark",className:T}):D?t.jsx("div",{className:a("echo-scroll-chrome echo-scroll-chrome--top sticky top-0 left-0 right-0 z-50 pt-[max(env(safe-area-inset-top),var(--native-safe-top,0px))]","before:absolute before:left-0 before:right-0 before:top-0 before:h-[max(env(safe-area-inset-top),var(--native-safe-top,0px))] before:pointer-events-none before:-z-10","glass"===Y.navigation_surface?"border-b border-white/10 bg-background/55 backdrop-blur-2xl before:bg-background/55":"bg-background before:bg-background before:backdrop-blur-none",T,"sidebar"===q&&"md:hidden",se&&"echo-scroll-chrome--hidden pointer-events-none"),...O,style:{..."canvas"===Y.navigation_surface?{backgroundColor:W.canvas_tone}:{},...O.style},children:t.jsxs("div",{className:a("mx-0 h-12 w-full rounded-none px-4 md:h-16 md:px-4 lg:px-6","flex items-center justify-between gap-2 md:gap-3 bg-transparent text-foreground shadow-none"),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 md:gap-4",children:[t.jsx(C,{to:"/",onPointerEnter:()=>{v("/").catch(()=>{})},onFocus:()=>{v("/").catch(()=>{})},className:a("text-xl md:text-2xl font-bold tracking-tighter shrink-0","text-primary drop-shadow-[0_2px_14px_rgba(0,0,0,0.22)]"),children:"Echo"}),e&&t.jsxs("div",{className:a("ml-3 hidden flex-col pl-3 xl:flex","border-l border-border/60"),children:[t.jsx("h1",{className:a("text-sm font-bold leading-tight","text-foreground"),children:e}),L&&t.jsx("p",{className:a("text-[11px]","text-muted-foreground"),children:L})]}),t.jsx("div",{className:a("ml-3 hidden items-center gap-1.5 lg:ml-4 lg:gap-2 xl:gap-3","responsive"===q&&"md:flex"),children:ne.map(e=>{if("upload"===e.id)return t.jsxs("button",{type:"button","aria-label":"Create",onClick:ie,className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-[22px] bg-primary text-primary-foreground lg:w-auto lg:gap-2 lg:px-3 xl:px-4",children:[t.jsx(S,{className:"h-5 w-5"}),t.jsx("span",{className:"hidden text-sm font-black lg:inline",children:"Create"})]},"upload");if("notifications"===e.id)return t.jsx(r.Fragment,{children:le},"notifications");if("profile"===e.id)return t.jsx(n,{onMenuOpenChange:Q},"profile");const s=(o=e.to,U.pathname===o||"/"!==o&&U.pathname.startsWith(`${o}/`));var o;const i=e.icon;return t.jsxs(z,{to:e.to,onPointerEnter:()=>{v(e.to).catch(()=>{}),"/explore"===e.to&&f().catch(()=>{}),"/favorites"===e.to&&x().catch(()=>{})},onFocus:()=>{v(e.to).catch(()=>{}),"/explore"===e.to&&f().catch(()=>{}),"/favorites"===e.to&&x().catch(()=>{})},onClick:()=>{v(e.to).catch(()=>{}),"/explore"===e.to&&f().catch(()=>{}),"/favorites"===e.to&&x().catch(()=>{})},className:a("group flex h-10 w-10 min-w-10 shrink-0 items-center justify-center rounded-[22px] border px-0 transition-all",Y.navigation_items_customized?"lg:w-auto lg:gap-2 lg:px-3 xl:px-4":"lg:w-auto lg:min-w-[112px] lg:gap-2.5 lg:px-4 xl:min-w-[124px] xl:px-
25","shadow-[0_6px_20px_hsl(var(--foreground)/0.06)] active:scale-[0.98]",s?"border-primary/20 bg-primary/8 text-primary shadow-[0_10px_28px_hsl(var(--primary)/0.12)]":"border-foreground/10 bg-foreground/[0.04] text-foreground hover:border-foreground/15 hover:bg-foreground/[0.08]"),"aria-label":e.label,children:[t.jsx(i,{className:a("h-5 w-5 transition-colors",s?"text-primary":"text-current")}),t.jsx("span",{className:"hidden text-sm font-black text-current transition-colors lg:inline",children:e.label})]},e.to)})})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-1 md:gap-2",children:[V&&"responsive"===q&&!Y.navigation_items_customized&&t.jsxs("button",{onClick:ie,className:a("hidden h-10 w-10 min-w-10 shrink-0 items-center justify-center rounded-[22px] border border-primary/35 bg-primary px-0 text-primary-foreground shadow-[0_10px_28px_hsl(var(--primary)/0.16)] transition-all hover:bg-primary/92 active:scale-[0.98] md:inline-flex",Y.navigation_items_customized?"lg:w-auto lg:gap-2 lg:px-3 xl:px-4":"lg:w-auto lg:min-w-[112px] lg:gap-2.5 lg:px-4 xl:min-w-[124px] xl:px-5"),"aria-label":"Create",children:[t.jsx(S,{className:"h-5 w-5"}),t.jsx("span",{className:"hidden text-sm font-black lg:inline",children:"Create"})]}),M&&t.jsx("div",{className:"mr-1 flex items-center",children:M}),V?t.jsxs(t.Fragment,{children:[!Y.navigation_items_customized&&le,!("responsive"===q&&Y.navigation_items_customized)&&t.jsx(n,{onMenuOpenChange:Q})]}):t.jsxs(m,{size:"sm",onClick:()=>A("/auth"),className:a("rounded-xl px-3 h-7 font-semibold text-xs","border border-border bg-muted/60 text-foreground hover:bg-muted"),children:[t.jsx(B,{className:"w-3.5 h-3.5 mr-1.5"}),"Sign In"]})]})]})}):e||M?t.jsx("div",{className:a("relative z-40 border-b border-border/40 bg-background/92 px-4 py-3 backdrop-blur-xl",T),...O,children:t.jsxs("div",{className:"mx-auto flex w-full items-center justify-between gap-4",children:[e?t.jsxs("div",{className:"min-w-0",children:[t.jsx("h1",{className:"truncate text-sm font-bold text-foreground",children:e}),L?t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:L}):null]}):t.jsx("span",{}),M]})}):null};export{L as PageHeader};
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.