@ai-development-environment/server 0.0.70 → 0.0.71

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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/standalone/.next/BUILD_ID +1 -1
  3. package/standalone/.next/build-manifest.json +3 -3
  4. package/standalone/.next/prerender-manifest.json +3 -3
  5. package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
  6. package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
  7. package/standalone/.next/server/app/_global-error.html +1 -1
  8. package/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/standalone/.next/server/app/_not-found.html +1 -1
  15. package/standalone/.next/server/app/_not-found.rsc +1 -1
  16. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  17. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  18. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  19. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  20. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  21. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  22. package/standalone/.next/server/chunks/_01qtprx._.js +1 -1
  23. package/standalone/.next/server/chunks/_0l44maw._.js +2 -2
  24. package/standalone/.next/server/chunks/_0zi1rzc._.js +1 -1
  25. package/standalone/.next/server/chunks/_1czfvql._.js +2 -2
  26. package/standalone/.next/server/chunks/_1gtcfbz._.js +1 -1
  27. package/standalone/.next/server/chunks/_1kemdff._.js +2 -2
  28. package/standalone/.next/server/chunks/_21blfei._.js +2 -2
  29. package/standalone/.next/server/chunks/ssr/_1zd970o._.js +1 -1
  30. package/standalone/.next/server/chunks/ssr/src_components_github_pull-requests-page_tsx_1il3ga-._.js +3 -3
  31. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  32. package/standalone/.next/server/pages/404.html +1 -1
  33. package/standalone/.next/server/pages/500.html +1 -1
  34. package/standalone/.next/server/server-reference-manifest.js +1 -1
  35. package/standalone/.next/server/server-reference-manifest.json +1 -1
  36. package/standalone/.next/static/chunks/{19dkpj43f8v40.js → 0y408zh4mof6_.js} +7 -7
  37. package/standalone/.next/static/chunks/{3_rbnqkar9gd5.js → 3eqo76t2qsipq.js} +1 -1
  38. package/standalone/package.json +6 -5
  39. /package/standalone/.next/static/{YhSq1ZgYFJAvNO3aIVj__ → BzIPghFM13wueh4Fuo7y-}/_buildManifest.js +0 -0
  40. /package/standalone/.next/static/{YhSq1ZgYFJAvNO3aIVj__ → BzIPghFM13wueh4Fuo7y-}/_clientMiddlewareManifest.js +0 -0
  41. /package/standalone/.next/static/{YhSq1ZgYFJAvNO3aIVj__ → BzIPghFM13wueh4Fuo7y-}/_ssgManifest.js +0 -0
@@ -24,6 +24,6 @@ module.exports=[46524,a=>{"use strict";var b=a.i(187924),c=a.i(400187),d=a.i(368
24
24
  pullRequests { id number title url repositoryNameWithOwner }
25
25
  threads { ${C} }
26
26
  }
27
- }`);u(a.githubReviewThreads),K(null)}catch(a){K(a instanceof Error?a.message:String(a))}finally{I(!1)}},[]);(0,i.useEffect)(()=>{let a=window.setTimeout(()=>void V(),0);return()=>window.clearTimeout(a)},[V]),(0,i.useEffect)(()=>{let a=window.localStorage.getItem(A);if("cards"!==a&&"table"!==a)return;let b=window.setTimeout(()=>U(a),0);return()=>window.clearTimeout(b)},[]),(0,i.useEffect)(()=>{if(!o?.tokenConfigured||r||H)return;let a=window.setTimeout(()=>void W(),0);return()=>window.clearTimeout(a)},[W,H,r,o?.tokenConfigured]),(0,i.useEffect)(()=>{let a=()=>M(new URLSearchParams(window.location.search).get("pullRequest")??"");return window.addEventListener("popstate",a),()=>window.removeEventListener("popstate",a)},[]),(0,i.useEffect)(()=>{!r||!L||r.pullRequests.some(a=>(0,j.pullRequestKey)(a)===L)||D(null,!1)},[r,L]);let X=L&&r?.pullRequests.some(a=>(0,j.pullRequestKey)(a)===L)?L:"",Y=(0,i.useMemo)(()=>[{value:B,label:c("allPullRequests")},...r?.pullRequests.map(a=>({value:(0,j.pullRequestKey)(a),label:`#${a.number} ${a.title}`,description:a.repositoryNameWithOwner,keywords:`${a.repositoryNameWithOwner} ${a.number} ${a.title}`}))??[]],[r?.pullRequests,c]),Z=(0,i.useMemo)(()=>{if(!r||!N&&!P)return[];let a=r.viewerLogin.toLowerCase();return r.threads.filter(b=>(!X||(0,j.pullRequestKey)(b.pullRequest)===X)&&(b.rootComment.author?.login.toLowerCase()===a?!!N:!!P)&&(!R||!b.isResolved))},[N,P,r,R,X]),$=(a,b)=>{u(c=>c?{...c,threads:c.threads.map(c=>c.id===a?{...c,replies:[...c.replies,b]}:c)}:c)},_=a=>{u(b=>b?{...b,threads:b.threads.map(b=>b.id===a.id?{...b,...a}:b)}:b)};return(0,b.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:c("title")}),(0,b.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:c("description")})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsxs)(m.Button,{disabled:!o?.tokenConfigured||H,onClick:()=>void W(),variant:"outline",children:[(0,b.jsx)(g.RefreshCw,{className:H?"animate-spin":void 0}),c("refresh")]}),(0,b.jsxs)(v.ToggleGroup,{"aria-label":c("layout"),onValueChange:a=>{("cards"===a||"table"===a)&&(U(a),window.localStorage.setItem(A,a))},size:"sm",spacing:0,type:"single",value:T,variant:"outline",children:[(0,b.jsx)(v.ToggleGroupItem,{"aria-label":c("cards"),value:"cards",children:(0,b.jsx)(d.Grid2X2,{})}),(0,b.jsx)(v.ToggleGroupItem,{"aria-label":c("table"),value:"table",children:(0,b.jsx)(e.List,{})})]})]})]}),J&&(0,b.jsx)(l.Alert,{variant:"destructive",children:(0,b.jsx)(l.AlertDescription,{children:J})}),y?(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsx)(t.Spinner,{})," ",c("loadingConfiguration")]}):o?.tokenConfigured?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n.Card,{className:"py-0",children:(0,b.jsxs)(n.CardContent,{className:"flex flex-wrap items-center gap-5 py-4",children:[(0,b.jsx)("div",{className:"min-w-64 flex-1",children:(0,b.jsx)(s.SearchableSelect,{ariaLabel:c("allPullRequests"),emptyMessage:c("noPullRequestMatches"),onValueChange:a=>{let b=a===B?"":a;M(b),D(b||null)},options:Y,placeholder:c("allPullRequests"),searchPlaceholder:c("searchPullRequests"),value:X||B})}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-5",children:[(0,b.jsx)(F,{checked:N,id:"comments-current-user",label:c("currentUser"),onCheckedChange:O}),(0,b.jsx)(F,{checked:P,id:"comments-other-users",label:c("otherUsers"),onCheckedChange:Q}),(0,b.jsx)(F,{checked:R,id:"comments-unresolved",label:c("unresolved"),onCheckedChange:S})]})]})}),r?.truncated&&(0,b.jsx)(l.Alert,{children:(0,b.jsx)(l.AlertDescription,{children:c("truncated")})}),H&&!r?(0,b.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,b.jsx)(t.Spinner,{})," ",c("loading")]}):"cards"===T?0===Z.length?(0,b.jsx)(E,{}):(0,b.jsx)("div",{className:"space-y-5",children:Z.map(a=>(0,b.jsx)(k.ReviewThreadCard,{onReplyAdded:$,onStateChanged:_,thread:a},a.id))}):(0,b.jsx)(G,{threads:Z})]}):(0,b.jsxs)(q.Empty,{className:"border py-12",children:[(0,b.jsxs)(q.EmptyHeader,{children:[(0,b.jsx)(q.EmptyMedia,{variant:"icon",children:(0,b.jsx)(f.MessageSquareText,{})}),(0,b.jsx)(q.EmptyTitle,{children:c("credentialsRequired")}),(0,b.jsx)(q.EmptyDescription,{children:c("credentialsDescription")})]}),(0,b.jsx)(m.Button,{asChild:!0,className:"mt-4",children:(0,b.jsx)(w.Link,{href:"/settings",children:c("openSettings")})})]})]})}])}];
27
+ }`);u(a.githubReviewThreads),K(null)}catch(a){K(a instanceof Error?a.message:String(a))}finally{I(!1)}},[]);(0,i.useEffect)(()=>{let a=window.setTimeout(()=>void V(),0);return()=>window.clearTimeout(a)},[V]),(0,i.useEffect)(()=>{let a=window.localStorage.getItem(A);if("cards"!==a&&"table"!==a)return;let b=window.setTimeout(()=>U(a),0);return()=>window.clearTimeout(b)},[]),(0,i.useEffect)(()=>{if(!o?.tokenConfigured||r||H||J)return;let a=window.setTimeout(()=>void W(),0);return()=>window.clearTimeout(a)},[J,W,H,r,o?.tokenConfigured]),(0,i.useEffect)(()=>{let a=()=>M(new URLSearchParams(window.location.search).get("pullRequest")??"");return window.addEventListener("popstate",a),()=>window.removeEventListener("popstate",a)},[]),(0,i.useEffect)(()=>{!r||!L||r.pullRequests.some(a=>(0,j.pullRequestKey)(a)===L)||D(null,!1)},[r,L]);let X=L&&r?.pullRequests.some(a=>(0,j.pullRequestKey)(a)===L)?L:"",Y=(0,i.useMemo)(()=>[{value:B,label:c("allPullRequests")},...r?.pullRequests.map(a=>({value:(0,j.pullRequestKey)(a),label:`#${a.number} ${a.title}`,description:a.repositoryNameWithOwner,keywords:`${a.repositoryNameWithOwner} ${a.number} ${a.title}`}))??[]],[r?.pullRequests,c]),Z=(0,i.useMemo)(()=>{if(!r||!N&&!P)return[];let a=r.viewerLogin.toLowerCase();return r.threads.filter(b=>(!X||(0,j.pullRequestKey)(b.pullRequest)===X)&&(b.rootComment.author?.login.toLowerCase()===a?!!N:!!P)&&(!R||!b.isResolved))},[N,P,r,R,X]),$=(a,b)=>{u(c=>c?{...c,threads:c.threads.map(c=>c.id===a?{...c,replies:[...c.replies,b]}:c)}:c)},_=a=>{u(b=>b?{...b,threads:b.threads.map(b=>b.id===a.id?{...b,...a}:b)}:b)};return(0,b.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:c("title")}),(0,b.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:c("description")})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsxs)(m.Button,{disabled:!o?.tokenConfigured||H,onClick:()=>void W(),variant:"outline",children:[(0,b.jsx)(g.RefreshCw,{className:H?"animate-spin":void 0}),c("refresh")]}),(0,b.jsxs)(v.ToggleGroup,{"aria-label":c("layout"),onValueChange:a=>{("cards"===a||"table"===a)&&(U(a),window.localStorage.setItem(A,a))},size:"sm",spacing:0,type:"single",value:T,variant:"outline",children:[(0,b.jsx)(v.ToggleGroupItem,{"aria-label":c("cards"),value:"cards",children:(0,b.jsx)(d.Grid2X2,{})}),(0,b.jsx)(v.ToggleGroupItem,{"aria-label":c("table"),value:"table",children:(0,b.jsx)(e.List,{})})]})]})]}),J&&(0,b.jsx)(l.Alert,{variant:"destructive",children:(0,b.jsx)(l.AlertDescription,{children:J})}),y?(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsx)(t.Spinner,{})," ",c("loadingConfiguration")]}):o?.tokenConfigured?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(n.Card,{className:"py-0",children:(0,b.jsxs)(n.CardContent,{className:"flex flex-wrap items-center gap-5 py-4",children:[(0,b.jsx)("div",{className:"min-w-64 flex-1",children:(0,b.jsx)(s.SearchableSelect,{ariaLabel:c("allPullRequests"),emptyMessage:c("noPullRequestMatches"),onValueChange:a=>{let b=a===B?"":a;M(b),D(b||null)},options:Y,placeholder:c("allPullRequests"),searchPlaceholder:c("searchPullRequests"),value:X||B})}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-5",children:[(0,b.jsx)(F,{checked:N,id:"comments-current-user",label:c("currentUser"),onCheckedChange:O}),(0,b.jsx)(F,{checked:P,id:"comments-other-users",label:c("otherUsers"),onCheckedChange:Q}),(0,b.jsx)(F,{checked:R,id:"comments-unresolved",label:c("unresolved"),onCheckedChange:S})]})]})}),r?.truncated&&(0,b.jsx)(l.Alert,{children:(0,b.jsx)(l.AlertDescription,{children:c("truncated")})}),H&&!r?(0,b.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,b.jsx)(t.Spinner,{})," ",c("loading")]}):"cards"===T?0===Z.length?(0,b.jsx)(E,{}):(0,b.jsx)("div",{className:"space-y-5",children:Z.map(a=>(0,b.jsx)(k.ReviewThreadCard,{onReplyAdded:$,onStateChanged:_,thread:a},a.id))}):(0,b.jsx)(G,{threads:Z})]}):(0,b.jsxs)(q.Empty,{className:"border py-12",children:[(0,b.jsxs)(q.EmptyHeader,{children:[(0,b.jsx)(q.EmptyMedia,{variant:"icon",children:(0,b.jsx)(f.MessageSquareText,{})}),(0,b.jsx)(q.EmptyTitle,{children:c("credentialsRequired")}),(0,b.jsx)(q.EmptyDescription,{children:c("credentialsDescription")})]}),(0,b.jsx)(m.Button,{asChild:!0,className:"mt-4",children:(0,b.jsx)(w.Link,{href:"/settings",children:c("openSettings")})})]})]})}])}];
28
28
 
29
29
  //# sourceMappingURL=_1zd970o._.js.map
@@ -16,10 +16,10 @@ module.exports=[998907,a=>{"use strict";var b=a.i(187924),c=a.i(168370),d=a.i(16
16
16
  updateGitHubRepository(input: $input) { ${T} }
17
17
  }`,{input:{id:a.id,jiraKeyRegex:i||null}});f(b.updateGitHubRepository),e(null)}catch(a){e(a instanceof Error?a.message:String(a))}finally{d(!1)}},m=async()=>{d(!0);try{let b=await (0,P.controlPlaneRequest)(`mutation RemoveGitHubRepository($id: ID!) {
18
18
  removeGitHubRepository(id: $id) { ${T} }
19
- }`,{id:a.id});f(b.removeGitHubRepository),e(null)}catch(a){e(a instanceof Error?a.message:String(a))}finally{d(!1)}};return(0,b.jsxs)(H.Item,{className:"block space-y-3 p-3",variant:"outline",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,b.jsx)("a",{className:"min-w-0 truncate font-medium text-primary hover:underline",href:a.url,rel:"noreferrer",target:"_blank",children:a.nameWithOwner}),(0,b.jsx)(t.ConfirmationDialog,{actionLabel:g("removeRepository"),cancelLabel:h("cancel"),description:g("confirmRemoveRepositoryDescription"),onConfirm:m,title:g("confirmRemoveRepository"),trigger:(0,b.jsxs)(A.Button,{disabled:c,size:"icon-sm",variant:"ghost",children:[(0,b.jsx)(o.Trash2,{}),(0,b.jsx)("span",{className:"sr-only",children:g("removeRepository")})]})})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)(I.Label,{className:"mb-1.5 block text-xs",htmlFor:`github-regex-${a.id}`,children:g("jiraKeyRegex")}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(G.Input,{id:`github-regex-${a.id}`,onChange:a=>j(a.target.value),value:i}),(0,b.jsxs)(A.Button,{disabled:c,onClick:()=>void k(),size:"icon",children:[c?(0,b.jsx)(J.Spinner,{}):(0,b.jsx)(l.Save,{}),(0,b.jsx)("span",{className:"sr-only",children:g("saveRegex")})]})]}),(0,b.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:g("jiraKeyRegexOverrideHelp")})]})]})}a.s(["PullRequestsPage",0,function(){let a=(0,q.useTranslations)("pullRequests"),c=(0,r.useSearchParams)(),d=(0,p.useLocale)(),e=c.get("issue"),[f,h]=(0,s.useState)(null),[i,l]=(0,s.useState)([]),[m,o]=(0,s.useState)("mine"),[t,u]=(0,s.useState)("OPEN"),[v,w]=(0,s.useState)(""),[z,B]=(0,s.useState)({}),[C,D]=(0,s.useState)({}),[E,G]=(0,s.useState)({}),[H,I]=(0,s.useState)({}),[M,Q]=(0,s.useState)(!0),[R,S]=(0,s.useState)(null),[W,Y]=(0,s.useState)(!1),$=(0,s.useRef)(null),_=(0,s.useRef)({}),aa=(0,s.useRef)({}),ab=(0,s.useCallback)(async()=>{try{let a=await (0,P.controlPlaneRequest)(`query GitHubPullRequestConfiguration {
19
+ }`,{id:a.id});f(b.removeGitHubRepository),e(null)}catch(a){e(a instanceof Error?a.message:String(a))}finally{d(!1)}};return(0,b.jsxs)(H.Item,{className:"block space-y-3 p-3",variant:"outline",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,b.jsx)("a",{className:"min-w-0 truncate font-medium text-primary hover:underline",href:a.url,rel:"noreferrer",target:"_blank",children:a.nameWithOwner}),(0,b.jsx)(t.ConfirmationDialog,{actionLabel:g("removeRepository"),cancelLabel:h("cancel"),description:g("confirmRemoveRepositoryDescription"),onConfirm:m,title:g("confirmRemoveRepository"),trigger:(0,b.jsxs)(A.Button,{disabled:c,size:"icon-sm",variant:"ghost",children:[(0,b.jsx)(o.Trash2,{}),(0,b.jsx)("span",{className:"sr-only",children:g("removeRepository")})]})})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)(I.Label,{className:"mb-1.5 block text-xs",htmlFor:`github-regex-${a.id}`,children:g("jiraKeyRegex")}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(G.Input,{id:`github-regex-${a.id}`,onChange:a=>j(a.target.value),value:i}),(0,b.jsxs)(A.Button,{disabled:c,onClick:()=>void k(),size:"icon",children:[c?(0,b.jsx)(J.Spinner,{}):(0,b.jsx)(l.Save,{}),(0,b.jsx)("span",{className:"sr-only",children:g("saveRegex")})]})]}),(0,b.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:g("jiraKeyRegexOverrideHelp")})]})]})}a.s(["PullRequestsPage",0,function(){let a=(0,q.useTranslations)("pullRequests"),c=(0,r.useSearchParams)(),d=(0,p.useLocale)(),e=c.get("issue"),[f,h]=(0,s.useState)(null),[i,l]=(0,s.useState)([]),[m,o]=(0,s.useState)("mine"),[t,u]=(0,s.useState)("OPEN"),[v,w]=(0,s.useState)(""),[z,B]=(0,s.useState)({}),[C,D]=(0,s.useState)({}),[E,G]=(0,s.useState)({}),[H,I]=(0,s.useState)({}),[M,Q]=(0,s.useState)(!0),[R,S]=(0,s.useState)(null),[W,Y]=(0,s.useState)({}),[$,_]=(0,s.useState)(!1),aa=(0,s.useRef)(null),ab=(0,s.useRef)({}),ac=(0,s.useRef)({}),ad=(0,s.useCallback)(async()=>{try{let a=await (0,P.controlPlaneRequest)(`query GitHubPullRequestConfiguration {
20
20
  githubSettings { tokenConfigured defaultJiraKeyRegex updatedAt }
21
21
  githubRepositories { ${T} }
22
- }`);h(a.githubSettings),l(a.githubRepositories),w(b=>a.githubRepositories.some(a=>a.id===b)?b:a.githubRepositories[0]?.id??""),S(null)}catch(a){S(a instanceof Error?a.message:String(a))}finally{Q(!1)}},[]);(0,s.useEffect)(()=>{let a=window.setTimeout(()=>void ab(),0);return()=>window.clearTimeout(a)},[ab]);let ac=(0,s.useCallback)(async(a,b,c,d={append:!1})=>{let e=U(a,b,c);if("repositories"===a&&!b)return;let f=_.current[e]??0,g=d.append?f:f+1;if(d.append){if(!d.cursor||aa.current[e]===g)return;aa.current[e]=g,G(a=>({...a,[e]:!0}))}else _.current[e]=g,delete aa.current[e],D(a=>({...a,[e]:!0})),G(a=>({...a,[e]:!1}));I(a=>({...a,[e]:null}));try{let f="repositories"===a?b:null,h=await (0,P.controlPlaneRequest)(`query GitHubPullRequests(
22
+ }`);h(a.githubSettings),l(a.githubRepositories),w(b=>a.githubRepositories.some(a=>a.id===b)?b:a.githubRepositories[0]?.id??""),S(null)}catch(a){S(a instanceof Error?a.message:String(a))}finally{Q(!1)}},[]);(0,s.useEffect)(()=>{let a=window.setTimeout(()=>void ad(),0);return()=>window.clearTimeout(a)},[ad]);let ae=(0,s.useCallback)(async(a,b,c,d={append:!1})=>{let e=U(a,b,c);if("repositories"===a&&!b)return;let f=ab.current[e]??0,g=d.append?f:f+1;if(d.append){if(!d.cursor||ac.current[e]===g)return;ac.current[e]=g,G(a=>({...a,[e]:!0}))}else ab.current[e]=g,delete ac.current[e],D(a=>({...a,[e]:!0})),G(a=>({...a,[e]:!1}));I(a=>({...a,[e]:null})),d.append||Y(a=>({...a,[e]:null}));try{let f="repositories"===a?b:null,h=await (0,P.controlPlaneRequest)(`query GitHubPullRequests(
23
23
  $scope: GitHubPullRequestScope!
24
24
  $repositoryId: ID
25
25
  $state: GitHubPullRequestStateFilter!
@@ -39,6 +39,6 @@ module.exports=[998907,a=>{"use strict";var b=a.i(187924),c=a.i(168370),d=a.i(16
39
39
  hasNextPage
40
40
  endCursor
41
41
  }
42
- }`,{scope:f?"REPOSITORY":"review"===a?"REVIEW_REQUESTED":"MINE",repositoryId:f,state:c,first:25,after:d.cursor??null});if(_.current[e]!==g)return;B(a=>({...a,[e]:d.append&&a[e]?{...h.githubPullRequests,items:[...a[e].items,...h.githubPullRequests.items.filter(b=>!a[e].items.some(a=>a.id===b.id))]}:h.githubPullRequests})),S(null)}catch(b){if(_.current[e]!==g)return;let a=b instanceof Error?b.message:String(b);d.append?I(b=>({...b,[e]:a})):S(a)}finally{d.append?aa.current[e]===g&&(delete aa.current[e],G(a=>({...a,[e]:!1}))):_.current[e]===g&&D(a=>({...a,[e]:!1}))}},[]),ad=U(m,v,t);(0,s.useEffect)(()=>{if(f?.tokenConfigured&&("repositories"!==m||v)&&!z[ad]&&!C[ad]){let a=window.setTimeout(()=>void ac(m,v,t),0);return()=>window.clearTimeout(a)}},[m,ac,C,ad,z,t,v,f?.tokenConfigured]),(0,s.useEffect)(()=>{if(!i.some(a=>a.id===v)){let a=window.setTimeout(()=>w(i[0]?.id??""),0);return()=>window.clearTimeout(a)}},[i,v]);let ae=z[ad],af=!!C[ad],ag=!!E[ad],ah=H[ad]??null;return(0,s.useEffect)(()=>{if(!f?.tokenConfigured||!ae?.hasNextPage||!ae.endCursor||af||ag||ah)return;let a=$.current;if(!a)return;let b=new IntersectionObserver(a=>{a.some(a=>a.isIntersecting)&&ac(m,v,t,{append:!0,cursor:ae.endCursor})},{rootMargin:"400px 0px"});return b.observe(a),()=>b.disconnect()},[m,ac,af,ag,ae?.endCursor,ae?.hasNextPage,ah,t,v,f?.tokenConfigured]),(0,b.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:a("title")}),(0,b.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:a("description")})]}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsxs)(A.Button,{disabled:!f?.tokenConfigured||af,onClick:()=>void ac(m,v,t),variant:"outline",children:[(0,b.jsx)(k.RefreshCw,{className:af?"animate-spin":void 0}),a("refresh")]}),(0,b.jsxs)(A.Button,{onClick:()=>Y(!0),children:[(0,b.jsx)(n.Settings2,{}),a("manage")]})]})]}),R&&(0,b.jsx)(y.Alert,{variant:"destructive",children:(0,b.jsx)(y.AlertDescription,{children:R})}),M?(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsx)(J.Spinner,{}),a("loading")]}):f?.tokenConfigured?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"overflow-x-auto pb-1",children:(0,b.jsx)(N.Tabs,{onValueChange:a=>o(a),value:m,children:(0,b.jsxs)(N.TabsList,{"aria-label":a("tabsLabel"),children:[(0,b.jsx)(N.TabsTrigger,{value:"mine",children:a("mine")}),(0,b.jsx)(N.TabsTrigger,{value:"review",children:a("reviewRequests")}),(0,b.jsx)(N.TabsTrigger,{value:"repositories",children:a("repositories")})]})})}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,b.jsxs)(L.Select,{onValueChange:a=>u(a),value:t,children:[(0,b.jsx)(L.SelectTrigger,{"aria-label":a("stateFilter"),className:"min-w-36",children:(0,b.jsx)(L.SelectValue,{})}),(0,b.jsx)(L.SelectContent,{align:"start",children:["ALL","OPEN","CLOSED","MERGED"].map(c=>(0,b.jsx)(L.SelectItem,{value:c,children:a(`pullRequestStates.${c}`)},c))})]}),"repositories"===m&&i.length>0&&(0,b.jsx)("div",{className:"min-w-64 max-w-lg flex-1",children:(0,b.jsx)(K.SearchableSelect,{ariaLabel:a("repositoryFilter"),emptyMessage:a("noRepositoryMatches"),onValueChange:w,options:i.map(a=>({value:a.id,label:a.nameWithOwner,keywords:`${a.owner} ${a.name}`})),placeholder:a("selectRepository"),searchPlaceholder:a("searchRepositories"),value:v})})]}),ae?.truncated&&(0,b.jsx)(y.Alert,{className:"border-amber-500/30 bg-amber-500/10 text-amber-800 dark:text-amber-300",children:(0,b.jsx)(y.AlertDescription,{className:"text-current",children:a("truncated")})}),"repositories"===m&&0===i.length?(0,b.jsxs)(F.Empty,{className:"border py-12",children:[(0,b.jsxs)(F.EmptyHeader,{children:[(0,b.jsx)(F.EmptyTitle,{children:a("noManagedRepositories")}),(0,b.jsx)(F.EmptyDescription,{children:a("manageDescription")})]}),(0,b.jsxs)(A.Button,{className:"mt-4",onClick:()=>Y(!0),children:[(0,b.jsx)(j.Plus,{})," ",a("addRepository")]})]}):af&&!ae?(0,b.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,b.jsx)(J.Spinner,{}),a("loadingPullRequests")]}):ae?.items.length===0?(0,b.jsx)(F.Empty,{className:"border py-12",children:(0,b.jsxs)(F.EmptyHeader,{children:[(0,b.jsx)(F.EmptyTitle,{children:a("empty")}),(0,b.jsx)(F.EmptyDescription,{children:a("emptyDescription")})]})}):ae?(0,b.jsx)(X,{items:ae.items,locale:d,onMerged:()=>ac(m,v,t)}):null,ae&&ae.items.length>0&&ah?(0,b.jsx)(y.Alert,{variant:"destructive",children:(0,b.jsxs)(y.AlertDescription,{className:"flex items-center justify-between gap-3",children:[(0,b.jsx)("span",{children:ah}),(0,b.jsxs)(A.Button,{disabled:ag||!ae.endCursor,onClick:()=>void ac(m,v,t,{append:!0,cursor:ae.endCursor}),size:"sm",variant:"outline",children:[(0,b.jsx)(k.RefreshCw,{})," ",a("retryLoad")]})]})}):ae?.hasNextPage&&ae.items.length>0?(0,b.jsx)("div",{className:"flex min-h-10 items-center justify-center gap-2 text-sm text-muted-foreground",ref:$,role:"status",children:ag&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(J.Spinner,{})," ",a("loadingMore")]})}):null]}):(0,b.jsxs)(F.Empty,{className:"border py-12",children:[(0,b.jsxs)(F.EmptyHeader,{children:[(0,b.jsx)(F.EmptyMedia,{variant:"icon",children:(0,b.jsx)(g.GitPullRequest,{})}),(0,b.jsx)(F.EmptyTitle,{children:a("credentialsRequired")}),(0,b.jsx)(F.EmptyDescription,{children:a("credentialsRequiredDescription")})]}),(0,b.jsx)(A.Button,{asChild:!0,className:"mt-4",children:(0,b.jsx)(O.Link,{href:"/settings",children:a("openSettings")})})]}),(0,b.jsx)(Z,{onRepositoriesChanged:a=>{l(a),B({}),w(b=>a.some(a=>a.id===b)?b:a[0]?.id??"")},onSettingsChanged:a=>{h(a),B({})},open:W,repositories:i,settings:f,setOpen:Y,tokenConfigured:!!f?.tokenConfigured},f?.updatedAt??"loading"),(0,b.jsx)(x.JiraTicketDrawer,{issueKey:e,onClose:()=>V(null)})]})}],998907)}];
42
+ }`,{scope:f?"REPOSITORY":"review"===a?"REVIEW_REQUESTED":"MINE",repositoryId:f,state:c,first:25,after:d.cursor??null});if(ab.current[e]!==g)return;B(a=>({...a,[e]:d.append&&a[e]?{...h.githubPullRequests,items:[...a[e].items,...h.githubPullRequests.items.filter(b=>!a[e].items.some(a=>a.id===b.id))]}:h.githubPullRequests})),Y(a=>({...a,[e]:null}))}catch(b){if(ab.current[e]!==g)return;let a=b instanceof Error?b.message:String(b);d.append?I(b=>({...b,[e]:a})):Y(b=>({...b,[e]:a}))}finally{d.append?ac.current[e]===g&&(delete ac.current[e],G(a=>({...a,[e]:!1}))):ab.current[e]===g&&D(a=>({...a,[e]:!1}))}},[]),af=U(m,v,t);(0,s.useEffect)(()=>{if(f?.tokenConfigured&&("repositories"!==m||v)&&!z[af]&&!C[af]&&!W[af]){let a=window.setTimeout(()=>void ae(m,v,t),0);return()=>window.clearTimeout(a)}},[m,ae,C,af,W,z,t,v,f?.tokenConfigured]),(0,s.useEffect)(()=>{if(!i.some(a=>a.id===v)){let a=window.setTimeout(()=>w(i[0]?.id??""),0);return()=>window.clearTimeout(a)}},[i,v]);let ag=z[af],ah=!!C[af],ai=!!E[af],aj=H[af]??null,ak=R??W[af]??null;return(0,s.useEffect)(()=>{if(!f?.tokenConfigured||!ag?.hasNextPage||!ag.endCursor||ah||ai||aj)return;let a=aa.current;if(!a)return;let b=new IntersectionObserver(a=>{a.some(a=>a.isIntersecting)&&ae(m,v,t,{append:!0,cursor:ag.endCursor})},{rootMargin:"400px 0px"});return b.observe(a),()=>b.disconnect()},[m,ae,ah,ai,ag?.endCursor,ag?.hasNextPage,aj,t,v,f?.tokenConfigured]),(0,b.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:a("title")}),(0,b.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:a("description")})]}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsxs)(A.Button,{disabled:!f?.tokenConfigured||ah,onClick:()=>void ae(m,v,t),variant:"outline",children:[(0,b.jsx)(k.RefreshCw,{className:ah?"animate-spin":void 0}),a("refresh")]}),(0,b.jsxs)(A.Button,{onClick:()=>_(!0),children:[(0,b.jsx)(n.Settings2,{}),a("manage")]})]})]}),ak&&(0,b.jsx)(y.Alert,{variant:"destructive",children:(0,b.jsx)(y.AlertDescription,{children:ak})}),M?(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,b.jsx)(J.Spinner,{}),a("loading")]}):f?.tokenConfigured?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"overflow-x-auto pb-1",children:(0,b.jsx)(N.Tabs,{onValueChange:a=>o(a),value:m,children:(0,b.jsxs)(N.TabsList,{"aria-label":a("tabsLabel"),children:[(0,b.jsx)(N.TabsTrigger,{value:"mine",children:a("mine")}),(0,b.jsx)(N.TabsTrigger,{value:"review",children:a("reviewRequests")}),(0,b.jsx)(N.TabsTrigger,{value:"repositories",children:a("repositories")})]})})}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,b.jsxs)(L.Select,{onValueChange:a=>u(a),value:t,children:[(0,b.jsx)(L.SelectTrigger,{"aria-label":a("stateFilter"),className:"min-w-36",children:(0,b.jsx)(L.SelectValue,{})}),(0,b.jsx)(L.SelectContent,{align:"start",children:["ALL","OPEN","CLOSED","MERGED"].map(c=>(0,b.jsx)(L.SelectItem,{value:c,children:a(`pullRequestStates.${c}`)},c))})]}),"repositories"===m&&i.length>0&&(0,b.jsx)("div",{className:"min-w-64 max-w-lg flex-1",children:(0,b.jsx)(K.SearchableSelect,{ariaLabel:a("repositoryFilter"),emptyMessage:a("noRepositoryMatches"),onValueChange:w,options:i.map(a=>({value:a.id,label:a.nameWithOwner,keywords:`${a.owner} ${a.name}`})),placeholder:a("selectRepository"),searchPlaceholder:a("searchRepositories"),value:v})})]}),ag?.truncated&&(0,b.jsx)(y.Alert,{className:"border-amber-500/30 bg-amber-500/10 text-amber-800 dark:text-amber-300",children:(0,b.jsx)(y.AlertDescription,{className:"text-current",children:a("truncated")})}),"repositories"===m&&0===i.length?(0,b.jsxs)(F.Empty,{className:"border py-12",children:[(0,b.jsxs)(F.EmptyHeader,{children:[(0,b.jsx)(F.EmptyTitle,{children:a("noManagedRepositories")}),(0,b.jsx)(F.EmptyDescription,{children:a("manageDescription")})]}),(0,b.jsxs)(A.Button,{className:"mt-4",onClick:()=>_(!0),children:[(0,b.jsx)(j.Plus,{})," ",a("addRepository")]})]}):ah&&!ag?(0,b.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,b.jsx)(J.Spinner,{}),a("loadingPullRequests")]}):ag?.items.length===0?(0,b.jsx)(F.Empty,{className:"border py-12",children:(0,b.jsxs)(F.EmptyHeader,{children:[(0,b.jsx)(F.EmptyTitle,{children:a("empty")}),(0,b.jsx)(F.EmptyDescription,{children:a("emptyDescription")})]})}):ag?(0,b.jsx)(X,{items:ag.items,locale:d,onMerged:()=>ae(m,v,t)}):null,ag&&ag.items.length>0&&aj?(0,b.jsx)(y.Alert,{variant:"destructive",children:(0,b.jsxs)(y.AlertDescription,{className:"flex items-center justify-between gap-3",children:[(0,b.jsx)("span",{children:aj}),(0,b.jsxs)(A.Button,{disabled:ai||!ag.endCursor,onClick:()=>void ae(m,v,t,{append:!0,cursor:ag.endCursor}),size:"sm",variant:"outline",children:[(0,b.jsx)(k.RefreshCw,{})," ",a("retryLoad")]})]})}):ag?.hasNextPage&&ag.items.length>0?(0,b.jsx)("div",{className:"flex min-h-10 items-center justify-center gap-2 text-sm text-muted-foreground",ref:aa,role:"status",children:ai&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(J.Spinner,{})," ",a("loadingMore")]})}):null]}):(0,b.jsxs)(F.Empty,{className:"border py-12",children:[(0,b.jsxs)(F.EmptyHeader,{children:[(0,b.jsx)(F.EmptyMedia,{variant:"icon",children:(0,b.jsx)(g.GitPullRequest,{})}),(0,b.jsx)(F.EmptyTitle,{children:a("credentialsRequired")}),(0,b.jsx)(F.EmptyDescription,{children:a("credentialsRequiredDescription")})]}),(0,b.jsx)(A.Button,{asChild:!0,className:"mt-4",children:(0,b.jsx)(O.Link,{href:"/settings",children:a("openSettings")})})]}),(0,b.jsx)(Z,{onRepositoriesChanged:a=>{l(a),B({}),Y({}),w(b=>a.some(a=>a.id===b)?b:a[0]?.id??"")},onSettingsChanged:a=>{h(a),B({}),Y({})},open:$,repositories:i,settings:f,setOpen:_,tokenConfigured:!!f?.tokenConfigured},f?.updatedAt??"loading"),(0,b.jsx)(x.JiraTicketDrawer,{issueKey:e,onClose:()=>V(null)})]})}],998907)}];
43
43
 
44
44
  //# sourceMappingURL=src_components_github_pull-requests-page_tsx_1il3ga-._.js.map
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/0cz1d0mv5g_q7.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/YhSq1ZgYFJAvNO3aIVj__/_buildManifest.js",
11
- "static/YhSq1ZgYFJAvNO3aIVj__/_ssgManifest.js",
12
- "static/YhSq1ZgYFJAvNO3aIVj__/_clientMiddlewareManifest.js"
10
+ "static/BzIPghFM13wueh4Fuo7y-/_buildManifest.js",
11
+ "static/BzIPghFM13wueh4Fuo7y-/_ssgManifest.js",
12
+ "static/BzIPghFM13wueh4Fuo7y-/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/1oto92aw_9yqi.js",
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1oto92aw_9yqi.js"/><script src="/_next/static/chunks/2vfwa2oqh6yha.js" async=""></script><script src="/_next/static/chunks/34oyci46fsc5w.js" async=""></script><script src="/_next/static/chunks/turbopack-0q2foqhal-cxp.js" async=""></script><script src="/_next/static/chunks/2yl1jv4w6po1z.js" async=""></script><script src="/_next/static/chunks/1m5ykreap-f2c.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/icon.svg?icon.2eq-kzgm9x62k.svg" sizes="any" type="image/svg+xml"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/1oto92aw_9yqi.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[339756,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\"]\n3:I[837457,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\"]\n4:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"ViewportBoundary\"]\na:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"MetadataBoundary\"]\nc:I[168027,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/1m5ykreap-f2c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",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,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"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\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"YhSq1ZgYFJAvNO3aIVj__\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[154500,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.2eq-kzgm9x62k.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"$Le\",\"2\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1oto92aw_9yqi.js"/><script src="/_next/static/chunks/2vfwa2oqh6yha.js" async=""></script><script src="/_next/static/chunks/34oyci46fsc5w.js" async=""></script><script src="/_next/static/chunks/turbopack-0q2foqhal-cxp.js" async=""></script><script src="/_next/static/chunks/2yl1jv4w6po1z.js" async=""></script><script src="/_next/static/chunks/1m5ykreap-f2c.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/icon.svg?icon.2eq-kzgm9x62k.svg" sizes="any" type="image/svg+xml"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>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)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/1oto92aw_9yqi.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[339756,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\"]\n3:I[837457,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\"]\n4:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"ViewportBoundary\"]\na:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"MetadataBoundary\"]\nc:I[168027,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/1m5ykreap-f2c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",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,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"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\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"BzIPghFM13wueh4Fuo7y-\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[154500,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.2eq-kzgm9x62k.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"$Le\",\"2\",{}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1oto92aw_9yqi.js"/><script src="/_next/static/chunks/2vfwa2oqh6yha.js" async=""></script><script src="/_next/static/chunks/34oyci46fsc5w.js" async=""></script><script src="/_next/static/chunks/turbopack-0q2foqhal-cxp.js" async=""></script><script src="/_next/static/chunks/2yl1jv4w6po1z.js" async=""></script><script src="/_next/static/chunks/1m5ykreap-f2c.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="manifest" href="/manifest.webmanifest"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/1oto92aw_9yqi.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[339756,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\"]\n3:I[837457,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\"]\n4:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"ViewportBoundary\"]\na:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"MetadataBoundary\"]\nc:I[168027,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"YhSq1ZgYFJAvNO3aIVj__\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1oto92aw_9yqi.js"/><script src="/_next/static/chunks/2vfwa2oqh6yha.js" async=""></script><script src="/_next/static/chunks/34oyci46fsc5w.js" async=""></script><script src="/_next/static/chunks/turbopack-0q2foqhal-cxp.js" async=""></script><script src="/_next/static/chunks/2yl1jv4w6po1z.js" async=""></script><script src="/_next/static/chunks/1m5ykreap-f2c.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="manifest" href="/manifest.webmanifest"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/1oto92aw_9yqi.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[339756,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\"]\n3:I[837457,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\"]\n4:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"ViewportBoundary\"]\na:I[897367,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"MetadataBoundary\"]\nc:I[168027,[\"/_next/static/chunks/2yl1jv4w6po1z.js\",\"/_next/static/chunks/1m5ykreap-f2c.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"BzIPghFM13wueh4Fuo7y-\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"vdePk2LkXBYpbS2qxKlcYHoA12Bta77YqwmbJKr8IUM=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"C7Nw9sB7eKQ6DMcGPcH3vkqtfspVwUdzKWGNsk0L7q4=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "vdePk2LkXBYpbS2qxKlcYHoA12Bta77YqwmbJKr8IUM="
4
+ "encryptionKey": "C7Nw9sB7eKQ6DMcGPcH3vkqtfspVwUdzKWGNsk0L7q4="
5
5
  }
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030),i=e.i(820783),s=e.i(326999),l=e.i(981140),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0}),[d,u]=(0,a.createContextScope)("AlertDialog",[s.createDialogScope]),c=(0,s.createDialogScope)(),x=o(e=>{let{__scopeAlertDialog:r,...a}=e,i=c(r);return(0,t.jsx)(s.Root,{...i,...a,modal:!0})},"AlertDialog"),m=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...i}=e,l=c(a);return(0,t.jsx)(s.Trigger,{...l,...i,ref:r})},"AlertDialogTrigger")),p=o(e=>{let{__scopeAlertDialog:r,...a}=e,i=c(r);return(0,t.jsx)(s.Portal,{...i,...a})},"AlertDialogPortal"),h=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...i}=e,l=c(a);return(0,t.jsx)(s.Overlay,{...l,...i,ref:r})},"AlertDialogOverlay")),[g,f]=d("AlertDialogContent"),j=r.forwardRef(o(function(e,a){let{__scopeAlertDialog:n,children:o,...d}=e,u=c(n),x=r.useRef(null),m=(0,i.useComposedRefs)(a,x),p=r.useRef(null);return(0,t.jsx)(g,{scope:n,cancelRef:p,children:(0,t.jsx)(s.Content,{role:"alertdialog",...u,...d,ref:m,onOpenAutoFocus:(0,l.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),b=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...i}=e,l=c(a);return(0,t.jsx)(s.Title,{...l,...i,ref:r})},"AlertDialogTitle")),v=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...i}=e,l=c(a);return(0,t.jsx)(s.Description,{...l,...i,ref:r})},"AlertDialogDescription")),y=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...i}=e,l=c(a);return(0,t.jsx)(s.Close,{...l,...i,ref:r})},"AlertDialogAction")),R=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...l}=e,{cancelRef:n}=f("AlertDialogCancel",a),o=c(a),d=(0,i.useComposedRefs)(r,n);return(0,t.jsx)(s.Close,{...o,...l,ref:d})},"AlertDialogCancel"));e.s(["Action",0,y,"AlertDialog",0,x,"AlertDialogAction",0,y,"AlertDialogCancel",0,R,"AlertDialogContent",0,j,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,h,"AlertDialogPortal",0,p,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,m,"Cancel",0,R,"Content",0,j,"Description",0,v,"Overlay",0,h,"Portal",0,p,"Root",0,x,"Title",0,b,"Trigger",0,m,"createAlertDialogScope",0,u],691162);var w=e.i(691162),w=w,C=e.i(975157),N=e.i(519455);function S({...e}){return(0,t.jsx)(w.Root,{"data-slot":"alert-dialog",...e})}function k({...e}){return(0,t.jsx)(w.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(w.Portal,{"data-slot":"alert-dialog-portal",...e})}function D({className:e,...r}){return(0,t.jsx)(w.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,C.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}function A({className:e,size:r="default",...a}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(D,{}),(0,t.jsx)(w.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,C.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})]})}function E({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,C.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function P({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,C.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function H({className:e,...r}){return(0,t.jsx)(w.Title,{"data-slot":"alert-dialog-title",className:(0,C.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function q({className:e,...r}){return(0,t.jsx)(w.Description,{"data-slot":"alert-dialog-description",className:(0,C.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function M({className:e,variant:r="default",size:a="default",...i}){return(0,t.jsx)(N.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(w.Action,{"data-slot":"alert-dialog-action",className:(0,C.cn)(e),...i})})}function I({className:e,variant:r="outline",size:a="default",...i}){return(0,t.jsx)(N.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(w.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,C.cn)(e),...i})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:a,onConfirm:i,onOpenChange:s,open:l,title:n,trigger:o}){return(0,t.jsxs)(S,{onOpenChange:s,open:l,children:[o&&(0,t.jsx)(k,{asChild:!0,children:o}),(0,t.jsxs)(A,{children:[(0,t.jsxs)(E,{children:[(0,t.jsx)(H,{children:n}),(0,t.jsx)(q,{children:a})]}),(0,t.jsxs)(P,{children:[(0,t.jsx)(I,{children:r}),(0,t.jsx)(M,{onClick:()=>void i(),variant:"destructive",children:e})]})]})]})}],340953)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let i=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,a.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,a.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...s}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,a.cn)(i({variant:r,className:e})),...s})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},689257,e=>{"use strict";var t=e.i(843476),r=e.i(482022),a=e.i(456420);let i=(0,a.default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var s=e.i(113030),l=e.i(634398);let n=(0,a.default)("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);var o=e.i(648119),d=e.i(77071),u=e.i(741120),c=e.i(856522),x=e.i(566595),m=e.i(250832),p=e.i(573474),h=e.i(861745),g=e.i(948148),f=e.i(618566),j=e.i(271645),b=e.i(340953),v=e.i(346194),y=e.i(647776),R=e.i(948812),w=e.i(356505),C=e.i(929592),N=e.i(487486),S=e.i(519455),k=e.i(515288),T=e.i(816484),D=e.i(776639),A=e.i(755146),E=e.i(82612),P=e.i(793479),H=e.i(906197),q=e.i(110204),M=e.i(987968),I=e.i(983913),O=e.i(967489),$=e.i(784774),L=e.i(677572),z=e.i(520133),G=e.i(637611),B=e.i(360583),K=e.i(975157),U=e.i(171502);let _="id githubId owner name nameWithOwner url jiraKeyRegex";function F(e,t,r){return"repositories"===e?`${r}:repository:${t}`:`${r}:${e}`}function V(e){let t=new URLSearchParams(window.location.search);e?t.set("issue",e):t.delete("issue");let r=t.toString();window.history.pushState(null,"",`${window.location.pathname}${r?`?${r}`:""}`)}function W(e){if(!e.trim())return null;try{return RegExp(e,"i"),null}catch{return"invalid"}}function J({items:e,locale:r,onMerged:a}){let i=(0,g.useTranslations)("pullRequests"),s=(0,z.useRouter)(),l=e=>e.stopPropagation(),n=(0,j.useMemo)(()=>{let t=[];for(let a of e){let e=new Date(a.createdAt),i=(0,B.dayKey)(e)??a.createdAt,s=t.at(-1);s?.dateKey===i?s.items.push(a):t.push({key:`${i}-${a.id}`,dateKey:i,label:(0,B.formatDateValue)(e,"long",{locale:r,showTime:!1}),items:[a]})}return t},[e,r]);return(0,t.jsx)(k.Card,{className:"gap-0 py-0",children:(0,t.jsxs)($.Table,{children:[(0,t.jsx)($.TableHeader,{children:(0,t.jsxs)($.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)($.TableHead,{children:i("number")}),(0,t.jsx)($.TableHead,{children:i("pullRequestAndRepository")}),(0,t.jsx)($.TableHead,{children:i("labels")}),(0,t.jsx)($.TableHead,{children:i("ticket")}),(0,t.jsx)($.TableHead,{children:i("pipeline")}),(0,t.jsx)($.TableHead,{children:i("approval")}),(0,t.jsx)($.TableHead,{children:i("openComments")}),(0,t.jsx)($.TableHead,{children:i("age")}),(0,t.jsx)($.TableHead,{className:"text-right",children:i("actions")})]})}),(0,t.jsx)($.TableBody,{children:n.map(e=>(0,t.jsxs)(j.Fragment,{children:[(0,t.jsx)($.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)($.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:9,children:e.label})}),e.items.map(e=>{var r;let n=e.worktreeHighlightColor;return(0,t.jsxs)($.TableRow,{className:(0,K.cn)("cursor-pointer",n&&U.worktreeHighlightBackgroundClasses[n]),onClick:()=>s.push((0,R.pullRequestDetailHref)(e)),children:[(0,t.jsx)($.TableCell,{className:(0,K.cn)(n&&U.worktreeHighlightInsetAccentClasses[n]),children:(0,t.jsx)(N.Badge,{asChild:!0,className:"cursor-pointer hover:bg-muted/80",variant:"outline",children:(0,t.jsxs)(z.Link,{href:(0,R.pullRequestDetailHref)(e),onClick:l,children:["#",e.number]})})}),(0,t.jsx)($.TableCell,{className:"min-w-72 whitespace-normal",children:(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(z.Link,{className:"font-medium hover:underline",href:(0,R.pullRequestDetailHref)(e),onClick:l,children:e.title}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1.5 text-xs",children:(0,t.jsx)("a",{className:"text-muted-foreground hover:text-foreground",href:e.repositoryUrl,onClick:l,rel:"noreferrer",target:"_blank",children:e.repositoryNameWithOwner})}),(0,t.jsx)("p",{className:"font-mono text-xs break-all text-muted-foreground",children:e.headRefName})]})}),(0,t.jsx)($.TableCell,{className:"min-w-40 whitespace-normal",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.labels.length>0?e.labels.map(e=>(0,t.jsx)(N.Badge,{children:e},e)):"—"})}),(0,t.jsx)($.TableCell,{children:e.jiraKey?(0,t.jsx)(N.Badge,{asChild:!0,className:"cursor-pointer hover:bg-primary/80",children:(0,t.jsx)("button",{onClick:t=>{t.stopPropagation(),V(e.jiraKey)},type:"button",children:e.jiraKey})}):"—"}),(0,t.jsx)($.TableCell,{children:(0,t.jsx)(y.PipelineMenu,{pipelineStatus:e.pipelineStatus,pipelines:e.pipelines,pipelineRevision:e.pipelineRevision,headSha:e.headRefOid,repositoryId:e.repositoryGithubId,repositoryNameWithOwner:e.repositoryNameWithOwner,repositoryUrl:e.repositoryUrl,requestSource:"PULL_REQUESTS_PAGE"})}),(0,t.jsx)($.TableCell,{children:(0,t.jsx)(N.Badge,{className:"APPROVED"===(r=e.reviewDecision)?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"CHANGES_REQUESTED"===r?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"REVIEW_REQUIRED"===r?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300",children:i(`reviewStates.${e.reviewDecision}`)})}),(0,t.jsx)($.TableCell,{children:(0,t.jsx)(N.Badge,{asChild:!0,className:0===e.unresolvedReviewThreadCount?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",children:(0,t.jsx)(z.Link,{"aria-label":i("viewOpenComments",{count:e.unresolvedReviewThreadCount}),href:(0,R.pullRequestCommentsHref)(e),onClick:l,children:e.unresolvedReviewThreadCount})})}),(0,t.jsx)($.TableCell,{className:"whitespace-nowrap text-muted-foreground",children:(0,t.jsxs)("div",{className:"flex flex-col items-start gap-1.5",children:[(0,t.jsx)(N.Badge,{variant:"outline",children:i(`pullRequestStates.${e.state}`)}),(0,t.jsx)(T.DateTime,{kind:"relative",value:e.createdAt})]})}),(0,t.jsx)($.TableCell,{className:"text-right",children:(0,t.jsx)(Q,{onMerged:a,pullRequest:e})})]},e.id)})]},e.key))})]})})}function Q({pullRequest:e,onMerged:a}){let l=(0,g.useTranslations)("pullRequests"),[n,d]=(0,j.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.DropdownMenu,{children:[(0,t.jsx)(A.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(S.Button,{"aria-label":`${l("actions")}: #${e.number}`,onClick:e=>e.stopPropagation(),size:"icon-sm",variant:"outline",children:(0,t.jsx)(o.MoreHorizontal,{})})}),(0,t.jsxs)(A.DropdownMenuContent,{align:"end",className:"w-44",children:[(0,t.jsx)(A.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(z.Link,{href:(0,R.pullRequestDetailHref)(e),children:[(0,t.jsx)(i,{}),l("details")]})}),(0,t.jsx)(A.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(r.ExternalLink,{}),l("openInGitHub")]})}),"OPEN"===e.state&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A.DropdownMenuSeparator,{}),(0,t.jsxs)(A.DropdownMenuItem,{onSelect:()=>d(!0),children:[(0,t.jsx)(s.GitMerge,{}),l("merge")]})]})]})]}),"OPEN"===e.state&&(0,t.jsx)(v.MergePullRequestButton,{onMerged:a,onOpenChange:d,open:n,pullRequest:e,requestSource:"PULL_REQUESTS_PAGE",showTrigger:!1})]})}function Y({open:e,setOpen:r,repositories:a,settings:i,onRepositoriesChanged:s,onSettingsChanged:l,tokenConfigured:o}){let u=(0,g.useTranslations)("pullRequests"),[m,p]=(0,j.useState)([]),[h,f]=(0,j.useState)(null),[b,v]=(0,j.useState)(!1),[y,R]=(0,j.useState)(""),[w,N]=(0,j.useState)(""),[k,T]=(0,j.useState)(""),[A,E]=(0,j.useState)(i?.defaultJiraKeyRegex??""),[I,O]=(0,j.useState)(!1),[$,B]=(0,j.useState)(!1),[K,U]=(0,j.useState)(null),F=(0,j.useCallback)(async e=>{B(!0);try{let t=await (0,G.controlPlaneRequest)(`query GitHubAvailableRepositories($after: String) {
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,340953,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030),s=e.i(820783),i=e.i(326999),l=e.i(981140),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0}),[d,u]=(0,a.createContextScope)("AlertDialog",[i.createDialogScope]),c=(0,i.createDialogScope)(),x=o(e=>{let{__scopeAlertDialog:r,...a}=e,s=c(r);return(0,t.jsx)(i.Root,{...s,...a,modal:!0})},"AlertDialog"),m=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...s}=e,l=c(a);return(0,t.jsx)(i.Trigger,{...l,...s,ref:r})},"AlertDialogTrigger")),p=o(e=>{let{__scopeAlertDialog:r,...a}=e,s=c(r);return(0,t.jsx)(i.Portal,{...s,...a})},"AlertDialogPortal"),h=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...s}=e,l=c(a);return(0,t.jsx)(i.Overlay,{...l,...s,ref:r})},"AlertDialogOverlay")),[g,f]=d("AlertDialogContent"),j=r.forwardRef(o(function(e,a){let{__scopeAlertDialog:n,children:o,...d}=e,u=c(n),x=r.useRef(null),m=(0,s.useComposedRefs)(a,x),p=r.useRef(null);return(0,t.jsx)(g,{scope:n,cancelRef:p,children:(0,t.jsx)(i.Content,{role:"alertdialog",...u,...d,ref:m,onOpenAutoFocus:(0,l.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})},"AlertDialogContent")),b=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...s}=e,l=c(a);return(0,t.jsx)(i.Title,{...l,...s,ref:r})},"AlertDialogTitle")),v=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...s}=e,l=c(a);return(0,t.jsx)(i.Description,{...l,...s,ref:r})},"AlertDialogDescription")),y=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...s}=e,l=c(a);return(0,t.jsx)(i.Close,{...l,...s,ref:r})},"AlertDialogAction")),R=r.forwardRef(o(function(e,r){let{__scopeAlertDialog:a,...l}=e,{cancelRef:n}=f("AlertDialogCancel",a),o=c(a),d=(0,s.useComposedRefs)(r,n);return(0,t.jsx)(i.Close,{...o,...l,ref:d})},"AlertDialogCancel"));e.s(["Action",0,y,"AlertDialog",0,x,"AlertDialogAction",0,y,"AlertDialogCancel",0,R,"AlertDialogContent",0,j,"AlertDialogDescription",0,v,"AlertDialogOverlay",0,h,"AlertDialogPortal",0,p,"AlertDialogTitle",0,b,"AlertDialogTrigger",0,m,"Cancel",0,R,"Content",0,j,"Description",0,v,"Overlay",0,h,"Portal",0,p,"Root",0,x,"Title",0,b,"Trigger",0,m,"createAlertDialogScope",0,u],691162);var w=e.i(691162),w=w,C=e.i(975157),N=e.i(519455);function S({...e}){return(0,t.jsx)(w.Root,{"data-slot":"alert-dialog",...e})}function k({...e}){return(0,t.jsx)(w.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(w.Portal,{"data-slot":"alert-dialog-portal",...e})}function D({className:e,...r}){return(0,t.jsx)(w.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,C.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}function A({className:e,size:r="default",...a}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(D,{}),(0,t.jsx)(w.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,C.cn)("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})]})}function E({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,C.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})}function P({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,C.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})}function H({className:e,...r}){return(0,t.jsx)(w.Title,{"data-slot":"alert-dialog-title",className:(0,C.cn)("font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}function q({className:e,...r}){return(0,t.jsx)(w.Description,{"data-slot":"alert-dialog-description",className:(0,C.cn)("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...r})}function M({className:e,variant:r="default",size:a="default",...s}){return(0,t.jsx)(N.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(w.Action,{"data-slot":"alert-dialog-action",className:(0,C.cn)(e),...s})})}function I({className:e,variant:r="outline",size:a="default",...s}){return(0,t.jsx)(N.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(w.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,C.cn)(e),...s})})}e.s(["ConfirmationDialog",0,function({actionLabel:e,cancelLabel:r,description:a,onConfirm:s,onOpenChange:i,open:l,title:n,trigger:o}){return(0,t.jsxs)(S,{onOpenChange:i,open:l,children:[o&&(0,t.jsx)(k,{asChild:!0,children:o}),(0,t.jsxs)(A,{children:[(0,t.jsxs)(E,{children:[(0,t.jsx)(H,{children:n}),(0,t.jsx)(q,{children:a})]}),(0,t.jsxs)(P,{children:[(0,t.jsx)(I,{children:r}),(0,t.jsx)(M,{onClick:()=>void s(),variant:"destructive",children:e})]})]})]})}],340953)},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let s=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,a.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,a.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...i}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,a.cn)(s({variant:r,className:e})),...i})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},508734,e=>{"use strict";let t=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],508734)},395925,e=>{"use strict";let t=(0,e.i(456420).default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);e.s(["RotateCcw",0,t],395925)},856522,e=>{"use strict";let t=(0,e.i(456420).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);e.s(["Save",0,t],856522)},250832,e=>{"use strict";let t=(0,e.i(456420).default)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);e.s(["Settings2",0,t],250832)},689257,e=>{"use strict";var t=e.i(843476),r=e.i(482022),a=e.i(456420);let s=(0,a.default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);var i=e.i(113030),l=e.i(634398);let n=(0,a.default)("lock-keyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);var o=e.i(648119),d=e.i(77071),u=e.i(741120),c=e.i(856522),x=e.i(566595),m=e.i(250832),p=e.i(573474),h=e.i(861745),g=e.i(948148),f=e.i(618566),j=e.i(271645),b=e.i(340953),v=e.i(346194),y=e.i(647776),R=e.i(948812),w=e.i(356505),C=e.i(929592),N=e.i(487486),S=e.i(519455),k=e.i(515288),T=e.i(816484),D=e.i(776639),A=e.i(755146),E=e.i(82612),P=e.i(793479),H=e.i(906197),q=e.i(110204),M=e.i(987968),I=e.i(983913),O=e.i(967489),$=e.i(784774),L=e.i(677572),z=e.i(520133),G=e.i(637611),B=e.i(360583),K=e.i(975157),U=e.i(171502);let _="id githubId owner name nameWithOwner url jiraKeyRegex";function F(e,t,r){return"repositories"===e?`${r}:repository:${t}`:`${r}:${e}`}function V(e){let t=new URLSearchParams(window.location.search);e?t.set("issue",e):t.delete("issue");let r=t.toString();window.history.pushState(null,"",`${window.location.pathname}${r?`?${r}`:""}`)}function W(e){if(!e.trim())return null;try{return RegExp(e,"i"),null}catch{return"invalid"}}function J({items:e,locale:r,onMerged:a}){let s=(0,g.useTranslations)("pullRequests"),i=(0,z.useRouter)(),l=e=>e.stopPropagation(),n=(0,j.useMemo)(()=>{let t=[];for(let a of e){let e=new Date(a.createdAt),s=(0,B.dayKey)(e)??a.createdAt,i=t.at(-1);i?.dateKey===s?i.items.push(a):t.push({key:`${s}-${a.id}`,dateKey:s,label:(0,B.formatDateValue)(e,"long",{locale:r,showTime:!1}),items:[a]})}return t},[e,r]);return(0,t.jsx)(k.Card,{className:"gap-0 py-0",children:(0,t.jsxs)($.Table,{children:[(0,t.jsx)($.TableHeader,{children:(0,t.jsxs)($.TableRow,{className:"hover:bg-transparent",children:[(0,t.jsx)($.TableHead,{children:s("number")}),(0,t.jsx)($.TableHead,{children:s("pullRequestAndRepository")}),(0,t.jsx)($.TableHead,{children:s("labels")}),(0,t.jsx)($.TableHead,{children:s("ticket")}),(0,t.jsx)($.TableHead,{children:s("pipeline")}),(0,t.jsx)($.TableHead,{children:s("approval")}),(0,t.jsx)($.TableHead,{children:s("openComments")}),(0,t.jsx)($.TableHead,{children:s("age")}),(0,t.jsx)($.TableHead,{className:"text-right",children:s("actions")})]})}),(0,t.jsx)($.TableBody,{children:n.map(e=>(0,t.jsxs)(j.Fragment,{children:[(0,t.jsx)($.TableRow,{className:"bg-muted/20 hover:bg-muted/20",children:(0,t.jsx)($.TableCell,{className:"py-1.5 text-xs font-normal text-muted-foreground",colSpan:9,children:e.label})}),e.items.map(e=>{var r;let n=e.worktreeHighlightColor;return(0,t.jsxs)($.TableRow,{className:(0,K.cn)("cursor-pointer",n&&U.worktreeHighlightBackgroundClasses[n]),onClick:()=>i.push((0,R.pullRequestDetailHref)(e)),children:[(0,t.jsx)($.TableCell,{className:(0,K.cn)(n&&U.worktreeHighlightInsetAccentClasses[n]),children:(0,t.jsx)(N.Badge,{asChild:!0,className:"cursor-pointer hover:bg-muted/80",variant:"outline",children:(0,t.jsxs)(z.Link,{href:(0,R.pullRequestDetailHref)(e),onClick:l,children:["#",e.number]})})}),(0,t.jsx)($.TableCell,{className:"min-w-72 whitespace-normal",children:(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(z.Link,{className:"font-medium hover:underline",href:(0,R.pullRequestDetailHref)(e),onClick:l,children:e.title}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1.5 text-xs",children:(0,t.jsx)("a",{className:"text-muted-foreground hover:text-foreground",href:e.repositoryUrl,onClick:l,rel:"noreferrer",target:"_blank",children:e.repositoryNameWithOwner})}),(0,t.jsx)("p",{className:"font-mono text-xs break-all text-muted-foreground",children:e.headRefName})]})}),(0,t.jsx)($.TableCell,{className:"min-w-40 whitespace-normal",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.labels.length>0?e.labels.map(e=>(0,t.jsx)(N.Badge,{children:e},e)):"—"})}),(0,t.jsx)($.TableCell,{children:e.jiraKey?(0,t.jsx)(N.Badge,{asChild:!0,className:"cursor-pointer hover:bg-primary/80",children:(0,t.jsx)("button",{onClick:t=>{t.stopPropagation(),V(e.jiraKey)},type:"button",children:e.jiraKey})}):"—"}),(0,t.jsx)($.TableCell,{children:(0,t.jsx)(y.PipelineMenu,{pipelineStatus:e.pipelineStatus,pipelines:e.pipelines,pipelineRevision:e.pipelineRevision,headSha:e.headRefOid,repositoryId:e.repositoryGithubId,repositoryNameWithOwner:e.repositoryNameWithOwner,repositoryUrl:e.repositoryUrl,requestSource:"PULL_REQUESTS_PAGE"})}),(0,t.jsx)($.TableCell,{children:(0,t.jsx)(N.Badge,{className:"APPROVED"===(r=e.reviewDecision)?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"CHANGES_REQUESTED"===r?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"REVIEW_REQUIRED"===r?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":"border-slate-500/30 bg-slate-500/10 text-slate-700 dark:text-slate-300",children:s(`reviewStates.${e.reviewDecision}`)})}),(0,t.jsx)($.TableCell,{children:(0,t.jsx)(N.Badge,{asChild:!0,className:0===e.unresolvedReviewThreadCount?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",children:(0,t.jsx)(z.Link,{"aria-label":s("viewOpenComments",{count:e.unresolvedReviewThreadCount}),href:(0,R.pullRequestCommentsHref)(e),onClick:l,children:e.unresolvedReviewThreadCount})})}),(0,t.jsx)($.TableCell,{className:"whitespace-nowrap text-muted-foreground",children:(0,t.jsxs)("div",{className:"flex flex-col items-start gap-1.5",children:[(0,t.jsx)(N.Badge,{variant:"outline",children:s(`pullRequestStates.${e.state}`)}),(0,t.jsx)(T.DateTime,{kind:"relative",value:e.createdAt})]})}),(0,t.jsx)($.TableCell,{className:"text-right",children:(0,t.jsx)(Q,{onMerged:a,pullRequest:e})})]},e.id)})]},e.key))})]})})}function Q({pullRequest:e,onMerged:a}){let l=(0,g.useTranslations)("pullRequests"),[n,d]=(0,j.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.DropdownMenu,{children:[(0,t.jsx)(A.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(S.Button,{"aria-label":`${l("actions")}: #${e.number}`,onClick:e=>e.stopPropagation(),size:"icon-sm",variant:"outline",children:(0,t.jsx)(o.MoreHorizontal,{})})}),(0,t.jsxs)(A.DropdownMenuContent,{align:"end",className:"w-44",children:[(0,t.jsx)(A.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(z.Link,{href:(0,R.pullRequestDetailHref)(e),children:[(0,t.jsx)(s,{}),l("details")]})}),(0,t.jsx)(A.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)("a",{href:e.url,rel:"noreferrer",target:"_blank",children:[(0,t.jsx)(r.ExternalLink,{}),l("openInGitHub")]})}),"OPEN"===e.state&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A.DropdownMenuSeparator,{}),(0,t.jsxs)(A.DropdownMenuItem,{onSelect:()=>d(!0),children:[(0,t.jsx)(i.GitMerge,{}),l("merge")]})]})]})]}),"OPEN"===e.state&&(0,t.jsx)(v.MergePullRequestButton,{onMerged:a,onOpenChange:d,open:n,pullRequest:e,requestSource:"PULL_REQUESTS_PAGE",showTrigger:!1})]})}function Y({open:e,setOpen:r,repositories:a,settings:s,onRepositoriesChanged:i,onSettingsChanged:l,tokenConfigured:o}){let u=(0,g.useTranslations)("pullRequests"),[m,p]=(0,j.useState)([]),[h,f]=(0,j.useState)(null),[b,v]=(0,j.useState)(!1),[y,R]=(0,j.useState)(""),[w,N]=(0,j.useState)(""),[k,T]=(0,j.useState)(""),[A,E]=(0,j.useState)(s?.defaultJiraKeyRegex??""),[I,O]=(0,j.useState)(!1),[$,B]=(0,j.useState)(!1),[K,U]=(0,j.useState)(null),F=(0,j.useCallback)(async e=>{B(!0);try{let t=await (0,G.controlPlaneRequest)(`query GitHubAvailableRepositories($after: String) {
2
2
  githubAvailableRepositories(after: $after) {
3
3
  items { githubId nameWithOwner url isPrivate managed }
4
4
  hasNextPage
@@ -6,20 +6,20 @@
6
6
  }
7
7
  }`,{after:e});p(r=>e?[...r,...t.githubAvailableRepositories.items]:t.githubAvailableRepositories.items),v(t.githubAvailableRepositories.hasNextPage),f(t.githubAvailableRepositories.endCursor),U(null)}catch(e){U(e instanceof Error?e.message:String(e))}finally{B(!1)}},[]);(0,j.useEffect)(()=>{if(!e||!o||m.length>0)return;let t=window.setTimeout(()=>void F(null),0);return()=>window.clearTimeout(t)},[m.length,F,e,o]);let V=async(e,t)=>{if(W(t))return void U(u("invalidRegex"));O(!0);try{let r=await (0,G.controlPlaneRequest)(`mutation AddGitHubRepository($input: AddGitHubRepositoryInput!) {
8
8
  addGitHubRepository(input: $input) { ${_} }
9
- }`,{input:{nameWithOwner:e,jiraKeyRegex:t||null}});s(r.addGitHubRepository),N(""),T(""),U(null)}catch(e){U(e instanceof Error?e.message:String(e))}finally{O(!1)}},J=async()=>{if(!A.trim()||W(A))return void U(u("invalidRegex"));O(!0);try{let e=await (0,G.controlPlaneRequest)(`mutation SaveDefaultGitHubJiraKeyRegex(
9
+ }`,{input:{nameWithOwner:e,jiraKeyRegex:t||null}});i(r.addGitHubRepository),N(""),T(""),U(null)}catch(e){U(e instanceof Error?e.message:String(e))}finally{O(!1)}},J=async()=>{if(!A.trim()||W(A))return void U(u("invalidRegex"));O(!0);try{let e=await (0,G.controlPlaneRequest)(`mutation SaveDefaultGitHubJiraKeyRegex(
10
10
  $input: SaveGitHubSettingsInput!
11
11
  ) {
12
12
  saveGitHubSettings(input: $input) {
13
13
  tokenConfigured defaultJiraKeyRegex updatedAt
14
14
  }
15
- }`,{input:{defaultJiraKeyRegex:A}});l(e.saveGitHubSettings),U(null)}catch(e){U(e instanceof Error?e.message:String(e))}finally{O(!1)}},Q=m.filter(e=>e.nameWithOwner.toLowerCase().includes(y.trim().toLowerCase()));return(0,t.jsx)(D.Dialog,{onOpenChange:r,open:e,children:(0,t.jsxs)(D.DialogContent,{className:"max-h-[90vh] overflow-y-auto sm:max-w-5xl",children:[(0,t.jsxs)(D.DialogHeader,{children:[(0,t.jsx)(D.DialogTitle,{children:u("manageTitle")}),(0,t.jsx)(D.DialogDescription,{children:u("manageDescription")})]}),K&&(0,t.jsx)(C.Alert,{variant:"destructive",children:(0,t.jsx)(C.AlertDescription,{children:K})}),o?(0,t.jsxs)("div",{className:"grid min-w-0 gap-6 md:grid-cols-2",children:[(0,t.jsxs)("section",{className:"min-w-0 space-y-3",children:[(0,t.jsx)("h3",{className:"font-medium",children:u("managedRepositories")}),(0,t.jsxs)(H.Item,{className:"block space-y-2 p-3",variant:"outline",children:[(0,t.jsx)(q.Label,{htmlFor:"default-github-jira-regex",children:u("defaultJiraKeyRegex")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(P.Input,{id:"default-github-jira-regex",onChange:e=>E(e.target.value),value:A}),(0,t.jsx)(S.Button,{"aria-label":u("saveDefaultRegex"),disabled:I,onClick:()=>void J(),size:"icon",type:"button",children:I?(0,t.jsx)(M.Spinner,{}):(0,t.jsx)(c.Save,{})})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:u("defaultJiraKeyRegexHelp")})]}),0===a.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:u("noManagedRepositories")}):(0,t.jsx)("div",{className:"space-y-3",children:a.map(e=>(0,t.jsx)(X,{busy:I,onBusyChange:O,onError:U,onRepositoriesChanged:s,repository:e},e.id))})]}),(0,t.jsxs)("section",{className:"min-w-0 space-y-3",children:[(0,t.jsx)("h3",{className:"font-medium",children:u("addRepository")}),(0,t.jsxs)(L.Tabs,{defaultValue:"browse",children:[(0,t.jsxs)(L.TabsList,{children:[(0,t.jsx)(L.TabsTrigger,{value:"browse",children:u("browse")}),(0,t.jsx)(L.TabsTrigger,{value:"manual",children:u("enterManually")})]}),(0,t.jsxs)(L.TabsContent,{className:"mt-3 space-y-2",value:"browse",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(P.Input,{"aria-label":u("searchAvailableRepositories"),className:"pl-8",onChange:e=>R(e.target.value),placeholder:u("searchAvailableRepositories"),value:y})]}),Q.map(e=>{let r=a.some(t=>t.githubId===e.githubId);return(0,t.jsxs)(H.Item,{className:"flex-nowrap p-2",variant:"outline",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.nameWithOwner}),e.isPrivate&&(0,t.jsxs)("span",{className:"mt-1 flex items-center gap-1 text-xs text-muted-foreground",children:[(0,t.jsx)(n,{className:"size-3"}),u("privateRepository")]})]}),(0,t.jsxs)(S.Button,{disabled:I||r,onClick:()=>void V(e.nameWithOwner,""),size:"sm",children:[(0,t.jsx)(d.Plus,{}),r?u("managed"):u("add")]})]},e.githubId)}),!$&&0===Q.length&&(0,t.jsx)("p",{className:"py-4 text-center text-sm text-muted-foreground",children:u("noRepositoryMatches")}),$&&(0,t.jsxs)("div",{className:"flex items-center gap-2 py-3 text-sm text-muted-foreground",children:[(0,t.jsx)(M.Spinner,{}),u("loadingRepositories")]}),b&&(0,t.jsx)(S.Button,{className:"w-full",disabled:$,onClick:()=>void F(h),variant:"outline",children:u("loadMore")})]}),(0,t.jsx)(L.TabsContent,{className:"mt-3",value:"manual",children:(0,t.jsxs)("form",{className:"space-y-4",onSubmit:e=>{e.preventDefault(),V(w,k)},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(q.Label,{className:"mb-1.5 block",htmlFor:"github-repository-name",children:u("repositoryName")}),(0,t.jsx)(P.Input,{id:"github-repository-name",onChange:e=>N(e.target.value),placeholder:"owner/repository",required:!0,value:w})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(q.Label,{className:"mb-1.5 block",htmlFor:"github-repository-regex",children:u("jiraKeyRegex")}),(0,t.jsx)(P.Input,{id:"github-repository-regex",onChange:e=>T(e.target.value),value:k}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:u("jiraKeyRegexOverrideHelp")})]}),(0,t.jsxs)(S.Button,{disabled:I,type:"submit",children:[I?(0,t.jsx)(M.Spinner,{}):(0,t.jsx)(d.Plus,{}),u("addRepository")]})]})})]})]})]}):(0,t.jsx)(C.Alert,{children:(0,t.jsxs)(C.AlertDescription,{children:[u("manageCredentialsRequired")," ",(0,t.jsx)(z.Link,{className:"text-primary underline",href:"/settings",children:u("openSettings")})]})}),(0,t.jsx)(D.DialogFooter,{children:(0,t.jsx)(S.Button,{onClick:()=>r(!1),variant:"outline",children:u("done")})})]})})}function X({repository:e,busy:r,onBusyChange:a,onError:i,onRepositoriesChanged:s}){let l=(0,g.useTranslations)("pullRequests"),n=(0,g.useTranslations)("common"),[o,d]=(0,j.useState)(e.jiraKeyRegex??""),u=async()=>{if(W(o))return void i(l("invalidRegex"));a(!0);try{let t=await (0,G.controlPlaneRequest)(`mutation UpdateGitHubRepository($input: UpdateGitHubRepositoryInput!) {
15
+ }`,{input:{defaultJiraKeyRegex:A}});l(e.saveGitHubSettings),U(null)}catch(e){U(e instanceof Error?e.message:String(e))}finally{O(!1)}},Q=m.filter(e=>e.nameWithOwner.toLowerCase().includes(y.trim().toLowerCase()));return(0,t.jsx)(D.Dialog,{onOpenChange:r,open:e,children:(0,t.jsxs)(D.DialogContent,{className:"max-h-[90vh] overflow-y-auto sm:max-w-5xl",children:[(0,t.jsxs)(D.DialogHeader,{children:[(0,t.jsx)(D.DialogTitle,{children:u("manageTitle")}),(0,t.jsx)(D.DialogDescription,{children:u("manageDescription")})]}),K&&(0,t.jsx)(C.Alert,{variant:"destructive",children:(0,t.jsx)(C.AlertDescription,{children:K})}),o?(0,t.jsxs)("div",{className:"grid min-w-0 gap-6 md:grid-cols-2",children:[(0,t.jsxs)("section",{className:"min-w-0 space-y-3",children:[(0,t.jsx)("h3",{className:"font-medium",children:u("managedRepositories")}),(0,t.jsxs)(H.Item,{className:"block space-y-2 p-3",variant:"outline",children:[(0,t.jsx)(q.Label,{htmlFor:"default-github-jira-regex",children:u("defaultJiraKeyRegex")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(P.Input,{id:"default-github-jira-regex",onChange:e=>E(e.target.value),value:A}),(0,t.jsx)(S.Button,{"aria-label":u("saveDefaultRegex"),disabled:I,onClick:()=>void J(),size:"icon",type:"button",children:I?(0,t.jsx)(M.Spinner,{}):(0,t.jsx)(c.Save,{})})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:u("defaultJiraKeyRegexHelp")})]}),0===a.length?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:u("noManagedRepositories")}):(0,t.jsx)("div",{className:"space-y-3",children:a.map(e=>(0,t.jsx)(X,{busy:I,onBusyChange:O,onError:U,onRepositoriesChanged:i,repository:e},e.id))})]}),(0,t.jsxs)("section",{className:"min-w-0 space-y-3",children:[(0,t.jsx)("h3",{className:"font-medium",children:u("addRepository")}),(0,t.jsxs)(L.Tabs,{defaultValue:"browse",children:[(0,t.jsxs)(L.TabsList,{children:[(0,t.jsx)(L.TabsTrigger,{value:"browse",children:u("browse")}),(0,t.jsx)(L.TabsTrigger,{value:"manual",children:u("enterManually")})]}),(0,t.jsxs)(L.TabsContent,{className:"mt-3 space-y-2",value:"browse",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(x.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(P.Input,{"aria-label":u("searchAvailableRepositories"),className:"pl-8",onChange:e=>R(e.target.value),placeholder:u("searchAvailableRepositories"),value:y})]}),Q.map(e=>{let r=a.some(t=>t.githubId===e.githubId);return(0,t.jsxs)(H.Item,{className:"flex-nowrap p-2",variant:"outline",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium",children:e.nameWithOwner}),e.isPrivate&&(0,t.jsxs)("span",{className:"mt-1 flex items-center gap-1 text-xs text-muted-foreground",children:[(0,t.jsx)(n,{className:"size-3"}),u("privateRepository")]})]}),(0,t.jsxs)(S.Button,{disabled:I||r,onClick:()=>void V(e.nameWithOwner,""),size:"sm",children:[(0,t.jsx)(d.Plus,{}),r?u("managed"):u("add")]})]},e.githubId)}),!$&&0===Q.length&&(0,t.jsx)("p",{className:"py-4 text-center text-sm text-muted-foreground",children:u("noRepositoryMatches")}),$&&(0,t.jsxs)("div",{className:"flex items-center gap-2 py-3 text-sm text-muted-foreground",children:[(0,t.jsx)(M.Spinner,{}),u("loadingRepositories")]}),b&&(0,t.jsx)(S.Button,{className:"w-full",disabled:$,onClick:()=>void F(h),variant:"outline",children:u("loadMore")})]}),(0,t.jsx)(L.TabsContent,{className:"mt-3",value:"manual",children:(0,t.jsxs)("form",{className:"space-y-4",onSubmit:e=>{e.preventDefault(),V(w,k)},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(q.Label,{className:"mb-1.5 block",htmlFor:"github-repository-name",children:u("repositoryName")}),(0,t.jsx)(P.Input,{id:"github-repository-name",onChange:e=>N(e.target.value),placeholder:"owner/repository",required:!0,value:w})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(q.Label,{className:"mb-1.5 block",htmlFor:"github-repository-regex",children:u("jiraKeyRegex")}),(0,t.jsx)(P.Input,{id:"github-repository-regex",onChange:e=>T(e.target.value),value:k}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:u("jiraKeyRegexOverrideHelp")})]}),(0,t.jsxs)(S.Button,{disabled:I,type:"submit",children:[I?(0,t.jsx)(M.Spinner,{}):(0,t.jsx)(d.Plus,{}),u("addRepository")]})]})})]})]})]}):(0,t.jsx)(C.Alert,{children:(0,t.jsxs)(C.AlertDescription,{children:[u("manageCredentialsRequired")," ",(0,t.jsx)(z.Link,{className:"text-primary underline",href:"/settings",children:u("openSettings")})]})}),(0,t.jsx)(D.DialogFooter,{children:(0,t.jsx)(S.Button,{onClick:()=>r(!1),variant:"outline",children:u("done")})})]})})}function X({repository:e,busy:r,onBusyChange:a,onError:s,onRepositoriesChanged:i}){let l=(0,g.useTranslations)("pullRequests"),n=(0,g.useTranslations)("common"),[o,d]=(0,j.useState)(e.jiraKeyRegex??""),u=async()=>{if(W(o))return void s(l("invalidRegex"));a(!0);try{let t=await (0,G.controlPlaneRequest)(`mutation UpdateGitHubRepository($input: UpdateGitHubRepositoryInput!) {
16
16
  updateGitHubRepository(input: $input) { ${_} }
17
- }`,{input:{id:e.id,jiraKeyRegex:o||null}});s(t.updateGitHubRepository),i(null)}catch(e){i(e instanceof Error?e.message:String(e))}finally{a(!1)}},x=async()=>{a(!0);try{let t=await (0,G.controlPlaneRequest)(`mutation RemoveGitHubRepository($id: ID!) {
17
+ }`,{input:{id:e.id,jiraKeyRegex:o||null}});i(t.updateGitHubRepository),s(null)}catch(e){s(e instanceof Error?e.message:String(e))}finally{a(!1)}},x=async()=>{a(!0);try{let t=await (0,G.controlPlaneRequest)(`mutation RemoveGitHubRepository($id: ID!) {
18
18
  removeGitHubRepository(id: $id) { ${_} }
19
- }`,{id:e.id});s(t.removeGitHubRepository),i(null)}catch(e){i(e instanceof Error?e.message:String(e))}finally{a(!1)}};return(0,t.jsxs)(H.Item,{className:"block space-y-3 p-3",variant:"outline",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("a",{className:"min-w-0 truncate font-medium text-primary hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:e.nameWithOwner}),(0,t.jsx)(b.ConfirmationDialog,{actionLabel:l("removeRepository"),cancelLabel:n("cancel"),description:l("confirmRemoveRepositoryDescription"),onConfirm:x,title:l("confirmRemoveRepository"),trigger:(0,t.jsxs)(S.Button,{disabled:r,size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(p.Trash2,{}),(0,t.jsx)("span",{className:"sr-only",children:l("removeRepository")})]})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(q.Label,{className:"mb-1.5 block text-xs",htmlFor:`github-regex-${e.id}`,children:l("jiraKeyRegex")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(P.Input,{id:`github-regex-${e.id}`,onChange:e=>d(e.target.value),value:o}),(0,t.jsxs)(S.Button,{disabled:r,onClick:()=>void u(),size:"icon",children:[r?(0,t.jsx)(M.Spinner,{}):(0,t.jsx)(c.Save,{}),(0,t.jsx)("span",{className:"sr-only",children:l("saveRegex")})]})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:l("jiraKeyRegexOverrideHelp")})]})]})}e.s(["PullRequestsPage",0,function(){let e=(0,g.useTranslations)("pullRequests"),r=(0,f.useSearchParams)(),a=(0,h.useLocale)(),i=r.get("issue"),[s,n]=(0,j.useState)(null),[o,c]=(0,j.useState)([]),[x,p]=(0,j.useState)("mine"),[b,v]=(0,j.useState)("OPEN"),[y,R]=(0,j.useState)(""),[N,k]=(0,j.useState)({}),[T,D]=(0,j.useState)({}),[A,P]=(0,j.useState)({}),[H,q]=(0,j.useState)({}),[$,B]=(0,j.useState)(!0),[K,U]=(0,j.useState)(null),[W,Q]=(0,j.useState)(!1),X=(0,j.useRef)(null),Z=(0,j.useRef)({}),ee=(0,j.useRef)({}),et=(0,j.useCallback)(async()=>{try{let e=await (0,G.controlPlaneRequest)(`query GitHubPullRequestConfiguration {
19
+ }`,{id:e.id});i(t.removeGitHubRepository),s(null)}catch(e){s(e instanceof Error?e.message:String(e))}finally{a(!1)}};return(0,t.jsxs)(H.Item,{className:"block space-y-3 p-3",variant:"outline",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("a",{className:"min-w-0 truncate font-medium text-primary hover:underline",href:e.url,rel:"noreferrer",target:"_blank",children:e.nameWithOwner}),(0,t.jsx)(b.ConfirmationDialog,{actionLabel:l("removeRepository"),cancelLabel:n("cancel"),description:l("confirmRemoveRepositoryDescription"),onConfirm:x,title:l("confirmRemoveRepository"),trigger:(0,t.jsxs)(S.Button,{disabled:r,size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(p.Trash2,{}),(0,t.jsx)("span",{className:"sr-only",children:l("removeRepository")})]})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(q.Label,{className:"mb-1.5 block text-xs",htmlFor:`github-regex-${e.id}`,children:l("jiraKeyRegex")}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(P.Input,{id:`github-regex-${e.id}`,onChange:e=>d(e.target.value),value:o}),(0,t.jsxs)(S.Button,{disabled:r,onClick:()=>void u(),size:"icon",children:[r?(0,t.jsx)(M.Spinner,{}):(0,t.jsx)(c.Save,{}),(0,t.jsx)("span",{className:"sr-only",children:l("saveRegex")})]})]}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:l("jiraKeyRegexOverrideHelp")})]})]})}e.s(["PullRequestsPage",0,function(){let e=(0,g.useTranslations)("pullRequests"),r=(0,f.useSearchParams)(),a=(0,h.useLocale)(),s=r.get("issue"),[i,n]=(0,j.useState)(null),[o,c]=(0,j.useState)([]),[x,p]=(0,j.useState)("mine"),[b,v]=(0,j.useState)("OPEN"),[y,R]=(0,j.useState)(""),[N,k]=(0,j.useState)({}),[T,D]=(0,j.useState)({}),[A,P]=(0,j.useState)({}),[H,q]=(0,j.useState)({}),[$,B]=(0,j.useState)(!0),[K,U]=(0,j.useState)(null),[W,Q]=(0,j.useState)({}),[X,Z]=(0,j.useState)(!1),ee=(0,j.useRef)(null),et=(0,j.useRef)({}),er=(0,j.useRef)({}),ea=(0,j.useCallback)(async()=>{try{let e=await (0,G.controlPlaneRequest)(`query GitHubPullRequestConfiguration {
20
20
  githubSettings { tokenConfigured defaultJiraKeyRegex updatedAt }
21
21
  githubRepositories { ${_} }
22
- }`);n(e.githubSettings),c(e.githubRepositories),R(t=>e.githubRepositories.some(e=>e.id===t)?t:e.githubRepositories[0]?.id??""),U(null)}catch(e){U(e instanceof Error?e.message:String(e))}finally{B(!1)}},[]);(0,j.useEffect)(()=>{let e=window.setTimeout(()=>void et(),0);return()=>window.clearTimeout(e)},[et]);let er=(0,j.useCallback)(async(e,t,r,a={append:!1})=>{let i=F(e,t,r);if("repositories"===e&&!t)return;let s=Z.current[i]??0,l=a.append?s:s+1;if(a.append){if(!a.cursor||ee.current[i]===l)return;ee.current[i]=l,P(e=>({...e,[i]:!0}))}else Z.current[i]=l,delete ee.current[i],D(e=>({...e,[i]:!0})),P(e=>({...e,[i]:!1}));q(e=>({...e,[i]:null}));try{let s="repositories"===e?t:null,n=await (0,G.controlPlaneRequest)(`query GitHubPullRequests(
22
+ }`);n(e.githubSettings),c(e.githubRepositories),R(t=>e.githubRepositories.some(e=>e.id===t)?t:e.githubRepositories[0]?.id??""),U(null)}catch(e){U(e instanceof Error?e.message:String(e))}finally{B(!1)}},[]);(0,j.useEffect)(()=>{let e=window.setTimeout(()=>void ea(),0);return()=>window.clearTimeout(e)},[ea]);let es=(0,j.useCallback)(async(e,t,r,a={append:!1})=>{let s=F(e,t,r);if("repositories"===e&&!t)return;let i=et.current[s]??0,l=a.append?i:i+1;if(a.append){if(!a.cursor||er.current[s]===l)return;er.current[s]=l,P(e=>({...e,[s]:!0}))}else et.current[s]=l,delete er.current[s],D(e=>({...e,[s]:!0})),P(e=>({...e,[s]:!1}));q(e=>({...e,[s]:null})),a.append||Q(e=>({...e,[s]:null}));try{let i="repositories"===e?t:null,n=await (0,G.controlPlaneRequest)(`query GitHubPullRequests(
23
23
  $scope: GitHubPullRequestScope!
24
24
  $repositoryId: ID
25
25
  $state: GitHubPullRequestStateFilter!
@@ -39,4 +39,4 @@
39
39
  hasNextPage
40
40
  endCursor
41
41
  }
42
- }`,{scope:s?"REPOSITORY":"review"===e?"REVIEW_REQUESTED":"MINE",repositoryId:s,state:r,first:25,after:a.cursor??null});if(Z.current[i]!==l)return;k(e=>({...e,[i]:a.append&&e[i]?{...n.githubPullRequests,items:[...e[i].items,...n.githubPullRequests.items.filter(t=>!e[i].items.some(e=>e.id===t.id))]}:n.githubPullRequests})),U(null)}catch(t){if(Z.current[i]!==l)return;let e=t instanceof Error?t.message:String(t);a.append?q(t=>({...t,[i]:e})):U(e)}finally{a.append?ee.current[i]===l&&(delete ee.current[i],P(e=>({...e,[i]:!1}))):Z.current[i]===l&&D(e=>({...e,[i]:!1}))}},[]),ea=F(x,y,b);(0,j.useEffect)(()=>{if(s?.tokenConfigured&&("repositories"!==x||y)&&!N[ea]&&!T[ea]){let e=window.setTimeout(()=>void er(x,y,b),0);return()=>window.clearTimeout(e)}},[x,er,T,ea,N,b,y,s?.tokenConfigured]),(0,j.useEffect)(()=>{if(!o.some(e=>e.id===y)){let e=window.setTimeout(()=>R(o[0]?.id??""),0);return()=>window.clearTimeout(e)}},[o,y]);let ei=N[ea],es=!!T[ea],el=!!A[ea],en=H[ea]??null;return(0,j.useEffect)(()=>{if(!s?.tokenConfigured||!ei?.hasNextPage||!ei.endCursor||es||el||en)return;let e=X.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&er(x,y,b,{append:!0,cursor:ei.endCursor})},{rootMargin:"400px 0px"});return t.observe(e),()=>t.disconnect()},[x,er,es,el,ei?.endCursor,ei?.hasNextPage,en,b,y,s?.tokenConfigured]),(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(S.Button,{disabled:!s?.tokenConfigured||es,onClick:()=>void er(x,y,b),variant:"outline",children:[(0,t.jsx)(u.RefreshCw,{className:es?"animate-spin":void 0}),e("refresh")]}),(0,t.jsxs)(S.Button,{onClick:()=>Q(!0),children:[(0,t.jsx)(m.Settings2,{}),e("manage")]})]})]}),K&&(0,t.jsx)(C.Alert,{variant:"destructive",children:(0,t.jsx)(C.AlertDescription,{children:K})}),$?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(M.Spinner,{}),e("loading")]}):s?.tokenConfigured?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"overflow-x-auto pb-1",children:(0,t.jsx)(L.Tabs,{onValueChange:e=>p(e),value:x,children:(0,t.jsxs)(L.TabsList,{"aria-label":e("tabsLabel"),children:[(0,t.jsx)(L.TabsTrigger,{value:"mine",children:e("mine")}),(0,t.jsx)(L.TabsTrigger,{value:"review",children:e("reviewRequests")}),(0,t.jsx)(L.TabsTrigger,{value:"repositories",children:e("repositories")})]})})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsxs)(O.Select,{onValueChange:e=>v(e),value:b,children:[(0,t.jsx)(O.SelectTrigger,{"aria-label":e("stateFilter"),className:"min-w-36",children:(0,t.jsx)(O.SelectValue,{})}),(0,t.jsx)(O.SelectContent,{align:"start",children:["ALL","OPEN","CLOSED","MERGED"].map(r=>(0,t.jsx)(O.SelectItem,{value:r,children:e(`pullRequestStates.${r}`)},r))})]}),"repositories"===x&&o.length>0&&(0,t.jsx)("div",{className:"min-w-64 max-w-lg flex-1",children:(0,t.jsx)(I.SearchableSelect,{ariaLabel:e("repositoryFilter"),emptyMessage:e("noRepositoryMatches"),onValueChange:R,options:o.map(e=>({value:e.id,label:e.nameWithOwner,keywords:`${e.owner} ${e.name}`})),placeholder:e("selectRepository"),searchPlaceholder:e("searchRepositories"),value:y})})]}),ei?.truncated&&(0,t.jsx)(C.Alert,{className:"border-amber-500/30 bg-amber-500/10 text-amber-800 dark:text-amber-300",children:(0,t.jsx)(C.AlertDescription,{className:"text-current",children:e("truncated")})}),"repositories"===x&&0===o.length?(0,t.jsxs)(E.Empty,{className:"border py-12",children:[(0,t.jsxs)(E.EmptyHeader,{children:[(0,t.jsx)(E.EmptyTitle,{children:e("noManagedRepositories")}),(0,t.jsx)(E.EmptyDescription,{children:e("manageDescription")})]}),(0,t.jsxs)(S.Button,{className:"mt-4",onClick:()=>Q(!0),children:[(0,t.jsx)(d.Plus,{})," ",e("addRepository")]})]}):es&&!ei?(0,t.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,t.jsx)(M.Spinner,{}),e("loadingPullRequests")]}):ei?.items.length===0?(0,t.jsx)(E.Empty,{className:"border py-12",children:(0,t.jsxs)(E.EmptyHeader,{children:[(0,t.jsx)(E.EmptyTitle,{children:e("empty")}),(0,t.jsx)(E.EmptyDescription,{children:e("emptyDescription")})]})}):ei?(0,t.jsx)(J,{items:ei.items,locale:a,onMerged:()=>er(x,y,b)}):null,ei&&ei.items.length>0&&en?(0,t.jsx)(C.Alert,{variant:"destructive",children:(0,t.jsxs)(C.AlertDescription,{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{children:en}),(0,t.jsxs)(S.Button,{disabled:el||!ei.endCursor,onClick:()=>void er(x,y,b,{append:!0,cursor:ei.endCursor}),size:"sm",variant:"outline",children:[(0,t.jsx)(u.RefreshCw,{})," ",e("retryLoad")]})]})}):ei?.hasNextPage&&ei.items.length>0?(0,t.jsx)("div",{className:"flex min-h-10 items-center justify-center gap-2 text-sm text-muted-foreground",ref:X,role:"status",children:el&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.Spinner,{})," ",e("loadingMore")]})}):null]}):(0,t.jsxs)(E.Empty,{className:"border py-12",children:[(0,t.jsxs)(E.EmptyHeader,{children:[(0,t.jsx)(E.EmptyMedia,{variant:"icon",children:(0,t.jsx)(l.GitPullRequest,{})}),(0,t.jsx)(E.EmptyTitle,{children:e("credentialsRequired")}),(0,t.jsx)(E.EmptyDescription,{children:e("credentialsRequiredDescription")})]}),(0,t.jsx)(S.Button,{asChild:!0,className:"mt-4",children:(0,t.jsx)(z.Link,{href:"/settings",children:e("openSettings")})})]}),(0,t.jsx)(Y,{onRepositoriesChanged:e=>{c(e),k({}),R(t=>e.some(e=>e.id===t)?t:e[0]?.id??"")},onSettingsChanged:e=>{n(e),k({})},open:W,repositories:o,settings:s,setOpen:Q,tokenConfigured:!!s?.tokenConfigured},s?.updatedAt??"loading"),(0,t.jsx)(w.JiraTicketDrawer,{issueKey:i,onClose:()=>V(null)})]})}],689257)}]);
42
+ }`,{scope:i?"REPOSITORY":"review"===e?"REVIEW_REQUESTED":"MINE",repositoryId:i,state:r,first:25,after:a.cursor??null});if(et.current[s]!==l)return;k(e=>({...e,[s]:a.append&&e[s]?{...n.githubPullRequests,items:[...e[s].items,...n.githubPullRequests.items.filter(t=>!e[s].items.some(e=>e.id===t.id))]}:n.githubPullRequests})),Q(e=>({...e,[s]:null}))}catch(t){if(et.current[s]!==l)return;let e=t instanceof Error?t.message:String(t);a.append?q(t=>({...t,[s]:e})):Q(t=>({...t,[s]:e}))}finally{a.append?er.current[s]===l&&(delete er.current[s],P(e=>({...e,[s]:!1}))):et.current[s]===l&&D(e=>({...e,[s]:!1}))}},[]),ei=F(x,y,b);(0,j.useEffect)(()=>{if(i?.tokenConfigured&&("repositories"!==x||y)&&!N[ei]&&!T[ei]&&!W[ei]){let e=window.setTimeout(()=>void es(x,y,b),0);return()=>window.clearTimeout(e)}},[x,es,T,ei,W,N,b,y,i?.tokenConfigured]),(0,j.useEffect)(()=>{if(!o.some(e=>e.id===y)){let e=window.setTimeout(()=>R(o[0]?.id??""),0);return()=>window.clearTimeout(e)}},[o,y]);let el=N[ei],en=!!T[ei],eo=!!A[ei],ed=H[ei]??null,eu=K??W[ei]??null;return(0,j.useEffect)(()=>{if(!i?.tokenConfigured||!el?.hasNextPage||!el.endCursor||en||eo||ed)return;let e=ee.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&es(x,y,b,{append:!0,cursor:el.endCursor})},{rootMargin:"400px 0px"});return t.observe(e),()=>t.disconnect()},[x,es,en,eo,el?.endCursor,el?.hasNextPage,ed,b,y,i?.tokenConfigured]),(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)(S.Button,{disabled:!i?.tokenConfigured||en,onClick:()=>void es(x,y,b),variant:"outline",children:[(0,t.jsx)(u.RefreshCw,{className:en?"animate-spin":void 0}),e("refresh")]}),(0,t.jsxs)(S.Button,{onClick:()=>Z(!0),children:[(0,t.jsx)(m.Settings2,{}),e("manage")]})]})]}),eu&&(0,t.jsx)(C.Alert,{variant:"destructive",children:(0,t.jsx)(C.AlertDescription,{children:eu})}),$?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(M.Spinner,{}),e("loading")]}):i?.tokenConfigured?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"overflow-x-auto pb-1",children:(0,t.jsx)(L.Tabs,{onValueChange:e=>p(e),value:x,children:(0,t.jsxs)(L.TabsList,{"aria-label":e("tabsLabel"),children:[(0,t.jsx)(L.TabsTrigger,{value:"mine",children:e("mine")}),(0,t.jsx)(L.TabsTrigger,{value:"review",children:e("reviewRequests")}),(0,t.jsx)(L.TabsTrigger,{value:"repositories",children:e("repositories")})]})})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsxs)(O.Select,{onValueChange:e=>v(e),value:b,children:[(0,t.jsx)(O.SelectTrigger,{"aria-label":e("stateFilter"),className:"min-w-36",children:(0,t.jsx)(O.SelectValue,{})}),(0,t.jsx)(O.SelectContent,{align:"start",children:["ALL","OPEN","CLOSED","MERGED"].map(r=>(0,t.jsx)(O.SelectItem,{value:r,children:e(`pullRequestStates.${r}`)},r))})]}),"repositories"===x&&o.length>0&&(0,t.jsx)("div",{className:"min-w-64 max-w-lg flex-1",children:(0,t.jsx)(I.SearchableSelect,{ariaLabel:e("repositoryFilter"),emptyMessage:e("noRepositoryMatches"),onValueChange:R,options:o.map(e=>({value:e.id,label:e.nameWithOwner,keywords:`${e.owner} ${e.name}`})),placeholder:e("selectRepository"),searchPlaceholder:e("searchRepositories"),value:y})})]}),el?.truncated&&(0,t.jsx)(C.Alert,{className:"border-amber-500/30 bg-amber-500/10 text-amber-800 dark:text-amber-300",children:(0,t.jsx)(C.AlertDescription,{className:"text-current",children:e("truncated")})}),"repositories"===x&&0===o.length?(0,t.jsxs)(E.Empty,{className:"border py-12",children:[(0,t.jsxs)(E.EmptyHeader,{children:[(0,t.jsx)(E.EmptyTitle,{children:e("noManagedRepositories")}),(0,t.jsx)(E.EmptyDescription,{children:e("manageDescription")})]}),(0,t.jsxs)(S.Button,{className:"mt-4",onClick:()=>Z(!0),children:[(0,t.jsx)(d.Plus,{})," ",e("addRepository")]})]}):en&&!el?(0,t.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,t.jsx)(M.Spinner,{}),e("loadingPullRequests")]}):el?.items.length===0?(0,t.jsx)(E.Empty,{className:"border py-12",children:(0,t.jsxs)(E.EmptyHeader,{children:[(0,t.jsx)(E.EmptyTitle,{children:e("empty")}),(0,t.jsx)(E.EmptyDescription,{children:e("emptyDescription")})]})}):el?(0,t.jsx)(J,{items:el.items,locale:a,onMerged:()=>es(x,y,b)}):null,el&&el.items.length>0&&ed?(0,t.jsx)(C.Alert,{variant:"destructive",children:(0,t.jsxs)(C.AlertDescription,{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{children:ed}),(0,t.jsxs)(S.Button,{disabled:eo||!el.endCursor,onClick:()=>void es(x,y,b,{append:!0,cursor:el.endCursor}),size:"sm",variant:"outline",children:[(0,t.jsx)(u.RefreshCw,{})," ",e("retryLoad")]})]})}):el?.hasNextPage&&el.items.length>0?(0,t.jsx)("div",{className:"flex min-h-10 items-center justify-center gap-2 text-sm text-muted-foreground",ref:ee,role:"status",children:eo&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M.Spinner,{})," ",e("loadingMore")]})}):null]}):(0,t.jsxs)(E.Empty,{className:"border py-12",children:[(0,t.jsxs)(E.EmptyHeader,{children:[(0,t.jsx)(E.EmptyMedia,{variant:"icon",children:(0,t.jsx)(l.GitPullRequest,{})}),(0,t.jsx)(E.EmptyTitle,{children:e("credentialsRequired")}),(0,t.jsx)(E.EmptyDescription,{children:e("credentialsRequiredDescription")})]}),(0,t.jsx)(S.Button,{asChild:!0,className:"mt-4",children:(0,t.jsx)(z.Link,{href:"/settings",children:e("openSettings")})})]}),(0,t.jsx)(Y,{onRepositoriesChanged:e=>{c(e),k({}),Q({}),R(t=>e.some(e=>e.id===t)?t:e[0]?.id??"")},onSettingsChanged:e=>{n(e),k({}),Q({})},open:X,repositories:o,settings:i,setOpen:Z,tokenConfigured:!!i?.tokenConfigured},i?.updatedAt??"loading"),(0,t.jsx)(w.JiraTicketDrawer,{issueKey:s,onClose:()=>V(null)})]})}],689257)}]);
@@ -24,4 +24,4 @@
24
24
  pullRequests { id number title url repositoryNameWithOwner }
25
25
  threads { ${I} }
26
26
  }
27
- }`);j(e.githubReviewThreads),H(null)}catch(e){H(e instanceof Error?e.message:String(e))}finally{q(!1)}},[]);(0,o.useEffect)(()=>{let e=window.setTimeout(()=>void W(),0);return()=>window.clearTimeout(e)},[W]),(0,o.useEffect)(()=>{let e=window.localStorage.getItem(N);if("cards"!==e&&"table"!==e)return;let t=window.setTimeout(()=>V(e),0);return()=>window.clearTimeout(t)},[]),(0,o.useEffect)(()=>{if(!h?.tokenConfigured||f||A)return;let e=window.setTimeout(()=>void K(),0);return()=>window.clearTimeout(e)},[K,A,f,h?.tokenConfigured]),(0,o.useEffect)(()=>{let e=()=>G(new URLSearchParams(window.location.search).get("pullRequest")??"");return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]),(0,o.useEffect)(()=>{!f||!P||f.pullRequests.some(e=>(0,d.pullRequestKey)(e)===P)||E(null,!1)},[f,P]);let X=P&&f?.pullRequests.some(e=>(0,d.pullRequestKey)(e)===P)?P:"",J=(0,o.useMemo)(()=>[{value:T,label:a("allPullRequests")},...f?.pullRequests.map(e=>({value:(0,d.pullRequestKey)(e),label:`#${e.number} ${e.title}`,description:e.repositoryNameWithOwner,keywords:`${e.repositoryNameWithOwner} ${e.number} ${e.title}`}))??[]],[f?.pullRequests,a]),Q=(0,o.useMemo)(()=>{if(!f||!M&&!$)return[];let e=f.viewerLogin.toLowerCase();return f.threads.filter(t=>(!X||(0,d.pullRequestKey)(t.pullRequest)===X)&&(t.rootComment.author?.login.toLowerCase()===e?!!M:!!$)&&(!B||!t.isResolved))},[M,$,f,B,X]),Y=(e,t)=>{j(a=>a?{...a,threads:a.threads.map(a=>a.id===e?{...a,replies:[...a.replies,t]}:a)}:a)},Z=e=>{j(t=>t?{...t,threads:t.threads.map(t=>t.id===e.id?{...t,...e}:t)}:t)};return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:a("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:a("description")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(p.Button,{disabled:!h?.tokenConfigured||A,onClick:()=>void K(),variant:"outline",children:[(0,t.jsx)(i.RefreshCw,{className:A?"animate-spin":void 0}),a("refresh")]}),(0,t.jsxs)(y.ToggleGroup,{"aria-label":a("layout"),onValueChange:e=>{("cards"===e||"table"===e)&&(V(e),window.localStorage.setItem(N,e))},size:"sm",spacing:0,type:"single",value:F,variant:"outline",children:[(0,t.jsx)(y.ToggleGroupItem,{"aria-label":a("cards"),value:"cards",children:(0,t.jsx)(r.Grid2X2,{})}),(0,t.jsx)(y.ToggleGroupItem,{"aria-label":a("table"),value:"table",children:(0,t.jsx)(s.List,{})})]})]})]}),z&&(0,t.jsx)(u.Alert,{variant:"destructive",children:(0,t.jsx)(u.AlertDescription,{children:z})}),R?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(b.Spinner,{})," ",a("loadingConfiguration")]}):h?.tokenConfigured?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Card,{className:"py-0",children:(0,t.jsxs)(m.CardContent,{className:"flex flex-wrap items-center gap-5 py-4",children:[(0,t.jsx)("div",{className:"min-w-64 flex-1",children:(0,t.jsx)(v.SearchableSelect,{ariaLabel:a("allPullRequests"),emptyMessage:a("noPullRequestMatches"),onValueChange:e=>{let t=e===T?"":e;G(t),E(t||null)},options:J,placeholder:a("allPullRequests"),searchPlaceholder:a("searchPullRequests"),value:X||T})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-5",children:[(0,t.jsx)(D,{checked:M,id:"comments-current-user",label:a("currentUser"),onCheckedChange:_}),(0,t.jsx)(D,{checked:$,id:"comments-other-users",label:a("otherUsers"),onCheckedChange:O}),(0,t.jsx)(D,{checked:B,id:"comments-unresolved",label:a("unresolved"),onCheckedChange:U})]})]})}),f?.truncated&&(0,t.jsx)(u.Alert,{children:(0,t.jsx)(u.AlertDescription,{children:a("truncated")})}),A&&!f?(0,t.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,t.jsx)(b.Spinner,{})," ",a("loading")]}):"cards"===F?0===Q.length?(0,t.jsx)(S,{}):(0,t.jsx)("div",{className:"space-y-5",children:Q.map(e=>(0,t.jsx)(c.ReviewThreadCard,{onReplyAdded:Y,onStateChanged:Z,thread:e},e.id))}):(0,t.jsx)(L,{threads:Q})]}):(0,t.jsxs)(x.Empty,{className:"border py-12",children:[(0,t.jsxs)(x.EmptyHeader,{children:[(0,t.jsx)(x.EmptyMedia,{variant:"icon",children:(0,t.jsx)(l.MessageSquareText,{})}),(0,t.jsx)(x.EmptyTitle,{children:a("credentialsRequired")}),(0,t.jsx)(x.EmptyDescription,{children:a("credentialsDescription")})]}),(0,t.jsx)(p.Button,{asChild:!0,className:"mt-4",children:(0,t.jsx)(w.Link,{href:"/settings",children:a("openSettings")})})]})]})}])}]);
27
+ }`);j(e.githubReviewThreads),H(null)}catch(e){H(e instanceof Error?e.message:String(e))}finally{q(!1)}},[]);(0,o.useEffect)(()=>{let e=window.setTimeout(()=>void W(),0);return()=>window.clearTimeout(e)},[W]),(0,o.useEffect)(()=>{let e=window.localStorage.getItem(N);if("cards"!==e&&"table"!==e)return;let t=window.setTimeout(()=>V(e),0);return()=>window.clearTimeout(t)},[]),(0,o.useEffect)(()=>{if(!h?.tokenConfigured||f||A||z)return;let e=window.setTimeout(()=>void K(),0);return()=>window.clearTimeout(e)},[z,K,A,f,h?.tokenConfigured]),(0,o.useEffect)(()=>{let e=()=>G(new URLSearchParams(window.location.search).get("pullRequest")??"");return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]),(0,o.useEffect)(()=>{!f||!P||f.pullRequests.some(e=>(0,d.pullRequestKey)(e)===P)||E(null,!1)},[f,P]);let X=P&&f?.pullRequests.some(e=>(0,d.pullRequestKey)(e)===P)?P:"",J=(0,o.useMemo)(()=>[{value:T,label:a("allPullRequests")},...f?.pullRequests.map(e=>({value:(0,d.pullRequestKey)(e),label:`#${e.number} ${e.title}`,description:e.repositoryNameWithOwner,keywords:`${e.repositoryNameWithOwner} ${e.number} ${e.title}`}))??[]],[f?.pullRequests,a]),Q=(0,o.useMemo)(()=>{if(!f||!M&&!$)return[];let e=f.viewerLogin.toLowerCase();return f.threads.filter(t=>(!X||(0,d.pullRequestKey)(t.pullRequest)===X)&&(t.rootComment.author?.login.toLowerCase()===e?!!M:!!$)&&(!B||!t.isResolved))},[M,$,f,B,X]),Y=(e,t)=>{j(a=>a?{...a,threads:a.threads.map(a=>a.id===e?{...a,replies:[...a.replies,t]}:a)}:a)},Z=e=>{j(t=>t?{...t,threads:t.threads.map(t=>t.id===e.id?{...t,...e}:t)}:t)};return(0,t.jsxs)("section",{className:"mx-auto flex w-full max-w-[1800px] flex-col gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:a("title")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:a("description")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)(p.Button,{disabled:!h?.tokenConfigured||A,onClick:()=>void K(),variant:"outline",children:[(0,t.jsx)(i.RefreshCw,{className:A?"animate-spin":void 0}),a("refresh")]}),(0,t.jsxs)(y.ToggleGroup,{"aria-label":a("layout"),onValueChange:e=>{("cards"===e||"table"===e)&&(V(e),window.localStorage.setItem(N,e))},size:"sm",spacing:0,type:"single",value:F,variant:"outline",children:[(0,t.jsx)(y.ToggleGroupItem,{"aria-label":a("cards"),value:"cards",children:(0,t.jsx)(r.Grid2X2,{})}),(0,t.jsx)(y.ToggleGroupItem,{"aria-label":a("table"),value:"table",children:(0,t.jsx)(s.List,{})})]})]})]}),z&&(0,t.jsx)(u.Alert,{variant:"destructive",children:(0,t.jsx)(u.AlertDescription,{children:z})}),R?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(b.Spinner,{})," ",a("loadingConfiguration")]}):h?.tokenConfigured?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Card,{className:"py-0",children:(0,t.jsxs)(m.CardContent,{className:"flex flex-wrap items-center gap-5 py-4",children:[(0,t.jsx)("div",{className:"min-w-64 flex-1",children:(0,t.jsx)(v.SearchableSelect,{ariaLabel:a("allPullRequests"),emptyMessage:a("noPullRequestMatches"),onValueChange:e=>{let t=e===T?"":e;G(t),E(t||null)},options:J,placeholder:a("allPullRequests"),searchPlaceholder:a("searchPullRequests"),value:X||T})}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-5",children:[(0,t.jsx)(D,{checked:M,id:"comments-current-user",label:a("currentUser"),onCheckedChange:_}),(0,t.jsx)(D,{checked:$,id:"comments-other-users",label:a("otherUsers"),onCheckedChange:O}),(0,t.jsx)(D,{checked:B,id:"comments-unresolved",label:a("unresolved"),onCheckedChange:U})]})]})}),f?.truncated&&(0,t.jsx)(u.Alert,{children:(0,t.jsx)(u.AlertDescription,{children:a("truncated")})}),A&&!f?(0,t.jsxs)("div",{className:"flex items-center gap-2 py-10 text-sm text-muted-foreground",children:[(0,t.jsx)(b.Spinner,{})," ",a("loading")]}):"cards"===F?0===Q.length?(0,t.jsx)(S,{}):(0,t.jsx)("div",{className:"space-y-5",children:Q.map(e=>(0,t.jsx)(c.ReviewThreadCard,{onReplyAdded:Y,onStateChanged:Z,thread:e},e.id))}):(0,t.jsx)(L,{threads:Q})]}):(0,t.jsxs)(x.Empty,{className:"border py-12",children:[(0,t.jsxs)(x.EmptyHeader,{children:[(0,t.jsx)(x.EmptyMedia,{variant:"icon",children:(0,t.jsx)(l.MessageSquareText,{})}),(0,t.jsx)(x.EmptyTitle,{children:a("credentialsRequired")}),(0,t.jsx)(x.EmptyDescription,{children:a("credentialsDescription")})]}),(0,t.jsx)(p.Button,{asChild:!0,className:"mt-4",children:(0,t.jsx)(w.Link,{href:"/settings",children:a("openSettings")})})]})]})}])}]);
@@ -54,12 +54,13 @@
54
54
  "mock:db": "rm -f prisma/mock.db prisma/mock.db-shm prisma/mock.db-wal && DATABASE_URL=file:./prisma/mock.db prisma migrate deploy",
55
55
  "mock:seed": "DATABASE_URL=file:./prisma/mock.db tsx scripts/seed-mock-data.ts",
56
56
  "mock:reset": "npm run generate:prisma && npm run mock:db && npm run mock:seed",
57
- "screenshots:build": "SCREENSHOT_DIST_DIR=.next-mock AGENT_WS_HOSTNAME=127.0.0.1 AGENT_WS_PORT=39091 next build",
58
- "screenshots:browsers": "playwright install chromium",
59
- "screenshots": "npm run generate && npm run screenshots:browsers && npm run mock:db && npm run mock:seed && npm run screenshots:build && playwright test",
60
- "screenshots:run": "playwright test",
61
- "screenshots:walkthrough": "playwright test playwright/walkthrough.spec.ts",
57
+ "screenshots:build": "SCREENSHOT_DIST_DIR=.next-mock AGENT_WS_HOSTNAME=127.0.0.1 next build",
58
+ "screenshots:browsers": "playwright install chromium webkit",
59
+ "screenshots": "node scripts/run-screenshots.mjs",
60
+ "screenshots:run": "node scripts/run-screenshots.mjs --skip-setup",
61
+ "screenshots:walkthrough": "node scripts/run-screenshots.mjs --skip-setup playwright/walkthrough.spec.ts",
62
62
  "screenshots:copy": "node scripts/copy-screenshots.mjs",
63
+ "screenshots:copy:walkthrough": "node scripts/copy-screenshots.mjs --include-videos",
63
64
  "schema:copy": "node scripts/copy-schema.mjs",
64
65
  "schema:publish": "node scripts/publish-schema.mjs",
65
66
  "full-check": "npm run generate && npm run format && npm run lint:fix && npm run type-check:generated && npm run test:run && npm run agent:test:run && npm run check-translations && npm run build:generated && npm run postbuild",