PageSourceSearch

https://myechoboard.com/assets/MainLayout-SlmExmjp.js

js myechoboard.com collected 2026-09-24 13:47:55 UTC 29,824 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MobileNavLauncherMenu-VRIX0WBF.js","assets/runtime-preload-CFP917pd.js","assets/vendor-react-C9yDzYQD.js","assets/UserMenu-Q9d71qTh.js","assets/vendor-query-DpPswXvj.js","assets/useAuth-Dz3EPsxs.js","assets/useUserSettings-COPNty3J.js","assets/supabase-client-_h80EYw_.js","assets/vendor-supabase-BL1taoPA.js","assets/startup-platform-OWIpYyjW.js","assets/supabase-config-Bge368iX.js","assets/startup-core-CGeUO7uJ.js","assets/startup-diagnostics-bridge-CKNiHJ_f.js","assets/app-BhliLHoU.js","assets/vendor-capacitor-8exTJy5k.js","assets/documentVisibilitySubscriptions-CqVNm4Da.js","assets/nativeAppStateSubscriptions-Cv_2m-ZS.js","assets/perfConfig-DEgIskwG.js","assets/ThemeContext-jMT4gQSB.js","assets/mediaQueryStore-DwN5Dqg0.js","assets/idleStorage-BGANA5qp.js","assets/runtime-utils-GN4cODRt.js","assets/echoReview-DxeV6pFI.js","assets/appStore-CvVedgBE.js","assets/chromeExtension-Ba1XSCfq.js","assets/use-mobile-D5Xf5BKb.js","assets/navigationPlacement-DOicjMCP.js","assets/image-utils-AdRSPECl.js","assets/dropdown-menu-BEBSGtMc.js","assets/index-CuooO_kK.js","assets/index-BrpnBk_C.js","assets/index-DyIfOVK5.js","assets/index-Bf_lj5FF.js","assets/index-CfYZuMWu.js","assets/Combination-DIDwI44r.js","assets/index-C_zeqDvy.js","assets/index-6bR26fvg.js","assets/index-gOewhWoM.js","assets/check-MQhLD6FV.js","assets/createLucideIcon-DNcTU-zM.js","assets/circle-CkfN9-i9.js","assets/dialog-DHNNRuDw.js","assets/index-BLLe0eFp.js","assets/x-lNdY5pWw.js","assets/feedBatchMonitorVisibility-BVapLDZ4.js","assets/routeModulePrefetch-CXa9VU96.js","assets/vendor-router-X7RJKav4.js","assets/user-DrHqDh0A.js","assets/flame-CC1HVkaC.js","assets/clock-3-SOj_j4bA.js","assets/bell-BfXb5drb.js","assets/star-PkyT3oQ1.js","assets/heart-DTG6gDEx.js","assets/sparkles-COPkKMBj.js","assets/list-filter-CTkrhYiD.js","assets/trash-2-B7zVZuh_.js","assets/palette-C1bQO_bH.js","assets/settings-CwBkSc_i.js","assets/chevron-down-BFi_I8Zn.js","assets/shield-CcxAGV9V.js","assets/activity-DQtDwZfv.js","assets/log-out-EKNp0o3i.js","assets/keyboard-C3NoqUai.js","assets/external-link-n2tXYKjz.js","assets/eye-Dkh28JiF.js","assets/popover-BqNd_ntB.js","assets/menu-Z6V__zqX.js","assets/plus-CNl86JwM.js","assets/explorePrefetch-DzZbBnZL.js","assets/MoodContext-C8nY2rn-.js","assets/useSubscription-CEwnjYgb.js","assets/memory-CJrksfzy.js","assets/echoTypePolicy-DA-PDKiE.js","assets/exploreFeed2CacheContract-BQgUzTx1.js","assets/exploreRoutePrefetch-DN_a1V5P.js","assets/directExploreWarmup-CQGnUogR.js","assets/ParticleBackground-BDZvK86T.js","assets/windowResizeSubscriptions-C3xwW4pN.js","assets/GradientBackground-Bm9R1sHf.js","assets/MainLayoutCaptureLayer-LB7S9wgj.js","assets/toast-DJy6Ih4T.js","assets/index-CoOSNOH9.js","assets/index-nwDrq1j8.js","assets/UploadQueue-DWC6nTL0.js","assets/loader-circle-CWK_zhHB.js","assets/circle-alert-CTzjEn3-.js","assets/rotate-ccw-BkMzxdp0.js","assets/video-DibMJbQh.js","assets/file-text-B2HnMzWj.js","assets/link-CmL3GRNv.js","assets/image-Bt9rnFUc.js","assets/useBoards-KZlRZb0G.js","assets/UpgradeModal-CTU3dL8h.js","assets/drawer-RVJlVdjE.js","assets/button-CcIRk75H.js","assets/zap-BLOtyeeL.js","assets/dbMetrics-D5Q8D3iF.js","assets/boardCardSize-DMpJ9b3m.js","assets/boundedAsyncPool-BG_N2Lbq.js","assets/boundedRequest-B4Q3Iimu.js","assets/rpcCapabilityCache-CVP6KxZ_.js","assets/boardPreviewPolicy-DVjUGhXs.js","assets/useGlobalPaste-zpD0k_0n.js","assets/useImageCompression-CcXi4sud.js","assets/heic-26Yd2oA8.js","assets/r2-upload-BKh8xYPI.js","assets/videoUtils-CgPXwgg1.js","assets/useNetworkStatus-pTwuOFZz.js","assets/logger-De6spsD0.js","assets/offline-C2kw-B3Y.js","assets/asyncSemaphore-KO0g8gsf.js","assets/clipboardPaste-CCCQEmTP.js","assets/useOfflineQueue-BjhmMc_k.js","assets/StaticThemeBackgroun
1dEffect-BcHbc1E-.js","assets/FeedBatchMonitors-vqLY-SYV.js","assets/feedBatchMonitorDebug-BCAjn03I.js","assets/documentVisibleInterval-kwPiY7AC.js","assets/database-JSGDloae.js","assets/circle-check-DwjPV3g7.js"])))=>i.map(i=>d[i]);
2import{_ as e}from"./runtime-preload-CFP917pd.js";import{R as t,j as r,r as o}from"./vendor-react-C9yDzYQD.js";import{c as a}from"./runtime-utils-GN4cODRt.js";import{u as n}from"./useHaptics-BI0pxz1a.js";import{u as s,b as i,h as l}from"./useUserSettings-COPNty3J.js";import{u as c,p as d}from"./likedPrefetch-D99g-XFi.js";import{u as m}from"./use-mobile-D5Xf5BKb.js";import{a as u}from"./startup-platform-OWIpYyjW.js";import{a as h}from"./passiveScrollSubscriptions-CS-jkkI4.js";import{s as p}from"./windowResizeSubscriptions-C3xwW4pN.js";import{u as x}from"./ThemeContext-jMT4gQSB.js";import{l as f}from"./lazyWithRetry-DtO62p5Q.js";import{g as b}from"./navigationPlacement-DOicjMCP.js";import{p as w}from"./routeModulePrefetch-CXa9VU96.js";import{a as g,N as v}from"./vendor-router-X7RJKav4.js";import{H as j}from"./house-BaKZoOWV.js";import{L as k}from"./layout-grid-DgmnG2AD.js";import{P as _}from"./plus-CNl86JwM.js";import{S as y}from"./search-D7ByVMw5.js";import{H as N}from"./heart-DTG6gDEx.js";import{u as E}from"./MoodContext-C8nY2rn-.js";import{u as C}from"./useNetworkStatus-pTwuOFZz.js";import{u as L}from"./ActiveBoardContext-BjVE_FWv.js";import{s as T,P as S}from"./perfConfig-DEgIskwG.js";import{r as P,F as M}from"./feedBatchMonitorVisibility-BVapLDZ4.js";import{e as B}from"./clipboardPaste-CCCQEmTP.js";import{W as R}from"./wifi-off-DgTu9GsA.js";let D=null;const I=f("MobileNavTopUtilities",()=>e(()=>import("./MobileNavLauncherMenu-VRIX0WBF.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])).then(e=>({default:e.MobileNavTopUtilities})));function F(e){if(!e||"transparent"===e)return null;const t=e.match(/rgba?\(([^)]+)\)/);if(!t)return null;const r=t[1].split(",").map(e=>Number.parseFloat(e.trim()));return r.length<3||r.some(e=>Number.isNaN(e))||r.length>=4&&r[3]<.05?null:r.slice(0,3)}function O(e){const[t,r,o]=e.map(e=>{const t=Math.max(0,Math.min(255,e))/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*t+.7152*r+.0722*o}function A({onCaptureClick:o}){const l=g(),f=u(),{triggerSelection:E,triggerAction:C}=n(),{user:L}=s(),T=m(),{settings:S}=i(),{activeTheme:P}=x(),M=b(S,f||T),B="canvas"===S.navigation_surface,R=f&&!B,A=B?{backgroundColor:P.canvas_tone}:void 0,$=c(),{navRef:W,tone:z,isRootDark:V}=function(e,r){const o=t.useRef(null),[a,n]=t.useState("light"),s=u(),i=s?"":e,[l,c]=t.useState(()=>"undefined"!=typeof document&&document.documentElement.classList.contains("dark"));return t.useEffect(()=>{if(!r)return;if(s){const e=document.documentElement,t=()=>{c(e.classList.contains("dark")),n(e.classList.contains("dark")?"light":"dark")};t();const r=new MutationObserver(t);return r.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()}let e=!1,t=0,a=0,i=0;const l=document.documentElement,d=()=>{window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{c(l.classList.contains("dark"));const t=o.current;if(!t)return;const r=t.getBoundingClientRect(),a=r.top+.52*r.height,s=[.25,.75].map(e=>r.left+r.width*e),i=F(window.getComputedStyle(document.body).backgroundColor)||F(window.getComputedStyle(l).backgroundColor),d=i?O(i):null,m=s.map(e=>function(e,t,r,o){const a=document.elementsFromPoint(t,r);for(const n of a){if(e.contains(n))continue;if(n instanceof HTMLImageElement)return.22;const t=F(window.getComputedStyle(n).backgroundColor);if(t)return O(t)}return o}(t,e,a,d));if(e)return;const u=m.filter(e=>"number"==typeof e);if(!u.length)return void n("light");const h=u.reduce((e,t)=>e+t,0)/u.length;n(h>.64?"dark":"light")})},m=e=>{const t=e.target;if(!(t instanceof HTMLImageElement))return;const r=o.current;if(!r)return;const a=t.getBoundingClientRect(),n=r.getBoundingClientRect(),s=Math.max(120,.2*window.innerHeight);a.bottom<n.top-s||a.top>n.bottom+s||(window.clearTimeout(i),i=window.setTimeout(d,140))};d();const u=h(window,()=>{window.clearTimeout(a),a=window.setTimeout(d,140)}),x=p(d);window.addEventListener("load",d),document.addEventListener("load",m,!0);const f=new MutationObserver(d);return f.observe(l,{attributes:!0,attributeFilter:["class"]}
2),()=>{e=!0,window.cancelAnimationFrame(t),window.clearTimeout(a),window.clearTimeout(i),f.disconnect(),u(),x(),window.removeEventListener("load",d),document.removeEventListener("load",m,!0)}},[i,r,s]),{navRef:o,tone:a,isRootDark:l}}(l.pathname,Boolean(L)&&("dock"===M||"responsive"===M&&"pill"===S.mobile_nav_style)&&("dock"===M||f||T)),H=t.useRef($),[U,G]=t.useState(!1),Q=t.useCallback(()=>{f||(D??(D=e(()=>import("./explorePrefetch-DzZbBnZL.js"),__vite__mapDeps([68,69,1,2,7,8,9,10,5,6,4,11,12,13,14,15,16,17,70,18,19,20,27,71,72,73,74,75])).catch(e=>{throw D=null,e})),D).then(e=>e.prefetchExploreRouteModule()).catch(()=>{})},[f]);if(t.useEffect(()=>{if("pill"!==S.mobile_nav_style)return void(H.current=$);const e=H.current;if(H.current=$,!e||$)return;G(!0);const t=window.setTimeout(()=>{G(!1)},360);return()=>window.clearTimeout(t)},[$,S.mobile_nav_style]),!L)return null;const q=[{to:"/",icon:j,label:"My Feed"},{to:"/explore",icon:y,label:"Explore"},{to:"/boards",icon:k,label:"Boards"},{to:"/favorites",icon:N,label:"Favorites"}],J=(e,t)=>{w(t).catch(()=>{}),"/explore"===t&&Q(),"/favorites"===t&&d().catch(()=>{});const r="/"===t&&("/"===l.pathname||""===l.pathname);(l.pathname===t||r)&&(e.preventDefault(),window.scrollTo({top:0,behavior:"instant"}),document.documentElement.scrollTo({top:0,behavior:"instant"}),"/"===t&&window.dispatchEvent(new CustomEvent("advance-feed"))),E()},K=e=>e.map(e=>{const t="/"===e.to?"/"===l.pathname||""===l.pathname:l.pathname===e.to||l.pathname.startsWith(`${e.to}/`);return r.jsxs(v,{to:e.to,onPointerDown:()=>{"/explore"===e.to&&Q(),w(e.to).catch(()=>{})},onFocus:()=>{"/explore"===e.to&&Q(),w(e.to).catch(()=>{})},onClick:t=>J(t,e.to),className:a("group/sidebar-item relative flex h-12 w-12 items-center justify-center overflow-visible rounded-2xl transition-all",t?"bg-black/[0.06] text-black dark:bg-white/10 dark:text-white":"text-black dark:text-white/70"),"aria-label":e.label,children:[r.jsx(e.icon,{className:"h-7 w-7",strokeWidth:t?2.7:2.1}),r.jsx("span",{role:"tooltip",className:"pointer-events-none absolute left-[calc(100%+10px)] top-1/2 z-[80] -translate-x-1 -translate-y-1/2 whitespace-nowrap rounded-xl bg-neutral-950 px-3 py-2 text-sm font-semibold text-white opacity-0 shadow-xl transition-[opacity,transform] duration-150 group-hover/sidebar-item:translate-x-0 group-hover/sidebar-item:opacity-100 group-focus-visible/sidebar-item:translate-x-0 group-focus-visible/sidebar-item:opacity-100",children:e.label})]},e.to)}),X=e=>e.map(e=>{const t="/"===e.to?"/"===l.pathname||""===l.pathname:l.pathname===e.to||l.pathname.startsWith(`${e.to}/`);return r.jsxs(v,{to:e.to,onPointerDown:()=>{"/explore"===e.to&&Q(),w(e.to).catch(()=>{})},onFocus:()=>{"/explore"===e.to&&Q(),w(e.to).catch(()=>{})},onClick:t=>J(t,e.to),className:a("flex h-14 min-w-0 flex-1 flex-col items-center justify-center gap-1 rounded-2xl px-2 transition-all",R?t?"bg-white/[0.18] text-white":"text-white/86":t?"bg-primary/15 text-primary":"text-foreground/70 hover:bg-foreground
2/5 hover:text-foreground"),"aria-label":e.label,children:[r.jsx(e.icon,{className:"h-5 w-5 sm:h-6 sm:w-6",strokeWidth:2.6}),r.jsx("span",{className:"hidden text-[9px] font-black uppercase tracking-wide sm:block",children:e.label})]},e.to)}),Y=(e=!1)=>r.jsx("button",{type:"button",onClick:()=>{C(),null==o||o()},className:a("flex items-center justify-center bg-primary text-primary-foreground shadow-lg transition active:scale-95",e?"h-14 w-14 rounded-2xl":"h-12 w-12 rounded-xl"),"aria-label":"Create",children:r.jsx(_,{className:"h-5 w-5"})});if("launcher"===M){const e=a("relative flex h-14 w-14 items-center justify-center rounded-2xl border-0 shadow-[0_18px_50px_rgba(0,0,0,0.24)] sm:h-[72px] sm:w-[72px] sm:rounded-[1.65rem]",B?"bg-background text-foreground":f?"echo-mobile-nav-glass text-white":"bg-white/88 text-black backdrop-blur-2xl");return r.jsx("nav",{className:a("echo-scroll-chrome echo-scroll-chrome--bottom fixed bottom-4 left-0 right-0 z-[60] px-4 p-safe-bottom",$&&"echo-scroll-chrome--hidden pointer-events-none"),"aria-label":"Shortcut bar",children:r.jsxs("div",{className:"mx-auto flex w-fit items-center gap-1.5 rounded-[2rem] bg-transparent sm:gap-2",children:[r.jsx(v,{to:"/",className:e,style:A,"aria-label":"My Feed",onClick:e=>J(e,"/"),children:r.jsx(j,{className:"h-6 w-6 sm:h-7 sm:w-7",strokeWidth:2.2})}),r.jsx(v,{to:"/boards",className:e,style:A,"aria-label":"Boards",onClick:e=>J(e,"/boards"),children:r.jsx(k,{className:"h-6 w-6 sm:h-7 sm:w-7",strokeWidth:2.2})}),r.jsx("button",{type:"button",className:a(e,"!bg-primary !text-primary-foreground"),"aria-label":"Create",onClick:()=>{C(),null==o||o()},children:r.jsx(_,{className:"h-6 w-6 sm:h-7 sm:w-7",strokeWidth:2.2})}),r.jsx(v,{to:"/explore",className:e,style:A,"aria-label":"Explore",onPointerDown:Q,onFocus:Q,onClick:e=>J(e,"/explore"),children:r.jsx(y,{className:"h-6 w-6 sm:h-7 sm:w-7",strokeWidth:2.2})}),r.jsx(t.Suspense,{fallback:r.jsx("div",{className:e,"aria-hidden":"true"}),children:r.jsx(I,{launcherTileClass:e,launcherSurfaceStyle:A,showNotification:!1})})]})})}if("top"===M)return r.jsx("nav",{style:A,className:a("echo-scroll-chrome echo-scroll-chrome--top fixed inset-x-0 top-0 z-[60] border-0 px-2 pt-[max(env(safe-area-inset-top),var(--native-safe-top,0px))] shadow-lg sm:px-3",B?"bg-background":f?"echo-mobile-nav-glass text-white":"bg-background/60 backdrop-blur-2xl",$&&"echo-scroll-chrome--hidden pointer-events-none"),children:r.jsxs("div",{className:"mx-auto grid h-[72px] max-w-[760px] grid-cols-[48px_minmax(0,1fr)_56px_minmax(0,1fr)_48px] items-center gap-1 sm:grid-cols-[84px_minmax(0,1fr)_64px_minmax(0,1fr)_84px]",children:[r.jsx("div",{className:"flex h-12 items-center justify-center",children:r.jsx(t.Suspense,{fallback:r.jsx("div",{className:"h-10 w-10","aria-hidden":"true"}),children:r.jsx(I,{inverted:R,showProfile:!1})})}),r.jsx("div",{className:"grid min-w-0 grid-cols-2 items-center",children:X(q.slice(0,2))}),r.jsx("div",{className:"flex items-center justify-center",children:Y(!0)}),r.jsx("div",{className:"grid min-w-0 grid-cols-2 items-center",children:X(q.slice(2))}),r.jsx("div",{className:"flex h-12 items-center justify-center",children:r.jsx(t.Suspense,{fallback:r.jsx("div",{className:"h-10 w-10","aria-hidden":"true"}),children:r.jsx(I,{inverted:R,showNotification:!1})})})]})});if("sidebar"===M)return r.jsxs(r.Fragment,{children:[r.jsxs("aside",{style:{backgroundColor:P.canvas_tone},className:a("echo-scroll-chrome echo-scroll-chrome--side fixed bottom-0 left-0 top-0 z-[60] hidden w-[72px] flex-col items-center justify-between bg-background px-3 py-4 md:flex",$&&"echo-scroll-chrome--hidden pointer-events-none"),children:[r.jsxs("div",{className:"flex w-full flex-col items-center gap-2",children:[K(q.slice(0,3)),K(q.slice(3)),r.jsx("div",{className:"mt-1",children:r.jsx(t.Suspense,{fallback:r.jsx("div",{className:"h-12 w-12","aria-hidden":"true"}),children:r.jsx(I,{vertical:!0,mutedOnLight:!0,showProfile:!1})})})]}),r.jsxs("div",{className:"flex w-full flex-col items-center gap-2",children:[r.jsxs("div",{className:"group/sidebar-item relative flex h-12 w-12 items-center justify-center",children:[Y(!1),r.jsx("span",{role:"tooltip",className:"pointer-events-none absolute left-[calc(100%+10px)] top-1/2 z-[80] -translate-x-1 -translate-y-1/2 whitespace-nowrap rounded-xl bg-neutral-950 px-3 py-2 text-sm font-semibold text-white opacity-0 shadow-xl transition-[opacity,transform] duration-150 group-hover/sidebar-item:translate-x-0 group-hover/sidebar-item:opacity-100 group-focus-within/sidebar-item:translate-x-0 group-focus-within/sidebar-item:opacity-100",children:"Create"})]}
2),r.jsx("div",{children:r.jsx(t.Suspense,{fallback:r.jsx("div",{className:"h-12 w-12","aria-hidden":"true"}),children:r.jsx(I,{vertical:!0,mutedOnLight:!0,showNotification:!1})})})]})]}),r.jsx("nav",{style:A,className:a("echo-scroll-chrome echo-scroll-chrome--bottom fixed bottom-3 left-3 right-3 z-[60] rounded-[1.75rem] border border-border/40 p-1.5 shadow-2xl md:hidden",B?"bg-background":"bg-background/60 backdrop-blur-2xl",$&&"echo-scroll-chrome--hidden pointer-events-none"),children:r.jsxs("div",{className:"flex items-center gap-1",children:[((e=!1,t=!1,o=!1,n=q)=>n.map(n=>{const s="/"===n.to?"/"===l.pathname||""===l.pathname:l.pathname===n.to||l.pathname.startsWith(`${n.to}/`);return r.jsxs(v,{to:n.to,onPointerDown:()=>{"/explore"===n.to&&Q(),w(n.to).catch(()=>{})},onFocus:()=>{"/explore"===n.to&&Q(),w(n.to).catch(()=>{})},onClick:e=>J(e,n.to),className:a("flex items-center justify-center rounded-2xl transition-all",e?"h-14 w-14 flex-col gap-1":"h-14 min-w-0 flex-1 flex-col gap-1 px-2",o?s?"bg-black/[0.06] text-black dark:bg-white/10 dark:text-white":"text-black dark:text-white/70":s?"bg-primary/15 text-primary":"text-foreground/70 hover:bg-foreground
2/5 hover:text-foreground"),"aria-label":n.label,children:[r.jsx(n.icon,{className:"h-5 w-5",strokeWidth:s?2.7:2.1}),r.jsx("span",{className:a("text-[9px] font-black uppercase tracking-wide",t&&"hidden sm:block"),children:n.label})]},n.to)}))()," ",Y()]})})]});if("dock"===M||"responsive"===M&&"pill"===S.mobile_nav_style){const e=B?"text-foreground":f||V||U?"text-white":"dark"===z?"text-black/80":"text-white",n=!B&&(f||V||U||"dark"!==z),s=t=>{const o="/"===t.to?"/"===l.pathname||""===l.pathname:l.pathname===t.to||l.pathname.startsWith(`${t.to}/`);return r.jsxs(v,{to:t.to,onPointerDown:()=>{"/explore"===t.to&&Q(),"/favorites"===t.to&&d().catch(()=>{})},onFocus:()=>{"/explore"===t.to&&Q(),"/favorites"===t.to&&d().catch(()=>{})},onClick:e=>{"/explore"===t.to&&Q(),"/favorites"===t.to&&d().catch(()=>{});const r="/"===t.to&&("/"===l.pathname||""===l.pathname);(l.pathname===t.to||r)&&(e.preventDefault(),window.scrollTo({top:0,behavior:"instant"}),document.documentElement.scrollTo({top:0,behavior:"instant"}),"/"===t.to&&window.dispatchEvent(new CustomEvent("advance-feed"))),E()},className:()=>a("flex h-full min-w-0 flex-col items-center justify-center gap-1 rounded-[1.45rem]",!f&&"transition-all duration-300",o?B?"bg-foreground
2/[0.08] text-primary":f?"bg-white/[0.18] text-white":"bg-white/[0.18] shadow-[inset_0_1px_0_rgba(255,255,255,0.18)]":e),"aria-label":t.label,children:[r.jsx(t.icon,{className:a("h-5 w-5 sm:h-6 sm:w-6",o&&!f?"text-primary":e),strokeWidth:2.6}),r.jsx("span",{className:a("hidden max-w-full truncate text-[10px] font-black uppercase leading-none tracking-wide sm:block",e),children:t.label})]},t.to)};return r.jsx("nav",{ref:W,className:a("echo-scroll-chrome echo-scroll-chrome--bottom fixed bottom-4 left-0 right-0 z-[60] px-5 p-safe-bottom text-white","responsive"===M&&"md:hidden",$&&"echo-scroll-chrome--hidden pointer-events-none"),children:r.jsxs("div",{style:A,className:a("relative mx-auto h-[74px] items-center rounded-[2.1rem] p-1.5","dock"===M?"grid max-w-[760px] grid-cols-[48px_minmax(0,1fr)_56px_minmax(0,1fr)_48px] gap-1 sm:grid-cols-[84px_minmax(0,1fr)_64px_minmax(0,1fr)_84px]":"grid max-w-[560px] grid-cols-[minmax(0,1fr)_56px_minmax(0,1fr)] gap-1",B?"border-0 bg-background text-foreground shadow-[0_20px_70px_rgba(0,0,0,0.22)]":f?"echo-mobile-nav-glass border-0 text-white":"bg-white/78 text-white shadow-[0_20px_70px_rgba(0,0,0,0.26)] backdrop-blur-2xl"),children:["dock"===M?r.jsx("div",{className:"flex h-12 items-center justify-center",children:r.jsx(t.Suspense,{fallback:r.jsx("div",{className:"h-10 w-10","aria-hidden":"true"}),children:r.jsx(I,{inverted:n,mutedOnLight:!n,showProfile:!1})})}):null,r.jsx("div",{className:"grid h-full min-w-0 grid-cols-2 items-center",children:q.slice(0,2).map(s)}),r.jsx("div",{className:"flex items-center justify-center",children:r.jsx("button",{onClick:()=>{C(),null==o||o()},className:a("flex h-14 w-14 items-center justify-center rounded-[1.35rem] bg-primary text-primary-foreground",f?"shadow-none":"shadow-[0_12px_28px_rgba(0,0,0,0.36)] transition-all duration-150 active:scale-90"),"aria-label":"Create",children:r.jsx(_,{className:"h-6 w-6"})})}),r.jsx("div",{className:"grid h-full min-w-0 grid-cols-2 items-center",children:q.slice(2).map(s)}),"dock"===M?r.jsx("div",{className:"flex h-12 items-center justify-center",children:r.jsx(t.Suspense,{fallback:r.jsx("div",{className:"h-10 w-10","aria-hidden":"true"}),children:r.jsx(I,{inverted:n,mutedOnLight:!n,showNotification:!1})})}):null]})})}return r.jsx("nav",{style:A,className:a("echo-scroll-chrome echo-scroll-chrome--bottom fixed bottom-0 left-0 right-0 z-[60] border-t px-2 p-safe-bottom","responsive"===M&&"md:hidden",B?"border-border/50 bg-background text-foreground shadow-[0_-18px_60px_rgba(0,0,0,0.22)]":f?"echo-mobile-nav-glass border-white/20 text-white":"border-white/10 bg-black/[0.34] text-white shadow-[0_-18px_60px_rgba(0,0,0,0.36)] backdrop-blur-2xl",$&&"echo-scroll-chrome--hidden pointer-events-none"),children:r.jsx("div",{className:"mx-auto flex h-16 max-w-lg items-center gap-1",children:r.jsxs("div",{className:"relative grid h-16 min-w-0 flex-1 grid-cols-5 items-center",children:[q.map((e,t)=>{const o="/"===e.to?"/"===l.pathname||""===l.pathname:l.pathname===e.to||l.pathname.startsWith(`${e.to}/`),n=["col-start-1","col-start-2","col-start-4","col-start-5"][t];return r.jsxs(v,{to:e.to,onPointerDown:()=>{"/explore"===e.to&&Q()},onFocus:()=>{"/explore"===e.to&&Q()},onClick:t=>{"/explore"===e.to&&Q();const r="/"===e.to&&("/"===l.pathname||""===l.pathname);(l.pathname===e.to||r)&&(t.preventDefault(),window.scrollTo({top:0,behavior:"instant"}),document.documentElement.scrollTo({top:0,behavior:"instant"}),"/"===e.to&&window.dispatchEvent(new CustomEvent("advance-feed"))),E()},className:()=>a("relative flex h-full min-w-0 flex-col items-center justify-center gap-1 rounded-2xl",B?"text-foreground":f?"text-white":"text-white transition-all duration-300",n,o?B?"text-primary":f?"text-white":"translate-y-[-2px]":B?"text-foreground/75":f?"text-white/86":"text-white/82"),children:[r.jsx(e.icon,{className:a("w-6 h-6",B?o?"text-primary":"text-foreground/75":o?"text-white":f?"text-white/86":"text-white")}),r.jsx("span",{className:a("text-[10px] font-bold uppercase tracking-widest",o?B?"text-primary":"text-white":B?"text-foreground/75":f?"text-white/86":"text-white/82"),children:e.label})]},e.to)}),r.jsx("button",{onClick:()=>{C(),null==o||o()}
2,className:a("absolute left-1/2 -top-5 -translate-x-1/2 rounded-full border-[3px] bg-primary p-3 text-primary-foreground",f?"border-background shadow-none":"border-white shadow-[0_14px_34px_rgba(0,0,0,0.34)] transition-all duration-150 active:scale-90"),"aria-label":"Create",children:r.jsx(_,{className:"w-5 h-5"})})]})})})}const $=/^\/boards(?:\/|$)/,W=/^\/public\/[^/]+\/?$/,z=/^\/u\/[^/]+(?:\/[^/]+)?\/?$/,V=f("ParticleBackground",()=>e(()=>import("./ParticleBackground-BDZvK86T.js"),__vite__mapDeps([76,2,77,15,19,16,1,9])).then(e=>({default:e.ParticleBackground}))),H=f("GradientBackground",()=>e(()=>import("./GradientBackground-Bm9R1sHf.js"),__vite__mapDeps([78,2])).then(e=>({default:e.GradientBackground}))),U=f("MainLayoutCaptureLayer",()=>e(()=>import("./MainLayoutCaptureLayer-LB7S9wgj.js"),__vite__mapDeps([79,1,2,80,29,30,31,32,36,81,82,21,43,39,83,72,84,85,50,86,87,88,89,90,91,7,8,9,10,5,6,4,11,12,13,14,15,16,17,70,92,41,42,34,93,25,19,94,46,95,38,53,96,20,97,98,99,100,101,102,103,104,105,27,106,107,69,18,108,109,110,111,112])).then(e=>({default:e.MainLayoutCaptureLayer}
2))),G=f("StaticThemeBackgroundEffect",()=>e(()=>import("./StaticThemeBackgroundEffect-BcHbc1E-.js"),__vite__mapDeps([113,2])).then(e=>({default:e.StaticThemeBackgroundEffect}))),Q=new Set(["aurora","waves"]),q=e=>Array.isArray(e)?e.filter(e=>"string"==typeof e):"string"==typeof e&&e.trim().length>0?[e]:[];let J=null;function K({children:a}){const[s,c]=o.useState(!1),{isAdmin:d,profile:m}=l(),h=u(),[p,f]=o.useState(P),w=Boolean((d||(null==m?void 0:m.is_admin))&&p&&!h),[v,j]=o.useState(null),[k,_]=o.useState(null),[y,N]=o.useState(null),[D,I]=o.useState(!1),[F,O]=o.useState(!1),K=o.useRef(!1),X=o.useRef(null),Y=g(),Z="/moods"===Y.pathname,ee=Y.pathname.includes("/boards/")&&Y.pathname.split("/").length>2||Y.pathname.startsWith("/u/")&&Y.pathname.split("/").length>=4,te=ee?Y.pathname.split("/")[2]:null,{isOnline:re}=C(),{triggerError:oe}=n(),{activeBoardId:ae}=L(),{settings:ne}=i(),se=b(ne,!0),ie=b(ne,h);var le;const ce="/profile"===(le=Y.pathname)||$.test(le)||W.test(le)||z.test(le)?"":"top"===se?"pt-[calc(4.5rem+max(env(safe-area-inset-top),var(--native-safe-top,0px)))]":"dock"===se||"launcher"===se?"pt-[max(env(safe-area-inset-top),var(--native-safe-top,0px))]":"";o.useEffect(()=>{re||oe()},[re,oe]),o.useEffect(()=>{const e=()=>{f(P())};return window.addEventListener(M,e),window.addEventListener("storage",e),()=>{window.removeEventListener(M,e),window.removeEventListener("storage",e)}},[]),o.useEffect(()=>{if(!w)return void j(null);let t=!1;const r=T(()=>{(J??(J=e(()=>import("./FeedBatchMonitors-vqLY-SYV.js"),__vite__mapDeps([114,2,5,6,7,8,9,10,1,4,11,12,13,14,15,16,17,94,31,82,21,115,68,69,70,18,19,20,27,71,72,73,74,75,44,116,46,39,52,117,64,118,84,60])).then(e=>e.FeedBatchMonitors)),J).then(e=>{t||o.startTransition(()=>{j(()=>e)})}).catch(e=>{})},S.nativeBackgroundStartupTimeoutMs);return()=>{t=!0,r()}},[w]),o.useEffect(()=>{if(h)return;let e=!1;const t=()=>{e||I(!0)},r=()=>(()=>{const e=window.requestIdleCallback;"function"!=typeof e?window.setTimeout(t,1400):e(()=>{window.setTimeout(t,900)},{timeout:2e3})})();window.addEventListener("echo:first-frame",r,{once:!0});const o=window.setTimeout(r,2200);return()=>{e=!0,clearTimeout(o),window.removeEventListener("echo:first-frame",r)}},[h]),o.useEffect(()=>{if(F)return;const e=e=>{if(K.current)return;const t=e.detail||null;X.current=t;const r=(null==t?void 0:t.boardId)||ae||te||null;_(r),N((null==t?void 0:t.sectionId)||null),I(!0),(null==t?void 0:t.item)||(null==t?void 0:t.items)||c(!0)};return window.addEventListener("open-capture-modal",e),()=>window.removeEventListener("open-capture-modal",e)},[ae,te,F]),o.useEffect(()=>{if(!h||D)return;let t=!1;return e(()=>import("./offline-C2kw-B3Y.js"),__vite__mapDeps([109,1,13,2,11,9,12])).then(async({getPersistentUploadQueueCount:e,getSyncQueueCount:r})=>{const[o,a]=await Promise.all([e(),r()]);!t&&(o>0||a>0)&&I(!0)}).catch(e=>{}),()=>{t=!0}},[D,h]),o.useEffect(()=>{if(F||ee)return;const e=e=>{if(K.current)return;const t=B(e);if(0===t.length)return;e.preventDefault();const r=X.current,o=[...Array.isArray(null==r?void 0:r.items)?r.items:(null==r?void 0:r.item)?[r.item]:[],...t];X.current=1===o.length?{item:o[0]}:{items:o},_(ae||te||null),N(null),I(!0)};return document.addEventListener("paste",e),()=>document.removeEventListener("paste",e)},[ae,te,F,ee]),o.useEffect(()=>{let e=null;const t=()=>{K.current=!0,O(!0);const t=X.current;X.current=null,t&&(e=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("open-capture-modal",{detail:t}))},0))};return window.addEventListener("echo:capture-layer-ready",t),()=>{window.removeEventListener("echo:capture-layer-ready",t),null!=e&&window.clearTimeout(e)}},[]);const{activeMood:de}=E(),{activeTheme:me}=x(),ue=o.useCallback(()=>{_(null),N(null),I(!0),c(!0)},[_,N]),he=!!me,pe=h?[]:(he?q(null==me?void 0:me.background_effects).filter(e=>!Q.has(e)):q(null==de?void 0:de.background_effects).concat((null==de?void 0:de.background_effect)&&"none"!==de.background_effect?[de.background_effect]:[])).filter(e=>e&&"none"!==e),xe=!h&&!he&&"gradient"===(null==de?void 0:de.background_effect),fe=he?(null==me?void 0:me.is_dark)??!1:(null==de?void 0:de.is_dar
2k)??!1,be=h?"":(e=>{if(!e)return"";const t=e.toLowerCase();return"#030014"===t?"theme-canvas-cyber":"#041d24"===t?"theme-canvas-aurora":"#2a0a12"===t?"theme-canvas-sunset":""})((null==me?void 0:me.canvas_tone)||(null==de?void 0:de.canvas_tone));return r.jsxs("div",{className:`app-screen relative transition-colors duration-500${be?` ${be}`:""}${Z?" bg-[#08090d]":""}`,children:[r.jsx("a",{className:"skip-link",href:"#main-content",children:"Skip to main content"}),re?null:r.jsx("div",{className:"fixed bottom-[calc(6rem+env(safe-area-inset-bottom))] left-0 right-0 z-[70] flex justify-center pointer-events-none px-4",children:r.jsxs("div",{className:"glass px-4 py-2 rounded-full border-red-500/20 bg-red-500/5 flex items-center gap-2 shadow-float pointer-events-auto",children:[r.jsx(R,{className:"w-3.5 h-3.5 text-red-500"}),r.jsx("span",{className:"text-[10px] font-bold text-red-500 uppercase tracking-widest",children:"Offline Mode"})]})}),r.jsx(t.Suspense,{fallback:null,children:D?r.jsx(U,{activeBoardId:ae,boardIdFromUrl:te,isBoardPage:ee,isUploadModalOpen:s,setIsUploadModalOpen:c,targetBoardId:k,setTargetBoardId:_,targetSectionId:y,setTargetSectionId:N}):null}),r.jsxs(t.Suspense,{fallback:null,children:[xe&&r.jsx(H,{enabled:!0,colors:[de.primary_color,de.accent_color||de.primary_color,de.surface_color||"#3b82f6"]}),pe.map((e,t)=>{const o=`${e}-${t}`;return"particles"===e?r.jsx(V,{color:(null==me?void 0:me.primary_color)||(null==de?void 0:de.primary_color),particleCount:50},o):"shooting_stars"===e||"grid"===e||"aurora"===e?r.jsx(G,{effect:e,isDark:fe,color:(null==me?void 0:me.primary_color)||(null==de?void 0:de.primary_color)||"#ef4444"},o):null})]}),r.jsx("main",{id:"main-content",tabIndex:-1,className:`pb-20 transition-[padding,margin] duration-300 ${ce} ${"sidebar"===ie?"md:pb-0 md:pl-[72px]":"top"===ie?"md:pb-0":"dock"===ie||"launcher"===ie?"md:pb-24":"md:pb-0"}${Z?" bg-[#08090d]":""}`,"data-nav-sidebar":"sidebar"===ie?"true":void 0,children:a}),r.jsx(A,{onCaptureClick:ue}),v?r.jsx(v,{}):null]})}export{K as MainLayout};

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.