1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MemoryDetailModal-qBPi2XWi.js","assets/runtime-preload-CFP917pd.js","assets/vendor-react-BfgFmtGS.js","assets/useOfflineSource-DddWgYFb.js","assets/offline-DAh7TwkE.js","assets/app-_uSXIk0p.js","assets/startup-core-CGeUO7uJ.js","assets/startup-platform-OWIpYyjW.js","assets/startup-diagnostics-bridge-BB8dzHvV.js","assets/useNetworkStatus-CCCthbIH.js","assets/nativeAppStateSubscriptions-Cv_2m-ZS.js","assets/asyncSemaphore-KO0g8gsf.js","assets/supabase-client-2CObC91N.js","assets/vendor-supabase-BL1taoPA.js","assets/supabase-config-BOS-KsQP.js","assets/vendor-query-XXY4vl9u.js","assets/runtime-utils-GN4cODRt.js","assets/userFilters-BGK54pGs.js","assets/createLucideIcon-D9HkCDkl.js","assets/idleStorage-DCX8Fjfi.js","assets/perfConfig-SmqTTOuO.js","assets/documentVisibilitySubscriptions-CqVNm4Da.js","assets/useUserSettings-COWmNJt_.js","assets/vendor-capacitor-8exTJy5k.js","assets/feedMotion-544R1MDZ.js","assets/passiveScrollSubscriptions-CS-jkkI4.js","assets/imageLoadFailurePolicy-DJD2yr3u.js","assets/useAuth-DynbexoK.js","assets/memory-CJrksfzy.js","assets/exploreFilterSemantics-DQb3RKye.js","assets/x-DV2I6wJI.js","assets/image-utils-BFdDQ3hX.js","assets/BoardPreviewAvatar-BIAe0D67.js","assets/VideoPosterOnly-CkOjVgFa.js","assets/videoUtils-CgPXwgg1.js","assets/performanceTier-CKmYu9lG.js","assets/mediaQueryStore-tM2KFt8V.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/button-CYJdLL_L.js","assets/index-h37mMD1s.js","assets/index-nwDrq1j8.js","assets/dialog-C7V6oQ1v.js","assets/index-BRWrGhkK.js","assets/index-Bj_QpGJn.js","assets/index-DvGZCNsD.js","assets/index-DYDcV3bE.js","assets/index-8Q0hjuah.js","assets/index-BjK_cEYO.js","assets/Combination-BntiNnUt.js","assets/input-Cv-gXlbe.js","assets/select-CqFAxzgg.js","assets/index-jVOyRz7F.js","assets/index-DpcxEmoq.js","assets/index-X6GuMWhc.js","assets/index-BQmzLb9B.js","assets/index-YTuft30H.js","assets/index-BqeBQ1B3.js","assets/index-iLL8Ykfz.js","assets/chevron-down-B1qfJDmk.js","assets/check-0D421DYe.js","assets/chevron-up-BtWriVc7.js","assets/useUserFilters-CVxayV_u.js","assets/memoryDetailMetadata-C0EKg-x9.js","assets/search-D_LVchoc.js","assets/rotate-ccw-OkbzjvJs.js","assets/plus-O3w64FuI.js","assets/sliders-horizontal-D56n2gim.js","assets/heart-CdAafllh.js","assets/shareUrls-CnKIAmlW.js","assets/drawer-YADT050z.js","assets/use-mobile-CmledQOG.js","assets/displayText-C8gylbfe.js","assets/noteHtmlSecurity-DJSnKq1l.js","assets/PhotoAttributionFields-DIobFCnU.js","assets/photoAttribution-DdlFXzAY.js","assets/safeExternalUrl-Hy3HQFqY.js","assets/savePhotoAttribution-D3l-t632.js","assets/MoodContext-C3yPuVY1.js","assets/useSubscription-qVychEH1.js","assets/ThemeContext-3fFp6cUT.js","assets/moodConstants-Cjtnp2iF.js","assets/useTags-C47l7F-j.js","assets/useHaptics-8-HNWVFX.js","assets/memoryNoteEchoPages-2Sw1W3Y3.js","assets/useFollowing-abh79vyt.js","assets/useSharedBoards-BlwWTy6S.js","assets/dropdown-menu-BAlvmeJa.js","assets/index-DqIkKHbu.js","assets/chevron-right-aaxqAI6v.js","assets/circle-BwVhTjDX.js","assets/colorPreview-DNHK2pWR.js","assets/memoryDisplayTitle-BcAkzk0a.js","assets/boardViewSettings-ZyAkPc6J.js","assets/boardCardSize-DMpJ9b3m.js","assets/feedSettingsSubscriptions-BbSMaSgy.js","assets/memoryQueryCache-B47lTB9L.js","assets/feedMutationCoordinator-BmmwsaC2.js","assets/collectionNavigation-BzW6Q-na.js","assets/vendor-router-QOYqHwMx.js","assets/folder-Di4waGig.js","assets/share-2-D-X1XWTM.js","assets/download-BJd20YQ5.js","assets/trash-2-CLE9ZDje.js","assets/ban-DClk00Tq.js","assets/flag-CvKwGhpJ.js","assets/sparkles-Bqh4sfNh.js","assets/chevron-left-BP2GmtNQ.js","assets/external-link-BI4-_4re.js","assets/music-jZP0GveI.js","assets/circle-alert-BGsFuKp2.js","assets/file-text-B5ffPq62.js","assets/ellipsis-CLimiuxH.js"])))=>i.map(i=>d[i]); 2import{_ as e}from"./runtime-preload-CFP917pd.js";import{r,j as s}from"./vendor-react-BfgFmtGS.js";import{S as a}from"./SEOHead-CHXhs1CK.js";import{PageHeader as o}from"./PageHeader-BnvONm3p.js";import{PublicNavbar as t}from"./PublicNavbar-ZBBCJgpR.js";import{B as l}from"./button-CYJdLL_L.js";import{u as i}from"./useExploreSearch-BmPUUM3s.js";import{ExploreBoardCard as n}from"./ExploreBoardCard-B-nVbGvW.js";import{M as d}from"./MemoryFeed-BtWuNLBH.js";import{a as c}from"./useAuth-DynbexoK.js";import{a as u}from"./echoTypePolicy-D6McwraQ.js";import{a as m,c as h,L as p}from"./vendor-router-QOYqHwMx.js";import{A as b}from"./arrow-right-Dak2rshg.js";import{S as x}from"./sparkles-Bqh4sfNh.js";import{L as g}from"./loader-circle-fXsKc0TP.js";const f=r.lazy(()=>e(()=>import("./MemoryDetailModal-qBPi2XWi.js").then(e=>e.a),__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,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116])).then(e=>({default:e.MemoryDetailModal}))),j={styles:{group:"styles",singular:"Style",plural:"Styles",intro:e=>`${e} is one of the visual directions people can explore inside Echo. This page gathers public Echoes and boards connected to ${e}, making it easier to discover related references, moods, colors, materials, and compositions in one place.`},tag:{group:"tags",singular:"Tag",plural:"Tags",intro:e=>`This page collects public Echoes and boards associated with the tag ${e}. It helps people move through Echo by subject, visual signal, or recurring reference theme without relying on broad search alone.`},mood:{group:"moods",singular:"Mood",plural:"Moods",intro:e=>`${e} is a mood people can explore across public Echoes in Echo. This page surfaces visuals and boards that share a similar emotional tone so discovery feels more intuitive.`},material:{group:"materials",singular:"Material",plural:"Materials",intro:e=>`This page explores public Echoes and boards connected to ${e} as a material. It helps users discover references through texture, surface, and physical character, not just broad keywords.`},subject:{group:"subjects",singular:"Subject",plural:"Subjects",intro:e=>`This page gathers public Echoes and boards centered around ${e} as a subject. It gives Echo a more precise way to explore what images and references are actually about.`},object:{group:"objects",singular:"Object",plural:"Objects",intro:e=>`This page collects public Echoes and boards related to ${e} as an object. It is useful for people who explore inspiration through recurring items, forms, and motifs.`},aesthetic:{group:"aesthetics",singular:"Aesthetic",plural:"Aesthetics",intro:e=>`${e} is one of the aesthetic directions visible across public Echoes in Echo. This page brings together related boards and references so users can move through a distinct visual world more easily.`}};function _(){const{user:e}=c(),_=m(),{slug:y}=h(),v=_.pathname.replace(/^\/+/,"").split("/")[0],N=v?j[v]:void 0,w=r.useMemo(()=>y?(e=>decodeURIComponent(e).replace(/-/g," ").trim().split(" ").filter(
2Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(y):"",[y]),E=r.useMemo(()=>y?(e=>decodeURIComponent(e).replace(/-/g," ").trim().toLowerCase())(y):"",[y]),M=i({initialQuery:E,enableDiscovery:!1,enableAllResultTabs:!0}),{clearFilters:S,debouncedQuery:$,echoResults:k,loadMoreBoards:C,loadMoreEchoes:T,setActiveTab:L,setEchoAiFilters:A,setQuery:B,setSearchMode:R}=M,[P,I]=r.useState(null),O=$.trim()===E,F=r.useMemo(()=>k.map(e=>({id:e.id,type:e.type,title:e.title,content:e.content,description:e.description,html_content:e.html_content,image_url:e.image_url,video_url:e.video_url,audio_url:null,source_url:e.source_url,ai_description:e.ai_description,hearts:e.hearts||0,watch_count:e.watch_count||0,metadata:e.metadata&&"object"==typeof e.metadata&&!Array.isArray(e.metadata)?e.metadata:void 0,created_at:e.created_at,similarity:e.similarity,user_id:e.curator_id||null,owner_username:e.curator_username||e.source_board_owner||null,owner_avatar:e.curator_avatar||e.source_board_owner_avatar||null,added_by:e.curator_id||null,added_by_id:e.curator_id||null,added_by_username:e.curator_username||e.source_board_owner||null,added_by_avatar:e.curator_avatar||e.source_board_owner_avatar||null,is_from_followed_board:e.is_from_followed_board||!1,source_board_id:e.board_id||null,source_board_name:e.source_board_name||e.board_name||null,source_board_owner:e.source_board_owner||e.curator_username||null,source_board_owner_id:e.curator_id||null,source_board_owner_avatar:e.source_board_owner_avatar||e.curator_avatar||null})).filter(u),[k]),D=r.useCallback(e=>{I(e)},[]),Q=r.useCallback(()=>{T()},[T]);if(r.useEffect(()=>{N&&E&&(S(),R("public"),L("echoes"),B(E),A(e=>({...e,[N.group]:[E]})))},[S,E,N,L,A,B,R]),!N||!y)return s.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-6",children:s.jsxs("div",{className:"max-w-md text-center",children:[s.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Page not found"}),s.jsx("p",{className:"mt-3 text-muted-foreground",children:"This discovery page does not exist."})]})});const U=`${w} ${N.singular} Inspiration`,z=`${N.intro(w)} Browse public Echoes and boards related to ${w} on Echo.`;return s.jsxs(s.Fragment,{children:[s.jsx(a,{title:U,description:z,url:`/${v}/${y}`,canonical:`/${v}/${y}`}),s.jsxs("div",{className:"app-screen bg-background pb-24",children:[e?s.jsx("div",{className:"pointer-events-none fixed top-0 left-0 right-0 z-50",children:s.jsx(o,{className:"pointer-events-auto"})}):s.jsx(t,{}),s.jsxs("main",{className:"mx-auto max-w-7xl px-4 pb-10 pt-[calc(6rem+env(safe-area-inset-top))] md:px-6",children:[s.jsxs("section",{className:"sr-only","aria-label":`${U} semantic summary`,children:[s.jsx("h1",{children:U}),s.jsx("p",{children:z}),s.jsxs("p",{children:["Public Echoes: ",M.echoCount,". Public Boards: ",M.boardCount,"."]}),F.length>0?s.jsx("ol",{children:F.slice(0,20).map(e=>s.jsxs("li",{children:[(e.title||e.description||e.content||"Echo").trim(),e.description?`: ${e.description}`:""]},e.id))}):s.jsx("p",{children:"No public Echoes found yet for this attribute."}),M.boardResults.length>0?s.jsx("ul",{children:M.boardResults.slice(0,16).map(e=>s.jsxs("li",{children:[e.name,": ",e.description||`${e.memory_count} echoes`]},e.id))}):s.jsx("p",{children:"No public boards found yet for this attribute."})]}),s.jsxs("section",{className:"rounded-[2.5rem] border border-white/60 bg-[linear-gradient(180deg,rgba(255,255,255,0.92),rgba(255,244,246,0.96))] p-8 shadow-[0_18px_60px_rgba(0,0,0,0.06)]",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[s.jsx("span",{className:"rounded-full bg-primary/10 px-4 py-2 text-xs font-bold uppercase tracking-[0.22em] text-primary",children:N.plural}),s.jsx(p,{to:"/explore",className:"text-sm font-medium text-muted-foreground hover:text-foreground",children:"Explore"})]}),s.jsx("h1",{className:"mt-5 text-4xl font-black tracking-tight text-foreground md:text-5xl",children:U}),s.jsx("p",{className:"mt-5 max-w-3xl text-base leading-8 text-muted-foreground md:text-lg",children:N.intro(w)}),s.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[s.jsxs("span",{className:"rounded-full border border-primary/20 bg-primary/5 px-4 py-2 text-sm font-semibold text-primary",children:[N.singular,": ",w]}),s.jsx("span",{className:"rounded-full border border-border bg-background/70 px-4 py-2 text-sm font-semibold text-foreground
2/75",children:"Public discovery"}),s.jsxs("span",{className:"rounded-full border border-border bg-background/70 px-4 py-2 text-sm font-semibold text-foreground/75",children:["Echoes: ",M.echoCount]}),s.jsxs("span",{className:"rounded-full border border-border bg-background/70 px-4 py-2 text-sm font-semibold text-foreground/75",children:["Boards: ",M.boardCount]})]}),s.jsx("div",{className:"mt-8 flex flex-wrap gap-3",children:s.jsx(l,{asChild:!0,className:"rounded-full",children:s.jsxs(p,{to:`/explore?${new URLSearchParams({[N.singular.toLowerCase()]:E}).toString()}`,children:["Open in Explore",s.jsx(b,{className:"ml-2 h-4 w-4"})]})})})]}),s.jsxs("section",{className:"mt-8 rounded-[2rem] border border-border/60 bg-background/80 p-6",children:[s.jsxs("div",{className:"mb-5 flex items-center gap-3",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-primary/10 text-primary",children:s.jsx(x,{className:"h-5 w-5"})}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-xl font-bold text-foreground",children:"Public Echoes"}),s.jsxs("p",{className:"text-sm text-muted-foreground",children:["Every Echo shown here is connected to ",w," and can be opened for deeper metadata and related discovery."]})]})]}),s.jsx(d,{memories:O?F:[],searchQuery:E,isLoading:!O||M.isLoadingEchoes,hasInitiallyLoaded:!0,isReadOnly:!0,onMemoryClick:D,onLoadMore:Q,hasMore:M.hasMoreEchoes,isLoadingMore:M.isSearchingEchoes&&M.echoResults.length>0,showFeedSettingsTrigger:!1,applyAiContentPreference:!0,waitForScrollBeforeAutoLoadMore:!1,showAuthorAttribution:!0,className:"pb-0"})]}),s.jsxs("section",{className:"mt-8 rounded-[2rem] border border-border/60 bg-background/80 p-6",children:[s.jsxs("div",{className:"mb-5",children:[s.jsx("h2",{className:"text-xl font-bold text-foreground",children:"Public Boards"}),s.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["Boards connected to ",w," through public content and related search matches."]})]}),!O||M.isLoadingBoards?s.jsxs("div",{className:"flex items-center justify-center py-10 text-sm text-muted-foreground",children:[s.jsx(g,{className:"mr-2 h-4 w-4 animate-spin text-primary"}),"Loading public boards..."]}):M.boardSearchError&&0===M.boardResults.length?s.jsxs("div",{className:"flex flex-col items-start gap-3",role:"alert",children:[s.jsx("p",{className:"text-sm text-muted-foreground",children:"We couldn't load these boards. This is not an empty collection."}),s.jsx(l,{variant:"outline",size:"sm",onClick:()=>{M.retryBoardSearch()},children:"Try again"})]}):M.boardResults.length>0?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-4 md:gap-6",children:M.boardResults.map((e,r)=>s.jsx(n,{board:e,animationDelay:30*Math.min(r,12)},e.id))}),M.hasMoreBoards?s.jsx("div",{className:"mt-6 flex justify-center",children:s.jsx(l,{variant:"outline",className:"rounded-full",disabled:M.isSearchingBoards,onClick:()=>{C()},children:M.isSearchingBoards?"Loading boards...":"Load more boards"})}):null]}):s.jsx("p",{className:"text-sm text-muted-foreground",children:"No public boards found yet for this attribute."})]})]}),P?s.jsx(r.Suspense,{fallback:null,children:s.jsx(f,{memory:P,memories:F,isOpen:!0,onClose:()=>I(null),isReadOnly:!0})}):null]})]})}export{_ as default};
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.