(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1226],{10677:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var r=a(95155),c=a(12115);function s(){let[e,t]=(0,c.useState)([]),[a,s]=(0,c.useState)("");return(0,c.useEffect)(()=>{s(localStorage.getItem("madarx.activeProjectId")||""),fetch("/api/projects").then(e=>e.json()).then(e=>t(e.projects||[])).catch(()=>{})},[]),(0,r.jsx)("div",{className:"project-switcher","data-project-switcher":!0,children:(0,r.jsxs)("select",{value:a,onChange:e=>{var t;s(t=e.target.value),t?localStorage.setItem("madarx.activeProjectId",t):localStorage.removeItem("madarx.activeProjectId"),window.dispatchEvent(new CustomEvent("madarx:project-change",{detail:{project_id:t||null}}))},"aria-label":"Active project",children:[(0,r.jsx)("option",{value:"",children:"All projects"}),e.map(e=>(0,r.jsx)("option",{value:e.id,children:e.name},e.id))]})})}},71537:(e,t,a)=>{"use strict";a.d(t,{default:()=>o});var r=a(95155),c=a(6504),s=a(5459);function o(e){let{markdown:t}=e;return(0,r.jsx)(c.oz,{remarkPlugins:[s.A],children:t})}},72438:(e,t,a)=>{Promise.resolve().then(a.bind(a,10677)),Promise.resolve().then(a.bind(a,71537)),Promise.resolve().then(a.t.bind(a,52619,23))}},e=>{e.O(0,[2619,930,8441,1255,7358],()=>e(e.s=72438)),_N_E=e.O()}]);