PageSourceSearch

https://drophighlight.com/assets/SuperadminLayout-BCniVLdH.js

js drophighlight.com collected 2026-09-30 06:38:12 UTC 10,077 bytes, 26 lines download raw bytes

1import{p as o,bM as H,w as O,a as P,r as m,j as a,A as R,N as U,aA as B,bN as D,O as q,R as $,S as z,I as d,P as i,ah as u,aj as h,B as b,bO as V,s as E,J as G,M as J}from"./index-P0N1Je5T.js";import{L as Q,R as W}from"./radio-oCTevpY_.js";import{H as Z}from"./heart-Bg-oQPy7.js";import{T as K}from"./toggle-left-B-cUzWJY.js";import{M as X}from"./message-square-DGcgxTUk.js";import{S as f}from"./scroll-text-BLAcSIqv.js";import{A as g}from"./activity-Bq-KAipD.js";import{F as Y}from"./film-DYmoxHh6.js";import{T as _}from"./trash-2-Dwmr_5Bh.js";import{F as aa}from"./file-warning-sWUXqWwT.js";import{H as ea}from"./history-DhaauJBo.js";import{S as y}from"./shield-check-BprGWiUg.js";import{F as sa}from"./file-text-CCIhddT1.js";import{G as ta}from"./globe-Dl8HrUsL.js";import{P as na}from"./plug-BoT8Uhtl.js";import{U as ra}from"./user-CvuxPiRQ.js";import{T as ia}from"./tram-front-BpB5Dzlm.js";import{C as oa}from"./cloud-B_qbyZTm.js";import{D as la}from"./database-JmHCiCSi.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ca=o("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const pa=o("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const ma=o("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const da=o("Signal",[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]]);/**
22 * @license lucide-react v0.462.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const ua=o("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]),Ra=()=>{const{isSuperadmin:v,loading:j,initialCheckComplete:x}=H(),t=O(),{t:s}=P(),N=["/superadmin/platform-settings","/superadmin/image-health","/superadmin/videos-fallback","/superadmin/thumbnails","/superadmin/covers","/superadmin/storage-cleanup","/superadmin/fan-upload-cleanup","/superadmin/regeneration-history"].some(e=>t.pathname===e),[l,k]=m.useState(N),w=["/superadmin/monitoring","/superadmin/health","/superadmin/audit","/superadmin/fan-moderation-history","/superadmin/fan-flow","/superadmin/status","/superadmin/domain-health","/superadmin/cost-simulator","/superadmin/qa-agent"].some(e=>t.pathname===e),[c,M]=m.useState(w),S=["/superadmin/railway-billing","/superadmin/resend-usage","/superadmin/cloudinary-usage","/superadmin/supabase-usage"].some(e=>t.pathname===e),[p,C]=m.useState(S),A=async()=>{await E.auth.signOut(),G.success(s("superadmin.layout.logoutSuccess"))};if(!x&&j)return a.jsx("div",{className:"flex items-center justify-center min-h-screen",children:a.jsx(R,{size:48})});if(x&&!v)return a.jsx(U,{to:"/admin",replace:!0});const L=[{icon:Q,label:s("superadmin.navigation.dashboard"),path:"/superadmin"},{icon:Z,label:"Fan CRM",path:"/superadmin/crm"},{icon:B,label:s("superadmin.navigation.companies"),path:"/superadmin/companies"},{icon:K,label:"Feature Toggles",path:"/superadmin/feature-toggles"},{icon:D,label:"Superadmin Users",path:"/superadmin/users"},{icon:q,label:"Upload Inbox",path:"/superadmin/inbox"},{icon:X,label:"Feedback",path:"/superadmin/feedback"},{icon:$,label:"Segment Refresh Log",path:"/superadmin/segment-refresh-log"},{icon:f,label:"Legal Pages",path:"/superadmin/legal-pages"},{icon:f,label:"Legal Template",path:"/superadmin/legal-templates"}],F=[{icon:z,label:"Media Settings",path:"/superadmin/platform-settings"},{icon:g,label:s("superadmin.navigation.imageHealth"),path:"/superadmin/image-health"},{icon:Y,label:s("superadmin.navigation.videosFallback"),path:"/superadmin/videos-fallback"},{icon:d,label:s("superadmin.navigation.thumbnails"),path:"/superadmin/thumbnails"},{icon:d,label:s("superadmin.navigation.covers"),path:"/superadmin/covers"},{icon:_,label:"Storage Cleanup",path:"/superadmin/storage-cleanup"},{icon:aa,label:"Fan Upload Cleanup",path:"/superadmin/fan-upload-cleanup"},{icon:ea,label:s("superadmin.navigation.regenerationHistory"),path:"/superadmin/regeneration-history"}],I=[{icon:W,label:"Live Monitoring",path:"/superadmin/monitoring"},{icon:pa,label:"System Health",path:"/superadmin/health"},{icon:y,label:"Mobile Resilience",path:"/superadmin/resilience"},{icon:sa,label:s("superadmin.navigation.auditLogs"),path:"/superadmin/audit"},{icon:y,label:"Fan Moderation History",path:"/superadmin/fan-moderation-history"},{icon:g,label:"Fan Flow Monitoring",path:"/superadmin/fan-flow"},{icon:da,label:"Service Status",path:"/superadmin/status"},{icon:ta,label:"Domain Health",path:"/superadmin/domain-health"},{icon:ca,label:"Cost Simulator",path:"/superadmin/cost-simulator"},{icon:ua,label:"QA Agent",path:"/superadmin/qa-agent"}],T=[{icon:ia,label:"Railway Billing",path:"/superadmin/railway-billing"},{icon:J,label:"Resend Usage",path:"/superadmin/resend-usage"},{icon:oa,label:"Cloudinary Usage",path:"/superadmin/cloudinary-usage"},{icon:la,label:"Supabase Usage",path:"/superadmin/supabase-usage"}];return a.jsxs("div",{className:"flex min-h-screen bg-background",children:[a.jsxs("aside",{className:"w-64 border-r bg-card flex flex-col",children:[a.jsx("div",{className:"p-6",children:a.jsx("h1",{className:"text-2xl font-bold text-primary",children:s("superadmin.layout.title")})}),a.jsxs("nav",{className:"space-y-1 px-3 flex-1",children:[L.map(e=>{const n=e.icon,r=t.pathname===e.path;return a.jsxs(i,{to:e.path,className:`flex items-center gap-3 px-3 py-2 rounded-md transition-colors ${r?"bg-primary text-primary-foreground":"hover:bg-accent hover:text-accent-foreground"}`,children:[a.jsx(n,{className:"h-5 w-5"}),a.jsx("span",{children:e.label})]},e.path)}),a.jsxs("div",{className:"mt-2 pt-2 border-t border-border",children:[a.jsxs("button",{onClick:()=>k(!l),className:"flex items-center gap-3 px-3 py-2 rounded-md transition-colors w-full text-left text-sm font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground",children:[a.jsx(d,{className:"h-5 w-5"}),a.jsx("span",{className:"flex-1",children:"Media"}),l?a.jsx(u,{className:"h-4 w-4"}):a.jsx(h,{className:"h-4 w-4"})]}),l&&F.map(e=>{const n=e.icon,r=t.pathname===e.path;return a.jsxs(i,{to:e.path,className:`flex items-center gap-3 pl-8 pr-3 py-2 rounded-md transition-colors ${r?"bg-primary text-primary-foreground":"hover:bg-accent hover:text-accent-foreground"}`,children:[a.jsx(n,{className:"h-4 w-4"}),a.jsx("span",{className:"text-sm",children:e.label})]},e.path)})]}),a.jsxs("div",{className:"mt-2 pt-2 border-t border-border",children:[a.jsxs("button",{onClick:()=>M(!c),className:"flex items-center gap-3 px-3 py-2 rounded-md transition-colors w-full text-left text-sm font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground",children:[a.jsx(g,{className:"h-5 w-5"}),a.jsx("span",{className:"flex-1",children:"Monitoring"}),c?a.jsx(u,{className:"h-4 w-4"}):a.jsx(h,{className:"h-4 w-4"})]}),c&&I.map(e=>{const n=e.icon,r=t.pathname===e.path;return a.jsxs(i,{to:e.path,className:`flex items-center gap-3 pl-8 pr-3 py-2 rounded-md transition-colors ${r?"bg-primary text-primary-foreground":"hover:bg-accent hover:text-accent-foreground"}`,children:[a.jsx(n,{className:"h-4 w-4"}),a.jsx("span",{className:"text-sm",children:e.label})]},e.path)})]}),a.jsxs("div",{className:"mt-2 pt-2 border-t border-border",children:[a.jsxs("button",{onClick:()=>C(!p),className:"flex items-center gap-3 px-3 py-2 rounded-md transition-colors w-full text-left text-sm font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground",children:[a.jsx(na,{className:"h-5 w-5"}),a.jsx("span",{className:"flex-1",children:"Billing / Usage"}),p?a.jsx(u,{className:"h-4 w-4"}):a.jsx(h,{className:"h-4 w-4"})]}),p&&T.map(e=>{const n=e.icon,r=t.pathname===e.path;return a.jsxs(i,{to:e.path,className:`flex items-center gap-3 pl-8 pr-3 py-2 rounded-md transition-colors ${r?"bg-primary text-primary-foreground":"hover:bg-accent hover:text-accent-foreground"}`,children:[a.jsx(n,{className:"h-4 w-4"}),a.jsx("span",{className:"text-sm",children:e.label})]},e.path)})]})]}),a.jsxs("div",{className:"p-3 border-t space-y-2",children:[a.jsx(b,{variant:"ghost",asChild:!0,className:"w-full justify-start",children:a.jsxs(i,{to:"/admin/settings",children:[a.jsx(ra,{className:"h-4 w-4 mr-2"}),"My Account"]})}),a.jsxs(b,{variant:"outline",onClick:A,className:"w-full",children:[a.jsx(ma,{className:"h-4 w-4 mr-2"}),s("superadmin.layout.logout")]})]})]}),a.jsx("main",{className:"flex-1 overflow-auto",children:a.jsx("div",{className:"container mx-auto p-6",children:a.jsx(V,{})})})]})};export{Ra 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.