@monoco-io/kanban 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/404.html +2 -2
- package/dist/__next.__PAGE__.txt +2 -2
- package/dist/__next._full.txt +6 -6
- package/dist/__next._head.txt +1 -1
- package/dist/__next._index.txt +5 -5
- package/dist/__next._tree.txt +2 -2
- package/dist/_next/static/chunks/{9c9a458bfbd67770.js → 01c8cefba58c30e8.js} +1 -1
- package/dist/_next/static/chunks/{0fe03447a00b7fbf.js → 0a76ad8f7b1afc6f.js} +1 -1
- package/dist/_next/static/chunks/{91ad9db7c3b9c155.js → 221dc8ec15f124e5.js} +1 -1
- package/dist/_next/static/chunks/54181c121ad633a1.js +4 -0
- package/dist/_next/static/chunks/55170fe6a35d6d35.js +1 -0
- package/dist/_next/static/chunks/7417bc3337faaaed.js +1 -0
- package/dist/_next/static/chunks/9edde78a64032745.css +4 -0
- package/dist/_next/static/chunks/afe13c4ce0a001ba.js +1 -0
- package/dist/_next/static/chunks/d8c9062eb8a53db2.js +1 -0
- package/dist/_next/static/chunks/ef2a7f778592c7ca.js +1 -0
- package/dist/_next/static/chunks/{turbopack-08c2b220523055b0.js → turbopack-90934fc6ede79f3c.js} +1 -1
- package/dist/_not-found/__next._full.txt +12 -12
- package/dist/_not-found/__next._head.txt +4 -4
- package/dist/_not-found/__next._index.txt +7 -7
- package/dist/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/_not-found/__next._not-found.txt +3 -3
- package/dist/_not-found/__next._tree.txt +2 -2
- package/dist/_not-found.html +2 -2
- package/dist/_not-found.txt +12 -12
- package/dist/components/__next._full.txt +6 -6
- package/dist/components/__next._head.txt +1 -1
- package/dist/components/__next._index.txt +5 -5
- package/dist/components/__next._tree.txt +2 -2
- package/dist/components/__next.components.__PAGE__.txt +2 -2
- package/dist/components/__next.components.txt +1 -1
- package/dist/components.html +2 -2
- package/dist/components.txt +6 -6
- package/dist/dashboard/__next._full.txt +6 -6
- package/dist/dashboard/__next._head.txt +1 -1
- package/dist/dashboard/__next._index.txt +5 -5
- package/dist/dashboard/__next._tree.txt +2 -2
- package/dist/dashboard/__next.dashboard.__PAGE__.txt +2 -2
- package/dist/dashboard/__next.dashboard.txt +1 -1
- package/dist/dashboard.html +2 -2
- package/dist/dashboard.txt +6 -6
- package/dist/index.html +2 -2
- package/dist/index.txt +6 -6
- package/dist/issues/__next._full.txt +6 -6
- package/dist/issues/__next._head.txt +1 -1
- package/dist/issues/__next._index.txt +5 -5
- package/dist/issues/__next._tree.txt +2 -2
- package/dist/issues/__next.issues.__PAGE__.txt +2 -2
- package/dist/issues/__next.issues.txt +1 -1
- package/dist/issues.html +2 -2
- package/dist/issues.txt +6 -6
- package/dist/overview/__next._full.txt +6 -6
- package/dist/overview/__next._head.txt +1 -1
- package/dist/overview/__next._index.txt +5 -5
- package/dist/overview/__next._tree.txt +2 -2
- package/dist/overview/__next.overview.__PAGE__.txt +2 -2
- package/dist/overview/__next.overview.txt +1 -1
- package/dist/overview.html +2 -2
- package/dist/overview.txt +6 -6
- package/dist/settings/__next._full.txt +6 -6
- package/dist/settings/__next._head.txt +1 -1
- package/dist/settings/__next._index.txt +5 -5
- package/dist/settings/__next._tree.txt +2 -2
- package/dist/settings/__next.settings.__PAGE__.txt +2 -2
- package/dist/settings/__next.settings.txt +1 -1
- package/dist/settings.html +2 -2
- package/dist/settings.txt +6 -6
- package/package.json +1 -1
- package/dist/_next/static/chunks/0bf3c4c694033637.css +0 -3
- package/dist/_next/static/chunks/1abbbb99286588c3.js +0 -1
- package/dist/_next/static/chunks/3dd22e90e8489e07.js +0 -1
- package/dist/_next/static/chunks/4bdad25efdf40614.js +0 -1
- package/dist/_next/static/chunks/76a522d2dc563858.js +0 -4
- package/dist/_next/static/chunks/d944c90ba3d38870.js +0 -1
- /package/dist/_next/static/{ZRpTr3GjjfqV-mQODqfR7 → 420BEp2YsGWHAzR1ikzGH}/_buildManifest.js +0 -0
- /package/dist/_next/static/{ZRpTr3GjjfqV-mQODqfR7 → 420BEp2YsGWHAzR1ikzGH}/_clientMiddlewareManifest.json +0 -0
- /package/dist/_next/static/{ZRpTr3GjjfqV-mQODqfR7 → 420BEp2YsGWHAzR1ikzGH}/_ssgManifest.js +0 -0
package/dist/settings.txt
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[75251,["/_next/static/chunks/0136709a66500df9.js","/_next/static/chunks/
|
|
3
|
-
3:I[80921,["/_next/static/chunks/0136709a66500df9.js","/_next/static/chunks/
|
|
4
|
-
4:I[54282,["/_next/static/chunks/0136709a66500df9.js","/_next/static/chunks/
|
|
2
|
+
2:I[75251,["/_next/static/chunks/0136709a66500df9.js","/_next/static/chunks/54181c121ad633a1.js","/_next/static/chunks/ef2a7f778592c7ca.js","/_next/static/chunks/55170fe6a35d6d35.js","/_next/static/chunks/24d0db021c6fe7c6.js","/_next/static/chunks/6ae6dac99b3cdce8.js"],"ThemeProvider"]
|
|
3
|
+
3:I[80921,["/_next/static/chunks/0136709a66500df9.js","/_next/static/chunks/54181c121ad633a1.js","/_next/static/chunks/ef2a7f778592c7ca.js","/_next/static/chunks/55170fe6a35d6d35.js","/_next/static/chunks/24d0db021c6fe7c6.js","/_next/static/chunks/6ae6dac99b3cdce8.js"],"Providers"]
|
|
4
|
+
4:I[54282,["/_next/static/chunks/0136709a66500df9.js","/_next/static/chunks/54181c121ad633a1.js","/_next/static/chunks/ef2a7f778592c7ca.js","/_next/static/chunks/55170fe6a35d6d35.js","/_next/static/chunks/24d0db021c6fe7c6.js","/_next/static/chunks/6ae6dac99b3cdce8.js"],"default"]
|
|
5
5
|
5:I[56556,["/_next/static/chunks/b059254700d14fb4.js","/_next/static/chunks/01342eaef433e649.js"],"default"]
|
|
6
6
|
6:I[30673,["/_next/static/chunks/b059254700d14fb4.js","/_next/static/chunks/01342eaef433e649.js"],"default"]
|
|
7
7
|
7:I[73878,["/_next/static/chunks/b059254700d14fb4.js","/_next/static/chunks/01342eaef433e649.js"],"ClientPageRoot"]
|
|
8
|
-
8:I[92472,["/_next/static/chunks/0136709a66500df9.js","/_next/static/chunks/
|
|
8
|
+
8:I[92472,["/_next/static/chunks/0136709a66500df9.js","/_next/static/chunks/54181c121ad633a1.js","/_next/static/chunks/ef2a7f778592c7ca.js","/_next/static/chunks/55170fe6a35d6d35.js","/_next/static/chunks/24d0db021c6fe7c6.js","/_next/static/chunks/6ae6dac99b3cdce8.js","/_next/static/chunks/7b337c3cbc6b9a84.js"],"default"]
|
|
9
9
|
b:I[45201,["/_next/static/chunks/b059254700d14fb4.js","/_next/static/chunks/01342eaef433e649.js"],"OutletBoundary"]
|
|
10
10
|
c:"$Sreact.suspense"
|
|
11
11
|
e:I[45201,["/_next/static/chunks/b059254700d14fb4.js","/_next/static/chunks/01342eaef433e649.js"],"ViewportBoundary"]
|
|
@@ -13,9 +13,9 @@ e:I[45201,["/_next/static/chunks/b059254700d14fb4.js","/_next/static/chunks/0134
|
|
|
13
13
|
12:I[55177,["/_next/static/chunks/b059254700d14fb4.js","/_next/static/chunks/01342eaef433e649.js"],"default"]
|
|
14
14
|
:HL["/_next/static/chunks/290e302f1769de55.css","style"]
|
|
15
15
|
:HL["/_next/static/chunks/ff4a2a915aa75f12.css","style"]
|
|
16
|
-
:HL["/_next/static/chunks/
|
|
16
|
+
:HL["/_next/static/chunks/9edde78a64032745.css","style"]
|
|
17
17
|
:HL["/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
18
|
-
0:{"P":null,"b":"
|
|
18
|
+
0:{"P":null,"b":"420BEp2YsGWHAzR1ikzGH","c":["","settings"],"q":"","i":false,"f":[[["",{"children":["settings",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/290e302f1769de55.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/ff4a2a915aa75f12.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/chunks/9edde78a64032745.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0136709a66500df9.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/54181c121ad633a1.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/ef2a7f778592c7ca.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/55170fe6a35d6d35.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/24d0db021c6fe7c6.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/_next/static/chunks/6ae6dac99b3cdce8.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"defaultTheme":"system","storageKey":"monoco-ui-theme","children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/7b337c3cbc6b9a84.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$L11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"S":true}
|
|
19
19
|
9:{}
|
|
20
20
|
a:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
21
21
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:blueprint-icons-16;src:url(../media/blueprint-icons-16.d82d3a61.ttf)format("truetype"),url(../media/blueprint-icons-16.d48d4614.eot)format("embedded-opentype"),url(../media/blueprint-icons-16.ba82f754.woff2)format("woff2"),url(../media/blueprint-icons-16.318769c2.woff)format("woff"),url(../media/blueprint-icons-16.11092612.svg)format("svg")}@font-face{font-family:blueprint-icons-20;src:url(../media/blueprint-icons-20.abceb779.ttf)format("truetype"),url(../media/blueprint-icons-20.88c566f7.eot)format("embedded-opentype"),url(../media/blueprint-icons-20.d69a448c.woff2)format("woff2"),url(../media/blueprint-icons-20.ca55e4a6.woff)format("woff"),url(../media/blueprint-icons-20.298eba7c.svg)format("svg")}
|
|
2
|
-
.xterm{cursor:text;-webkit-user-select:none;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;z-index:-5;white-space:nowrap;resize:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;inset:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{z-index:10;color:#0000;pointer-events:none;position:absolute;inset:0}.xterm .xterm-accessibility-tree:not(.debug) ::-moz-selection{color:#0000}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:underline double;text-decoration:underline double}.xterm-underline-3{-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.xterm-underline-4{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.xterm-underline-5{-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;pointer-events:none;position:absolute;top:0;right:0}.xterm-decoration-top{z-index:2;position:relative}
|
|
3
|
-
*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,sans-serif;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:JetBrains Mono,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:222.2 47.4% 11.2%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:222.2 84% 4.9%;--radius:.5rem;--color-canvas:#fff;--color-surface:#f8fafc;--color-text-primary:#0f172a}.dark{--background:222.2 84% 4.9%;--foreground:210 40% 98%;--card:222.2 84% 4.9%;--card-foreground:210 40% 98%;--popover:222.2 84% 4.9%;--popover-foreground:210 40% 98%;--primary:210 40% 98%;--primary-foreground:222.2 47.4% 11.2%;--secondary:217.2 32.6% 17.5%;--secondary-foreground:210 40% 98%;--muted:217.2 32.6% 17.5%;--muted-foreground:215 20.2% 65.1%;--accent:217.2 32.6% 17.5%;--accent-foreground:210 40% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:210 40% 98%;--border:217.2 32.6% 17.5%;--input:217.2 32.6% 17.5%;--ring:212.7 26.8% 83.9%;--color-canvas:#020617;--color-surface:#0f172a;--color-text-primary:#f8fafc}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow:hidden}.container{width:100%;margin-left:auto;margin-right:auto;padding-left:2rem;padding-right:2rem}@media (min-width:1400px){.container{max-width:1400px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-1\/2{left:50%}.right-2{right:.5rem}.top-2{top:.5rem}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.m-0{margin:0}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.aspect-square{aspect-ratio:1}.\!h-5{height:1.25rem!important}.\!h-6{height:1.5rem!important}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[90vh\]{height:90vh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[400px\]{max-height:400px}.max-h-\[500px\]{max-height:500px}.\!min-h-0{min-height:0!important}.min-h-0{min-height:0}.\!w-6{width:1.5rem!important}.w-10{width:2.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-\[20px\]{width:20px}.w-\[300px\]{width:300px}.w-\[90vw\]{width:90vw}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[240px\]{min-width:240px}.min-w-\[280px\]{min-width:280px}.min-w-\[300px\]{min-width:300px}.max-w-3xl{max-width:48rem}.max-w-\[150px\]{max-width:150px}.max-w-\[200px\]{max-width:200px}.max-w-\[60px\]{max-width:60px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.translate-y-\[120\%\]{--tw-translate-y:120%;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.cursor-ns-resize{cursor:ns-resize}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize{resize:both}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem*calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-t-sm{border-top-left-radius:calc(var(--radius) - 4px);border-top-right-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-border{border-color:hsl(var(--border))}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:#0000}.border-white\/10{border-color:#ffffff1a}.border-white\/5{border-color:#ffffff0d}.border-l-transparent{border-left-color:#0000}.border-t-primary{border-top-color:hsl(var(--primary))}.border-t-transparent{border-top-color:#0000}.\!bg-surface-highlight{background-color:hsl(var(--accent))!important}.\!bg-white\/5{background-color:#ffffff0d!important}.bg-\[\#1e1e1e\]{--tw-bg-opacity:1;background-color:rgb(30 30 30/var(--tw-bg-opacity,1))}.bg-background{background-color:hsl(var(--background))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-border{background-color:hsl(var(--border))}.bg-canvas{background-color:hsl(var(--background))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/30{background-color:hsl(var(--muted)/.3)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/5{background-color:hsl(var(--primary)/.05)}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}.bg-red-500\/10{background-color:#ef44441a}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity,1))}.bg-surface{background-color:hsl(var(--secondary))}.bg-surface-highlight{background-color:hsl(var(--accent))}.bg-surface\/50{background-color:hsl(var(--secondary)/.5)}.bg-surface\/80{background-color:hsl(var(--secondary)/.8)}.bg-transparent{background-color:#0000}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8/var(--tw-bg-opacity,1))}.\!bg-opacity-50{--tw-bg-opacity:.5!important}.bg-opacity-10{--tw-bg-opacity:.1}.bg-\[linear-gradient\(to_right\,\#80808012_1px\,transparent_1px\)\,linear-gradient\(to_bottom\,\#80808012_1px\,transparent_1px\)\]{background-image:linear-gradient(90deg,#80808012 1px,#0000 1px),linear-gradient(#80808012 1px,#0000 1px)}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from:#3b82f6 var(--tw-gradient-from-position);--tw-gradient-to:#3b82f600 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-canvas{--tw-gradient-from:hsl(var(--background))var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--background)/0)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-transparent{--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),transparent var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to:#4f46e5 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.bg-\[size\:24px_24px\]{background-size:24px 24px}.\!p-3{padding:.75rem!important}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-2{padding-right:.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,sans-serif}.\!text-\[10px\]{font-size:10px!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.\!text-text-muted{color:hsl(var(--muted-foreground))!important}.\!text-text-primary{color:var(--color-text-primary)!important}.text-accent{color:hsl(var(--accent))}.text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity,1))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-400{--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity,1))}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-text-muted{color:hsl(var(--muted-foreground))}.text-text-primary{color:var(--color-text-primary)}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_-5px_20px_rgba\(0\,0\,0\,0\.1\)\]{--tw-shadow:0 -5px 20px #0000001a;--tw-shadow-colored:0 -5px 20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_15px_rgba\(59\,130\,246\,0\.5\)\]{--tw-shadow:0 0 15px #3b82f680;--tw-shadow-colored:0 0 15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(0\,0\,0\,0\.5\)\]{--tw-shadow:0 0 8px #00000080;--tw-shadow-colored:0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(239\,68\,68\,0\.3\)\]{--tw-shadow:0 0 8px #ef44444d;--tw-shadow-colored:0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(34\,197\,94\,0\.3\)\]{--tw-shadow:0 0 8px #22c55e4d;--tw-shadow-colored:0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline-offset:2px;outline:2px solid #0000}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-primary\/50{--tw-ring-color:hsl(var(--primary)/.5)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}.animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-200{animation-duration:.2s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}.glass-panel{border-width:1px;border-color:hsl(var(--border));background-color:hsl(var(--background)/.6);--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia)}.bp6-card,.bp5-card{border-radius:var(--radius)!important;border-width:1px!important;border-color:hsl(var(--border))!important;background-color:hsl(var(--card))!important;color:hsl(var(--card-foreground))!important;--tw-shadow:0 1px 2px 0 #0000000d!important;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;box-shadow:none!important}.glass-card{border-width:1px;border-color:hsl(var(--border)/.4);background-color:hsl(var(--secondary)/.4);--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur)var(--tw-backdrop-brightness)var(--tw-backdrop-contrast)var(--tw-backdrop-grayscale)var(--tw-backdrop-hue-rotate)var(--tw-backdrop-invert)var(--tw-backdrop-opacity)var(--tw-backdrop-saturate)var(--tw-backdrop-sepia);transition-property:all;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);animation-duration:.2s}.glass-card:hover{--tw-translate-y:-.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y));border-color:hsl(var(--accent)/.5);background-color:hsl(var(--secondary)/.6);--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.heading-gradient{background:linear-gradient(135deg,#60a5fa 0%,#a78bfa 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.hover\:scale-\[1\.3\]:hover{--tw-scale-x:1.3;--tw-scale-y:1.3;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.hover\:border-accent:hover{border-color:hsl(var(--accent))}.hover\:border-accent\/30:hover{border-color:hsl(var(--accent)/.3)}.hover\:border-l-accent:hover{border-left-color:hsl(var(--accent))}.hover\:\!bg-surface:hover{background-color:hsl(var(--secondary))!important}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-surface-highlight:hover{background-color:hsl(var(--accent))}.hover\:bg-surface-highlight\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/5:hover{background-color:#ffffff0d}.hover\:\!text-primary:hover{color:hsl(var(--primary))!important}.hover\:\!text-text-primary:hover{color:var(--color-text-primary)!important}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness:brightness(1.1);filter:var(--tw-blur)var(--tw-brightness)var(--tw-contrast)var(--tw-grayscale)var(--tw-hue-rotate)var(--tw-invert)var(--tw-saturate)var(--tw-sepia)var(--tw-drop-shadow)}.focus\:border-accent:focus{border-color:hsl(var(--accent))}.focus-visible\:outline-none:focus-visible{outline-offset:2px;outline:2px solid #0000}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.active\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:border-white\/20{border-color:#fff3}.group:hover .group-hover\:bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.group:hover .group-hover\:bg-primary\/50{background-color:hsl(var(--primary)/.5)}.group:hover .group-hover\:text-primary{color:hsl(var(--primary))}.group:hover .group-hover\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:shadow-\[0_0_5px_rgba\(255\,255\,255\,0\.5\)\]{--tw-shadow:0 0 5px #ffffff80;--tw-shadow-colored:0 0 5px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.group:hover .group-hover\:shadow-\[0_0_8px_rgba\(255\,255\,255\,0\.6\)\]{--tw-shadow:0 0 8px #fff9;--tw-shadow-colored:0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.data-\[state\=open\]\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-\[state\=closed\]\:animate-out[data-state=closed]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:.5rem}.dark\:border-gray-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}@media (min-width:768px){.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63321,e=>{"use strict";var t=e.i(64302),s=e.i(65801),a=e.i(17906),n=e.i(36766),i=e.i(81354);let l=(0,a.forwardRef)((e,a)=>{let{bordered:i,className:l,compact:r,interactive:c,striped:o,...d}=e,x=(0,s.default)(n.Classes.HTML_TABLE,{[n.Classes.COMPACT]:r,[n.Classes.HTML_TABLE_BORDERED]:i,[n.Classes.HTML_TABLE_STRIPED]:o,[n.Classes.INTERACTIVE]:c},l);return(0,t.jsx)("table",{...d,ref:a,className:x})});l.displayName=`${i.DISPLAYNAME_PREFIX}.HTMLTable`,e.s(["HTMLTable",0,l])},78398,e=>{"use strict";var t=e.i(64302),s=e.i(17906),a=e.i(82211),n=e.i(36766),i=e.i(34888),l=e.i(76821),r=e.i(55922),c=e.i(47049),o=e.i(32458),d=e.i(48589),x=e.i(76526);e.i(65287);var h=e.i(82971),u=e.i(26163);function m({issueId:e,onClose:m}){let{daemonUrl:p,currentProjectId:f}=(0,h.useDaemonStore)(),[j,g]=(0,s.useState)(null),[v,N]=(0,s.useState)(!1),[w,C]=(0,s.useState)(!1),[y,b]=(0,s.useState)(""),[S,I]=(0,s.useState)(null),{t:T}=(0,u.useTerms)();(0,s.useEffect)(()=>{e&&p?((async()=>{N(!0),I(null);try{let t=f?`?project_id=${f}`:"",s=await fetch(`${p}/api/v1/issues/${e}${t}`);if(!s.ok)throw Error("Failed to load issue");let a=await s.json();g(a),b(a.raw_content||a.body||"")}catch(e){I(e.message)}finally{N(!1)}})(),C(!1)):g(null)},[e,p,f]);let E=async()=>{if(e&&p){N(!0),I(null);try{let t=await fetch(`${p}/api/v1/issues/${e}/content`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:y,project_id:f})});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.detail||"Failed to save issue")}C(!1);let s=f?`?project_id=${f}`:"",a=await fetch(`${p}/api/v1/issues/${e}${s}`);if(a.ok){let e=await a.json();g(e),b(e.raw_content||e.body||"")}}catch(e){I(e.message)}finally{N(!1)}}},L=async t=>{if(e&&p){N(!0);try{let s=await fetch(`${p}/api/v1/issues/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({stage:t,project_id:f})});if(!s.ok){let e=await s.json();throw Error(e.detail||"Failed to transition issue")}let a=f?`?project_id=${f}`:"",n=await fetch(`${p}/api/v1/issues/${e}${a}`);n.ok&&g(await n.json())}catch(e){I(e.message)}finally{N(!1)}}};return(0,t.jsxs)(a.Dialog,{isOpen:!!e,onClose:m,title:j?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-text-muted",children:j.id}),(0,t.jsx)("span",{className:"font-semibold text-lg",children:j.title})]}):"Loading...",className:"bp6-dark w-[90vw] h-[90vh] flex flex-col p-0",style:{width:"1200px",maxWidth:"95vw",height:"85vh"},children:[(0,t.jsxs)("div",{className:n.Classes.DIALOG_BODY+" flex-1 overflow-hidden flex flex-col p-0 m-0 bg-canvas",children:[v&&(0,t.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,t.jsx)(r.Spinner,{})}),S&&(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(o.Callout,{intent:l.Intent.DANGER,children:S})}),!v&&j&&(0,t.jsxs)("div",{className:"flex flex-col h-full overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-5 bg-surface border-b border-border-subtle shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-xs text-text-muted uppercase font-bold tracking-wider",children:"Status"}),(0,t.jsx)(c.Tag,{intent:(e=>{switch(e?.toLowerCase()){case"open":default:return l.Intent.NONE;case"in_progress":return l.Intent.PRIMARY;case"done":return l.Intent.SUCCESS;case"closed":return l.Intent.DANGER}})(j.status),minimal:!0,large:!0,children:T(j.status?.toLowerCase(),j.status?.toUpperCase())})]}),(0,t.jsx)(d.Divider,{className:"h-8"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-xs text-text-muted uppercase font-bold tracking-wider",children:"Stage"}),(0,t.jsx)("div",{className:"text-text-primary font-medium",children:j.stage?T(j.stage.toLowerCase(),j.stage.toUpperCase()):"-"})]}),(0,t.jsx)(d.Divider,{className:"h-8"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-xs text-text-muted uppercase font-bold tracking-wider",children:"Type"}),(0,t.jsx)(c.Tag,{minimal:!0,icon:"clean",children:T(j.type?.toLowerCase(),j.type?.toUpperCase())})]})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("div",{className:"text-xs text-text-muted",children:"Created"}),(0,t.jsx)("div",{className:"text-text-secondary font-mono text-sm",children:j.created_at?new Date(j.created_at).toLocaleString():"-"})]})]}),j.tags&&j.tags.length>0&&(0,t.jsx)("div",{className:"flex gap-2",children:j.tags.map(e=>(0,t.jsx)(c.Tag,{minimal:!0,round:!0,icon:"tag",children:e},e))})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 relative bg-[#1e1e1e]",children:(0,t.jsx)(x.default,{height:"100%",defaultLanguage:"markdown",theme:"vs-dark",value:w?y:j.body||"",onChange:e=>b(e||""),options:{readOnly:!w,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:14,wordWrap:"on",padding:{top:20,bottom:20},lineNumbers:"off",renderLineHighlight:"none",fontFamily:"'JetBrains Mono', monospace"}})})]})]}),(0,t.jsx)("div",{className:n.Classes.DIALOG_FOOTER+" bg-surface border-t border-border-subtle",children:(0,t.jsxs)("div",{className:n.Classes.DIALOG_FOOTER_ACTIONS,children:[!w&&j?.stage?.toLowerCase()==="review"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Button,{text:"Reject",intent:l.Intent.DANGER,icon:"cross",onClick:()=>L("doing")}),(0,t.jsx)(i.Button,{text:"Approve",intent:l.Intent.SUCCESS,icon:"tick",onClick:()=>L("done")}),(0,t.jsx)(d.Divider,{})]}),w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Button,{text:"Cancel",onClick:()=>C(!1)}),(0,t.jsx)(i.Button,{text:"Save Changes",intent:l.Intent.PRIMARY,onClick:E})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Button,{text:"Close",onClick:m}),(0,t.jsx)(i.Button,{text:"Edit Issue",icon:"edit",onClick:()=>C(!0)})]})]})})]})}e.s(["default",()=>m])},34980,e=>{"use strict";var t=e.i(64302),s=e.i(71519),a=e.i(17906),n=e.i(65287),i=e.i(63321),l=e.i(47049),r=e.i(92156),c=e.i(55922),o=e.i(76821),d=e.i(64740),x=e.i(34888),h=e.i(78398);function u(){(0,n.useKanbanSync)();let{issues:e,isLoading:u}=(0,n.useKanbanStore)(),[m,p]=(0,a.useState)(""),[f,j]=(0,a.useState)(null),[g,v]=(0,a.useState)(new Set),N=(0,a.useMemo)(()=>{if(!e.length)return[];let t=e;if(m){let s=m.toLowerCase();t=e.filter(e=>e.title.toLowerCase().includes(s)||e.id.toLowerCase().includes(s))}let s=new Map;t.forEach(e=>{s.set(e.id,{...e,children:[]})});let a=[];t.forEach(e=>{let t=s.get(e.id);e.parent&&s.has(e.parent)?s.get(e.parent).children.push(t):a.push(t)});let n=(e,t)=>e.type!==t.type?e.type.localeCompare(t.type):e.id.localeCompare(t.id,void 0,{numeric:!0}),i=[],l=[];a.forEach(e=>{"epic"===e.type.toLowerCase()?i.push(e):l.push(e)});let r=e=>{e.sort(n),e.forEach(e=>{e.children.length>0&&r(e.children)})};r(i),r(l);let c=[...i];return l.length>0&&c.push({id:"unarchived",title:"未归档",type:"group",status:"",stage:"",created_at:"",children:l}),c},[e,m]);if(u&&0===e.length)return(0,t.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,t.jsx)(c.Spinner,{size:50,intent:o.Intent.PRIMARY})});let w=(e,s=0)=>{let n=e.children&&e.children.length>0,i=g.has(e.id)||""!==m,r=`${24*s+12}px`;return(0,t.jsxs)(a.default.Fragment,{children:[(0,t.jsxs)("tr",{className:`hover:bg-surface-highlight cursor-pointer transition-colors ${0===s?"bg-surface-subtle/30":""}`,onClick:()=>j(e.id),children:[(0,t.jsx)("td",{style:{paddingLeft:r},className:"font-mono text-xs text-text-muted whitespace-nowrap",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[n&&(0,t.jsx)(x.Button,{minimal:!0,small:!0,icon:i?"chevron-down":"chevron-right",onClick:t=>{var s;let a;return s=e.id,t.stopPropagation(),void((a=new Set(g)).has(s)?a.delete(s):a.add(s),v(a))}}),!n&&s>0&&(0,t.jsx)("div",{className:"w-[20px]"})," ",e.id]})}),(0,t.jsx)("td",{children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(d.Icon,{icon:(e=>{switch(e.toLowerCase()){case"feat":return"star";case"fix":return"wrench";case"chore":return"clean";case"docs":return"document";case"refactor":return"git-merge";case"epic":return"crown";case"group":return"folder-close";default:return"help"}})(e.type),size:14,className:"text-text-muted"}),(0,t.jsx)("span",{className:"uppercase text-xs font-semibold text-text-secondary",children:e.type})]})}),(0,t.jsx)("td",{className:"font-medium text-text-primary",children:e.title}),(0,t.jsx)("td",{children:(0,t.jsx)(l.Tag,{intent:(e=>{switch(e.toLowerCase()){case"open":default:return o.Intent.NONE;case"in_progress":return o.Intent.PRIMARY;case"done":return o.Intent.SUCCESS;case"closed":return o.Intent.DANGER}})(e.status),minimal:!0,round:!0,children:e.status})}),(0,t.jsx)("td",{className:"text-text-secondary",children:e.stage||"-"}),(0,t.jsx)("td",{className:"text-text-muted text-sm",children:e.created_at||"-"})]}),n&&(i||m)&&e.children.map(e=>w(e,s+1))]},e.id)};return(0,t.jsxs)("main",{className:"h-full flex flex-col font-sans overflow-hidden bg-canvas",children:[(0,t.jsx)(s.default,{title:"Detailed",children:(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(x.Button,{icon:"export",text:"Export",minimal:!0}),(0,t.jsx)(x.Button,{icon:"plus",intent:o.Intent.PRIMARY,text:"New Issue"})]}),bottomContent:(0,t.jsx)("div",{className:"flex gap-4 items-center",children:(0,t.jsx)("div",{className:"w-64",children:(0,t.jsx)(r.InputGroup,{leftIcon:"search",placeholder:"Filter issues...",value:m,onChange:e=>p(e.target.value)})})})}),(0,t.jsx)("div",{className:"flex-1 overflow-auto px-6 py-4",children:(0,t.jsxs)(i.HTMLTable,{interactive:!0,compact:!0,striped:!0,className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-text-muted",children:[(0,t.jsx)("th",{children:"ID"}),(0,t.jsx)("th",{children:"Type"}),(0,t.jsx)("th",{children:"Title"}),(0,t.jsx)("th",{children:"Status"}),(0,t.jsx)("th",{children:"Stage"}),(0,t.jsx)("th",{children:"Created"})]})}),(0,t.jsxs)("tbody",{children:[N.map(e=>w(e,0)),0===N.length&&(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:6,className:"text-center py-8 text-text-muted",children:"No issues found matching your criteria."})})]})]})}),(0,t.jsx)(h.default,{issueId:f,onClose:()=>j(null)})]})}e.s(["default",()=>u])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6623,e=>{"use strict";var t=e.i(64302),s=e.i(65801),a=e.i(36766),i=e.i(81354);let r=e=>{let{children:i,className:r,contentClassName:l,disabled:n,fill:o,helperText:c,inline:d,intent:u,label:x,labelFor:p,labelInfo:h,style:m,subLabel:f,...g}=e,j=(0,s.default)(a.Classes.FORM_GROUP,a.Classes.intentClass(u),{[a.Classes.DISABLED]:n,[a.Classes.FILL]:o,[a.Classes.INLINE]:d},r);return(0,t.jsxs)("div",{className:j,style:m,...g,children:[x&&(0,t.jsxs)("label",{className:a.Classes.LABEL,htmlFor:p,children:[x," ",(0,t.jsx)("span",{className:a.Classes.TEXT_MUTED,children:h})]}),f&&(0,t.jsx)("div",{className:a.Classes.FORM_GROUP_SUB_LABEL,children:f}),(0,t.jsxs)("div",{className:(0,s.default)(a.Classes.FORM_CONTENT,l),children:[i,c&&(0,t.jsx)("div",{className:a.Classes.FORM_HELPER_TEXT,children:c})]})]})};r.displayName=`${i.DISPLAYNAME_PREFIX}.FormGroup`,e.s(["FormGroup",0,r])},33046,e=>{"use strict";var t=e.i(17906),s=e.i(64302),a=e.i(65801),i=e.i(67511),r=e.i(46679);let l=t.forwardRef((e,t)=>{let a=e.size>=i.IconSize.LARGE,l=a?i.IconSize.LARGE:i.IconSize.STANDARD,n=`${-1*l/.05/2}`;return(0,s.jsx)(r.SVGIconContainer,{iconName:"caret-down",ref:t,...e,children:(0,s.jsx)("path",{d:a?"M320 260C320 271 311 280 300 280H100C89 280 80 271 80 260C80 255.2 82 250.8 84.8 247.4L84.6 247.2L184.6 127.2L184.8 127.4C188.6 123 193.8 120 200 120S211.4 123 215.2 127.4L215.4 127.2L315.4 247.2L315.2 247.4C318 250.8 320 255.2 320 260z":"M240 190C240 195.6 235.6 200 230 200H90C84.4 200 80 195.6 80 190C80 187.4 81 185.2 82.6 183.4C82.6 183.4 82.6 183.4 82.6 183.4L152.6 103.4L152.6 103.4C154.4 101.4 157 100 160 100S165.6 101.4 167.4 103.4L167.4 103.4L237.4 183.4L237.4 183.4C239 185.2 240 187.4 240 190z",fillRule:"evenodd",transform:`scale(0.05, -0.05) translate(${n}, ${n})`,style:{transformOrigin:"center"}})})});l.defaultProps={size:i.IconSize.STANDARD},l.displayName="Blueprint6.Icon.CaretDown";let n=t.forwardRef((e,t)=>{let a=e.size>=i.IconSize.LARGE,l=a?i.IconSize.LARGE:i.IconSize.STANDARD,n=`${-1*l/.05/2}`;return(0,s.jsx)(r.SVGIconContainer,{iconName:"double-caret-vertical",ref:t,...e,children:(0,s.jsx)("path",{d:a?"M100 220H300C311 220 320 229 320 240C320 244.8 318 249.2 315.2 252.6L315.4 252.8L215.4 372.8L215.2 372.6C211.4 377 206.2 380 200 380S188.6 377 184.8 372.6L184.6 372.8L84.6 252.8L84.8 252.6C82 249.2 80 244.8 80 240C80 229 89 220 100 220zM300 180H100C89 180 80 171 80 160C80 155.2 82 150.8 84.8 147.4L84.6 147.2L184.6 27.2L184.8 27.4C188.6 23 193.8 20 200 20S211.4 23 215.2 27.4L215.4 27.2L315.4 147.2L315.2 147.4C318 150.8 320 155.2 320 160C320 171 311 180 300 180z":"M100 180H220C231 180 240 189 240 200C240 205.6 237.8 210.6 234.2 214.2L174.2 274.2C170.6 277.8 165.6 280 160 280S149.4 277.8 145.8 274.2L85.8 214.2C82.2 210.6 80 205.6 80 200C80 189 89 180 100 180zM220 140H100C89 140 80 131 80 120C80 114.4 82.2 109.4 85.8 105.8L145.8 45.8C149.4 42.2 154.4 40 160 40S170.6 42.2 174.2 45.8L234.2 105.8C237.8 109.4 240 114.4 240 120C240 131 231 140 220 140z",fillRule:"evenodd",transform:`scale(0.05, -0.05) translate(${n}, ${n})`,style:{transformOrigin:"center"}})})});n.defaultProps={size:i.IconSize.STANDARD},n.displayName="Blueprint6.Icon.DoubleCaretVertical";var o=e.i(23902),c=e.i(81354);let d=(0,t.forwardRef)((e,i)=>{let{className:r,children:c,disabled:d,fill:u,iconName:x="double-caret-vertical",iconProps:p,large:h,minimal:m,options:f=[],value:g,...j}=e,v=(0,a.default)(o.HTML_SELECT,{[o.DISABLED]:d,[o.FILL]:u,[o.LARGE]:h,[o.MINIMAL]:m},r),b="Open dropdown",N="double-caret-vertical"===x?(0,s.jsx)(n,{title:b,...p}):(0,s.jsx)(l,{title:b,...p}),w=f.map(e=>{let s="object"==typeof e?e:{value:e};return(0,t.createElement)("option",{...s,key:s.value,children:s.label||s.value})});return(0,s.jsxs)("div",{className:v,children:[(0,s.jsxs)("select",{disabled:d,ref:i,value:g,...j,multiple:!1,children:[w,c]}),N]})});d.displayName=`${c.DISPLAYNAME_PREFIX}.HTMLSelect`,e.s(["HTMLSelect",0,d],33046)},78398,e=>{"use strict";var t=e.i(64302),s=e.i(17906),a=e.i(82211),i=e.i(36766),r=e.i(34888),l=e.i(76821),n=e.i(55922),o=e.i(47049),c=e.i(32458),d=e.i(48589),u=e.i(76526);e.i(65287);var x=e.i(82971),p=e.i(26163);function h({issueId:e,onClose:h}){let{daemonUrl:m,currentProjectId:f}=(0,x.useDaemonStore)(),[g,j]=(0,s.useState)(null),[v,b]=(0,s.useState)(!1),[N,w]=(0,s.useState)(!1),[C,y]=(0,s.useState)(""),[I,S]=(0,s.useState)(null),{t:L}=(0,p.useTerms)();(0,s.useEffect)(()=>{e&&m?((async()=>{b(!0),S(null);try{let t=f?`?project_id=${f}`:"",s=await fetch(`${m}/api/v1/issues/${e}${t}`);if(!s.ok)throw Error("Failed to load issue");let a=await s.json();j(a),y(a.raw_content||a.body||"")}catch(e){S(e.message)}finally{b(!1)}})(),w(!1)):j(null)},[e,m,f]);let E=async()=>{if(e&&m){b(!0),S(null);try{let t=await fetch(`${m}/api/v1/issues/${e}/content`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:C,project_id:f})});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.detail||"Failed to save issue")}w(!1);let s=f?`?project_id=${f}`:"",a=await fetch(`${m}/api/v1/issues/${e}${s}`);if(a.ok){let e=await a.json();j(e),y(e.raw_content||e.body||"")}}catch(e){S(e.message)}finally{b(!1)}}},D=async t=>{if(e&&m){b(!0);try{let s=await fetch(`${m}/api/v1/issues/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({stage:t,project_id:f})});if(!s.ok){let e=await s.json();throw Error(e.detail||"Failed to transition issue")}let a=f?`?project_id=${f}`:"",i=await fetch(`${m}/api/v1/issues/${e}${a}`);i.ok&&j(await i.json())}catch(e){S(e.message)}finally{b(!1)}}};return(0,t.jsxs)(a.Dialog,{isOpen:!!e,onClose:h,title:g?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-text-muted",children:g.id}),(0,t.jsx)("span",{className:"font-semibold text-lg",children:g.title})]}):"Loading...",className:"bp6-dark w-[90vw] h-[90vh] flex flex-col p-0",style:{width:"1200px",maxWidth:"95vw",height:"85vh"},children:[(0,t.jsxs)("div",{className:i.Classes.DIALOG_BODY+" flex-1 overflow-hidden flex flex-col p-0 m-0 bg-canvas",children:[v&&(0,t.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,t.jsx)(n.Spinner,{})}),I&&(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(c.Callout,{intent:l.Intent.DANGER,children:I})}),!v&&g&&(0,t.jsxs)("div",{className:"flex flex-col h-full overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 p-5 bg-surface border-b border-border-subtle shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-xs text-text-muted uppercase font-bold tracking-wider",children:"Status"}),(0,t.jsx)(o.Tag,{intent:(e=>{switch(e?.toLowerCase()){case"open":default:return l.Intent.NONE;case"in_progress":return l.Intent.PRIMARY;case"done":return l.Intent.SUCCESS;case"closed":return l.Intent.DANGER}})(g.status),minimal:!0,large:!0,children:L(g.status?.toLowerCase(),g.status?.toUpperCase())})]}),(0,t.jsx)(d.Divider,{className:"h-8"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-xs text-text-muted uppercase font-bold tracking-wider",children:"Stage"}),(0,t.jsx)("div",{className:"text-text-primary font-medium",children:g.stage?L(g.stage.toLowerCase(),g.stage.toUpperCase()):"-"})]}),(0,t.jsx)(d.Divider,{className:"h-8"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-xs text-text-muted uppercase font-bold tracking-wider",children:"Type"}),(0,t.jsx)(o.Tag,{minimal:!0,icon:"clean",children:L(g.type?.toLowerCase(),g.type?.toUpperCase())})]})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("div",{className:"text-xs text-text-muted",children:"Created"}),(0,t.jsx)("div",{className:"text-text-secondary font-mono text-sm",children:g.created_at?new Date(g.created_at).toLocaleString():"-"})]})]}),g.tags&&g.tags.length>0&&(0,t.jsx)("div",{className:"flex gap-2",children:g.tags.map(e=>(0,t.jsx)(o.Tag,{minimal:!0,round:!0,icon:"tag",children:e},e))})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 relative bg-[#1e1e1e]",children:(0,t.jsx)(u.default,{height:"100%",defaultLanguage:"markdown",theme:"vs-dark",value:N?C:g.body||"",onChange:e=>y(e||""),options:{readOnly:!N,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:14,wordWrap:"on",padding:{top:20,bottom:20},lineNumbers:"off",renderLineHighlight:"none",fontFamily:"'JetBrains Mono', monospace"}})})]})]}),(0,t.jsx)("div",{className:i.Classes.DIALOG_FOOTER+" bg-surface border-t border-border-subtle",children:(0,t.jsxs)("div",{className:i.Classes.DIALOG_FOOTER_ACTIONS,children:[!N&&g?.stage?.toLowerCase()==="review"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{text:"Reject",intent:l.Intent.DANGER,icon:"cross",onClick:()=>D("doing")}),(0,t.jsx)(r.Button,{text:"Approve",intent:l.Intent.SUCCESS,icon:"tick",onClick:()=>D("done")}),(0,t.jsx)(d.Divider,{})]}),N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{text:"Cancel",onClick:()=>w(!1)}),(0,t.jsx)(r.Button,{text:"Save Changes",intent:l.Intent.PRIMARY,onClick:E})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{text:"Close",onClick:h}),(0,t.jsx)(r.Button,{text:"Edit Issue",icon:"edit",onClick:()=>w(!0)})]})]})})]})}e.s(["default",()=>h])},10470,e=>{"use strict";var t=e.i(64302),s=e.i(71519),a=e.i(17906),i=e.i(55922),r=e.i(76821),l=e.i(32458),n=e.i(34888),o=e.i(92156),c=e.i(81668);e.i(65287);var d=e.i(82971),u=e.i(87588),x=e.i(47049),p=e.i(64740),h=e.i(77726),m=e.i(48157),f=e.i(73195),g=e.i(26163);function j({issue:e}){let{t:s}=(0,g.useTerms)();return(0,t.jsxs)("div",{draggable:!0,onDragStart:t=>{t.dataTransfer.setData("text/plain",e.id),t.dataTransfer.effectAllowed="move"},className:"group relative glass-card rounded-xl p-3 cursor-pointer transition-all duration-200 hover:shadow-lg hover:border-accent/30 hover:bg-surface-highlight/50 border-l-4 border-l-transparent hover:border-l-accent active:cursor-grabbing",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between items-start mb-2",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-[10px] text-text-muted opacity-70 group-hover:opacity-100 transition-opacity",children:e.id}),(0,t.jsxs)("div",{className:`flex flex-row items-center gap-1 text-[10px] uppercase font-bold tracking-wider ${(e=>{switch(e?.toLowerCase()){case"epic":return"text-purple-400";case"feature":return"text-blue-400";case"chore":return"text-gray-400";case"fix":return"text-red-400";default:return"text-text-muted"}})(e.type)}`,children:[(0,t.jsx)(p.Icon,{icon:(e=>{switch(e?.toLowerCase()){case"epic":return"crown";case"feature":return"star";case"chore":return"build";case"fix":return"wrench";default:return"document"}})(e.type),size:10}),(0,t.jsx)("span",{children:s(e.type,e.type)})]})]}),(0,t.jsx)("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity absolute right-2 top-2",children:(0,t.jsx)(c.Popover,{content:(0,t.jsxs)(h.Menu,{children:[(0,t.jsx)(m.MenuItem,{icon:"edit",text:"Edit"}),(0,t.jsx)(m.MenuItem,{icon:"trash",text:"Delete",intent:"danger"})]}),position:f.Position.BOTTOM_RIGHT,children:(0,t.jsx)(n.Button,{icon:"more",minimal:!0,small:!0,className:"!min-h-0 !h-6 !w-6"})})})]}),(0,t.jsx)("h4",{className:"text-text-primary text-sm font-medium leading-relaxed mb-3 group-hover:text-white transition-colors",children:e.title}),(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center pt-2 border-t border-white/5",children:[(0,t.jsx)("div",{className:"flex flex-row items-center gap-2",children:e.parent&&(0,t.jsxs)("div",{className:"flex flex-row items-center gap-1 text-[10px] text-text-muted",title:`Parent: ${e.parent}`,children:[(0,t.jsx)(p.Icon,{icon:"git-merge",size:10}),(0,t.jsx)("span",{className:"font-mono truncate max-w-[60px]",children:e.parent})]})}),(0,t.jsx)(x.Tag,{minimal:!0,intent:(e=>{switch(e?.toLowerCase()){case"open":case"todo":default:return r.Intent.NONE;case"in_progress":case"doing":return r.Intent.PRIMARY;case"review":return r.Intent.WARNING;case"done":case"closed":return r.Intent.SUCCESS}})(e.status),className:"!bg-white/5 !text-[10px] !h-5 !min-h-0 font-semibold uppercase tracking-wide border border-white/10 group-hover:border-white/20",children:s(e.status,e.status)})]})]})}let v=({issue:e,childrenMap:s,activeIssueId:a,onIssueClick:i,level:r=0})=>{let l=s.get(e.id)||[];return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("div",{onClick:()=>i&&i(e),children:(0,t.jsx)(j,{issue:e})}),l.length>0&&(0,t.jsx)("div",{className:"pl-4 border-l border-white/10 flex flex-col gap-2",children:l.map(e=>(0,t.jsx)(v,{issue:e,childrenMap:s,activeIssueId:a,onIssueClick:i,level:r+1},e.id))})]})};function b({id:e,title:s,issues:i,activeIssueId:r,onIssueClick:l,onDrop:n}){let[o,c]=a.default.useState(!1),d=(e=>{switch(e){case"todo":return"bg-slate-500";case"doing":return"bg-blue-500";case"review":return"bg-yellow-500";case"done":return"bg-green-500";default:return"bg-gray-500"}})(e),{roots:u,childrenMap:x}=(0,a.useMemo)(()=>{let e=new Map;i.forEach(t=>e.set(t.id,t));let t=[],s=new Map;return i.forEach(a=>{if(a.parent&&e.has(a.parent)){let e=s.get(a.parent)||[];e.push(a),s.set(a.parent,e)}else t.push(a)}),{roots:t,childrenMap:s}},[i]);return(0,t.jsxs)("div",{className:`flex flex-col flex-1 min-w-[280px] h-full transition-colors duration-200 rounded-xl ${o?"bg-white/5 ring-2 ring-primary/50":""}`,onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="move"},onDragEnter:e=>{e.preventDefault(),c(!0)},onDragLeave:e=>{e.preventDefault(),e.currentTarget.contains(e.relatedTarget)||c(!1)},onDrop:t=>{t.preventDefault(),c(!1);let s=t.dataTransfer.getData("text/plain");console.log(`Dropped issue ${s} on column ${e}`),s&&n&&n(s,e)},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3 px-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:`w-2 h-2 rounded-full ${d} shadow-[0_0_8px_rgba(0,0,0,0.5)]`}),(0,t.jsx)("h3",{className:"text-sm font-semibold text-text-secondary uppercase tracking-wider m-0",children:s})]}),(0,t.jsx)("span",{className:"bg-surface-highlight text-text-muted text-xs px-2 py-0.5 rounded-full font-mono",children:i.length})]}),(0,t.jsxs)("div",{className:`flex-1 glass-panel rounded-xl p-2 overflow-y-auto custom-scrollbar flex flex-col gap-2 border-t-4 transition-colors ${o?"border-t-primary bg-primary/5":"border-t-transparent hover:border-t-border-subtle"}`,children:[u.map(e=>(0,t.jsx)(v,{issue:e,childrenMap:x,activeIssueId:r,onIssueClick:l},e.id)),0===i.length&&(0,t.jsxs)("div",{className:"h-full flex flex-col items-center justify-center text-text-muted opacity-40",children:[(0,t.jsx)("span",{className:"text-4xl mb-2",children:"∅"}),(0,t.jsx)("span",{className:"text-xs",children:"No issues"})]})]})]})}var N=e.i(78398),w=e.i(82211),C=e.i(36766),y=e.i(6623),I=e.i(33046);function S({isOpen:e,onClose:s,onSuccess:i}){let{daemonUrl:l,currentProjectId:c}=(0,d.useDaemonStore)(),[u,x]=(0,a.useState)(""),[p,h]=(0,a.useState)("feature"),[m,f]=(0,a.useState)(""),[g,j]=(0,a.useState)(!1),[v,b]=(0,a.useState)([]),[N,S]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e&&l&&L()},[e,l,c]);let L=async()=>{S(!0);try{let e=c?`?project_id=${c}`:"",t=await fetch(`${l}/api/v1/issues${e}`);if(t.ok){let e=await t.json();b(e.filter(e=>"epic"===e.type&&"closed"!==e.status))}}catch(e){console.error("Failed to fetch epics",e)}finally{S(!1)}},E=async()=>{if(u.trim()){j(!0);try{if(!(await fetch(`${l}/api/v1/issues`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project_id:c,title:u,type:p,parent:m||void 0,status:"open"})})).ok)throw Error("Failed to create issue");x(""),h("feature"),f(""),i(),s()}catch(e){console.error(e)}finally{j(!1)}}};return(0,t.jsxs)(w.Dialog,{isOpen:e,onClose:s,title:"Create New Issue",className:"pb-0",children:[(0,t.jsxs)("div",{className:C.Classes.DIALOG_BODY,children:[(0,t.jsx)(y.FormGroup,{label:"Title",labelFor:"title-input",intent:r.Intent.PRIMARY,children:(0,t.jsx)(o.InputGroup,{id:"title-input",value:u,onChange:e=>x(e.target.value),placeholder:"e.g., Implement Login Page"})}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(y.FormGroup,{label:"Type",labelFor:"type-select",className:"flex-1",children:(0,t.jsxs)(I.HTMLSelect,{id:"type-select",value:p,onChange:e=>h(e.target.value),fill:!0,children:[(0,t.jsx)("option",{value:"feature",children:"Feature"}),(0,t.jsx)("option",{value:"chore",children:"Chore"}),(0,t.jsx)("option",{value:"fix",children:"Fix"}),(0,t.jsx)("option",{value:"epic",children:"Epic"})]})}),(0,t.jsx)(y.FormGroup,{label:"Parent Epic",labelFor:"epic-select",className:"flex-1",children:(0,t.jsxs)(I.HTMLSelect,{id:"epic-select",value:m,onChange:e=>f(e.target.value),fill:!0,disabled:"epic"===p||N,children:[(0,t.jsx)("option",{value:"",children:"None"}),v.map(e=>(0,t.jsxs)("option",{value:e.id,children:[e.id,": ",e.title]},e.id))]})})]})]}),(0,t.jsx)("div",{className:C.Classes.DIALOG_FOOTER,children:(0,t.jsxs)("div",{className:C.Classes.DIALOG_FOOTER_ACTIONS,children:[(0,t.jsx)(n.Button,{onClick:s,children:"Cancel"}),(0,t.jsx)(n.Button,{intent:r.Intent.PRIMARY,onClick:E,loading:g,disabled:!u.trim(),children:"Create"})]})})]})}let L=(e,t,s,a)=>{let i=[e.id,e.title,e.status,e.body||"",e.raw_content||"",...e.tags||[],...e.dependencies||[]].join(" ").toLowerCase();if(a.some(e=>i.includes(e))||!t.every(e=>i.includes(e)))return!1;let r=t.length>0;return!(s.length>0)||!!r||s.some(e=>i.includes(e))};function E(){let[x,p]=(0,a.useState)([]),[h,m]=(0,a.useState)(!0),[f,j]=(0,a.useState)(null),[v,w]=(0,a.useState)(null),[C,y]=(0,a.useState)({}),[I,E]=(0,a.useState)(!1),[D,T]=(0,a.useState)(""),{t:O}=(0,g.useTerms)(),{daemonUrl:R,status:A,currentProjectId:$}=(0,d.useDaemonStore)();(0,u.useSSEConnection)();let k=(0,a.useCallback)(async()=>{if("connected"===A)try{let e=$?`?project_id=${$}`:"",t=await fetch(`${R}/api/v1/issues${e}`);if(!t.ok)throw Error("Failed to fetch issues");let s=await t.json();p(s),j(null)}catch(e){console.error(e),j(e.message)}finally{m(!1)}},[R,A,$]);(0,a.useEffect)(()=>{"connected"===A&&k()},[A,k]),(0,a.useEffect)(()=>{let e=e=>{e.project_id&&$&&e.project_id!==$||(console.log("Issues updated via SSE"),k())},t=u.sseManager.on("issue_upserted",e),s=u.sseManager.on("issue_deleted",e);return()=>{t(),s()}},[k,$]);let{epics:_,groupedIssues:M,unassigned:F}=(0,a.useMemo)(()=>{let e,t,s,a,{explicitPositives:i,terms:r,negatives:l}=(e=(D.match(/([+\-]?"[^"]*")|([^\s]+)/g)||[]).map(e=>e.toLowerCase()),t=[],s=[],a=[],e.forEach(e=>{if(e.startsWith("-")){let t=e.slice(1);t.startsWith('"')&&t.endsWith('"')&&(t=t.slice(1,-1)),t&&a.push(t)}else if(e.startsWith("+")){let s=e.slice(1);s.startsWith('"')&&s.endsWith('"')&&(s=s.slice(1,-1)),s&&t.push(s)}else{let t=e;t.startsWith('"')&&t.endsWith('"')&&(t=t.slice(1,-1)),t&&s.push(t)}}),{explicitPositives:t,terms:s,negatives:a}),n=i.length>0||r.length>0||l.length>0,o=x.filter(e=>"epic"===e.type&&"closed"!==e.status).sort((e,t)=>e.id.localeCompare(t.id)),c=x.filter(e=>"epic"!==e.type),d=new Set,u=new Set;n?(o.forEach(e=>{L(e,i,r,l)&&d.add(e.id)}),c.forEach(e=>{L(e,i,r,l)&&u.add(e.id)})):(o.forEach(e=>d.add(e.id)),c.forEach(e=>u.add(e.id)));let p=[],h={},m=[];return o.forEach(e=>{let t,s=d.has(e.id),a=(t=e.id,c.some(e=>e.parent===t&&u.has(e.id)));(s||a)&&(p.push(e),h[e.id]=[])}),c.forEach(e=>{let t=u.has(e.id),s=e.parent&&d.has(e.parent);(t||s)&&(e.parent&&h[e.parent]?h[e.parent].push(e):m.push(e))}),{epics:p,groupedIssues:h,unassigned:m}},[x,D]),P=async(t,s)=>{if(console.log(`handleIssueDrop called with issueId: ${t}, stageId: ${s}, status: ${A}`),"connected"!==A)return void console.warn("Daemon status is not connected, aborting drop");let a=x.find(e=>e.id===t);if(!a)return void console.warn("Issue not found in local state");if(a.stage===s)return void console.log("Issue already in target stage, ignoring");let i=[...x];p(e=>e.map(e=>e.id===t?{...e,stage:s}:e));try{console.log(`Sending PATCH request to ${R}/api/v1/issues/${t}`);let e=await fetch(`${R}/api/v1/issues/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stage:s,project_id:$})});if(!e.ok){p(i);let t=await e.json();throw Error(t.detail||"Failed to update issue stage")}console.log("Issue update successful")}catch(r){p(i),console.error("Error in handleIssueDrop:",r);let{OverlayToaster:s,Position:a}=await e.A(99892);(await s.createAsync({position:a.TOP})).show({message:`Failed to move ${t}: ${r.message}`,intent:"danger",icon:"error"})}},G=e=>{let t={todo:[],doing:[],review:[],done:[]};return e.forEach(e=>{let s=e.stage||"todo";t[s]?t[s].push(e):t.todo.push(e)}),Object.keys(t).forEach(e=>{t[e].sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))}),[{id:"todo",title:O("todo","To Do"),items:t.todo},{id:"doing",title:O("doing","Doing"),items:t.doing},{id:"review",title:O("review","Review"),items:t.review},{id:"done",title:O("done","Done"),items:t.done}]};return"connecting"===A||"connected"===A&&h&&!f?(0,t.jsx)("div",{className:"flex h-full items-center justify-center bg-canvas",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)(i.Spinner,{intent:r.Intent.PRIMARY,size:50}),(0,t.jsx)("p",{className:"text-text-muted animate-pulse",children:"Loading Overview..."})]})}):(0,t.jsxs)("main",{className:"h-full flex flex-col font-sans overflow-hidden bg-canvas",children:[(0,t.jsx)(N.default,{issueId:v,onClose:()=>w(null)}),(0,t.jsx)(S,{isOpen:I,onClose:()=>E(!1),onSuccess:k}),(0,t.jsxs)(s.default,{title:"Overview",children:[(0,t.jsx)(c.Popover,{content:(0,t.jsxs)("div",{className:"p-3 bg-surface border border-border rounded-lg shadow-2xl min-w-[240px]",children:[(0,t.jsx)("div",{className:"text-xs font-bold text-text-muted uppercase tracking-wider mb-3 border-b border-border-subtle pb-2",children:"Search Syntax"}),(0,t.jsxs)("ul",{className:"list-none space-y-2 m-0 p-0 text-sm",children:[(0,t.jsxs)("li",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-text-secondary",children:"Fuzzy match"}),(0,t.jsx)("code",{className:"bg-surface-highlight px-1.5 py-0.5 rounded text-xs font-mono text-accent",children:"text"})]}),(0,t.jsxs)("li",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-text-secondary",children:"Exact phrase"}),(0,t.jsx)("code",{className:"bg-surface-highlight px-1.5 py-0.5 rounded text-xs font-mono text-accent",children:'"foo bar"'})]}),(0,t.jsxs)("li",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-text-secondary",children:"Must include"}),(0,t.jsx)("code",{className:"bg-surface-highlight px-1.5 py-0.5 rounded text-xs font-mono text-accent",children:"+term"})]}),(0,t.jsxs)("li",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("span",{className:"text-text-secondary",children:"Exclude"}),(0,t.jsx)("code",{className:"bg-surface-highlight px-1.5 py-0.5 rounded text-xs font-mono text-red-400",children:"-term"})]})]})]}),interactionKind:"hover",placement:"bottom-start",minimal:!0,popoverClassName:"bp6-dark",targetTagName:"div",modifiers:{offset:{enabled:!0,options:{offset:[0,4]}},flip:{enabled:!0},preventOverflow:{enabled:!0,options:{padding:10}}},children:(0,t.jsx)(o.InputGroup,{leftIcon:"filter",placeholder:"Filter...",value:D,onChange:e=>T(e.target.value),className:"w-64 bg-surface text-text-primary focus:border-accent",type:"search"})}),(0,t.jsx)(n.Button,{icon:"plus",intent:r.Intent.PRIMARY,text:"New Issue",onClick:()=>E(!0)})]}),f&&(0,t.jsx)("div",{className:"px-6 pt-4",children:(0,t.jsx)(l.Callout,{intent:"danger",title:"Connection Error",icon:"error",children:f})}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto px-6 py-6 space-y-8",children:[_.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 p-3 rounded-lg border border-border-subtle bg-surface hover:bg-surface-hover hover:border-border-hover transition-all cursor-pointer shadow-sm group",onClick:()=>y(t=>({...t,[e.id]:!t[e.id]})),children:[(0,t.jsxs)("div",{className:"flex items-center justify-center bg-primary/10 text-primary font-mono text-sm font-bold px-2 py-1 rounded",children:[(0,t.jsx)("div",{className:`transition-transform duration-200 ${C[e.id]?"-rotate-90":""}`,children:"▼"}),(0,t.jsx)("div",{className:"ml-2",children:e.id})]}),(0,t.jsx)("h2",{className:"text-lg font-bold text-text-primary m-0 group-hover:text-primary transition-colors",children:e.title}),(0,t.jsxs)("div",{className:"flex gap-2 ml-auto items-center",children:[(0,t.jsx)("span",{className:"text-xs uppercase font-semibold text-text-muted bg-surface-raised px-2 py-1 rounded border border-border-subtle",children:e.status}),(0,t.jsx)(n.Button,{icon:"maximize",minimal:!0,small:!0,className:"!text-text-muted hover:!text-primary",onClick:t=>{t.stopPropagation(),w(e.id)}}),e.tags&&e.tags.length>0&&(0,t.jsx)("div",{className:"flex gap-1",children:e.tags.map(e=>(0,t.jsxs)("span",{className:"text-xs text-text-muted bg-surface-raised px-1.5 py-0.5 rounded-full border border-border-subtle",children:["#",e]},e))})]})]}),!C[e.id]&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-px bg-border-subtle w-full"}),(0,t.jsx)("div",{className:"flex flex-row gap-6 overflow-x-auto pb-2",children:G(M[e.id]||[]).map(e=>(0,t.jsx)(b,{id:e.id,title:e.title,issues:e.items,activeIssueId:v,onIssueClick:e=>w(e.id),onDrop:P},e.id))})]})]},e.id)),M.undefined?.length>0||F.length>0?(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)("div",{className:"flex items-center gap-3 text-text-primary",children:(0,t.jsx)("h2",{className:"text-lg font-bold m-0 text-text-muted",children:"Unassigned / Others"})}),(0,t.jsx)("div",{className:"h-px bg-border-subtle w-full"}),(0,t.jsx)("div",{className:"flex flex-row gap-6 overflow-x-auto pb-2",children:G([...M.undefined||[],...F]).map(e=>(0,t.jsx)(b,{id:e.id,title:e.title,issues:e.items,activeIssueId:v,onIssueClick:e=>w(e.id),onDrop:P},e.id))})]}):null,0===_.length&&0===F.length&&!h&&(0,t.jsx)("div",{className:"text-center text-text-muted py-10",children:"No issues found. Create one to get started!"})]})]})}e.s(["default",()=>E],10470)},99892,e=>{e.v(t=>Promise.all(["static/chunks/58667ecb8c2b018a.js","static/chunks/8be6f9eae60bbfdf.js"].map(t=>e.l(t))).then(()=>t(92980)))}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,97044,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},18272,e=>{"use strict";var t=e.i(64302),r=e.i(65801),n=e.i(17906),o=e.i(36766),i=e.i(87385),a=e.i(81354);let s=(0,n.forwardRef)((e,n)=>{let{className:a,elevation:s=i.Elevation.ZERO,interactive:c=!1,selected:u,compact:l,...f}=e,d=(0,r.default)(a,o.Classes.CARD,o.Classes.elevationClass(s),{[o.Classes.INTERACTIVE]:c,[o.Classes.COMPACT]:l,[o.Classes.SELECTED]:u});return(0,t.jsx)("div",{className:d,ref:n,...f})});s.displayName=`${a.DISPLAYNAME_PREFIX}.Card`,e.s(["Card",0,s])},71855,e=>{"use strict";var t=e.i(65801),r=e.i(17906),n=e.i(23902);function o(e,n){return(0,r.forwardRef)((o,i)=>{let{className:a,children:s,...c}=o;return(0,r.createElement)(e,{...c,className:(0,t.default)(n,a),ref:i},s)})}let i=o("h1",n.HEADING),a=o("h2",n.HEADING),s=o("h3",n.HEADING),c=o("h4",n.HEADING),u=o("h5",n.HEADING),l=o("h6",n.HEADING),f=o("blockquote",n.BLOCKQUOTE),d=o("code",n.CODE),p=o("pre",n.CODE_BLOCK),h=o("label",n.LABEL),g=o("ol",n.LIST),m=o("ul",n.LIST);e.s(["Blockquote",0,f,"Code",0,d,"H1",0,i,"H2",0,a,"H3",0,s,"H4",0,c,"H5",0,u,"H6",0,l,"Label",0,h,"OL",0,g,"Pre",0,p,"UL",0,m])},90471,(e,t,r)=>{"use strict";var n=e.r(17906),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,a=n.useEffect,s=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,l=n[1];return s(function(){o.value=r,o.getSnapshot=t,u(o)&&l({inst:o})},[e,r,t]),a(function(){return u(o)&&l({inst:o}),e(function(){u(o)&&l({inst:o})})},[e]),c(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},29544,(e,t,r)=>{"use strict";t.exports=e.r(90471)},74641,e=>{"use strict";var t=e.i(64302),r=e.i(17906),n=e.i(67511),o=e.i(46679);let i=r.forwardRef((e,r)=>{let i=e.size>=n.IconSize.LARGE,a=i?n.IconSize.LARGE:n.IconSize.STANDARD,s=`${-1*a/.05/2}`;return(0,t.jsx)(o.SVGIconContainer,{iconName:"small-cross",ref:r,...e,children:(0,t.jsx)("path",{d:i?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:`scale(0.05, -0.05) translate(${s}, ${s})`,style:{transformOrigin:"center"}})})});i.defaultProps={size:n.IconSize.STANDARD},i.displayName="Blueprint6.Icon.SmallCross",e.s(["SmallCross",0,i])},88377,(e,t,r)=>{"use strict";var n=e.r(17906),o=e.r(29544),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=n.useRef,c=n.useEffect,u=n.useMemo,l=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var p=a(e,(f=u(function(){function e(e){if(!c){if(c=!0,a=e,e=n(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var r=n(e);return void 0!==o&&o(t,r)?(a=e,t):(a=e,s=r)}var a,s,c=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,o]))[0],f[1]);return c(function(){d.hasValue=!0,d.value=p},[p]),l(p),p}},20517,(e,t,r)=>{"use strict";t.exports=e.r(88377)},65287,82971,87588,32727,e=>{"use strict";let t={get url(){return`file://${e.P("Kanban/node_modules/zustand/esm/vanilla.mjs")}`}},r=e=>{let r,n=new Set,o=(e,t)=>{let o="function"==typeof e?e(r):e;if(!Object.is(o,r)){let e=r;r=(null!=t?t:"object"!=typeof o||null===o)?o:Object.assign({},r,o),n.forEach(t=>t(r,e))}},i=()=>r,a={setState:o,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{(t.env?t.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=r=e(o,i,a);return a};var n=e.i(17906),o=e.i(20517);let i={get url(){return`file://${e.P("Kanban/node_modules/zustand/esm/index.mjs")}`}},{useDebugValue:a}=n.default,{useSyncExternalStoreWithSelector:s}=o.default,c=!1,u=e=>{(i.env?i.env.MODE:void 0)!=="production"&&"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?e?r(e):r:e,n=(e,r)=>(function(e,t=e=>e,r){(i.env?i.env.MODE:void 0)!=="production"&&r&&!c&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),c=!0);let n=s(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return a(n),n})(t,e,r);return Object.assign(n,t),n},l=e=>e?u(e):u;var f=e.i(31243);let d=window.localStorage?.getItem("monoco_daemon_url")||f.default.env.NEXT_PUBLIC_MONOCO_DAEMON_URL||"http://127.0.0.1:8642";async function p(e,t={}){let{timeout:r=2e3,...n}=t,o=new AbortController,i=setTimeout(()=>o.abort(),r);try{return await fetch(e,{...n,signal:o.signal})}finally{clearTimeout(i)}}class h{static async checkHealth(e){try{return(await p(`${e}/health`,{cache:"no-store",timeout:5e3})).ok}catch{return!1}}static async getInfo(e,t){let r=t?`?project_id=${t}`:"",n=await p(`${e}/api/v1/info${r}`,{cache:"no-store",timeout:5e3});if(!n.ok)throw Error("Failed to fetch info");return n.json()}static async getProjects(e){let t=await p(`${e}/api/v1/projects`,{cache:"no-store",timeout:5e3});if(!t.ok)throw Error("Failed to fetch projects");return t.json()}static async getWorkspaceState(e){try{let t=await p(`${e}/api/v1/workspace/state`,{cache:"no-store",timeout:5e3});if(t.ok)return t.json()}catch(e){console.warn("Failed to fetch workspace state",e)}return{}}static async setWorkspaceState(e,t){try{await p(`${e}/api/v1/workspace/state`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),timeout:5e3})}catch(e){console.warn("Failed to set workspace state",e)}}}let g=l((e,t)=>({status:"disconnected",info:null,projects:[],currentProjectId:null,lastChecked:0,daemonUrl:d,errorCount:0,setStatus:t=>e({status:t}),setInfo:t=>e({info:t}),setProjects:t=>e({projects:t}),setCurrentProjectId:r=>{e({currentProjectId:r}),r&&h.setWorkspaceState(t().daemonUrl,{last_active_project_id:r}),t().checkConnection()},setDaemonUrl:r=>{window.localStorage.setItem("monoco_daemon_url",r),e({daemonUrl:r,status:"connecting",info:null,projects:[],currentProjectId:null}),t().checkConnection()},refreshProjects:async()=>{let{daemonUrl:r}=t();try{let n=await h.getProjects(r);e({projects:n});let{currentProjectId:o}=t();!o&&n.length>0&&e({currentProjectId:n[0].id})}catch(e){console.error("Failed to refresh projects",e)}},checkConnection:async()=>{e({lastChecked:Date.now()});let{daemonUrl:r,currentProjectId:n}=t();try{if(("disconnected"===t().status||"error"===t().status)&&e({status:"connecting"}),await h.checkHealth(r)){e({errorCount:0});let t=await h.getProjects(r);e({projects:t});let o=n;if(!o){let n=await h.getWorkspaceState(r);n.last_active_project_id&&t.some(e=>e.id===n.last_active_project_id)&&(o=n.last_active_project_id),!o&&t.length>0&&(o=t[0].id),o&&e({currentProjectId:o})}if(o){let t=await h.getInfo(r,o);e({status:"connected",info:t})}else e({status:"connected",info:null})}else{let{errorCount:r,status:n}=t(),o=r+1;if(e({errorCount:o}),"connected"===n&&o<3)return;e({status:"error"})}}catch(i){"AbortError"===i.name?console.warn("[Daemon] Connection timed out after 5000ms"):console.error("[Daemon] Connection failed:",i);let{errorCount:r,status:n}=t(),o=r+1;if(e({errorCount:o}),"connected"===n&&o<3)return;e({status:"error"})}}}));function m(e=5e3,t=1e4){let r=g(e=>e.status),o=g(e=>e.daemonUrl),i=(0,n.useRef)(null),a=(0,n.useRef)(1e3),s=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{{let e=window.localStorage.getItem("monoco_daemon_url"),t=g.getState().daemonUrl;e&&e!==t&&g.getState().setDaemonUrl(e)}},[]),(0,n.useEffect)(()=>{s.current=!0;let r=g.getState().checkConnection;a.current=1e3;let n=()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(async()=>{!s.current||(await r(),s.current&&("connected"===g.getState().status?a.current=e:a.current=Math.min(1.5*a.current,t),n()))},a.current)};return r().then(()=>{s.current&&n()}),()=>{s.current=!1,i.current&&clearTimeout(i.current)}},[e,t,o]),r}e.s(["useDaemonLifecycle",()=>m,"useDaemonStore",0,g],82971);class y{eventSource=null;listeners=new Map;currentUrl=null;connect(e){let t=`${e}/api/v1/events`;if(this.currentUrl===t&&this.eventSource&&(this.eventSource.readyState===EventSource.OPEN||this.eventSource.readyState===EventSource.CONNECTING))return;this.disconnect(),console.log(`[SSE] Connecting to ${t}`),this.currentUrl=t,this.eventSource=new EventSource(t),this.eventSource.onopen=()=>{console.log("[SSE] Connected")},this.eventSource.onmessage=e=>{try{let t=JSON.parse(e.data),r=t.type||"message";this.emit(r,t.payload||t)}catch(t){console.warn("[SSE] Failed to parse generic message",e.data)}};let r=e=>{this.eventSource?.addEventListener(e,t=>{try{let r=JSON.parse(t.data);this.emit(e,r)}catch(t){console.error(`[SSE] Error parsing ${e}`,t)}})};r("issue_upserted"),r("issue_deleted"),r("project_created"),r("project_updated"),r("project_deleted"),this.eventSource.onerror=e=>{console.error("[SSE] Connection error",e)}}disconnect(){this.eventSource&&(this.eventSource.close(),this.eventSource=null,this.currentUrl=null)}on(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>this.off(e,t)}off(e,t){this.listeners.get(e)?.delete(t)}emit(e,t){this.listeners.get(e)?.forEach(e=>e(t))}}let v=new y;function b(){let{status:e,daemonUrl:t}=g();(0,n.useEffect)(()=>{"connected"===e?v.connect(t):v.disconnect()},[e,t])}e.s(["sseManager",0,v,"useSSEConnection",()=>b],87588);let E=l((e,t)=>({stats:null,isLoading:!1,fetchStats:async()=>{let{daemonUrl:t,status:r,currentProjectId:n}=g.getState();if("connected"===r){e({isLoading:!0});try{let r=n?`?project_id=${n}`:"",o=await fetch(`${t}/api/v1/stats/dashboard${r}`,{cache:"no-store"});if(o.ok){let t=await o.json();e({stats:t,isLoading:!1})}else console.error("Failed to fetch dashboard stats",o.status),e({isLoading:!1})}catch(t){console.error("Failed to fetch dashboard stats",t),e({isLoading:!1})}}}}));e.s(["useDashboardStore",0,E],32727);let S=l((e,t)=>({issues:[],isLoading:!1,filter:"",fetchIssues:async()=>{let{daemonUrl:t,status:r,currentProjectId:n}=g.getState();if("connected"===r){e({isLoading:!0});try{let r=n?`?project_id=${n}`:"",o=await fetch(`${t}/api/v1/issues${r}`,{cache:"no-store"});if(o.ok){let t=await o.json();e({issues:t,isLoading:!1})}else console.error("Failed to fetch issues: Status",o.status),e({isLoading:!1})}catch(t){console.error("Failed to fetch issues",t),e({isLoading:!1})}}},setFilter:t=>e({filter:t}),upsertIssue:r=>{let{issues:n}=t(),o=n.findIndex(e=>e.id===r.id);if(o>=0){let t=[...n];t[o]=r,e({issues:t})}else e({issues:[...n,r]})},removeIssue:r=>{e({issues:t().issues.filter(e=>e.id!==r)})}}));function j(){let{status:e,currentProjectId:t}=g(),{fetchIssues:r,upsertIssue:o,removeIssue:i}=S(),{fetchStats:a}=E();(0,n.useEffect)(()=>{"connected"===e&&(r(),a())},[e,t,r,a]),(0,n.useEffect)(()=>{let e=()=>{g.getState().refreshProjects()},r=v.on("issue_upserted",e=>{e.project_id&&t&&e.project_id!==t||(o(e),a())}),n=v.on("issue_deleted",e=>{let r="string"==typeof e?e:e.id;"object"==typeof e&&e.project_id&&t&&e.project_id!==t||(r&&i(r),a())}),s=v.on("project_created",e),c=v.on("project_updated",e),u=v.on("project_deleted",e);return()=>{r(),n(),s(),c(),u()}},[o,i,a,t])}e.s(["useKanbanStore",0,S,"useKanbanSync",()=>j],65287)},76526,38142,e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,o;r=t,o=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e){return function t(){for(var r=this,n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}function s(e){return({}).toString.call(e).includes("Object")}function c(e){return"function"==typeof e}var u,l,f=a(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),d=function(e,t){return s(t)||f("changeType"),Object.keys(t).some(function(t){return!Object.prototype.hasOwnProperty.call(e,t)})&&f("changeField"),t},p=function(e){c(e)||f("selectorType")},h=function(e){c(e)||s(e)||f("handlerType"),s(e)&&Object.values(e).some(function(e){return!c(e)})&&f("handlersType")},g=function(e){e||f("initialIsRequired"),s(e)||f("initialType"),Object.keys(e).length||f("initialContent")};function m(e,t){return c(t)?t(e.current):t}function y(e,t){return e.current=i(i({},e.current),t),t}function v(e,t,r){return c(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null==(n=t[r])?void 0:n.call(t,e.current[r])}),r}var b={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},E=(u=function(e,t){throw Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=u.length?u.apply(this,n):function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.apply(t,[].concat(n,o))}})(b),S=function(e){return(e||E("configIsRequired"),({}).toString.call(e).includes("Object")||E("configType"),e.urls)?(console.warn(b.deprecation),{paths:{vs:e.urls.monacoBase}}):e},j=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},w={type:"cancelation",msg:"operation is manually canceled"};function O(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(w):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var C=["monaco"],P=function(e){if(Array.isArray(e))return e}(l=({create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(e),h(t);var r={current:e},n=a(v)(r,t),o=a(y)(r),i=a(d)(e),s=a(m)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return p(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(n,o,i,s)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{i=(r=r.call(e)).next,!1;for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(l,2)||function(e,r){if(e){if("string"==typeof e)return t(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,2):void 0}}(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),_=P[0],R=P[1];function L(e){return document.body.appendChild(e)}function T(e){var t,r,n=_(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function I(){var e=_(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var r=t.m||t;A(r),e.resolve(r)},function(t){e.reject(t)})}function A(e){_().monaco||R({monaco:e})}var D=new Promise(function(e,t){return R({resolve:e,reject:t})}),M={config:function(e){var t=S(e),r=t.monaco,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,C);R(function(e){return{config:function e(t,r){return Object.keys(r).forEach(function(n){r[n]instanceof Object&&t[n]&&Object.assign(r[n],e(t[n],r[n]))}),n(n({},t),r)}(e.config,o),monaco:r}})},init:function(){var e=_(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(R({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),O(D);if(window.monaco&&window.monaco.editor)return A(window.monaco),e.resolve(window.monaco),O(D);j(L,T)(I)}return O(D)},__getMonacoInstance:function(){return _(function(e){return e.monaco})}};e.s(["default",()=>M],38142);var k=e.i(17906),N={display:"flex",position:"relative",textAlign:"initial"},x={width:"100%"},$={display:"none"},U={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},F=function({children:e}){return k.default.createElement("div",{style:U},e)},z=(0,k.memo)(function({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return k.default.createElement("section",{style:{...N,width:e,height:t},...a},!r&&k.default.createElement(F,null,n),k.default.createElement("div",{ref:o,style:{...x,...!r&&$},className:i}))}),B=function(e){(0,k.useEffect)(e,[])},V=function(e,t,r=!0){let n=(0,k.useRef)(!0);(0,k.useEffect)(n.current||!r?()=>{n.current=!1}:e,t)};function H(){}function G(e,t,r,n){var o,i,a,s,c,u;return o=e,i=n,o.editor.getModel(K(o,i))||(a=e,s=t,c=r,u=n,a.editor.createModel(s,c,u?K(a,u):void 0))}function K(e,t){return e.Uri.parse(t)}(0,k.memo)(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:c=!1,theme:u="light",loading:l="Loading...",options:f={},height:d="100%",width:p="100%",className:h,wrapperProps:g={},beforeMount:m=H,onMount:y=H}){let[v,b]=(0,k.useState)(!1),[E,S]=(0,k.useState)(!0),j=(0,k.useRef)(null),w=(0,k.useRef)(null),O=(0,k.useRef)(null),C=(0,k.useRef)(y),P=(0,k.useRef)(m),_=(0,k.useRef)(!1);B(()=>{let e=M.init();return e.then(e=>(w.current=e)&&S(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return j.current?(t=j.current?.getModel(),void(s||t?.original?.dispose(),c||t?.modified?.dispose(),j.current?.dispose())):e.cancel()}}),V(()=>{if(j.current&&w.current){let t=j.current.getOriginalEditor(),o=G(w.current,e||"",n||r||"text",i||"");o!==t.getModel()&&t.setModel(o)}},[i],v),V(()=>{if(j.current&&w.current){let e=j.current.getModifiedEditor(),n=G(w.current,t||"",o||r||"text",a||"");n!==e.getModel()&&e.setModel(n)}},[a],v),V(()=>{let e=j.current.getModifiedEditor();e.getOption(w.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],v),V(()=>{j.current?.getModel()?.original.setValue(e||"")},[e],v),V(()=>{let{original:e,modified:t}=j.current.getModel();w.current.editor.setModelLanguage(e,n||r||"text"),w.current.editor.setModelLanguage(t,o||r||"text")},[r,n,o],v),V(()=>{w.current?.editor.setTheme(u)},[u],v),V(()=>{j.current?.updateOptions(f)},[f],v);let R=(0,k.useCallback)(()=>{if(!w.current)return;P.current(w.current);let s=G(w.current,e||"",n||r||"text",i||""),c=G(w.current,t||"",o||r||"text",a||"");j.current?.setModel({original:s,modified:c})},[r,t,o,e,n,i,a]),L=(0,k.useCallback)(()=>{!_.current&&O.current&&(j.current=w.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...f}),R(),w.current?.editor.setTheme(u),b(!0),_.current=!0)},[f,u,R]);return(0,k.useEffect)(()=>{v&&C.current(j.current,w.current)},[v]),(0,k.useEffect)(()=>{E||v||L()},[E,v,L]),k.default.createElement(z,{width:p,height:d,isEditorReady:v,loading:l,_ref:O,className:h,wrapperProps:g})});var W=function(e){let t=(0,k.useRef)();return(0,k.useEffect)(()=>{t.current=e},[e]),t.current},q=new Map,X=(0,k.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:s,loading:c="Loading...",options:u={},overrideServices:l={},saveViewState:f=!0,keepCurrentModel:d=!1,width:p="100%",height:h="100%",className:g,wrapperProps:m={},beforeMount:y=H,onMount:v=H,onChange:b,onValidate:E=H}){let[S,j]=(0,k.useState)(!1),[w,O]=(0,k.useState)(!0),C=(0,k.useRef)(null),P=(0,k.useRef)(null),_=(0,k.useRef)(null),R=(0,k.useRef)(v),L=(0,k.useRef)(y),T=(0,k.useRef)(),I=(0,k.useRef)(n),A=W(i),D=(0,k.useRef)(!1),N=(0,k.useRef)(!1);B(()=>{let e=M.init();return e.then(e=>(C.current=e)&&O(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>P.current?void(T.current?.dispose(),d?f&&q.set(i,P.current.saveViewState()):P.current.getModel()?.dispose(),P.current.dispose()):e.cancel()}),V(()=>{let a=G(C.current,e||n||"",t||o||"",i||r||"");a!==P.current?.getModel()&&(f&&q.set(A,P.current?.saveViewState()),P.current?.setModel(a),f&&P.current?.restoreViewState(q.get(i)))},[i],S),V(()=>{P.current?.updateOptions(u)},[u],S),V(()=>{P.current&&void 0!==n&&(P.current.getOption(C.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&(N.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),N.current=!1))},[n],S),V(()=>{let e=P.current?.getModel();e&&o&&C.current?.editor.setModelLanguage(e,o)},[o],S),V(()=>{void 0!==s&&P.current?.revealLine(s)},[s],S),V(()=>{C.current?.editor.setTheme(a)},[a],S);let x=(0,k.useCallback)(()=>{if(!(!_.current||!C.current)&&!D.current){L.current(C.current);let c=i||r,d=G(C.current,n||e||"",t||o||"",c||"");P.current=C.current?.editor.create(_.current,{model:d,automaticLayout:!0,...u},l),f&&P.current.restoreViewState(q.get(c)),C.current.editor.setTheme(a),void 0!==s&&P.current.revealLine(s),j(!0),D.current=!0}},[e,t,r,n,o,i,u,l,f,a,s]);return(0,k.useEffect)(()=>{S&&R.current(P.current,C.current)},[S]),(0,k.useEffect)(()=>{w||S||x()},[w,S,x]),I.current=n,(0,k.useEffect)(()=>{S&&b&&(T.current?.dispose(),T.current=P.current?.onDidChangeModelContent(e=>{N.current||b(P.current.getValue(),e)}))},[S,b]),(0,k.useEffect)(()=>{if(S){let e=C.current.editor.onDidChangeMarkers(e=>{let t=P.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=C.current.editor.getModelMarkers({resource:t});E?.(e)}});return()=>{e?.dispose()}}return()=>{}},[S,E]),k.default.createElement(z,{width:p,height:h,isEditorReady:S,loading:c,_ref:_,className:g,wrapperProps:m})});e.s(["default",()=>X],76526)},26163,e=>{"use strict";var t=e.i(64302),r=e.i(17906);e.i(65287);var n=e.i(82971);let o=(0,r.createContext)({terms:{},t:(e,t)=>t||e});function i({children:e}){let[i,a]=(0,r.useState)({}),{daemonUrl:s,currentProjectId:c,status:u}=(0,n.useDaemonStore)();return(0,r.useEffect)(()=>{"connected"!==u||(async()=>{try{let e=c?`?project_id=${c}`:"",t=await fetch(`${s}/api/v1/config/dictionary${e}`);if(t.ok){let e=await t.json();a(e)}}catch(e){console.error("Failed to fetch terms",e)}})()},[s,c,u]),(0,t.jsx)(o.Provider,{value:{terms:i,t:(e,t)=>{let r=e.toLowerCase();return i[r]?i[r]:t||e}},children:e})}e.s(["TermProvider",()=>i,"useTerms",0,()=>(0,r.useContext)(o)])},46945,(e,t,r)=>{t.exports=e.r(40888)},75251,e=>{"use strict";var t=e.i(64302),r=e.i(17906);let n=r.createContext({theme:"system",setTheme:()=>null});function o({children:e,defaultTheme:o="system",storageKey:i="monoco-ui-theme",...a}){let[s,c]=r.useState(o),[u,l]=r.useState(!1);return r.useEffect(()=>{l(!0);try{let e=localStorage.getItem(i);e&&c(e)}catch(e){console.warn("Failed to access localStorage",e)}},[i]),r.useEffect(()=>{if(!u)return;let e=window.document.documentElement,t=window.document.body;e.classList.remove("light","dark"),t.classList.remove("bp6-dark");let r=r=>{let n=r;"system"===r&&(n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),e.classList.add(n),e.style.colorScheme=n,"dark"===n&&t.classList.add("bp6-dark")};if(r(s),"system"===s){let n=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{e.classList.remove("light","dark"),t.classList.remove("bp6-dark"),r("system")};return n.addListener(o),()=>n.removeListener(o)}},[s,u]),(0,t.jsx)(n.Provider,{...a,value:{theme:s,setTheme:e=>{try{localStorage.setItem(i,e)}catch(e){console.warn("Failed to write localStorage",e)}c(e)}},children:e})}e.s(["ThemeProvider",()=>o,"useTheme",0,()=>{let e=r.useContext(n);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}])},57783,57395,82941,e=>{"use strict";var t,r,n=e.i(64302),o=e.i(65801),i=e.i(17906),a=e.i(65924),s=e.i(81354),c=e.i(23902),u=e.i(81668),l=e.i(32558);let f=(0,i.createContext)([{},()=>null]),d=(e,t)=>{switch(t.type){case"FORCE_DISABLED_STATE":return{forceDisabled:!0};case"RESET_DISABLED_STATE":return{};default:return e}},p=({children:e,forceDisable:t})=>{let[r,o]=(0,i.useReducer)(d,{}),a=(0,i.useMemo)(()=>[r,o],[r,o]);return(0,i.useEffect)(()=>{t?o({type:"FORCE_DISABLED_STATE"}):o({type:"RESET_DISABLED_STATE"})},[t]),(0,n.jsx)(f.Provider,{value:a,children:"function"==typeof e?e(r):e})};e.s(["TooltipContext",0,f,"TooltipProvider",0,p],57395);class h extends a.AbstractPureComponent{static displayName=`${s.DISPLAYNAME_PREFIX}.Tooltip`;static defaultProps={compact:!1,hoverCloseDelay:0,hoverOpenDelay:100,interactionKind:"hover-target",minimal:!1,transitionDuration:100};popoverRef=(0,i.createRef)();render(){return(0,n.jsx)(f.Consumer,{children:([e])=>(0,n.jsx)(p,{...e,children:this.renderPopover})})}reposition(){this.popoverRef.current?.reposition()}renderPopover=e=>{let{children:t,compact:r,disabled:i,intent:a,popoverClassName:s,...f}=this.props,d=(0,o.default)(c.TOOLTIP,c.intentClass(a),s,{[c.COMPACT]:r});return(0,n.jsx)(u.Popover,{modifiers:{arrow:{enabled:!this.props.minimal},offset:{options:{offset:[0,l.TOOLTIP_ARROW_SVG_SIZE/2]}}},...f,autoFocus:!1,disabled:e.forceDisabled??i,enforceFocus:!1,lazy:!0,popoverClassName:d,portalContainer:this.props.portalContainer,ref:this.popoverRef,children:t})}}e.s(["Tooltip",()=>h],57783);var g=e.i(67511),m=e.i(74641),y=a,v=e.i(36766),b=e.i(92266),E=e.i(73195),S=e.i(34888),j=e.i(71855),w=e.i(64740),O=e.i(99758);(t=r||(r={})).SMALL="360px",t.STANDARD="50%",t.LARGE="90%";class C extends y.AbstractPureComponent{static displayName=`${s.DISPLAYNAME_PREFIX}.Drawer`;static defaultProps={canOutsideClickClose:!0,isOpen:!1,position:"right",style:{}};render(){let{hasBackdrop:e,size:t,style:r,position:i}=this.props,{className:a,children:s,...c}=this.props,u=(0,E.getPositionIgnoreAngles)(i),l=(0,o.default)(v.Classes.DRAWER,{[v.Classes.positionClass(u)??""]:!0},a),f=null==t?r:{...r,[(0,E.isPositionHorizontal)(u)?"height":"width"]:t};return(0,n.jsx)(O.Overlay2,{...c,className:(0,o.default)({[v.Classes.OVERLAY_CONTAINER]:e}),children:(0,n.jsxs)("div",{className:l,style:f,children:[this.maybeRenderHeader(),s]})})}validateProps(e){null==e.title&&(null!=e.icon&&console.warn(b.DIALOG_WARN_NO_HEADER_ICON),null!=e.isCloseButtonShown&&console.warn(b.DIALOG_WARN_NO_HEADER_CLOSE_BUTTON)),null!=e.position&&e.position!==(0,E.getPositionIgnoreAngles)(e.position)&&console.warn(b.DRAWER_ANGLE_POSITIONS_ARE_CASTED)}maybeRenderCloseButton(){return!1!==this.props.isCloseButtonShown?(0,n.jsx)(S.Button,{"aria-label":"Close",className:v.Classes.DIALOG_CLOSE_BUTTON,icon:(0,n.jsx)(m.SmallCross,{size:g.IconSize.LARGE}),onClick:this.props.onClose,variant:"minimal"}):null}maybeRenderHeader(){let{icon:e,title:t}=this.props;return null==t?null:(0,n.jsxs)("div",{className:v.Classes.DRAWER_HEADER,children:[(0,n.jsx)(w.Icon,{icon:e,size:g.IconSize.LARGE}),(0,n.jsx)(j.H4,{children:t}),this.maybeRenderCloseButton()]})}}e.s(["Drawer",()=>C,"DrawerSize",()=>r],82941)},25179,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return c},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function c(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},8304,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return c}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(34166)._(e.r(25179)),a=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",s=e.hash||"",c=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),c&&"object"==typeof c&&(c=String(i.urlQueryToSearchParams(c)));let l=e.search||c&&`?${c}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),o=o.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),`${n}${u}${o}${l}${s}`}let c=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},81700,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(17906);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=i(e,n)),t&&(o.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},74577,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return E},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return f},getLocationOrigin:function(){return u},getURL:function(){return l},isAbsoluteUrl:function(){return c},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return j}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,c=e=>s.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function l(){let{href:e}=window.location,t=u();return e.substring(t.length)}function f(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let g="undefined"!=typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class E extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},47587,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(74577),o=e.r(56103);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},86945,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},98098,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=e.r(34166),a=e.r(64302),s=i._(e.r(17906)),c=e.r(8304),u=e.r(64206),l=e.r(81700),f=e.r(74577),d=e.r(5032);e.r(97044);let p=e.r(80466),h=e.r(47587),g=e.r(10390);function m(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}function y(t){var r;let n,o,i,[c,y]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),b=(0,s.useRef)(null),{href:E,as:S,children:j,prefetch:w=null,passHref:O,replace:C,shallow:P,scroll:_,onClick:R,onMouseEnter:L,onTouchStart:T,legacyBehavior:I=!1,onNavigate:A,ref:D,unstable_dynamicOnHover:M,...k}=t;n=j,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let N=s.default.useContext(u.AppRouterContext),x=!1!==w,$=!1!==w?null===(r=w)||"auto"===r?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,{href:U,as:F}=s.default.useMemo(()=>{let e=m(E);return{href:e,as:S?m(S):e}},[E,S]);if(I){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=s.default.Children.only(n)}let z=I?o&&"object"==typeof o&&o.ref:D,B=s.default.useCallback(e=>(null!==N&&(b.current=(0,p.mountLinkInstance)(e,U,N,$,x,y)),()=>{b.current&&((0,p.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,p.unmountPrefetchableInstance)(e)}),[x,U,N,$,y]),V={ref:(0,l.useMergedRef)(B,z),onClick(t){I||"function"!=typeof R||R(t),I&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!N||t.defaultPrevented||function(t,r,n,o,i,a,c){if("undefined"!=typeof window){let u,{nodeName:l}=t.currentTarget;if("A"===l.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),c){let e=!1;if(c({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(22669);s.default.startTransition(()=>{f(n||r,i?"replace":"push",a??!0,o.current)})}}(t,U,F,b,C,_,A)},onMouseEnter(e){I||"function"!=typeof L||L(e),I&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),N&&x&&(0,p.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){I||"function"!=typeof T||T(e),I&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),N&&x&&(0,p.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,f.isAbsoluteUrl)(F)?V.href=F:I&&!O&&("a"!==o.type||"href"in o.props)||(V.href=(0,d.addBasePath)(F)),i=I?s.default.cloneElement(o,V):(0,a.jsx)("a",{...k,...V,children:n}),(0,a.jsx)(v.Provider,{value:c,children:i})}e.r(86945);let v=(0,s.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},616,e=>{e.v(t=>Promise.all(["static/chunks/c0ed5e18b5d3603f.js"].map(t=>e.l(t))).then(()=>t(84823)))},32599,e=>{e.v(t=>Promise.all(["static/chunks/9fd979c23b6b6cfe.js"].map(t=>e.l(t))).then(()=>t(92429)))},38825,e=>{e.v(t=>Promise.all(["static/chunks/28eea37cf6ee528f.js"].map(t=>e.l(t))).then(()=>t(39097)))},46700,e=>{e.v(t=>Promise.all(["static/chunks/90ccff7dfcc2eb09.js"].map(t=>e.l(t))).then(()=>t(70452)))},53316,e=>{e.v(t=>Promise.all(["static/chunks/e6e7424a541ec9ed.js"].map(t=>e.l(t))).then(()=>t(33755)))}]);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37584,11086,e=>{"use strict";var t=e.i(64302),r=e.i(17906);let n=(0,r.createContext)({isActivityOpen:!1,toggleActivity:()=>{},openActivity:()=>{},closeActivity:()=>{}});function o({children:e}){let[o,i]=(0,r.useState)(!1),l=(0,r.useCallback)(()=>i(e=>!e),[]),a=(0,r.useCallback)(()=>i(!0),[]),s=(0,r.useCallback)(()=>i(!1),[]);return(0,t.jsx)(n.Provider,{value:{isActivityOpen:o,toggleActivity:l,openActivity:a,closeActivity:s},children:e})}e.s(["LayoutProvider",()=>o,"useLayout",0,()=>(0,r.useContext)(n)],37584);let i=(0,r.createContext)({isOpen:!1,toggle:()=>{},open:()=>{},close:()=>{},activeSessionId:"main",setActiveSessionId:()=>{},agentStatus:"disconnected",setAgentStatus:()=>{},reconnect:()=>{},reconnectKey:0});function l({children:e}){let[n,o]=(0,r.useState)(!1),[l,a]=(0,r.useState)("main");(0,r.useEffect)(()=>{let e=localStorage.getItem("monoco_terminal_isOpen");e&&o("true"===e);let t=localStorage.getItem("monoco_terminal_sessionId");t&&a(t)},[]),(0,r.useEffect)(()=>{localStorage.setItem("monoco_terminal_isOpen",String(n))},[n]),(0,r.useEffect)(()=>{localStorage.setItem("monoco_terminal_sessionId",l)},[l]);let[s,c]=(0,r.useState)("disconnected"),[d,u]=(0,r.useState)(0),f=(0,r.useCallback)(()=>o(e=>!e),[]),p=(0,r.useCallback)(()=>o(!0),[]),m=(0,r.useCallback)(()=>o(!1),[]),h=(0,r.useCallback)(()=>u(e=>e+1),[]);return(0,r.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"j"===e.key.toLowerCase()&&(e.preventDefault(),f())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[f]),(0,t.jsx)(i.Provider,{value:{isOpen:n,toggle:f,open:p,close:m,activeSessionId:l,setActiveSessionId:a,agentStatus:s,setAgentStatus:c,reconnect:h,reconnectKey:d},children:e})}e.s(["TerminalProvider",()=>l,"useTerminal",0,()=>(0,r.useContext)(i)],11086)},80921,e=>{"use strict";var t=e.i(64302),r=e.i(65287),n=e.i(82971),o=e.i(87588);e.i(76526);var i=e.i(38142),i=i,l=e.i(17906),a=e.i(26163),s=e.i(11086),c=e.i(37584);function d({children:e}){return(0,l.useEffect)(()=>{i.default.config({paths:{vs:"/monaco-editor/min/vs"}}),window.MonacoEnvironment={getWorkerUrl:function(e,t){return"json"===t?"/monaco-editor/min/vs/json.worker.js":"css"===t||"scss"===t||"less"===t?"/monaco-editor/min/vs/css.worker.js":"html"===t||"handlebars"===t||"razor"===t?"/monaco-editor/min/vs/html.worker.js":"typescript"===t||"javascript"===t?"/monaco-editor/min/vs/ts.worker.js":"/monaco-editor/min/vs/editor.worker.js"}}},[]),(0,n.useDaemonLifecycle)(),(0,o.useSSEConnection)(),(0,r.useKanbanSync)(),(0,t.jsx)(a.TermProvider,{children:(0,t.jsx)(s.TerminalProvider,{children:(0,t.jsx)(c.LayoutProvider,{children:e})})})}e.s(["Providers",()=>d],80921)},55732,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let n=e.r(3978);function o({reason:e,children:t}){if("undefined"==typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},49915,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},11775,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(64302),o=e.r(24910),i=e.r(53262),l=e.r(49915),a=e.r(10632);function s({moduleIds:e}){if("undefined"!=typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let s=(0,a.getDeploymentIdQueryOrEmptyString)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${s}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,o.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},46775,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(64302),o=e.r(17906),i=e.r(55732),l=e.r(11775);function a(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},c=function(e){let t={...s,...e},r=(0,o.lazy)(()=>t.loader().then(a)),c=t.loading;function d(e){let a=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,d=s?o.Suspense:o.Fragment,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["undefined"==typeof window?(0,n.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(d,{...s?{fallback:a}:{},children:u})}return d.displayName="LoadableComponent",d}},95109,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(29034)._(e.r(46775));function o(e,t){let r={};"function"==typeof e&&(r.loader=e);let o={...r,...t};return(0,n.default)({...o,modules:o.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54282,e=>{"use strict";let t;var r=e.i(64302),n=e.i(37584),o=e.i(46945),i=e.i(98098),l=e.i(64740),a=e.i(57783);e.i(65287);var s=e.i(82971),c=e.i(11086),d=e.i(32439);let u=(0,d.default)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var f=e.i(63374);let p=(0,d.default)("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);function m(){let{status:e,daemonUrl:t,checkConnection:o}=(0,s.useDaemonStore)(),{isOpen:i,toggle:d,agentStatus:m,reconnect:h}=(0,c.useTerminal)(),{toggleActivity:x}=(0,n.useLayout)();return(0,r.jsxs)("footer",{className:"h-6 bg-surface-highlight border-t border-border-subtle flex items-center px-3 text-[11px] text-text-muted select-none z-50 shrink-0 justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)(a.Tooltip,{content:(0,r.jsxs)("div",{className:"text-[10px] p-0.5",children:[(0,r.jsx)("div",{className:"font-bold opacity-80 uppercase mb-1",children:"Daemon Connection"}),(0,r.jsxs)("div",{children:["Server:"," ",(0,r.jsx)("span",{className:"text-blue-400",children:t||"Not Set"})]}),(0,r.jsx)("div",{className:"mt-1 opacity-50 italic",children:"Click to force re-check"})]}),hoverOpenDelay:300,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 hover:bg-white/5 px-2 py-0.5 rounded cursor-pointer transition-colors group",onClick:()=>o(),children:[(0,r.jsx)("div",{className:`w-2 h-2 rounded-full transition-shadow ${(()=>{switch(e){case"connected":return"bg-emerald-500";case"connecting":return"bg-yellow-500";case"error":return"bg-red-500";default:return"bg-slate-500"}})()} ${"connected"!==e?"animate-pulse":""} group-hover:shadow-[0_0_5px_rgba(255,255,255,0.5)]`}),(0,r.jsx)("span",{children:(()=>{switch(e){case"connected":return"Connected";case"connecting":return"Connecting...";default:return"Disconnected"}})()})]})}),(0,r.jsxs)("div",{className:"flex items-center gap-1 hover:bg-white/5 px-2 py-0.5 rounded cursor-pointer transition-colors",children:[(0,r.jsx)(l.Icon,{icon:"git-branch",size:12}),(0,r.jsx)("span",{children:"main"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 hover:bg-white/5 px-2 py-0.5 rounded cursor-pointer transition-colors",children:[(0,r.jsx)(l.Icon,{icon:"error",size:12,className:"text-text-muted"}),(0,r.jsx)("span",{children:"0"}),(0,r.jsx)(l.Icon,{icon:"warning-sign",size:12,className:"text-text-muted"}),(0,r.jsx)("span",{children:"0"})]})]}),(0,r.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 h-full flex items-center",children:(0,r.jsx)(a.Tooltip,{content:(0,r.jsxs)("div",{className:"text-[10px] p-0.5",children:[(0,r.jsx)("div",{className:"font-bold opacity-80 uppercase mb-1",children:"Agent PTY Server"}),(0,r.jsxs)("div",{children:["Status:"," ",(0,r.jsx)("span",{className:"connected"===m?"text-green-400":"text-red-400",children:m.toUpperCase()})]}),(0,r.jsx)("div",{className:"mt-1 opacity-50 italic",children:"connected"===m?"Click to toggle terminal":"Click red dot to reconnect, others to toggle terminal"})]}),hoverOpenDelay:300,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 px-3 py-0.5 rounded-t-sm hover:bg-surface-highlight hover:brightness-110 cursor-pointer transition-all border-t border-x border-transparent hover:border-border-subtle/50 group",onClick:d,children:[(0,r.jsx)("div",{className:`w-2.5 h-2.5 rounded-full transition-all flex items-center justify-center ${"connected"===m?"bg-green-500 shadow-[0_0_8px_rgba(34,197,94,0.3)]":"bg-red-500 shadow-[0_0_8px_rgba(239,68,68,0.3)] animate-pulse"} group-hover:shadow-[0_0_8px_rgba(255,255,255,0.6)] hover:scale-[1.3] active:scale-95`,onClick:e=>{"connected"!==m&&(e.stopPropagation(),h())}}),(0,r.jsx)("span",{className:`text-[10px] font-medium tracking-tight ${"connected"===m?"text-green-500":"text-red-500"}`,children:"connected"===m?"AGENT WAITING":"AGENT DISCONNECTED"}),i?(0,r.jsx)(f.ChevronDown,{size:12,className:"text-text-muted opacity-50"}):(0,r.jsx)(u,{size:12,className:"text-text-muted opacity-50"})]})})}),(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"flex items-center gap-1 hover:bg-white/5 px-2 py-0.5 rounded cursor-pointer transition-colors",children:(0,r.jsx)("span",{className:"text-text-muted",children:"UTF-8"})}),(0,r.jsx)(a.Tooltip,{content:"Activity Feed",hoverOpenDelay:300,children:(0,r.jsx)("div",{className:"flex items-center gap-1 hover:bg-white/10 px-2 py-0.5 rounded cursor-pointer transition-colors text-text-muted hover:text-text-primary",onClick:x,children:(0,r.jsx)(p,{size:12})})})]})]})}var h=e.i(82941),x=e.i(73195),y=e.i(36766),v=e.i(76821),g=e.i(55922),b=e.i(18272),w=e.i(87385),j=e.i(32727);function N({isOpen:e,onClose:t}){let{stats:n,isLoading:o}=(0,j.useDashboardStore)(),i=n?.recent_activities||[];return(0,r.jsx)(h.Drawer,{isOpen:e,onClose:t,position:x.Position.RIGHT,size:"350px",title:"Activity Feed",canOutsideClickClose:!0,hasBackdrop:!0,children:(0,r.jsx)("div",{className:y.Classes.DRAWER_BODY,children:(0,r.jsx)("div",{className:"h-full p-4 overflow-y-auto",children:o&&!n?(0,r.jsx)("div",{className:"flex justify-center p-4",children:(0,r.jsx)(g.Spinner,{size:24})}):0===i.length?(0,r.jsx)("div",{className:"text-center text-gray-500 mt-4",children:"No recent activities"}):(0,r.jsx)("div",{className:"space-y-3",children:i.map(e=>(0,r.jsx)(b.Card,{elevation:w.Elevation.ZERO,className:"!bg-opacity-50 !p-3 border border-gray-200 dark:border-gray-700",children:(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:"mt-1 p-1 rounded-full bg-opacity-10",children:(0,r.jsx)(l.Icon,{icon:function(e){switch(e){case"created":return"add";case"updated":return"edit";case"closed":return"tick-circle";default:return"notifications"}}(e.type),intent:function(e){switch(e){case"created":return v.Intent.SUCCESS;case"updated":return v.Intent.PRIMARY;case"closed":return v.Intent.DANGER;default:return v.Intent.NONE}}(e.type),size:16})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("div",{className:"text-sm font-medium truncate",title:e.issue_title,children:e.issue_title}),(0,r.jsx)("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-0.5",children:e.description||e.type}),(0,r.jsx)("div",{className:"text-[10px] text-gray-400 mt-2 text-right",children:function(e){try{return new Date(e).toLocaleString()}catch(t){return e}}(e.timestamp)})]})]})},e.id))})})})})}let C=(0,d.default)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),k=(0,d.default)("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),E=(0,d.default)("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]),_=(0,d.default)("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),S=(0,d.default)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),R=(0,d.default)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var P=e.i(17906),T=e.i(95109);let O=(e="dark")=>"light"===e?{background:"#ffffff",foreground:"#333333",cursor:"#333333",selectionBackground:"rgba(0, 0, 0, 0.1)",cursorAccent:"#ffffff"}:{background:"#1e1e1e",foreground:"#cccccc",cursor:"#ffffff",selectionBackground:"rgba(255, 255, 255, 0.3)",cursorAccent:"#000000"},L=({sessionId:t,initialCwd:n,onClose:o,className:i="",themeMode:l="dark"})=>{let a=(0,P.useRef)(null),s=(0,P.useRef)(null),d=(0,P.useRef)(null),u=(0,P.useRef)(null),[f,p]=(0,P.useState)(!1),{setAgentStatus:m,reconnectKey:h}=(0,c.useTerminal)(),x=(0,P.useRef)(0),y=(0,P.useRef)(!1),v=(0,P.useRef)(null);return(0,P.useEffect)(()=>{s.current&&(s.current.options.theme=O(l))},[l]),(0,P.useEffect)(()=>{let r,i,c,f;if(!a.current)return;y.current=!1;let h=null;return(async()=>{let{Terminal:g}=await e.A(38825),{FitAddon:b}=await e.A(46700),{WebLinksAddon:w}=await e.A(53316);r=new g({cursorBlink:!0,fontSize:13,fontFamily:'Menlo, Monaco, "Courier New", monospace',theme:O(l),allowProposedApi:!0}),i=new b,c=new w,r.loadAddon(i),r.loadAddon(c),r.open(a.current),i.fit(),s.current=r,d.current=i;let j=()=>{if(y.current)return;let e=r.cols,i=r.rows;if(e<=1||i<=1)return void console.warn("PTY: Skipping connect due to small window size",{currentCols:e,currentRows:i});let l=new URL(`ws://127.0.0.1:3124/api/v1/pty/ws/${t}`);n&&l.searchParams.append("cwd",n),l.searchParams.append("cols",String(e)),l.searchParams.append("rows",String(i)),console.log(`Connecting to PTY: ${l.toString()}`),m("connecting");let a=new WebSocket(l.toString());a.binaryType="arraybuffer",a.onopen=()=>{if(y.current){a.readyState===WebSocket.OPEN&&a.close();return}console.log("PTY Connected"),p(!0),m("connected"),x.current=0,d.current&&d.current.fit()},a.onclose=e=>{if(!y.current)if(console.log("PTY Disconnected",e.code,e.reason),p(!1),m("disconnected"),x.current<10){let e=Math.min(1e3*Math.pow(1.5,x.current),1e4);console.log(`Reconnecting in ${e}ms (Attempt ${x.current+1}/10)...`),x.current++,v.current=setTimeout(j,e)}else console.error("Max retries reached. PTY connection failed."),o&&o()},a.onerror=e=>{console.error("PTY Error",e)},a.onmessage=e=>{"string"==typeof e.data?r.write(e.data):r.write(new Uint8Array(e.data))},u.current=a};j(),f=r.onData(e=>{u.current&&u.current.readyState===WebSocket.OPEN&&u.current.send(e)});let N=()=>{if(d.current)try{d.current.fit();let{cols:e,rows:t}=s.current;if(!u.current&&!y.current&&e>1&&t>1)return void j();if(!u.current||u.current.readyState!==WebSocket.OPEN)return;let r=JSON.stringify({type:"resize",cols:e,rows:t});u.current.send(r)}catch(e){console.error("Resize error:",e)}};h=new ResizeObserver(()=>{N()}),a.current&&h&&h.observe(a.current),setTimeout(()=>N(),100)})(),()=>{y.current=!0,v.current&&clearTimeout(v.current),f&&f.dispose(),r&&r.dispose(),u.current&&u.current.readyState<=WebSocket.OPEN&&u.current.close(),h&&h.disconnect()}},[t,n,o,h]),(0,r.jsx)("div",{className:`w-full h-full ${i}`,style:{backgroundColor:O(l).background},onClick:()=>{s.current&&s.current.focus()},children:(0,r.jsx)("div",{ref:a,className:"w-full h-full px-2 py-1"})})},M=(0,T.default)(()=>Promise.resolve(L),{ssr:!1});var I=e.i(33286),D=e.i(75251);let A=()=>{let{isOpen:e,toggle:t,activeSessionId:n}=(0,c.useTerminal)(),[o,i]=(0,P.useState)(320),[l,a]=(0,P.useState)(!1),{theme:s}=(0,D.useTheme)(),[d,u]=(0,P.useState)("dark");(0,P.useEffect)(()=>{let e=localStorage.getItem("monoco_terminal_height");e&&i(Number(e))},[]),(0,P.useEffect)(()=>{localStorage.setItem("monoco_terminal_height",String(o))},[o]),(0,P.useEffect)(()=>{let e=()=>{"system"===s?u(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):u(s)};if(e(),"system"===s){let t=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>e();return t.addEventListener("change",r),()=>t.removeEventListener("change",r)}},[s]),(0,P.useEffect)(()=>{if(!l)return;let e=e=>{let t=window.innerHeight-e.clientY-24;t>=150&&t<=800&&i(t)},t=()=>{a(!1)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[l]);let f=(0,P.useRef)({});return(0,P.useEffect)(()=>{let e=e=>{f.current[e.key.toLowerCase()]=!0,e.metaKey&&f.current.j&&("ArrowUp"===e.key?(e.preventDefault(),e.stopPropagation(),i(e=>Math.min(e+19,800))):"ArrowDown"===e.key&&(e.preventDefault(),e.stopPropagation(),i(e=>Math.max(e-19,150))))},t=e=>{f.current[e.key.toLowerCase()]=!1};return window.addEventListener("keydown",e,!0),window.addEventListener("keyup",t,!0),()=>{window.removeEventListener("keydown",e,!0),window.removeEventListener("keyup",t,!0)}},[]),(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)("div",{className:"fixed inset-0 z-[100] cursor-ns-resize bg-transparent",style:{userSelect:"none"}}),(0,r.jsxs)("div",{className:(0,I.cn)("relative z-40 flex flex-col shadow-[0_-5px_20px_rgba(0,0,0,0.1)] transition-all duration-200 ease-in-out bg-card border-t border-border",e?"translate-y-0 opacity-100":"translate-y-[120%] opacity-0"),style:{height:e?o:0,position:"absolute",bottom:0,left:0,right:0,transitionProperty:l?"none":"all"},children:[(0,r.jsx)("div",{className:"h-2 w-full cursor-ns-resize flex items-center justify-center bg-muted/30 hover:bg-accent/50 transition-colors border-b border-border/50 group",onMouseDown:e=>{e.preventDefault(),a(!0)},children:(0,r.jsx)("div",{className:"w-16 h-1 rounded-full bg-border group-hover:bg-primary/50 transition-colors"})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden bg-background",children:(0,r.jsx)(M,{sessionId:n,themeMode:d})})]})]})};var $=e.i(86270),z=e.i(29716),W=e.i(88360),B=e.i(87222),F=e.i(8378),V=(e.i(28010),e.i(12361));e.i(24910);var H=Symbol("radix.slottable");function U(e){return P.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===H}var Y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,o;let i,l,a,s=(o=n=`Primitive.${t}`,(i=P.forwardRef((e,t)=>{let{children:r,...n}=e;if(P.isValidElement(r)){var o;let e,i,l=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==P.Fragment&&(a.ref=t?(0,z.composeRefs)(t,l):l),P.cloneElement(r,a)}return P.Children.count(r)>1?P.Children.only(null):null})).displayName=`${o}.SlotClone`,l=i,(a=P.forwardRef((e,t)=>{let{children:n,...o}=e,i=P.Children.toArray(n),a=i.find(U);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:P.Children.count(e)>1?P.Children.only(null):P.isValidElement(e)?e.props.children:null);return(0,r.jsx)(l,{...o,ref:t,children:P.isValidElement(e)?P.cloneElement(e,void 0,n):null})}return(0,r.jsx)(l,{...o,ref:t,children:n})})).displayName=`${n}.Slot`,a),c=P.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(o?s:t,{...i,ref:n})});return c.displayName=`Primitive.${t}`,{...e,[t]:c}},{}),q=e.i(30221),G=Symbol("radix.slottable");function K(e){return P.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===G}var Z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,o;let i,l,a,s=(o=n=`Primitive.${t}`,(i=P.forwardRef((e,t)=>{let{children:r,...n}=e;if(P.isValidElement(r)){var o;let e,i,l=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==P.Fragment&&(a.ref=t?(0,z.composeRefs)(t,l):l),P.cloneElement(r,a)}return P.Children.count(r)>1?P.Children.only(null):null})).displayName=`${o}.SlotClone`,l=i,(a=P.forwardRef((e,t)=>{let{children:n,...o}=e,i=P.Children.toArray(n),a=i.find(K);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:P.Children.count(e)>1?P.Children.only(null):P.isValidElement(e)?e.props.children:null);return(0,r.jsx)(l,{...o,ref:t,children:P.isValidElement(e)?P.cloneElement(e,void 0,n):null})}return(0,r.jsx)(l,{...o,ref:t,children:n})})).displayName=`${n}.Slot`,a),c=P.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(o?s:t,{...i,ref:n})});return c.displayName=`Primitive.${t}`,{...e,[t]:c}},{}),X=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),J=P.forwardRef((e,t)=>(0,r.jsx)(Z.span,{...e,ref:t,style:{...X,...e.style}}));J.displayName="VisuallyHidden";var[Q,ee]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>P.createContext(e));return function(r){let n=r?.[e]||t;return P.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return o.scopeName=e,[function(t,o){let i=P.createContext(o),l=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,s=n?.[e]?.[l]||i,c=P.useMemo(()=>a,Object.values(a));return(0,r.jsx)(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(r,n){let a=n?.[e]?.[l]||i,s=P.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(o,...t)]}("Tooltip",[F.createPopperScope]),et=(0,F.createPopperScope)(),er="TooltipProvider",en="tooltip.open",[eo,ei]=Q(er),el=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,a=P.useRef(!0),s=P.useRef(!1),c=P.useRef(0);return P.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,r.jsx)(eo,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:P.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:P.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:P.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})};el.displayName=er;var ea="Tooltip",[es,ec]=Q(ea),ed=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i,onOpenChange:l,disableHoverableContent:a,delayDuration:s}=e,c=ei(ea,e.__scopeTooltip),d=et(t),[u,f]=P.useState(null),p=(0,B.useId)(),m=P.useRef(0),h=a??c.disableHoverableContent,x=s??c.delayDuration,y=P.useRef(!1),[v,g]=(0,q.useControllableState)({prop:o,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(en))):c.onClose(),l?.(e)},caller:ea}),b=P.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),w=P.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y.current=!1,g(!0)},[g]),j=P.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g(!1)},[g]),N=P.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{y.current=!0,g(!0),m.current=0},x)},[x,g]);return P.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,r.jsx)(F.Root,{...d,children:(0,r.jsx)(es,{scope:t,contentId:p,open:v,stateAttribute:b,trigger:u,onTriggerChange:f,onTriggerEnter:P.useCallback(()=>{c.isOpenDelayedRef.current?N():w()},[c.isOpenDelayedRef,N,w]),onTriggerLeave:P.useCallback(()=>{h?j():(window.clearTimeout(m.current),m.current=0)},[j,h]),onOpen:w,onClose:j,disableHoverableContent:h,children:n})})};ed.displayName=ea;var eu="TooltipTrigger",ef=P.forwardRef((e,t)=>{let{__scopeTooltip:n,...o}=e,i=ec(eu,n),l=ei(eu,n),a=et(n),s=P.useRef(null),c=(0,z.useComposedRefs)(t,s,i.onTriggerChange),d=P.useRef(!1),u=P.useRef(!1),f=P.useCallback(()=>d.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),(0,r.jsx)(F.Anchor,{asChild:!0,...a,children:(0,r.jsx)(Y.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:c,onPointerMove:(0,$.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||l.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))}),onPointerLeave:(0,$.composeEventHandlers)(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:(0,$.composeEventHandlers)(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:(0,$.composeEventHandlers)(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:(0,$.composeEventHandlers)(e.onBlur,i.onClose),onClick:(0,$.composeEventHandlers)(e.onClick,i.onClose)})})});ef.displayName=eu;var[ep,em]=Q("TooltipPortal",{forceMount:void 0}),eh="TooltipContent",ex=P.forwardRef((e,t)=>{let n=em(eh,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...l}=e,a=ec(eh,e.__scopeTooltip);return(0,r.jsx)(V.Presence,{present:o||a.open,children:a.disableHoverableContent?(0,r.jsx)(ew,{side:i,...l,ref:t}):(0,r.jsx)(ey,{side:i,...l,ref:t})})}),ey=P.forwardRef((e,t)=>{let n=ec(eh,e.__scopeTooltip),o=ei(eh,e.__scopeTooltip),i=P.useRef(null),l=(0,z.useComposedRefs)(t,i),[a,s]=P.useState(null),{trigger:c,onClose:d}=n,u=i.current,{onPointerInTransitChange:f}=o,p=P.useCallback(()=>{s(null),f(!1)},[f]),m=P.useCallback((e,t)=>{let r,n=e.currentTarget,o={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(o,n.getBoundingClientRect());s(((r=[...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(o,i),...function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),f(!0)},[f]);return P.useEffect(()=>()=>p(),[p]),P.useEffect(()=>{if(c&&u){let e=e=>m(e,u),t=e=>m(e,c);return c.addEventListener("pointerleave",e),u.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),u.removeEventListener("pointerleave",t)}}},[c,u,m,p]),P.useEffect(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=c?.contains(t)||u?.contains(t),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],s=l.x,c=l.y,d=a.x,u=a.y;c>n!=u>n&&r<(d-s)*(n-c)/(u-c)+s&&(o=!o)}return o}(r,a);n?p():o&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,u,a,d,p]),(0,r.jsx)(ew,{...e,ref:l})}),[ev,eg]=Q(ea,{isInside:!1}),eb=((t=({children:e})=>(0,r.jsx)(r.Fragment,{children:e})).displayName="TooltipContent.Slottable",t.__radixId=H,t),ew=P.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:a,...s}=e,c=ec(eh,n),d=et(n),{onClose:u}=c;return P.useEffect(()=>(document.addEventListener(en,u),()=>document.removeEventListener(en,u)),[u]),P.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;t?.contains(c.trigger)&&u()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,u]),(0,r.jsx)(W.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,r.jsxs)(F.Content,{"data-state":c.stateAttribute,...d,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,r.jsx)(eb,{children:o}),(0,r.jsx)(ev,{scope:n,isInside:!0,children:(0,r.jsx)(J,{id:c.contentId,role:"tooltip",children:i||o})})]})})});ex.displayName=eh;var ej="TooltipArrow";P.forwardRef((e,t)=>{let{__scopeTooltip:n,...o}=e,i=et(n);return eg(ej,n).isInside?null:(0,r.jsx)(F.Arrow,{...i,...o,ref:t})}).displayName=ej;let eN=P.forwardRef(({className:e,sideOffset:t=4,...n},o)=>(0,r.jsx)(ex,{ref:o,sideOffset:t,className:(0,I.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));eN.displayName=ex.displayName;var eC=e.i(92259),ek=e.i(49718),eE=Symbol.for("react.lazy"),e_=P[" use ".trim().toString()];function eS(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===eE&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var eR=Symbol("radix.slottable");function eP(e){return P.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eR}var eT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var n,o;let i,l,a,s=(o=n=`Primitive.${t}`,(i=P.forwardRef((e,t)=>{let{children:r,...n}=e;if(eS(r)&&"function"==typeof e_&&(r=e_(r._payload)),P.isValidElement(r)){var o;let e,i,l=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),a=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==P.Fragment&&(a.ref=t?(0,z.composeRefs)(t,l):l),P.cloneElement(r,a)}return P.Children.count(r)>1?P.Children.only(null):null})).displayName=`${o}.SlotClone`,l=i,(a=P.forwardRef((e,t)=>{let{children:n,...o}=e;eS(n)&&"function"==typeof e_&&(n=e_(n._payload));let i=P.Children.toArray(n),a=i.find(eP);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:P.Children.count(e)>1?P.Children.only(null):P.isValidElement(e)?e.props.children:null);return(0,r.jsx)(l,{...o,ref:t,children:P.isValidElement(e)?P.cloneElement(e,void 0,n):null})}return(0,r.jsx)(l,{...o,ref:t,children:n})})).displayName=`${n}.Slot`,a),c=P.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(o?s:t,{...i,ref:n})});return c.displayName=`Primitive.${t}`,{...e,[t]:c}},{}),eO=e.i(29544);function eL(){return()=>{}}var eM="Avatar",[eI,eD]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>P.createContext(e));return function(r){let n=r?.[e]||t;return P.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return o.scopeName=e,[function(t,o){let i=P.createContext(o);i.displayName=t+"Context";let l=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,s=n?.[e]?.[l]||i,c=P.useMemo(()=>a,Object.values(a));return(0,r.jsx)(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(r,n){let a=n?.[e]?.[l]||i,s=P.useContext(a);if(s)return s;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(o,...t)]}(eM),[eA,e$]=eI(eM),ez=P.forwardRef((e,t)=>{let{__scopeAvatar:n,...o}=e,[i,l]=P.useState("idle");return(0,r.jsx)(eA,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:(0,r.jsx)(eT.span,{...o,ref:t})})});ez.displayName=eM;var eW="AvatarImage",eB=P.forwardRef((e,t)=>{let{__scopeAvatar:n,src:o,onLoadingStatusChange:i=()=>{},...l}=e,a=e$(eW,n),s=function(e,{referrerPolicy:t,crossOrigin:r}){let n=(0,eO.useSyncExternalStore)(eL,()=>!0,()=>!1),o=P.useRef(null),i=n?(o.current||(o.current=new window.Image),o.current):null,[l,a]=P.useState(()=>eH(i,e));return(0,ek.useLayoutEffect)(()=>{a(eH(i,e))},[i,e]),(0,ek.useLayoutEffect)(()=>{let e=e=>()=>{a(e)};if(!i)return;let n=e("loaded"),o=e("error");return i.addEventListener("load",n),i.addEventListener("error",o),t&&(i.referrerPolicy=t),"string"==typeof r&&(i.crossOrigin=r),()=>{i.removeEventListener("load",n),i.removeEventListener("error",o)}},[i,r,t]),l}(o,l),c=(0,eC.useCallbackRef)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,ek.useLayoutEffect)(()=>{"idle"!==s&&c(s)},[s,c]),"loaded"===s?(0,r.jsx)(eT.img,{...l,ref:t,src:o}):null});eB.displayName=eW;var eF="AvatarFallback",eV=P.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:o,...i}=e,l=e$(eF,n),[a,s]=P.useState(void 0===o);return P.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>s(!0),o);return()=>window.clearTimeout(e)}},[o]),a&&"loaded"!==l.imageLoadingStatus?(0,r.jsx)(eT.span,{...i,ref:t}):null});function eH(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}eV.displayName=eF;let eU=P.forwardRef(({className:e,...t},n)=>(0,r.jsx)(ez,{ref:n,className:(0,I.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));eU.displayName=ez.displayName;let eY=P.forwardRef(({className:e,...t},n)=>(0,r.jsx)(eB,{ref:n,className:(0,I.cn)("aspect-square h-full w-full",e),...t}));eY.displayName=eB.displayName;let eq=P.forwardRef(({className:e,...t},n)=>(0,r.jsx)(eV,{ref:n,className:(0,I.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));eq.displayName=eV.displayName;let eG=({icon:e,path:t,label:n})=>{let l=(0,o.usePathname)()===t;return(0,r.jsxs)(ed,{children:[(0,r.jsx)(ef,{asChild:!0,children:(0,r.jsx)(i.default,{href:t,className:"block mb-4",children:(0,r.jsx)("div",{className:`
|
|
2
|
-
w-10 h-10 flex items-center justify-center rounded-xl transition-all duration-200
|
|
3
|
-
${l?"bg-blue-600 text-white shadow-[0_0_15px_rgba(59,130,246,0.5)]":"text-text-muted hover:text-text-primary hover:bg-surface-highlight"}
|
|
4
|
-
`,children:(0,r.jsx)(e,{size:20})})})}),(0,r.jsx)(eN,{side:"right",children:(0,r.jsx)("p",{children:n})})]})};function eK({children:e}){let{projects:t,currentProjectId:o}=(0,s.useDaemonStore)(),{isActivityOpen:i,closeActivity:l}=(0,n.useLayout)();return t?.find(e=>e.id===o),(0,r.jsxs)("div",{className:"flex flex-col h-screen w-full overflow-hidden bg-canvas text-text-primary",children:[(0,r.jsxs)("div",{className:"flex flex-row flex-1 w-full overflow-hidden relative",children:[(0,r.jsxs)("div",{className:"w-16 flex flex-col items-center py-6 z-50 glass-header border-r border-border-subtle bg-surface/80",children:[(0,r.jsx)("div",{className:"mb-8",children:(0,r.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center shadow-lg transform hover:scale-105 transition-transform cursor-pointer",children:(0,r.jsx)("span",{className:"font-bold text-white text-lg",children:"M"})})}),(0,r.jsxs)(el,{delayDuration:0,children:[(0,r.jsxs)("div",{className:"flex-1 w-full flex flex-col items-center gap-4",children:[(0,r.jsx)(eG,{icon:C,path:"/dashboard",label:"Dashboard"}),(0,r.jsx)(eG,{icon:k,path:"/overview",label:"Overview"}),(0,r.jsx)(eG,{icon:E,path:"/issues",label:"Detailed"}),(0,r.jsx)(eG,{icon:_,path:"/components",label:"Components"})]}),(0,r.jsxs)("div",{className:"w-full flex flex-col items-center gap-4 pb-4",children:[(0,r.jsx)("div",{className:"w-8 h-1 bg-border-subtle rounded-full opacity-20"}),(0,r.jsx)(eG,{icon:S,path:"/settings",label:"Settings"}),(0,r.jsx)("div",{className:"w-8 h-8 rounded-full bg-surface-highlight border border-border-subtle flex items-center justify-center overflow-hidden hover:border-accent transition-colors cursor-pointer",children:(0,r.jsxs)(eU,{className:"h-7 w-7",children:[(0,r.jsx)(eY,{src:""}),(0,r.jsx)(eq,{children:(0,r.jsx)(R,{size:14,className:"text-text-muted hover:text-text-primary"})})]})})]})]})]}),(0,r.jsxs)("div",{className:"flex-1 flex flex-col h-full overflow-hidden relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_right,#80808012_1px,transparent_1px),linear-gradient(to_bottom,#80808012_1px,transparent_1px)] bg-[size:24px_24px] pointer-events-none"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-tr from-canvas via-transparent to-transparent pointer-events-none"}),(0,r.jsxs)("div",{className:"relative z-0 flex-1 w-full overflow-hidden",children:[e,(0,r.jsx)(A,{})]}),(0,r.jsx)(N,{isOpen:i,onClose:l})]})]}),(0,r.jsx)(m,{})]})}e.s(["default",()=>eK],54282)}]);
|