1"use strict";(self.webpackChunkhevolve=self.webpackChunkhevolve||[]).push([[6692],{46692(e,r,n){n.r(r),n.d(r,{default:()=>N});var o=n(66615),a=n(96446),t=n(85865),i=n(35721),s=n(56258),l=n(38968),d=n(2050),c=n(48734),h=n(60587),x=n(60295),g=n(92314),p=n(55263),u=n(17392),b=n(18483),m=n(81637),f=n(89611),A=n(69120),v=n(58094),k=n(37991),j=n(49990),y=n(57779),w=n(2759),C=n(32125),F=n(92577),E=n(52177),S=n(77915),R=n(73192),_=n(42402),P=n(42744),T=n(62159),W=n(65043),B=n(73216),z=n(49367),L=n(28215),I=n(11100),D=n(70579);const M=260,H=[{label:"Dashboard",path:"/admin",icon:(0,D.jsx)(v.A,{})},{label:"Revenue",path:"/admin/revenue",icon:(0,D.jsx)(R.A,{}),minRole:"central"},{label:"Users",path:"/admin/users",icon:(0,D.jsx)(k.A,{}),minRole:"central"},{label:"Moderation",path:"/admin/moderation",icon:(0,D.jsx)(j.A,{}),minRole:"central"},{label:"Agent Sync",path:"/admin/agents",icon:(0,D.jsx)(y.A,{})},{label:"Channels",path:"/admin/channels",icon:(0,D.jsx)(w.A,{})},{label:"Workflows",path:"/admin/workflows",icon:(0,D.jsx)(C.A,{})},{label:"Settings",path:"/admin/settings",icon:(0,D.jsx)(F.A,{})},{label:"Identity",path:"/admin/identity",icon:(0,D.jsx)(E.A,{})},{label:"Agents Live",path:"/admin/agent-dashboard",icon:(0,D.jsx)(S.A,{})},{label:"Content Tasks",path:"/admin/content-tasks",icon:(0,D.jsx)(_.A,{})},{label:"Pages",path:"/admin/pages",icon:(0,D.jsx)(P.A,{})},{label:"Providers",path:"/admin/providers",icon:(0,D.jsx)(T.A,{})}];function N(e){let{children:r}=e;const n=(0,B.Zp)(),v=(0,B.zy)(),[k,j]=(0,W.useState)(null),[y,w]=(0,W.useState)(!1),{currentUser:C,loading:F}=(0,L.Fr)(),{canAdmin:E,canNetworkAdmin:S}=(0,I.K)();if(!F&&!E)return(0,D.jsx)(B.C5,{to:"/social",replace:!0});const R=H.filter(e=>!e.minRole||"central"!==e.minRole||S),_=(0,D.jsxs)(a.A,{sx:{height:"100%",background:"linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%)",display:"flex",flexDirection:"column"},children:[(0,D.jsxs)(a.A,{sx:{p:3,borderBottom:"1px solid rgba(255,255,255,0.05)"},children:[(0,D.jsx)(t.A,{sx:{fontWeight:800,fontSize:"1.4rem",background:"linear-gradient(135deg, #6C63FF 0%, #9B94FF 50%, #6C63FF 100%)",backgroundSize:"200% auto",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animation:"gradient 3s ease infinite","@keyframes gradient":{"0%":{backgroundPosition:"0% 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0% 50%"}}},children:"Admin Panel"}),(0,D.jsx)(t.A,{variant:"caption",sx:{color:"rgba(255,255,255,0.4)",mt:.5,display:"block"},children:"Nunba Management"})]}),(0,D.jsx)(i.A,{sx:{flex:1,py:2,px:1.5},children:R.map((e,r)=>{const o=v.pathname===e.path,t=k===e.label;return(0,D.jsx)(s.A,{in:!0,timeout:300+50*r,children:(0,D.jsxs)(l.A,{selected:o,onClick:()=>{n(e.path),w(!1)},onMouseEnter:()=>j(e.label),onMouseLeave:()=>j(null),sx:{borderRadius:2,mb:.5,py:1.5,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",transform:t&&!o?"translateX(8px)":"translateX(0)",background:o?"linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(155, 148, 255, 0.15) 100%)":"transparent",borderLeft:o?"3px solid #6C63FF":"3px solid transparent","&:hover":{background:o?"linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(155, 148, 255, 0.2) 100%)":"rgba(255,255,255,0.05)"},"&.Mui-selected":{background:"linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(155, 148, 255, 0.15) 100%)"}},children:[(0,D.jsx)(d.A,{sx:{color:o?"#6C63FF":"rgba(255,255,255,0.5)",minWidth:40,transition:"all 0.3s ease",transform:t?"scale(1.1)":"scale(1)"},children:e.icon}),(0,D.jsx)(c.A,{primary:e.label,primaryTypographyProps:{fontWeight:o?600:400,color:o?"#fff":"rgba(255,255,255,0.7)",fontSize:"0.95rem"}}),o&&(0,D.jsx)(a.A,{sx:{width:6,height:6,borderRadius:"50%",background:"linear-gradient(135deg, #6C63FF 0%, #9B94FF 100%)",boxShadow:"0 0 10px rgba(108, 99, 255, 0.5)"}})]})},e.label)})}),(0,D.jsx)(a.A,{sx:{p:2,borderTop:"1px solid rgba(255,255,255,0.05)"},children:(0,D.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",gap:1.5,p:1.5,borderRadius:2,background:"rgba(255,255,255,0.03)"},children:[(0,D.jsx)(h.A,{sx:{width:36,height:36,background:"linear-gradient(135deg, #6C63FF 0%, #9B94FF 100%)",fontSize:"0.9rem"},children:"A"}),(0,D.jsxs)(a.A,{children:[(0,D.jsx)(t.A,{variant:"body2",sx:{color:"#fff",fontWeight:500},children:"Admin"}),(0,D.jsx)(t.A,{variant:"caption",sx:{color:"rgba(255,255,255,0.4)"},children:"Super Admin"})]})]})})]});return(0,D.jsxs)(a.A,{sx:{display:"flex",minHeight:"100vh",background:"linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%)"},children:[(0,D.jsxs)(z.mg,{children:[(0,D.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,D.jsx)("title",{children:"Hevolve Admin"})]}),(0,D.jsxs)(a.A,{sx:{width:{md:M},flexShrink:{md:0}},children:[(0,D.jsx)(x.Ay,{variant:"temporary",open:y,onClose:()=>w(!1),ModalProps:{keepMounted:!0},PaperProps:{component:"nav","aria-label":"Admin navigation (mobile)"},sx:{display:{xs:"block",md:"none"},"& .MuiDrawer-paper":{width:M,boxSizing:"border-box",border:"none",boxShadow:"4px 0 24px rgba(0, 0, 0, 0.3)"}},children:_}),(0,D.jsx)(x.Ay,{variant:"permanent",PaperProps:{component:"nav","aria-label":"Admin navigation"},sx:{display:{xs:"none",md:"block"},"& .MuiDrawer-paper":{width:M,boxSizing:"border-box",border:"none",boxShadow:"4px 0 24px rgba(0, 0, 0, 0.3)"}},children:_})]}),(0,D.jsx)(g.A,{position:"fixed",elevation:0,sx:{background:"rgba(15, 15, 26, 0.8)",backdropFilter:"blur(20px)",borderBottom:"1px solid rgba(255,255,255,0.05)",width:{md:"calc(100% - ".concat(M,"px)")},ml:{md:"".concat(M,"px")}},children:(0,D.jsxs)(p.A,{sx:{justifyContent:"space-between"},children:[(0,D.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,D.jsx)(u.A,{onClick:()=>
1w(!0),"aria-label":"Open navigation menu",sx:{display:{xs:"inline-flex",md:"none"},color:"rgba(255,255,255,0.7)","&:hover":{color:"#6C63FF"}},children:(0,D.jsx)(f.A,{})}),(0,D.jsx)(b.A,{title:"Back to Social",arrow:!0,children:(0,D.jsx)(u.A,{onClick:()=>n("/social"),"aria-label":"Back to Social",sx:{color:"rgba(255,255,255,0.7)","&:hover":{color:"#6C63FF",background:"rgba(108, 99, 255, 0.1)"},transition:"all 0.3s ease"},children:(0,D.jsx)(A.A,{})})}),(0,D.jsx)(t.A,{variant:"h6",sx:{fontWeight:600,background:"linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"HevolveSocial Admin"})]}),(0,D.jsx)(a.A,{sx:{display:"flex",alignItems:"center",gap:1},children:(0,D.jsx)(a.A,{sx:{px:2,py:.5,borderRadius:2,background:"linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(155, 148, 255, 0.1) 100%)",border:"1px solid rgba(108, 99, 255, 0.2)"},children:(0,D.jsx)(t.A,{variant:"caption",sx:{color:"#6C63FF",fontWeight:500},children:"Production"})})})]})}),(0,D.jsx)(a.A,{component:"main",sx:{flexGrow:1,p:3,width:"100%",mt:8,minHeight:"calc(100vh - 64px)"},children:F?(0,D.jsx)(a.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"60vh"},children:(0,D.jsx)(m.A,{sx:{color:"#6C63FF"}})}):(0,D.jsx)(s.A,{in:!0,timeout:500,children:(0,D.jsx)(a.A,{children:(0,D.jsx)(o.A,{variant:"section",children:r})})})})]})}},66615(e,r,n){n.d(r,{A:()=>u});var o=n(89379),a=n(65043),t=n(96446),i=n(85865),s=n(11906),l=n(48625),d=n(69120),c=n(33639),h=n(94733),x=n(70579);const g={background:"linear-gradient(135deg, #0F0E17 0%, #1A1A2E 40%, #16213E 70%, #0F0E17 100%)"},p={background:"rgba(255,255,255,0.04)",backdropFilter:"blur(12px)",border:"1px solid rgba(255,255,255,0.06)"};class u extends a.Component{constructor(e){super(e),this.handleRetry=()=>{this.setState({hasError:!1,error:null,errorPath:null})},this.handleBack=()=>{window.history.length>1?window.history.back():window.location.href="/social"},this.handleHome=()=>{window.location.href="/social"},this.state={hasError:!1,error:null,errorPath:null}}static getDerivedStateFromError(e){var r,n;const o="ChunkLoadError"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(r=e.message)||void 0===r?void 0:r.includes("Loading chunk"))||(null===e||void 0===e||null===(n=e.message)||void 0===n?void 0:n.includes("Failed to fetch dynamically imported module"));return{hasError:!0,error:e,errorPath:window.location.pathname,isChunkError:o}}componentDidCatch(e,r){var n,o;console.error("[ErrorBoundary]",e,null===r||void 0===r?void 0:r.componentStack),(0,h.z)(window.location.pathname,(null===e||void 0===e?void 0:e.name)||"RenderError");("ChunkLoadError"===(null===e||void 0===e?void 0:e.name)||(null===e||void 0===e||null===(n=e.message)||void 0===n?void 0:n.includes("Loading chunk"))||(null===e||void 0===e||null===(o=e.message)||void 0===o?void 0:o.includes("Failed to fetch dynamically imported module")))&&!this._chunkReloadAttempted&&(this._chunkReloadAttempted=!0,setTimeout(()=>window.location.reload(),2e3))}componentDidUpdate(){this.state.hasError&&this.state.errorPath&&window.location.pathname!==this.state.errorPath&&this.setState({hasError:!1,error:null,errorPath:null})}render(){if(!this.state.hasError)return this.props.children;const e=this.props.variant||"page";return"silent"===e?null:"section"===e?(0,x.jsxs)(t.A,{sx:(0,o.A)((0,o.A)({},p),{},{borderRadius:"16px",p:3,textAlign:"center"}),children:[(0,x.jsx)(i.A,{variant:"body1",sx:{color:"rgba(255,255,255,0.7)",mb:1,fontWeight:600},children:this.state.isChunkError?"Loading failed, reloading...":"This section couldn't load"}),this.state.isChunkError&&(0,x.jsx)(i.A,{variant:"caption",sx:{color:"rgba(255,255,255,0.4)",display:"block",mb:2},children:"A required module failed to load."}),(0,x.jsxs)(t.A,{sx:{display:"flex",gap:1,justifyContent:"center"},children:[(0,x.jsx)(s.A,{size:"small",startIcon:(0,x.jsx)(l.A,{}),onClick:this.handleRetry,sx:{color:"#6C63FF",textTransform:"none","&:hover":{background:"rgba(108,99,255,0.1)"}},children:"Try again"}),(0,x.jsx)(s.A,{size:"small",onClick:()=>window.location.reload(),sx:{color:"rgba(255,255,255,0.5)",textTransform:"none","&:hover":{background:"rgba(255,255,255,0.05)"}},children:"Reload page"})]})]}):(0,x.jsx)(t.A,{sx:(0,o.A)((0,o.A)({},g),{},{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",p:3}),children:(0,x.jsxs)(t.A,{sx:(0,o.A)((0,o.A)({},p),{},{borderRadius:"24px",p:{xs:3,md:5},maxWidth:480,textAlign:"center"}),children:[(0,x.jsx)(i.A,{variant:"h5",sx:{background:"linear-gradient(135deg, #6C63FF, #9B94FF)",WebkitBackgroun
1dClip:"text",WebkitTextFillColor:"transparent",fontWeight:800,mb:1.5},children:"Something went wrong"}),(0,x.jsx)(i.A,{variant:"body2",sx:{color:"rgba(255,255,255,0.5)",mb:3},children:"An unexpected error occurred. Your data is safe."}),(0,x.jsxs)(t.A,{sx:{display:"flex",gap:2,justifyContent:"center",flexWrap:"wrap"},children:[(0,x.jsx)(s.A,{variant:"outlined",startIcon:(0,x.jsx)(c.A,{}),onClick:this.handleHome,sx:{color:"rgba(255,255,255,0.7)",borderColor:"rgba(255,255,255,0.15)",textTransform:"none",borderRadius:"12px","&:hover":{borderColor:"#6C63FF",background:"rgba(108,99,255,0.08)"}},children:"Go to Feed"}),(0,x.jsx)(s.A,{variant:"outlined",startIcon:(0,x.jsx)(d.A,{}),onClick:this.handleBack,sx:{color:"rgba(255,255,255,0.7)",borderColor:"rgba(255,255,255,0.15)",textTransform:"none",borderRadius:"12px","&:hover":{borderColor:"#6C63FF",background:"rgba(108,99,255,0.08)"}},children:"Go back"}),(0,x.jsx)(s.A,{variant:"contained",startIcon:(0,x.jsx)(l.A,{}),onClick:this.handleRetry,sx:{background:"linear-gradient(135deg, #6C63FF, #9B94FF)",textTransform:"none",borderRadius:"12px",fontWeight:600,"&:hover":{background:"linear-gradient(135deg, #5A52E0, #8A83F0)"}},children:"Try again"})]})]})})}}},94733(e,r,n){n.d(r,{L9:()=>s,UL:()=>d,z:()=>l});var o=n(65043),a=n(73216);const t={TypeError:"type_error",ReferenceError:"ref_error",RangeError:"range_error",SyntaxError:"syntax_error",NetworkError:"network_error",ChunkLoadError:"chunk_error"},i=function(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("true"!==localStorage.getItem("observer_consent"))return;const o=localStorage.getItem("access_token");if(!o)return;const a={event:e,page:(i=r,i.replace(/\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi,"/:id").replace(/\/\d{4,}/g,"/:id")),duration_ms:n.duration_ms||0,outcome:n.outcome||"neutral"};var i,s;void 0!==n.score&&(a.score=n.score),void 0!==n.total&&(a.total=n.total),n.category&&(a.category=n.category),void 0!==n.depth_pct&&(a.depth_pct=n.depth_pct),n.error_type&&(a.error_type=(s=n.error_type,t[s]||"render_error")),fetch("/api/social/agent/observe",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(o)},body:JSON.stringify(a),keepalive:!0}).catch(()=>{})};function s(){const e=(0,a.zy)(),r=(0,o.useRef)(Date.now()),n=(0,o.useRef)(e.pathname);(0,o.useEffect)(()=>{const o=n.current,a=Date.now()-r.current;o&&a>2e3&&i("page_leave",o,{duration_ms:a,outcome:"completed"}),r.current=Date.now(),n.current=e.pathname},[e.pathname]),(0,o.useEffect)(()=>{const e=()=>{const e=Date.now()-r.current;e>2e3&&i("page_leave",n.current,{duration_ms:e,outcome:"completed"})};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[])}function l(e,r){i("error_encounter",e,{outcome:"error",error_type:r})}function d(){const e=(0,a.zy)(),r=(0,o.useRef)(new Set);(0,o.useEffect)(()=>{r.current=new Set;const n=()=>{const n=window.scrollY||document.documentElement.scrollTop,o=document.documentElement.scrollHeight-window.innerHeight;if(o<=0)return;const a=Math.round(n/o*100),t=[25,50,75,100];for(const s of t)a>=s&&!r.current.has(s)&&(r.current.add(s),i("scroll_depth",e.pathname,{outcome:"".concat(s,"%"),depth_pct:s}))};return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[e.pathname])}}}]); 2//# sourceMappingURL=6692.1f3fd607.chunk.js.map
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.