PageSourceSearch

https://arui.ai/assets/mobile-nav-KNbc1BQ4.js

js arui.ai collected 2026-10-05 13:29:47 UTC 4,530 bytes, 1 lines download raw bytes

1import{r as p,j as e}from"./chunk-UVKPFVEO-Cnb0_rWT.js";import{u as k,S as x,a as d,M as h,b as g,c as u,d as f,L as j,e as L,n as z}from"./(_locale)-BcVmj65E.js";import{B as a}from"./button-BZK3Dth-.js";import{L as n}from"./localized-link-CTcoAWA5.js";import{u as M}from"./use-auth-B34ioH21.js";import{u as O}from"./useTranslation-CqDHyiAa.js";import{S as E}from"./sparkles-idv9SfFu.js";import{S as I}from"./settings-BUcGLCwD.js";import{C as T}from"./clock-D5eCV0lW.js";import{C as A}from"./chevron-down-Dn1Eeo6q.js";import"./preload-helper-ckwbz45p.js";import"./use-theme-ZVZHXCn1.js";import"./createLucideIcon-FTP5h4ga.js";import"./site-lC_WrPgQ.js";import"./dropdown-menu-CZmWtBVI.js";import"./index-BCt_L3no.js";import"./index-B8hKtrZ6.js";import"./index-nH9yuad1.js";import"./index-2HzwytPH.js";import"./dialog-ruNQgghJ.js";import"./utils-cFsh_CuR.js";import"./i18n-B6sHG-u3.js";import"./x-BlyLkw7W.js";import"./music-DzRTyeIV.js";import"./avatar-BYDGDVCi.js";import"./pricing-CvIuhCSr.js";import"./monitor-BjzyKan6.js";import"./check-i3fWuYsK.js";import"./video-DELpIBaC.js";import"./layers-t8JlbdMb.js";import"./image-DI5Mmngs.js";import"./wand-sparkles-DUk9ZrHh.js";import"./box-7FnsHuzA.js";import"./ellipsis-BBInSoEi.js";import"./layout-context-CoFbylHk.js";import"./google-signin-button-DoYQcFUj.js";import"./i18nInstance-C81hCH34.js";function je({user:N,totalCredits:b=0}){const{t:s}=O("common"),[i,o]=p.useState(!1),[l,v]=p.useState(null),{openAuthDialog:w}=M(),y=k(),C=t=>{v(l===t?null:t)};return N?e.jsxs(x,{open:i,onOpenChange:o,children:[e.jsx(d,{asChild:!0,children:e.jsx(a,{variant:"ghost",size:"icon",className:"md:hidden touch-target","aria-label":s("common.openMenu"),children:e.jsx(h,{className:"h-5 w-5"})})}),e.jsxs(g,{side:"right",className:"w-[300px] sm:w-[350px]",children:[e.jsx(u,{children:e.jsx(f,{className:"text-left",children:e.jsx(j,{size:"sm"})})}),e.jsxs("nav",{className:"mt-8 flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between rounded-lg bg-primary/10 px-4 py-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(E,{className:"h-5 w-5 text-primary"}),e.jsx("span",{className:"font-medium",children:s("credits.credits")})]}),e.jsx("span",{className:"font-bold text-primary",children:b})]}),e.jsx("div",{className:"my-2 h-px bg-border"}),e.jsxs(n,{to:"/settings",onClick:()=>o(!1),className:"flex items-center gap-3 px-2 py-3 text-lg font-medium rounded-lg hover:bg-accent transition-colors",children:[e.jsx(I,{className:"h-5 w-5"}),s("nav.settings")]}),e.jsxs(n,{to:"/history",onClick:()=>o(!1),className:"flex items-center gap-3 px-2 py-3 text-lg font-medium rounded-lg hover:bg-accent transition-colors",children:[e.jsx(T,{className:"h-5 w-5"}),s("nav.history")]}),e.jsx("div",{className:"my-2 h-px bg-border"}),e.jsxs("button",{type:"button",onClick:()=>{o(!1),y()},className:"flex items-center gap-3 px-2 py-3 text-lg font-medium text-destructive rounded-lg hover:bg-destructive/10 transition-colors",children:[e.jsx(L,{className:"h-5 w-5"}),s("nav.signOut")]})]})]})]}):e.jsxs(x,{open:i,onOpenChange:o,children:[e.jsx(d,{asChild:!0,children:e.jsx(a,{variant:"ghost",size:"icon",className:"md:hidden touch-target","aria-label":s("common.openMenu"),children:e.jsx(h,{className:"h-6 w-6"})})}),e.jsxs(g,{side:"right",className:"w-[300px] sm:w-[350px]",children:[e.jsx(u,{children:e.jsx(f,{className:"text-left",children:e.jsx(j,{size:"sm"})})}),e.jsxs("nav",{className:"mt-8 flex flex-col gap-4",children:[z.map((t,m)=>{const S=t.icon,c=l===m;return e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>C(m),className:"flex items-center justify-between w-full px-2 py-3 text-lg font-medium rounded-lg hover:bg-accent transition-colors",children:[e.jsxs("span",{className:"flex items-center gap-3",children:[e.jsx(S,{className:"h-5 w-5"}),s(t.labelKey)]}),e.jsx(A,{className:`h-4 w-4 transition-transform ${c?"rotate-180":""}`})]}),c&&e.jsx("div",{className:"ml-8 mt-2 flex flex-col gap-2",children:t.items.length>0?t.items.map(r=>e.jsx(n,{to:r.href,onClick:()=>o(!1),className:"px-2 py-2 text-base text-muted-foreground hover:text-foreground rounded-lg hover:bg-accent transition-colors",children:s(r.labelKey)},r.href)):e.jsx("span",{className:"px-2 py-2 text-base text-muted-foreground",children:s("common.comingSoon")})})]},t.href)}),e.jsx("div",{className:"my-4 h-px bg-border"}),e.jsx(a,{className:"w-full btn-gradient",size:"lg",onClick:()=>{o(!1),w()},children:s("cta.getStarted")})]})]})]})}export{je as MobileNav};

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.