github-issue-tower-defence-management 2.75.2 → 2.75.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/adapter/entry-points/console/ui-dist/assets/{index-C3mPdCqN.js → index-PI1daTPG.js}
RENAMED
|
@@ -85,5 +85,5 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
85
85
|
`)}),o+=1,r=[])};for(let e of t){if(a){r.push(e),Vl(e)&&(a=!1);continue}if(i===null&&zl(e)){s(),i=[];continue}if(i!==null){if(Vl(e)){n.push({kind:`mermaid`,key:`mermaid:${o}`,code:i.join(`
|
|
86
86
|
`)}),o+=1,i=null;continue}i.push(e);continue}if(Bl(e)){r.push(e),a=!0;continue}r.push(e)}return i!==null&&r.push("```mermaid",...i),s(),n},Ul=({code:e,label:t=`Copy code`})=>(0,x.jsx)(Mn,{value:e,idleText:t,idleAriaLabel:t,copiedAriaLabel:`Code copied to clipboard`,className:`console-copy-code-button`}),Wl=`https://cdn.jsdelivr.net/npm/mermaid@10.9.6/dist/mermaid.min.js`,Gl=null,Kl=0,ql=e=>(e.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`dark`,themeVariables:{background:`#0d1117`,primaryColor:`#161b22`,primaryTextColor:`#e6edf3`,primaryBorderColor:`#30363d`,lineColor:`#8b949e`,fontSize:`14px`}}),e),Jl=()=>Gl===null?window.mermaid===void 0?(Gl=new Promise((e,t)=>{let n=document.createElement(`script`);n.src=Wl,n.async=!0,n.onload=()=>{if(window.mermaid===void 0){t(Error(`mermaid failed to load`));return}e(ql(window.mermaid))},n.onerror=()=>t(Error(`mermaid script failed to load`)),document.head.appendChild(n)}),Gl):(Gl=Promise.resolve(ql(window.mermaid)),Gl):Gl,Yl=async e=>{let t=await Jl();Kl+=1;let n=`console-mermaid-${Kl}`,{svg:r}=await t.render(n,e);return Gs.sanitize(r,{USE_PROFILES:{svg:!0,svgFilters:!0},ADD_TAGS:[`foreignObject`]})},Xl=.5,Zl=e=>Number.isNaN(e)||e<1?1:e>6?6:e,Ql=e=>Zl(Zl(e)+Xl),$l=e=>Zl(Zl(e)-Xl),eu=e=>Zl(e)<=1,tu=e=>Zl(e)>=6,nu=e=>`${Math.round(Zl(e)*100)}%`,ru=e=>`${Zl(e)*100}%`,iu=({svg:e,onClose:t})=>{let[n,r]=(0,y.useState)(1),i=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let t=i.current;if(t===null)return;t.innerHTML=e;let n=t.querySelector(`svg`);n!==null&&(n.style.removeProperty(`max-width`),n.style.setProperty(`width`,`100%`),n.style.setProperty(`height`,`auto`))},[e]),(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[t]),(0,x.jsxs)(`div`,{className:`console-mermaid-modal`,role:`dialog`,"aria-modal":`true`,"aria-label":`Enlarged diagram`,children:[(0,x.jsxs)(`div`,{className:`console-mermaid-modal-bar`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-mermaid-modal-button`,"aria-label":`Zoom out`,disabled:eu(n),onClick:()=>r($l(n)),children:`−`}),(0,x.jsx)(`span`,{className:`console-mermaid-modal-scale`,children:nu(n)}),(0,x.jsx)(`button`,{type:`button`,className:`console-mermaid-modal-button`,"aria-label":`Zoom in`,disabled:tu(n),onClick:()=>r(Ql(n)),children:`+`}),(0,x.jsx)(`button`,{type:`button`,className:`console-mermaid-modal-close`,"aria-label":`Close enlarged diagram`,onClick:t,children:`✕`})]}),(0,x.jsx)(`div`,{className:`console-mermaid-modal-viewport`,children:(0,x.jsx)(`div`,{ref:i,className:`console-mermaid-modal-canvas`,style:{width:ru(n)}})})]})},au=({code:e})=>{let[t,n]=(0,y.useState)({status:`loading`}),[r,i]=(0,y.useState)(!1),a=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let t=!1;return n({status:`loading`}),Yl(e).then(e=>{t||n({status:`ready`,svg:e})}).catch(e=>{t||n({status:`error`,message:e instanceof Error?e.message:String(e)})}),()=>{t=!0}},[e]),(0,y.useEffect)(()=>{let e=a.current;e!==null&&(e.innerHTML=t.status===`ready`?t.svg:``)},[t]),t.status===`loading`?(0,x.jsx)(`div`,{className:`console-mermaid-loading`,children:`Rendering diagram...`}):t.status===`error`?(0,x.jsxs)(`div`,{className:`console-mermaid`,children:[(0,x.jsxs)(`div`,{className:`console-mermaid-error`,children:[`Mermaid render error: `,t.message]}),(0,x.jsx)(`pre`,{className:`console-mermaid-source`,children:(0,x.jsx)(`code`,{children:e})})]}):(0,x.jsxs)(`div`,{className:`console-mermaid`,children:[(0,x.jsx)(`div`,{ref:a,className:`console-mermaid-rendered`}),(0,x.jsx)(`button`,{type:`button`,className:`console-mermaid-enlarge`,onClick:()=>i(!0),children:`Enlarge diagram`}),r&&(0,x.jsx)(iu,{svg:t.svg,onClose:()=>i(!1)})]})},ou=e=>{let t=e.querySelectorAll(`a[href]`),n=[];return t.forEach((e,t)=>{let r=e.getAttribute(`href`)??``;if(fo(r)===null)return;let i=e.textContent??r,a=document.createElement(`span`);a.className=`console-markdown-reference-host`,e.replaceWith(a),n.push({key:`${t}:${r}`,host:a,href:r,fallbackText:i})}),n},su=e=>{let t=e.querySelectorAll(`pre > code`),n=[];return t.forEach((e,t)=>{let r=e.parentElement;if(r===null)return;let i=e.textContent??``,a=document.createElement(`div`);a.className=`console-markdown-code-block`;let o=document.createElement(`div`);o.className=`console-markdown-code-copy-host`,r.replaceWith(a),a.append(o,r),n.push({key:`code:${t}`,host:o,code:i})}),n},cu=({source:e,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r})=>{let i=(0,y.useMemo)(()=>{let n=Rl(e,r);return t===void 0?n:yo(n,t)},[e,t,r]),a=(0,y.useRef)(null),[o,s]=(0,y.useState)([]),[c,l]=(0,y.useState)([]);return(0,y.useEffect)(()=>{let e=a.current;e!==null&&(e.innerHTML=i,l(su(e)),s(n===void 0?[]:ou(e)))},[i,n]),(0,x.jsxs)(`div`,{ref:a,className:`console-markdown`,children:[c.map(e=>(0,E.createPortal)((0,x.jsx)(Ul,{code:e.code}),e.host,e.key)),n!==void 0&&o.map(e=>(0,E.createPortal)(n(e.href,e.fallbackText),e.host,e.key))]})},lu=({body:e,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r})=>{let i=(0,y.useMemo)(()=>Hl(e),[e]);return e.trim()===``?(0,x.jsx)(`p`,{className:`console-markdown-empty`,children:`No description provided.`}):(0,x.jsx)(`div`,{className:`console-markdown-view`,children:i.map(e=>e.kind===`mermaid`?(0,x.jsx)(au,{code:e.code},e.key):(0,x.jsx)(cu,{source:e.source,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r},e.key))})},uu=({title:e,count:t=null,defaultCollapsed:n=!1,headerAction:r,children:i})=>{let[a,o]=(0,y.useState)(n),s=t===null?e:`${e} (${t})`;return(0,x.jsxs)(`section`,{className:`console-panel`,children:[(0,x.jsxs)(`header`,{className:`console-panel-header`,children:[(0,x.jsxs)(`button`,{type:`button`,className:`console-panel-toggle`,"aria-expanded":!a,onClick:()=>o(e=>!e),children:[(0,x.jsx)(`span`,{className:`console-panel-caret`,children:a?`▸`:`▾`}),(0,x.jsx)(`span`,{className:`console-panel-title`,children:s})]}),r!==void 0&&(0,x.jsx)(`div`,{className:`console-panel-action`,children:r})]}),!a&&(0,x.jsx)(`div`,{className:`console-panel-body`,children:i})]})},du=e=>{switch(e){case`added`:return{label:`A`,color:`#3fb950`};case`modified`:return{label:`M`,color:`#d29922`};case`removed`:return{label:`D`,color:`#f85149`};case`renamed`:return{label:`R`,color:`#a371f7`};case`changed`:return{label:`M`,color:`#d29922`};default:return{label:`?`,color:`#8b949e`}}},fu=()=>({directories:new Map,files:[]}),pu=e=>e.split(`/`).filter(e=>e!==``),mu=(e,t)=>e.name.localeCompare(t.name),hu=(e,t)=>{let n=[];e.directories.forEach((e,r)=>{let i=t===``?r:`${t}/${r}`;n.push({kind:`directory`,name:r,path:i,children:hu(e,i)})}),n.sort(mu);let r=e.files.map(e=>({kind:`file`,name:pu(e.path).at(-1)??e.path,path:e.path,file:e}));return r.sort(mu),[...n,...r]},gu=e=>{let t=fu();for(let n of e){let e=pu(n.path);if(e.length===0){t.files.push(n);continue}let r=e.slice(0,-1),i=t;for(let e of r){let t=i.directories.get(e);if(t===void 0){let t=fu();i.directories.set(e,t),i=t;continue}i=t}i.files.push(n)}return hu(t,``)},_u=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,vu=e=>{let t=[],n=0,r=0;for(let i of e.split(`
|
|
87
87
|
`)){if(i.startsWith(`@@`)){let e=i.match(_u);e!==null&&(n=Number(e[1]),r=Number(e[2])),t.push({kind:`hunk`,oldLineNumber:null,newLineNumber:null,content:i});continue}if(i.startsWith(`+`)){t.push({kind:`add`,oldLineNumber:null,newLineNumber:r,content:i}),r+=1;continue}if(i.startsWith(`-`)){t.push({kind:`del`,oldLineNumber:n,newLineNumber:null,content:i}),n+=1;continue}t.push({kind:`ctx`,oldLineNumber:n,newLineNumber:r,content:i}),n+=1,r+=1}return t},yu=[`.png`,`.jpg`,`.jpeg`,`.gif`,`.webp`,`.svg`,`.avif`,`.bmp`,`.ico`],bu=e=>{let t=e.toLowerCase();return yu.some(e=>t.endsWith(e))},xu=e=>e.kind===`add`||e.kind===`ctx`?e.newLineNumber===null?null:{line:e.newLineNumber,side:`RIGHT`}:e.kind===`del`?e.oldLineNumber===null?null:{line:e.oldLineNumber,side:`LEFT`}:null,Su=e=>`${e.kind}:${e.oldLineNumber??`x`}:${e.newLineNumber??`x`}:${e.content}`,Cu=({target:e,onSubmit:t,onClose:n})=>{let[r,i]=(0,y.useState)(``),[a,o]=(0,y.useState)({kind:`idle`}),s=async()=>{let n=r.trim();if(n.length!==0&&a.kind!==`posting`){o({kind:`posting`});try{await t(e.path,e.line,e.side,n),i(``),o({kind:`posted`})}catch(e){o({kind:`error`,message:e instanceof Error?e.message:`failed to post`})}}};return(0,x.jsxs)(`div`,{className:`console-diff-composer`,children:[(0,x.jsxs)(`div`,{className:`console-diff-composer-anchor`,children:[`commenting on line `,e.line,` (`,e.side,`)`]}),a.kind===`posted`?(0,x.jsx)(`p`,{className:`console-diff-composer-posted`,children:`Comment saved.`}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`textarea`,{className:`console-diff-composer-input`,rows:3,placeholder:`Leave a review comment on this line…`,value:r,onChange:e=>i(e.target.value)}),(0,x.jsxs)(`div`,{className:`console-diff-composer-controls`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-diff-composer-submit`,disabled:a.kind===`posting`,onClick:()=>{s()},children:`Comment`}),(0,x.jsx)(`button`,{type:`button`,className:`console-diff-composer-cancel`,onClick:n,children:`Cancel`}),a.kind===`posting`&&(0,x.jsx)(`span`,{className:`console-diff-composer-status`,children:`Posting…`}),a.kind===`error`&&(0,x.jsxs)(`span`,{role:`alert`,className:`console-diff-composer-status console-diff-composer-error`,children:[`Failed: `,a.message]})]})]})]})},wu=({patch:e,path:t,rawUrl:n,buildImageProxyUrl:r,onAddInlineComment:i})=>{let[a,o]=(0,y.useState)(null);if(e===null||e===``){if(t!==void 0&&n!=null){if(n.startsWith(`data:image/`))return(0,x.jsx)(`div`,{className:`console-file-diff-image`,children:(0,x.jsx)(`img`,{className:`console-file-diff-image-content`,src:n,alt:t})});if(bu(t)&&r!==void 0)return(0,x.jsx)(`div`,{className:`console-file-diff-image`,children:(0,x.jsx)(`img`,{className:`console-file-diff-image-content`,src:r(n),alt:t})})}return(0,x.jsx)(`p`,{className:`console-file-diff-empty`,children:`(no diff / binary or too large)`})}let s=vu(e),c=i!==void 0&&t!==void 0&&t.length>0,l=c?4:3;return(0,x.jsx)(`table`,{className:`console-file-diff`,children:(0,x.jsx)(`tbody`,{children:s.map(e=>{let n=Su(e),r=c?xu(e):null,s=a!==null&&r!==null&&a.line===r.line&&a.side===r.side;return(0,x.jsxs)(y.Fragment,{children:[(0,x.jsxs)(`tr`,{className:`console-diff-row console-diff-${e.kind}`,children:[c&&(0,x.jsx)(`td`,{className:`console-diff-comment-cell`,children:r!==null&&t!==void 0&&(0,x.jsx)(`button`,{type:`button`,className:`console-diff-comment-button`,"aria-label":`Comment on line ${r.line} (${r.side})`,"aria-expanded":s,onClick:()=>o(s?null:{path:t,line:r.line,side:r.side}),children:`+`})}),(0,x.jsx)(`td`,{className:`console-diff-ln`,children:e.oldLineNumber??``}),(0,x.jsx)(`td`,{className:`console-diff-ln`,children:e.newLineNumber??``}),(0,x.jsx)(`td`,{className:`console-diff-code`,children:e.content})]}),s&&i!==void 0&&a!==null&&(0,x.jsx)(`tr`,{className:`console-diff-composer-row`,children:(0,x.jsx)(`td`,{colSpan:l,children:(0,x.jsx)(Cu,{target:a,onSubmit:i,onClose:()=>o(null)})})})]},n)})})})},Tu=e=>({paddingLeft:`${e*16}px`}),Eu=({file:e,depth:t,name:n,buildImageProxyUrl:r,onAddInlineComment:i})=>{let[a,o]=(0,y.useState)(!1),s=du(e.status);return(0,x.jsxs)(`li`,{className:`console-file`,children:[(0,x.jsxs)(`button`,{type:`button`,className:`console-file-row`,style:Tu(t),"aria-expanded":a,onClick:()=>o(e=>!e),children:[(0,x.jsx)(`span`,{className:`console-file-caret`,children:a?`▾`:`▸`}),(0,x.jsx)(`span`,{className:`console-file-badge`,style:{color:s.color,borderColor:s.color},children:s.label}),(0,x.jsx)(`span`,{className:`console-file-path`,children:n}),(0,x.jsxs)(`span`,{className:`console-file-stat console-file-add`,children:[`+`,e.additions]}),(0,x.jsxs)(`span`,{className:`console-file-stat console-file-del`,children:[`-`,e.deletions]})]}),a&&(0,x.jsx)(wu,{patch:e.patch,path:e.path,rawUrl:e.rawUrl,buildImageProxyUrl:r,onAddInlineComment:i})]})},Du=({node:e,depth:t,buildImageProxyUrl:n,onAddInlineComment:r})=>e.kind===`file`?(0,x.jsx)(Eu,{file:e.file,depth:t,name:e.name,buildImageProxyUrl:n,onAddInlineComment:r}):(0,x.jsxs)(`li`,{className:`console-file-tree-dir`,children:[(0,x.jsxs)(`div`,{className:`console-file-tree-dir-name`,style:Tu(t),children:[(0,x.jsx)(`span`,{className:`console-file-tree-dir-icon`,"aria-hidden":`true`,children:`📁`}),e.name]}),(0,x.jsx)(`ul`,{className:`console-file-tree-children`,children:e.children.map(e=>(0,x.jsx)(Du,{node:e,depth:t+1,buildImageProxyUrl:n,onAddInlineComment:r},e.path))})]}),Ou=({files:e,isLoading:t,error:n,buildImageProxyUrl:r,onAddInlineComment:i})=>{if(n!==null)return(0,x.jsx)(`p`,{className:`console-files-notloaded`,children:`Not loaded.`});if(t)return(0,x.jsx)(`p`,{className:`console-files-loading`,children:`Loading changed files...`});if(e.length===0)return(0,x.jsx)(`p`,{className:`console-files-empty`,children:`No changed files.`});let a=gu(e);return(0,x.jsx)(`ul`,{className:`console-files console-file-tree`,children:a.map(e=>(0,x.jsx)(Du,{node:e,depth:0,buildImageProxyUrl:r,onAddInlineComment:i},e.path))})},ku=e=>e.split(`
|
|
88
|
-
`).find(e=>e.trim()!==``)??``,Au=e=>`${e.author}:${e.createdAt}:${e.body}`,ju=`console-comment-expanded:`,Mu=e=>{try{let t=localStorage.getItem(ju+e);if(t===null)return new Set;let n=JSON.parse(t);return Array.isArray(n)?new Set(n.filter(e=>typeof e==`string`)):new Set}catch(e){return console.error(`Failed to load comment expanded state from storage:`,e),new Set}},Nu=(e,t)=>{try{localStorage.setItem(ju+e,JSON.stringify([...t]))}catch(e){console.error(`Failed to save comment expanded state to storage:`,e)}},Pu=({comment:e,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r})=>{let i=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let e=i.current;if(!e)return;let t=e=>e.stopPropagation();return e.addEventListener(`click`,t),()=>e.removeEventListener(`click`,t)},[]),(0,x.jsx)(`div`,{ref:i,className:`console-comment-body-expanded`,children:(0,x.jsx)(lu,{body:e.body,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r})})},Fu=({comments:e,isLoading:t,error:n,now:r,workflowImprovementIssueUrl:i=null,buildImageProxyUrl:a,renderReferenceLink:o,repoContext:s,persistenceKey:c=null})=>{let[l,u]=(0,y.useState)(!1),[d,f]=(0,y.useState)(()=>c==null?new Set:Mu(c)),p=e.length>0?Au(e[e.length-1]):null;(0,y.useEffect)(()=>{p!==null&&f(e=>new Set([...e,p]))},[p]),(0,y.useEffect)(()=>{c!=null&&Nu(c,d)},[c,d]);let m=e=>{f(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})};if(n!==null)return(0,x.jsx)(`p`,{className:`console-comment-notloaded`,children:`Not loaded.`});if(t)return(0,x.jsx)(`p`,{className:`console-comment-loading`,children:`Loading comments...`});if(e.length===0)return(0,x.jsx)(`p`,{className:`console-comment-empty`,children:`No comments.`});let h=!l&&e.length>1;return(0,x.jsxs)(`div`,{className:`console-comment-list`,children:[h&&(0,x.jsxs)(`button`,{type:`button`,className:`console-comment-show-all`,onClick:()=>u(!0),children:[`Show all `,e.length]}),e.map(e=>{let t=Au(e),n=d.has(t);return(0,x.jsxs)(`article`,{className:`console-comment${n?` is-expanded`:h?` console-comment--expandable`:``}`,children:[(0,x.jsxs)(`button`,{type:`button`,className:`console-comment-toggle`,onClick:()=>m(t),"aria-expanded":n,children:[(0,x.jsx)(`span`,{className:`console-comment-author`,children:e.author}),(0,x.jsx)(`span`,{className:`console-comment-time`,children:me(e.createdAt,r)}),!n&&(0,x.jsx)(`span`,{className:`console-comment-body-preview`,children:ku(e.body)})]}),i!==null&&e.url!==null&&(0,x.jsx)(`a`,{href:ho(i,e.url),target:`_blank`,rel:`noreferrer`,className:`console-comment-report-link`,"aria-label":`Create workflow incident report for this comment`,children:`⚡`}),n&&(0,x.jsx)(Pu,{comment:e,buildImageProxyUrl:a,renderReferenceLink:o,repoContext:s})]},t)})]})},Iu=e=>e.slice(0,7),Lu=e=>e.split(`
|
|
88
|
+
`).find(e=>e.trim()!==``)??``,Au=e=>`${e.author}:${e.createdAt}:${e.body}`,ju=`console-comment-expanded:`,Mu=e=>{try{let t=localStorage.getItem(ju+e);if(t===null)return new Set;let n=JSON.parse(t);return Array.isArray(n)?new Set(n.filter(e=>typeof e==`string`)):new Set}catch(e){return console.error(`Failed to load comment expanded state from storage:`,e),new Set}},Nu=(e,t)=>{try{localStorage.setItem(ju+e,JSON.stringify([...t]))}catch(e){console.error(`Failed to save comment expanded state to storage:`,e)}},Pu=({comment:e,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r})=>{let i=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let e=i.current;if(!e)return;let t=e=>e.stopPropagation();return e.addEventListener(`click`,t),()=>e.removeEventListener(`click`,t)},[]),(0,x.jsx)(`div`,{ref:i,className:`console-comment-body-expanded`,children:(0,x.jsx)(lu,{body:e.body,buildImageProxyUrl:t,renderReferenceLink:n,repoContext:r})})},Fu=({comments:e,isLoading:t,error:n,now:r,workflowImprovementIssueUrl:i=null,buildImageProxyUrl:a,renderReferenceLink:o,repoContext:s,persistenceKey:c=null})=>{let[l,u]=(0,y.useState)(!1),[d,f]=(0,y.useState)(()=>c==null?new Set:Mu(c)),p=e.length>0?Au(e[e.length-1]):null;(0,y.useEffect)(()=>{p!==null&&f(e=>new Set([...e,p]))},[p]),(0,y.useEffect)(()=>{c!=null&&Nu(c,d)},[c,d]);let m=e=>{f(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})};if(n!==null)return(0,x.jsx)(`p`,{className:`console-comment-notloaded`,children:`Not loaded.`});if(t)return(0,x.jsx)(`p`,{className:`console-comment-loading`,children:`Loading comments...`});if(e.length===0)return(0,x.jsx)(`p`,{className:`console-comment-empty`,children:`No comments.`});let h=!l&&e.length>1;return(0,x.jsxs)(`div`,{className:`console-comment-list`,children:[h&&(0,x.jsxs)(`button`,{type:`button`,className:`console-comment-show-all`,onClick:()=>{u(!0),f(t=>new Set([...t,...e.map(Au)]))},children:[`Show all `,e.length]}),e.map(e=>{let t=Au(e),n=d.has(t);return(0,x.jsxs)(`article`,{className:`console-comment${n?` is-expanded`:h?` console-comment--expandable`:``}`,children:[(0,x.jsxs)(`button`,{type:`button`,className:`console-comment-toggle`,onClick:()=>m(t),"aria-expanded":n,children:[(0,x.jsx)(`span`,{className:`console-comment-author`,children:e.author}),(0,x.jsx)(`span`,{className:`console-comment-time`,children:me(e.createdAt,r)}),!n&&(0,x.jsx)(`span`,{className:`console-comment-body-preview`,children:ku(e.body)})]}),i!==null&&e.url!==null&&(0,x.jsx)(`a`,{href:ho(i,e.url),target:`_blank`,rel:`noreferrer`,className:`console-comment-report-link`,"aria-label":`Create workflow incident report for this comment`,children:`⚡`}),n&&(0,x.jsx)(Pu,{comment:e,buildImageProxyUrl:a,renderReferenceLink:o,repoContext:s})]},t)})]})},Iu=e=>e.slice(0,7),Lu=e=>e.split(`
|
|
89
89
|
`)[0],Ru=({commits:e,isLoading:t,error:n,now:r})=>n===null?t?(0,x.jsx)(`p`,{className:`console-commits-loading`,children:`Loading commits...`}):e.length===0?(0,x.jsx)(`p`,{className:`console-commits-empty`,children:`No commits.`}):(0,x.jsx)(`ul`,{className:`console-commits`,children:e.map(e=>(0,x.jsxs)(`li`,{className:`console-commit`,children:[(0,x.jsx)(`span`,{className:`console-commit-message`,children:Lu(e.message)}),(0,x.jsx)(`span`,{className:`console-commit-sha`,children:Iu(e.sha)}),(0,x.jsx)(`span`,{className:`console-commit-author`,children:e.author}),(0,x.jsx)(`span`,{className:`console-commit-time`,children:me(e.authoredAt,r)})]},e.sha))}):(0,x.jsx)(`p`,{className:`console-commits-notloaded`,children:`Not loaded.`}),zu=({url:e,label:t=`Copy URL`})=>(0,x.jsx)(Mn,{value:e,idleText:`Copy URL`,idleAriaLabel:t,copiedAriaLabel:`URL copied to clipboard`,className:`console-copy-url-button`}),Bu=e=>{let t=new Map;for(let n of e){let e=t.get(n.message);if(e===void 0){t.set(n.message,[n.section]);continue}e.push(n.section)}return Array.from(t,([e,t])=>({message:e,sections:t}))},Vu=e=>e.length<=1?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e[e.length-1]}`,Hu=({failures:e})=>e.length===0?null:(0,x.jsx)(`div`,{role:`alert`,className:`console-detail-fetch-error`,children:Bu(e).map(e=>(0,x.jsxs)(`p`,{className:`console-detail-fetch-error-line`,children:[`Failed to load `,Vu(e.sections),`:`,` `,e.message]},e.message))}),Uu={MERGEABLE:{color:`GREEN`,label:`No conflict`,title:`This pull request has no merge conflicts`,modifier:`console-detail-mergeable-chip-ok`},CONFLICTING:{color:`RED`,label:`Conflict`,title:`This pull request has merge conflicts`,modifier:`console-detail-mergeable-chip-conflict`},UNKNOWN:{color:`GRAY`,label:`Checking merge status`,title:`GitHub has not finished computing the merge status yet`,modifier:`console-detail-mergeable-chip-unknown`}},Q=({mergeableStatus:e})=>{let t=Uu[e],n=se(t.color);return(0,x.jsx)(`span`,{className:`console-detail-status-chip console-detail-mergeable-chip ${t.modifier}`,style:{color:n.fg,borderColor:n.border,backgroundColor:n.bg},title:t.title,children:t.label})},Wu=e=>{let t=se(e);return{color:t.fg,borderColor:t.border,backgroundColor:t.bg}},Gu=({isPassedAllCiJob:e,isCiStateSuccess:t,isBranchOutOfDate:n,missingRequiredCheckNames:r})=>{let i=e&&t,a=i?`GREEN`:`RED`,o=i?`CI passing`:`CI failing`,s=!i&&r.length>0?`missing: ${r.join(`, `)}`:null;return(0,x.jsxs)(`span`,{className:`console-detail-pr-status`,children:[(0,x.jsxs)(`span`,{className:`console-detail-status-chip console-detail-ci-chip`,style:Wu(a),title:s??o,children:[o,s!==null&&(0,x.jsxs)(`span`,{className:`console-detail-ci-missing`,children:[` `,`(`,s,`)`]})]}),n&&(0,x.jsx)(`span`,{className:`console-detail-status-chip console-detail-outofdate-chip`,style:Wu(`YELLOW`),title:`This branch is out of date with the base branch`,children:`Out of date`})]})},Ku=({pullRequest:e,body:t,bodyIsLoading:n,files:r,filesAreLoading:i,filesError:a,commits:o,commitsAreLoading:s,commitsError:c,now:l,buildImageProxyUrl:u,renderReferenceLink:d,onAddInlineComment:f})=>{let p=e.summary,m=fo(e.url),h=m===null?void 0:{owner:m.owner,repo:m.repo},g=i||a!==null?null:r.length,_=s||c!==null?null:o.length;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`div`,{className:`console-pr-header`,children:[(0,x.jsx)(`a`,{href:e.url,className:`console-pr-section-title`,target:`_blank`,rel:`noopener noreferrer`,children:p?.title??e.url}),e.isDraft&&(0,x.jsx)(`span`,{className:`console-pr-section-state`,children:`draft`}),(0,x.jsx)(Q,{mergeableStatus:e.mergeableStatus}),(0,x.jsx)(Gu,{isPassedAllCiJob:e.isPassedAllCiJob,isCiStateSuccess:e.isCiStateSuccess,isBranchOutOfDate:e.isBranchOutOfDate,missingRequiredCheckNames:e.missingRequiredCheckNames}),(0,x.jsx)(`a`,{href:e.url,className:`console-panel-open-link`,target:`_blank`,rel:`noopener noreferrer`,children:`open`}),(0,x.jsx)(zu,{url:e.url,label:`Copy PR URL`}),(0,x.jsxs)(`div`,{className:`console-pr-statbar`,children:[m!==null&&(0,x.jsxs)(`span`,{className:`console-pr-repo`,children:[m.owner,`/`,m.repo]}),e.branchName!==null&&(0,x.jsx)(`span`,{className:`console-pr-branch`,children:e.branchName}),p!==null&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`span`,{className:`console-pr-add`,children:[`+`,p.additions]}),(0,x.jsxs)(`span`,{className:`console-pr-del`,children:[`-`,p.deletions]}),(0,x.jsxs)(`span`,{className:`console-pr-files-count`,children:[p.changedFiles,` files`]})]})]})]}),(0,x.jsx)(uu,{title:`Description`,children:n?(0,x.jsx)(`p`,{className:`console-pr-body-loading`,children:`Loading description...`}):(0,x.jsx)(lu,{body:p?.body??t,buildImageProxyUrl:u,renderReferenceLink:d,repoContext:h})}),(0,x.jsx)(uu,{title:`Changed files`,count:g,children:(0,x.jsx)(Ou,{files:r,isLoading:i,error:a,buildImageProxyUrl:u,onAddInlineComment:f})}),(0,x.jsx)(uu,{title:`Commits`,count:_,defaultCollapsed:!0,children:(0,x.jsx)(Ru,{commits:o,isLoading:s,error:c,now:l})})]})},qu=({item:e,storyName:t,storyColorEnum:n,overlayStatus:r,statusOptions:i,state:a,body:o,bodyIsLoading:s,bodyError:c,comments:l,commentsAreLoading:u,commentsError:d,files:f,filesAreLoading:p,filesError:m,commits:h,commitsAreLoading:g,commitsError:_,stateError:v,pullRequestStatus:y,pullRequestStatusError:b,relatedPullRequests:S,relatedPullRequestsError:C,now:w,commentComposer:T,operationBar:E,buildImageProxyUrl:ee,renderReferenceLink:D,onAddInlineComment:te,workflowImprovementIssueUrl:ne=null})=>{let re=a?.state??`open`,ie=a?.merged??!1,O=!e.isPr&&re===`closed`?`Closed`:null,ae=po(e.nameWithOwner)??void 0,oe=se(n),k=r===null?e.status===null?null:{name:e.status,color:i.find(t=>t.name===e.status)?.color??`GRAY`}:r,A=k===null?null:se(k.color),j=p||m!==null?null:f.length,ce=u||d!==null?null:l.length,M=g||_!==null?null:h.length,N=!u&&d===null&&l.length>0,P=e=>{let t=fo(e);return t===null?e:`PR #${t.number}`},F=[{section:`item state`,message:v},{section:`pull request status`,message:e.isPr?b:null},{section:`description`,message:c},{section:`comments`,message:d},{section:`changed files`,message:e.isPr?m:null},{section:`commits`,message:e.isPr?_:null},{section:`related pull requests`,message:e.isPr?null:C},...S.flatMap(e=>[{section:`changed files of ${P(e.pullRequest.url)}`,message:e.filesError},{section:`commits of ${P(e.pullRequest.url)}`,message:e.commitsError}])].flatMap(e=>e.message===null?[]:[{section:e.section,message:e.message}]),I=e.isPr&&y?.found?[{url:e.url,mergeableStatus:y.mergeableStatus}]:[];return(0,x.jsxs)(`article`,{className:`console-detail`,children:[(0,x.jsxs)(`div`,{className:`console-detail-header`,children:[(0,x.jsxs)(`h2`,{className:`console-detail-title`,children:[(0,x.jsx)(ve,{isPr:e.isPr,state:re,merged:ie,isDraft:!1,stateReason:``}),(0,x.jsx)(`span`,{className:`console-detail-title-text`,children:e.title}),(0,x.jsx)(`span`,{className:`console-detail-number`,children:e.isPr?`PR #${e.number}`:`#${e.number}`})]}),(0,x.jsxs)(`div`,{className:`console-detail-topline`,children:[k!==null&&A!==null&&(0,x.jsx)(`span`,{className:`console-detail-status-chip`,style:{color:A.fg,borderColor:A.border,backgroundColor:A.bg},children:k.name}),e.agent!==null&&e.agent!==``&&(0,x.jsx)(`span`,{className:`console-detail-agent-chip`,children:e.agent}),t!==null&&(0,x.jsxs)(`span`,{className:`console-storytag`,children:[(0,x.jsx)(`span`,{className:`console-story-dot`,style:{backgroundColor:oe.dot}}),t]}),e.isPr&&y?.found&&(0,x.jsx)(Gu,{isPassedAllCiJob:y.isPassedAllCiJob,isCiStateSuccess:y.isCiStateSuccess,isBranchOutOfDate:y.isBranchOutOfDate,missingRequiredCheckNames:y.missingRequiredCheckNames}),!e.isPr&&S.map(e=>(0,x.jsxs)(`span`,{className:`console-related-pr-group`,children:[S.length>1&&(0,x.jsx)(`span`,{className:`console-related-pr-label`,children:P(e.pullRequest.url)}),(0,x.jsx)(Gu,{isPassedAllCiJob:e.pullRequest.isPassedAllCiJob,isCiStateSuccess:e.pullRequest.isCiStateSuccess,isBranchOutOfDate:e.pullRequest.isBranchOutOfDate,missingRequiredCheckNames:e.pullRequest.missingRequiredCheckNames}),(0,x.jsx)(Q,{mergeableStatus:e.pullRequest.mergeableStatus})]},e.pullRequest.url)),I.map(e=>(0,x.jsx)(Q,{mergeableStatus:e.mergeableStatus},e.url)),O!==null&&(0,x.jsx)(`span`,{className:`console-detail-closed-label`,children:O})]}),(0,x.jsx)(Hu,{failures:F}),(0,x.jsxs)(`div`,{className:`console-detail-subbar`,children:[(0,x.jsxs)(`a`,{href:e.url,className:`console-detail-link`,target:`_blank`,rel:`noopener noreferrer`,children:[`#`,e.number]}),(0,x.jsx)(`span`,{className:`console-detail-repo`,children:e.repo}),(0,x.jsxs)(`span`,{className:`console-detail-createdat`,title:he(e.createdAt),children:[`opened `,me(e.createdAt,w)]}),(0,x.jsx)(zu,{url:e.url}),ne!==null&&(0,x.jsx)(`a`,{href:ho(ne,e.url),target:`_blank`,rel:`noreferrer`,className:`console-detail-report-link`,"aria-label":`Create workflow incident report for this task`,children:`⚡`}),e.labels.map(e=>(0,x.jsx)(`span`,{className:`console-label-chip`,children:e},e))]})]}),(0,x.jsxs)(`div`,{className:`console-detail-body`,children:[(0,x.jsx)(uu,{title:`Description`,defaultCollapsed:N,headerAction:(0,x.jsx)(`a`,{href:e.url,className:`console-panel-open-link`,target:`_blank`,rel:`noopener noreferrer`,children:`open`}),children:c===null?s?(0,x.jsx)(`p`,{className:`console-detail-body-loading`,children:`Loading description...`}):(0,x.jsx)(lu,{body:o,buildImageProxyUrl:ee,renderReferenceLink:D,repoContext:ae}):(0,x.jsx)(`p`,{className:`console-detail-body-notloaded`,children:`Not loaded.`})},N?`desc-collapsed`:`desc-open`),e.isPr&&(0,x.jsx)(uu,{title:`Changed files`,count:j,children:(0,x.jsx)(Ou,{files:f,isLoading:p,error:m,onAddInlineComment:te})}),(0,x.jsx)(uu,{title:`Comments`,count:ce,children:(0,x.jsx)(Fu,{comments:l,isLoading:u,error:d,now:w,workflowImprovementIssueUrl:ne,buildImageProxyUrl:ee,renderReferenceLink:D,repoContext:ae,persistenceKey:e.url})}),e.isPr&&(0,x.jsx)(uu,{title:`Commits`,count:M,defaultCollapsed:!0,children:(0,x.jsx)(Ru,{commits:h,isLoading:g,error:_,now:w})}),!e.isPr&&S.map(e=>(0,x.jsx)(Ku,{pullRequest:e.pullRequest,body:e.pullRequest.summary?.body??``,bodyIsLoading:!1,files:e.files,filesAreLoading:e.filesAreLoading,filesError:e.filesError,commits:e.commits,commitsAreLoading:e.commitsAreLoading,commitsError:e.commitsError,now:w,buildImageProxyUrl:ee,renderReferenceLink:D,onAddInlineComment:te},e.pullRequest.url))]}),(0,x.jsxs)(`div`,{className:`console-detail-dock`,children:[(0,x.jsx)(`div`,{className:`console-detail-dock-composer`,children:T}),(0,x.jsx)(`div`,{className:`console-actionbar`,children:E})]})]})},Ju=({className:e,ariaLabel:t,placeholder:n,currentOption:r,options:i,onSelect:a})=>{let o=(0,y.useRef)({ready:!1,currentOptionId:r?.id??null});return(0,y.useLayoutEffect)(()=>{o.current.ready=!0,o.current.currentOptionId=r?.id??null}),(0,x.jsxs)(`select`,{className:e,defaultValue:r?.id??``,onChange:e=>{if(!o.current.ready||e.target.value===(o.current.currentOptionId??``))return;let t=i.find(t=>t.id===e.target.value);t!==void 0&&a(t)},"aria-label":t,children:[(0,x.jsx)(`option`,{value:``,children:n}),i.map(e=>(0,x.jsx)(`option`,{value:e.id,children:e.name},e.id))]})},Yu=({agentOptions:e,currentAgentName:t,onSetAgent:n})=>{if(e.length===0)return null;let r=t===null?null:e.find(e=>e.name===t)??null;return(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(Ju,{className:`console-agent-select`,ariaLabel:`Set agent`,placeholder:`— agent —`,currentOption:r,options:e,onSelect:n},r?.id??`none`)})},Xu=({onClose:e})=>(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>e(`close_not_planned`),children:`Close as not planned`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>e(`close`),children:`Close`})]}),Zu=({onDeleteAllComments:e,onDeleteStory:t,storyNameForDeletion:n})=>{let[r,i]=(0,y.useState)(!1),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(!1),[l,u]=(0,y.useState)(null),d=()=>{e(),i(!1)},f=()=>{o(!0),u(null)},p=async()=>{if(t){c(!0),u(null);try{await t()}catch(e){u(e instanceof Error?e.message:String(e)),c(!1)}}};return(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:()=>i(e=>!e),children:`⚠`}),r&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:d,children:`Delete All Comments`}),t!=null&&(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:f,disabled:a,children:`Delete Story`})]}),a&&(0,x.jsxs)(`div`,{className:`console-story-delete-confirm`,role:`dialog`,"aria-modal":`true`,"aria-label":`Confirm story deletion`,children:[(0,x.jsxs)(`p`,{className:`console-story-delete-confirm-message`,children:[`Delete story option "`,n,`" from the GitHub custom field? Open tasks assigned to this story will be closed.`]}),l!==null&&(0,x.jsx)(`p`,{role:`alert`,className:`console-list-error`,children:l}),(0,x.jsxs)(`div`,{className:`console-story-delete-confirm-actions`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-danger`,onClick:()=>void p(),disabled:s,children:s?`Deleting…`:`Delete`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>{o(!1),u(null)},disabled:s,children:`Cancel`})]})]})]})},Qu=({isManualTriage:e,onSetNextActionDate:t})=>(0,x.jsxs)(`div`,{className:`console-op-group`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1hour`),children:`+1 hour`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_3hours`),children:`+3 hours`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_6hours`),children:`+6 hours`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1day`),children:`+1 day`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_2days`),children:`+2 days`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_3days`),children:`+3 days`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_5days`),children:`+5 days`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1week`),children:e?`+1 week and skip`:`+1 week`}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-snooze`,onClick:()=>t(`snooze_1month`),children:`+1 month`})]}),$u=[{action:`unnecessary`,label:`Unnecessary`,variant:`unneeded`},{action:`totally_wrong`,label:`Totally wrong`,variant:`wrong`},{action:`request_changes`,label:`Reject`,variant:`reject`},{action:`approve_and_merge`,label:`Approve & Merge`,variant:`approve`}],ed=`Reject needs an inline comment on the diff.`,td=({onReview:e,rejectEnabled:t})=>(0,x.jsxs)(`div`,{className:`console-op-group console-op-group-review`,children:[!t&&(0,x.jsx)(`p`,{className:`console-op-requirement`,children:ed}),$u.map(n=>{let r=n.action===`request_changes`&&!t;return(0,x.jsx)(`button`,{type:`button`,className:`console-op-button console-op-button-${n.variant}`,disabled:r,onClick:()=>e(n.action),children:n.label},n.action)})]}),nd=({onSetDependedIssueUrl:e})=>{let[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(``),[a,o]=(0,y.useState)(!1),[s,c]=(0,y.useState)(null);return(0,x.jsxs)(`div`,{className:`console-op-group console-op-group-rare-actions`,children:[(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>{n(e=>!e),c(null)},title:`Rare actions`,children:`⋯`}),t&&e!==null&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`input`,{type:`url`,className:`console-settings-modal-input`,placeholder:`Depended issue URL`,value:r,onChange:e=>i(e.target.value),disabled:a}),(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:async()=>{if(e!==null&&r.trim()!==``){o(!0),c(null);try{await e(r.trim()),i(``),n(!1)}catch(e){c(e instanceof Error?e.message:`Failed to set depended issue URL`)}finally{o(!1)}}},disabled:a||r.trim()===``,children:a?`...`:`Set Depended Issue`})]}),s!==null&&(0,x.jsx)(`p`,{className:`console-settings-modal-error`,children:s})]})},rd=(e,t)=>{let n=t.toLowerCase();return e.find(e=>e.name.toLowerCase()===n)??null},id=({statusOptions:e,onSetStatus:t,onSetInTmuxByHuman:n})=>{let r=le.map(t=>({name:t,option:rd(e,t)})).filter(e=>e.option!==null);return r.length===0?null:(0,x.jsx)(`div`,{className:`console-op-group`,children:r.map(({name:e,option:r})=>{let i=se(r.color),a=e===F;return(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,style:{color:i.fg,borderColor:i.border,backgroundColor:i.bg},onClick:()=>a?n(r):t(r),children:r.name},r.id)})})},ad=({storyOptions:e,currentStoryName:t,onSetStory:n})=>{if(e.length===0)return null;let r=t===null?null:e.find(e=>e.name===t)??null;return(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(Ju,{className:`console-story-select`,ariaLabel:`Set story`,placeholder:`— story —`,currentOption:r,options:e,onSelect:n},r?.id??`none`)})},od=({tab:e,hasPullRequest:t,rejectEnabled:n,statusOptions:r,storyOptions:i,currentStoryName:a,agentOptions:o,currentAgentName:s,handlers:c,storyNameForDeletion:l})=>{let[u,d]=(0,y.useState)(!1);return(0,x.jsxs)(`div`,{className:`console-operation-bar`,children:[t&&(0,x.jsx)(td,{onReview:c.onReview,rejectEnabled:n}),(0,x.jsx)(Qu,{isManualTriage:ue(e),onSetNextActionDate:c.onSetNextActionDate}),(0,x.jsx)(id,{statusOptions:r,onSetStatus:c.onSetStatus,onSetInTmuxByHuman:c.onSetInTmuxByHuman}),u&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(ad,{storyOptions:i,currentStoryName:a,onSetStory:c.onSetStory}),(0,x.jsx)(Yu,{agentOptions:o,currentAgentName:s,onSetAgent:c.onSetAgent})]}),(0,x.jsxs)(`div`,{className:`console-op-group-bottom-row`,children:[(0,x.jsxs)(`div`,{className:`console-op-group-left-pair`,children:[(i.length>0||o.length>0)&&(0,x.jsx)(`div`,{className:`console-op-group`,children:(0,x.jsx)(`button`,{type:`button`,className:`console-op-button`,onClick:()=>d(e=>!e),title:`Change agent or story`,children:`⚙`})}),(0,x.jsx)(nd,{onSetDependedIssueUrl:c.onSetDependedIssueUrl}),(0,x.jsx)(Zu,{onDeleteAllComments:c.onDeleteAllComments,onDeleteStory:c.onDeleteStory,storyNameForDeletion:l})]}),(0,x.jsx)(Xu,{onClose:c.onClose})]})]})},sd=(e,t,n,r)=>{let i=t===null?void 0:e.peek(t),[a,o]=(0,y.useState)(i??r),[s,c]=(0,y.useState)(t!==null&&i===void 0),[l,u]=(0,y.useState)(null);return(0,y.useEffect)(()=>{if(t===null||n===null)return;let r=e.peek(t);if(r!==void 0){o(r),c(!1),u(null);return}let i=!1;return c(!0),u(null),e.load(t,n).then(e=>{i||(o(e),c(!1))}).catch(e=>{i||(u(e instanceof Error?e.message:String(e)),c(!1))}),()=>{i=!0}},[e,t,n]),{data:a,isLoading:s,error:l}},cd=[],ld=[],ud=[],dd=[],fd={state:`open`,merged:!1,isPullRequest:!1,title:``},pd={found:!1,isConflicted:!1,mergeableStatus:`UNKNOWN`,isPassedAllCiJob:!1,isCiStateSuccess:!1,isBranchOutOfDate:!1,missingRequiredCheckNames:[]},md=(e,t,n)=>{let r=t===null?null:`${t.repo}#${t.number}`,i=t===null?null:t.url,a=t?.isPr??!1,o=sd(e.body,r,i,``),s=sd(e.state,r,i,fd),c=sd(e.comments,r,i,cd),l=sd(e.files,a?r:null,a?i:null,ld),u=sd(e.commits,a?r:null,a?i:null,ud),d=sd(e.prStatus,a?r:null,a?i:null,pd),f=!a&&((t?.relatedOpenPullRequestUrls.length??0)>0||n===`prs`),p=sd(e.relatedPrs,f?r:null,f?i:null,dd),[m,h]=(0,y.useState)([]);return(0,y.useEffect)(()=>{if(a||p.data.length===0){h([]);return}let t=!1,n=p.data.map(e=>({pullRequest:e,files:ld,filesAreLoading:!0,filesError:null,commits:ud,commitsAreLoading:!0,commitsError:null}));h(n);let r=(e,n)=>{t||h(t=>t.map(t=>t.pullRequest.url===e?{...t,...n}:t))};for(let t of p.data){let n=t.url;e.files.load(n,t.url).then(e=>r(t.url,{files:e,filesAreLoading:!1})).catch(e=>r(t.url,{filesAreLoading:!1,filesError:e instanceof Error?e.message:String(e)})),e.commits.load(n,t.url).then(e=>r(t.url,{commits:e,commitsAreLoading:!1})).catch(e=>r(t.url,{commitsAreLoading:!1,commitsError:e instanceof Error?e.message:String(e)}))}return()=>{t=!0}},[e,a,p.data]),{state:s.data,body:o.data,bodyIsLoading:o.isLoading,bodyError:o.error,comments:c.data,commentsAreLoading:c.isLoading,commentsError:c.error,files:l.data,filesAreLoading:l.isLoading,filesError:l.error,commits:u.data,commitsAreLoading:u.isLoading,commitsError:u.error,stateError:s.error,pullRequestStatus:a?d.data:null,pullRequestStatusError:a?d.error:null,relatedPullRequests:m,relatedPullRequestsError:a?null:p.error}},hd=e=>JSON.stringify([e.author,e.createdAt,e.body]),gd=(e,t)=>{let n=new Set(e.map(hd));return[...e,...t.filter(e=>!n.has(hd(e)))]},_d=({href:e,fallbackText:t,state:n})=>{if(n===null||n.title.trim()===``)return(0,x.jsx)(`a`,{className:`console-markdown-reference console-markdown-reference-plain`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:t});let r=fo(e);return(0,x.jsxs)(`a`,{className:`console-markdown-reference`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:[(0,x.jsx)(ve,{...mo(n)}),(0,x.jsx)(`span`,{className:`console-markdown-reference-title`,children:n.title}),r!==null&&(0,x.jsxs)(`span`,{className:`console-markdown-reference-number`,children:[`#`,r.number]})]})},vd=(e,t)=>{let[n,r]=(0,y.useState)(()=>e.peek(t)??null);return(0,y.useEffect)(()=>{let n=e.peek(t);if(n!==void 0){r(n);return}let i=!1;return r(null),e.load(t,t).then(e=>{i||r(e)}).catch(()=>{i||r(null)}),()=>{i=!0}},[e,t]),n},$=({cache:e,href:t,fallbackText:n})=>{let r=vd(e,t);return(0,x.jsx)(_d,{href:t,fallbackText:n,state:r})},yd=e=>({itemUrl:e.url,projectItemId:e.projectItemId,itemNumber:e.number,repo:e.repo,isPr:e.isPr}),bd=(e,t,n,r,i)=>({...yd(t),apiPath:ra,requestBody:oa(e,t,n,r,i)}),xd=(e,t,n,r)=>({...yd(t),apiPath:ia,requestBody:sa(e,t,n,r)}),Sd=(e,t)=>({...yd(t),apiPath:aa,requestBody:ca(e,t)}),Cd=({tab:e,item:t,caches:n,operations:r,pjcode:i,statusOptions:a,storyOptions:o,agentOptions:s,storyColors:c,storyName:l,overlayStatus:u,now:d,initialCommentDraft:f,onCommentDraftChange:p,onQueueAction:m,onDeleteStory:h,storyNameForDeletion:g,workflowImprovementIssueUrl:_})=>{let v=md(n,t,e),b=(0,y.useCallback)(e=>vo(e,t.url),[t.url]),S=(0,y.useCallback)((e,t)=>(0,x.jsx)($,{cache:n.state,href:e,fallbackText:t}),[n.state]),C=t.isPr||t.relatedOpenPullRequestUrls.length>0||v.relatedPullRequests.length>0,[w,T]=(0,y.useState)([]),E=(0,y.useCallback)(async(e,t,n,r)=>{T(i=>[...i,{path:e,line:t,side:n,body:r}])},[]),[ee,D]=(0,y.useState)([]),te=(0,y.useCallback)(async e=>{let n=await r.addComment(t,e);return D(e=>[...e,n]),n},[t,r]),ne={onReview:e=>{let n=t.isPr?t.url:v.relatedPullRequests[0]?.pullRequest.url??t.relatedOpenPullRequestUrls[0]??t.url,a=e===`request_changes`?w:[];m({kind:{type:`review`,action:e},item:t,commit:()=>r.reviewPullRequest(t,n,e,a),offline:i==null?void 0:bd(i,t,n,e,a)})},onSetNextActionDate:e=>{m({kind:{type:`next_action_date`,action:e},item:t,commit:()=>r.setNextActionDate(t,e),offline:i==null?void 0:xd(i,t,e)})},onSetStory:e=>{m({kind:{type:`set_story`,optionName:e.name},item:t,commit:()=>r.setStory(t,e),offline:i==null?void 0:xd(i,t,`set_story`,{storyOptionId:e.id})})},onSetAgent:e=>{m({kind:{type:`set_agent`,optionName:e.name},item:t,commit:()=>r.setAgent(t,e),offline:i==null?void 0:xd(i,t,`set_agent`,{agentOptionId:e.id})})},onSetStatus:e=>{m({kind:{type:`set_status`,optionName:e.name},item:t,commit:()=>r.setStatus(t,e),offline:i==null?void 0:xd(i,t,`set_status`,{statusName:e.name})})},onSetInTmuxByHuman:e=>{m({kind:{type:`set_in_tmux_by_human`,optionName:e.name},item:t,commit:()=>r.setInTmuxByHuman(t,e),offline:i==null?void 0:Sd(i,t)})},onClose:e=>{m({kind:{type:`close`,action:e},item:t,commit:()=>r.closeIssue(t,e),offline:i==null?void 0:xd(i,t,e)})},onOkAndAwaitingWorkspace:e=>{m({kind:{type:`ok_and_awaiting_workspace`},item:t,commit:()=>r.okAndMoveToAwaitingWorkspace(t,e)})},onDeleteAllComments:()=>{m({kind:{type:`delete_all_comments`},item:t,commit:()=>r.deleteAllComments(t)})},onDeleteStory:h??null,onSetDependedIssueUrl:i==null?null:async e=>{await r.setDependedIssueUrl(t,e)}},re=a.find(e=>e.name===`Awaiting Workspace`)??null,ie=re===null?void 0:async e=>(p?.(``),ne.onSetStatus(re),te(e)),ae=l??(t.story.trim()===``?null:t.story),oe=ae===null?null:O(c,ae);return(0,x.jsx)(qu,{item:t,storyName:ae,storyColorEnum:oe,overlayStatus:u,statusOptions:a,state:v.state,stateError:v.stateError,body:v.body,bodyIsLoading:v.bodyIsLoading,bodyError:v.bodyError,comments:gd(v.comments,ee),commentsAreLoading:v.commentsAreLoading,commentsError:v.commentsError,files:v.files,filesAreLoading:v.filesAreLoading,filesError:v.filesError,commits:v.commits,commitsAreLoading:v.commitsAreLoading,commitsError:v.commitsError,pullRequestStatus:v.pullRequestStatus,pullRequestStatusError:v.pullRequestStatusError,relatedPullRequests:v.relatedPullRequests,relatedPullRequestsError:v.relatedPullRequestsError,now:d,buildImageProxyUrl:b,renderReferenceLink:S,onAddInlineComment:E,workflowImprovementIssueUrl:_,commentComposer:(0,x.jsx)(lo,{initiallyOpen:!0,initialDraft:f,onSubmit:te,onDraftChange:p,onOkAndAwaitingWorkspace:re===null?void 0:()=>ne.onOkAndAwaitingWorkspace(re),onSubmitAndMoveToAwaitingWorkspace:ie,onUploadFile:e=>r.uploadAttachment(t,e)}),operationBar:(0,x.jsx)(od,{tab:e,item:t,hasPullRequest:C,rejectEnabled:w.length>0,statusOptions:a,storyOptions:o,currentStoryName:ae,agentOptions:s,currentAgentName:t.agent,handlers:ne,storyNameForDeletion:g})})},wd=()=>{let e={};for(let t of ee)e[t.name]=0;return e},Td=`console`,Ed=()=>{let e=_a(),t=Vi(),n=br(),r=n.status===`on`?n.snapshot:null,{snapshots:i,isLoading:a,error:o,refreshSingleTab:s}=Ja(e,r),{timerMode:c,projectMinutes:l,isOpen:u,draftTimerMode:d,draftProjectMinutes:f,openSettings:p,closeSettings:m,saveSettings:h,toggleDraftTimerMode:g,changeDraftMinutes:_}=eo(),{pjcodes:v,workflowImprovementIssueUrl:b,isLoading:C}=va(),{isTimerExpired:w}=xa(e),E=ha(e??Td),D=ba(e),te=(0,y.useMemo)(()=>{let e=wd();for(let t of ee){let n=i[t.name];n!==null&&(t.name===`stories`?e[t.name]=n.stories.filter(e=>e.color!==`GRAY`).length:e[t.name]=Qi(n.items,ea(E.overlay,n.generatedAt),t.name))}return e},[i,E.overlay]),ie=Ji(e,te),{activeTab:O,selectedItemKey:oe,openItem:A,closeItem:se,selectTab:j}=ie,ce=(0,y.useRef)(new Map),M=(0,y.useCallback)(e=>{oe!==null&&(e?ce.current.set(oe,e):ce.current.delete(oe))},[oe]),N=Ni(r),P=da(e,O,E,N,(0,y.useCallback)(()=>s(`queued`),[s])),F=Ai(),[I,le]=(0,y.useState)(()=>Date.now());(0,y.useEffect)(()=>{let e=setInterval(()=>{le(Date.now())},1e3);return()=>{clearInterval(e)}},[]);let[ue,de]=(0,y.useState)(()=>navigator.onLine);(0,y.useEffect)(()=>{let e=()=>de(!0),t=()=>de(!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,t),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,t)}},[]);let[L,fe]=(0,y.useState)(new Map),[R,pe]=(0,y.useState)(new Map),[me,he]=(0,y.useState)(new Set);(0,y.useEffect)(()=>{if(!(!ue||F.offlineActions.length===0))for(let e of F.offlineActions)L.has(e.id)||me.has(e.id)||(fe(t=>new Map(t).set(e.id,null)),N.client.fetchIssueState(e.itemUrl).then(t=>{fe(n=>new Map(n).set(e.id,t)),e.isPr&&(pe(t=>new Map(t).set(e.id,null)),N.client.fetchPullRequestStatus(e.itemUrl).then(t=>{pe(n=>new Map(n).set(e.id,t))}).catch(e=>{console.warn(`Failed to fetch PR status for offline action:`,e)}))}).catch(t=>{console.warn(`Failed to fetch current state for offline action:`,t),he(t=>new Set(t).add(e.id))}))},[ue,F.offlineActions,N.client,L,me]);let[ge,_e]=(0,y.useState)(!1),ve=(0,y.useCallback)(async e=>{_e(!0);try{await F.confirmOfflineAction(e)}finally{_e(!1)}},[F]),ye=(0,y.useMemo)(()=>F.offlineActions.map(e=>{let t=L.get(e.id)??null,n=R.get(e.id)??null,r=me.has(e.id);return{id:e.id,message:e.message,color:e.color,itemNumber:e.itemNumber,isPr:e.isPr,currentTitle:r?null:t?.title??null,currentState:r||t===null?null:t.merged?`closed`:t.state,currentPrStatus:n,fetchError:r}}),[F.offlineActions,L,R,me]),be=i[O],Ce=(0,y.useMemo)(()=>be===null?[]:$i(be.items,ea(E.overlay,be.generatedAt),O),[be,E.overlay,O]),[we,Ee]=(0,y.useState)(null),De=(0,y.useMemo)(()=>{if(O!==`prs`)return{};let e={};for(let t of Ce)t.agent!==null&&t.agent!==``&&(e[t.agent]=(e[t.agent]??0)+1);return e},[Ce,O]);(0,y.useEffect)(()=>{O===`prs`&&we!==null&&(De[we]??0)===0&&Ee(null)},[De,we,O]);let Oe=(0,y.useMemo)(()=>O!==`prs`||we===null?Ce:Ce.filter(e=>e.agent===we),[Ce,O,we]),ke=(0,y.useMemo)(()=>Oe.map(e=>Xi(e)),[Oe]),Ae=be?.storyOrder??[],je=(0,y.useMemo)(()=>k(Oe,E.overlay,Ae,be?.generatedAt??null),[Oe,E.overlay,Ae,be]),Me=be?.storyColors??{},Ne=be?.statusOptions??[],Pe=be?.agentOptions??[],Fe=be?.storyOptions??[],Ie=be?.generatedAt??null,Le=be?.fromCache??!1,[Re,ze]=(0,y.useState)(null),Be=(0,y.useMemo)(()=>oe===null||be===null?null:be.items.find(e=>e.projectItemId===oe)??null,[oe,be]);zi(N,Be,Ce),(0,y.useEffect)(()=>{oe!==null&&window.scrollTo({top:0})},[oe]),(0,y.useEffect)(()=>{if(e===null&&c&&v.length>0){let e=$a(v,null,l);e!==null&&to(`/projects/${e}`)}},[e,c,v,l]);let Ve=te[O],He=(0,y.useRef)({tab:O,count:Ve});(0,y.useEffect)(()=>{let e=He.current;if(He.current={tab:O,count:Ve},e.tab===O&&e.count>0&&Ve===0){let e=Hi(O,te);e!==null&&(j(e),se())}},[O,Ve,te,j,se]);let Ue=Be===null?null:ta(E.overlay,Be,i[O]?.generatedAt??null),We=Be===null?null:ae(Be,E.overlay,i[O]?.generatedAt??null),Ge=(0,y.useCallback)(e=>{let t=ro(ke,e);t===null?se():A(t)},[ke,A,se]),Ke=(0,y.useCallback)(t=>{if(n.status===`on`){F.showError(`Airplane mode`,`This action requires a network connection. Turn off airplane mode and try again.`);return}let r=Xi(t.item);F.enqueue({message:yi(t.kind,t.item,O),color:_i(t.kind),commit:t.commit,offline:t.offline,revertAdvance:t.revertAdvance,advance:()=>{if(t.onAdvance?.(),!t.skipAdvance&&vi(t.kind,O)){if(c&&w(l[e??``]??0)){let t=$a(v,e,l);t!==null&&no(`/projects/${t}`)}else Ge(r)}}})},[F,O,Ge,n.status,c,w,l,e,v]),qe=Ma((0,y.useCallback)(e=>{if(oe===null||e===null)return;let t=e===`next`?io(ke,oe):ao(ke,oe);t!==null&&A(t)},[oe,ke,A])),[Je,Ye]=(0,y.useState)(()=>localStorage.getItem(`console-story-show-gray`)===`true`),Xe=(0,y.useCallback)(()=>{Ye(e=>{let t=!e;return localStorage.setItem(`console-story-show-gray`,String(t)),t})},[]),Ze=i.stories,Qe=Ze?.stories??[],$e=Re!==null&&Re.generatedAt===Ze?.generatedAt?Re.stories:Qe,et=Ze?.defaultNameWithOwner??null,tt=(0,y.useMemo)(()=>Be===null||!Be.labels.includes(`story`)?null:$e.find(e=>e.storyName===Be.story)??null,[Be,$e]),nt=(0,y.useCallback)(async(t,n)=>{if(e===null)throw Error(`No project specified in the URL path.`);if(et===null)throw Error(`No repository configured for this project.`);await Qr({pjcode:e,title:n,storyOptionId:t,nameWithOwner:et})},[e,et]),rt=(0,y.useCallback)(async(t,n)=>{if(e===null)throw Error(`No project specified in the URL path.`);await ei({pjcode:e,storyOptionId:t,direction:n});let r=$e.findIndex(e=>e.storyOptionId===t);if(r!==-1){let e=r+(n===`up`?-1:1);if(e>=0&&e<$e.length){let t=[...$e],n=t[r];t[r]=t[e],t[e]=n,ze({generatedAt:Ze?.generatedAt,stories:t})}}},[e,$e,Ze?.generatedAt]),it=(0,y.useCallback)(async t=>{if(e===null)throw Error(`No project specified in the URL path.`);await Kr({pjcode:e,storyName:t})},[e]),[at,ot]=(0,y.useState)({}),[st,ct]=(0,y.useState)(null),[lt,ut]=(0,y.useState)({}),dt=(0,y.useCallback)((t,n)=>{let r=$e.find(e=>e.storyOptionId===t)?.color;if(ct(t),ot(e=>({...e,[t]:n})),ut(e=>{let n={...e};return delete n[t],n}),e===null||et===null){ot(e=>r===void 0?e:{...e,[t]:r}),ut(e=>({...e,[t]:`No project or repository configured.`})),ct(e=>e===t?null:e);return}Zr({pjcode:e,storyOptionId:t,newColor:n,nameWithOwner:et}).catch(e=>{ot(e=>r===void 0?e:{...e,[t]:r}),ut(n=>({...n,[t]:e instanceof Error?e.message:String(e)}))}).finally(()=>{ct(e=>e===t?null:e)})},[e,et,$e]),ft=(0,y.useCallback)(async t=>{if(e===null)throw Error(`No project specified in the URL path.`);await ii({pjcode:e,storyOptionId:t}),ze({generatedAt:Ze?.generatedAt,stories:$e.filter(e=>e.storyOptionId!==t)})},[e,$e,Ze?.generatedAt]),pt=(0,y.useCallback)(async(t,n)=>{if(e===null)throw Error(`No project specified in the URL path.`);await oi({pjcode:e,storyOptionId:t,newName:n});let r=$e.map(e=>e.storyOptionId===t?{...e,storyName:n}:e);ze({generatedAt:Ze?.generatedAt,stories:r})},[e,$e,Ze?.generatedAt]),mt=Oa(Ce,N.comments,O===`prs`),ht=(0,y.useCallback)((e,t)=>{Ke({kind:{type:`ok_and_awaiting_workspace`},item:e,commit:()=>P.okAndMoveToAwaitingWorkspace(e,t),skipAdvance:!0,onAdvance:()=>{E.patchOverlay(Xi(e),{done:!0,status:{name:t.name,color:t.color}},O)},revertAdvance:()=>{E.patchOverlay(Xi(e),{done:!1},O)}})},[Ke,P,E,O]);return(0,x.jsxs)(`main`,{className:`console-app`,children:[F.pending!==null&&(0,x.jsx)(qn,{message:F.pending.message,color:F.pending.color,remainingSeconds:F.pending.remainingSeconds,progress:F.pending.progress,onUndo:F.undo}),F.error!==null&&(0,x.jsx)(Jn,{title:F.error.message,message:`Operation failed: ${F.error.reason}`,onDismiss:F.dismissError}),(0,x.jsx)(Kn,{actions:ye,isOnline:ue,isConfirming:ge,onConfirm:ve,onDiscard:F.discardOfflineAction}),D.isOpen&&(0,x.jsx)(S,{value:D.inputValue,onChange:D.changeInput,isLoading:D.isLoading,isSaving:D.isSaving,error:D.error,onSave:D.save,onClose:D.close}),(0,x.jsx)(ne,{activeTab:O,counts:te,pjcode:e,pjcodes:v,generatedAt:Ie,fromCache:Le,tabHref:ie.tabHref,onSelectTab:ie.selectTab,onSelectProject:e=>no(`/projects/${e}`),settingsButton:(0,x.jsxs)(x.Fragment,{children:[e!==null&&(0,x.jsx)(`button`,{type:`button`,className:`console-tab-settings-button`,"aria-label":`Open project settings`,onClick:D.open,children:`⚙`}),(0,x.jsx)(re,{isOpen:u,timerMode:d,projectMinutes:f,pjcodes:v,isLoadingPjcodes:C,onOpen:p,onToggleTimerMode:g,onChangeMinutes:_,onSave:h,onClose:m})]}),airplaneModeEnabled:t.airplaneMode,airplaneModeStatus:n.status,airplaneModeProgress:n.progress,airplaneModeCapturedAt:r?.capturedAt??null,airplaneModeFailures:n.failures,onAirplaneModeStartSync:n.startSync,onAirplaneModeTurnOff:n.turnOff,workflowImprovementIssueUrl:b}),(0,x.jsx)(T,{timerEndsAt:be?.timerEndsAt??null,timerTotalSeconds:be?.timerTotalSeconds??null,now:I}),O===`stories`?(0,x.jsx)(`div`,{className:`console-list-screen`,children:(0,x.jsx)(Vn,{stories:$e,isLoading:a,error:o,showGray:Je,onCreateIssue:nt,onAddStory:it,onSelectColor:dt,onToggleGray:Xe,onReorderStory:rt,onDeleteStory:ft,onRenameStory:pt,optimisticColors:at,colorChangeInFlight:st,colorErrors:lt})}):Be===null?O===`queued`?(0,x.jsx)(`div`,{className:`console-list-screen`,children:(0,x.jsx)(Te,{rows:je,storyColors:Me,statusOptions:Ne,agentOptions:Pe,activeItemId:null,isLoading:a,error:o,onSelectItem:e=>ie.openItem(e.projectItemId)})}):O===`prs`?(0,x.jsxs)(`div`,{className:`console-list-screen`,children:[(0,x.jsx)(Se,{agentOptions:Pe,agentCounts:De,selectedAgent:we,onAgentChange:Ee}),(0,x.jsx)(xe,{rows:je,storyColors:Me,statusOptions:Ne,activeItemId:null,now:I,isLoading:a,error:o,onSelectItem:e=>ie.openItem(e.projectItemId),executiveSummaries:mt,onOkAndAwaitingWorkspace:ht})]}):(0,x.jsx)(`div`,{className:`console-list-screen`,children:(0,x.jsx)(xe,{rows:je,storyColors:Me,statusOptions:Ne,activeItemId:null,now:I,isLoading:a,error:o,onSelectItem:e=>ie.openItem(e.projectItemId)})}):(0,x.jsx)(`div`,{className:`console-detail-screen`,ref:qe,children:(0,x.jsx)(Cd,{tab:O,item:Be,caches:N,operations:P,pjcode:e,statusOptions:Ne,storyOptions:Fe,agentOptions:Pe,storyColors:Me,storyName:We,overlayStatus:Ue,now:I,initialCommentDraft:ce.current.get(Be.projectItemId)??``,onCommentDraftChange:M,onQueueAction:Ke,onDeleteStory:tt===null?null:async()=>{await ft(tt.storyOptionId),se()},storyNameForDeletion:tt?.storyName??null,workflowImprovementIssueUrl:b},Be.projectItemId)})]})};`serviceWorker`in navigator&&navigator.serviceWorker.register(`/sw.js`).catch(e=>{console.warn(`Service worker registration failed:`,e)});var Dd=document.getElementById(`root`);if(Dd===null)throw Error(`Root container #root not found`);(0,b.createRoot)(Dd).render((0,x.jsx)(y.StrictMode,{children:(0,x.jsx)(Ed,{})}));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>TDPM Console</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-PI1daTPG.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-Cz31sZsD.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|