/* hPanel left sidebar — grouped navigation, with a collapsed icon-rail mode. */ const { SidebarItem, SidebarGroupLabel, Icon: SbIcon } = window.HostingerHPanelDesignSystem_3ef285; const NAV = [ { group: null, items: [ { id: "home", icon: "home", label: "Home" }, { id: "build", icon: "sparkles", label: "Build a site" }, { id: "websites", icon: "window", label: "Websites", hasChildren: true }, { id: "domains", icon: "globe", label: "Domains", hasChildren: true }, { id: "emails", icon: "mail", label: "Emails" }, { id: "services", icon: "store", label: "More services", hasChildren: true }, ]}, { group: "Hostinger apps", items: [ { id: "horizons", icon: "layers", label: "Horizons" }, { id: "email-mkt", icon: "sparkles", label: "Email marketing" }, { id: "ecommerce", icon: "share", label: "Ecommerce" }, ]}, { group: "AI agents", items: [ { id: "agents", icon: "bot", label: "Agents" }, { id: "openclaw", icon: "circle-help", label: "OpenClaw" }, { id: "hermes", icon: "rocket", label: "Hermes Agent" }, ]}, { group: "Dev tools", items: [ { id: "vps", icon: "server", label: "VPS" }, { id: "gpu", icon: "cpu", label: "GPU" }, { id: "api", icon: "code", label: "API" }, ]}, ]; function ToggleBtn({ collapsed, onToggle }) { return ( ); } function Sidebar({ active, onNavigate, collapsed, onToggle }) { if (collapsed) { const flat = NAV.flatMap((s) => s.items); return ( ); } return ( ); } window.Sidebar = Sidebar;