(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5941],{10677:(e,a,t)=>{"use strict";t.d(a,{default:()=>n});var s=t(95155),r=t(12115);function n(){let[e,a]=(0,r.useState)([]),[t,n]=(0,r.useState)("");return(0,r.useEffect)(()=>{n(localStorage.getItem("madarx.activeProjectId")||""),fetch("/api/projects").then(e=>e.json()).then(e=>a(e.projects||[])).catch(()=>{})},[]),(0,s.jsx)("div",{className:"project-switcher","data-project-switcher":!0,children:(0,s.jsxs)("select",{value:t,onChange:e=>{var a;n(a=e.target.value),a?localStorage.setItem("madarx.activeProjectId",a):localStorage.removeItem("madarx.activeProjectId"),window.dispatchEvent(new CustomEvent("madarx:project-change",{detail:{project_id:a||null}}))},"aria-label":"Active project",children:[(0,s.jsx)("option",{value:"",children:"All projects"}),e.map(e=>(0,s.jsx)("option",{value:e.id,children:e.name},e.id))]})})}},15057:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>i});var s=t(95155),r=t(55799),n=t(94119);function i(){return(0,s.jsx)(r.iN,{kicker:"madarX OS \xb7 WhatsApp",title:"WhatsApp gateway",description:(0,s.jsxs)(s.Fragment,{children:["Text the main agent like you text Hermes. The bridge pairs as a WhatsApp Web client over Baileys and runs as a separate daemon (npm run whatsapp:bridge)."," ",(0,s.jsx)("a",{className:"admin-link",href:"/marketplace?kind=connection",children:"Configured in Marketplace →"})]}),children:(0,s.jsx)(n.A,{})})}},15127:(e,a,t)=>{Promise.resolve().then(t.bind(t,15057))},55799:(e,a,t)=>{"use strict";t.d(a,{iN:()=>n,qs:()=>i});var s=t(95155),r=t(10677);function n(e){let{kicker:a="madarX OS v1.0",title:t,description:n,actions:i,hideProjectSwitcher:c,children:l}=e;return(0,s.jsxs)("main",{className:"admin-shell",children:[(0,s.jsxs)("header",{className:"admin-header",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"admin-kicker",children:a}),(0,s.jsx)("h1",{children:t}),n?(0,s.jsx)("p",{children:n}):null]}),(0,s.jsxs)("div",{className:"admin-header-actions",children:[c?null:(0,s.jsx)(r.default,{}),i]})]}),l]})}function i(e){let{children:a,tone:t="neutral"}=e;return(0,s.jsx)("span",{className:"admin-pill ".concat(t),children:a})}}},e=>{e.O(0,[2769,4119,8441,1255,7358],()=>e(e.s=15127)),_N_E=e.O()}]);