(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{10677:(e,t,a)=>{"use strict";a.d(t,{default:()=>c});var r=a(95155),n=a(12115);function c(){let[e,t]=(0,n.useState)([]),[a,c]=(0,n.useState)("");return(0,n.useEffect)(()=>{c(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;c(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))]})})}},27528:(e,t,a)=>{Promise.resolve().then(a.bind(a,10677)),Promise.resolve().then(a.bind(a,83700)),Promise.resolve().then(a.bind(a,92210))},83700:(e,t,a)=>{"use strict";a.d(t,{default:()=>s});var r=a(95155),n=a(6504),c=a(5459);function s(e){let{children:t}=e;return(0,r.jsx)(n.oz,{remarkPlugins:[c.A],children:t})}},92210:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var r=a(95155);function n(e){let{actionId:t,label:a}=e;return(0,r.jsx)("button",{type:"button",className:"help-article-set",onClick:()=>window.dispatchEvent(new CustomEvent("madarx:open-setting",{detail:{id:t}})),children:a||"Set this now"})}}},e=>{e.O(0,[930,8441,1255,7358],()=>e(e.s=27528)),_N_E=e.O()}]);