(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1834,3807,6033,7930],{45:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var l=r(12115),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},n=r(64250);let i=(0,l.createContext)({}),o=(0,l.forwardRef)((e,t)=>{var r,o,s;let{color:c,size:u,strokeWidth:d,absoluteStrokeWidth:h,className:m="",children:v,iconNode:p,...j}=e,{size:f=24,strokeWidth:w=2,absoluteStrokeWidth:g=!1,color:x="currentColor",className:k=""}=null!=(r=(0,l.useContext)(i))?r:{},b=(null!=h?h:g)?24*Number(null!=d?d:w)/Number(null!=u?u:f):null!=d?d:w;return(0,l.createElement)("svg",{ref:t,...a,width:null!=(o=null!=u?u:f)?o:a.width,height:null!=(s=null!=u?u:f)?s:a.height,stroke:null!=c?c:x,strokeWidth:b,className:(0,n.z)("lucide",k,m),...!v&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(j)&&{"aria-hidden":"true"},...j},[...p.map(e=>{let[t,r]=e;return(0,l.createElement)(t,r)}),...Array.isArray(v)?v:[v]])})},10677:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var l=r(95155),a=r(12115);function n(){let[e,t]=(0,a.useState)([]),[r,n]=(0,a.useState)("");return(0,a.useEffect)(()=>{n(localStorage.getItem("madarx.activeProjectId")||""),fetch("/api/projects").then(e=>e.json()).then(e=>t(e.projects||[])).catch(()=>{})},[]),(0,l.jsx)("div",{className:"project-switcher","data-project-switcher":!0,children:(0,l.jsxs)("select",{value:r,onChange:e=>{var t;n(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,l.jsx)("option",{value:"",children:"All projects"}),e.map(e=>(0,l.jsx)("option",{value:e.id,children:e.name},e.id))]})})}},64250:(e,t,r)=>{"use strict";r.d(t,{z:()=>l});let l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()}},96272:(e,t,r)=>{Promise.resolve().then(r.bind(r,10677)),Promise.resolve().then(r.bind(r,45))}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=96272)),_N_E=e.O()}]);