PageSourceSearch

https://tenak.ai/assets/NotesPage-S-dXoCPs.js

js tenak.ai collected 2026-10-05 12:45:18 UTC 3,153 bytes, 1 lines download raw bytes

1import{r as n,j as e,A as k,c as v,F as l,d as S,B as t,T as w,E as y,S as I}from"./mui-Bc-_dP9R.js";import{a as C,j as T,d as A,k as z,l as L,I as P,G as p,o as B,p as E,s as M,t as R}from"./index-Bhp2KH8D.js";import{A as i}from"./ArticleListSection-DzjbST9U.js";import"./vendor-CJYsFaKH.js";import"./createQueryHook-BuoxjOCG.js";import"./EmptyState-dThfbq-m.js";import"./CenteredLoader-2ylD98dy.js";import"./CenteredPagination-CHy00kOn.js";import"./mediaCrossOrigin-DMwPgen8.js";import"./localDate-khGRU3g2.js";import"./createMutationHook-Vb-lU_sU.js";const G="articles",b=s=>s==="bookmark"||s==="bookmarks"?"bookmarks":s==="articles"?"articles":G,K=()=>{const{t:s}=C(),{isLoggedIn:c}=T(),d=A(),x=z(o=>o.setActiveModal),m=L(o=>o.search),r=n.useMemo(()=>new URLSearchParams(m).get("tab"),[m]),[a,u]=n.useState(()=>b(r));n.useEffect(()=>{u(b(r))},[r]);const f=n.useCallback(o=>{if(u(o),typeof window<"u"){const h=new URL(window.location.href);h.searchParams.set("tab",o),window.history.replaceState(null,"",h.toString())}},[]),g=n.useCallback(()=>{c?d("/notes/canvas/new"):x("login")},[c,d,x]),j=n.useMemo(()=>[{value:"articles",label:s("notes.tabs.articles"),icon:e.jsx(k,{sx:{fontSize:16}})},{value:"bookmarks",label:s("notes.tabs.bookmarks"),icon:e.jsx(v,{sx:{fontSize:16}})}],[s]);return e.jsx(l,{in:!0,timeout:1500,children:e.jsxs(S,{maxWidth:"lg",disableGutters:!0,children:[e.jsxs(t,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",backgroundImage:`url(${P.notes.top})`,height:{xs:360,md:440},borderRadius:2,backgroundSize:"cover",backgroundPosition:"center",position:"relative",overflow:"hidden","&::before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.6)",borderRadius:2,zIndex:1},mt:4},children:[e.jsx(t,{sx:{display:"inline",fontWeight:"bold",zIndex:100},children:e.jsx(p,{variant:"h2",component:"span",children:s("notes.heroTitle")})}),e.jsxs(t,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",zIndex:2,width:"100%",px:2},children:[e.jsx(w,{variant:"subtitle1",sx:{textAlign:"center",mb:3,mx:2},color:"#fff",children:s("notes.description")}),e.jsx(B,{onClick:g,sx:{px:2},startIcon:e.jsx(y,{}),children:s("notes.post")})]})]}),e.jsx(E,{children:e.jsx(p,{variant:"h5",sx:{py:6},children:s("notes.message")})}),e.jsx(t,{sx:{display:"flex",justifyContent:{xs:"center",sm:"flex-end"}},children:e.jsx(t,{sx:M,children:e.jsx(R,{value:a,onChange:f,items:j,"aria-label":s("notes.tabs.articles")})})}),e.jsxs(t,{sx:{minHeight:{xs:1500}},children:[e.jsx(t,{role:"tabpanel",hidden:a!=="articles",sx:{mb:4},children:a==="articles"&&e.jsx(l,{in:!0,timeout:300,children:e.jsxs(I,{spacing:4,children:[e.jsx(i,{kind:"popular",pageSize:10,view:"popular"}),e.jsx(i,{kind:"latest",pageSize:10,view:"latest"})]})})}),e.jsx(t,{role:"tabpanel",hidden:a!=="bookmarks",sx:{mb:4},children:a==="bookmarks"&&e.jsx(l,{in:!0,timeout:300,children:e.jsx(t,{children:e.jsx(i,{kind:"bookmarks",view:a})})})}),a==="articles"&&e.jsx(t,{py:4,children:e.jsx(i,{kind:"official",pageSize:20})})]})]})})};export{K 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.