-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1162.2a5c6fc9.chunk.js
More file actions
1 lines (1 loc) · 31.5 KB
/
1162.2a5c6fc9.chunk.js
File metadata and controls
1 lines (1 loc) · 31.5 KB
1
"use strict";(self.webpackChunkfezcodex=self.webpackChunkfezcodex||[]).push([[1162],{1388(e,t,a){a.d(t,{H:()=>c,_:()=>i});var s=a(89379),r=a(9950),l=a(35507),n=a(14548);const i=r.forwardRef((e,t)=>r.createElement(l.A,(0,s.A)((0,s.A)({ref:t},e),{},{weights:n.A})));i.displayName="ListDashesIcon";const c=i},14548(e,t,a){a.d(t,{A:()=>r});var s=a(9950);const r=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M84,64A12,12,0,0,1,96,52H216a12,12,0,0,1,0,24H96A12,12,0,0,1,84,64Zm132,52H96a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H96a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM56,52H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Zm0,64H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Zm0,64H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M216,64V192H96V64Z",opacity:"0.2"}),s.createElement("path",{d:"M88,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Zm128,56H96a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16Zm0,64H96a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16ZM56,56H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Zm0,64H40a8,8,0,1,0,0,16H56a8,8,0,0,0,0-16Zm0,64H40a8,8,0,1,0,0,16H56a8,8,0,0,0,0-16Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,184H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm120,96H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M90,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H96A6,6,0,0,1,90,64Zm126,58H96a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm0,64H96a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM56,58H40a6,6,0,0,0,0,12H56a6,6,0,0,0,0-12Zm0,64H40a6,6,0,0,0,0,12H56a6,6,0,0,0,0-12Zm0,64H40a6,6,0,0,0,0,12H56a6,6,0,0,0,0-12Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M88,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Zm128,56H96a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H96a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM56,56H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M92,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H96A4,4,0,0,1,92,64Zm124,60H96a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm0,64H96a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM56,60H40a4,4,0,0,0,0,8H56a4,4,0,0,0,0-8Zm0,64H40a4,4,0,0,0,0,8H56a4,4,0,0,0,0-8Zm0,64H40a4,4,0,0,0,0,8H56a4,4,0,0,0,0-8Z"}))]])},39586(e,t,a){a.d(t,{J:()=>c,S:()=>i});var s=a(89379),r=a(9950),l=a(35507),n=a(44938);const i=r.forwardRef((e,t)=>r.createElement(l.A,(0,s.A)((0,s.A)({ref:t},e),{},{weights:n.A})));i.displayName="CheckIcon";const c=i},41907(e,t,a){a.d(t,{A:()=>r});var s=a(9950);const r=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),s.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]])},42790(e,t,a){a.d(t,{A:()=>r});var s=a(9950);const r=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M246.15,133.18,146.83,33.86A19.85,19.85,0,0,0,132.69,28H40A12,12,0,0,0,28,40v92.69a19.85,19.85,0,0,0,5.86,14.14l99.32,99.32a20,20,0,0,0,28.28,0l84.69-84.69A20,20,0,0,0,246.15,133.18Zm-98.83,93.17L52,131V52h79l95.32,95.32ZM104,88A16,16,0,1,1,88,72,16,16,0,0,1,104,88Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M237.66,153,153,237.66a8,8,0,0,1-11.31,0L42.34,138.34A8,8,0,0,1,40,132.69V40h92.69a8,8,0,0,1,5.65,2.34l99.32,99.32A8,8,0,0,1,237.66,153Z",opacity:"0.2"}),s.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M241.91,137.42,142.59,38.1a13.94,13.94,0,0,0-9.9-4.1H40a6,6,0,0,0-6,6v92.69a13.94,13.94,0,0,0,4.1,9.9l99.32,99.32a14,14,0,0,0,19.8,0l84.69-84.69A14,14,0,0,0,241.91,137.42Zm-8.49,11.31-84.69,84.69a2,2,0,0,1-2.83,0L46.59,134.1a2,2,0,0,1-.59-1.41V46h86.69a2,2,0,0,1,1.41.59l99.32,99.31A2,2,0,0,1,233.42,148.73ZM94,84A10,10,0,1,1,84,74,10,10,0,0,1,94,84Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M240.49,138.83,141.17,39.51A11.93,11.93,0,0,0,132.69,36H40a4,4,0,0,0-4,4v92.69a11.93,11.93,0,0,0,3.51,8.48l99.32,99.32a12,12,0,0,0,17,0l84.69-84.69a12,12,0,0,0,0-17Zm-5.66,11.31-84.69,84.69a4,4,0,0,1-5.65,0L45.17,135.51A4,4,0,0,1,44,132.69V44h88.69a4,4,0,0,1,2.82,1.17l99.32,99.32A4,4,0,0,1,234.83,150.14ZM92,84a8,8,0,1,1-8-8A8,8,0,0,1,92,84Z"}))]])},44938(e,t,a){a.d(t,{A:()=>r});var s=a(9950);const r=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),s.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]])},51162(e,t,a){a.r(t),a.d(t,{default:()=>R});var s=a(89379),r=a(9950),l=a(18905),n=a(89837),i=a(19046),c=a(97179),o=a(85528),d=a(50263),m=a(11314),x=a(87186),h=a(67986),p=a(82532),u=a(57142),g=a(51457),b=a(4422),w=a(1388),j=a(96495),f=a(7799),v=a(19216),y=a(1261),N=a(17103),H=a.n(N),A=a(34272),Z=a(53291),k=a(47721),E=a(70018),C=a(39886),M=a(85921),L=a(52830),F=a(44414);const z=e=>{let{status:t,className:a=""}=e;switch(null===t||void 0===t?void 0:t.toLowerCase()){case"completed":case"done":return(0,F.jsx)(i.r,{weight:"fill",className:"text-indigo-400 ".concat(a)});case"in progress":return(0,F.jsx)(c.q,{weight:"fill",className:"text-amber-400 ".concat(a)});case"planned":case"todo":return(0,F.jsx)(o.j,{className:"text-gray-400 ".concat(a)});case"on hold":case"backlog":return(0,F.jsx)(d.O,{className:"text-gray-500 ".concat(a)});case"cancelled":case"canceled":return(0,F.jsx)(m.J,{className:"text-red-400 ".concat(a)});default:return(0,F.jsx)(o.j,{className:"text-gray-600 ".concat(a)})}},P=e=>{let{priority:t,className:a=""}=e;switch(null===t||void 0===t?void 0:t.toLowerCase()){case"high":case"urgent":return(0,F.jsxs)("div",{className:"flex gap-0.5 items-end ".concat(a),children:[(0,F.jsx)("div",{className:"w-1 h-1.5 bg-red-500 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-2.5 bg-red-500 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-3.5 bg-red-500 rounded-[1px]"})]});case"medium":return(0,F.jsxs)("div",{className:"flex gap-0.5 items-end ".concat(a),children:[(0,F.jsx)("div",{className:"w-1 h-1.5 bg-orange-400 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-2.5 bg-orange-400 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-3.5 bg-white/20 rounded-[1px]"})]});case"low":return(0,F.jsxs)("div",{className:"flex gap-0.5 items-end ".concat(a),children:[(0,F.jsx)("div",{className:"w-1 h-1.5 bg-gray-400 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-2.5 bg-white/20 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-3.5 bg-white/20 rounded-[1px]"})]});default:return(0,F.jsx)(x.H,{className:"text-gray-600 ".concat(a)})}},S=e=>{let{label:t,children:a}=e;return(0,F.jsxs)("div",{className:"space-y-2",children:[(0,F.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-gray-600",children:t}),(0,F.jsx)("div",{children:a})]})},V=e=>{let{issueId:t,onClose:a}=e;const[s,l]=(0,r.useState)(null),[n,i]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{if(!t)return;(async()=>{i(!0);try{const e=await fetch("/roadmap/roadmap.piml");if(!e.ok)throw new Error("Failed to load");const a=await e.text(),s=H().parse(a);let r=[],n=s.issues||[];const i=e=>{let t=[];return(Array.isArray(e)?e:[e]).forEach(e=>{e.issues?t=t.concat(i(e.issues)):t.push(e)}),t};r=i(n);const c=r.find(e=>e.id===t);l(c)}catch(e){console.error("Failed to fetch item",e)}finally{i(!1)}})()},[t]),(0,r.useEffect)(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="unset"}),[]),(0,F.jsx)(Z.N,{children:(0,F.jsxs)(A.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] flex items-center justify-center p-4 md:p-8",children:[(0,F.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:a}),(0,F.jsxs)(A.P.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{type:"spring",bounce:0,duration:.3},className:"relative w-full max-w-5xl bg-[#121212] border border-white/[0.08] rounded-lg shadow-2xl shadow-black/80 flex flex-col md:flex-row overflow-hidden max-h-[90vh]",children:[(0,F.jsx)("button",{onClick:a,className:"absolute top-4 right-4 p-2 text-gray-500 hover:text-white bg-transparent hover:bg-white/10 rounded-md transition-colors z-20",children:(0,F.jsx)(C.X,{size:18})}),n?(0,F.jsx)("div",{className:"w-full h-96 flex items-center justify-center text-gray-500 font-mono text-xs",children:"Loading Artifact..."}):s?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("div",{className:"flex-1 p-8 md:p-12 overflow-y-auto custom-scrollbar border-r border-white/[0.06]",children:[(0,F.jsxs)("div",{className:"flex items-center gap-3 text-xs text-gray-500 font-mono mb-6",children:[(0,F.jsx)("span",{children:s.id}),s.epic&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{children:"/"}),(0,F.jsx)("span",{children:s.epic})]})]}),(0,F.jsx)("h2",{className:"text-2xl md:text-3xl font-semibold text-white tracking-tight mb-6",children:s.title}),(0,F.jsx)("div",{className:"prose prose-invert prose-p:text-gray-300 prose-headings:text-gray-200 max-w-none text-[15px] leading-relaxed mb-12",children:(0,F.jsx)("p",{children:s.description})}),s.notes&&(0,F.jsxs)("div",{className:"pt-8 border-t border-white/[0.06]",children:[(0,F.jsx)("h3",{className:"text-xs font-bold uppercase tracking-wider text-gray-500 mb-4",children:"Activity Log"}),(0,F.jsxs)("div",{className:"flex gap-4",children:[(0,F.jsx)("div",{className:"w-8 h-8 rounded-full bg-indigo-500/20 flex items-center justify-center text-indigo-400 shrink-0 border border-indigo-500/30",children:(0,F.jsx)(M.K,{size:14,weight:"fill"})}),(0,F.jsxs)("div",{className:"bg-[#1a1a1a] rounded-lg p-4 border border-white/[0.04] text-sm text-gray-300 grow relative",children:[(0,F.jsx)("div",{className:"absolute top-3 -left-1.5 w-3 h-3 bg-[#1a1a1a] border-l border-b border-white/[0.04] rotate-45"}),s.notes]})]})]})]}),(0,F.jsxs)("div",{className:"w-full md:w-80 bg-[#0f0f0f] p-8 space-y-8 overflow-y-auto border-l border-white/[0.02]",children:[(0,F.jsxs)("div",{className:"space-y-6",children:[(0,F.jsx)(S,{label:"Status",children:(0,F.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-gray-200 bg-white/[0.06] px-2 py-1 rounded w-fit",children:[(0,F.jsx)(z,{status:s.status,className:"w-3.5 h-3.5"}),(0,F.jsx)("span",{children:s.status||"Planned"})]})}),(0,F.jsx)(S,{label:"Priority",children:(0,F.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-gray-200",children:[(0,F.jsx)(P,{priority:s.priority}),(0,F.jsx)("span",{children:s.priority||"None"})]})}),(0,F.jsx)(S,{label:"Assignee",children:(0,F.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-300",children:[(0,F.jsx)("div",{className:"w-5 h-5 rounded-full flex items-center justify-center text-[10px] font-bold border ".concat((s.assignee||"Fezcodex").toLowerCase().includes("gemini")?"bg-emerald-500/20 border-emerald-500/30 text-emerald-400":"bg-gray-800 border-white/10 text-gray-400"),children:(s.assignee||"Fezcodex").charAt(0).toUpperCase()}),(0,F.jsx)("span",{children:s.assignee||"Fezcodex"})]})}),s.category&&(0,F.jsx)(S,{label:"Labels",children:(0,F.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-2 py-1 rounded-[4px] bg-white/[0.05] text-gray-400 border border-white/[0.05] text-[11px]",children:[(0,F.jsx)(L.v,{size:12,weight:"fill"}),s.category]})}),s.due_date&&(0,F.jsx)(S,{label:"Due Date",children:(0,F.jsxs)("span",{className:"flex items-center gap-1.5 text-gray-400 text-xs",children:[(0,F.jsx)(h.J,{size:14}),new Date(s.due_date).toLocaleDateString()]})})]}),(0,F.jsxs)("div",{className:"pt-8 border-t border-white/[0.06] space-y-2",children:[(0,F.jsxs)("div",{className:"flex justify-between text-[10px] text-gray-600 font-mono uppercase tracking-wider",children:[(0,F.jsx)("span",{children:"Created"}),(0,F.jsx)("span",{children:new Date(s.created_at).toLocaleDateString()})]}),(0,F.jsxs)("div",{className:"flex justify-between text-[10px] text-gray-600 font-mono uppercase tracking-wider",children:[(0,F.jsx)("span",{children:"Updated"}),(0,F.jsx)("span",{children:(new Date).toLocaleDateString()})]})]})]})]}):(0,F.jsxs)("div",{className:"w-full h-96 flex flex-col items-center justify-center text-gray-500 font-mono text-xs gap-4",children:[(0,F.jsx)("span",{children:"Artifact Not Found"}),(0,F.jsx)("button",{onClick:a,className:"text-white underline",children:"Close"})]})]})]})})},I=e=>{let{status:t,className:a=""}=e;switch(null===t||void 0===t?void 0:t.toLowerCase()){case"completed":case"done":return(0,F.jsx)(i.r,{weight:"fill",className:"text-indigo-400 ".concat(a)});case"in progress":return(0,F.jsx)(c.q,{weight:"fill",className:"text-amber-400 ".concat(a)});case"planned":case"todo":return(0,F.jsx)(o.j,{className:"text-gray-400 ".concat(a)});case"on hold":case"backlog":return(0,F.jsx)(d.O,{className:"text-gray-500 ".concat(a)});case"cancelled":case"canceled":return(0,F.jsx)(m.J,{className:"text-red-400 ".concat(a)});default:return(0,F.jsx)(o.j,{className:"text-gray-600 ".concat(a)})}},_=e=>{let{priority:t,className:a=""}=e;switch(null===t||void 0===t?void 0:t.toLowerCase()){case"high":case"urgent":return(0,F.jsxs)("div",{className:"flex gap-0.5 items-end ".concat(a),children:[(0,F.jsx)("div",{className:"w-1 h-1.5 bg-red-500 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-2.5 bg-red-500 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-3.5 bg-red-500 rounded-[1px]"})]});case"medium":return(0,F.jsxs)("div",{className:"flex gap-0.5 items-end ".concat(a),children:[(0,F.jsx)("div",{className:"w-1 h-1.5 bg-orange-400 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-2.5 bg-orange-400 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-3.5 bg-white/20 rounded-[1px]"})]});case"low":return(0,F.jsxs)("div",{className:"flex gap-0.5 items-end ".concat(a),children:[(0,F.jsx)("div",{className:"w-1 h-1.5 bg-gray-400 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-2.5 bg-white/20 rounded-[1px]"}),(0,F.jsx)("div",{className:"w-1 h-3.5 bg-white/20 rounded-[1px]"})]});default:return(0,F.jsx)(x.H,{className:"text-gray-600 ".concat(a)})}},D=e=>{let{issue:t,viewMode:a,onClick:s}=e;return(0,F.jsx)("div",{onClick:()=>s(t.id),className:"block w-full text-left",children:(0,F.jsxs)(A.P.div,{layoutId:t.id,initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},whileHover:{backgroundColor:"rgba(255,255,255,0.03)"},className:"group border-b border-white/[0.06] hover:border-white/[0.08] transition-colors cursor-pointer\n ".concat("board"===a?"bg-[#121212] border border-white/[0.08] rounded-md p-3 mb-3 hover:shadow-lg hover:shadow-black/50":"flex items-center gap-4 py-2.5 px-4 bg-transparent"),children:[(0,F.jsxs)("div",{className:"flex items-center gap-3 ".concat("board"===a?"mb-2 justify-between":"w-24 shrink-0"),children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(I,{status:t.status,className:"w-4 h-4 shrink-0"}),(0,F.jsx)("span",{className:"font-mono text-[10px] text-gray-500 font-medium tracking-wide group-hover:text-gray-400 transition-colors",children:t.id})]}),"board"===a&&(0,F.jsx)(_,{priority:t.priority})]}),(0,F.jsx)("div",{className:"".concat("board"===a?"mb-3":"grow min-w-0"),children:(0,F.jsx)("h3",{className:"text-[13px] font-medium text-gray-200 truncate group-hover:text-white transition-colors",children:t.title})}),(0,F.jsxs)("div",{className:"flex items-center gap-4 ".concat("board"===a?"justify-between text-[10px]":"text-[11px] shrink-0"),children:[t.category&&(0,F.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded-[4px] bg-white/[0.05] text-gray-400 border border-white/[0.05]",children:t.category}),"list"===a&&t.due_date&&(0,F.jsxs)("span",{className:"flex items-center gap-1.5 text-gray-500 w-24 justify-end",children:[(0,F.jsx)(h.J,{size:12}),new Date(t.due_date).toLocaleDateString("en-US",{month:"short",day:"numeric"})]}),"list"===a&&(0,F.jsx)("div",{className:"w-8 flex justify-center",children:(0,F.jsx)(_,{priority:t.priority})})]})]})})},B=e=>{let{title:t,count:a,icon:s,isCollapsed:r,onToggle:l}=e;return(0,F.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2 mt-6 mb-1 text-xs font-medium text-gray-400 select-none group",children:[s&&(0,F.jsx)(s,{size:14}),(0,F.jsx)("span",{children:t}),(0,F.jsx)("span",{className:"text-gray-600 font-mono text-[10px] ml-1",children:a}),(0,F.jsx)("div",{className:"h-px bg-white/[0.06] grow ml-3 transition-colors group-hover:bg-white/[0.1]"}),(0,F.jsx)("button",{onClick:l,className:"p-1 hover:bg-white/10 rounded transition-colors",children:r?(0,F.jsx)(p.F,{size:12}):(0,F.jsx)(u.H,{size:12})})]})},R=()=>{const[e,t]=(0,r.useState)([]),[a,d]=(0,r.useState)("list"),{unlockAchievement:m}=(0,k.k)(),[x,h]=(0,r.useState)(!0),[u,N]=(0,r.useState)(""),[C,M]=(0,r.useState)("All"),[L,z]=(0,r.useState)({}),[P,S]=(0,l.ok)(),I=P.get("issue");(0,r.useEffect)(()=>{m("path_finder");(async()=>{try{const e=await fetch("/roadmap/roadmap.piml");if(e.ok){const a=await e.text(),s=H().parse(a);let r=s.issues||[];r.length>0&&Array.isArray(r[0].issues)?r=r.flatMap(e=>e.issues||[]):Array.isArray(r)||(r=[r]);const l=e=>{let t=[];return e.forEach(e=>{e.issues?t=t.concat(l(Array.isArray(e.issues)?e.issues:[e.issues])):t.push(e)}),t},n=l(Array.isArray(s.issues)?s.issues:[s.issues]);t(n)}}catch(e){console.error("Failed to fetch roadmap data:",e)}finally{h(!1)}})()},[m]);const _=(0,r.useMemo)(()=>["In Progress","Planned","Backlog","Completed","Cancelled"],[]),R=e=>{z(t=>{const a=(0,s.A)((0,s.A)({},t),{},{[e]:!t[e]});return _.every(e=>a[e])&&m("void_architect"),a})},W=e=>{S({issue:e})},J=(0,r.useMemo)(()=>{let t=e.filter(e=>{var t,a;return(null===(t=e.title)||void 0===t?void 0:t.toLowerCase().includes(u.toLowerCase()))||(null===(a=e.id)||void 0===a?void 0:a.toLowerCase().includes(u.toLowerCase()))});"All"!==C&&(t=t.filter(e=>{var t;const a=(null===(t=e.status)||void 0===t?void 0:t.toLowerCase())||"backlog";return"In Progress"===C?a.includes("progress"):"Planned"===C?a.includes("planned")||a.includes("todo"):"Completed"===C?a.includes("complet")||a.includes("done"):"Backlog"===C?a.includes("backlog")||a.includes("hold"):"Cancelled"!==C||a.includes("cancel")}));const a={"In Progress":[],Planned:[],Backlog:[],Completed:[],Cancelled:[]};return t.forEach(e=>{var t;const s=(null===(t=e.status)||void 0===t?void 0:t.toLowerCase())||"backlog";s.includes("progress")?a["In Progress"].push(e):s.includes("planned")||s.includes("todo")?a.Planned.push(e):s.includes("complet")||s.includes("done")?a.Completed.push(e):s.includes("cancel")?a.Cancelled.push(e):a.Backlog.push(e)}),a},[e,u,C]);return x?(0,F.jsx)("div",{className:"min-h-screen bg-[#080808] flex items-center justify-center",children:(0,F.jsx)(g.y,{className:"animate-spin text-gray-500",size:24})}):(0,F.jsxs)("div",{className:"min-h-screen bg-[#080808] text-[#e5e5e5] font-sans selection:bg-indigo-500/30 relative",children:[(0,F.jsx)(n.A,{title:"Roadmap | Fezcodex",description:"Project status and future development tracking.",keywords:["Fezcodex","roadmap","linear","issues"],image:"/images/asset/roadmap-page.webp"}),I&&(0,F.jsx)(V,{issueId:I,onClose:()=>{S({})}}),(0,F.jsxs)("div",{className:"sticky top-0 z-50 bg-[#080808]/80 backdrop-blur-xl border-b border-white/[0.06] px-6 h-14 flex items-center justify-between",children:[(0,F.jsxs)("div",{className:"flex items-center gap-4",children:[(0,F.jsx)(l.N_,{to:"/",className:"text-gray-500 hover:text-white transition-colors",children:(0,F.jsx)(b.n,{size:16,weight:"bold"})}),(0,F.jsx)("div",{className:"h-4 w-px bg-white/[0.1]"}),(0,F.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,F.jsx)("span",{className:"text-gray-500",children:"Workhammer"}),(0,F.jsx)("span",{className:"text-gray-600",children:"/"}),(0,F.jsx)("span",{className:"text-gray-200",children:"Fezcodex"}),(0,F.jsx)("span",{className:"text-gray-600",children:"/"}),(0,F.jsx)("span",{className:"text-white",children:"Roadmap"})]})]}),(0,F.jsx)("div",{className:"flex items-center gap-3",children:(0,F.jsxs)("div",{className:"flex bg-white/[0.05] p-0.5 rounded-[6px] border border-white/[0.05]",children:[(0,F.jsx)("button",{onClick:()=>d("list"),className:"p-1.5 rounded-[4px] transition-all ".concat("list"===a?"bg-[#1a1a1a] text-white shadow-sm":"text-gray-500 hover:text-gray-300"),title:"List View",children:(0,F.jsx)(w.H,{size:14,weight:"bold"})}),(0,F.jsx)("button",{onClick:()=>d("board"),className:"p-1.5 rounded-[4px] transition-all ".concat("board"===a?"bg-[#1a1a1a] text-white shadow-sm":"text-gray-500 hover:text-gray-300"),title:"Board View",children:(0,F.jsx)(j.S,{size:14,weight:"bold",className:"rotate-90"})})]})})]}),(0,F.jsxs)("div",{className:"px-6 py-4 flex flex-col md:flex-row md:items-center gap-4 border-b border-white/[0.04]",children:[(0,F.jsxs)("div",{className:"relative group grow max-w-md",children:[(0,F.jsx)(f.e,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500 group-focus-within:text-white transition-colors"}),(0,F.jsx)("input",{type:"text",placeholder:"Search issues...",value:u,onChange:e=>N(e.target.value),className:"w-full bg-[#121212] border border-white/[0.06] rounded-[6px] py-1.5 pl-9 pr-3 text-[13px] text-white placeholder:text-gray-600 focus:outline-none focus:border-white/[0.15] focus:ring-1 focus:ring-white/[0.05] transition-all"})]}),(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(E.A,{options:[{label:"All Statuses",value:"All"},{label:"In Progress",value:"In Progress"},{label:"Planned",value:"Planned"},{label:"Completed",value:"Completed"},{label:"Backlog",value:"Backlog"},{label:"Cancelled",value:"Cancelled"}],value:C,onChange:M,label:"Filter",icon:v.r,variant:"brutalist",className:"min-w-[140px]"}),(0,F.jsx)(E.A,{options:[{label:"List View",value:"list"},{label:"Board View",value:"board"}],value:a,onChange:d,label:"View",icon:y.k,variant:"brutalist",className:"min-w-[140px]"})]})]}),(0,F.jsx)("div",{className:"p-6 overflow-x-auto min-h-[calc(100vh-140px)]",children:"board"===a?(0,F.jsx)("div",{className:"flex gap-6 min-w-max pb-12",children:_.map(e=>{const t=J[e],a=L[e];return 0===t.length&&"Cancelled"===e?null:(0,F.jsx)("div",{className:"shrink-0 transition-all duration-300 ".concat(a?"w-[50px]":"w-[300px]"),children:a?(0,F.jsxs)("div",{onClick:()=>R(e),className:"h-full border-r border-white/5 flex flex-col items-center py-4 cursor-pointer hover:bg-white/[0.02]",title:"Expand ".concat(e),children:[(0,F.jsxs)("div",{className:"writing-mode-vertical text-xs font-mono font-medium text-gray-500 tracking-widest uppercase rotate-180",style:{writingMode:"vertical-rl"},children:[e," ",(0,F.jsxs)("span",{className:"text-gray-700 ml-2",children:["(",t.length,")"]})]}),(0,F.jsx)(p.F,{size:14,className:"mt-4 text-gray-600"})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(B,{title:e,count:t.length,icon:"In Progress"===e?c.q:"Completed"===e?i.r:o.j,isCollapsed:!1,onToggle:()=>R(e)}),(0,F.jsxs)("div",{className:"space-y-0 mt-3",children:[(0,F.jsx)(Z.N,{children:t.map(e=>(0,F.jsx)(D,{issue:e,viewMode:"board",onClick:W},e.id))}),(0,F.jsxs)("button",{className:"flex items-center gap-2 px-2 py-2 text-gray-600 hover:text-gray-400 text-xs w-full transition-colors group",children:[(0,F.jsx)(p.F,{size:14}),(0,F.jsx)("span",{children:"New Issue"})]})]})]})},e)})}):(0,F.jsx)("div",{className:"max-w-5xl mx-auto pb-24",children:_.map(e=>{const t=J[e],a=L[e];return 0===t.length?null:(0,F.jsxs)("div",{className:"mb-8",children:[(0,F.jsx)(B,{title:e,count:t.length,icon:"In Progress"===e?c.q:"Completed"===e?i.r:o.j,isCollapsed:a,onToggle:()=>R(e)}),!a&&(0,F.jsx)(A.P.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mt-1 overflow-hidden",children:t.map(e=>(0,F.jsx)(D,{issue:e,viewMode:"list",onClick:W},e.id))})]},e)})})})]})}},52830(e,t,a){a.d(t,{g:()=>i,v:()=>c});var s=a(89379),r=a(9950),l=a(35507),n=a(42790);const i=r.forwardRef((e,t)=>r.createElement(l.A,(0,s.A)((0,s.A)({ref:t},e),{},{weights:n.A})));i.displayName="TagIcon";const c=i},70018(e,t,a){a.d(t,{A:()=>o});var s=a(9950),r=a(17119),l=a(86987),n=a(39586),i=a(34272),c=a(44414);const o=e=>{let{options:t,value:a,onChange:o,icon:d,label:m,className:x="",variant:h="default",fullWidth:p=!1}=e;const[u,g]=(0,s.useState)(!1),b=(0,s.useRef)(null),w=(0,s.useRef)(null),[j,f]=(0,s.useState)({}),v="brutalist"===h,y="paper"===h;(0,s.useEffect)(()=>{const e=e=>{const t=b.current&&b.current.contains(e.target),a=w.current&&w.current.contains(e.target);t||a||g(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,s.useEffect)(()=>{if(u&&b.current){const e=b.current.getBoundingClientRect();f({top:e.bottom+window.scrollY+8,left:e.left+window.scrollX,width:e.width})}},[u]);const N=t.find(e=>e.value===a);return(0,c.jsxs)("div",{className:"relative ".concat(p?"w-full block":"inline-block"," text-left ").concat(x),children:[(0,c.jsxs)("button",{type:"button",ref:b,onClick:()=>g(!u),className:"flex items-center justify-between w-full gap-2 px-4 py-2 transition-all focus:outline-none ".concat(v?"bg-transparent border border-gray-800 rounded-sm text-xs font-mono uppercase tracking-widest text-gray-400 hover:border-gray-600 hover:text-white":y?"bg-transparent border border-[#1a1a1a] rounded-sm text-xs font-mono font-black uppercase tracking-widest text-[#1a1a1a]/60 hover:bg-[#1a1a1a]/5 hover:text-[#1a1a1a]":"bg-gray-800 hover:bg-gray-700 border border-gray-700 rounded-md text-sm font-medium text-gray-200 focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-900 focus:ring-primary-500"),children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[d&&(0,c.jsx)(d,{size:v||y?16:20,className:v?"text-emerald-500":y?"text-[#1a1a1a]":"text-gray-400"}),(0,c.jsx)("span",{children:N?N.label:m})]}),(0,c.jsx)(l.a,{size:v||y?12:16,className:"ml-2 transition-transform duration-200 ".concat(u?"rotate-180":"")})]}),u?r.createPortal((0,c.jsx)(i.P.div,{ref:w,initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.1},className:"".concat(v?"bg-[#050505] border border-white/10 rounded-sm":y?"bg-[#e9e4d0] border-[#1a1a1a] rounded-sm":"bg-gray-800 border border-gray-700 rounded-md shadow-lg"," z-[1000] origin-top-left max-h-80 overflow-y-auto"),style:{position:"absolute",top:j.top,left:j.left,minWidth:j.width,width:"max-content"},children:(0,c.jsx)("div",{className:v||y?"p-1":"py-1",children:t.map(e=>(0,c.jsxs)("button",{onClick:()=>{return t=e.value,o(t),void g(!1);var t},className:"flex items-center justify-between w-full px-4 py-2 text-left transition-colors ".concat(v?"text-xs font-mono uppercase tracking-widest ".concat(a===e.value?"bg-white/10 text-emerald-400":"text-gray-400 hover:bg-white/5 hover:text-white"):y?"text-xs font-mono font-black uppercase tracking-widest ".concat(a===e.value?"bg-[#1a1a1a] text-[#e9e4d0]":"text-[#1a1a1a]/60 hover:bg-[#1a1a1a]/5 hover:text-[#1a1a1a]"):"text-sm ".concat(a===e.value?"bg-primary-500/10 text-primary-400":"text-gray-300 hover:bg-gray-700 hover:text-white")),children:[(0,c.jsx)("span",{children:e.label}),a===e.value&&(0,c.jsx)(n.J,{size:v||y?12:16,className:v?"text-emerald-400":y?"text-[#e9e4d0]":"text-primary-400"})]},e.value))})}),document.body):null]})}},86987(e,t,a){a.d(t,{a:()=>c,b:()=>i});var s=a(89379),r=a(9950),l=a(35507),n=a(41907);const i=r.forwardRef((e,t)=>r.createElement(l.A,(0,s.A)((0,s.A)({ref:t},e),{},{weights:n.A})));i.displayName="CaretDownIcon";const c=i},89837(e,t,a){a.d(t,{A:()=>n});a(9950);var s=a(18905),r=a(44414);const l="https://fezcode.com",n=e=>{let{title:t,description:a,image:n,keywords:i,ogImage:c,twitterImage:o,type:d}=e;const m=(0,s.zy)();if(!t||"Fezcodex"===t||"fezcodex"===t)return null;const x=l+m.pathname,h=m.pathname.startsWith("/apps"),p=n||c||o||(h?"/images/asset/ogtitle-apps.png":"/images/asset/ogtitle.png"),u=p.startsWith("http")?p:l+(p.startsWith("/")?"":"/")+p,g=Array.isArray(i)?i.join(", "):i,b=d||(m.pathname.startsWith("/blog")?"article":"website");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:a}),g&&(0,r.jsx)("meta",{name:"keywords",content:g}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:a}),(0,r.jsx)("meta",{property:"og:image",content:u}),(0,r.jsx)("meta",{property:"og:url",content:x}),(0,r.jsx)("meta",{property:"og:type",content:b}),(0,r.jsx)("meta",{property:"og:site_name",content:"Fezcodex"}),u.startsWith("https")&&(0,r.jsx)("meta",{property:"og:image:secure_url",content:u}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:a}),(0,r.jsx)("meta",{name:"twitter:image",content:u}),(0,r.jsx)("meta",{name:"twitter:url",content:x}),(0,r.jsx)("link",{rel:"canonical",href:x})]})}}}]);