PageSourceSearch

https://ddtab.com/assets/Navbar-D_zCEqlq.js

js ddtab.com collected 2026-10-02 01:27:30 UTC 1,992 bytes, 1 lines download raw bytes

1import{c as d,d as u,j as e,L as a}from"./chunk-QMGIS6GS-BF8ekFZt.js";import{L as h}from"./Logo-CnEsdGzf.js";import{T as f}from"./Theme-BnUpFQZ-.js";import{L as g}from"./Language-A68--SFw.js";import{f as j,T as v}from"./index-BshPbgWc.js";import{u as b}from"./PopoverProvider-Cy69p5G1.js";import{u as N}from"./useTranslation-C5ql18wM.js";import{b as k}from"./useDialog-htzl9jsc.js";function C({navItems:r}){const l=d(),{t:i}=N(),{langPrefix:n,lang:c}=u(),{openPopover:m,closePopover:x}=b();return e.jsxs("nav",{className:"h-14 backdrop-blur-md z-20 flex justify-between items-center px-4 py-2 sticky top-0 gap-2",children:[e.jsxs("div",{className:"flex items-center md:gap-10 gap-2",children:[e.jsx(h,{className:"h-8",langPrefix:n}),e.jsx(k,{variant:"light",isIconOnly:!0,size:"sm",className:"md:hidden",onPress:o=>{m(e.jsx("ul",{className:"gap-4 overflow-hidden w-40 flex flex-col p-2 list-none",children:r.map(s=>{const t=`${n}${s.to}`.replace(new RegExp("(?<=.)\\/$"),""),p=l.pathname===t;return e.jsx("li",{children:e.jsx(a,{onClick:()=>x(),to:t,className:`text-sm no-underline transition-colors ${p?"text-blue-500 font-medium":"text-foreground-600 hover:text-blue-500"}`,children:i(`nav.${s.key}`)})},s.key)})}),o,"bottom")},children:e.jsx(j,{size:20})}),e.jsx("ul",{className:"gap-2 overflow-hidden md:gap-8 list-none items-center md:flex md:max-h-60  max-h-0",children:r.map(o=>{const s=o.component?"":`${n}${o.to}`.replace(new RegExp("(?<=.)\\/$"),""),t=l.pathname===s;return e.jsx("li",{className:`${s?"shrink-0":""}`,children:s?e.jsx(a,{to:s,className:`text-sm no-underline transition-colors ${t?"text-blue-500 font-medium":"text-foreground-600 hover:text-blue-500"}`,children:i(`nav.${o.key}`)}):o.component},o.key)})})]}),e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsxs(a,{to:"/ai",className:"text-sm no-underline transition-colors shrink-0 flex gap-1",children:[e.jsx(v,{size:20}),"创作平台"]},"create"),e.jsx(g,{lang:c}),e.jsx(f,{})]})]})}export{C as N};

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.