From 84173dcd3e14bb9bdc9649273aa426ffc1527f1c Mon Sep 17 00:00:00 2001 From: Dan Wilson Date: Fri, 11 Aug 2023 10:19:31 +0100 Subject: [PATCH] 2.11.5 release prep (#447) --- CHANGELOG.md | 9 ++++ dist/dist_gen.go | 134 +++++++++++++++++++++++------------------------ package.json | 2 +- 3 files changed, 77 insertions(+), 68 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b1a5b8e..027aceff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,20 @@ # Changelog +## [v2.11.5](https://github.com/drone/drone-ui/tree/v2.11.5) (2023-08-11) + +[Full Changelog](https://github.com/drone/drone-ui/compare/v2.11.4...v2.11.5) + +**Merged pull requests:** + +- fix multi stage rejections [\#446](https://github.com/drone/drone-ui/pull/446) ([d1wilko](https://github.com/d1wilko)) + ## [v2.11.4](https://github.com/drone/drone-ui/tree/v2.11.4) (2023-08-10) [Full Changelog](https://github.com/drone/drone-ui/compare/v2.11.3...v2.11.4) **Merged pull requests:** +- 2.11.4 release prep [\#445](https://github.com/drone/drone-ui/pull/445) ([d1wilko](https://github.com/d1wilko)) - fix multi stage approvals [\#444](https://github.com/drone/drone-ui/pull/444) ([d1wilko](https://github.com/d1wilko)) ## [v2.11.3](https://github.com/drone/drone-ui/tree/v2.11.3) (2023-07-19) diff --git a/dist/dist_gen.go b/dist/dist_gen.go index 7cf2b23e..c41b55e8 100644 --- a/dist/dist_gen.go +++ b/dist/dist_gen.go @@ -141,7 +141,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "_redirects", size: 23, - modTime: time.Unix(1691673570, 0), + modTime: time.Unix(1691745440, 0), }, }, "/asset-manifest.json": { @@ -149,7 +149,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "asset-manifest.json", size: 4056, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/favicon.png": { @@ -157,7 +157,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "favicon.png", size: 1639, - modTime: time.Unix(1691673570, 0), + modTime: time.Unix(1691745440, 0), }, }, "/index.html": { @@ -165,7 +165,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "index.html", size: 2351, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/manifest.json": { @@ -173,7 +173,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "manifest.json", size: 281, - modTime: time.Unix(1691673570, 0), + modTime: time.Unix(1691745440, 0), }, }, "/robots.txt": { @@ -181,7 +181,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "robots.txt", size: 67, - modTime: time.Unix(1691673570, 0), + modTime: time.Unix(1691745440, 0), }, }, "/static/css/2.abad2096.chunk.css": { @@ -189,7 +189,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "2.abad2096.chunk.css", size: 18078, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/css/main.3b0f8240.chunk.css": { @@ -197,7 +197,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "main.3b0f8240.chunk.css", size: 176840, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/js/2.ec852595.chunk.js": { @@ -205,7 +205,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "2.ec852595.chunk.js", size: 2028586, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/js/2.ec852595.chunk.js.LICENSE.txt": { @@ -213,15 +213,15 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "2.ec852595.chunk.js.LICENSE.txt", size: 2077, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, - "/static/js/main.590b7eb3.chunk.js": { + "/static/js/main.316b22ac.chunk.js": { data: file10, FileInfo: &fileInfo{ - name: "main.590b7eb3.chunk.js", - size: 282344, - modTime: time.Unix(1691673593, 0), + name: "main.316b22ac.chunk.js", + size: 282503, + modTime: time.Unix(1691745457, 0), }, }, "/static/js/runtime-main.73c0d22c.js": { @@ -229,7 +229,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "runtime-main.73c0d22c.js", size: 1525, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/Inter-Bold.3e3cb905.ttf": { @@ -237,7 +237,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "Inter-Bold.3e3cb905.ttf", size: 293448, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/Inter-Medium.18b8c68e.ttf": { @@ -245,7 +245,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "Inter-Medium.18b8c68e.ttf", size: 292140, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/Inter-Regular.9cd7588f.ttf": { @@ -253,7 +253,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "Inter-Regular.9cd7588f.ttf", size: 287928, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/Inter-SemiBold.c6588ec1.ttf": { @@ -261,7 +261,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "Inter-SemiBold.c6588ec1.ttf", size: 293028, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/RobotoMono-Regular.418a8f9f.ttf": { @@ -269,7 +269,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "RobotoMono-Regular.418a8f9f.ttf", size: 86908, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/arrow.57392e7c.svg": { @@ -277,7 +277,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "arrow.57392e7c.svg", size: 270, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/box.e7dad5a7.svg": { @@ -285,7 +285,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "box.e7dad5a7.svg", size: 1071, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/branch.19a790c9.svg": { @@ -293,7 +293,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "branch.19a790c9.svg", size: 825, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/calendar.f48f4bba.svg": { @@ -301,7 +301,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "calendar.f48f4bba.svg", size: 431, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/canceled.de6a6a66.svg": { @@ -309,7 +309,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "canceled.de6a6a66.svg", size: 219, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/checkbox-check.ecd76e49.svg": { @@ -317,7 +317,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "checkbox-check.ecd76e49.svg", size: 1489, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/chevron-down.c3e123cf.svg": { @@ -325,7 +325,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "chevron-down.c3e123cf.svg", size: 269, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/clock.19ef2359.svg": { @@ -333,7 +333,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "clock.19ef2359.svg", size: 315, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/close.6345db46.svg": { @@ -341,7 +341,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "close.6345db46.svg", size: 767, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/commit.9bdfe77e.svg": { @@ -349,7 +349,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "commit.9bdfe77e.svg", size: 292, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/copy.829e57b9.svg": { @@ -357,7 +357,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "copy.829e57b9.svg", size: 348, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/demo.ee255ee9.svg": { @@ -365,7 +365,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "demo.ee255ee9.svg", size: 292, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/dots-vertical.4cad7095.svg": { @@ -373,7 +373,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "dots-vertical.4cad7095.svg", size: 341, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/download-cloud.02a0abcc.svg": { @@ -381,7 +381,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "download-cloud.02a0abcc.svg", size: 386, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/edit.f9a98551.svg": { @@ -389,7 +389,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "edit.f9a98551.svg", size: 365, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/failure.23006aa0.svg": { @@ -397,7 +397,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "failure.23006aa0.svg", size: 503, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/graph-start.0931bcde.svg": { @@ -405,7 +405,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "graph-start.0931bcde.svg", size: 466, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/inactive.ce81ee1f.svg": { @@ -413,7 +413,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "inactive.ce81ee1f.svg", size: 221, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/logo-full.6f93f925.svg": { @@ -421,7 +421,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "logo-full.6f93f925.svg", size: 4738, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/logo.76c744d4.svg": { @@ -429,7 +429,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "logo.76c744d4.svg", size: 1265, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/not-active.13fcd78b.svg": { @@ -437,7 +437,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "not-active.13fcd78b.svg", size: 3016, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/not-allowed.40c1c466.svg": { @@ -445,7 +445,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "not-allowed.40c1c466.svg", size: 312, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/not-found.91457cc2.svg": { @@ -453,7 +453,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "not-found.91457cc2.svg", size: 4863, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/number.be979d71.svg": { @@ -461,7 +461,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "number.be979d71.svg", size: 552, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/pause.551a91b3.svg": { @@ -469,7 +469,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "pause.551a91b3.svg", size: 467, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/play.3d177b9f.svg": { @@ -477,7 +477,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "play.3d177b9f.svg", size: 323, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/pr.c79604f6.svg": { @@ -485,7 +485,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "pr.c79604f6.svg", size: 839, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/running.8093ec43.svg": { @@ -493,7 +493,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "running.8093ec43.svg", size: 603, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/search.f9705ffe.svg": { @@ -501,7 +501,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "search.f9705ffe.svg", size: 308, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/settings.8866f12b.svg": { @@ -509,7 +509,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "settings.8866f12b.svg", size: 588, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/success.06f5396e.svg": { @@ -517,7 +517,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "success.06f5396e.svg", size: 478, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/tag.de1d3ebe.svg": { @@ -525,7 +525,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "tag.de1d3ebe.svg", size: 664, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/theme-dark.851652e1.svg": { @@ -533,7 +533,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "theme-dark.851652e1.svg", size: 819, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/theme-light.0ea531ee.svg": { @@ -541,7 +541,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "theme-light.0ea531ee.svg", size: 851, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/trash.c89915b8.svg": { @@ -549,7 +549,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "trash.c89915b8.svg", size: 469, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/user.780a52a3.svg": { @@ -557,7 +557,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "user.780a52a3.svg", size: 313, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/welcome-illustration.c1834133.svg": { @@ -565,7 +565,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "welcome-illustration.c1834133.svg", size: 24954, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/zoom-in.ad132e30.svg": { @@ -573,7 +573,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "zoom-in.ad132e30.svg", size: 521, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/zoom-out.ccad50ff.svg": { @@ -581,7 +581,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "zoom-out.ccad50ff.svg", size: 358, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/zoom-reset.bedfffa7.svg": { @@ -589,7 +589,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "zoom-reset.bedfffa7.svg", size: 615, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, "/static/media/zoom-to-fit.81aee322.svg": { @@ -597,7 +597,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "zoom-to-fit.81aee322.svg", size: 407, - modTime: time.Unix(1691673593, 0), + modTime: time.Unix(1691745457, 0), }, }, } @@ -622,8 +622,8 @@ var file1 = []byte{ 0x75, 0x6e, 0x6b, 0x2e, 0x63, 0x73, 0x73, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x22, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x6a, 0x73, 0x22, 0x3a, 0x20, 0x22, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2f, 0x6a, 0x73, - 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x35, 0x39, 0x30, 0x62, 0x37, 0x65, - 0x62, 0x33, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x6a, 0x73, 0x22, + 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x33, 0x31, 0x36, 0x62, 0x32, 0x32, + 0x61, 0x63, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x6a, 0x73, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x22, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x6a, 0x73, 0x22, 0x3a, 0x20, 0x22, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2f, 0x6a, 0x73, @@ -950,7 +950,7 @@ var file1 = []byte{ 0x32, 0x34, 0x30, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x63, 0x73, 0x73, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x22, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x2f, 0x6a, 0x73, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, - 0x35, 0x39, 0x30, 0x62, 0x37, 0x65, 0x62, 0x33, 0x2e, 0x63, 0x68, 0x75, + 0x33, 0x31, 0x36, 0x62, 0x32, 0x32, 0x61, 0x63, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x6a, 0x73, 0x22, 0x0a, 0x20, 0x20, 0x5d, 0x0a, 0x7d, } @@ -1096,7 +1096,7 @@ var file2 = []byte{ } // /index.html -var file3 = []byte(`Drone CI
`) +var file3 = []byte(`Drone CI
`) // /manifest.json var file4 = []byte{ @@ -1324,8 +1324,8 @@ var file9 = []byte{ 0x0a, } -// /static/js/main.590b7eb3.chunk.js -var file10 = []byte(`(this["webpackJsonpdrone-ui-react"]=this["webpackJsonpdrone-ui-react"]||[]).push([[0],{298:function(e,t,a){e.exports={wrapper:"avatar_wrapper__1rxDX",image:"avatar_image__3M2_A",stub:"avatar_stub__BnP-r"}},299:function(e,t,a){e.exports={dark:"button_dark__V5P38",base:"button_base__2g-bH",plain:"button_plain__1LweR","theme-plain":"button_theme-plain__2mkOw button_plain__1LweR","theme-primary":"button_theme-primary__N_vdO button_base__2g-bH button_plain__1LweR"}},302:function(e,t,a){e.exports={dark:"search-drawer_dark__2479v",wrapper:"search-drawer_wrapper__2PmY0",slideIn:"search-drawer_slideIn__2uLei","slide-out":"search-drawer_slide-out__2IXKL",slideOut:"search-drawer_slideOut__YtSk0",header:"search-drawer_header__2Ks7k","back-btn":"search-drawer_back-btn__3sXrF",input:"search-drawer_input__si7jN","wrapper-results":"search-drawer_wrapper-results__3Jo7N",kicker:"search-drawer_kicker__13n0e",results:"search-drawer_results__1jF-R","search-card-wrapper":"search-drawer_search-card-wrapper__3Stsc","search-card-left":"search-drawer_search-card-left__2cMUe","search-card-kicker":"search-drawer_search-card-kicker__1573i","search-card-content":"search-drawer_search-card-content__3-RwD"}},303:function(e,t,a){e.exports={dark:"sidebar_dark__3Rea1",wrapper:"sidebar_wrapper__1zTlZ",sidebar:"sidebar_sidebar__29FRg",top:"sidebar_top__2NJsi",bottom:"sidebar_bottom__3ll0o","sidebar-item":"sidebar_sidebar-item__-WDcS","sidebar-item-active":"sidebar_sidebar-item-active__3jy3i",logo:"sidebar_logo__1HHJ8",avatar:"sidebar_avatar__2WFSN",anonymous:"sidebar_anonymous__214GZ"}},305:function(e,t,a){e.exports={dark:"base_dark__2KQj7",wrapper:"base_wrapper__3STDt",inner:"base_inner__3T-XN",content:"base_content__2IV3G",fadeIn:"base_fadeIn__2UeQJ",slideIn:"base_slideIn__2JjgG",slideOut:"base_slideOut__ba1An"}},306:function(e,t,a){e.exports={wrapper:"system-message_wrapper__LBz-2","wrapper-success":"system-message_wrapper-success__21LAZ","wrapper-danger":"system-message_wrapper-danger__2w24w","wrapper-warning":"system-message_wrapper-warning__302Mf"}},307:function(e,t,a){e.exports={"system-messages-wrapper":"license_system-messages-wrapper__2jNgH","message-with-link":"license_message-with-link__1n_82"}},308:function(e,t,a){e.exports={dark:"account_dark__2zRSS",header:"account_header__3LyWr",wrapper:"account_wrapper__L7fVO",title:"account_title__2-w7f","title-wrapper":"account_title-wrapper__2s0mB",label:"account_label__3aN_T",row:"account_row__3rksT",snippet:"account_snippet__3JorP","copy-btn":"account_copy-btn__3CHOA"}},309:function(e,t,a){e.exports={status:"status_status__1f9yu","status-label":"status_status-label__d4nJH","status-label-success":"status_status-label-success__3J-6I","status-label-running":"status_status-label-running__1cPze","status-label-failure":"status_status-label-failure__E-1d6","status-label-killed":"status_status-label-killed__OtzQv","status-label-error":"status_status-label-error__3uNtA","status-label-pending":"status_status-label-pending__1l2r1","status-success":"status_status-success__2WE4F","status-running":"status_status-running__3l0E0","status-pending":"status_status-pending__1RrtV","status-blocked":"status_status-blocked__3wCHe","status-waiting_on_dependencies":"status_status-waiting_on_dependencies__3jmO2",spin:"status_spin__3rzNT","status-failure":"status_status-failure__1-JE_","status-error":"status_status-error__2PEGH","status-declined":"status_status-declined__1f5RC","status-killed":"status_status-killed__2WjvI","status-inactive":"status_status-inactive__1qEU9","status-skipped":"status_status-skipped__2tmNG"}},310:function(e,t,a){e.exports={dark:"zero-state_dark__1sGMo",wrapper:"zero-state_wrapper__2GHgl",inner:"zero-state_inner__2n0xG"}},311:function(e,t,a){e.exports={dark:"branches_dark___Wuk-",wrapper:"branches_wrapper__3sGOD",inner:"branches_inner__1lkEo",card:"branches_card__GQ1Fv","branch-list":"branches_branch-list__2R-nH","branch-list-header":"branches_branch-list-header__3szSA","branch-list-item":"branches_branch-list-item__3KPYL",commit:"branches_commit__28d0S",message:"branches_message__3e7Dt",target:"branches_target__3Qmp8",avatar:"branches_avatar__1g4rF"}},314:function(e,t,a){e.exports={card:"card_card__3GF8r","card-message":"card_card-message__2vHh8"}},315:function(e,t,a){e.exports={"card-list":"cards-view_card-list__24Wtq",message:"cards-view_message__s91-q"}},317:function(e,t,a){e.exports={"diagram-controls":"controls_diagram-controls__1LBY8","diagram-controls-group":"controls_diagram-controls-group__LQx3d",btn:"controls_btn___pW9A","btn-zoom-in":"controls_btn-zoom-in__3V9Us","btn-zoom-out":"controls_btn-zoom-out__3ztVz"}},318:function(e,t,a){e.exports={"node-wrapper":"node-default-widget_node-wrapper__20Nrh","node-inner":"node-default-widget_node-inner__2SisP","node-inner-selected":"node-default-widget_node-inner-selected__2SA4N","node-inner-skipped":"node-default-widget_node-inner-skipped__2A_6V","node-inner-declined":"node-default-widget_node-inner-declined__QnB6m","node-inner-waiting_on_dependencies":"node-default-widget_node-inner-waiting_on_dependencies__1v9Wi",port:"node-default-widget_port__3zq0R","circle-port":"node-default-widget_circle-port__3zLp8","port-in":"node-default-widget_port-in__2u4zJ","port-out":"node-default-widget_port-out__269vw",name:"node-default-widget_name__2S4Da",status:"node-default-widget_status__VEa7f"}},319:function(e,t,a){e.exports={"node-wrapper":"node-edge-widget_node-wrapper__2vCxy","node-inner":"node-edge-widget_node-inner__1IIAl",port:"node-edge-widget_port__JphHa","circle-port":"node-edge-widget_circle-port__13vM9","port-in":"node-edge-widget_port-in__3FRmu","port-out":"node-edge-widget_port-out__1BLIN","fake-icon-stop":"node-edge-widget_fake-icon-stop__s-ZFJ"}},320:function(e,t,a){e.exports={"diagram-wrapper":"diagram_diagram-wrapper__2s9c_"}},321:function(e,t,a){e.exports={"graph-wrapper":"graph-view_graph-wrapper__2wPx3","graph-stages":"graph-view_graph-stages__1Hmdr","graph-steps":"graph-view_graph-steps__2vRmx"}},322:function(e,t,a){e.exports={"elapsed-static":"elapsed_elapsed-static__2nw59"}},323:function(e,t,a){e.exports={dark:"console_dark__32gJH",wrapper:"console_wrapper__3ow2p",header:"console_header__4K9_D","header-inner":"console_header-inner__29khj",info:"console_info__1NL_l",controls:"console_controls__QeCq_","btn-close":"console_btn-close__3GPwv","step-time-elapsed":"console_step-time-elapsed__VEAyi",terminal:"console_terminal__3DK3w",output:"console_output__2qZpe",line:"console_line__1ir27","line-number":"console_line-number__3zolU","line-content":"console_line-content__3xTWR","line-time":"console_line-time__oQvWj",footer:"console_footer__3xmc8",summary:"console_summary__1762k","summary-title":"console_summary-title__3gzAm","summary-info":"console_summary-info__3mKSP","summary-status":"console_summary-status__2Vetb","summary-controls":"console_summary-controls__Siy-a","scroll-to-top-btn":"console_scroll-to-top-btn__2uMa_","tmate-link":"console_tmate-link__2GPLX","btn-show-all-logs":"console_btn-show-all-logs__1jncL","stage-error":"console_stage-error__1h1S6",status:"console_status__ZfYQA",text:"console_text__Bc8dq"}},324:function(e,t,a){e.exports={dark:"console-manager_dark__1188Z","error-wrapper":"console-manager_error-wrapper__1cBjH","no-logs":"console-manager_no-logs__1-L-h"}},325:function(e,t,a){e.exports={step:"step-info-drawer_step__Pf2on",slideIn:"step-info-drawer_slideIn__1bOVS","slide-out":"step-info-drawer_slide-out__g2n_U",slideOut:"step-info-drawer_slideOut__ziruq","step-header":"step-info-drawer_step-header___Zx1S",status:"step-info-drawer_status__U2mag",heading:"step-info-drawer_heading__TMwCj","step-meta":"step-info-drawer_step-meta__3RL2B"}},326:function(e,t,a){e.exports={dark:"modal_dark__1-pnC",overlay:"modal_overlay__2QGE1","modal-wrapper":"modal_modal-wrapper__1M0PW",fullscreen:"modal_fullscreen__1JWVX","modal-inner":"modal_modal-inner__25g7i","modal-header":"modal_modal-header__3GTI6"}},327:function(e,t,a){e.exports={dark:"log-view_dark__1tccH",inner:"log-view_inner__ESALr",navbar:"log-view_navbar__kqtHJ",logs:"log-view_logs__3KfZh","page-wrapper":"log-view_page-wrapper__9zFm-","console-mobile":"log-view_console-mobile__3pGJk"}},328:function(e,t,a){e.exports={dark:"stage-nav_dark__3mgMN",wrapper:"stage-nav_wrapper__6YG00",header:"stage-nav_header__3-ZTN",title:"stage-nav_title__JcQSe",counter:"stage-nav_counter__19CHN",inner:"stage-nav_inner__3w4uQ",stage:"stage-nav_stage__EkGL6","stage-expanded":"stage-nav_stage-expanded__1J1uO",time:"stage-nav_time__3hF_i","stage-header":"stage-nav_stage-header__1dF95",chevron:"stage-nav_chevron__29dQ1","chevron-disabled":"stage-nav_chevron-disabled__2spPT","chevron-hidden":"stage-nav_chevron-hidden__3IRUS","stage-header-expanded":"stage-nav_stage-header-expanded__1U_RV","stage-header-unselectable":"stage-nav_stage-header-unselectable__2Egdv","stage-active":"stage-nav_stage-active__3MoCo","stage-status":"stage-nav_stage-status__2PIpN","stage-steps":"stage-nav_stage-steps__2AIQ4",toggler:"stage-nav_toggler__1IAYH","toggler-expanded":"stage-nav_toggler-expanded__1IwsM","steps-header":"stage-nav_steps-header__1Am0T",divider:"stage-nav_divider__2hoY5","stage-step":"stage-nav_stage-step__2fpt5","stage-step-active":"stage-nav_stage-step-active__2A6U8","stage-step-unselectable":"stage-nav_stage-step-unselectable__13evR",status:"stage-nav_status__YzKxb",name:"stage-nav_name__1dXvz"}},329:function(e,t,a){e.exports={dark:"not-found_dark__dCmCa",wrapper:"not-found_wrapper__JkJJ-",inner:"not-found_inner__n7t_C",title:"not-found_title__2cg0J",note:"not-found_note__3djYH",btn:"not-found_btn__2mfNt"}},330:function(e,t,a){e.exports={dark:"build_dark__1RJ3v",blocked:"build_blocked__1Gbzm","no-logs":"build_no-logs__3TBNe",controls:"build_controls__eBluS","controls-button":"build_controls-button__1tDBr","controls-button-approve":"build_controls-button-approve__Vj2lE","controls-button-decline":"build_controls-button-decline__3I5wY"}},331:function(e,t,a){e.exports={label:"label_label__AboI9"}},332:function(e,t,a){e.exports={checkbox:"checkbox_checkbox__2t8iU","checkbox-fake":"checkbox_checkbox-fake__3M-W4",disabled:"checkbox_disabled__xkbX3"}},333:function(e,t,a){e.exports={dark:"input_dark__12r-v",input:"input_input__3o3x-","input-wrapper":"input_input-wrapper__3NFuA","input-with-icon":"input_input-with-icon__2VspA","input-inner":"input_input-inner__2Pgau",icon:"input_icon__3z-ES","icon-search":"input_icon-search__9epsc"}},334:function(e,t,a){e.exports={radio:"radio_radio__3Eaht","radio-fake":"radio_radio-fake__e9wCC","appearance-checkmark":"radio_appearance-checkmark__Ki2Fl",disabled:"radio_disabled__1phyC",label:"radio_label__2t_PM"}},335:function(e,t,a){e.exports={dark:"select_dark__3bPUv",select:"select_select__1HHVE",label:"select_label__1bDYS","select-inner":"select_select-inner__1CKS3","select-input":"select_select-input__39Yvq"}},336:function(e,t,a){e.exports={dark:"text-area_dark__RrDva","text-area":"text-area_text-area__31bmm","text-area-wrapper":"text-area_text-area-wrapper__28Wsn"}},337:function(e,t,a){e.exports={form:"form_form__vo1by","form-section":"form_form-section__2-baB"}},338:function(e,t,a){e.exports={"deployment-form":"deployment-form_deployment-form__3ts9q","deployment-form-row":"deployment-form_deployment-form-row__JQIz_","deployment-form-radio-group":"deployment-form_deployment-form-radio-group__1pkWm","deployment-form-parameters":"deployment-form_deployment-form-parameters__stAcu","deployment-form-parameters-list":"deployment-form_deployment-form-parameters-list__3Q8VC","deployment-form-parameters-fields":"deployment-form_deployment-form-parameters-fields__oK3dv","deployment-form-controls":"deployment-form_deployment-form-controls__3QCDT"}},339:function(e,t,a){e.exports={root:"label_root__2WztY"}},340:function(e,t,a){e.exports={activity:"simple_activity__2CGnv",avatar:"simple_avatar__1uvhU",chunk:"simple_chunk__1u11R",info:"simple_info__2V4OO",label:"simple_label__VUkR-"}},341:function(e,t,a){e.exports={breadcrumb:"breadcrumb_breadcrumb__3RygM","breadcrumb-item":"breadcrumb_breadcrumb-item__1DZP4","breadcrumb-spacer":"breadcrumb_breadcrumb-spacer__1QK5s"}},342:function(e,t,a){e.exports={wrapper:"dots-menu_wrapper__CSmLP","wrapper-menu":"dots-menu_wrapper-menu__sBJ3-","btn-menu-controller":"dots-menu_btn-menu-controller__unn7-","is-open":"dots-menu_is-open__yklDf","is-focused":"dots-menu_is-focused__2aPYe",menu:"dots-menu_menu__j0xkY","menu-left":"dots-menu_menu-left__vjE7N","menu-right":"dots-menu_menu-right__3-mhU","menu-item":"dots-menu_menu-item__1bXgl"}},343:function(e,t,a){e.exports={dark:"header_dark__3jtfA",header:"header_header__3MEQh",breadcrumbs:"header_breadcrumbs__K3Bly","breadcrumbs-inner":"header_breadcrumbs-inner__T316J",togglers:"header_togglers__JltxF",active:"header_active__24GhX",meta:"header_meta__3yqUX",controls:"header_controls__1_Brh",activity:"header_activity__r3bJr",status:"header_status__33LMg",message:"header_message__2MpgX","cancel-button":"header_cancel-button__2kURt",title:"header_title__1GYIg",date:"header_date__GXk_u"}},344:function(e,t,a){e.exports={dark:"build-list_dark__2rTAn",list:"build-list_list__1kSdE","list-item":"build-list_list-item__wH4VT",status:"build-list_status__1uAP8",container:"build-list_container__17FFZ",header:"build-list_header__3Zzfb",connector:"build-list_connector__3Njz1",commit:"build-list_commit__1m69S",number:"build-list_number__1Bb51",content:"build-list_content__3Hqgw",activity:"build-list_activity__bJw7m",timing:"build-list_timing__2rn6_",elapsed:"build-list_elapsed__lZg2F",dot:"build-list_dot__IjGr-"}},345:function(e,t,a){e.exports={dark:"builds_dark__3XsYP",wrapper:"builds_wrapper__2qInD","section-title":"builds_section-title__311nJ",summary:"builds_summary__33iuz",btn:"builds_btn__u_Pjv","btn-show-more":"builds_btn-show-more__2F_u_"}},347:function(e,t,a){e.exports={wrapper:"bar-chart_wrapper__Epu5j","y-axis":"bar-chart_y-axis__12MoN","chart-grid":"bar-chart_chart-grid__29KGZ","bar-background":"bar-chart_bar-background__1PNT0",bar:"bar-chart_bar__18agi","bar-running":"bar-chart_bar-running__3GzBo","bar-success":"bar-chart_bar-success__377Ah","bar-failure":"bar-chart_bar-failure__2qJRv","bar-killed":"bar-chart_bar-killed__3NbRt","bar-error":"bar-chart_bar-error__ydlH9","bar-pending":"bar-chart_bar-pending__3DeM5"}},348:function(e,t,a){e.exports={dark:"summary_dark__1mzER",wrapper:"summary_wrapper__6MsKT",info:"summary_info__xNKWE",summary:"summary_summary__tMwPO",title:"summary_title__1oizo",item:"summary_item__A3wFB","item-heading":"summary_item-heading__3BDpl","item-content":"summary_item-content__3oLix",status:"summary_status__2nD-m","status-running":"summary_status-running__iwIfl","status-success":"summary_status-success__38O47","status-failure":"summary_status-failure__7oT0t","status-killed":"summary_status-killed__2BHAr","status-error":"summary_status-error__3sLri","status-pending":"summary_status-pending__2GlAQ","bar-wrapper":"summary_bar-wrapper__3iiRj"}},349:function(e,t,a){e.exports={dark:"deployments_dark__8Kn8a",wrapper:"deployments_wrapper__3cqTQ",inner:"deployments_inner__KF1bz",card:"deployments_card__2TbQZ","deployment-list":"deployments_deployment-list__1MzbH","deployment-list-header":"deployments_deployment-list-header__3oce2","deployment-list-item":"deployments_deployment-list-item__i3jgx",avatar:"deployments_avatar__2siC3",commit:"deployments_commit__ld9Ei",message:"deployments_message__s30D5",target:"deployments_target__2xt4_"}},350:function(e,t,a){e.exports={dark:"repos_dark__S51XK",list:"repos_list__pslzV",item:"repos_item__31Hyq",date:"repos_date__1d2oe",inactive:"repos_inactive__1OKWU",detail:"repos_detail__H6wTv",title:"repos_title__1iH7c",spacer:"repos_spacer__JwxyF",commit:"repos_commit__3Mft-"}},351:function(e,t,a){e.exports={dark:"repos-recent_dark__2RV09",cards:"repos-recent_cards__3AwVU",card:"repos-recent_card__1gAHn",header:"repos-recent_header__FV22W",title:"repos-recent_title__kF1SC",namespace:"repos-recent_namespace__12A4o",status:"repos-recent_status__2Ngo4",body:"repos-recent_body__1QCXT",footer:"repos-recent_footer__3esl8",avatar:"repos-recent_avatar__3GXGI"}},352:function(e,t,a){e.exports={wrapper:"switch_wrapper__3287w","switch-label-fake":"switch_switch-label-fake__37KO7",switch:"switch_switch__3SEnA","switch-toggler":"switch_switch-toggler__B-BCb","switch-label":"switch_switch-label__ji-6Y","switch-input":"switch_switch-input__2ITId"}},353:function(e,t,a){e.exports={dark:"home_dark__2Gpf3",wrapper:"home_wrapper__11qAb","section-title":"home_section-title__1e6sc","section-title-recent":"home_section-title-recent__2mSnE",header:"home_header__3cqQx",subheader:"home_subheader__NpQ1G",actions:"home_actions__iIdun",btn:"home_btn__j4vyI","btn-sync":"home_btn-sync__142m7","btn-sync-spinner":"home_btn-sync-spinner__2EA5x","spinner-border":"home_spinner-border__BzAl9","btn-show-more":"home_btn-show-more__1oqNM","system-messages-wrapper":"home_system-messages-wrapper__3WHoS","message-with-link":"home_message-with-link__DIJG4",search:"home_search__YZniK","zero-state-msg":"home_zero-state-msg__22gZA"}},354:function(e,t,a){e.exports={dark:"login_dark__2NctZ",wrapper:"login_wrapper__2A-iz",login:"login_login__2gh5w",kicker:"login_kicker__2ldX7",header:"login_header__2a_3B",title:"login_title__5tk8c","title-sub":"login_title-sub__OLg_7",illustration:"login_illustration__31X8i",btn:"login_btn__1D4hR",error:"login_error__3ULWd"}},355:function(e,t,a){e.exports={dark:"register_dark__2BYbW",wrapper:"register_wrapper__6rNIp",login:"register_login__Wy4gP",kicker:"register_kicker__2copx",header:"register_header__24KjP",title:"register_title__2DeIa",illustration:"register_illustration__305M4",btn:"register_btn__3MaSP",error:"register_error__3hsIF",legal:"register_legal__dFLgV"}},356:function(e,t,a){e.exports={"new-build-form":"new-build-form_new-build-form__3J7En","new-build-form-column":"new-build-form_new-build-form-column__27Gv-","new-build-form-column-list":"new-build-form_new-build-form-column-list__1qqZC","new-build-form-parameters":"new-build-form_new-build-form-parameters__1Q3BL","new-build-form-parameters-list":"new-build-form_new-build-form-parameters-list__3XwZO","new-build-form-parameters-fields":"new-build-form_new-build-form-parameters-fields__3EC8I","new-build-form-controls":"new-build-form_new-build-form-controls__a-7K9"}},357:function(e,t,a){e.exports={dark:"repo_dark__2rsok",header:"repo_header__271Qk",breadcrumb:"repo_breadcrumb__27xlj",tabs:"repo_tabs__37XFO",tab:"repo_tab__3rhP5","tab-active":"repo_tab-active__2wiDX","tab-disabled":"repo_tab-disabled__1Sk0t","new-build-btn":"repo_new-build-btn__P79mm"}},358:function(e,t,a){e.exports={dark:"badges_dark__37Uzi",title:"badges_title__175kU",inner:"badges_inner__3U4ZV","group-badge":"badges_group-badge__39KKB","badge-snippet":"badges_badge-snippet__17n1M","copy-btn":"badges_copy-btn__1-4VE"}},359:function(e,t,a){e.exports={dark:"cron_dark__2HDFl",inner:"cron_inner__186HI",container:"cron_container__3eExz","btn-new":"cron_btn-new__1ZFxA","group-fields":"cron_group-fields__2Oco_",zero:"cron_zero__3uolM",controls:"cron_controls__1tW7W",actions:"cron_actions__2K0S5",card:"cron_card__1m5GC","cron-list":"cron_cron-list__3BxzM","cron-list-wrapper":"cron_cron-list-wrapper__GL_7G","cron-list-header":"cron_cron-list-header__3oY8g","cron-list-item":"cron_cron-list-item__3Keyg",wrapper:"cron_wrapper__1zipL"}},360:function(e,t,a){e.exports={dark:"general_dark__1Plar",inner:"general_inner__10GUe",form:"general_form__EieKC","form-section-row":"general_form-section-row__2m-y6","switch-row":"general_switch-row__2BH9F","form-section-row-is-last":"general_form-section-row-is-last__4nyg-",timeout:"general_timeout__16kV6",config:"general_config__dDOaK",note:"general_note__HptyZ",btn:"general_btn__1H6Hm","btn-save":"general_btn-save__2sx2k","btn-disable":"general_btn-disable__2IBx1","visibility-container":"general_visibility-container__NGVFQ","visibility-card-wrapper":"general_visibility-card-wrapper__ury9q","visibility-card":"general_visibility-card__1tSov",controls:"general_controls__2f5h1"}},361:function(e,t,a){e.exports={header:"settings_header__1aOuu",wrapper:"settings_wrapper__1qh5b","settings-nav":"settings_settings-nav__kMI5o","settings-nav-item":"settings_settings-nav-item__3tLNN","settings-nav-item-active":"settings_settings-nav-item-active__1oicd","settings-nav-section-header":"settings_settings-nav-section-header__KSb2p","inactive-wrapper":"settings_inactive-wrapper__2HS2u","inactive-inner":"settings_inactive-inner__z1fP7"}},362:function(e,t,a){e.exports={dark:"templates_dark__22A7R",inner:"templates_inner__fFrAa",container:"templates_container__8VUAo","btn-new":"templates_btn-new__1Y0h7","group-fields":"templates_group-fields__Mdjex",zero:"templates_zero__3vLH9",controls:"templates_controls__1_y2_",actions:"templates_actions__3jFG-",card:"templates_card__4tgVu","template-list":"templates_template-list__1naXs","template-list-wrapper":"templates_template-list-wrapper__1O6-E","template-list-header":"templates_template-list-header__1A2ac","template-list-item":"templates_template-list-item__5uj9h",wrapper:"templates_wrapper__1ms3f","monaco-wrapper":"templates_monaco-wrapper__p9IYa"}},363:function(e,t,a){e.exports={header:"settings-admin_header__2_iH-",tabs:"settings-admin_tabs__1HXE4",tab:"settings-admin_tab__1GgwW","tab-active":"settings-admin_tab-active__91bVr","tab-disabled":"settings-admin_tab-disabled__31Cw5"}},364:function(e,t,a){e.exports={dark:"user-form_dark__16_iu","new-user-form":"user-form_new-user-form__3bjpb","new-user-form-column":"user-form_new-user-form-column__1303t","new-user-form-column-list":"user-form_new-user-form-column-list__XCbwG","new-user-form-parameters":"user-form_new-user-form-parameters__21TXN","new-user-form-parameters-list":"user-form_new-user-form-parameters-list__2eVso","new-user-form-parameters-fields":"user-form_new-user-form-parameters-fields__2e1AM","new-user-form-controls":"user-form_new-user-form-controls__3s2Ve",save:"user-form_save__X7SX4",cancel:"user-form_cancel__16Wel",delete:"user-form_delete__35mHE"}},365:function(e,t,a){e.exports={dark:"user-list_dark__2L1CX",avatar:"user-list_avatar__UN22p","user-list":"user-list_user-list__Wg5kX","user-list-wrapper":"user-list_user-list-wrapper__dbIr4","user-list-header":"user-list_user-list-header__14o1A","user-list-item":"user-list_user-list-item__1azLC"}},366:function(e,t,a){e.exports={dark:"users_dark__2_oJ6",wrapper:"users_wrapper__3mar2",actions:"users_actions__JhzhN",avatar:"users_avatar__2sNHF",btn:"users_btn__1M3P9","btn-show-more":"users_btn-show-more__hvN4Z","btn-user":"users_btn-user__1iv3n",card:"users_card__1V-f3"}},367:function(e,t,a){e.exports={dark:"welcome_dark__V-uDR",wrapper:"welcome_wrapper__2vss1",login:"welcome_login__PcQoQ",kicker:"welcome_kicker__3q_EB",header:"welcome_header__km9Fn",title:"welcome_title__25M7u","title-sub":"welcome_title-sub__3FkPx",illustration:"welcome_illustration__wZtLz",btn:"welcome_btn__1HXaL","chevron-right":"welcome_chevron-right__2nYSb",error:"welcome_error__28uu6"}},485:function(e,t,a){},706:function(e,t,a){},707:function(e,t,a){},708:function(e,t,a){"use strict";a.r(t);var n=a(1),r=a.n(n),c=a(54),s=a.n(c),l=a(11),i=a(2),o=a(5),u=a(6),d=a.n(u),m=a(13),b=a(24),p=a(86),h=a(42),j=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_DRONE_TOKEN||"",f=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_DRONE_SERVER||"".concat(window.location.protocol,"//").concat(window.location.host),v=250,O={DEFAULT:"default",RUNNING:"running"},g=[15,30,60,90,120,180,240,300,360,420,480,540,600,660,720,1080,1440,2880,4320],_="loading",x="stream_on",w="resolved",y="no_logs_available",N="error",k="idle",E=window&&window.LICENSE_EXPIRED,C=window&&window.LICENSE_LIMIT_EXCEEDED,S=0,L=1,M=2,P="dark",I="light",R=a(3),D=a.n(R);function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Drone CI";Object(n.useEffect)((function(){document.querySelector("title").innerText="".concat(e).concat(e?" - ":"").concat(t)}),[e,t])}function H(){var e=Object(n.useState)((function(){return window.innerHeight||0})),t=Object(o.a)(e,2),a=t[0],r=t[1],c=Object(n.useCallback)((function(e){r(e.currentTarget.innerHeight)}),[]);return Object(n.useLayoutEffect)((function(){return window.addEventListener("resize",c),function(){return window.removeEventListener("resize",c)}}),[c]),a}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=Object(n.useState)((function(){return e(500)})),a=Object(o.a)(t,2),r=a[0],c=a[1],s=H(),l=Object(n.useCallback)((function(t){if(null!==t){var a=s-t.getBoundingClientRect().top;c(e(a))}}),[s,e]);return{dynamicHeight:r,dynamicHeightRef:l}}var B,z=a(15);B={},Object(z.a)(B,O.DEFAULT,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAAEEfUpiAAAABGdBTUEAALGPC/xhBQAABh5JREFUWAm1V1tslEUUnvPvbres2EIK1u4WWkITFOi22ETFC1SD3ZarD/bBGAwmhkQkiqKJD4pENN4SxRsRfJDAk/ZBRaHsJiKYGOShlu4KKoL2QrcopUgLpN3l/8fvTDt/ZrfbpYlxkv3PnOucOXPOmVkhxkZZdcMQT4k/QCQV+G9QhDHOVEb6EjFyJZjAw8MfSH1cHKySQ+fO/K70mVheszLEtixGeNhO6ixDYipPeLhGZy9qmt/d3noyGG6ISymqR9mjAlYwHNmRvmafYM1kPBY2mWNrWK2ayIRgQWUBm2YanE6oCSPm2ozzcH1gpK5uvS+Z6jouSPb3xWNLmcbD3TlLm1bAuJBMxGbAyYYUSzJTmSTrSYbYa0llbWOlqwWHfoRcDbY5hRUsEhscKXa4kQLjzkJfcRkzPURNsPC6EuSPHsPpwW/YvC3Ew4jJNKZTKBx515FykxYyIQtbvfHoM9jLzyaD5z6LFjJ0A8WIHtlnoukMLaLtyugYURkYDWKnCgfTeWmGwZrIxmRH9EOe8wiFm+53pP2tQohO9MWjCylbWTHxYSNIhNuklG2aRoK2JRPRLdpDIrpq9aU7XQFD8CjPpZBuoozhLzGEYovCpQx4Ef8BRswBxcVY5TmEupTpVYuaZp5ubz2vZeBVs56rvZo5ohn5oI5RqCay2T2FYHVDP+dPPkWT5y3wVPW0tZ5xDWjmnEXLK0Zs+yTcDGiahmTRRziVjRpnOM4AE0O1kRXSlk9JQYuJ5DnE6ZC/JLip8/DuYeabY5yBYN2qGTI14gYsU5hGppcUzThxuOWyprvVgKifxe+9ZNvX/WhMM7WACXE6/oELl4aCtQ13abryAIrtcLOWiai793F8T7MnAe+11OljrYNauCzckEByqBooKios+u2HfUM0uyayIO3IrGKhd/oS0c2sWF7bWO8IZ1ryeOxLxoPVkQ54EkZWppCVfsp1fB7hDZ9NHEhgxTRW9LIiD33+Om88U4sDVq6zZ+Xm5maPqcwGsPoahnrYly9td4OoiRq2tLSgcWQOj/BcNCmI1305DSDKDyhBok5XgcjuSRz4ft7dq2/UNCmpNKcBaYsYC6He5/C+77ml2Iu5isXQsPRrAzjCY27b1MQMaFmNfR0Ho0wL1S6vdWx7LZ+OTjYiz2oqC0f2CCnXZijmQcw8UUnHsvpY8uhlsLQRJqoY+IRvbobE9ZGHtIgy0J3Y/8dkjSAD40j1kDYwvhprIp9KR67TAhqiD/b7vN4lXT/t/0XTGI4zYDL1PFTT+CyMvogamK5p+SB3a1j+3G95tv7ZfqArr2wuJl+racd5pDcee03z+ehFeuQQqt59RGjedSFuRp/0reFQZ8tmRGBWeMVCW6YPm/VpnjgrZzpCeGHJryyLTqFuu7DrABysQqQiwFXbMRfEYhe8wne76YjrQDDcuFVK52VTwZxnO2LyJprD2YBIpz7D/bDSlDGvd+UAuswH8DrjsjAV9ByXym5cKo9pHL1yuePInVigXNPgaFqSeDPorXylrW1XmuncU23b+U7LKEi0F+3hUULjeRC944sMZi6ExN94vKmLmtnotUcQ5iW5RBWNxDWvp7Cip31fknHcGm/heJ435bmVWMKmx03iRHPUHz/x1FB5kG9xlsJF4NjDbv+GftatAxFpb+YL4d5Rs9f7yqX19VtVR1U9jOiTfBo4it4SUbpHyzhCLNNzA9YhH+RfBmHCKcJXfGrgqHuOyXh0vd8T4L6wk5sMKyKh+N1wBHgdulV5PL73CtOR4BsmaNg9fB3shMx6FpzcIAcLvJCMH3x7cvKjUpnl62ruovLFzVOcK4P9uZ5SrljeCQ1h5wlsH1GQN+E1NRe7dd812eWrHYHJWdPnFZeqMqwIr5qTlqlfUYoFedf6D8xsR7Qp5QAjVXc0FV256uBhLedr5v8B0TW39HZEt2nbrgOaoJ59ttiH6pj0U1nr5oVE5wu83qWTvg0X1DdP/WdgcBuy/wkcjfuQybtIFhO1nyJLvHqzt+IN3RWzRLhyJjcq69cVpi8mlzmOWAmtW6FYBufw15Ic/MXtRuPpRnV04ZHSWuabdXCiBbNX+xd0bpKI7Ls03wAAAABJRU5ErkJggg=="),Object(z.a)(B,O.RUNNING,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACwElEQVRYw71XO2tUQRT+wAeJJmqhjRbRWPkCsUwhQRBFDfoLUptg5aOSBdFOlEUUcW2C8ReIWmgx5173oYUgG41FGgtjEQ3qGtQ8lE9m9homd+fuzl3vemGqOefMd17fORfw/PgSa6hwnII7VHhChUkKvlEwR8EUFcLoTst0IcuPCmcp+EwFep7vFIyxjL5sAAg2UzCRAsDfM09BnoKetA9up+BiRiBIwWsW0e/3+DPspsK0UQxwIzMQCrMMMdDK871G0FZsBqJehPcZIMcQwxScpuCa8TgJRFIkTJULXjkV3SDO8AU2JDoT4lACkDcsodfl/aWmIYyB8GzddRQ8dNREfqVgCXsoWGyZxwDXEx4ZpMIoBadYwbaGe4VqzNaCLnTb+5ue1TwWC/MxCt7HZBYpuKJTatkfdNgbtxlu1gtAiH1WtxygYKmJ/OVYiicayKqCbpiw+bXRTIwdwxbRWmIJWy35q46UDumL257hf75sjFhFwQ8PvZPLOgFGHPcFHYFHnhF4sKINfXQCjFj1MuxwKoA3swkqsRTMeNTMQSsCOYfNKW2o5hmBrxSstgDcbSE/zSrWW/LjDgBzMPPcl88DHLb6eyMF7xJkf1Fw1OKZXuNAo1wN0TLhO9WKsdbaZJYQwafo/qfOq27RWLpGE+y9hVFIN1rPJ0zRLbo7Uu0TgqcaXSHlWP3NABcyWmoKujqH2lwyilQ4YlOu9dh+KtyLz44GEIaIKug2tNjeklHfCRTKmic0WVHw0WufEHzhJNYmt0iWxw3inD3VdpgR+R9BuIok31EArUDo9cr8bHQeRC4ZRBH93rtBe+cDy9jZPBUhBjoCQndHiF1+pKEjkbxat3Oqeu9My1w9UWHO/8PDC2YMO8jKH0gZfeZHMw1Z6eEkuOUdcs+IdFFwIvoFD80UrY/yWpSux2a909SewuM/2U5mE0vDlDMAAAAASUVORK5CYII=");var V,T,W=function(e,t){var a=Object(n.useState)((function(){try{var a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch(n){return console.error(n),t}})),r=Object(o.a)(a,2),c=r[0],s=r[1],l=Object(n.useCallback)((function(t){try{var a=t instanceof Function?t(c):t;s(a),window.localStorage.setItem(e,JSON.stringify(a))}catch(n){console.error(n)}}),[e,c]);return[c,l]},U=function(e,t){Object(n.useEffect)((function(){var a=function(a){e.current&&!e.current.contains(a.target)&&t(a)};return document.addEventListener("mousedown",a),document.addEventListener("touchstart",a),function(){document.removeEventListener("mousedown",a),document.removeEventListener("touchstart",a)}}),[e,t])},Z={attributes:!0,characterData:!0,subtree:!0,childList:!0},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,a=Object(n.useState)(null),r=Object(o.a)(a,2),c=r[0],s=r[1];Object(n.useEffect)((function(){if(c){var a=new ResizeObserver(e);return a.observe(c,t),function(){a.disconnect()}}}),[c,e,t]);var l=Object(n.useCallback)((function(e){s(e)}),[]);return[l]},q=function(){var e=W("selected_theme",!0===window.matchMedia("(prefers-color-scheme: dark)").matches?P:I),t=Object(o.a)(e,2),a=t[0],r=t[1];Object(n.useEffect)((function(){a===P?document.body.classList.add(P):document.body.classList.remove(P)}),[a]);return{storedTheme:a,toggleTheme:function(){r(a===P?I:P)}}},Y=3e3,K=function(){var e=Object(n.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;p.b.success(e,{autoClose:t})}),[]),t=Object(n.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;p.b.warn(e,{autoClose:t})}),[]),a=Object(n.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;p.b.error(e,{autoClose:t})}),[]);return{showSuccess:e,showWarning:t,showError:a}},J=a.p+"static/media/logo.76c744d4.svg",Q=["title","titleId"];function X(){return X=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ee(e,t){var a=e.title,r=e.titleId,c=$(e,Q);return n.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-search",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,V||(V=n.createElement("circle",{cx:11,cy:11,r:8})),T||(T=n.createElement("line",{x1:21,y1:21,x2:16.65,y2:16.65})))}var te,ae,ne,re,ce,se,le,ie,oe,ue=n.forwardRef(ee),de=(a.p,["title","titleId"]);function me(){return me=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function pe(e,t){var a=e.title,r=e.titleId,c=be(e,de);return n.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-sliders",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,te||(te=n.createElement("line",{x1:4,y1:21,x2:4,y2:14})),ae||(ae=n.createElement("line",{x1:4,y1:10,x2:4,y2:3})),ne||(ne=n.createElement("line",{x1:12,y1:21,x2:12,y2:12})),re||(re=n.createElement("line",{x1:12,y1:8,x2:12,y2:3})),ce||(ce=n.createElement("line",{x1:20,y1:21,x2:20,y2:16})),se||(se=n.createElement("line",{x1:20,y1:12,x2:20,y2:3})),le||(le=n.createElement("line",{x1:1,y1:14,x2:7,y2:14})),ie||(ie=n.createElement("line",{x1:9,y1:8,x2:15,y2:8})),oe||(oe=n.createElement("line",{x1:17,y1:16,x2:23,y2:16})))}var he,je=n.forwardRef(pe),fe=(a.p,["title","titleId"]);function ve(){return ve=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ge(e,t){var a=e.title,r=e.titleId,c=Oe(e,fe);return n.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,he||(he=n.createElement("path",{d:"m18.94,18.37c.26-.26.52-.54.76-.84.25-.3.42-.54.53-.72-1.78-.1-3.44-.49-5-1.16-1.55-.67-2.93-1.59-4.11-2.78s-2.12-2.56-2.79-4.12c-.67-1.56-1.05-3.21-1.15-4.95-.18.1-.42.27-.71.5-.29.23-.59.49-.89.79-1.83,1.83-2.75,4.03-2.75,6.59,0,2.57.93,4.79,2.81,6.67s4.11,2.81,6.69,2.79c2.58-.02,4.78-.94,6.61-2.77Zm1.02,1.33c-1.06,1.06-2.25,1.85-3.57,2.38-1.33.53-2.69.79-4.08.79-1.4,0-2.77-.28-4.12-.83-1.35-.56-2.58-1.39-3.69-2.5s-1.94-2.35-2.5-3.71c-.56-1.36-.84-2.75-.85-4.14-.01-1.4.25-2.76.78-4.09.54-1.33,1.33-2.53,2.39-3.58.71-.71,1.48-1.31,2.33-1.82.85-.51,1.63-.86,2.35-1.06-.29,2.01-.15,3.93.42,5.77.57,1.83,1.53,3.43,2.89,4.79s2.94,2.3,4.8,2.88c1.85.57,3.77.71,5.76.39-.2.72-.55,1.51-1.06,2.37-.51.86-1.12,1.65-1.84,2.37Z"})))}var _e,xe=n.forwardRef(ge),we=(a.p,["title","titleId"]);function ye(){return ye=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ke(e,t){var a=e.title,r=e.titleId,c=Ne(e,we);return n.createElement("svg",ye({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,_e||(_e=n.createElement("path",{d:"m11.24,3.62V.82h1.52v2.79h-1.52Zm0,19.56v-2.79h1.52v2.79h-1.52Zm9.15-10.42v-1.52h2.79v1.52h-2.79ZM.82,12.76v-1.52h2.79v1.52H.82Zm17.83-6.35l-1.09-1.09,1.68-1.68,1.09,1.09-1.68,1.68Zm-13.9,13.95l-1.09-1.09,1.68-1.68,1.09,1.09-1.68,1.68Zm14.48,0l-1.68-1.68,1.09-1.09,1.68,1.68-1.09,1.09ZM5.34,6.41l-1.68-1.68,1.09-1.09,1.68,1.68-1.09,1.09Zm6.66,11.31c-1.59,0-2.94-.55-4.05-1.66-1.11-1.11-1.66-2.46-1.66-4.05s.55-2.94,1.66-4.05c1.11-1.11,2.46-1.66,4.05-1.66s2.94.55,4.05,1.66c1.11,1.11,1.66,2.46,1.66,4.05s-.55,2.94-1.66,4.05c-1.11,1.11-2.46,1.66-4.05,1.66Zm0-1.52c1.17,0,2.16-.41,2.97-1.22.81-.81,1.22-1.8,1.22-2.97s-.41-2.16-1.22-2.97c-.81-.81-1.8-1.22-2.97-1.22s-2.16.41-2.97,1.22c-.81.81-1.22,1.8-1.22,2.97s.41,2.16,1.22,2.97c.81.81,1.8,1.22,2.97,1.22Z"})))}var Ee,Ce,Se=n.forwardRef(ke),Le=(a.p,["title","titleId"]);function Me(){return Me=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Ie(e,t){var a=e.title,r=e.titleId,c=Pe(e,Le);return n.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-user",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ee||(Ee=n.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"})),Ce||(Ce=n.createElement("circle",{cx:12,cy:7,r:4})))}var Re=n.forwardRef(Ie),De=(a.p,a(298)),Ae=a.n(De),He=a(0),Fe=D.a.bind(Ae.a),Be=["#06C270","#0063F7","#FF8800","#06B7C4","#4D0B8F"],ze=function(e){var t,a=e.className,r=e.path,c=e.alt,s=e.text,l=Object(n.useState)(!1),i=Object(o.a)(l,2),u=i[0],d=i[1];if(!r||u){var m=s||c||"?";t=Object(He.jsx)("span",{className:Fe("stub"),title:m,style:{backgroundColor:Be[m.charCodeAt(0)%Be.length]},children:s[0]})}else t=Object(He.jsx)("img",{className:Fe("image"),src:r,alt:c,onError:function(){return d(!0)}});return Object(He.jsx)("div",{className:Fe("wrapper",a||""),children:t})};ze.defaultProps={className:void 0,path:void 0,alt:"User avatar"};var Ve=ze,Te=a(26),We=a(299),Ue=a.n(We),Ze=["as","children","className","label","icon","size","theme"],Ge=D.a.bind(Ue.a),qe=function(e){var t,a=e.as,n=e.children,r=e.className,c=e.label,s=e.icon,o=e.size,u=e.theme,d=Object(Te.a)(e,Ze);switch(a){case"link":t=l.b;break;case"a":t="a";break;default:t="button"}var m=Object(He.jsxs)(He.Fragment,{children:[s,Object(He.jsx)("span",{children:c||n})]});return"plain"===u&&(m=n),Object(He.jsx)(t,Object(i.a)(Object(i.a)({className:Ge("button","theme-".concat(u),"size-".concat(o),r||"")},d),{},{children:m}))};qe.defaultProps={theme:"plain",as:"button",className:"",label:"",type:"button",icon:null,children:null,size:"md"};var Ye=qe,Ke=a(16),Je=a(301),Qe=a.n(Je),Xe=a(127),$e=a.n(Xe),et=$e.a.create({baseURL:f,headers:j?{Authorization:"Bearer ".concat(j)}:{},withCredentials:!0}),tt=function(){var e=Object(m.a)(d.a.mark((function e(t,a){var n,r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,et(t,a);case 3:return n=e.sent,e.abrupt("return",n.data);case 7:throw e.prev=7,e.t0=e.catch(0),r=new Error,e.t0.response?r.message=e.t0.response.data.message:e.t0.request?r.message=e.t0.request.response:r.message=e.t0.message,r;case 12:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,a){return e.apply(this,arguments)}}(),at=tt,nt=function(e){var t=e.date,a=e.dateOptions,n=void 0===a?{}:a,r=new Date(1e3*t),c=Object(i.a)({year:"numeric",month:"short",day:"numeric",hour:"numeric",hour12:!0,minute:"2-digit"},n);return"".concat(r.toLocaleDateString("en-US",c))},rt=function(e){return function(t){var a={};return t.forEach((function(t){Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t],Object.assign(a,Object(z.a)({},t,e[t])))})),a}};function ct(e,t){return e.slugt.slug?1:0}function st(e,t){var a,n,r,c;return(null!==(a=null===(n=t.build)||void 0===n?void 0:n.created)&&void 0!==a?a:0)-(null!==(r=null===(c=e.build)||void 0===c?void 0:c.created)&&void 0!==r?r:0)}var lt=function(){for(var e=arguments.length,t=new Array(e),a=0;a=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function pt(e,t){var a=e.title,r=e.titleId,c=bt(e,dt);return n.createElement("svg",mt({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,it||(it=n.createElement("path",{d:"M13.6667 6.16668H3.52504L8.18337 1.50834L7.00004 0.333344L0.333374 7.00001L7.00004 13.6667L8.17504 12.4917L3.52504 7.83334H13.6667V6.16668Z",fill:"#6B6D85"})))}var ht=n.forwardRef(pt),jt=(a.p,a(302)),ft=a.n(jt),vt=D.a.bind(ft.a),Ot=function(e){var t=e.query,a=e.slug,n=e.handleLinkClick;return Object(He.jsxs)("div",{className:vt("search-card-wrapper"),children:[Object(He.jsx)("div",{className:vt("search-card-left"),children:Object(He.jsx)(ue,{})}),Object(He.jsxs)("div",{className:vt("search-card-right"),children:[Object(He.jsxs)("span",{className:vt("search-card-kicker"),children:['Found "',Object(He.jsx)("b",{children:t}),'" in'," ",Object(He.jsx)("b",{children:"Repositories"})]}),Object(He.jsx)("p",{className:vt("search-card-content"),children:Object(He.jsx)(l.b,{to:"/".concat(a),onClick:n,children:a})})]})]})},gt=function(e){var t=e.isShown,a=e.hide,r=ut(),c=r.repos,l=r.reloadOnce,i=Object(n.useMemo)((function(){return c?Object.values(c):void 0}),[c]);Object(n.useEffect)((function(){return l()}),[l]);var u=Object(n.useState)(""),d=Object(o.a)(u,2),m=d[0],b=d[1],p=Object(n.useState)([]),h=Object(o.a)(p,2),j=h[0],f=h[1],v=Object(n.useRef)(),O=function(){v.current.classList.add(vt("slide-out")),b(""),setTimeout(a,200)};U(v,O);var g;return Object(n.useEffect)((function(){t&&v.current.querySelector("input").focus()}),[t]),Object(n.useEffect)((function(){if(m.length||f([]),m.length&&(null===i||void 0===i?void 0:i.length)){var e=function(e,t){var a=[],n=t.toLowerCase(),r=n.split("/"),c=Object(o.a)(r,2),s=c[0],l=c[1];return e.forEach((function(e){(l?e.namespace.toLowerCase().indexOf(s)>-1&&e.name.toLowerCase().indexOf(l)>-1:e.slug.toLowerCase().indexOf(n)>-1)&&a.push(e)})),a}(function(e){return null===e||void 0===e?void 0:e.slice(0).sort(lt)}(i),m);f(e)}}),[m,i]),m.length&&!j.length?g=Object(He.jsx)("p",{children:"Repos not found"}):j.length&&(g=j.map((function(e){var t=e.slug,a=e.id;return Object(He.jsx)(Ot,{slug:t,query:m,handleLinkClick:O},a)}))),t?s.a.createPortal(Object(He.jsxs)("div",{ref:v,className:vt("wrapper"),children:[Object(He.jsxs)("div",{className:vt("header"),children:[Object(He.jsx)(Ye,{tabIndex:0,className:vt("back-btn"),theme:"plain",onClick:O,children:Object(He.jsx)(ht,{})}),Object(He.jsx)("input",{tabIndex:0,className:vt("input"),type:"text",placeholder:"Search repositories",onChange:function(e){return b(e.target.value.trim())}})]}),Object(He.jsxs)("div",{className:vt("wrapper-results"),children:[Object(He.jsx)("span",{className:vt("kicker"),children:"Search results"}),Object(He.jsx)("div",{className:vt("results"),children:g})]})]}),document.body):null},_t=a(303),xt=a.n(_t),wt=D.a.bind(xt.a),yt=function(){return Object(He.jsxs)(l.b,{className:wt("sidebar-item","anonymous"),to:"/welcome",children:[Object(He.jsx)("div",{role:"img","aria-label":"Click to sign in",children:Object(He.jsx)(Re,{})}),Object(He.jsx)("span",{children:"Click to sign in or sign up."})]})};function Nt(e){var t=e.user,a=Object(n.useState)(!1),r=Object(o.a)(a,2),c=r[0],s=r[1],i=q(),u=i.storedTheme,d=i.toggleTheme,m=!!t,b=null===t||void 0===t?void 0:t.admin,p=Object(He.jsxs)("div",{className:wt("top"),children:[Object(He.jsx)(Ye,{as:"link",to:"/",className:wt("sidebar-item","logo"),children:Object(He.jsx)("img",{src:J,alt:"Drone Logo"})}),m&&Object(He.jsx)(Ye,{className:wt("sidebar-item","search-btn"),theme:"plain",label:"Search",onClick:function(){return s(!0)},children:Object(He.jsx)(ue,{})})]}),h=Object(He.jsxs)("div",{className:wt("bottom"),children:[Object(He.jsx)(Ye,{className:wt("sidebar-item","theme-btn"),label:"Search",onClick:d,children:u===P?Object(He.jsx)(Se,{}):Object(He.jsx)(xe,{})}),b?Object(He.jsx)(l.c,{to:"/settings",className:wt("sidebar-item"),activeClassName:wt("sidebar-item-active"),children:Object(He.jsx)(je,{})}):null,m?Object(He.jsx)(l.c,{as:"link",to:"/account",className:wt("sidebar-item"),activeClassName:wt("sidebar-item-active"),theme:"plain",children:Object(He.jsx)(Ve,{className:wt("avatar"),path:null===t||void 0===t?void 0:t.avatar,text:null===t||void 0===t?void 0:t.login})}):Object(He.jsx)(yt,{})]});return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("aside",{className:wt("wrapper"),children:Object(He.jsxs)("nav",{className:wt("sidebar"),children:[p,h]})}),t?Object(He.jsx)(gt,{isShown:c,hide:function(){return s(!1)}}):void 0]})}Nt.defaultProps={user:null,drawer:null};var kt=r.a.createContext(),Et={isRepoNavDisabled:!1,isAccSyncing:null},Ct=function(e){var t=e.children,a=r.a.useState(Et);return Object(He.jsx)(kt.Provider,{value:a,children:t})},St=function(e){var t=Object(h.b)(e),a=t.data,n=t.error;return{data:a,mutate:t.mutate,isError:n,isLoading:!n&&!a}},Lt=50,Mt=[{regex:new RegExp(/^\/$/),page:"Home"},{regex:new RegExp(/^\/builds-feed$/),page:"BuildsFeed"},{regex:new RegExp(/^\/[a-zA-Z0-9-_.~]+?\/[a-zA-Z0-9-_.]+?$/),page:"Builds"},{regex:new RegExp(/^\/[a-zA-Z0-9-_.~]+?\/[a-zA-Z0-9-_.]+?\/[0-9]+?(\/[0-9]+?\/[0-9]+?)?$/),page:"Build"}],Pt=function(){var e=Object(m.a)(d.a.mark((function e(t,a){var n,r,c=arguments;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>2&&void 0!==c[2]?c[2]:null,"/".concat(a.namespace,"/").concat(a.name)===t){e.next=3;break}return e.abrupt("return");case 3:r='arg@"many"@"/api/repos'.concat(t,"/builds?page=1&per_page=").concat(Lt,'"'),Object(h.c)(r,function(){var e=Object(m.a)(d.a.mark((function e(t){var r,c,s;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null!==n&&void 0!==n?n:a.build,null===t||void 0===t?void 0:t.length){e.next=3;break}return e.abrupt("return",[[r]]);case 3:if(c=t.flat(),!((s=c.findIndex((function(e){return e.id===r.id})))>0)){e.next=7;break}return e.abrupt("return",[[].concat(Object(Ke.a)(c.slice(0,s)),[r],Object(Ke.a)(c.slice(s+1)))]);case 7:if(s){e.next=9;break}return e.abrupt("return",[[r].concat(Object(Ke.a)(c.slice(1)))]);case 9:if(!(c.length>Lt)){e.next=11;break}return e.abrupt("return",[[r].concat(Object(Ke.a)(c.slice(0,c.length-1)))]);case 11:return e.abrupt("return",[[r].concat(Object(Ke.a)(c))]);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!1);case 5:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),It=function(){var e=ut().update,t=Object(n.useState)(),a=Object(o.a)(t,2)[1],r=Object(n.useCallback)((function(){a()}),[]),c=function(t){var a,n=JSON.parse(t.data);window.DEBUG&&(console.debug("The server has sent an event:"),console.debug(n));var r=window.location.pathname;switch(null===(a=Mt.find((function(e){return e.regex.test(r)})))||void 0===a?void 0:a.page){case"Builds":Pt(r,n);break;case"Build":!function(e,t){var a=e.split("/").filter(Boolean),n=Object(o.a)(a,3),r=n[0],c=n[1],s=n[2],l=t.namespace,i=t.name,u=t.build.number;r===l&&c===i&&+s===u&&Object(h.c)("/api/repos/".concat(l,"/").concat(i,"/builds/").concat(u),Object(m.a)(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.build);case 1:case"end":return e.stop()}}),e)}))),!1)}(r,n)}Object(h.c)("/api/user/repos?latest=true",function(e){return function(t){if(!t||!Array.isArray(t)||!t.length)return t;var a=t.findIndex((function(t){var a=t.id;return e.id===a}));return a<0?t:!t.build||t.build.number<=e.build.number?0===a?[e].concat(Object(Ke.a)(t.slice(1))):[].concat(Object(Ke.a)(t.slice(0,a)),[e],Object(Ke.a)(t.slice(a+1))):t}}(n),!1),e(n)};Object(n.useEffect)((function(){var e="".concat(f,"/api/stream").concat(j?"?access_token=".concat(j):""),t=new EventSource(e);return t.onmessage=c,t.onerror=r,function(){return t.close()}}),[r])},Rt=a(304),Dt=a.n(Rt);function At(e){if(!e)return[];var t=new Dt.a;return t.use_classes=!0,Array.isArray(e)?e.map((function(e){return Object(i.a)({html:t.ansi_to_html(e.out)},e)})):Object(i.a)({html:t.ansi_to_html(e.out)},e)}var Ht=function(e){var t=e.namespace,a=e.name;return St("/api/repos/".concat(t,"/").concat(a))},Ft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withPolling,a=void 0!==t&&t,r=e.timeout,c=void 0===r?1e4:r,s=Object(n.useState)(void 0),l=Object(o.a)(s,2),i=l[0],u=l[1],b=Object(n.useState)(void 0),p=Object(o.a)(b,2),h=p[0],j=p[1],f=Object(n.useState)(!1),v=Object(o.a)(f,2),O=v[0],g=v[1],_=Object(n.useState)(!1),x=Object(o.a)(_,2),w=x[0],y=x[1],N=function(){var e=Object(m.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/user");case 3:return t=e.sent,u(t),e.abrupt("return",t);case 8:e.prev=8,e.t0=e.catch(0),j(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();return Object(n.useEffect)((function(){N()}),[]),Object(n.useEffect)((function(){var e;return a&&!w&&(e=setInterval(Object(m.a)(d.a.mark((function t(){var a;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,N();case 3:a=t.sent,g(a.syncing),a.syncing||(y(!a.syncing),clearInterval(e)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),j(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])}))),c)),a||(g(!1),y(!1)),function(){return clearInterval(e)}}),[a,c,w]),{data:i,isError:h,isLoading:!i&&!h,isSyncing:O,isSynced:w}},Bt=a(305),zt=a.n(Bt),Vt=D.a.bind(zt.a);var Tt=function(e){var t=e.children;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:Vt("wrapper"),children:[t[0],Object(He.jsx)("div",{className:Vt("inner"),children:Object(He.jsx)("main",{className:Vt("container","content"),children:t[1]})})]})})},Wt=a(306),Ut=a.n(Wt),Zt=D.a.bind(Ut.a),Gt=function(e){var t=e.className,a=e.intent,n=e.children;return Object(He.jsx)("div",{className:Zt("wrapper","wrapper-".concat(a),t),children:n})};Gt.defaultProps={className:"",intent:"success"};var qt=Gt,Yt=a(307),Kt=a.n(Yt),Jt=D.a.bind(Kt.a);function Qt(){return Object(He.jsxs)(He.Fragment,{children:[E&&Object(He.jsx)("div",{className:Jt("system-messages-wrapper"),children:Object(He.jsxs)(qt,{intent:"danger",className:Jt("message-with-link"),children:["Your Server License is Expired.",Object(He.jsx)("a",{href:"https://docs.drone.io/license-is-expired",target:"_blank",rel:"noopener noreferrer",children:"Learn more"})]})}),C&&Object(He.jsx)("div",{className:Jt("system-messages-wrapper"),children:Object(He.jsxs)(qt,{intent:"danger",className:Jt("message-with-link"),children:["Your License Limit is Exceeded.",Object(He.jsx)("a",{href:"https://docs.drone.io/license-is-exceeded",target:"_blank",rel:"noopener noreferrer",children:"Learn more"}),"or",Object(He.jsx)("a",{href:"https://drone.io/enterprise",target:"_blank",rel:"noopener noreferrer",children:"Purchase License"})]})})]})}a(398);var Xt,$t,ea=a(85),ta=["title","titleId"];function aa(){return aa=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ra(e,t){var a=e.title,r=e.titleId,c=na(e,ta);return n.createElement("svg",aa({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-copy",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Xt||(Xt=n.createElement("rect",{x:9,y:9,width:13,height:13,rx:2,ry:2})),$t||($t=n.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))}var ca=n.forwardRef(ra),sa=(a.p,a(308)),la=a.n(sa),ia=D.a.bind(la.a),oa={token:{copied:!1,snippet:null},api:{copied:!1,snippet:null},cli:{copied:!1,snippet:null}};function ua(){var e,t=Object(n.useState)(oa),a=Object(o.a)(t,2),r=a[0],c=a[1],s=function(){var e=Object(n.useState)(!1),t=Object(o.a)(e,2),a=t[0],r=t[1],c=Object(n.useState)(""),s=Object(o.a)(c,2),l=s[0],i=s[1],u=Object(n.useState)(null),b=Object(o.a)(u,2),p=b[0],h=b[1],j=function(){var e=Object(m.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),e.prev=1,e.next=4,at("/api/user/token",{method:"POST"});case 4:t=e.sent,i(t),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0.message),h(e.t0);case 12:return e.prev=12,r(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,8,12,15]])})));return function(){return e.apply(this,arguments)}}();return Object(n.useEffect)((function(){j()}),[]),{data:l,isLoading:a,isError:p}}(),l=s.data;A("Account");var u=function(e){return function(){c((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(z.a)({},e,Object(i.a)(Object(i.a)({},t[e]),{},{copied:!0})))})),setTimeout((function(){c((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(z.a)({},e,Object(i.a)(Object(i.a)({},t[e]),{},{copied:!1})))}))}),2e3)}};return Object(n.useLayoutEffect)((function(){(null===l||void 0===l?void 0:l.token)&&c({token:{copied:!1,snippet:l.token},api:{copied:!1,snippet:["curl -i ".concat(f,"/api/user \\"),'-H "Authorization: Bearer '.concat(l.token,'"')]},cli:{copied:!1,snippet:["export DRONE_SERVER=".concat(f),"export DRONE_TOKEN=".concat(l.token),"drone info"]}})}),[null===l||void 0===l?void 0:l.token]),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("header",{className:ia("header"),children:[Object(He.jsx)("h1",{children:"Account Settings"}),Object(He.jsx)("a",{href:"/logout",target:"_self",children:"Logout"})]}),Object(He.jsx)("section",{className:ia("wrapper"),children:r.token.snippet?Object(He.jsxs)("div",{children:[Object(He.jsxs)("div",{className:ia("row"),children:[Object(He.jsx)("span",{className:ia("label"),children:"Your personal token:"}),Object(He.jsxs)("pre",{className:ia("snippet"),children:[Object(He.jsx)(ea.CopyToClipboard,{text:r.token.snippet,onCopy:u("token"),children:Object(He.jsx)(Ye,{className:ia("copy-btn"),children:r.token.copied?"Copied":Object(He.jsx)(ca,{})})}),Object(He.jsx)("code",{children:r.token.snippet})]})]}),Object(He.jsxs)("div",{className:ia("row"),children:[Object(He.jsx)("span",{className:ia("label"),children:"Example API Usage:"}),Object(He.jsxs)("pre",{className:ia("snippet"),children:[Object(He.jsx)(ea.CopyToClipboard,{text:r.api.snippet.join("\n"),onCopy:u("api"),children:Object(He.jsx)(Ye,{className:ia("copy-btn"),children:r.api.copied?"Copied":Object(He.jsx)(ca,{})})}),Object(He.jsxs)("code",{children:[Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:"$"}),r.api.snippet[0]]}),Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:">"}),r.api.snippet[1]]})]})]})]}),Object(He.jsxs)("div",{className:ia("row"),children:[Object(He.jsx)("span",{className:ia("label"),children:"Example CLI Usage:"}),Object(He.jsxs)("pre",{className:ia("snippet"),children:[Object(He.jsx)(ea.CopyToClipboard,{text:null===(e=r.cli.snippet)||void 0===e?void 0:e.join("\n"),onCopy:u("cli"),children:Object(He.jsx)(Ye,{className:ia("copy-btn"),children:r.cli.copied?"Copied":Object(He.jsx)(ca,{})})}),Object(He.jsxs)("code",{children:[Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:"$"}),r.cli.snippet[0]]}),Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:"$"}),r.cli.snippet[1]]}),Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:"$"}),r.cli.snippet[2]]})]})]})]})]}):null})]})}var da,ma=a(4),ba=a.n(ma),pa=["title","titleId"];function ha(){return ha=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function fa(e,t){var a=e.title,r=e.titleId,c=ja(e,pa);return n.createElement("svg",ha({viewBox:"0 0 24 24",width:24,height:24,stroke:"currentColor",strokeWidth:2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"css-i6dzq1",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,da||(da=n.createElement("line",{x1:5,y1:12,x2:19,y2:12})))}var va,Oa,ga=n.forwardRef(fa),_a=(a.p,["title","titleId"]);function xa(){return xa=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ya(e,t){var a=e.title,r=e.titleId,c=wa(e,_a);return n.createElement("svg",xa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:1.414,ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,va||(va=n.createElement("path",{fill:"none",d:"M0 0h20v20H0z"})),Oa||(Oa=n.createElement("g",{fill:"currentColor",fillRule:"nonzero"},n.createElement("path",{d:"M5.434 6.566a.802.802 0 0 1 1.132-1.132l7.778 7.778a.802.802 0 0 1-1.132 1.132L5.434 6.566z"}),n.createElement("path",{d:"M13.212 5.434a.802.802 0 0 1 1.132 1.132l-7.778 7.778a.802.802 0 0 1-1.132-1.132l7.778-7.778z"}))))}var Na,ka=n.forwardRef(ya),Ea=(a.p,["title","titleId"]);function Ca(){return Ca=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function La(e,t){var a=e.title,r=e.titleId,c=Sa(e,Ea);return n.createElement("svg",Ca({viewBox:"0 0 24 24",width:24,height:24,stroke:"currentColor",strokeWidth:2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"css-i6dzq1",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Na||(Na=n.createElement("line",{x1:5,y1:12,x2:19,y2:12})))}var Ma,Pa=n.forwardRef(La),Ia=(a.p,["title","titleId"]);function Ra(){return Ra=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Aa(e,t){var a=e.title,r=e.titleId,c=Da(e,Ia);return n.createElement("svg",Ra({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ma||(Ma=n.createElement("path",{d:"M20 11.2586V11.9946C19.999 13.7197 19.4404 15.3983 18.4075 16.78C17.3745 18.1618 15.9226 19.1726 14.2683 19.6617C12.6139 20.1508 10.8458 20.0921 9.22757 19.4942C7.60934 18.8964 6.22772 17.7915 5.28877 16.3442C4.34981 14.897 3.90383 13.185 4.01734 11.4636C4.13085 9.74223 4.79777 8.10364 5.91862 6.79224C7.03948 5.48084 8.55423 4.56689 10.2369 4.1867C11.9197 3.80651 13.6802 3.98045 15.256 4.68258",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var Ha,Fa,Ba=n.forwardRef(Aa),za=(a.p,["title","titleId"]);function Va(){return Va=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Wa(e,t){var a=e.title,r=e.titleId,c=Ta(e,za);return n.createElement("svg",Va({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:1.414,ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ha||(Ha=n.createElement("path",{fill:"none",d:"M0 0h20v20H0z"})),Fa||(Fa=n.createElement("path",{d:"M14.577 6.23a.887.887 0 0 1 1.17-.019.704.704 0 0 1 .021 1.063l-6.844 6.439-.025.023a1.11 1.11 0 0 1-1.463-.023l-3.204-3.015a.704.704 0 0 1 .021-1.063.887.887 0 0 1 1.17.019l2.757 2.594 6.397-6.018z",fill:"currentColor",fillRule:"nonzero"})))}var Ua=n.forwardRef(Wa),Za=(a.p,a(309)),Ga=a.n(Za),qa=D.a.bind(Ga.a),Ya=function(e){switch(e){case"error":case"failure":return Object(He.jsx)(ka,{});case"killed":case"declined":case"skipped":return Object(He.jsx)(ga,{});case"running":case"pending":case"waiting_on_dependencies":case"blocked":return Object(He.jsx)(Ba,{});case"success":return Object(He.jsx)(Ua,{});case"inactive":return Object(He.jsx)(Pa,{});default:return null}},Ka=function(e){var t=e.className,a=e.status;return Object(He.jsx)("div",{className:qa("status","status-".concat(a),t||""),title:"Status: ".concat(a),children:Ya(a)})};Ka.defaultProps={className:void 0,status:void 0};var Ja,Qa,Xa,$a,en,tn,an,nn,rn=Ka,cn=["title","titleId"];function sn(){return sn=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function on(e,t){var a=e.title,r=e.titleId,c=ln(e,cn);return n.createElement("svg",sn({width:102,height:89,viewBox:"0 0 102 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ja||(Ja=n.createElement("path",{opacity:.8,d:"M40 9C62.0914 9 80 26.9086 80 49C80 71.0914 62.0914 89 40 89C17.9086 89 0 71.0914 0 49C0 26.9086 17.9086 9 40 9Z",fill:"url(#paint0_linear)"})),Qa||(Qa=n.createElement("path",{d:"M80 47.5C72.5 53.5 34 73 0 47.5V52.5L0.5 55.5L1 58.5L2 61.5C36 76 49.5 72 77 62L78 61.5L78.5 60L79 58L79.5 56L79.75 53.75L80 52V50V47.5Z",fill:"#f8f9fa"})),Xa||(Xa=n.createElement("path",{d:"M40.3 78.8C52.0637 78.8 61.6 71.9052 61.6 63.4C61.6 54.8948 52.0637 48 40.3 48C28.5363 48 19 54.8948 19 63.4C19 71.9052 28.5363 78.8 40.3 78.8Z",fill:"#f8f9fa"})),$a||($a=n.createElement("path",{d:"M40.3004 73.0031C47.1487 73.0031 52.7004 69.0185 52.7004 64.1031C52.7004 59.1878 47.1487 55.2031 40.3004 55.2031C33.4521 55.2031 27.9004 59.1878 27.9004 64.1031C27.9004 69.0185 33.4521 73.0031 40.3004 73.0031Z",fill:"url(#paint1_linear)"})),en||(en=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.9619 40L57.9101 39.998L53.6955 39.7071C53.3937 39.6872 53.1358 39.4869 53.0392 39.199C52.9426 38.9131 53.0282 38.5973 53.2573 38.3991L56.4023 35.6595L53.9873 35.4921C53.5759 35.4632 53.2662 35.1066 53.2941 34.6951C53.323 34.2837 53.6895 33.9739 54.0908 34.0017L58.3045 34.2936C58.6063 34.3136 58.8652 34.5138 58.9608 34.8007C59.0574 35.0876 58.9718 35.4034 58.7437 35.6017L55.5976 38.3413L58.0127 38.5077C58.424 38.5356 58.7347 38.8932 58.7059 39.3046C58.679 39.6981 58.3513 40 57.9619 40Z",fill:"#6B6D85"})),tn||(tn=n.createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M64.6545 30.4262C64.4577 30.0542 64.5255 29.6119 64.8234 29.3041L71.7314 22.1791L65.1769 22.5317C64.5811 22.5715 64.0375 22.1363 64.0019 21.5747C63.9663 21.0132 64.4332 20.5311 65.0458 20.4975L74.2805 20.0001C74.7419 19.994 75.151 20.2019 75.3455 20.5729C75.5423 20.9439 75.4745 21.3862 75.1766 21.694L68.2686 28.819L74.8231 28.4664C75.4245 28.4307 75.9625 28.8618 75.9981 29.4233C76.0337 29.9849 75.5668 30.468 74.9542 30.5006L65.7195 30.998L65.6539 31C65.2292 31 64.8401 30.7778 64.6545 30.4262Z",fill:"#6B6D85"})),an||(an=n.createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M83.0908 18.9567C82.7628 18.2804 82.8758 17.4762 83.3724 16.9166L94.8857 3.96202L83.9616 4.60317C82.9685 4.67544 82.0625 3.88419 82.0032 2.86317C81.9439 1.84215 82.7221 0.965668 83.743 0.904518L99.1343 0.000238518C99.9032 -0.0108797 100.585 0.367139 100.909 1.04164C101.237 1.71614 101.124 2.52036 100.628 3.07998L89.1143 16.0345L100.038 15.3934C101.041 15.3285 101.938 16.1123 101.997 17.1334C102.056 18.1544 101.278 19.0327 100.257 19.092L84.8658 19.9963L84.7564 20C84.0487 20 83.4002 19.596 83.0908 18.9567Z",fill:"#6B6D85"})),nn||(nn=n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear",x1:12.5,y1:21.5,x2:70,y2:77.5,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#D9DAE5"}),n.createElement("stop",{offset:1,stopColor:"#9293AB"})),n.createElement("linearGradient",{id:"paint1_linear",x1:32.3754,y1:56.2101,x2:47.6364,y2:71.4711,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#D9DAE5"}),n.createElement("stop",{offset:1,stopColor:"#9293AB"})))))}var un=n.forwardRef(on),dn=(a.p,a(310)),mn=a.n(dn),bn=D.a.bind(mn.a),pn={builds:Object(He.jsx)(un,{})};function hn(e){var t=e.page,a=e.title,n=e.message,r=e.children;return Object(He.jsx)("section",{className:bn("wrapper"),children:Object(He.jsxs)("div",{className:bn("inner"),children:[pn[t],Object(He.jsx)("h2",{children:a}),n&&Object(He.jsx)("p",{children:n}),Object(He.jsx)("div",{children:r})]})})}hn.defaultProps={page:"builds",title:"It looks a little empty here!",children:null,message:null};var jn=a(311),fn=a.n(jn),vn=D.a.bind(fn.a);function On(e){var t=e.repo.active,a=Object(b.i)(),r=a.namespace,c=a.name,s=function(e){var t=e.namespace,a=e.name;return St("/api/repos/".concat(t,"/").concat(a,"/builds/branches"))}({namespace:r,name:c}),l=s.data,i=s.isLoading,o=Object(b.g)();Object(n.useLayoutEffect)((function(){t||o.replace("/".concat(r,"/").concat(c,"/settings"))}),[t,o,r,c]);var u=null;return u=i?null:l.length?Object(He.jsx)("section",{className:vn("wrapper"),children:Object(He.jsx)("div",{className:vn("inner"),children:Object(He.jsx)(gn,{data:l})})}):Object(He.jsx)(hn,{title:"Your Branch List is Empty.",message:"This list will be populated when you execute a pipeline for an open branch."}),Object(He.jsx)(He.Fragment,{children:u})}function gn(e){var t=e.data;return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("div",{className:vn("branch-list-header"),children:[Object(He.jsx)("div",{}),Object(He.jsx)("div",{children:"Branch"}),Object(He.jsx)("div",{children:"Commit"}),Object(He.jsx)("div",{children:"Committer"}),Object(He.jsx)("div",{children:"Message"})]}),Object(He.jsx)("div",{className:vn("branch-list"),children:t.map((function(e){return Object(He.jsx)(l.b,{to:"".concat(e.number),children:Object(He.jsxs)("div",{className:vn("branch-list-item"),children:[Object(He.jsx)("div",{children:Object(He.jsx)(rn,{status:e.status})}),Object(He.jsx)("div",{className:vn("target"),children:e.target}),Object(He.jsx)("div",{className:vn("commit"),children:e.after.slice(0,8)}),Object(He.jsxs)("div",{children:[Object(He.jsx)(Ve,{className:vn("avatar"),path:e.author_avatar,alt:e.author_login,text:e.author_login}),Object(He.jsx)("span",{children:e.author_login})]}),e.message&&Object(He.jsx)("div",{className:vn("message"),children:Object(He.jsx)("span",{children:e.message})})]})},e.id)}))})]})}On.propTypes={match:ba.a.shape({params:ba.a.shape({namespace:ba.a.string.isRequired,name:ba.a.string.isRequired}).isRequired}).isRequired};var _n=a(312),xn=a(313),wn=a(314),yn=a.n(wn),Nn=D.a.bind(yn.a),kn=function(){var e=Object(m.a)(d.a.mark((function e(t,a,n){var r,c,s;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$e()({method:"GET",url:t});case 2:return r=e.sent,c=new xn.Template(null===r||void 0===r?void 0:r.data),e.next=6,c.expand({$root:Object(i.a)({},a)});case 6:s=e.sent,n(s);case 8:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),En=function(e){var t=e.data,a=function(e){var t=e.namespace,a=e.name,n=e.build,r=e.stage,c=e.step;return St("/api/repos/".concat(t,"/").concat(a,"/cards/").concat(n,"/").concat(r,"/").concat(c))}({namespace:e.namespace,name:e.name,build:e.build,stage:t.stage,step:t.step}),r=a.data,c=a.isError,s=a.isLoading,l=Object(n.useState)(null),i=Object(o.a)(l,2),u=i[0],d=i[1];return Object(n.useEffect)((function(){s||u||kn(t.schema,r,d)}),[s,t,r,u]),s||!u?Object(He.jsx)("li",{className:Nn("card","card-message"),children:"CARD LOADING..."}):c?Object(He.jsx)("li",{className:Nn("card","card-message"),children:"CARD ERROR"}):Object(He.jsx)("li",{className:Nn("card"),children:Object(He.jsx)(_n.AdaptiveCard,{payload:u})})},Cn=a(315),Sn=a.n(Cn),Ln=D.a.bind(Sn.a),Mn=function(e){var t=e.data,a=e.isDataLoading,n=e.namespace,r=e.name,c=e.build;return a?Object(He.jsx)("div",{className:Ln("message"),children:"LOADING..."}):t.length?Object(He.jsx)("ul",{className:Ln("card-list"),children:null===t||void 0===t?void 0:t.map((function(e){var t=e.stage.toString()+" - "+e.step.toString();return Object(He.jsx)(En,{data:e,namespace:n,name:r,build:c},t)}))}):Object(He.jsx)("div",{className:Ln("card-list"),children:Object(He.jsx)("span",{className:Ln("message"),children:"NO ADAPTIVE CARDS FOUND"})})};Mn.defaultProps={data:[]};var Pn,In=Mn,Rn=a(368),Dn=(a(485),a(18)),An=a(27),Hn=a.n(An),Fn=["title","titleId"];function Bn(){return Bn=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Vn(e,t){var a=e.title,r=e.titleId,c=zn(e,Fn);return n.createElement("svg",Bn({width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Pn||(Pn=n.createElement("g",null,n.createElement("path",{d:"M9.60938 4.60938H5.39062V0.390625C5.39062 0.174883 5.21574 0 5 0C4.78426 0 4.60938 0.174883 4.60938 0.390625V4.60938H0.390625C0.174883 4.60938 0 4.78426 0 5C0 5.21574 0.174883 5.39062 0.390625 5.39062H4.60938V9.60938C4.60938 9.82512 4.78426 10 5 10C5.21574 10 5.39062 9.82512 5.39062 9.60938V5.39062H9.60938C9.82512 5.39062 10 5.21574 10 5C10 4.78426 9.82512 4.60938 9.60938 4.60938Z",fill:"black"}))))}var Tn,Wn=n.forwardRef(Vn),Un=(a.p,["title","titleId"]);function Zn(){return Zn=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function qn(e,t){var a=e.title,r=e.titleId,c=Gn(e,Un);return n.createElement("svg",Zn({width:10,height:2,viewBox:"0 0 10 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Tn||(Tn=n.createElement("g",null,n.createElement("path",{d:"M9.60938 0.609375H5.39062H4.60938H0.390625C0.174883 0.609375 0 0.784258 0 1C0 1.21574 0.174883 1.39062 0.390625 1.39062H4.60938H5.39062H9.60938C9.82512 1.39062 10 1.21574 10 1C10 0.784258 9.82512 0.609375 9.60938 0.609375Z",fill:"black"}))))}var Yn,Kn=n.forwardRef(qn),Jn=(a.p,["title","titleId"]);function Qn(){return Qn=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function $n(e,t){var a=e.title,r=e.titleId,c=Xn(e,Jn);return n.createElement("svg",Qn({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Yn||(Yn=n.createElement("g",null,n.createElement("rect",{opacity:.01,width:14,height:14,fill:"black"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1H0V0H1V1ZM0 7H1V6H0V7ZM0 8H1V9H0V8ZM0 13H1V12H0V13ZM1 11H0V10H1V11ZM0 5H1V4H0V5ZM1 3H0V2H1V3ZM12 9H13V8H12V9ZM12 6H13V7H12V6ZM11 0H10V1H11V0ZM12 0H13V1H12V0ZM13 2H12V3H13V2ZM12 4H13V5H12V4ZM4 1H5V0H4V1ZM13 14H12V13H13V14ZM13 12H14V13H13V12ZM13 12V10H12V12H10V13H12V12H13ZM8 1H9V0H8V1ZM4 13H5V12H4V13ZM3 13H2V12H3V13ZM2 1H3V0H2V1ZM9 13H8V12H9V13ZM6 1H7V0H6V1ZM7 13H6V12H7V13Z",fill:"black"}))))}var er,tr=n.forwardRef($n),ar=(a.p,["title","titleId"]);function nr(){return nr=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function cr(e,t){var a=e.title,r=e.titleId,c=rr(e,ar);return n.createElement("svg",nr({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,er||(er=n.createElement("g",{opacity:.9},n.createElement("rect",{opacity:.01,width:16,height:16,fill:"black"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3.33333V2H2V5.33333H3.33333V3.33333H6ZM14 2H10V3.33333H12.6667V5.33333H14V2ZM10 14V12.6667H12.6667V10.6667H14V14H10ZM2 14H6V12.6667H3.33333V10.6667H2V14Z",fill:"black"}))))}var sr,lr=n.forwardRef(cr),ir=(a.p,a(317)),or=a.n(ir),ur=D.a.bind(or.a),dr=function(e){var t=e.engine,a=Object(n.useCallback)((function(){t.zoomToFit()}),[t]),r=Object(n.useCallback)((function(){t.getModel().setZoomLevel(100),t.getModel().setOffset(0,0),t.repaintCanvas()}),[t]),c=Object(n.useCallback)((function(){var e=t.getModel().getZoomLevel();t.getModel().setZoomLevel(e+20),t.repaintCanvas()}),[t]),s=Object(n.useCallback)((function(){var e=t.getModel().getZoomLevel();t.getModel().setZoomLevel(e-20),t.repaintCanvas()}),[t]);return Object(He.jsxs)("div",{className:ur("diagram-controls"),children:[Object(He.jsx)(Ye,{className:ur("btn"),title:"Zoom to fit",onClick:a,children:Object(He.jsx)(lr,{})}),Object(He.jsx)(Ye,{className:ur("btn"),title:"Reset zoom",onClick:r,children:Object(He.jsx)(tr,{})}),Object(He.jsxs)("div",{className:ur("diagram-controls-group"),children:[Object(He.jsx)(Ye,{className:ur("btn","btn-zoom-in"),title:"Zoom in",onClick:c,children:Object(He.jsx)(Wn,{})}),Object(He.jsx)(Ye,{className:ur("btn","btn-zoom-out"),title:"Zoom out",onClick:s,children:Object(He.jsx)(Kn,{})})]})]})},mr=a(55),br=a(56),pr=a(58),hr=a(57),jr=a(70),fr=a(39),vr=function(e){Object(pr.a)(a,e);var t=Object(hr.a)(a);function a(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(mr.a)(this,a),(e=t.call(this,Object(i.a)(Object(i.a)({},n),{},{type:"node-default"}))).width=80,e.height=36,e.isImperativelySelected=!1,e}return Object(br.a)(a,[{key:"setIsImperativelySelected",value:function(e){this.isImperativelySelected=e}},{key:"addPort",value:function(e){return Object(jr.a)(Object(fr.a)(a.prototype),"addPort",this).call(this,e),e}},{key:"addInPort",value:function(e){var t=new An.DefaultPortModel({in:!0,name:e,label:e});return this.addPort(t)}},{key:"addOutPort",value:function(e){var t=new An.DefaultPortModel({in:!1,name:e,label:e});return this.addPort(t)}},{key:"serialize",value:function(){return Object(i.a)(Object(i.a)({},Object(jr.a)(Object(fr.a)(a.prototype),"serialize",this).call(this)),{},{color:this.color})}},{key:"deserialize",value:function(e,t){Object(jr.a)(Object(fr.a)(a.prototype),"deserialize",this).call(this,e,t),this.color=e.color}}]),a}(An.NodeModel),Or=a(318),gr=a.n(Or),_r=D.a.bind(gr.a),xr=function(e){var t=e.engine,a=e.node;return Object(He.jsxs)("div",{className:_r("node-wrapper"),children:[Object(He.jsxs)("button",{className:_r("node-inner",{"node-inner-selected":a.isImperativelySelected},"node-inner-".concat(a.options.status)),type:"button",children:[a.getPort("in")&&Object(He.jsx)(An.PortWidget,{className:_r("port","port-in"),engine:t,port:a.getPort("in"),children:Object(He.jsx)("div",{className:_r("circle-port","circle-port-in")})}),a.getPort("out")&&Object(He.jsx)(An.PortWidget,{className:_r("port","port-out"),engine:t,port:a.getPort("out"),children:Object(He.jsx)("div",{className:_r("circle-port","circle-port-out")})}),Object(He.jsx)(rn,{className:_r("status"),status:a.options.status})]}),Object(He.jsx)("p",{className:_r("name"),children:a.options.name})]})},wr=function(e){Object(pr.a)(a,e);var t=Object(hr.a)(a);function a(){return Object(mr.a)(this,a),t.call(this,"node-default")}return Object(br.a)(a,[{key:"generateModel",value:function(){return new vr}},{key:"generateReactWidget",value:function(e){return Object(He.jsx)(xr,{engine:this.engine,node:e.model})}}]),a}(Dn.AbstractReactFactory),yr=function(e){Object(pr.a)(a,e);var t=Object(hr.a)(a);function a(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(mr.a)(this,a);var r=n.isStart,c=void 0===r||r;return(e=t.call(this,Object(i.a)(Object(i.a)({},n),{},{type:"node-edge",name:c?"Start":"Stop"}))).isStart=c,e.width=30,e.height=30,e.isStart?e.addPort(new An.DefaultPortModel({in:!1,name:"out"})):e.addPort(new An.DefaultPortModel({in:!0,name:"in"})),e}return Object(br.a)(a,[{key:"serialize",value:function(){return Object(jr.a)(Object(fr.a)(a.prototype),"serialize",this).call(this)}},{key:"deserialize",value:function(e,t){Object(jr.a)(Object(fr.a)(a.prototype),"deserialize",this).call(this,e,t)}}]),a}(An.NodeModel),Nr=["title","titleId"];function kr(){return kr=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Cr(e,t){var a=e.title,r=e.titleId,c=Er(e,Nr);return n.createElement("svg",kr({width:9,height:12,viewBox:"0 0 9 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,sr||(sr=n.createElement("path",{d:"M2.26845 0.724627C1.93557 0.471794 1.48737 0.42885 1.11214 0.613833C0.736903 0.798817 0.499633 1.17968 0.500001 1.59644L0.500001 10.4045C0.499983 10.8211 0.737385 11.2016 1.11255 11.3864C1.48771 11.5711 1.9357 11.5281 2.26845 11.2754L8.0673 6.87067C8.34 6.66343 8.5 6.34148 8.5 6C8.5 5.65852 8.34 5.33657 8.0673 5.12933L2.26845 0.724627Z",fill:"#09c270"})))}var Sr,Lr,Mr=n.forwardRef(Cr),Pr=(a.p,a(319)),Ir=a.n(Pr),Rr=D.a.bind(Ir.a),Dr=function(e){var t=e.engine,a=e.node;return Object(He.jsx)("div",{className:Rr("node-wrapper"),children:Object(He.jsxs)("button",{className:Rr("node-inner"),type:"button",children:[a.getPort("in")&&Object(He.jsx)(An.PortWidget,{className:Rr("port","port-in"),engine:t,port:a.getPort("in"),children:Object(He.jsx)("div",{className:Rr("circle-port","circle-port-in")})}),a.getPort("out")&&Object(He.jsx)(An.PortWidget,{className:Rr("port","port-out"),engine:t,port:a.getPort("out"),children:Object(He.jsx)("div",{className:Rr("circle-port","circle-port-out")})}),a.isStart?Object(He.jsx)(Mr,{}):Object(He.jsx)("i",{className:Rr("fake-icon-stop")})]})})},Ar=function(e){Object(pr.a)(a,e);var t=Object(hr.a)(a);function a(){return Object(mr.a)(this,a),t.call(this,"node-edge")}return Object(br.a)(a,[{key:"generateModel",value:function(){return new yr}},{key:"generateReactWidget",value:function(e){return Object(He.jsx)(Dr,{engine:this.engine,node:e.model})}}]),a}(Dn.AbstractReactFactory),Hr=a(320),Fr=a.n(Hr),Br=D.a.bind(Fr.a),zr=function(e,t,a){var n=e.getPort("out"),r=t.getPort("in"),c=n.link(r);c.setWidth(1),c.setColor("#2477e5"),a.push(c)},Vr=function(e){var t=e.items,a=e.nodeSelectHandler,r=e.selectedNodeNumber,c=e.graphOffsetX,s=e.graphOffsetY,l=e.kind,i=void 0===l?"step":l,o=Object(n.useMemo)((function(){return new An.DagreEngine({graph:{rankdir:"LR",ranker:"network-simplex",marginx:c,marginy:s,nodesep:35,edgesep:10,ranksep:75},includeLinks:!1})}),[c,s]),u=Object(n.useMemo)((function(){var e,n=null!==(e=null===t||void 0===t?void 0:t.map((function(e){var t=new vr({name:e.name,status:e.status,number:e.number,depends_on:e.depends_on});return t.addInPort("in"),t.addOutPort("out"),t})))&&void 0!==e?e:[];if(n.length){n.forEach((function(e){return e.registerListener({selectionChanged:function(e){var t=e.entity;Object.prototype.hasOwnProperty.call(t.options,"number")&&!["skipped","declined","waiting_on_dependencies"].includes(t.options.status)&&a(t.options.number)}})}));var r=new yr,c=new yr({isStart:!1});return[r].concat(n,c)}return n}),[t,a]),d=Object(n.useMemo)((function(){var e=[];if(function(e,t){return"stage"===t||e.some((function(e){var t;return null===(t=e.options.depends_on)||void 0===t?void 0:t.length}))}(u,i)){u.forEach((function(t,a){var n;a!==u.length-1&&(a||zr(t,u[a+1],e),(null===(n=t.options.depends_on)||void 0===n?void 0:n.length)&&u.filter((function(e){return t.options.depends_on.includes(e.options.name)})).forEach((function(a){zr(a,t,e)})))}));var t=u.slice(1,u.length-1),a=u[0],n=u[u.length-1];t.forEach((function(t){Object.keys(t.getPort("in").getLinks()).length||zr(a,t,e),Object.keys(t.getPort("out").getLinks()).length||zr(t,n,e)}))}else u.forEach((function(t,a){a!==u.length-1&&zr(t,u[a+1],e)}));return e}),[u,i]),m=Object(n.useMemo)((function(){return Hn()()}),[]),b=Object(n.useMemo)((function(){return new An.DiagramModel}),[]);return m.getNodeFactories().registerFactory(new wr),m.getNodeFactories().registerFactory(new Ar),Object(n.useLayoutEffect)((function(){u.length>=3&&u.slice(1,u.length-1).forEach((function(e){e.setIsImperativelySelected(e.getOptions().number===r)}))}),[u,r]),Object(n.useLayoutEffect)((function(){var e=b.getNodes(),t=b.getLinks();e.length&&e.map((function(e){return b.removeNode(e)})),t.length&&t.map((function(e){return b.removeLink(e)})),b.addAll.apply(b,Object(Ke.a)(u.concat(d))),o.redistribute(b),m.repaintCanvas()}),[m,b,u,d,o]),m.setModel(b),b.setLocked(!0),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)(Dn.CanvasWidget,{className:Br("diagram-wrapper"),engine:m}),Object(He.jsx)(dr,{engine:m})]})},Tr=a(321),Wr=a.n(Tr),Ur=a(710),Zr=a(711),Gr=["title","titleId"];function qr(){return qr=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Kr(e,t){var a=e.title,r=e.titleId,c=Yr(e,Gr);return n.createElement("svg",qr({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-clock",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Sr||(Sr=n.createElement("circle",{cx:12,cy:12,r:10})),Lr||(Lr=n.createElement("polyline",{points:"12 6 12 12 16 14"})))}var Jr,Qr,Xr=n.forwardRef(Kr),$r=(a.p,a(322)),ec=a.n($r),tc=D.a.bind(ec.a),ac=function(e,t){return e.toString().padStart(t?1:2,"0")},nc=function(e){var t=e.started,a=e.finished,n=e.withLetters,r=void 0!==n&&n;if(!t||!a)return"";var c=Object(Ur.a)({start:new Date(1e3*t),end:new Date(1e3*a)}),s=c.days,l=c.hours,i=c.minutes,o=c.seconds;return r?"".concat(s?"".concat(ac(s,r),"d"):""," ").concat(l?"".concat(ac(l,r),"h"):""," ").concat(ac(i,r),"m ").concat(ac(o,r),"s"):"".concat(s?"".concat(ac(s)):""," ").concat(l?"".concat(ac(l),":"):"").concat(ac(i),":").concat(ac(o))},rc=function(e){var t=e.className,a=e.withIcon,n=e.label,r=e.elapsed;return Object(He.jsxs)("div",{className:tc("elapsed-static",t||""),children:[a?Object(He.jsx)(Xr,{}):null,n&&Object(He.jsxs)("span",{children:[n,"\xa0"]}),r]})},cc=function(e){var t=e.started,a=e.className,n=e.withIcon,c=e.withLetters,s=e.label,l=function(e){var t=e.started,a=e.withLetters,n=r.a.useState((function(){return nc({started:t,finished:Date.now()/1e3,withLetters:a})})),c=Object(o.a)(n,2),s=c[0],l=c[1];return r.a.useEffect((function(){var e=setInterval((function(){l(nc({started:t,finished:Date.now()/1e3,withLetters:a}))}),1e3);return function(){return clearInterval(e)}}),[t,a]),s}({started:t,withLetters:c});return Object(He.jsx)(rc,{className:a,elapsed:l,withIcon:n,label:s})},sc=function(e){var t=e.className,a=e.started,n=e.finished,r=e.withIcon,c=e.withLetters,s=e.since,l=e.label,i=s?function(e){var t=e.dateSince;return Object(Zr.a)(1e3*t,{addSuffix:!0})}({dateSince:n}):nc({started:a,finished:n,withLetters:c});return Object(He.jsx)(rc,{elapsed:i,withIcon:r,className:t,label:l})},lc=function(e){var t=e.started,a=e.finished;return t&&!a?Object(He.jsx)(cc,Object(i.a)({},e)):Object(He.jsx)(sc,Object(i.a)({},e))},ic=["title","titleId"];function oc(){return oc=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function dc(e,t){var a=e.title,r=e.titleId,c=uc(e,ic);return n.createElement("svg",oc({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Jr||(Jr=n.createElement("path",{d:"M0.794117 14C0.590885 14 0.387653 13.9224 0.232582 13.7674C-0.0775275 13.4573 -0.0775275 12.9544 0.232582 12.6443L12.6443 0.232582C12.9545 -0.0775274 13.4573 -0.0775274 13.7674 0.232582C14.0775 0.542707 14.0775 1.04554 13.7674 1.35568L1.35564 13.7674C1.20058 13.9224 0.997349 14 0.794102 14L0.794117 14Z",fill:"currentColor"})),Qr||(Qr=n.createElement("path",{d:"M13.2059 14C13.0027 14 12.7994 13.9225 12.6444 13.7674L0.232582 1.35567C-0.0775275 1.04556 -0.0775275 0.542707 0.232582 0.232582C0.542739 -0.0775274 1.04557 -0.0775274 1.35568 0.232582L13.7674 12.6443C14.0775 12.9544 14.0775 13.4573 13.7674 13.7674C13.6124 13.9225 13.4091 14 13.2059 14H13.2059Z",fill:"currentColor"})))}var mc,bc,pc,hc=n.forwardRef(dc),jc=(a.p,["title","titleId"]);function fc(){return fc=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Oc(e,t){var a=e.title,r=e.titleId,c=vc(e,jc);return n.createElement("svg",fc({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-download",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,mc||(mc=n.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"})),bc||(bc=n.createElement("polyline",{points:"7 10 12 15 17 10"})),pc||(pc=n.createElement("line",{x1:12,y1:15,x2:12,y2:3})))}var gc,_c,xc=n.forwardRef(Oc),wc=(a.p,["title","titleId"]);function yc(){return yc=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function kc(e,t){var a=e.title,r=e.titleId,c=Nc(e,wc);return n.createElement("svg",yc({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-eye-off",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,gc||(gc=n.createElement("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"})),_c||(_c=n.createElement("line",{x1:1,y1:1,x2:23,y2:23})))}var Ec,Cc,Sc=n.forwardRef(kc),Lc=(a.p,["title","titleId"]);function Mc(){return Mc=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Ic(e,t){var a=e.title,r=e.titleId,c=Pc(e,Lc);return n.createElement("svg",Mc({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-eye",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ec||(Ec=n.createElement("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"})),Cc||(Cc=n.createElement("circle",{cx:12,cy:12,r:3})))}var Rc=n.forwardRef(Ic),Dc=(a.p,a(323)),Ac=a.n(Dc),Hc=function(e,t,a){switch(e){case"error":return t;case"failure":return"Exit Code ".concat(a);case"success":return"Exit Code 0";case"running":return"Step is running...";case"pending":return"Step is pending";case"killed":return"Step is killed (canceled)";case"skipped":return t?"Skipped due to error":"Skipped";default:return"Loading..."}},Fc=function(e,t){var a=null===e||void 0===e?void 0:e.length;if(!t&&a&&a>v){var n=Math.floor(a/v),r=a%v;return e.slice((n-1)*v+r)}return e},Bc=(a(706),D.a.bind(Ac.a)),zc=function(e){var t=e.areLogsLoading,a=e.toggleFollowLogs,n=e.shouldFollowLogs,r=e.handleDownloadClick,c=e.showDownloadBtn,s=e.showCloseBtn,l=e.showFollowLogsBtn,i=e.onCloseBtnClick;return Object(He.jsx)("header",{className:Bc("header"),children:Object(He.jsxs)("div",{className:Bc("header-inner"),children:[Object(He.jsx)("div",{className:Bc("info"),children:Object(He.jsx)("h3",{children:"Console Logs"})}),!t&&Object(He.jsxs)("div",{className:Bc("controls"),children:[l&&Object(He.jsx)(Ye,{className:Bc("controls-logs-toggler"),title:n?"Stop following logs":"Follow logs",onClick:a,children:n?Object(He.jsx)(Sc,{}):Object(He.jsx)(Rc,{})}),c&&Object(He.jsx)(Ye,{onClick:r,children:Object(He.jsx)(xc,{})}),s&&Object(He.jsx)(Ye,{className:Bc("btn-close"),onClick:i,children:Object(He.jsx)(hc,{})})]})]})})};zc.defaultProps={showFollowLogsBtn:!1,showDownloadBtn:!1,showCloseBtn:!1,onCloseBtnClick:void 0};var Vc=function(e){var t=e.stepStatus,a=e.stepError,n=e.stepExitCode,r=e.tmateLink,c=e.stageError,s=e.stageStatus;return Object(He.jsx)("footer",{className:Bc("footer"),children:Object(He.jsxs)("div",{className:Bc("summary"),children:[Object(He.jsxs)("div",{className:Bc("summary-info"),children:[(t||s)&&Object(He.jsx)(rn,{className:Bc("summary-status"),status:t||s}),Hc(t||s,a||c,n)]}),Object(He.jsx)("div",{className:Bc("summary-controls"),children:r?Object(He.jsx)("a",{className:Bc("tmate-link"),href:r,target:"_blank",rel:"noopener noreferrer",children:"Open Remote Session"}):null})]})})};Vc.defaultProps={stepStatus:"",stepError:"",stepExitCode:void 0,tmateLink:""};var Tc=function(e){var t=e.shouldShow,a=e.handleShowAllLogsClick;return t?Object(He.jsx)(Ye,{className:Bc("btn-show-all-logs"),onClick:a,children:"Show all logs"}):null},Wc=function(e){return e.shouldShow?Object(He.jsx)("div",{className:Bc("line-number"),children:"Loading..."}):null},Uc=function(e){var t=e.out,a=e.pos,n=e.html,r=e.time;return Object(He.jsxs)("div",{className:Bc("line"),children:[Object(He.jsx)("span",{className:Bc("line-number"),children:a+1}),n?Object(He.jsx)("span",{className:D()("loc-html",Bc("line-content")),dangerouslySetInnerHTML:{__html:n}}):Object(He.jsx)("span",{className:Bc("line-content"),children:t}),Object(He.jsx)("span",{className:Bc("line-time"),children:"".concat(r,"s")})]},a)},Zc=function(e){var t=e.error;return Object(He.jsxs)("div",{className:Bc("stage-error"),children:[Object(He.jsx)(rn,{className:Bc("status"),status:"error"}),Object(He.jsx)("span",{className:Bc("text"),children:t})]})},Gc=r.a.forwardRef((function(e,t){var a=e.className,r=e.height,c=e.showHeader,s=e.showFooter,l=e.shownLogsLimit,u=e.tmateLink,d=e.logs,m=e.showLogsLoadingLine,b=e.areLogsLoading,p=e.stepData,h=e.showDownloadBtn,j=e.showFollowLogsBtn,f=e.logsBlobName,v=e.showCloseBtn,O=e.onCloseBtnClick,g=e.stageError,_=e.stageStatus,x=Object(n.useState)(!1),w=Object(o.a)(x,2),y=w[0],N=w[1],k=Object(n.useState)(!1),E=Object(o.a)(k,2),C=E[0],S=E[1],L=Object(n.useRef)();return Object(n.useEffect)((function(){var e;C&&"running"===p.status&&d.length?null===(e=L.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}):S(!1)}),[C,p.status,d.length]),Object(He.jsxs)("div",{className:Bc("wrapper",a),ref:t,style:{height:r},children:[c&&Object(He.jsx)(zc,{areLogsLoading:b,showDownloadBtn:h,showFollowLogsBtn:j,showCloseBtn:v,shouldFollowLogs:C,toggleFollowLogs:function(){return S((function(e){return!e}))},handleDownloadClick:function(){return function(e,t){for(var a="",n=0;nl&&!y,handleShowAllLogsClick:function(){return N(!0)}}),g&&Object(He.jsx)(Zc,{error:g}),Object(He.jsxs)("code",{className:D()("ansi-hook",Bc("output")),children:[Object(He.jsx)(Wc,{shouldShow:m}),d.length&&!b?Fc(d,y).map((function(e){return Object(n.createElement)(Uc,Object(i.a)(Object(i.a)({},e),{},{key:e.pos}))})):null,Object(He.jsx)("div",{ref:L})]})]}),s&&Object(He.jsx)(Vc,{stepStatus:p.status,stepError:p.error,stepExitCode:p.exit_code,tmateLink:u,stageError:g,stageStatus:_})]})}));Gc.defaultProps={areLogsLoading:!0,showHeader:!0,showFooter:!0,shownLogsLimit:250,tmateLink:"",logs:[],showLogsLoadingLine:!1,stepData:{},showDownloadBtn:!1,showFollowLogsBtn:!1,showCloseBtn:!1,onCloseBtnClick:void 0,logsBlobName:"step_logs",stageError:null,stageStatus:null};var qc=Gc,Yc=a(324),Kc=a.n(Yc),Jc=function(e,t,a){if(e&&"running"===t&&a){var n=e.find((function(e){return e.out.startsWith("web session: ")}));return n?n.out.replace("web session: ","").replace("\n",""):""}return""},Qc=function(e){var t=e.stageStatus,a=e.stepStatus,n=e.logsExist,r=e.currentCompState;if("error"===t)return N;switch(a){case"skipped":return y;case"error":return N;case"killed":return n?w:r;case"failure":return w;case"running":return x;case"pending":case"waiting_on_dependencies":return _;case"success":return r!==_||n?n?w:y:w;default:return r}},Xc=function(e){var t,a=e.buildStatus,n=e.state;switch(a){case"declined":return y;case"error":case"killed":return"skipped"===n.stageStatus?y:(null===(t=n.logs)||void 0===t?void 0:t.length)||n.compState===_?n.compState:y;default:return n.compState}},$c="toggle_logs_following",es="set_show_all_logs",ts="update_is_data_loading",as="update_build_status",ns="update_stage_status",rs="update_stage_name",cs="update_stage_error",ss="update_step_data",ls="update_logs_hook_error",is="update_logs",os="update_are_logs_loading",us="update_has_build_debug_mode",ds="set_logs",ms="batch_update_logs",bs=function(e){var t=e.isDataLoading,a=e.hasBuildDebugMode,n=e.buildStatus,r=e.stageStatus,c=e.stageName,s=e.stageError,l=e.stepData,i=void 0===l?{}:l,o=_;return t||[n,r,i.status].includes("pending")?o=_:"error"===r?o=N:"running"===i.status&&(o=x),{compState:o,shouldFollowLogs:!1,showAllLogs:!1,logs:[],stepData:i,isDataLoading:t,stageName:c,stageStatus:r,stageError:s,buildStatus:n,logsHookError:{},tmateLink:"",hasBuildDebugMode:a}},ps=function(e,t){var a,n,r,c,s;switch(t.type){case $c:return Object(i.a)(Object(i.a)({},e),{},{shouldFollowLogs:!e.shouldFollowLogs});case es:return Object(i.a)(Object(i.a)({},e),{},{showAllLogs:!0});case as:return Object(i.a)(Object(i.a)({},e),{},{buildStatus:t.payload,compState:Xc({buildStatus:t.payload,state:e})});case us:return Object(i.a)(Object(i.a)({},e),{},{hasBuildDebugMode:t.payload});case ns:return Object(i.a)(Object(i.a)({},e),{},{stageStatus:t.payload,compState:"error"===t.payload?N:e.compState});case rs:return Object(i.a)(Object(i.a)({},e),{},{stageName:t.payload});case ts:return Object(i.a)(Object(i.a)({},e),{},{isDataLoading:t.payload,compState:t.payload?_:Qc({stageStatus:e.stageStatus,stepStatus:e.stepData.status,logsExist:null===(a=e.logs)||void 0===a?void 0:a.length,currentCompState:e.compState})});case ss:return Object(i.a)(Object(i.a)({},e),{},{stepData:Object(i.a)({},t.payload),compState:Qc({stageStatus:e.stageStatus,stepStatus:null===(n=t.payload)||void 0===n?void 0:n.status,logsExist:null===(r=e.logs)||void 0===r?void 0:r.length,currentCompState:e.compState})});case ls:return Object(i.a)(Object(i.a)({},e),{},{logsHookError:t.payload,compState:t.payload?N:e.compState});case is:return Object(i.a)(Object(i.a)({},e),{},{logs:e.logs.concat(t.payload),tmateLink:e.tmateLink||Jc(t.payload,e.stepData.status,e.hasBuildDebugMode)});case ms:return Object(i.a)(Object(i.a)({},e),{},{logs:(c=e.logs).concat.apply(c,Object(Ke.a)(t.payload)),tmateLink:e.tmateLink||Jc(t.payload,e.stepData.status,e.hasBuildDebugMode)});case ds:return Object(i.a)(Object(i.a)({},e),{},{logs:t.payload,compState:t.payload.length||e.compState===_?e.compState:y});case os:return Object(i.a)(Object(i.a)({},e),{},{compState:t.payload?_:Qc({stageStatus:e.stageStatus,stepStatus:e.stepData.status,logsExist:null===(s=e.logs)||void 0===s?void 0:s.length,currentCompState:e.compState})});case cs:return Object(i.a)(Object(i.a)({},e),{},{stageError:e.compState===y?t.payload:void 0,compState:t.payload.length||e.compState===_?e.compState:y});default:return e}},hs=D.a.bind(Kc.a),js=function(e){var t=e.className,a=e.children,n=e.style;return Object(He.jsx)("div",{className:hs("non-logs-container",t),"data-container":"non-logs",style:n,children:a})},fs={setLogs:ds,setError:ls,setIsLoading:os},vs=["running","pending","skipped","waiting_on_dependencies"],Os=vs.slice(1);function gs(e){var t,a=e.consoleProps,r=e.hasBuildDebugMode,c=e.isDataLoading,s=e.stageStatus,l=e.stageName,u=e.stepData,d=e.buildStatus,m=e.stageError,p=Object(b.i)(),O=Object(n.useReducer)(ps,e,bs),g=Object(o.a)(O,2),y=g[0],N=g[1],E="logs_".concat(p.namespace,"_").concat(p.name,"_").concat(p.build,"_").concat(p.stage,"_").concat(p.step),C=F(),S=C.dynamicHeightRef,L=C.dynamicHeight;return function(e,t,a,r){var c=a.namespace,s=a.name,l=a.build,i=a.stage,o=void 0===i?1:i,u=a.step,d=void 0===u?1:u,m=Object(h.b)((function(){return!0===r?"/api/repos/".concat(c,"/").concat(s,"/builds/").concat(l,"/logs/").concat(o,"/").concat(d):null})),b=m.data,p=m.error,j=Object(n.useMemo)((function(){return At(b)}),[b]);Object(n.useEffect)((function(){r&&j.length&&e({type:t.setLogs,payload:j})}),[e,j,t.setLogs,r]),Object(n.useEffect)((function(){r&&e(void 0!==b||p?{type:t.setIsLoading,payload:!1}:{type:t.setIsLoading,payload:!0})}),[e,b,t.setIsLoading,r,p]),Object(n.useEffect)((function(){r&&e({type:t.setError,payload:p})}),[p,e,r,t.setError])}(N,fs,p,y.compState!==x&&!!y.stageStatus&&!!y.stepData.status&&!Os.includes(y.stageStatus)&&!vs.includes(y.stepData.status)),function(e,t,a,r){var c=a.namespace,s=a.name,l=a.build,i=a.stage,u=void 0===i?1:i,d=a.step,m=void 0===d?1:d,b=Object(n.useState)(),p=Object(o.a)(b,2)[1],h=Object(n.useRef)(),v=Object(n.useRef)(null),O=Object(n.useRef)([]),g=Object(n.useMemo)((function(){var e="".concat(c,"/").concat(s,"/").concat(l,"/").concat(u,"/").concat(m);return r?"".concat(f,"/api/stream/").concat(e).concat(j?"?access_token=".concat(j):""):"/api/repos/".concat(e)}),[r,c,s,l,u,m]),_=Object(n.useCallback)((function(a){var n=At(JSON.parse(a.data));O.current.push(n),v.current||(v.current=setTimeout((function(){e({type:t,payload:O.current}),O.current=[],v.current=null}),250))}),[e,t]),x=Object(n.useCallback)((function(e,t){var a;"eof"!==(null===e||void 0===e?void 0:e.data)&&t?p():null===(a=h.current)||void 0===a||a.close()}),[]);Object(n.useEffect)((function(){var e;return r?(null===(e=h.current)||void 0===e||e.close(),h.current=new EventSource(g),h.current.onmessage=_,h.current.onerror=x):x(),function(){return x(void 0,!1)}}),[r,x,g,_])}(N,ms,p,y.compState===x),Object(n.useLayoutEffect)((function(){return N({type:ds,payload:[]}),function(){N({type:ds,payload:[]})}}),[p.stage,p.step]),Object(n.useEffect)((function(){N({type:us,payload:r})}),[r]),Object(n.useLayoutEffect)((function(){N({type:ts,payload:c})}),[c]),Object(n.useEffect)((function(){s&&N({type:ns,payload:s})}),[s]),Object(n.useEffect)((function(){l&&N({type:rs,payload:l})}),[l]),Object(n.useEffect)((function(){N({type:ss,payload:u})}),[u]),Object(n.useEffect)((function(){d&&N({type:as,payload:d})}),[d]),Object(n.useEffect)((function(){m&&N({type:cs,payload:m})}),[m]),(null===y||void 0===y?void 0:y.compState)===k?null:Object(He.jsx)(qc,Object(i.a)({ref:S,height:L,shownLogsLimit:v,tmateLink:y.tmateLink,logs:y.logs,showLogsLoadingLine:y.compState===_||y.compState===x&&!y.logs.length,areLogsLoading:y.compState===_,stepData:y.stepData,showDownloadBtn:(null===(t=y.stepData)||void 0===t?void 0:t.stopped)&&y.compState===w,showFollowLogsBtn:y.compState===x,logsBlobName:E,stageError:m,stageStatus:s},a))}gs.defaultProps={stepData:{},hasBuildDebugMode:!1,buildStatus:"",stageStatus:"",stageName:"",stageError:void 0,consoleProps:{showHeader:!0,showFooter:!0}},js.defaultProps={style:void 0};var _s=a(325),xs=a.n(_s),ws=D.a.bind(xs.a),ys=function(e){var t,a,r,c,s,l,i,o=e.data,u=e.isDataLoading,d=e.isShown,m=e.hide,p=Object(b.i)(),h=p.stage,j=void 0===h?1:h,f=p.step,v=void 0===f?1:f,O=null===o||void 0===o||null===(t=o.stages[j-1])||void 0===t?void 0:t.machine,g=null===o||void 0===o||null===(a=o.stages[j-1])||void 0===a||null===(r=a.steps)||void 0===r?void 0:r[v-1],_=Object(n.useRef)();if(!d||!g)return null;return Object(He.jsxs)("div",{className:ws("step"),ref:_,children:[Object(He.jsxs)("div",{className:ws("step-header"),children:[Object(He.jsx)(rn,{className:ws("status"),status:null===g||void 0===g?void 0:g.status}),Object(He.jsx)("h3",{className:ws("heading"),children:null===g||void 0===g?void 0:g.name}),Object(He.jsx)(Ye,{onClick:function(){_.current.classList.add(ws("slide-out")),setTimeout(m,200)},children:Object(He.jsx)(hc,{})})]}),Object(He.jsx)("div",{className:ws("step-meta"),children:["pending","skipped","blocked","waiting_on_dependencies"].includes(null===g||void 0===g?void 0:g.status)?Object(He.jsx)("div",{children:"Step data is unavailable"}):Object(He.jsxs)("dl",{children:[Object(He.jsx)("dt",{children:"Started:"}),Object(He.jsx)("dd",{children:nt({date:null===g||void 0===g?void 0:g.started})}),(null===g||void 0===g?void 0:g.stopped)&&Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("dt",{children:"Finished:"}),Object(He.jsx)("dd",{children:nt({date:null===g||void 0===g?void 0:g.stopped})})]}),Object(He.jsx)("dt",{children:"Duration:"}),Object(He.jsx)("dd",{children:Object(He.jsx)(lc,{started:null===g||void 0===g?void 0:g.started,finished:null===g||void 0===g?void 0:g.stopped,withLetters:!0})}),Object(He.jsx)("dt",{children:"Runner:"}),Object(He.jsx)("dd",{children:O})]})}),Object(He.jsx)(gs,{isDataLoading:u,hasBuildDebugMode:(null===o||void 0===o?void 0:o.debug)||!1,buildStatus:null===o||void 0===o?void 0:o.status,stageStatus:null===o||void 0===o||null===(c=o.stages)||void 0===c||null===(s=c[j-1])||void 0===s?void 0:s.status,stageName:null===o||void 0===o||null===(l=o.stages)||void 0===l||null===(i=l[j-1])||void 0===i?void 0:i.name,stepData:g,consoleProps:{showFooter:!1,showHeader:!0}})]})};ys.defaultProps={data:void 0};var Ns,ks=ys,Es=D.a.bind(Wr.a),Cs=function(e){var t,a,r=e.data,c=e.isDataLoading,s=Object(b.i)(),l=s.namespace,i=s.name,u=s.build,d=s.stage,m=void 0===d?1:d,p=s.step,h=void 0===p?1:p,j=Object(b.g)(),f=Object(n.useState)(!1),v=Object(o.a)(f,2),O=v[0],g=v[1],_=F((function(e){return e})),x=_.dynamicHeightRef,w=_.dynamicHeight;return Object(He.jsxs)("section",{className:Es("graph-wrapper"),ref:x,style:{height:w},children:[Object(He.jsxs)(Rn.a,{split:"horizontal",minSize:190,defaultSize:w/2,maxSize:w-190,children:[Object(He.jsx)("div",{className:Es("graph-stages"),children:Object(He.jsx)(Vr,{kind:"stage",items:null===r||void 0===r?void 0:r.stages,nodeSelectHandler:function(e){j.replace("/".concat(l,"/").concat(i,"/").concat(u,"/").concat(e,"/1"))},selectedNodeNumber:m,graphOffsetX:60,graphOffsetY:60})}),Object(He.jsx)("div",{className:Es("graph-steps"),children:Object(He.jsx)(Vr,{items:null===r||void 0===r||null===(t=r.stages)||void 0===t||null===(a=t[m-1])||void 0===a?void 0:a.steps,nodeSelectHandler:function(e){g(!0),j.replace("/".concat(l,"/").concat(i,"/").concat(u,"/").concat(m,"/").concat(e))},selectedNodeNumber:h,graphOffsetX:60,graphOffsetY:60})})]}),Object(He.jsx)(ks,{isShown:O,hide:function(){return g(!1)},isDataLoading:c,data:r})]})},Ss=a(326),Ls=a.n(Ss),Ms=D.a.bind(Ls.a),Ps=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(n.useState)(e),a=Object(o.a)(t,2),r=a[0],c=a[1],s=function(){return c(!r)};return[r,s]},Is=function(e){var t=e.isShowing,a=e.title,r=e.children,c=e.hide,l=e.mode,i=void 0===l?"default":l,o=Object(n.useRef)(null);return U(o,c),Object(n.useLayoutEffect)((function(){return window.document.body.style.overflow=t?"hidden":"unset",function(){return window.document.body.style.overflow="unset"}}),[t]),t?s.a.createPortal(Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Ms("overlay")}),Object(He.jsx)("div",{className:Ms("modal-wrapper","".concat(i)),tabIndex:-1,role:"dialog","aria-modal":!0,"aria-hidden":!0,children:Object(He.jsxs)("div",{className:Ms("modal-inner"),ref:o,children:[Object(He.jsxs)("header",{className:Ms("modal-header"),children:[Object(He.jsx)("h3",{className:Ms("modal-title"),children:a}),Object(He.jsx)(Ye,{theme:"plain",type:"button",onClick:c,children:Object(He.jsx)(hc,{})})]}),Object(He.jsx)("div",{className:Ms("modal-content"),children:r})]})})]}),document.body):null},Rs=a(327),Ds=a.n(Rs),As=["title","titleId"];function Hs(){return Hs=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Bs(e,t){var a=e.title,r=e.titleId,c=Fs(e,As);return n.createElement("svg",Hs({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-chevron-down",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ns||(Ns=n.createElement("polyline",{points:"6 9 12 15 18 9"})))}var zs=n.forwardRef(Bs),Vs=(a.p,a(328)),Ts=a.n(Vs),Ws=D.a.bind(Ts.a);function Us(e){var t=e.isDataLoading,a=e.stages,n=void 0===a?[]:a,r=e.className,c=e.onStepClick,s=Object(b.i)(),l=s.namespace,i=s.name,o=s.build,u=s.stage,d=void 0===u?1:u,m=F(),p=m.dynamicHeight,h=m.dynamicHeightRef;return Object(He.jsxs)("div",{className:Ws("wrapper"),children:[Object(He.jsxs)("div",{className:Ws("header"),children:[Object(He.jsx)("h3",{className:Ws("title"),children:"Pipeline stages"}),Object(He.jsx)("span",{className:Ws("counter"),children:t?null:"".concat(n.length," ").concat(1===n.length?"stage":"stages")})]}),Object(He.jsx)("nav",{className:D()(Ws("inner"),r),ref:h,style:{height:p},children:t?Object(He.jsx)("div",{className:Ws("stage"),children:Object(He.jsx)("h3",{className:Ws("stage-header"),children:"Loading..."})}):n.map((function(e){var t=e.id,a=e.name,n=e.status,r=e.started,s=e.stopped,u=e.steps,m=e.number,b=e.error;return!(null===u||void 0===u?void 0:u.length)||["skipped","blocked","pending","waiting_on_dependencies"].includes(n)?Object(He.jsx)(Gs,{stageId:t,stageName:a,stageStatus:n,stageStarted:r,stageStopped:s,namespace:l,name:i,build:o,stageNumber:m},t):Object(He.jsx)(Zs,{stageId:t,stageName:a,stageStatus:n,stageStarted:r,stageStopped:s,stageNumber:m,steps:u,namespace:l,name:i,build:o,stageInPath:Number(d),error:b,onStepClick:c},t)}))})]})}var Zs=function(e){var t=e.stageStatus,a=e.stageName,r=e.stageStarted,c=e.stageNumber,s=e.stageStopped,i=e.steps,u=e.name,d=e.namespace,m=e.build,b=e.stageInPath,p=e.onStepClick,h=Object(n.useState)(c===b),j=Object(o.a)(h,2),f=j[0],v=j[1];return Object(He.jsxs)("div",{className:Ws("stage",{"stage-expanded":f}),children:[Object(He.jsxs)("button",{type:"button",className:Ws("stage-header",{"stage-header-expanded":f}),onClick:function(){return v((function(e){return!e}))},children:[Object(He.jsx)(zs,{className:Ws("chevron")}),Object(He.jsx)(rn,{className:Ws("stage-status"),status:t}),Object(He.jsx)("span",{className:Ws("name"),children:a}),Object(He.jsx)(lc,{className:Ws("time"),started:r,finished:s})]}),f&&Object(He.jsxs)("ul",{className:Ws("stage-steps"),children:[Object(He.jsxs)("li",{className:Ws("steps-header"),children:["Steps",Object(He.jsx)("i",{className:Ws("divider")})]}),i.sort((function(e,t){return e.number-t.number})).map((function(e,t){var a=e.id,n=e.status,r=e.name,s=e.started,i=e.stopped,o=e.number;return Object(He.jsx)("li",{children:Object(He.jsxs)(l.c,{activeClassName:Ws("stage-step-active"),className:Ws("stage-step"),isActive:t?void 0:function(e,t){var a=!!t.pathname.split("/")[4];return e||c===b&&!a},to:"/".concat(d,"/").concat(u,"/").concat(m,"/").concat(c,"/").concat(o),title:r,exact:!0,onClick:p,children:[Object(He.jsx)(rn,{className:Ws("status"),status:n}),Object(He.jsx)("span",{className:Ws("name"),children:r}),Object(He.jsx)(lc,{className:Ws("time"),started:s,finished:i})]})},a)}))]})]})},Gs=function(e){var t=e.stageStatus,a=e.stageName,n=e.stageStarted,r=e.stageStopped,c=e.namespace,s=e.name,i=e.build,o=e.stageNumber;return Object(He.jsx)(l.c,{activeClassName:Ws("stage-active"),className:Ws("stage"),to:"/".concat(c,"/").concat(s,"/").concat(i,"/").concat(o),exact:!0,children:Object(He.jsxs)("h3",{className:Ws("stage-header"),children:[Object(He.jsx)(zs,{className:Ws("chevron-hidden")}),Object(He.jsx)(rn,{className:Ws("stage-status"),status:t}),Object(He.jsx)("span",{className:Ws("name"),children:a}),Object(He.jsx)(lc,{className:Ws("time"),started:n,finished:r})]})})};Us.defaultProps={stages:[]};var qs,Ys,Ks,Js,Qs,Xs,$s=D.a.bind(Ds.a),el=function(e){var t,a,r,c,s,l,i,u,d,m,p,h,j,f,v,O,g=Object(b.i)(),_=g.stage,x=void 0===_?1:_,w=g.step,y=void 0===w?1:w,N=e.isDataLoading,k=e.data,E=Ps(),C=Object(o.a)(E,2),S=C[0],L=C[1],M=Object(n.useState)(!1),P=Object(o.a)(M,2),I=P[0],R=P[1],D=Object(n.useCallback)((function(){return I?L():{}}),[I,L]);return Object(n.useLayoutEffect)((function(){window.innerWidth<768&&R(!0)}),[]),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("section",{className:$s("page-wrapper"),children:Object(He.jsxs)("div",{className:$s("inner"),children:[Object(He.jsx)(Us,{isDataLoading:N,className:$s("navbar"),stages:null===k||void 0===k?void 0:k.stages,onStepClick:D}),Object(He.jsx)("div",{className:$s("logs"),children:Object(He.jsx)(gs,{isDataLoading:N,hasBuildDebugMode:(null===k||void 0===k?void 0:k.debug)||!1,buildStatus:null===k||void 0===k?void 0:k.status,stageStatus:null===k||void 0===k||null===(t=k.stages)||void 0===t||null===(a=t[x-1])||void 0===a?void 0:a.status,stageName:null===k||void 0===k||null===(r=k.stages)||void 0===r||null===(c=r[x-1])||void 0===c?void 0:c.name,stageError:null===k||void 0===k||null===(s=k.stages)||void 0===s||null===(l=s[x-1])||void 0===l?void 0:l.error,stepData:null===k||void 0===k||null===(i=k.stages)||void 0===i||null===(u=i[x-1])||void 0===u||null===(d=u.steps)||void 0===d?void 0:d[y-1]})})]})}),Object(He.jsx)(Is,{isShowing:S,mode:"fullscreen",hide:L,children:Object(He.jsx)(gs,{consoleProps:{showCloseBtn:!0,onCloseBtnClick:L,className:$s("console-mobile")},isDataLoading:N,hasBuildDebugMode:(null===k||void 0===k?void 0:k.debug)||!1,buildStatus:null===k||void 0===k?void 0:k.status,stageStatus:null===k||void 0===k||null===(m=k.stages)||void 0===m||null===(p=m[x-1])||void 0===p?void 0:p.status,stageName:null===k||void 0===k||null===(h=k.stages)||void 0===h||null===(j=h[x-1])||void 0===j?void 0:j.name,stepData:null===k||void 0===k||null===(f=k.stages)||void 0===f||null===(v=f[x-1])||void 0===v||null===(O=v.steps)||void 0===O?void 0:O[y-1]})})]})},tl=["title","titleId"];function al(){return al=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function rl(e,t){var a=e.title,r=e.titleId,c=nl(e,tl);return n.createElement("svg",al({width:101,height:80,viewBox:"0 0 101 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,qs||(qs=n.createElement("path",{opacity:.8,d:"M40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80C17.9086 80 0 62.0914 0 40C0 17.9086 17.9086 0 40 0Z",fill:"url(#paint0_linear)"})),Ys||(Ys=n.createElement("path",{d:"M80 38.5C72.5 44.5 34 64 0 38.5V43.5L0.5 46.5L1 49.5L2 52.5C36 67 49.5 63 77 53L78 52.5L78.5 51L79 49L79.5 47L79.75 44.75L80 43V41V38.5Z",fill:"#f8f9fa"})),Ks||(Ks=n.createElement("path",{d:"M40.3 69.8C52.0637 69.8 61.6 62.9052 61.6 54.4C61.6 45.8948 52.0637 39 40.3 39C28.5363 39 19 45.8948 19 54.4C19 62.9052 28.5363 69.8 40.3 69.8Z",fill:"#f8f9fa"})),Js||(Js=n.createElement("path",{d:"M40.3004 64.0031C47.1487 64.0031 52.7004 60.0185 52.7004 55.1031C52.7004 50.1878 47.1487 46.2031 40.3004 46.2031C33.4521 46.2031 27.9004 50.1878 27.9004 55.1031C27.9004 60.0185 33.4521 64.0031 40.3004 64.0031Z",fill:"url(#paint1_linear)"})),Qs||(Qs=n.createElement("path",{d:"M50.9062 23.7969V13.2031L44.9844 23.7969H50.9062ZM49.2188 31C48.7188 31 48.3802 30.9219 48.2031 30.7656C48.026 30.599 47.9375 30.3021 47.9375 29.875C47.9375 29.5 48.026 29.2292 48.2031 29.0625C48.3906 28.8854 48.6875 28.7969 49.0938 28.7969H50.9062V26.1719H43.6094C43.349 26.1719 43.1458 26.0885 43 25.9219C42.8542 25.7552 42.7812 25.5156 42.7812 25.2031V24.125C42.7812 23.7083 42.9323 23.2708 43.2344 22.8125C43.2865 22.7292 43.3281 22.6615 43.3594 22.6094L49.9531 11.4219C50.099 11.1615 50.2188 10.9948 50.3125 10.9219C50.4062 10.849 50.5312 10.8125 50.6875 10.8125C50.75 10.8125 50.8594 10.8229 51.0156 10.8438C51.0573 10.8542 51.099 10.8646 51.1406 10.875L52.7344 11.125C52.8802 11.1458 52.9948 11.2292 53.0781 11.375C53.1719 11.5104 53.2188 11.6927 53.2188 11.9219V23.7969H54.0156C54.2448 23.7969 54.4219 23.7083 54.5469 23.5312C54.6719 23.3438 54.8125 23.25 54.9688 23.25C55.1771 23.25 55.3542 23.3281 55.5 23.4844C55.6458 23.6406 55.7188 23.8333 55.7188 24.0625C55.7188 24.1562 55.7135 24.2448 55.7031 24.3281C55.6927 24.401 55.6719 24.4792 55.6406 24.5625L55.5156 25.2031C55.4427 25.5781 55.3333 25.8333 55.1875 25.9688C55.0521 26.1042 54.8333 26.1719 54.5312 26.1719H53.2188V28.7969H53.7656C54.4323 28.7969 54.8906 28.8802 55.1406 29.0469C55.3906 29.2031 55.5156 29.4792 55.5156 29.875C55.5156 30.25 55.4115 30.5312 55.2031 30.7188C54.9948 30.9062 54.6823 31 54.2656 31H49.2188ZM70.4125 13.0156C69.2146 13.0156 68.2823 13.724 67.6156 15.1406C66.949 16.5573 66.6156 18.5573 66.6156 21.1406C66.6156 23.7344 66.949 25.7448 67.6156 27.1719C68.2823 28.5885 69.2146 29.2969 70.4125 29.2969C71.6208 29.2969 72.5583 28.5885 73.225 27.1719C73.8917 25.7448 74.225 23.7344 74.225 21.1406C74.225 18.5573 73.8917 16.5573 73.225 15.1406C72.5583 13.724 71.6208 13.0156 70.4125 13.0156ZM70.4125 31.5156C68.4542 31.5156 66.8969 30.5938 65.7406 28.75C64.5948 26.8958 64.0219 24.3594 64.0219 21.1406C64.0219 17.9323 64.5948 15.4062 65.7406 13.5625C66.8969 11.7083 68.4542 10.7812 70.4125 10.7812C72.3708 10.7812 73.9281 11.7083 75.0844 13.5625C76.2406 15.4167 76.8188 17.9427 76.8188 21.1406C76.8188 24.3385 76.2406 26.8698 75.0844 28.7344C73.9281 30.5885 72.3708 31.5156 70.4125 31.5156ZM92.5438 23.7969V13.2031L86.6219 23.7969H92.5438ZM90.8563 31C90.3563 31 90.0177 30.9219 89.8406 30.7656C89.6635 30.599 89.575 30.3021 89.575 29.875C89.575 29.5 89.6635 29.2292 89.8406 29.0625C90.0281 28.8854 90.325 28.7969 90.7313 28.7969H92.5438V26.1719H85.2469C84.9865 26.1719 84.7833 26.0885 84.6375 25.9219C84.4917 25.7552 84.4188 25.5156 84.4188 25.2031V24.125C84.4188 23.7083 84.5698 23.2708 84.8719 22.8125C84.924 22.7292 84.9656 22.6615 84.9969 22.6094L91.5906 11.4219C91.7365 11.1615 91.8563 10.9948 91.95 10.9219C92.0438 10.849 92.1688 10.8125 92.325 10.8125C92.3875 10.8125 92.4969 10.8229 92.6531 10.8438C92.6948 10.8542 92.7365 10.8646 92.7781 10.875L94.3719 11.125C94.5177 11.1458 94.6323 11.2292 94.7156 11.375C94.8094 11.5104 94.8563 11.6927 94.8563 11.9219V23.7969H95.6531C95.8823 23.7969 96.0594 23.7083 96.1844 23.5312C96.3094 23.3438 96.45 23.25 96.6063 23.25C96.8146 23.25 96.9917 23.3281 97.1375 23.4844C97.2833 23.6406 97.3563 23.8333 97.3563 24.0625C97.3563 24.1562 97.351 24.2448 97.3406 24.3281C97.3302 24.401 97.3094 24.4792 97.2781 24.5625L97.1531 25.2031C97.0802 25.5781 96.9708 25.8333 96.825 25.9688C96.6896 26.1042 96.4708 26.1719 96.1688 26.1719H94.8563V28.7969H95.4031C96.0698 28.7969 96.5281 28.8802 96.7781 29.0469C97.0281 29.2031 97.1531 29.4792 97.1531 29.875C97.1531 30.25 97.049 30.5312 96.8406 30.7188C96.6323 30.9062 96.3198 31 95.9031 31H90.8563Z",fill:"#6B6D85"})),Xs||(Xs=n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear",x1:12.5,y1:12.5,x2:70,y2:68.5,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#D9DAE5"}),n.createElement("stop",{offset:1,stopColor:"#9293AB"})),n.createElement("linearGradient",{id:"paint1_linear",x1:32.3754,y1:47.2101,x2:47.6364,y2:62.4711,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#D9DAE5"}),n.createElement("stop",{offset:1,stopColor:"#9293AB"})))))}var cl=n.forwardRef(rl),sl=(a.p,a(329)),ll=a.n(sl),il=D.a.bind(ll.a);function ol(e){var t=e.user;return A("Not Found"),Object(He.jsx)("section",{className:il("wrapper"),children:Object(He.jsxs)("div",{className:il("inner"),children:[Object(He.jsx)(cl,{}),Object(He.jsxs)("p",{className:il("note"),children:[Object(He.jsx)("span",{children:"We are sorry, the resource you requested cannot be found."}),Object(He.jsx)("sub",{children:"That's all we know."})]}),!t&&Object(He.jsx)(Ye,{as:"link",to:"/welcome",theme:"primary",className:il("btn"),children:"Sign In"})]})})}ol.defaultProps={user:void 0};var ul,dl,ml=a(330),bl=a.n(ml),pl=["title","titleId"];function hl(){return hl=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function fl(e,t){var a=e.title,r=e.titleId,c=jl(e,pl);return n.createElement("svg",hl({viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,ul||(ul=n.createElement("g",{filter:"url(#filter0_dd)"},n.createElement("path",{d:"M3.27392 5.25531C3.75124 4.70692 4.59669 4.68757 5.0986 5.21355L6.89435 7.09545C6.90159 7.10303 6.91368 7.10304 6.92094 7.09548L11.4514 2.37316C11.9066 1.89873 12.6667 1.90345 13.1159 2.3835C13.5378 2.83431 13.5269 3.53825 13.0912 3.97579L6.98994 10.1039C6.94388 10.1502 6.86958 10.152 6.82124 10.1082L3.37538 6.98024C2.87787 6.52864 2.83279 5.76212 3.27392 5.25531Z",fill:"white"}))),dl||(dl=n.createElement("defs",null,n.createElement("filter",{id:"filter0_dd",x:-1.0293,y:.0195312,width:18.4547,height:16.1195,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),n.createElement("feOffset",{dy:2}),n.createElement("feGaussianBlur",{stdDeviation:2}),n.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.376471 0 0 0 0 0.380392 0 0 0 0 0.439216 0 0 0 0.2 0"}),n.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),n.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),n.createElement("feOffset",{dy:1}),n.createElement("feGaussianBlur",{stdDeviation:1}),n.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.156863 0 0 0 0 0.160784 0 0 0 0 0.239216 0 0 0 0.4 0"}),n.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow",result:"effect2_dropShadow"}),n.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow",result:"shape"})))))}var vl=n.forwardRef(fl),Ol=(a.p,a(331)),gl=a.n(Ol),_l=["className","htmlFor","children"],xl=D.a.bind(gl.a),wl=function(e){var t=e.className,a=e.htmlFor,n=e.children,r=Object(Te.a)(e,_l);return Object(He.jsx)("label",Object(i.a)(Object(i.a)({className:D()(xl("label"),t),htmlFor:a},r),{},{children:n}))};wl.defaultProps={className:"",children:null};var yl=wl,Nl=a(332),kl=a.n(Nl),El=["className","label","name","checked","disabled"],Cl=D.a.bind(kl.a),Sl=function(e){var t=e.className,a=e.label,n=e.name,r=e.checked,c=e.disabled,s=Object(Te.a)(e,El);return Object(He.jsxs)("div",{className:D()(Cl("checkbox"),t),children:[Object(He.jsx)("input",Object(i.a)(Object(i.a)({type:"checkbox",name:n,id:n,checked:r,disabled:c},s),{},{hidden:!0})),Object(He.jsx)("label",{htmlFor:n,className:Cl("checkbox-fake",{disabled:c}),children:Object(He.jsx)(vl,{})}),Object(He.jsx)(yl,{htmlFor:n,children:a})]})},Ll=Sl;Sl.defaultProps={className:"",disabled:!1};var Ml=a(333),Pl=a.n(Ml),Il=["className","name","label","type","width","style","icon"],Rl=D.a.bind(Pl.a),Dl={search:Object(He.jsx)(ue,{className:Rl("icon","icon-search")})},Al=function(e){var t=e.className,a=e.name,n=e.label,r=e.type,c=e.width,s=e.style,l=e.icon,o=Object(Te.a)(e,Il);return Object(He.jsxs)("div",{className:Rl("input-wrapper",t),children:[n&&Object(He.jsx)(yl,{htmlFor:a,children:n}),Object(He.jsxs)("div",{className:Rl("input-inner"),children:[l&&Dl[l],Object(He.jsx)("input",Object(i.a)({className:D()(Rl("input",{"input-with-icon":!!l})),type:r,name:a,id:a,style:Object(i.a)({width:c},s),spellCheck:"false",autoComplete:"false",autoCorrect:"false"},o))]})]})};Al.defaultProps={className:"",label:null,type:"text",width:200,style:{}};var Hl=Al,Fl=a(334),Bl=a.n(Fl),zl=["className","label","name","disabled","appearance"],Vl=D.a.bind(Bl.a),Tl=function(e){var t=e.className,a=e.label,n=e.name,r=e.disabled,c=e.appearance,s=Object(Te.a)(e,zl),l="circle"===c?Object(He.jsx)("i",{}):Object(He.jsx)(vl,{});return Object(He.jsxs)("div",{className:D()(Vl("radio"),t),children:[Object(He.jsx)("input",Object(i.a)(Object(i.a)({type:"radio",id:n,name:n},s),{},{disabled:r,hidden:!0})),Object(He.jsx)("label",{htmlFor:n,className:Vl("radio-fake",{disabled:r},"appearance-".concat(c)),children:l}),a&&Object(He.jsx)(yl,{className:Vl("label"),htmlFor:n,children:a})]})};Tl.defaultProps={className:"",disabled:!1,label:null,appearance:"circle"};var Wl=Tl,Ul=a(335),Zl=a.n(Ul),Gl=["className","label","optionsList","onChange","width"],ql=D.a.bind(Zl.a),Yl=function(e){var t=e.className,a=e.label,n=e.optionsList,r=e.onChange,c=e.width,s=Object(Te.a)(e,Gl);return Object(He.jsxs)("div",{className:D()(ql("select"),t),children:[a&&Object(He.jsx)("span",{className:ql("label"),children:a}),Object(He.jsxs)("div",{className:ql("select-inner"),style:{width:c},children:[Object(He.jsx)("select",Object(i.a)(Object(i.a)({className:ql("select-input"),onChange:r},s),{},{children:n.map((function(e){var t=e.value,a=e.key;return Object(He.jsx)("option",{value:t,children:a},a)}))})),Object(He.jsx)("i",{})]})]})};Yl.defaultProps={className:"",label:null,width:200};var Kl=Yl,Jl=a(336),Ql=a.n(Jl),Xl=["className","name","label","width"],$l=D.a.bind(Ql.a),ei=function(e){var t=e.className,a=e.name,n=e.label,r=e.width,c=Object(Te.a)(e,Xl);return Object(He.jsxs)("div",{className:D()($l("text-area-wrapper"),t),children:[n&&Object(He.jsx)(yl,{htmlFor:a,children:n}),Object(He.jsx)("textarea",Object(i.a)({className:$l("text-area"),name:a,id:a,style:{width:r},autoCapitalize:"false",autoComplete:"false",autoCorrect:"false",spellCheck:"false"},c))]})};ei.defaultProps={className:"",width:400,label:null};var ti=ei,ai=a(337),ni=a.n(ai),ri=["title","className","children"],ci=D.a.bind(ni.a),si=function(e){var t=e.title,a=e.className,n=e.children,r=Object(Te.a)(e,ri);return Object(He.jsxs)("form",Object(i.a)(Object(i.a)({className:D()(ci("form"),a),spellCheck:"false",autoCapitalize:"false",autoCorrect:"false",autoComplete:"false"},r),{},{children:[t&&Object(He.jsx)("h2",{className:ci("form-title"),children:t}),n]}))},li=function(e){var t=e.title,a=e.className,n=e.children;return Object(He.jsxs)("div",{className:D()(ci("form-section"),a),children:[t&&Object(He.jsx)("h3",{children:t}),n]})};li.defaultProps={className:"",title:null,children:null},si.defaultProps={className:"",title:null,children:null};var ii=si,oi={Checkbox:Ll,Input:Hl,Radio:Wl,Select:Kl,TextArea:ti},ui=a(338),di=a.n(ui),mi=D.a.bind(di.a),bi=function(e){var t=e.handleSubmit,a=e.handleCancel,r=e.action,c=e.target,s=e.parameters,l=Object(n.useState)({action:r,target:c,parameters:s}),u=Object(o.a)(l,2),d=u[0],m=u[1],b=Object(n.useState)({key:"",value:""}),p=Object(o.a)(b,2),h=p[0],j=p[1],f=function(e){return function(){return m((function(t){return Object(i.a)(Object(i.a)({},t),{},{parameters:t.parameters.filter((function(t){return t.id!==e}))})}))}},v=function(e){return function(t){j((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}},O=function(e){return function(t){switch(e){case"action":m((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value))}));break;case"target":m((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}}};return Object(He.jsxs)(ii,{className:mi("deployment-form"),children:[Object(He.jsx)(li,{title:"Type",className:mi("deployment-form-row"),children:Object(He.jsxs)("div",{className:mi("deployment-form-radio-group"),children:[Object(He.jsx)(oi.Radio,{id:"promote",name:"promote",label:"Promote",value:"promote",checked:"promote"===d.action,onChange:O("action")}),Object(He.jsx)(oi.Radio,{id:"rollback",name:"rollback",label:"Rollback",value:"rollback",checked:"rollback"===d.action,onChange:O("action")})]})}),Object(He.jsx)(li,{className:mi("deployment-form-row"),title:"Target",children:Object(He.jsx)(oi.Input,{autoFocus:"true",name:"production",placeholder:"production",value:d.target,onChange:O("target")})}),Object(He.jsxs)(li,{title:"Parameters",className:mi("deployment-form-row"),children:[d.parameters.length?Object(He.jsx)("div",{className:mi("deployment-form-parameters-list"),children:d.parameters.map((function(e){var t=e.key,a=e.id;return Object(He.jsxs)("div",{className:mi("deployment-form-parameters"),children:[Object(He.jsx)("span",{type:"text",placeholder:"key",children:t}),Object(He.jsx)(Ye,{type:"button",onClick:f(a),children:"Remove"})]},a)}))}):null,Object(He.jsxs)("div",{className:mi("deployment-form-parameters-fields"),children:[Object(He.jsx)(oi.Input,{placeholder:"key",name:"key",value:h.key,onChange:v("key")}),Object(He.jsx)(oi.Input,{placeholder:"value",name:"value",value:h.value,onChange:v("value")}),Object(He.jsx)(Ye,{onClick:function(){h.key&&h.value&&(m((function(e){return Object(i.a)(Object(i.a)({},e),{},{parameters:[].concat(Object(Ke.a)(e.parameters),[Object(i.a)(Object(i.a)({},h),{},{id:Date.now()})])})})),j({key:"",value:""}))},children:"+ Add"})]})]}),Object(He.jsxs)(li,{className:mi("deployment-form-controls"),children:[Object(He.jsx)(Ye,{type:"button",onClick:function(){t(d),a()},children:"Deploy"}),Object(He.jsx)(Ye,{type:"button",onClick:a,children:"Cancel"})]})]})};bi.defaultProps={action:"promote",target:"",parameters:[]};var pi,hi,ji,fi=bi,vi=["title","titleId"];function Oi(){return Oi=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function _i(e,t){var a=e.title,r=e.titleId,c=gi(e,vi);return n.createElement("svg",Oi({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,pi||(pi=n.createElement("path",{d:"M20 15.6007V8.39926C19.9997 8.08354 19.9174 7.77346 19.7614 7.50012C19.6054 7.22678 19.3811 6.9998 19.1111 6.84194L12.8889 3.2412C12.6186 3.08319 12.3121 3 12 3C11.6879 3 11.3814 3.08319 11.1111 3.2412L4.88889 6.84194C4.6189 6.9998 4.39465 7.22678 4.23863 7.50012C4.08262 7.77346 4.00032 8.08354 4 8.39926V15.6007C4.00032 15.9165 4.08262 16.2265 4.23863 16.4999C4.39465 16.7732 4.6189 17.0002 4.88889 17.1581L11.1111 20.7588C11.3814 20.9168 11.6879 21 12 21C12.3121 21 12.6186 20.9168 12.8889 20.7588L19.1111 17.1581C19.3811 17.0002 19.6054 16.7732 19.7614 16.4999C19.9174 16.2265 19.9997 15.9165 20 15.6007Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hi||(hi=n.createElement("path",{d:"M4.27002 7.95999L12 12.01L19.73 7.95999",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ji||(ji=n.createElement("path",{d:"M12 20.08V12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var xi,wi,yi,Ni,ki=n.forwardRef(_i),Ei=(a.p,["title","titleId"]);function Ci(){return Ci=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Li(e,t){var a=e.title,r=e.titleId,c=Si(e,Ei);return n.createElement("svg",Ci({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,xi||(xi=n.createElement("path",{d:"M6 5V13",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),wi||(wi=n.createElement("path",{d:"M16 11C17.6569 11 19 9.65685 19 8C19 6.34315 17.6569 5 16 5C14.3431 5 13 6.34315 13 8C13 9.65685 14.3431 11 16 11Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yi||(yi=n.createElement("path",{d:"M6 19C7.65685 19 9 17.6569 9 16C9 14.3431 7.65685 13 6 13C4.34315 13 3 14.3431 3 16C3 17.6569 4.34315 19 6 19Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ni||(Ni=n.createElement("path",{d:"M16 11C16 12.3261 15.2625 13.5979 13.9497 14.5355C12.637 15.4732 10.8565 16 9 16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var Mi,Pi,Ii=n.forwardRef(Li),Ri=(a.p,["title","titleId"]);function Di(){return Di=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Hi(e,t){var a=e.title,r=e.titleId,c=Ai(e,Ri);return n.createElement("svg",Di({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Mi||(Mi=n.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),Pi||(Pi=n.createElement("path",{fill:"currentColor",d:"M15.874 13a4.002 4.002 0 0 1-7.748 0H3v-2h5.126a4.002 4.002 0 0 1 7.748 0H21v2h-5.126zM12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"})))}var Fi,Bi,zi,Vi,Ti=n.forwardRef(Hi),Wi=(a.p,["title","titleId"]);function Ui(){return Ui=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Gi(e,t){var a=e.title,r=e.titleId,c=Zi(e,Wi);return n.createElement("svg",Ui({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Fi||(Fi=n.createElement("path",{d:"M5 9H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Bi||(Bi=n.createElement("path",{d:"M5 14H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),zi||(zi=n.createElement("path",{d:"M10 5L8 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Vi||(Vi=n.createElement("path",{d:"M16 5L14 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var qi,Yi,Ki,Ji,Qi=n.forwardRef(Gi),Xi=(a.p,["title","titleId"]);function $i(){return $i=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function to(e,t){var a=e.title,r=e.titleId,c=eo(e,Xi);return n.createElement("svg",$i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,qi||(qi=n.createElement("path",{d:"M18 20C19.6569 20 21 18.6569 21 17C21 15.3431 19.6569 14 18 14C16.3431 14 15 15.3431 15 17C15 18.6569 16.3431 20 18 20Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Yi||(Yi=n.createElement("path",{d:"M6 10C7.65685 10 9 8.65685 9 7C9 5.34315 7.65685 4 6 4C4.34315 4 3 5.34315 3 7C3 8.65685 4.34315 10 6 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ki||(Ki=n.createElement("path",{d:"M13 7H16C16.5304 7 17.0391 7.16389 17.4142 7.45561C17.7893 7.74733 18 8.143 18 8.55556V14",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ji||(Ji=n.createElement("path",{d:"M6 10V19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var ao,no,ro=n.forwardRef(to),co=(a.p,["title","titleId"]);function so(){return so=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function io(e,t){var a=e.title,r=e.titleId,c=lo(e,co);return n.createElement("svg",so({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,ao||(ao=n.createElement("path",{d:"M19.6491 13.2214L13.2277 19.6445C13.0614 19.8111 12.8638 19.9433 12.6464 20.0334C12.4289 20.1236 12.1958 20.17 11.9604 20.17C11.7251 20.17 11.492 20.1236 11.2745 20.0334C11.0571 19.9433 10.8595 19.8111 10.6932 19.6445L3 11.9583V3H11.956L19.6491 10.6952C19.9827 11.0309 20.17 11.485 20.17 11.9583C20.17 12.4316 19.9827 12.8857 19.6491 13.2214V13.2214Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),no||(no=n.createElement("path",{d:"M7 7H7.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var oo=n.forwardRef(io),uo=(a.p,a(339)),mo=a.n(uo),bo=D.a.bind(mo.a),po=function(e){var t=e.className,a=e.event,n=e.commit,r=e.branch,c=e.refs,s=e.environment;switch(a){case"pull_request":return Object(He.jsx)(fo,{className:t,pr:c});case"tag":return Object(He.jsx)(vo,{className:t,tag:c});case"promote":case"rollback":return Object(He.jsx)(Oo,{className:t,environment:s});case"cron":case"custom":case"push":return Object(He.jsx)(jo,{className:t,branch:r});default:return Object(He.jsx)(ho,{className:t,commit:n})}},ho=function(e){var t=e.className,a=e.commit;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(Ti,{}),a]})},jo=function(e){var t=e.className,a=e.branch;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(Ii,{}),a]})},fo=function(e){var t,a=e.className,n=e.pr;return Object(He.jsxs)("div",{className:bo("root",a||""),children:[Object(He.jsx)(ro,{}),Object(He.jsx)("sub",{children:"#"}),(t=n,null===t||void 0===t?void 0:t.match(/\d+/g))]})},vo=function(e){var t=e.className,a=e.tag;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(oo,{}),xo(a)]})},Oo=function(e){var t=e.className,a=e.environment;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(ki,{}),a]})},go=function(e){var t=e.className,a=e.name;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(Xr,{}),a]})},_o=function(e){var t=e.className,a=e.build;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(Qi,{}),a]})};function xo(e){var t;return null===e||void 0===e||null===(t=e.replace("refs/heads/",""))||void 0===t?void 0:t.replace("refs/tags/","")}var wo=a(340),yo=a.n(wo),No=D.a.bind(yo.a);function ko(e,t){var a=t.namespace,n=t.name,r=t.refs;return!0===t.deeplink?Object(He.jsx)("a",{href:"".concat(f,"/link/").concat(a,"/").concat(n,"/tree/").concat(r),target:"_blank",rel:"noreferrer noopener",children:e}):e}function Eo(e,t){var a=t.namespace,n=t.name,r=t.commit;return!0===t.deeplink?Object(He.jsx)("a",{href:"".concat(f,"/link/").concat(a,"/").concat(n,"/commit/").concat(r),target:"_blank",rel:"noreferrer noopener",children:e}):e}function Co(e,t){var a=t.namespace,n=t.name,r=t.number;return!0===t.deeplink?Object(He.jsx)("a",{href:"/".concat(a,"/").concat(n,"/").concat(r),children:e}):e}var So=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.commit,c=e.branch,s=e.namespace,l=e.name,i=e.deeplink,o=e.refs;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:n})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"pushed"}),Eo(Object(He.jsx)(ho,{className:No("label"),commit:r.substr(0,8)}),{namespace:s,name:l,commit:r,deeplink:i})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"to"}),ko(Object(He.jsx)(jo,{className:No("label"),branch:c}),{namespace:s,name:l,refs:o,deeplink:i})]})]})},Lo=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.branch,c=e.action,s=e.refs,l=e.namespace,i=e.name,o=e.deeplink;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:n})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"opened"===c?"opened":"synchronized"}),Object(He.jsx)("span",{className:No("info"),children:"pull request"}),ko(Object(He.jsx)(fo,{className:No("label"),pr:s}),{namespace:l,name:i,refs:s,deeplink:o})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"to"}),ko(Object(He.jsx)(jo,{className:No("label"),branch:r}),{namespace:l,name:i,refs:s,deeplink:o})]})]})},Mo=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.refs,c=e.namespace,s=e.name,l=e.deeplink;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:n})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"created"}),ko(Object(He.jsx)(vo,{className:No("label"),tag:r}),{namespace:c,name:s,refs:r,deeplink:l})]})]})},Po=function(e){var t=e.className,a=e.namespace,n=e.name,r=e.deeplink,c=e.parent,s=e.target,l=e.trigger;return Object(He.jsxs)("div",{className:No("activity",t||""),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{alt:l,text:l,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:l})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"promoted build"}),Co(Object(He.jsx)(_o,{className:No("label"),build:c}),{namespace:a,name:n,number:c,deeplink:r})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"to"}),Object(He.jsx)(Oo,{className:No("label"),environment:s})]})]})},Io=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.namespace,c=e.name,s=e.commit,l=e.deeplink,i=e.target,o=e.parent;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:n})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"rolled back"}),Object(He.jsx)(Oo,{className:No("label"),environment:i})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"to build"}),Co(Object(He.jsx)(_o,{className:No("label"),build:o}),{namespace:r,name:c,commit:s,deeplink:l})]})]})},Ro=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.cron;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsx)("div",{className:No("chunk"),"data-type":"chunk",children:Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")})}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"executed scheduled task"}),Object(He.jsx)(go,{className:No("label"),name:r})]})]})},Do=function(e){switch(e.event){case"pull_request":return Lo(e);case"tag":return Mo(e);case"promote":return Po(e);case"rollback":return Io(e);case"cron":return Ro(e);default:return So(e)}};Do.defaultProps={className:void 0,deeplink:void 0,namespace:void 0,name:void 0,number:void 0,event:void 0,action:void 0,actor:void 0,avatar:void 0,commit:void 0,branch:void 0,target:void 0,refs:void 0},So.defaultProps={className:"",commit:void 0,branch:void 0,deeplink:void 0},Lo.defaultProps={className:"",branch:void 0,deeplink:void 0},Mo.defaultProps={className:"",deeplink:void 0},Po.defaultProps={className:"",deeplink:void 0},Io.defaultProps={className:"",commit:void 0,deeplink:void 0},Ro.defaultProps={className:""};var Ao,Ho,Fo,Bo=Do,zo=a(341),Vo=a.n(zo),To=D.a.bind(Vo.a);function Wo(e){var t=e.className;return Object(He.jsx)("nav",{className:To("breadcrumb",t||""),children:e.children})}function Uo(e){return Object(He.jsx)("div",{className:To("breadcrumb-item"),children:e.href?Object(He.jsx)(l.b,{to:e.href,children:e.text}):e.text})}function Zo(){return Object(He.jsx)("div",{className:To("breadcrumb-spacer"),children:Object(He.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:Object(He.jsx)("polyline",{points:"9 18 15 12 9 6"})})})}var Go=["title","titleId"];function qo(){return qo=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Ko(e,t){var a=e.title,r=e.titleId,c=Yo(e,Go);return n.createElement("svg",qo({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-more-vertical",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ao||(Ao=n.createElement("circle",{cx:12,cy:12,r:1})),Ho||(Ho=n.createElement("circle",{cx:12,cy:5,r:1})),Fo||(Fo=n.createElement("circle",{cx:12,cy:19,r:1})))}var Jo,Qo,Xo,$o,eu=n.forwardRef(Ko),tu=(a.p,a(342)),au=a.n(tu),nu=D.a.bind(au.a),ru=function(e,t){return e.map((function(e,a){return Object(n.createElement)("div",Object(i.a)(Object(i.a)({className:nu("menu-item")},t(e.value)),{},{key:a,role:"menuitem",tabIndex:"-1","data-value":e.value}),e.content)}))},cu=function(e){var t=e.id,a=e.className,r=e.isMenuOpen,c=e.hideMenu,s=e.menuItems,l=e.onMenuItemSelect,i=e.menuAlignment,o=Object(n.useRef)();return Object(n.useEffect)((function(){r&&o.current.firstElementChild.focus()}),[r]),Object(He.jsx)("div",{className:nu("menu","menu-".concat(i),a),role:"menu",tabIndex:"-1",hidden:!r,"aria-hidden":!r,id:t,ref:o,onKeyDown:function(e){var t,a;switch(e.key){case"ArrowDown":e.preventDefault(),(null===(t=e.target)||void 0===t?void 0:t.nextElementSibling)?e.target.nextElementSibling.focus():e.target.parentElement.firstElementChild.focus();break;case"ArrowUp":e.preventDefault(),(null===(a=e.target)||void 0===a?void 0:a.previousElementSibling)?e.target.previousElementSibling.focus():e.target.parentElement.lastElementChild.focus();break;case"Escape":e.preventDefault(),c()}},children:ru(s,(function(e){return{onClick:function(t){l(e,t),c()},onKeyDown:function(t){"Enter"===t.key&&(t.preventDefault(),l(e,t),c()),"Tab"===t.key&&(t.preventDefault(),c())}}}))})},su=function(e){var t=e.id,a=e.className,r=e.menuItems,c=e.onMenuItemSelect,s=e.disabled,l=e.menuAlignment,i=Object(n.useState)(!1),u=Object(o.a)(i,2),d=u[0],m=u[1],b=Object(n.useState)(!1),p=Object(o.a)(b,2),h=p[0],j=p[1],f=Object(n.useRef)(),v=Object(n.useRef)();U(f,(function(){return m(!1)}));var O=function(){var e;m(!1),null===(e=v.current)||void 0===e||e.focus()},g=function(){d?O():(j(!1),m(!0))};return Object(He.jsx)("div",{className:nu("wrapper",a),ref:f,children:Object(He.jsxs)("div",{className:nu("wrapper-menu"),children:[Object(He.jsx)("button",{className:nu("btn-menu-controller",{"is-open":d,"is-focused":h}),type:"button",disabled:s,"aria-haspopup":"menu","aria-expanded":d||void 0,ref:v,onFocus:function(e){j(!0)},onBlur:function(e){j(!1)},onClick:g,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),g())},children:Object(He.jsx)(eu,{})}),Object(He.jsx)(cu,{menuItems:r,isMenuOpen:d,hideMenu:O,id:t,menuAlignment:l,onMenuItemSelect:c})]})})},lu=["title","titleId"];function iu(){return iu=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function uu(e,t){var a=e.title,r=e.titleId,c=ou(e,lu);return n.createElement("svg",iu({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-calendar",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Jo||(Jo=n.createElement("rect",{x:3,y:4,width:18,height:18,rx:2,ry:2})),Qo||(Qo=n.createElement("line",{x1:16,y1:2,x2:16,y2:6})),Xo||(Xo=n.createElement("line",{x1:8,y1:2,x2:8,y2:6})),$o||($o=n.createElement("line",{x1:3,y1:10,x2:21,y2:10})))}var du=n.forwardRef(uu),mu=(a.p,a(343)),bu=a.n(mu),pu=D.a.bind(bu.a),hu=function(e){var t=e.namespace,a=e.name,n=e.build,r=e.data,c=e.handleCancelClick,s=e.handleMenuItemSelect,i=e.handleViewModeClick,o=e.view,u=e.userIsAdminOrHasWritePerm,d=e.showCardHeader,m=null;return r&&"blocked"!==r.status&&(["pending","running"].includes(r.status)?m=Object(He.jsx)(Ye,{className:pu("cancel-button","controls"),onClick:c,children:"Cancel"}):u&&(m=Object(He.jsx)(su,{id:"build-actions",className:pu("controls"),menuItems:[{value:"restart",content:"Restart"},{value:"promote",content:"Promote"},{value:"debug",content:"Debug"}],menuAlignment:"right",onMenuItemSelect:s}))),Object(He.jsxs)("header",{className:pu("header"),children:[Object(He.jsx)("div",{className:pu("breadcrumbs"),children:Object(He.jsxs)(Wo,{className:pu("breadcrumbs-inner"),children:[Object(He.jsx)(Uo,{href:"/".concat(t,"/").concat(a),text:"Builds"}),Object(He.jsx)(Zo,{}),Object(He.jsx)(Uo,{text:"#".concat(n)}),Object(He.jsx)(Zo,{})]})}),Object(He.jsxs)("div",{className:pu("togglers"),children:[Object(He.jsx)(Ye,{className:pu({active:o===yu.LOGS_VIEW}),onClick:i(yu.LOGS_VIEW),children:"Log View"}),Object(He.jsx)(Ye,{className:pu({active:o===yu.GRAPH_VIEW}),onClick:i(yu.GRAPH_VIEW),children:"Graph View"}),d&&Object(He.jsx)(Ye,{className:pu({active:o===yu.CARDS_VIEW}),onClick:i(yu.CARDS_VIEW),children:"Card View"})]}),r?Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("div",{className:pu("meta"),children:[r.started>0&&Object(He.jsx)(lc,{started:r.started,finished:r.finished,withLetters:!0,withIcon:!0}),Object(He.jsxs)("div",{className:pu("date"),children:[Object(He.jsx)(du,{}),nt({date:r.created})]}),m]}),m]}):null,Object(He.jsx)("div",{className:pu("title"),children:Object(He.jsxs)("h1",{children:[Object(He.jsx)(l.b,{to:"/".concat(t,"/").concat(a),children:Object(He.jsx)(ht,{})}),a]})}),r?Object(He.jsxs)("div",{className:pu("activity"),children:[Object(He.jsx)(rn,{status:r.status,className:pu("status")}),Object(He.jsx)("p",{title:r.title||r.message,className:pu("message"),children:r.title||r.message}),Object(He.jsx)(Bo,{namespace:t,name:a,number:r.number,event:r.event,action:r.action,actor:r.sender,avatar:r.author_avatar,commit:r.after,branch:r.target,target:r.deploy_to,refs:r.ref,cron:r.cron,trigger:r.trigger,parent:r.parent,deeplink:!0})]}):null]})};hu.defaultProps={data:void 0,userIsAdminOrHasWritePerm:!1};var ju=hu,fu=D.a.bind(bl.a),vu="error",Ou="resolved",gu="resolved_blocked",_u="logs",xu="graph",wu="cards",yu={LOGS_VIEW:_u,GRAPH_VIEW:xu,CARDS_VIEW:wu};function Nu(e){var t,a=e.user,r=e.userIsAdminOrHasWritePerm,c=Object(b.i)(),s=c.namespace,l=c.name,u=c.build,p=c.stage,h=void 0===p?1:p,j=c.step,v=void 0===j?1:j;A("Build #".concat(u,".").concat(h,".").concat(v," - ").concat(s,"/").concat(l));var O=Object(b.g)(),g=function(e){var t=e.namespace,a=e.name,n=e.build;return St("/api/repos/".concat(t,"/").concat(a,"/builds/").concat(n))}({namespace:s,name:l,build:u}),_=g.data,x=g.mutate,w=g.isError,y=g.isLoading,N=Object(n.useState)(Ou),k=Object(o.a)(N,2),E=k[0],C=k[1],S=Object(n.useState)(_u),L=Object(o.a)(S,2),M=L[0],P=L[1],I=Object(b.h)().search,R=new URLSearchParams(I),D="promote",H="",F=[];try{D=R.get("action")||"promote",H=R.get("target")||"",F=R.get("parameters")?JSON.parse(R.get("parameters")):[]}catch(ae){console.warn("Invalid query parameters",ae)}var B=Ps(!!R.get("target")),V=Object(o.a)(B,2),T=V[0],W=V[1],U=K().showError;Object(n.useLayoutEffect)((function(){var e,t;if(w||(null===_||void 0===_?void 0:_.error)||_&&(null!==(e=null===_||void 0===_||null===(t=_.stages)||void 0===t?void 0:t.length)&&void 0!==e?e:0)=0})).reverse()}),[t]),s=Object(b.i)(),l=s.namespace,i=s.name,o=Object(b.g)(),u=Object(n.useCallback)((function(e){var t=e.number;return o.push("/".concat(l,"/").concat(i,"/").concat(t))}),[l,i,o]),d=Object(n.useMemo)((function(){return function(e){var t=e.slice().sort((function(e,t){return e.duration-t.duration})),a=e.slice().sort((function(e,t){return e.timeStarted-t.timeStarted})),n=Math.floor(t.length/2),r=Math.floor(t.length%2?t[n].duration/60:(t[n-1].duration+t[n].duration)/120),c=0===r?"< 1":r,s=a[a.length-1].timeStarted,l=Object(ku.a)(new Date(1e3*s),new Date,{addSuffix:!0}).split(" "),i=Object(Ru.a)(l);return{median:c,latest:{number:i[0],units:i.slice(1).join(" "),status:a[a.length-1].status}}}(c)}),[c]),m=d.median,p=d.latest;return Object(He.jsxs)("div",{className:Wu("wrapper",r),children:[Object(He.jsx)("div",{className:Wu("info"),children:Object(He.jsxs)("ul",{className:Wu("summary"),children:[Object(He.jsxs)("li",{className:Wu("item"),children:[Object(He.jsx)("span",{className:Wu("item-heading"),children:"Total Builds"}),Object(He.jsx)("span",{className:Wu("item-content"),children:Object(He.jsx)("span",{children:a})})]}),Object(He.jsxs)("li",{className:Wu("item"),children:[Object(He.jsx)("span",{className:Wu("item-heading"),children:"Median Build"}),Object(He.jsx)("span",{className:Wu("item-content"),children:Object(He.jsxs)("span",{children:[m,Object(He.jsx)("sub",{children:m>1?"minutes":"minute"})]})})]}),Object(He.jsxs)("li",{className:Wu("item"),children:[Object(He.jsx)("span",{className:Wu("item-heading"),children:"Last Build"}),Object(He.jsx)("span",{className:Wu("item-content"),children:Object(He.jsxs)("span",{children:[p.number,Object(He.jsx)("sub",{children:p.units})]})})]}),Object(He.jsxs)("li",{className:Wu("item"),children:[Object(He.jsx)("span",{className:Wu("item-heading"),children:"Last Status"}),Object(He.jsx)("span",{className:Wu("item-content"),children:Object(He.jsx)("span",{className:Wu("status","status-".concat(p.status)),children:p.status})})]})]})}),Object(He.jsx)("div",{className:Wu("bar-wrapper"),children:Object(He.jsx)(zu,{data:c,height:170,barsShown:50,onClick:u})})]})};Uu.defaultProps={className:void 0};var Zu=Uu,Gu=D.a.bind(Iu.a);function qu(e){var t=e.repo,a=t.active,r=Object(b.j)(),c=r.params,s=c.namespace,l=c.name,i=r.url,o=Object(b.g)();Object(n.useLayoutEffect)((function(){a||o.replace("/".concat(s,"/").concat(l,"/settings"))}),[a,o,s,l]);var u=function(e){var t,a=e.namespace,n=e.name,r=Object(h.d)((function(e,t){var r=e+1;return t&&t.length-1})))&&void 0!==e?e:[]}),[Z,J,h,w]),$=Object(n.useMemo)((function(){var e;return null!==(e=X.slice(0).sort(O===xd?ct:st).slice(0,l?X.length:50))&&void 0!==e?e:[]}),[X,l,O]),ee=Object(n.useMemo)((function(){var e,t;return null!==(e=null===Z||void 0===Z||null===(t=Z.slice(0).sort(st).filter((function(e){return!!e.build})))||void 0===t?void 0:t.slice(0,6))&&void 0!==e?e:[]}),[Z]),te=Object(n.useMemo)((function(){if(!z)return[{value:"",key:"All Organizations"}];var e=null===z||void 0===z?void 0:z.map((function(e){return{value:e,key:e}}));return[{value:"",key:"All Organizations"}].concat(Object(Ke.a)(e))}),[z]),ae=wd.map((function(e){return{value:e,key:e}}));Object(n.useEffect)((function(){(P||H)&&(r(Object(i.a)(Object(i.a)({},a),{},{isAccSyncing:!1})),S("Sync error has occurred, please, try again"),console.error("Sync error:",(null===P||void 0===P?void 0:P.message)||(null===H||void 0===H?void 0:H.message)))}),[P,H,S,a,r]),Object(n.useEffect)((function(){R&&(C(!1),T(),a.isAccSyncing&&r(Object(i.a)(Object(i.a)({},a),{},{isAccSyncing:!1})))}),[R,a,r,T]);var ne=null;return ne=G?null:(null===Z||void 0===Z?void 0:Z.length)?Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("div",{className:_d("subheader"),children:[Object(He.jsx)("h2",{className:_d("section-title"),children:"Repositories"}),Object(He.jsxs)("div",{className:_d("actions"),children:[Object(He.jsx)(pd,{id:"active-switch",checked:h,onChange:function(e){return j(e)},children:"Active Only"}),Object(He.jsx)(Kl,{value:O,optionsList:ae,onChange:function(e){return g(e.target.value)}}),Object(He.jsx)(Kl,{value:w,optionsList:te,onChange:function(e){return y(e.target.value)}}),Object(He.jsx)(Hl,{placeholder:"Filter \u2026",icon:"search",className:_d("search"),width:300,name:"repo-search",onChange:function(e){return Q(e.target.value.trim())}})]})]}),Object(He.jsx)(rd,{repos:$}),!l&&$.length>=50&&Object(He.jsx)(Ye,{className:_d("btn","btn-show-more"),onClick:function(){return u(!0)},children:"Show more \u2193"})]}):Object(He.jsx)(hn,{title:"Your Repository List is Empty.",message:"Drone automatically syncs with your version control system to display your repositories."}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("header",{className:_d("header"),children:[Object(He.jsx)("h1",{children:"Dashboard"}),Object(He.jsxs)("button",{type:"button",className:_d("btn","btn-sync"),disabled:D||M,onClick:function(){return C(!0)},children:[(D||M)&&Object(He.jsx)("span",{className:_d("btn-sync-spinner")}),D||M?"Syncing":"Sync"]})]}),Object(He.jsxs)("section",{className:_d("wrapper"),children:[!!ee.length&&Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("h2",{className:_d("section-title","section-title-recent"),children:"Recent Activity"}),Object(He.jsx)(od,{repos:ee})]}),ne]})]})}var Nd=["title","titleId"];function kd(){return kd=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Cd(e,t){var a=e.title,r=e.titleId,c=Ed(e,Nd);return n.createElement("svg",kd({xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 86.62 27",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,hd||(hd=n.createElement("defs",null,n.createElement("style",null,".cls-1{fill:#22222A}"))),jd||(jd=n.createElement("g",{id:"Landing"},n.createElement("g",{id:"logos"},n.createElement("g",{id:"drone-logo-back-with-text"},n.createElement("g",{id:"Group-4"},n.createElement("path",{id:"DRONE",className:"cls-1",d:"M29.07 6.52h4.35A4.93 4.93 0 0137 7.69a5.09 5.09 0 011.19 3.74A4.91 4.91 0 0137 15.06a4.89 4.89 0 01-3.53 1.17h-4.4zm4 7.54a3 3 0 001.22-.22 1.31 1.31 0 00.71-.79 4.32 4.32 0 00.24-1.62A4.65 4.65 0 0035 9.76a1.58 1.58 0 00-.69-.85 2.71 2.71 0 00-1.24-.24h-1.16v5.39zm7.82-7.54h5.07a3.47 3.47 0 012.6.93 3.52 3.52 0 01.85 2.55 3.19 3.19 0 01-.48 1.73 3.32 3.32 0 01-1.3 1.16 1.15 1.15 0 01.3.32 3.74 3.74 0 01.26.53l1.12 2.55h-3l-1-2.34a1 1 0 00-.29-.39.88.88 0 00-.48-.11h-.8v2.84h-2.82V6.52zm4.32 4.7a1.31 1.31 0 001-.32 1.17 1.17 0 00.34-.93c0-.85-.39-1.27-1.22-1.27h-1.65v2.55h1.51zm11.38 5.17a5.23 5.23 0 01-3.71-1.19 5.09 5.09 0 01-1.25-3.77 5.13 5.13 0 011.25-3.84 5.14 5.14 0 013.71-1.2 5.17 5.17 0 013.72 1.2 5.13 5.13 0 011.24 3.84 5.09 5.09 0 01-1.24 3.77 5.24 5.24 0 01-3.74 1.19zm0-2.41a1.91 1.91 0 001.57-.61 3.19 3.19 0 00.47-2 3.25 3.25 0 00-.47-2 2.39 2.39 0 00-3.19 0 3.38 3.38 0 00-.47 2 3.32 3.32 0 00.47 2 2 2 0 001.6.63zm7.69-7.46h2.42l3.66 5.15V6.52h2.84v9.71h-2.46l-3.64-5.12v5.12h-2.84zm12 0h7.32V8.7h-4.54v1.59h4v2.2h-4v1.59h4.54v2.18h-7.37z"}),n.createElement("g",{id:"Group-3"},n.createElement("path",{id:"Combined-Shape",d:"M4.43 2.47l-.11.1 3.85 3.8a5.68 5.68 0 00-.85 3.05 5.27 5.27 0 005.49 5.43 5.7 5.7 0 003.08-.85l3.87 3.85A10.89 10.89 0 0111 22.12 10.84 10.84 0 010 11.25a10.63 10.63 0 014.43-8.78zM6.58 1a11.17 11.17 0 014.69-1A10.82 10.82 0 0122.2 10.87a11 11 0 01-1 4.7l-3.45-3.45a5.71 5.71 0 00.85-3 5.28 5.28 0 00-5.5-5.49 5.61 5.61 0 00-3 .85zm6.58 11.25A3.18 3.18 0 019.87 9a3.18 3.18 0 013.29-3.3A3.21 3.21 0 0116.44 9a3.16 3.16 0 01-3.28 3.28z",fill:"#00abe4"}))))))),fd||(fd=n.createElement("path",{className:"cls-1",d:"M44.32 24.61a1.85 1.85 0 01-1.3.45 1.79 1.79 0 01-1.62-1v.88h-.43v-7.09h.51v3a1.85 1.85 0 011.64-1 1.82 1.82 0 011.33.51 2.81 2.81 0 01.77 2.06 3.19 3.19 0 01-.9 2.19zm-.27-3.79A1.4 1.4 0 0043 20.4a1.53 1.53 0 00-1 .37 2.18 2.18 0 00-.61 1.72 2.2 2.2 0 00.64 1.7 1.32 1.32 0 001 .4 1.46 1.46 0 001-.35 2.27 2.27 0 00.64-1.75 2.35 2.35 0 00-.62-1.67z"})),vd||(vd=n.createElement("path",{className:"cls-1",d:"M47.26 26a1.36 1.36 0 01-1.32 1 2.37 2.37 0 01-.61-.08v-.42a5.37 5.37 0 00.61.05 1 1 0 00.9-.72l.32-.79-2-5h.53l1.71 4.36 1.6-4.35h.53zM54.61 24.93v-3.15c0-.59-.19-1-.85-1s-1.06.8-1.06 1.41v2.7h-1.22v-7.04h1.22v2.52a1.74 1.74 0 011.41-.66 1.67 1.67 0 011.72 1.83v3.39zM60.52 25a.82.82 0 01-.87-.72 1.75 1.75 0 01-1.54.77 1.66 1.66 0 01-1.86-1.59A1.62 1.62 0 0158 21.88l1.51-.1v-.32c0-.48-.16-.8-.88-.8-.55 0-.9.27-.92.72h-1.2c.08-1.14 1-1.67 2.12-1.67a1.81 1.81 0 011.91 1 2.61 2.61 0 01.16 1v1.88c0 .24.08.32.3.32a.43.43 0 00.15 0v.9a1 1 0 01-.63.19zm-1-2.33l-1.3.1a.73.73 0 00-.74.67.66.66 0 00.71.63 1.15 1.15 0 001.3-1.16v-.24zM64.16 20.93a1.28 1.28 0 00-1.33 1.43v2.57h-1.24v-5.09h1l.11.77a1.44 1.44 0 011.43-.82 2.17 2.17 0 01.37 0V21a1.44 1.44 0 00-.34-.07zM68 24.93V21.8c0-.61-.19-.95-.85-.95a.94.94 0 00-.88.63 3.46 3.46 0 00-.16 1.36v2.09h-1.24v-5.09h1l.08.66a1.76 1.76 0 013.23 1v3.39zM74.34 22.76h-3.42a1.4 1.4 0 00.37 1 1.15 1.15 0 00.75.32 1 1 0 00.74-.24 1 1 0 00.24-.42h1.16a2.14 2.14 0 01-.42.95 2.39 2.39 0 01-3.34.08 2.76 2.76 0 01-.8-2 2.81 2.81 0 01.74-2 2.17 2.17 0 011.64-.72 2.12 2.12 0 011.86 1 3 3 0 01.45 1.77c.06-.09.03.15.03.26zM72.83 21a1 1 0 00-.77-.29 1 1 0 00-.85.4 1.16 1.16 0 00-.26.79h2.2a1.45 1.45 0 00-.32-.9zM78.45 24.48a2.43 2.43 0 01-1.75.58 2.34 2.34 0 01-1.64-.58 1.74 1.74 0 01-.53-1.19h1.14a.86.86 0 00.26.61 1.13 1.13 0 00.77.24c.43 0 1-.08 1-.64a.53.53 0 00-.51-.53c-.45-.08-1-.11-1.4-.19a1.43 1.43 0 01-1.17-1.35 1.39 1.39 0 01.53-1.14 2.32 2.32 0 011.54-.5 2.07 2.07 0 011.59.61 1.63 1.63 0 01.45 1.06h-1.12a.64.64 0 00-.22-.48 1 1 0 00-.66-.24 1.23 1.23 0 00-.53.08.58.58 0 00-.4.53c0 .37.32.48.59.5l1.08.16a1.5 1.5 0 011.41 1.44 1.44 1.44 0 01-.43 1.03zM83 24.48a2.43 2.43 0 01-1.75.58 2.34 2.34 0 01-1.64-.58 1.74 1.74 0 01-.53-1.19h1.14a.82.82 0 00.26.61 1.13 1.13 0 00.77.24c.43 0 1-.08 1-.64a.53.53 0 00-.51-.53c-.45-.08-.95-.11-1.4-.19a1.43 1.43 0 01-1.17-1.35 1.39 1.39 0 01.53-1.14 2.32 2.32 0 011.54-.5 2.07 2.07 0 011.59.61 1.68 1.68 0 01.45 1.06h-1.09A.67.67 0 0082 21a1 1 0 00-.66-.24 1.2 1.2 0 00-.53.08.58.58 0 00-.4.53c0 .37.32.48.58.5l1.09.16a1.5 1.5 0 011.41 1.44 1.37 1.37 0 01-.49 1.01zM85.19 6.68v.93h-.13v-.93h-.32v-.13h.77v.13zM86.49 7.61v-.9l-.32.88h-.1l-.32-.88v.9h-.14V6.55h.19l.32.88.32-.88h.18v1.06z"})))}var Sd,Ld,Md,Pd,Id,Rd,Dd,Ad,Hd,Fd,Bd,zd,Vd,Td,Wd,Ud,Zd,Gd,qd,Yd,Kd,Jd,Qd,Xd,$d,em,tm,am,nm,rm,cm,sm,lm,im,om,um,dm,mm,bm,pm,hm,jm,fm,vm,Om,gm,_m,xm,wm,ym,Nm,km,Em,Cm,Sm,Lm,Mm,Pm,Im,Rm,Dm,Am,Hm,Fm,Bm,zm,Vm,Tm,Wm,Um,Zm,Gm,qm,Ym,Km,Jm=n.forwardRef(Cd),Qm=(a.p,["title","titleId"]);function Xm(){return Xm=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function eb(e,t){var a=e.title,r=e.titleId,c=$m(e,Qm);return n.createElement("svg",Xm({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 2430.2 1721.2",style:{enableBackground:"new 0 0 2430.2 1721.2"},xmlSpace:"preserve",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Sd||(Sd=n.createElement("style",{type:"text/css"},"\n\t.st0{display:none;}\n\t.st1{display:inline;fill:#153461;}\n\t.st2{display:inline;opacity:0.3;}\n\t.st3{fill:none;stroke:#DD4ADD;stroke-width:1.1209;stroke-miterlimit:10;}\n\t.st4{display:inline;opacity:0.5;}\n\t.st5{fill:#DD4ADD;}\n\t.st6{fill:none;stroke:#FFFFFF;stroke-width:2;stroke-miterlimit:10;}\n\t.st7{fill:none;stroke:#00ADE4;stroke-width:2;stroke-miterlimit:10;}\n\t.st8{fill:none;stroke:#FFFFFF;stroke-width:2;stroke-linecap:square;stroke-miterlimit:10;}\n\t.st9{fill:none;stroke:#F2BA44;stroke-width:2;stroke-miterlimit:10;}\n\t.st10{fill:#FFFFFF;}\n\t.st11{clip-path:url(#SVGID_2_);fill:none;stroke:#00ADE4;stroke-width:2;stroke-miterlimit:10;}\n\t.st12{clip-path:url(#SVGID_4_);fill:none;stroke:#00ADE4;stroke-width:2;stroke-miterlimit:10;}\n\t.st13{clip-path:url(#SVGID_6_);fill:none;stroke:#00ADE4;stroke-width:2;stroke-miterlimit:10;}\n\t.st14{fill:#00ADE4;}\n\t.st15{fill:none;stroke:#FFFFFF;stroke-width:2;}\n\t.st16{opacity:0.3;}\n\t.st17{fill:#00ADE4;stroke:#00ADE4;stroke-miterlimit:10;}\n\t.st18{opacity:0.6;}\n\t.st19{fill-rule:evenodd;clip-rule:evenodd;fill:none;stroke:#FFFFFF;stroke-width:2;stroke-miterlimit:10;}\n\t.st20{fill:none;stroke:#4FACDF;stroke-width:2;stroke-miterlimit:10;}\n\t.st21{fill:#FFFFFF;stroke:#FFFFFF;stroke-width:2;stroke-miterlimit:10;}\n\t.st22{fill:none;stroke:#00A0DF;stroke-width:2;stroke-miterlimit:10;}\n")),n.createElement("g",{id:"Reference",className:"st0"},n.createElement("image",{style:{display:"inline",overflow:"visible"},width:3808,height:2258,xlinkHref:"D4BA146C9DCC15D1.png",transform:"matrix(0.9147 0 0 0.9147 -939.1922 -214.9771)"})),Ld||(Ld=n.createElement("g",{id:"Background",className:"st0"},n.createElement("rect",{className:"st1",width:2430.2,height:1721.2}))),Md||(Md=n.createElement("g",{id:"Grid",className:"st0"},n.createElement("g",{className:"st2"},n.createElement("rect",{className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:1434.3,className:"st3",width:404.2,height:286.9})))),Pd||(Pd=n.createElement("g",{id:"Margin",className:"st0"},n.createElement("g",{className:"st4"},n.createElement("polygon",{className:"st5",points:"2400.7,1685.5 2400.7,1649.9 69.8,1649.9 69.7,71.4 2361.4,71.4 2361.4,1685.5 2400.7,1685.5 2400.7,1649.9 2400.7,1685.5 2430.1,1685.5 2430.1,0 0,0 0,1721.2 2430.1,1721.2 2430.1,1685.5 "})))),n.createElement("g",{id:"Art"},Id||(Id=n.createElement("line",{className:"st6",x1:207.9,y1:283,x2:207.9,y2:252.9})),Rd||(Rd=n.createElement("path",{className:"st6",d:"M1894.6,854.1v628.1h127.6"})),Dd||(Dd=n.createElement("path",{className:"st6",d:"M1616.7,860.6V0.6"})),Ad||(Ad=n.createElement("path",{className:"st6",d:"M1616.7,1137.3V1314h-331.9c-0.6-4.1-0.9-8.2-0.9-12.5c0-47,38.2-85.2,85.3-85.2c4.3,0,8.5,0.3,12.7,0.9 c3-44.3,39.9-79.3,85-79.3c20,0,38.3,6.9,52.8,18.4c15.5-16.4,37.5-26.6,61.8-26.6C1594.1,1129.7,1606,1132.4,1616.7,1137.3z"})),Hd||(Hd=n.createElement("path",{className:"st6",d:"M1138,1306.5c0,2.5-0.1,5-0.3,7.4h-328v-135c15.6-18.8,39.2-30.7,65.5-30.7c24.8,0,47.2,10.6,62.8,27.6 c11.8-6.2,25.2-9.7,39.5-9.7c36.6,0,67.7,23,79.8,55.3C1102.3,1223.8,1138,1260.9,1138,1306.5z"})),Fd||(Fd=n.createElement("path",{className:"st7",d:"M1361,1015.5v56.2"})),Bd||(Bd=n.createElement("path",{className:"st7",d:"M1065.5,1015.5v56.2"})),zd||(zd=n.createElement("path",{className:"st7",d:"M1379.4,1015.5v41.1"})),Vd||(Vd=n.createElement("path",{className:"st7",d:"M1048.1,1015.5v41.1"})),Td||(Td=n.createElement("path",{className:"st6",d:"M1239,1032.3h-54.5l-12.9,31.8h80.3L1239,1032.3z"})),Wd||(Wd=n.createElement("path",{className:"st6",d:"M0,1314.1h810.6v407.1"})),Ud||(Ud=n.createElement("path",{className:"st6",d:"M1894.6,855.1h-277.9v459"})),Zd||(Zd=n.createElement("path",{className:"st8",d:"M1053.7,855.1h-244"})),Gd||(Gd=n.createElement("path",{className:"st8",d:"M809.7,855.1V1314h807.1V855.1c-81.6,0-163.2,0-244.9,0"})),qd||(qd=n.createElement("path",{className:"st6",d:"M1029.7,740.6h-27.4"})),Yd||(Yd=n.createElement("path",{className:"st6",d:"M1016,726.9v27.4"})),Kd||(Kd=n.createElement("path",{className:"st6",d:"M1511.4,534H1484"})),Jd||(Jd=n.createElement("path",{className:"st6",d:"M1497.7,520.4v27.4"})),Qd||(Qd=n.createElement("path",{className:"st9",d:"M1420.1,640.3h-27.4"})),Xd||(Xd=n.createElement("path",{className:"st9",d:"M1406.4,626.6V654"})),$d||($d=n.createElement("path",{className:"st7",d:"M1378.3,484.5h-27.4"})),em||(em=n.createElement("path",{className:"st7",d:"M1364.6,470.8v27.4"})),tm||(tm=n.createElement("path",{className:"st6",d:"M1333.5,373h-27.4"})),am||(am=n.createElement("path",{className:"st6",d:"M1319.8,359.3v27.4"})),nm||(nm=n.createElement("path",{className:"st9",d:"M932.3,601.3h-27.4"})),rm||(rm=n.createElement("path",{className:"st9",d:"M918.7,587.6V615"})),cm||(cm=n.createElement("path",{className:"st7",d:"M951.6,370.1h-27.4"})),sm||(sm=n.createElement("path",{className:"st7",d:"M937.9,356.4v27.4"})),lm||(lm=n.createElement("path",{className:"st7",d:"M1491.6,395.6h-27.4"})),im||(im=n.createElement("path",{className:"st7",d:"M1478,381.9v27.4"})),om||(om=n.createElement("path",{className:"st9",d:"M1142,403.6h-27.4"})),um||(um=n.createElement("path",{className:"st9",d:"M1128.3,389.9v27.4"})),dm||(dm=n.createElement("path",{className:"st7",d:"M1081.8,616.4h-27.4"})),mm||(mm=n.createElement("path",{className:"st7",d:"M1068.1,602.7V630"})),bm||(bm=n.createElement("path",{className:"st6",d:"M1060.2,481.1h-27.4"})),pm||(pm=n.createElement("path",{className:"st6",d:"M1046.5,467.4v27.4"})),hm||(hm=n.createElement("g",null,n.createElement("path",{className:"st6",d:"M1889.7,480.8v128.4h-3.2H1773c13,0,23.6,10.5,23.6,23.6c0,6.5-2.6,18.7-6.9,23l-16.7,0.6 c-13,0-23.6-10.5-23.6-23.6V457.2h116.6C1879.2,457.2,1889.7,467.8,1889.7,480.8z"}),n.createElement("path",{className:"st7",d:"M1806.2,514.5l-15.8,21.8l15.8,21.8"}),n.createElement("path",{className:"st7",d:"M1835.4,559l15.8-21.8l-15.8-21.8"}),n.createElement("path",{className:"st7",d:"M1829.5,515.2l-16.4,43.4"}),n.createElement("path",{className:"st10",d:"M1926,632.8c0,13-10.5,23.6-23.6,23.6H1773c6.5,0,12.5-2.6,16.7-6.9c4.2-4.3,6.9-10.1,6.9-16.6 c0-13-10.5-23.6-23.6-23.6h129.4C1915.4,609.2,1926,619.8,1926,632.8z"}))),jm||(jm=n.createElement("path",{className:"st6",d:"M809.7,855.1V249.4H405.9"})),fm||(fm=n.createElement("path",{className:"st6",d:"M1260.1,1085.9l60.3,135.4"})),vm||(vm=n.createElement("path",{className:"st7",d:"M1255.2,1119.2l36.2,95.8"})),Om||(Om=n.createElement("path",{className:"st7",d:"M1174.8,1106.2l-42.2,93.3"})),gm||(gm=n.createElement("path",{className:"st6",d:"M1164.6,1087.3l-68,134.6"})),_m||(_m=n.createElement("path",{className:"st6",d:"M1326,842.1c46.5,0,84.3,37.7,84.3,84.3v63.5H1326V842.1z"})),xm||(xm=n.createElement("path",{className:"st6",d:"M1099.1,842.1c-46.5,0-84.3,37.7-84.3,84.3v63.5h84.3V842.1z"})),wm||(wm=n.createElement("path",{className:"st6",d:"M1305.5,639.4v380.6h-185.8V639.4l55.6-132.9c6.3-15,21-24.8,37.3-24.8c8.2,0,15.9,2.5,22.4,6.8 c6.5,4.3,11.8,10.5,14.9,18L1305.5,639.4z"})),ym||(ym=n.createElement("g",null,n.createElement("circle",{className:"st6",cx:1213.6,cy:689.5,r:50.9}),n.createElement("circle",{className:"st6",cx:1213.6,cy:689.5,r:62.9}))),Nm||(Nm=n.createElement("path",{className:"st7",d:"M825.5,1200.8c7.7-20.6,27.6-35.3,51-35.3c22.1,0,41.1,13.1,49.6,31.8"})),n.createElement("g",null,km||(km=n.createElement("defs",null,n.createElement("rect",{id:"SVGID_1_",x:1303.5,y:1240.8,transform:"matrix(0.8563 -0.5166 0.5166 0.8563 -455.9261 881.544)",width:104.9,height:38.4}))),n.createElement("clipPath",{id:"SVGID_2_"},n.createElement("use",{xlinkHref:"#SVGID_1_",style:{overflow:"visible"}})),Em||(Em=n.createElement("path",{className:"st11",d:"M1322.4,1301.7c-4.1-21.6,5.4-44.5,25.4-56.6c18.9-11.4,41.9-10,58.9,1.6"}))),n.createElement("g",null,Cm||(Cm=n.createElement("defs",null,n.createElement("rect",{id:"SVGID_3_",x:1519.7,y:1155,transform:"matrix(0.9876 -0.1571 0.1571 0.9876 -164.2807 260.0947)",width:87.9,height:29.1}))),n.createElement("clipPath",{id:"SVGID_4_"},n.createElement("use",{xlinkHref:"#SVGID_3_",style:{overflow:"visible"}})),Sm||(Sm=n.createElement("path",{className:"st12",d:"M1524.2,1189.9c3.9-16.4,18.7-30,38-33.1c18.3-2.9,35.5,4.4,44.8,17.3"}))),n.createElement("g",null,Lm||(Lm=n.createElement("defs",null,n.createElement("rect",{id:"SVGID_5_",x:1075.2,y:1210.2,transform:"matrix(0.6355 -0.7721 0.7721 0.6355 -578.0751 1301.8018)",width:29.1,height:105.8}))),n.createElement("clipPath",{id:"SVGID_6_"},n.createElement("use",{xlinkHref:"#SVGID_5_",style:{overflow:"visible"}})),Mm||(Mm=n.createElement("path",{className:"st13",d:"M1029.7,1245.5c15.9-7.1,38.5-2.9,56.7,12.1c17.2,14.2,25.7,34,23.3,50.4"}))),Pm||(Pm=n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st6",d:"M300.9,177.6l24.5,52.9c1.7,3.6-1,7.7-4.9,7.7h-15.5v13.4c0,14.6-11.8,26.4-26.4,26.4h-23.9"}),n.createElement("path",{className:"st6",d:"M194.2,188.9v33.2h-17.4v6.2c0,13.5,11,24.5,24.5,24.5h13.1v-44.5h0.3c10.1,0,18.2-8.2,18.2-18.2v-1.2"})),n.createElement("path",{className:"st14",d:"M198.1,161.6h88.3v-0.8h15.5c0.9,0,1.8,0.2,2.5,0.5c2.3,1,4,3.3,4,6v22.9v1h-2.2H192.7v-23.9 c0-2.4,1.4-4.6,3.4-5.7H198.1z"}),n.createElement("path",{className:"st14",d:"M198,163.3h106.4c0-0.7,0-1.3,0-2c-1.1-28.4-24.4-51.2-53.1-51.2c-28,0-50.9,21.6-53,49.1h88.2v2.4h-88.3 C198.1,162.1,198,162.7,198,163.3z"}),n.createElement("path",{className:"st14",d:"M251.7,120c3.7,0,6.6-3,6.6-6.6c0-3.7-3-6.6-6.6-6.6c-3.7,0-6.6,3-6.6,6.6C245,117,248,120,251.7,120z"}),n.createElement("path",{className:"st10",d:"M285.1,211.3c1.9,0,3.5-1.6,3.5-3.5s-1.6-3.5-3.5-3.5c-1.9,0-3.5,1.6-3.5,3.5S283.2,211.3,285.1,211.3z"})),n.createElement("path",{className:"st6",d:"M240,405c91.5,0,165.6-74.1,165.6-165.6c0-91.4-74.2-165.5-165.6-165.5c-91.5,0-165.6,74.1-165.6,165.5 C74.3,330.9,148.5,405,240,405z"}))),Im||(Im=n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st14",d:"M694.2,1196.2c14.7,0,26.7-12,26.7-26.7c0-14.7-12-26.7-26.7-26.7c-14.7,0-26.7,12-26.7,26.7 C667.5,1184.3,679.5,1196.2,694.2,1196.2z"}),n.createElement("path",{className:"st6",d:"M717,1169.6c0,15.8-12.8,28.6-28.6,28.6c-0.8,0-1.7,0-2.5-0.1l-12.3,12.4l0.1-16.4 c-8.3-5-13.9-14.1-13.9-24.5c0-15.8,12.8-28.6,28.6-28.6C704.3,1141,717,1153.8,717,1169.6z"}),n.createElement("path",{className:"st6",d:"M679.7,1171.8l7.1,8.8l17.8-17.8"})),n.createElement("path",{className:"st15",d:"M729.5,1228h-78.2c-15.3,0-27.7-12.4-27.7-27.7v-56.2c0-12.3,10-22.3,22.3-22.3h83.6 c15.3,0,27.7,12.4,27.7,27.7v50.8C757.2,1215.6,744.8,1228,729.5,1228z"}),n.createElement("line",{className:"st15",x1:690.4,y1:1313.4,x2:690.4,y2:1228.4}))),Rm||(Rm=n.createElement("g",null,n.createElement("line",{className:"st15",x1:132.6,y1:1313.4,x2:132.6,y2:1198.7}))),Dm||(Dm=n.createElement("g",null,n.createElement("g",{className:"st16"},n.createElement("path",{className:"st17",d:"M552.8,1203.1c-13,0-19.5-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.7-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.7,25.5-25.7,25.5c-13,0-19.5-13-25.8-25.5c-6.4-12.8-12.4-24.8-24.6-24.8c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9v-1.2c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c12.9,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.7-25.5,25.7-25.5c13,0,19.5,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5v1.2c-12.2,0-18.2,12.1-24.6,24.8 C572.3,1190.1,565.8,1203.1,552.8,1203.1z"})),n.createElement("g",{className:"st18"},n.createElement("path",{className:"st17",d:"M562.6,1203.1c-13,0-19.5-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.7-24.9s-18.3,12.1-24.7,24.9 c-6.3,12.5-12.7,25.5-25.7,25.5c-13,0-19.5-13-25.8-25.5c-6.4-12.8-12.4-24.8-24.6-24.8c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9v-1.2c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c12.9,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.7-25.5,25.7-25.5s19.5,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5v1.2c-12.2,0-18.2,12.1-24.6,24.8 C582.1,1190.1,575.6,1203.1,562.6,1203.1z"})),n.createElement("g",null,n.createElement("path",{className:"st17",d:"M572.4,1203.1c-13,0-19.5-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.7-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.7,25.5-25.7,25.5c-13,0-19.5-13-25.8-25.5c-6.4-12.8-12.4-24.8-24.6-24.8c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9v-1.2c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c12.9,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.7-25.5,25.7-25.5c13,0,19.5,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5v1.2c-12.2,0-18.2,12.1-24.6,24.8 C591.9,1190.1,585.4,1203.1,572.4,1203.1z"})),n.createElement("path",{className:"st15",d:"M532.1,1228H271.7c-15.3,0-27.7-12.4-27.7-27.7v-50.8c0-15.3,12.4-27.7,27.7-27.7h260.5 c15.3,0,27.7,12.4,27.7,27.7v50.8C559.8,1215.6,547.4,1228,532.1,1228z"}),n.createElement("line",{className:"st15",x1:412.3,y1:1313.4,x2:412.3,y2:1228.4}))),Am||(Am=n.createElement("g",null,n.createElement("ellipse",{transform:"matrix(0.9833 -0.1818 0.1818 0.9833 -212.1949 36.6854)",className:"st14",cx:94,cy:1175.7,rx:17.6,ry:17.6}),n.createElement("path",{className:"st6",d:"M172.5,1154c12,0,21.7,9.7,21.7,21.7c0,12-9.7,21.7-21.7,21.7l-81.2,0c-12,0-21.7-9.7-21.7-21.7 c0-12,9.7-21.7,21.7-21.7L172.5,1154z"}))),Hm||(Hm=n.createElement("line",{className:"st6",x1:1325.7,y1:855.8,x2:1305.1,y2:855.8})),Fm||(Fm=n.createElement("line",{className:"st6",x1:1119.3,y1:855.8,x2:1098.7,y2:855.8})),Bm||(Bm=n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("line",{className:"st19",x1:2281.2,y1:970.6,x2:2035.3,y2:970.6}))))),n.createElement("g",null,n.createElement("rect",{x:2057.1,y:908.7,transform:"matrix(-1.836970e-16 1 -1 -1.836970e-16 3203.5029 -1113.0746)",className:"st6",width:202.3,height:273.1}),n.createElement("rect",{x:2035.3,y:957.6,className:"st6",width:246,height:175.3})),n.createElement("polygon",{className:"st19",points:"2209.8,1175.4 2202.2,1146.4 2160.8,1146.4 2155.7,1146.4 2114.4,1146.4 2106.7,1175.4 2097.7,1175.4 2097.7,1183.4 2158.3,1183.4 2218.9,1183.4 2218.9,1175.4 "})))),zm||(zm=n.createElement("g",null,n.createElement("path",{className:"st6",d:"M1193.8,192c7.2,0,13.1-5.8,13.1-13.1c0-7.2-5.8-13.1-13.1-13.1c-7.2,0-13.1,5.8-13.1,13.1 C1180.7,186.2,1186.6,192,1193.8,192z"}),n.createElement("path",{className:"st6",d:"M1229.1,192c7.2,0,13.1-5.8,13.1-13.1c0-7.2-5.8-13.1-13.1-13.1c-7.2,0-13.1,5.8-13.1,13.1 C1216.1,186.2,1221.9,192,1229.1,192z"}),n.createElement("path",{className:"st6",d:"M1264,204.2c-1.9,30.3-24.5,54.3-52.1,54.3c-27.7,0-50.4-24.1-52.1-54.6c-0.1-1.2-0.1-2.5-0.1-3.8 c0-9.3,2-18.1,5.4-25.9c0-0.7-0.1-1.4-0.1-2.1c0-3.8,0.5-7.5,1.3-11.1c5-20.3,23.3-35.4,45.1-35.4c21.8,0,40.1,15.1,45.1,35.3 c-0.1,0-0.1,0-0.2,0"}),n.createElement("path",{className:"st6",d:"M1244.3,218c-8.4,8.4-20,13.6-32.9,13.6c-11.9,0-22.8-4.5-31.1-11.9"}),n.createElement("path",{className:"st10",d:"M1204.2,206.2c1.7,0,3.1-1.4,3.1-3.1c0-1.7-1.4-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1 C1201.1,204.9,1202.5,206.2,1204.2,206.2z"}),n.createElement("path",{className:"st10",d:"M1219.5,206.2c1.7,0,3.1-1.4,3.1-3.1c0-1.7-1.4-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1 C1216.5,204.9,1217.8,206.2,1219.5,206.2z"}),n.createElement("path",{className:"st10",d:"M1194.7,182.4c1.7,0,3.1-1.4,3.1-3.1c0-1.7-1.4-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1 C1191.6,181,1193,182.4,1194.7,182.4z"}),n.createElement("path",{className:"st10",d:"M1228.7,182.4c1.7,0,3.1-1.4,3.1-3.1c0-1.7-1.4-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1 C1225.6,181,1227,182.4,1228.7,182.4z"}),n.createElement("path",{className:"st6",d:"M1165,174.2c-3.5,7.8-5.4,16.6-5.4,25.9c0,1.3,0,2.5,0.1,3.8c-8.2-3.3-13.9-11.3-13.9-20.7 c0-11.7,9-21.3,20.5-22.2c-0.9,3.5-1.3,7.3-1.3,11.1C1165,172.8,1165,173.5,1165,174.2z"}),n.createElement("path",{className:"st6",d:"M1278.7,183.2c0,9.7-6.1,17.9-14.7,21c0.1-1.3,0.1-2.7,0.1-4.1c0-9.9-2.2-19.3-6.2-27.5c0-0.2,0-0.4,0-0.5 c0-3.8-0.5-7.6-1.3-11.1C1268.8,161,1278.7,171,1278.7,183.2z"}),n.createElement("path",{className:"st6",d:"M1178.5,139.4c3.5-3.8,8.4-6.1,14-6.1c10.5,0,19,8.5,19,19"}),n.createElement("path",{className:"st6",d:"M1211.5,152.3c0-10.5,8.5-19,19-19c5.2,0,9.9,2.1,13.4,5.5"}),n.createElement("path",{className:"st7",d:"M1295,135.6h11.1c14,0,14.3,11.4,14.3,25.4v9.8c0,14-0.3,25.4-14.3,25.4H1295"}),n.createElement("path",{className:"st7",d:"M1130.1,196.2H1119c-14,0-14.3-11.4-14.3-25.4V161c0-14,0.3-25.4,14.3-25.4h11.1"}),n.createElement("path",{className:"st7",d:"M1286.5,163.4c0,0,2.3-40.5-76.5-40.5c-73.3,0-70,40-70,40l4.1,62.2c0.7,0.7-1.9-2.7-2.8-4 c-0.1-0.1-0.2-0.2-0.2-0.3c-1-1.5-2-3-2.9-4.6c-3.7-6.2-6.6-13-8.8-20c-2.7-8.9-4.2-18.4-4.2-28.3c0-50.7,38.8-91.7,86.8-91.7 c47.9,0,86.7,41,86.7,91.7c0,17.8-5.6,38-13,48.4L1286.5,163.4z"}),n.createElement("path",{className:"st20",d:"M1286.5,163.4l-0.9,52.8c-3.4,6-4.9,7.7-7.7,11.1c-15.9,19.7-39.6,32.3-66,32.3c-26.4,0-50.1-12.5-65.9-32.3 c-0.6-0.7-1.2-1.5-1.8-2.3l-4.1-62.2c0,0-3.3-40,70-40C1288.8,123,1286.5,163.4,1286.5,163.4z"}),n.createElement("path",{className:"st20",d:"M1138.1,216.3c0.9,1.5,1.9,3,2.9,4.6c0.1,0.1,0.1,0.2,0.2,0.3c0.9,1.4,1.9,2.7,2.8,4"}),n.createElement("path",{className:"st7",d:"M1300.1,241.5c0,24-39.1,43.6-87.3,43.6c-48.2,0-87.2-19.5-87.2-43.6c0-10.5,7.7-13.8,20.2-14.1 c15.9,19.7,39.5,32.3,65.9,32.3c26.4,0,50.1-12.6,66-32.3C1291.7,227.3,1300.1,230.2,1300.1,241.5z"}))),Vm||(Vm=n.createElement("g",null,n.createElement("circle",{className:"st21",cx:571.9,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:571.9,cy:1598.6,r:11.2}),n.createElement("circle",{className:"st21",cx:571.9,cy:1432.5,r:11.2}),n.createElement("circle",{className:"st21",cx:492.6,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:492.6,cy:1598.6,r:11.2}),n.createElement("circle",{className:"st21",cx:492.6,cy:1432.5,r:11.2}),n.createElement("circle",{className:"st21",cx:410.8,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:324,cy:1601,r:11.2}),n.createElement("circle",{className:"st21",cx:324,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:237.2,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:237.2,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:237.2,cy:1598.6,r:11.2}),n.createElement("circle",{className:"st21",cx:324,cy:1432.5,r:11.2}),n.createElement("circle",{className:"st21",cx:410.8,cy:1598.6,r:11.2}),n.createElement("circle",{className:"st21",cx:410.8,cy:1432.5,r:11.2}),n.createElement("circle",{className:"st21",cx:237.2,cy:1432.5,r:11.2}),n.createElement("line",{className:"st21",x1:571.9,y1:1432.5,x2:500,y2:1432.5}),n.createElement("line",{className:"st21",x1:490.1,y1:1516.7,x2:573.2,y2:1599.8}),n.createElement("line",{className:"st21",x1:410.8,y1:1598.6,x2:569.5,y2:1598.6}),n.createElement("line",{className:"st21",x1:410.8,y1:1514.3,x2:324,y2:1601}))),Tm||(Tm=n.createElement("g",null,n.createElement("ellipse",{transform:"matrix(0.9846 -0.1747 0.1747 0.9846 -246.14 217.8016)",className:"st14",cx:1114.1,cy:1507.1,rx:51.6,ry:51.6}),n.createElement("path",{className:"st6",d:"M1344.2,1443.6c35,0,63.5,28.4,63.5,63.5c0,35-28.4,63.5-63.5,63.5l-238,0c-35,0-63.5-28.4-63.5-63.5 c0-35,28.4-63.5,63.5-63.5L1344.2,1443.6z"}))),Wm||(Wm=n.createElement("g",null,n.createElement("path",{className:"st7",d:"M1809,1038.5c16.8,20.8,18.7,51,2.8,74.2c-19.5,28.3-58.1,35.4-86.4,16c-28.2-19.5-35.4-58.1-16-86.4 c15.8-22.9,44.2-32,69.4-24.2"}),n.createElement("path",{className:"st10",d:"M1788.7,1027.4c1.7-2.4,4.9-3,7.4-1.4c2.4,1.6,3,4.9,1.4,7.3l-31.5,45.7c-1.7,2.4-4.9,3-7.3,1.4 c-2.4-1.6-3-4.9-1.4-7.3L1788.7,1027.4z"}),n.createElement("path",{className:"st7",d:"M1799.7,1326.1c-20.8,16.8-51,18.7-74.2,2.8c-28.3-19.5-35.4-58.1-16-86.4c19.5-28.2,58.1-35.4,86.4-16 c22.9,15.8,32,44.2,24.2,69.4"}),n.createElement("path",{className:"st10",d:"M1810.8,1305.8c2.4,1.7,3,4.9,1.4,7.4c-1.6,2.4-4.9,3-7.3,1.4l-45.7-31.5c-2.4-1.7-3-4.9-1.4-7.3 c1.6-2.4,4.9-3,7.3-1.4L1810.8,1305.8z"}),n.createElement("path",{className:"st7",d:"M1721.6,1429.5c20.8-16.8,51-18.7,74.2-2.8c28.3,19.5,35.4,58.1,16,86.4c-19.5,28.2-58.1,35.4-86.4,16 c-22.9-15.8-31.9-44.2-24.2-69.4"}),n.createElement("path",{className:"st10",d:"M1710.5,1449.8c-2.4-1.7-3-4.9-1.4-7.4c1.6-2.4,4.9-3,7.3-1.4l45.7,31.5c2.4,1.7,3,4.9,1.4,7.3 c-1.6,2.4-4.9,3-7.3,1.4L1710.5,1449.8z"}))),Um||(Um=n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st6",d:"M461.9,721.2c-3.2-1.8-6.3-3.8-9.2-6.1l-23.6,4.7l-15-25l14.5-17.9c-2.3-9.5-2.5-19.7-0.6-29.7l-14.6-17.2 l14.4-25.1l22.2,3.9c7.3-6.5,15.9-11.4,25-14.1l7.7-21.6l29.2-0.2l8.1,22.7c3.7,1.2,7.3,3.1,10.7,5c3.2,1.8,6.3,3.8,9.2,6.1 l23.6-4.7l15,25l-14.5,17.9c2.3,9.5,2.5,19.7,0.6,29.7l14.6,17.2L564.7,717l-22.2-3.9c-7.3,6.5-15.9,11.4-25,14.1l-7.7,21.6 l-29.2,0.2l-8.1-22.7C469,725.1,465.4,723.2,461.9,721.2z"}),n.createElement("path",{className:"st14",d:"M461.3,640.6c11.1-19.4,36-26.3,55.5-15.1c19.6,11.2,26.1,35.9,14.9,55.4c-11.2,19.6-36,26.3-55.4,15.2 C457,685.1,450.2,660.1,461.3,640.6z"})),n.createElement("g",null,n.createElement("path",{className:"st7",d:"M317.1,818.9c-1.8-1.5-3.4-3.2-4.9-4.9l-15,0.2l-6.2-17.2l11.1-9.3c-0.3-6,0.7-12.5,3.2-18.2l-7-12.4 l11.9-13.8l13.3,5c5.2-3.2,11.1-5.1,16.9-5.9l7.2-12.3l17.8,3.4l2.4,14.9c2.1,1.2,4.1,2.6,6.1,4.3c1.8,1.5,3.4,3.2,4.8,4.7 l15-0.2l6.2,17.2l-11.1,9.3c0.3,6-0.7,12.5-3.2,18.2l7,12.4l-11.9,13.8l-13.3-5c-5.2,3.2-11.1,5.1-17.1,5.7l-7.2,12.3l-17.9-3.6 l-2.4-14.9C321.1,822,319.1,820.5,317.1,818.9z"}),n.createElement("path",{className:"st10",d:"M330.3,774.5c6.8-7.9,18.8-8.8,26.7-2c7.9,6.8,8.8,18.8,2,26.7c-6.8,7.9-18.8,8.8-26.7,2 S323.5,782.4,330.3,774.5z"})),n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st7",d:"M250.6,778.9c-0.7,30.2,13.2,57.4,35.1,74.7"}),n.createElement("g",null,n.createElement("polygon",{className:"st14",points:"275.4,855.6 275.3,853.6 285.1,853.1 283.8,843.3 285.8,843 287.4,854.9 "})))),n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st7",d:"M622.1,672.2c10.7-48.4-18.7-96.9-66.7-109.7"}),n.createElement("g",null,n.createElement("polygon",{className:"st14",points:"564,556.6 564.9,558.4 556.1,562.8 561.2,571.3 559.5,572.3 553.3,562 "})))))),Zm||(Zm=n.createElement("g",null,n.createElement("path",{className:"st6",d:"M2189.5,1641.2c93.1,0,168.5-75.4,168.5-168.5c0-93-75.5-168.4-168.5-168.4c-93.1,0-168.5,75.4-168.5,168.4 C2020.9,1565.8,2096.4,1641.2,2189.5,1641.2z"}),n.createElement("g",null,n.createElement("circle",{className:"st14",cx:2236.6,cy:1390,r:20.7}),n.createElement("line",{className:"st6",x1:2215.6,y1:1467.4,x2:2215.6,y2:1534.3}),n.createElement("path",{className:"st6",d:"M2116.5,1488.6"}),n.createElement("path",{className:"st6",d:"M2165.8,1517.5c-30.9,0-45.9-15.8-45.9-34c-5.5-3-17.1-8.1-17.1-8.1s23-25.3,23-45.9"}),n.createElement("circle",{className:"st6",cx:2147.2,cy:1449.2,r:17.8}),n.createElement("g",null,n.createElement("line",{className:"st6",x1:2164.2,y1:1443.7,x2:2207.1,y2:1443.7})),n.createElement("path",{className:"st14",d:"M2236.2,1407.5v73.9l-29.1,14.1v-36.7c1.4,1,3.2,1.6,5.1,1.6c4.8,0,8.7-3.9,8.7-8.7c0-4.8-3.9-8.7-8.7-8.7 c-1.9,0-3.7,0.6-5.1,1.6V1405l-107.7,17.7c0-36.5,29.6-66.1,66.1-66.1c28,0,52,17.4,61.6,42 C2229.9,1406.1,2236.2,1407.5,2236.2,1407.5z"}),n.createElement("g",null,n.createElement("path",{className:"st6",d:"M2179.5,1549.3"})),n.createElement("circle",{className:"st10",cx:2140.8,cy:1447,r:3.4})))),Gm||(Gm=n.createElement("g",null,n.createElement("line",{className:"st22",x1:2138.5,y1:573.7,x2:2138.5,y2:819.3}),n.createElement("line",{className:"st22",x1:2190,y1:573.7,x2:2190,y2:819.3}),n.createElement("circle",{className:"st10",cx:2138.5,cy:631.5,r:14.1}),n.createElement("circle",{className:"st10",cx:2190,cy:714,r:14.1}))),qm||(qm=n.createElement("g",null,n.createElement("path",{className:"st6",d:"M1617.7,285.4h698.9"}),n.createElement("path",{className:"st6",d:"M2316.6,374.3H2240V196.2h76.6"}),n.createElement("path",{className:"st10",d:"M2337.9,216.2c11.9,0,21.6-9,21.6-20.2s-9.6-20.2-21.6-20.2s-21.6,9-21.6,20.2 C2316.6,207.4,2326.3,216.2,2337.9,216.2z"}),n.createElement("path",{className:"st14",d:"M2337.9,305.3c11.9,0,21.6-9,21.6-20c0-11.2-9.6-20.2-21.6-20.2s-21.6,9-21.6,20.2 C2316.6,296.3,2326.3,305.3,2337.9,305.3z"}),n.createElement("path",{className:"st10",d:"M2337.9,394.5c11.9,0,21.6-9,21.6-20.2c0-11.2-9.6-20.2-21.6-20.2s-21.6,9-21.6,20.2 C2316.6,385.5,2326.3,394.5,2337.9,394.5z"}))),Ym||(Ym=n.createElement("g",null,n.createElement("path",{className:"st7",d:"M258.5,287.5l-17.8,16.2L207.9,283l-37.3,30.5c0,0-26.2,19.3-26.2,34.3c26.2,0,177.2,0,177.2,0 c0-17.7-21.3-30.9-21.3-30.9L258.5,287.5z"}),n.createElement("path",{className:"st14",d:"M242.3,303.5l-45.1,43.4l-52.8,0.9c0,0-0.2-10.6,11.2-21s52.3-43.8,52.3-43.8L242.3,303.5z"}))),Km||(Km=n.createElement("g",null,n.createElement("path",{className:"st7",d:"M2165.3,1528.7l17.8,16.2l32.8-20.8l37.3,30.5c0,0,26.2,19.3,26.2,34.3c-26.2,0-177.2,0-177.2,0 c0-17.7,21.3-30.9,21.3-30.9L2165.3,1528.7z"}),n.createElement("path",{className:"st14",d:"M2181.5,1544.7l45.1,43.4l52.8,0.9c0,0,0.2-10.6-11.2-21c-11.4-10.4-52.3-43.8-52.3-43.8L2181.5,1544.7z"})))))}var tb=n.forwardRef(eb),ab=(a.p,a(354)),nb=a.n(ab),rb=D.a.bind(nb.a);function cb(){var e=Object(n.useState)({username:"",password:""}),t=Object(o.a)(e,2),a=(t[0],t[1]),r=function(e){return function(t){a((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}};return Object(He.jsxs)("section",{className:rb("wrapper"),children:[Object(He.jsxs)("div",{className:rb("login"),children:[Object(He.jsx)("div",{className:rb("kicker"),children:Object(He.jsx)(Jm,{})}),Object(He.jsxs)("div",{className:rb("header"),children:[Object(He.jsx)("h1",{className:rb("title"),children:"Sign in using your Gogs credentials."}),Object(He.jsx)("span",{className:rb("title-sub"),children:"\u4f7f\u7528\u60a8\u7684Gogs\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5f55"})]}),Object(He.jsxs)(ii,{className:rb("form"),method:"POST",action:"/login",children:[Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Username",name:"username",width:"100%",type:"text",required:!0,onChange:r("username")})}),Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Password",name:"password",width:"100%",type:"password",autoComplete:"current-password",required:!0,onChange:r("password")})}),Object(He.jsx)(li,{children:Object(He.jsx)(Ye,{theme:"primary",type:"submit",className:rb("btn","btn-sign-in"),children:"Sign in"})})]})]}),Object(He.jsx)("div",{className:rb("illustration"),children:Object(He.jsx)(tb,{})})]})}var sb=a(355),lb=a.n(sb),ib=D.a.bind(lb.a);function ob(){var e=Object(b.g)(),t=Object(n.useState)({name:"",email:"",company:""}),a=Object(o.a)(t,2),r=a[0],c=a[1],s=function(e){return function(t){c((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}},l=Object(n.useCallback)(Object(m.a)(d.a.mark((function t(){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at("/api/user",{method:"PATCH",data:r});case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.warn(t.t0.message);case 8:e.push("/");case 9:case"end":return t.stop()}}),t,null,[[0,5]])}))),[r,e]);return Object(He.jsxs)("section",{className:ib("wrapper"),children:[Object(He.jsxs)("div",{className:ib("login"),children:[Object(He.jsx)("div",{className:ib("kicker"),children:Object(He.jsx)(Jm,{})}),Object(He.jsx)("div",{className:ib("header"),children:Object(He.jsx)("h1",{className:ib("title"),children:"Complete your Drone Registration."})}),Object(He.jsxs)(ii,{className:ib("form"),onSubmit:function(e){return e.preventDefault()},children:[Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Your Email",name:"email",width:"100%",type:"email",required:!0,onChange:s("email")})}),Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Your Full Name",name:"name",width:"100%",type:"text",required:!0,onChange:s("name")})}),Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Company Name",name:"name",width:"100%",type:"text",onChange:s("company")})}),Object(He.jsx)(li,{children:Object(He.jsx)(Ye,{theme:"primary",className:ib("btn","btn-sign-in"),onClick:l,children:"Submit"})})]}),Object(He.jsxs)("div",{className:ib("legal"),children:['By clicking "Submit", you agree to our'," ",Object(He.jsx)("a",{href:"https://harness.io/privacy/",children:"Privacy Policy"})," ","and"," ",Object(He.jsx)("a",{href:"https://github.com/drone/drone/blob/master/LICENSE",children:"License"}),". See our"," ",Object(He.jsx)("a",{href:"https://docs.drone.io/enterprise/pings/",children:"documentation"})," ","to learn more about how we process your data."]})]}),Object(He.jsx)("div",{className:ib("illustration"),children:Object(He.jsx)(tb,{})})]})}var ub=a(356),db=a.n(ub),mb=D.a.bind(db.a),bb=function(e){var t,a=e.handleSubmit,r=e.handleCancel,c=e.target,s=e.parameters,l=Object(n.useState)({target:c,parameters:s}),u=Object(o.a)(l,2),d=u[0],m=u[1],b=Object(n.useState)({key:"",value:""}),p=Object(o.a)(b,2),h=p[0],j=p[1],f=function(e){return function(){return m((function(t){return Object(i.a)(Object(i.a)({},t),{},{parameters:t.parameters.filter((function(t){return t.id!==e}))})}))}},v=function(e){return function(t){j((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}};return Object(He.jsxs)(ii,{className:mb("new-build-form"),children:[Object(He.jsx)(li,{className:mb("new-build-form-column"),children:Object(He.jsx)(oi.Input,{label:"Branch",placeholder:"",value:d.target,name:"branch",onChange:(t="target",function(e){m((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},t,e.target.value.trim()))}))})})}),Object(He.jsxs)(li,{title:"Parameters",className:mb("new-build-form-column"),children:[d.parameters.length?Object(He.jsx)("div",{className:mb("new-build-form-parameters-list"),children:d.parameters.map((function(e){var t=e.key,a=e.value,n=e.id;return Object(He.jsxs)("div",{className:mb("new-build-form-parameters"),children:[Object(He.jsx)(oi.Input,{value:t,name:t,readOnly:!0}),Object(He.jsx)(oi.Input,{name:a,value:a,readOnly:!0}),Object(He.jsx)(Ye,{theme:"plain",type:"button",onClick:f(n),children:"Remove"})]},n)}))}):null,Object(He.jsxs)("div",{className:mb("new-build-form-parameters-fields"),children:[Object(He.jsx)(oi.Input,{name:"newKey",placeholder:"key",value:h.key,onChange:v("key")}),Object(He.jsx)(oi.Input,{name:"newVal",placeholder:"value",value:h.value,onChange:v("value")}),Object(He.jsx)(Ye,{theme:"plain",type:"button",onClick:function(){h.key&&h.value&&(m((function(e){return Object(i.a)(Object(i.a)({},e),{},{parameters:[].concat(Object(Ke.a)(e.parameters),[Object(i.a)(Object(i.a)({},h),{},{id:Date.now()})])})})),j({key:"",value:""}))},children:"+ Add"})]})]}),Object(He.jsxs)(li,{className:mb("new-build-form-controls"),children:[Object(He.jsx)(Ye,{theme:"primary",type:"submit",onClick:function(e){e.preventDefault(),a(d),r()},children:"Create"}),Object(He.jsx)(Ye,{theme:"primary",type:"button",onClick:r,children:"Cancel"})]})]})};bb.defaultProps={target:"",parameters:[]};var pb,hb,jb=bb,fb=["title","titleId"];function vb(){return vb=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function gb(e,t){var a=e.title,r=e.titleId,c=Ob(e,fb);return n.createElement("svg",vb({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-plus",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,pb||(pb=n.createElement("line",{x1:12,y1:5,x2:12,y2:19})),hb||(hb=n.createElement("line",{x1:5,y1:12,x2:19,y2:12})))}var _b,xb,wb,yb,Nb=n.forwardRef(gb),kb=(a.p,a(357)),Eb=a.n(kb),Cb=D.a.bind(Eb.a),Sb=function(e){var t=e.isRepoNavDisabled,a=e.namespace,n=e.name,r=e.displaySettings,c=[{to:"/".concat(a,"/").concat(n),exact:!0,label:"Builds",tag:t?"span":l.c},{to:"/".concat(a,"/").concat(n,"/branches"),exact:!0,label:"Branches",tag:t?"span":l.c},{to:"/".concat(a,"/").concat(n,"/deployments"),exact:!0,label:"Deployments",tag:t?"span":l.c},{to:"/".concat(a,"/").concat(n,"/settings"),label:"Settings",tag:l.c}];return r?c:c.slice(0,c.length-1)},Lb=function(e){var t=e.user,a=Object(b.j)().params,r=a.namespace,c=a.name,s=Object(n.useContext)(kt),i=Object(o.a)(s,1)[0].isRepoNavDisabled,u=Object(b.h)().search,p=new URLSearchParams(u),h="",j=[];try{h=p.get("target")||"",j=p.get("parameters")?JSON.parse(p.get("parameters")):[]}catch(I){console.warn("Invalid query parameters",I)}var f=Ps(!!p.get("target")),v=Object(o.a)(f,2),O=v[0],g=v[1],_=Ht({namespace:r,name:c}),x=_.data,w=_.isLoading,y=_.isError,N=Object(n.useMemo)((function(){var e,a;return null!==(e=null===x||void 0===x||null===(a=x.permissions)||void 0===a?void 0:a.write)&&void 0!==e&&e||(null===t||void 0===t?void 0:t.admin)}),[x,t]),k=K(),E=k.showError,C=k.showSuccess,L=Object(n.useMemo)((function(){return Object(He.jsx)("nav",{className:Cb("tabs"),children:Sb({isRepoNavDisabled:i,namespace:r,name:c,displaySettings:N}).map((function(e){return"span"===e.tag?Object(He.jsx)("span",{className:Cb("tab","tab-disabled"),children:e.label},e.label):Object(He.jsx)(l.c,{className:Cb("tab"),activeClassName:Cb("tab-active"),exact:e.exact,to:e.to,children:e.label},e.to)}))})}),[i,r,c,N]),M=g,P=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(t){var a,n,s,l,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new URLSearchParams,t.target&&n.set("branch",t.target),t.commit&&n.set("commit",t.commit),(null===(a=t.parameters)||void 0===a?void 0:a.length)&&t.parameters.forEach((function(e){n.set(e.key,e.value)})),s=n.toString(),l="/api/repos/".concat(r,"/").concat(c,"/builds").concat(s.length?"?".concat(s):""),e.prev=6,e.next=9,at(l,{method:"POST"});case 9:i=e.sent,C("New build has started successfully"),Pt(window.location.pathname,x,i),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(6),E("Unable to start a new build: ".concat(e.t0.message)),console.warn(e.t0.message);case 18:case"end":return e.stop()}}),e,null,[[6,14]])})));return function(t){return e.apply(this,arguments)}}(),[c,r,E,C,x]);return w?null:"Not Found"===(null===y||void 0===y?void 0:y.message)||"Unauthorized"===(null===y||void 0===y?void 0:y.message)?Object(He.jsx)(ol,{user:t}):Object(He.jsxs)(b.d,{children:[Object(He.jsx)(b.b,{path:["/:namespace/:name","/:namespace/:name/deployments","/:namespace/:name/branches","/:namespace/:name/settings*"],exact:!0,children:Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("header",{className:Cb("header"),children:[Object(He.jsxs)("div",{className:Cb("inner"),children:[Object(He.jsxs)(Wo,{className:Cb("breadcrumb"),children:[Object(He.jsx)(Uo,{href:"/",text:"Repositories"}),Object(He.jsx)(Zo,{})]}),Object(He.jsx)("h1",{children:c})]}),!i&&N&&Object(He.jsx)(Ye,{theme:"primary",className:Cb("new-build-btn"),icon:Object(He.jsx)(Nb,{}),onClick:M,children:"New Build"})]}),L,Object(He.jsxs)(b.d,{children:[Object(He.jsx)(dh.Branches,{path:"/:namespace/:name/branches",componentProps:{user:t,repo:x},visibility:S,exact:!0}),Object(He.jsx)(dh.Deployments,{path:"/:namespace/:name/deployments",componentProps:{user:t,repo:x},visibility:S,exact:!0}),Object(He.jsx)(dh.Settings,{path:"/:namespace/:name/settings*",componentProps:{user:t,repo:x},visibility:S}),Object(He.jsx)(dh.Builds,{path:"/:namespace/:name",componentProps:{user:t,repo:x},visibility:S,exact:!0})]}),Object(He.jsx)(Is,{title:"Create a New Build",isShowing:O,hide:g,children:Object(He.jsx)(jb,{handleSubmit:P,handleCancel:g,target:h,parameters:j})})]})}),Object(He.jsx)(dh.Build,{path:"/:namespace/:name/:build/:stage?/:step?",componentProps:{user:t,userIsAdminOrHasWritePerm:N},visibility:S})]})},Mb=a(358),Pb=a.n(Mb),Ib=D.a.bind(Pb.a),Rb=[{key:"Markdown",value:"markdown"},{key:"Markup",value:"markup"},{key:"CCMenu",value:"cc"}];function Db(){var e=Object(b.i)(),t=e.namespace,a=e.name,r=Object(n.useState)(!1),c=Object(o.a)(r,2),s=c[0],l=c[1],u=Object(n.useState)({branch:"",snippetSyntax:"markdown"}),d=Object(o.a)(u,2),m=d[0],p=d[1],h=function(e,t,a,n){var r=e?"?ref=refs/heads/".concat(e):"";return"".concat(t,"/api/badges/").concat(n,"/").concat(a,"/status.svg").concat(r)}(m.branch,f,a,t),j=Object(n.useMemo)((function(){return function(e){var t=e.syntax,a=e.image,n=e.namespace,r=e.name;switch(t){case"markup":return'\n \n');case"cc":return"".concat(f,"/").concat(n,"/").concat(r,"/cc.xml");default:return"[![Build Status](".concat(a,")](").concat(f,"/").concat(n,"/").concat(r,")")}}({syntax:m.snippetSyntax,image:h,namespace:t,name:a})}),[m.snippetSyntax,h,t,a]);return Object(n.useEffect)((function(){var e;return s&&(e=setTimeout((function(){l(!1)}),2e3)),function(){return clearTimeout(e)}}),[s]),Object(n.useEffect)((function(){l(!1)}),[m]),Object(He.jsx)("div",{className:Ib("wrapper"),children:Object(He.jsxs)("div",{className:Ib("inner"),children:[Object(He.jsx)("img",{alt:"badge",src:h}),Object(He.jsxs)(ii,{className:Ib("group"),children:[Object(He.jsxs)("div",{className:Ib("group","group-badge"),children:[Object(He.jsx)(oi.Select,{label:"Syntax",name:"syntax",value:m.snippetSyntax,optionsList:Rb,width:260,onChange:function(e){var t=e.target;p((function(e){return Object(i.a)(Object(i.a)({},e),{},{snippetSyntax:t.value})}))}}),Object(He.jsx)(oi.Input,{label:"Branch",name:"branch",placeholder:"master",value:m.branch,width:260,onChange:function(e){var t=e.target;p((function(e){return Object(i.a)(Object(i.a)({},e),{},{branch:t.value.trim()})}))}})]}),Object(He.jsxs)("pre",{className:Ib("badge-snippet"),children:[Object(He.jsx)(ea.CopyToClipboard,{text:j,onCopy:function(){l(!0)},children:Object(He.jsx)(Ye,{className:Ib("copy-btn"),type:"button",children:s?"Copied!":Object(He.jsx)(ca,{})})}),Object(He.jsx)("code",{children:j})]})]})]})})}var Ab=["title","titleId"];function Hb(){return Hb=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Bb(e,t){var a=e.title,r=e.titleId,c=Fb(e,Ab);return n.createElement("svg",Hb({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-trash-2",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,_b||(_b=n.createElement("polyline",{points:"3 6 5 6 21 6"})),xb||(xb=n.createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})),wb||(wb=n.createElement("line",{x1:10,y1:11,x2:10,y2:17})),yb||(yb=n.createElement("line",{x1:14,y1:11,x2:14,y2:17})))}var zb,Vb,Tb=n.forwardRef(Bb),Wb=(a.p,a(359)),Ub=a.n(Wb),Zb=D.a.bind(Ub.a),Gb=["@hourly","@daily","@weekly","@monthly","@yearly"].map((function(e){return{key:e,value:e}})),qb=function(e){var t=e.handleSubmit,a=e.handleCancel,r=Object(n.useState)({name:"",branch:"",expr:Gb[0].value}),c=Object(o.a)(r,2),s=c[0],l=c[1],u=function(e){return function(t){l((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value))}))}};return Object(He.jsxs)(ii,{className:Zb("container","form"),children:[Object(He.jsxs)(li,{className:Zb("group","group-fields"),children:[Object(He.jsx)(oi.Input,{label:"Name",value:s.name,name:"cron-name",width:350,autoFocus:"true",onChange:u("name")}),Object(He.jsx)(oi.Input,{label:"Branch",value:s.branch,placeholder:"master",name:"cron-branch",width:350,onChange:u("branch")}),Object(He.jsx)(oi.Select,{label:"Schedule",value:s.expr,optionsList:Gb,width:350,onChange:u("expr")})]}),Object(He.jsxs)(li,{className:Zb("controls"),children:[Object(He.jsx)(Ye,{onClick:function(){t(s),a()},children:"Create"}),Object(He.jsx)(Ye,{onClick:a,children:"Cancel"})]})]})};function Yb(){var e=Object(b.i)(),t=e.namespace,a=e.name,r=Ps(),c=Object(o.a)(r,2),s=c[0],l=c[1],u=function(e){var t=e.namespace,a=e.name;return St("/api/repos/".concat(t,"/").concat(a,"/cron"))}({namespace:t,name:a}),p=u.data,h=u.isLoading,j=u.mutate,f=K(),v=f.showSuccess,O=f.showError,g=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(n){var r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/repos/".concat(t,"/").concat(a,"/cron"),{method:"POST",data:Object(i.a)(Object(i.a)({},n),{},{branch:n.branch||"master"})});case 3:r=e.sent,j((function(e){return e.concat(r)}),!1),v("Cron has been added successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),O(e.t0.message),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),[t,a,j,v,O]),_=null;return _=h?null:p.length?Object(He.jsx)(Kb,{crons:p,handleRemove:function(e){return Object(m.a)(d.a.mark((function n(){return d.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!confirm("Are you sure you want to remove cron job?")){n.next=13;break}return n.prev=2,n.next=5,at("/api/repos/".concat(t,"/").concat(a,"/cron/").concat(e),{method:"DELETE"});case 5:v("Cron has been removed successfully"),j(p.filter((function(t){return t.name!==e})),!1),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),O(n.t0.message),console.warn(n.t0.message);case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))}}):Object(He.jsxs)("div",{className:Zb("zero"),children:[Object(He.jsx)("h2",{children:"No Cron Jobs"}),Object(He.jsx)("p",{children:"You can create cron jobs to schedule pipeline executions on a recurring basis."})]}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Zb("wrapper"),children:Object(He.jsx)("div",{className:Zb("card"),children:h?null:Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Zb("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:Zb("btn-new"),icon:Object(He.jsx)(Nb,{}),onClick:l,children:"New Cron Job"})}),_]})})}),Object(He.jsx)(Is,{title:"Create a New Cron Job",isShowing:s,hide:l,children:Object(He.jsx)(qb,{handleSubmit:g,handleCancel:l})})]})}function Kb(e){var t;return Object(He.jsxs)("div",{className:Zb("cron-list-wrapper"),children:[Object(He.jsxs)("div",{className:Zb("cron-list-header"),children:[Object(He.jsx)("div",{children:"Name"}),Object(He.jsx)("div",{children:"Branch"}),Object(He.jsx)("div",{children:"Schedule"}),Object(He.jsx)("div",{children:"Next Execution"}),Object(He.jsx)("div",{})]}),Object(He.jsx)("div",{className:Zb("cron-list"),children:null===e||void 0===e||null===(t=e.crons)||void 0===t?void 0:t.map((function(t){return Object(He.jsx)(Jb,{data:t,onRemove:e.handleRemove},t.id)}))})]})}function Jb(e){var t=e.data,a=e.onRemove;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:Zb("cron-list-item"),children:[Object(He.jsx)("div",{children:t.name}),Object(He.jsx)("div",{children:t.branch}),Object(He.jsx)("div",{children:t.expr}),Object(He.jsx)("div",{children:t.next&&new Date(1e3*t.next).toLocaleString()}),Object(He.jsx)("div",{children:Object(He.jsx)(Ye,{onClick:a(t.name),children:Object(He.jsx)(Tb,{})})})]})})}var Qb=["title","titleId"];function Xb(){return Xb=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ep(e,t){var a=e.title,r=e.titleId,c=$b(e,Qb);return n.createElement("svg",Xb({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-slash",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,zb||(zb=n.createElement("circle",{cx:12,cy:12,r:10})),Vb||(Vb=n.createElement("line",{x1:4.93,y1:4.93,x2:19.07,y2:19.07})))}var tp=n.forwardRef(ep),ap=(a.p,a(360)),np=a.n(ap),rp=D.a.bind(np.a);function cp(e){var t=e.user,a=e.repo,r=Object(b.i)(),c=r.namespace,s=r.name,l=Ht({namespace:c,name:s}).mutate,u=K(),p=u.showError,h=u.showSuccess,j=Object(n.useState)(null),f=Object(o.a)(j,2),v=f[0],O=f[1];Object(n.useLayoutEffect)((function(){a&&O(rt(a)(["ignore_pull_requests","ignore_forks","protected","trusted","visibility","timeout","config_path","auto_cancel_pull_requests","auto_cancel_pushes","auto_cancel_running"]))}),[a]);var _,x=function(){var e=Object(m.a)(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm("Are you sure you want to disable this repo?")){e.next=13;break}return e.prev=2,e.next=5,at("/api/repos/".concat(c,"/").concat(s),{method:"DELETE"});case 5:l(),h("Repo has been disabled"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),p("Unable to disable repo: ".concat(e.t0.message)),console.warn(e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=Object(m.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/repos/".concat(c,"/").concat(s),{method:"PATCH",data:Object(i.a)(Object(i.a)({},v),{},{timeout:+v.timeout})});case 3:t=e.sent,l(t),h("Changes have been saved"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),p("Unable to save changes: ".concat(e.t0.message)),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),y=function(e){return function(t){switch(e){case"ignore_pull_requests":case"ignore_forks":case"protected":case"trusted":case"auto_cancel_running":O((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(z.a)({},e,!t[e]))}));break;case"auto_cancel_pull_requests":O((function(t){var a;return Object(i.a)(Object(i.a)({},t),{},(a={},Object(z.a)(a,e,!t[e]),Object(z.a)(a,"auto_cancel_running",!!t.auto_cancel_pushes&&t.auto_cancel_running),a))}));break;case"auto_cancel_pushes":O((function(t){var a;return Object(i.a)(Object(i.a)({},t),{},(a={},Object(z.a)(a,e,!t[e]),Object(z.a)(a,"auto_cancel_running",!!t.auto_cancel_pull_requests&&t.auto_cancel_running),a))}));break;case"visibility":case"config_path":case"timeout":O((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value))}))}}};return null===v?null:Object(He.jsx)("div",{className:rp("wrapper"),children:Object(He.jsx)("div",{className:rp("inner"),children:Object(He.jsxs)(ii,{className:rp("form"),children:[Object(He.jsxs)(li,{className:rp("form-section-row"),title:"Project Webhooks",children:[Object(He.jsx)("div",{className:rp("switch-row"),children:Object(He.jsx)(pd,{id:"ignore_pull_requests",checked:v.ignore_pull_requests,onChange:y("ignore_pull_requests"),children:"Disable Pull Requests"})}),Object(He.jsx)("div",{className:rp("switch-row"),children:Object(He.jsx)(pd,{id:"ignore_forks",checked:v.ignore_forks,onChange:y("ignore_forks"),children:"Disable forks"})})]}),Object(He.jsxs)(li,{className:rp("form-section-row"),title:"Project Settings",children:[Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"protected",checked:v.protected,onChange:y("protected"),children:"Protected"}),Object(He.jsx)("p",{className:rp("note"),children:"Blocks a pipeline if the yaml signature cannot be verified."})]}),(null===t||void 0===t?void 0:t.admin)&&Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"trusted",checked:v.trusted,onChange:y("trusted"),children:"Trusted"}),Object(He.jsx)("p",{className:rp("note"),children:"Enables privileged container settings."})]}),Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"auto_cancel_pull_requests",checked:v.auto_cancel_pull_requests,onChange:y("auto_cancel_pull_requests"),children:"Auto cancel pull requests"}),Object(He.jsx)("p",{className:rp("note"),children:"Automatically cancel pending pull request builds."})]}),Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"auto_cancel_pushes",checked:v.auto_cancel_pushes,onChange:y("auto_cancel_pushes"),children:"Auto cancel pushes"}),Object(He.jsx)("p",{className:rp("note"),children:"Automatically cancel pending push builds."})]}),Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"auto_cancel_running",checked:v.auto_cancel_running,disabled:!v.auto_cancel_pull_requests&&!v.auto_cancel_pushes,onChange:y("auto_cancel_running"),children:"Auto cancel running"}),Object(He.jsx)("p",{className:rp("note"),children:"Automatically cancel running builds if newer commit pushed."})]})]})]}),Object(He.jsx)(li,{className:rp("form-section-row"),title:"Project Visibility",children:Object(He.jsxs)("ul",{className:rp("visibility-container"),children:[Object(He.jsxs)("li",{className:rp("visibility-card-wrapper"),children:[Object(He.jsxs)("div",{className:rp("visibility-card"),children:[Object(He.jsx)("h4",{children:"Private"}),Object(He.jsx)("p",{children:"Private repositories are only accessible to people you explicitly share access with."})]}),Object(He.jsx)(oi.Radio,{name:"private",checked:"private"===v.visibility,value:"private",appearance:"checkmark",onChange:y("visibility")})]}),Object(He.jsxs)("li",{className:rp("visibility-card-wrapper"),children:[Object(He.jsxs)("div",{className:rp("visibility-card"),children:[Object(He.jsx)("h4",{children:"Public"}),Object(He.jsx)("p",{children:"Public repositories are accessible to everyone on the internet."})]}),Object(He.jsx)(oi.Radio,{name:"public",value:"public",appearance:"checkmark",checked:"public"===v.visibility,onChange:y("visibility")})]}),Object(He.jsxs)("li",{className:rp("visibility-card-wrapper"),children:[Object(He.jsxs)("div",{className:rp("visibility-card"),children:[Object(He.jsx)("h4",{children:"Internal"}),Object(He.jsx)("p",{children:"Internal repositories are only accessible to authenticated users."})]}),Object(He.jsx)(oi.Radio,{name:"internal",checked:"internal"===v.visibility,value:"internal",appearance:"checkmark",onChange:y("visibility")})]})]})}),Object(He.jsxs)(li,{className:rp("form-section-row","form-section-row-is-last"),children:[Object(He.jsx)(oi.Select,{label:"Timeout",value:v.timeout,optionsList:(_=g,_.map((function(e){return{value:e,key:e>90?"".concat(e/60," hours"):"".concat(e," minutes")}}))),width:200,className:rp("timeout"),onChange:y("timeout")}),Object(He.jsx)(oi.Input,{label:"Configuration",name:"configuration",value:v.config_path,width:372,className:rp("config"),onChange:y("config_path")})]}),Object(He.jsxs)("div",{className:rp("controls"),children:[Object(He.jsx)("button",{className:rp("btn","btn-save"),type:"button",onClick:w,children:"Save Changes"}),Object(He.jsxs)("button",{className:rp("btn","btn-disable"),type:"button",onClick:x,children:[Object(He.jsx)(tp,{}),"Disable"]})]})]})})})}var sp=a(84),lp=a.n(sp),ip=D.a.bind(lp.a),op=function(e){var t=e.handleSubmit,a=e.handleCancel,r=Object(n.useState)({name:"",data:"",pull_request:!1}),c=Object(o.a)(r,2),s=c[0],l=c[1],u=function(e){return function(t){switch(e){case"name":case"data":l((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value))}));break;case"pull_request":l((function(e){return Object(i.a)(Object(i.a)({},e),{},{pull_request:t.target.checked})}))}}};return Object(He.jsxs)(ii,{className:ip("container"),children:[Object(He.jsxs)(li,{className:ip("group","group-fields"),children:[Object(He.jsx)(oi.Input,{placeholder:"Secret Name",value:s.name,label:"Name",name:"secret-name",width:350,autoFocus:!0,onChange:u("name")}),Object(He.jsx)(oi.TextArea,{label:"Value",placeholder:"Secret value",value:s.data,name:"secret-value",width:350,onChange:u("data")}),Object(He.jsx)(oi.Checkbox,{label:"Allow Pull Requests",name:"pull_request",checked:s.pull_request,onChange:u("pull_request")})]}),Object(He.jsxs)(li,{className:ip("controls"),children:[Object(He.jsx)(Ye,{onClick:function(){t(s),a()},children:"Create"}),Object(He.jsx)(Ye,{onClick:a,children:"Cancel"})]})]})},up=function(e){var t=e.secrets,a=e.handleRemove;return Object(He.jsxs)("div",{className:ip("secret-list-wrapper"),children:[Object(He.jsxs)("div",{className:ip("secret-list-header"),children:[Object(He.jsx)("div",{children:"Name"}),Object(He.jsx)("div",{children:"Pull Requests"}),Object(He.jsx)("div",{})]}),Object(He.jsx)("div",{className:ip("secret-list"),children:null===t||void 0===t?void 0:t.map((function(e){return Object(He.jsx)(dp,{data:e,onRemove:a},e.id)}))})]})},dp=function(e){var t=e.data,a=e.onRemove;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:ip("secret-list-item"),children:[Object(He.jsx)("div",{children:t.name}),Object(He.jsx)("div",{children:t.pull_request?"Enabled":"Disabled"}),Object(He.jsx)("div",{children:Object(He.jsx)(Ye,{onClick:a(t.name),children:Object(He.jsx)(Tb,{})})})]})})};up.defaultProps={secrets:[]};var mp=D.a.bind(lp.a);function bp(){var e=Object(b.i)().namespace,t=function(e){var t=e.namespace;return St("/api/secrets/".concat(t))}({namespace:e}),a=t.data,r=t.isLoading,c=t.mutate,s=Ps(),l=Object(o.a)(s,2),i=l[0],u=l[1],p=K(),h=p.showError,j=p.showSuccess,f=Object(n.useCallback)(function(){var t=Object(m.a)(d.a.mark((function t(a){var n;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at("/api/secrets/".concat(e),{method:"POST",data:a});case 3:n=t.sent,c((function(e){return e.concat(n)}),!1),j("Organization secret has been added successfully"),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),h("Unable to add organization secret: ".concat(t.t0.message)),console.warn(t.t0.message);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),[c,e,j,h]),v=null;return v=r?null:a.length?Object(He.jsx)(up,{secrets:a,handleRemove:function(t){return Object(m.a)(d.a.mark((function n(){return d.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!window.confirm("Are you sure you want to delete this organization secret?")){n.next=13;break}return n.prev=2,n.next=5,at("/api/secrets/".concat(e,"/").concat(t),{method:"DELETE"});case 5:c(a.filter((function(e){return e.name!==t})),!1),j("Organization secret has been removed successfully"),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),h("Unable to remove organization secret: ".concat(n.t0.message)),console.warn(n.t0.message);case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))}}):Object(He.jsxs)("div",{className:mp("zero"),children:[Object(He.jsx)("h2",{children:"No Organization Secrets"}),Object(He.jsx)("p",{children:"Manage sensitive configuration parameters, such as passwords, tokens, and ssh keys."})]}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:mp("wrapper"),children:Object(He.jsxs)("div",{className:mp("card"),children:[Object(He.jsx)("div",{className:mp("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:mp("btn-new"),icon:Object(He.jsx)(Nb,{}),onClick:u,children:"New Organization Secret"})}),v]})}),Object(He.jsx)(Is,{title:"Create a New Organization Secret",isShowing:i,hide:u,children:Object(He.jsx)(op,{handleSubmit:f,handleCancel:u})})]})}var pp=D.a.bind(lp.a);function hp(){var e=Object(b.i)(),t=e.namespace,a=e.name,r=function(e){var t=e.namespace,a=e.name;return St("/api/repos/".concat(t,"/").concat(a,"/secrets"))}({namespace:t,name:a}),c=r.data,s=r.isLoading,l=r.mutate,i=Ps(),u=Object(o.a)(i,2),p=u[0],h=u[1],j=K(),f=j.showError,v=j.showSuccess,O=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(n){var r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/repos/".concat(t,"/").concat(a,"/secrets"),{method:"POST",data:n});case 3:r=e.sent,l((function(e){return e.concat(r)}),!1),v("Secret has been added successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),f("Unable to add secret: ".concat(e.t0.message)),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),[l,t,a,v,f]),g=null;return g=s?null:c.length?Object(He.jsx)(up,{secrets:c,handleRemove:function(e){return Object(m.a)(d.a.mark((function n(){return d.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!window.confirm("Are you sure you want to delete this secret?")){n.next=13;break}return n.prev=2,n.next=5,at("/api/repos/".concat(t,"/").concat(a,"/secrets/").concat(e),{method:"DELETE"});case 5:l(c.filter((function(t){return t.name!==e})),!1),v("Secret has been removed successfully"),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),f("Unable to remove secret: ".concat(n.t0.message)),console.warn(n.t0.message);case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))}}):Object(He.jsxs)("div",{className:pp("zero"),children:[Object(He.jsx)("h2",{children:"No Secrets"}),Object(He.jsx)("p",{children:"Manage sensitive configuration parameters, such as passwords, tokens, and ssh keys."})]}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:pp("wrapper"),children:Object(He.jsxs)("div",{className:pp("card"),children:[Object(He.jsx)("div",{className:pp("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:pp("btn-new"),icon:Object(He.jsx)(Nb,{}),onClick:h,children:"New Secret"})}),g]})}),Object(He.jsx)(Is,{title:"Create a New Secret",isShowing:p,hide:h,children:Object(He.jsx)(op,{handleSubmit:O,handleCancel:h})})]})}var jp,fp,vp=a(361),Op=a.n(vp),gp=a(181),_p=["title","titleId"];function xp(){return xp=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function yp(e,t){var a=e.title,r=e.titleId,c=wp(e,_p);return n.createElement("svg",xp({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-edit",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,jp||(jp=n.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"})),fp||(fp=n.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})))}var Np=n.forwardRef(yp),kp=(a.p,a(362)),Ep=a.n(kp),Cp=D.a.bind(Ep.a),Sp=".jsonnet",Lp=".starlark",Mp=".yaml",Pp=[Sp,Lp,Mp].map((function(e){return{key:e,value:e}})),Ip=function(e){var t=e.handleSubmit,a=e.handleCancel,r=Object(n.useState)({name:"",ext:Pp[0].value,data:""}),c=Object(o.a)(r,2),s=c[0],l=c[1];Object(n.useEffect)((function(){switch(s.ext){case Sp:l((function(e){return Object(i.a)(Object(i.a)({},e),{},{data:'/* A Jsonnet template example. */\nlocal stepName = std.extVar("input.stepName");\nlocal image = std.extVar("input.image");\nlocal commands = std.extVar("input.commands");\n{\n "kind": "pipeline",\n "type": "docker",\n "name": "default",\n "steps": [\n {\n "name": stepName,\n "image": image,\n "commands": [\n commands\n ]\n }\n ]\n}\n'})}));break;case Lp:l((function(e){return Object(i.a)(Object(i.a)({},e),{},{data:'# A Starlark template example.\ndef main(ctx):\nreturn {\n "kind": "pipeline",\n "name": "build",\n "steps": [\n {\n "name": ctx.input.stepName,\n "image": ctx.input.image,\n "commands": [\n ctx.input.commands\n ]\n }\n ]\n}\n'})}));break;case Mp:l((function(e){return Object(i.a)(Object(i.a)({},e),{},{data:"# A YAML template example.\nkind: pipeline\ntype: docker\nname: default\nsteps:\n - name: {{ .input.name }}\n image: {{ .input.image }}\n commands:\n - {{ .input.commands }}\n"})}))}}),[s.ext]);var u=function(e){return function(t){l((function(a){var n;return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,(null===t||void 0===t||null===(n=t.target)||void 0===n?void 0:n.value)||t))}))}};return Object(He.jsxs)(ii,{className:Cp("container","form"),children:[Object(He.jsxs)(li,{className:Cp("group","group-fields"),children:[Object(He.jsx)(oi.Input,{label:"Name",value:s.name,name:"template-name",width:700,autoFocus:!0,onChange:u("name")}),Object(He.jsx)(oi.Select,{label:"Extension",value:s.ext,optionsList:Pp,width:700,onChange:u("ext")}),Object(He.jsx)(gp.a,{wrapperClassName:Cp("monaco-wrapper"),height:"20rem",width:"100%",theme:"vs-dark",value:s.data,onChange:u("data")})]}),Object(He.jsxs)(li,{className:Cp("controls"),children:[Object(He.jsx)(Ye,{onClick:function(){t(s),a()},children:"Create"}),Object(He.jsx)(Ye,{onClick:a,children:"Cancel"})]})]})},Rp=function(e){var t,a=e.handleSubmit,r=e.handleCancel,c=e.editModalInitialState,s=Object(n.useState)({data:c.data}),l=Object(o.a)(s,2),u=l[0],d=l[1];return Object(He.jsxs)(ii,{className:Cp("container","form"),children:[Object(He.jsx)(li,{title:c.name,className:Cp("group","group-fields"),children:Object(He.jsx)(gp.a,{wrapperClassName:Cp("monaco-wrapper"),height:"20rem",width:"100%",theme:"vs-dark",value:u.data,onChange:(t="data",function(e){d((function(a){var n;return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},t,(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)||e))}))})})}),Object(He.jsxs)(li,{className:Cp("controls"),children:[Object(He.jsx)(Ye,{onClick:function(){a({templateData:u.data,templateName:c.name}),r()},children:"Update"}),Object(He.jsx)(Ye,{onClick:r,children:"Cancel"})]})]})};function Dp(){var e=Object(b.i)().namespace,t=Ps(),a=Object(o.a)(t,2),r=a[0],c=a[1],s=Ps(),l=Object(o.a)(s,2),i=l[0],u=l[1],p=Object(n.useState)(),h=Object(o.a)(p,2),j=h[0],f=h[1],v=function(e){var t=e.namespace;return St("/api/templates/".concat(t))}({namespace:e}),O=v.data,g=v.isLoading,_=v.mutate,x=K(),w=x.showSuccess,y=x.showError,N=Object(n.useCallback)(function(){var t=Object(m.a)(d.a.mark((function t(a){var n;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at("/api/templates/".concat(e),{method:"POST",data:{data:a.data,name:"".concat(a.name).concat(a.ext)}});case 3:n=t.sent,_((function(e){return[n].concat(Object(Ke.a)(e))}),!1),w("Template has been added successfully"),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),y(t.t0.message),console.warn(t.t0.message);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),[e,_,w,y]),k=Object(n.useCallback)(function(){var t=Object(m.a)(d.a.mark((function t(a){var n,r,c;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.templateName,r=a.templateData,t.prev=1,t.next=4,at("/api/templates/".concat(e,"/").concat(n),{method:"PATCH",data:{data:r}});case 4:c=t.sent,_((function(e){return[c].concat(Object(Ke.a)(e.filter((function(e){return e.name!==n}))))}),!1),w("Template has been edited successfully"),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(1),y(t.t0.message),console.warn(t.t0.message);case 13:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e){return t.apply(this,arguments)}}(),[e,_,w,y]),E=null;return E=g?null:O.length?Object(He.jsx)(Ap,{templates:O,handleRemove:function(t){return Object(m.a)(d.a.mark((function a(){return d.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!window.confirm("Are you sure you want to remove template?")){a.next=13;break}return a.prev=2,a.next=5,at("/api/templates/".concat(e,"/").concat(t),{method:"DELETE"});case 5:w("Template has been removed successfully"),_((function(e){return e.filter((function(e){return e.name!==t}))}),!1),a.next=13;break;case 9:a.prev=9,a.t0=a.catch(2),y(a.t0.message),console.warn(a.t0.message);case 13:case"end":return a.stop()}}),a,null,[[2,9]])})))},setEditModalInitialStateAndToggle:function(e){f(e),u()}}):Object(He.jsxs)("div",{className:Cp("zero"),children:[Object(He.jsx)("h2",{children:"No Templates"}),Object(He.jsx)("p",{children:"You can create templates to simplify configuration management if you have large numbers of similar configuration files."})]}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Cp("wrapper"),children:Object(He.jsx)("div",{className:Cp("card"),children:g?null:Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Cp("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:Cp("btn-new"),icon:Object(He.jsx)(Nb,{}),onClick:c,children:"New Template"})}),E]})})}),Object(He.jsx)(Is,{title:"Create a New Template",isShowing:r,hide:c,children:Object(He.jsx)(Ip,{handleSubmit:N,handleCancel:c})}),Object(He.jsx)(Is,{title:"Edit Template",isShowing:i,hide:u,children:Object(He.jsx)(Rp,{handleSubmit:k,handleCancel:u,editModalInitialState:j})})]})}function Ap(e){var t=e.templates,a=e.setEditModalInitialStateAndToggle,n=e.handleRemove;return Object(He.jsxs)("div",{className:Cp("template-list-wrapper"),children:[Object(He.jsxs)("div",{className:Cp("template-list-header"),children:[Object(He.jsx)("div",{children:"Name"}),Object(He.jsx)("div",{}),Object(He.jsx)("div",{})]}),Object(He.jsx)("div",{className:Cp("template-list"),children:null===t||void 0===t?void 0:t.map((function(e){return Object(He.jsx)(Hp,{data:e,setEditModalInitialStateAndToggle:a,onRemove:n},e.id)}))})]})}function Hp(e){var t=e.data,a=e.onRemove,n=e.setEditModalInitialStateAndToggle;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:Cp("template-list-item"),children:[Object(He.jsx)("div",{children:t.name}),Object(He.jsx)("div",{children:Object(He.jsx)(Ye,{onClick:function(){return n(t)},children:Object(He.jsx)(Np,{})})}),Object(He.jsx)("div",{children:Object(He.jsx)(Ye,{onClick:a(t.name),children:Object(He.jsx)(Tb,{})})})]})})}Ap.defaultProps={templates:[]};var Fp=D.a.bind(Op.a),Bp=function(e){var t=e.showActivationBtn,a=e.activationHandler;return Object(He.jsx)("section",{className:Fp("inactive-wrapper"),children:Object(He.jsxs)("div",{className:Fp("inactive-inner"),children:[Object(He.jsx)(un,{}),Object(He.jsx)("h2",{children:"This Repository is not Active."}),t?Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("p",{children:"Please activate your repository to begin executing pipelines."}),Object(He.jsx)(Ye,{theme:"primary",icon:Object(He.jsx)(Nb,{}),onClick:a,children:"Activate Repository"})]}):Object(He.jsx)("p",{children:"Please contact the repository administrator to activate this repository."})]})})};function zp(e){var t,a,r=e.user,c=e.repo,s=Object(b.i)(),u=s.namespace,p=s.name,h=Ht({namespace:u,name:p}).mutate,j=Object(n.useContext)(kt),f=Object(o.a)(j,2)[1],v=K(),O=v.showError,g=v.showSuccess,_=Object(n.useCallback)((function(){return Object(He.jsx)(cp,{repo:c,user:r})}),[c,r]);Object(n.useEffect)((function(){return c&&f((function(e){return Object(i.a)(Object(i.a)({},e),{},{isRepoNavDisabled:!(null===c||void 0===c?void 0:c.active)})})),function(){return f((function(e){return Object(i.a)(Object(i.a)({},e),{},{isRepoNavDisabled:!1})}))}}),[c,f]);var x=Object(n.useCallback)(Object(m.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/repos/".concat(u,"/").concat(p),{method:"POST"});case 3:t=e.sent,h(t,!1),g("Repo has been successfully enabled"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),O(e.t0.message),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),[O,g,u,p,h]);return A("Settings - ".concat(u,"/").concat(p)),Object(He.jsx)(He.Fragment,{children:(null===c||void 0===c?void 0:c.active)?Object(He.jsxs)("section",{className:Fp("wrapper"),children:[Object(He.jsx)("aside",{children:Object(He.jsxs)("nav",{className:Fp("settings-nav"),children:[Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings"),exact:!0,children:"General"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/secrets"),exact:!0,children:"Secrets"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/cron"),exact:!0,children:"Cron Jobs"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/badges"),exact:!0,children:"Badges"}),Object(He.jsx)("h3",{className:Fp("settings-nav-section-header"),children:"Organization"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/org-secrets"),exact:!0,children:"Secrets"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/templates"),exact:!0,children:"Templates"})]})}),Object(He.jsxs)(b.d,{children:[Object(He.jsx)(b.b,{path:"/:namespace/:name/settings",component:_,exact:!0}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/secrets",component:hp}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/cron",component:Yb}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/badges",component:Db}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/org-secrets",component:bp}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/templates",component:Dp})]})]}):Object(He.jsx)(Bp,{showActivationBtn:null!==(t=null===c||void 0===c||null===(a=c.permissions)||void 0===a?void 0:a.admin)&&void 0!==t&&t,activationHandler:x})})}var Vp=a(363),Tp=a.n(Vp),Wp=D.a.bind(Tp.a),Up=function(e){var t=e.user,a=Object(n.useMemo)((function(){return Object(He.jsx)("nav",{className:Wp("tabs"),children:[{to:"/settings/users",exact:!0,label:"Users"}].map((function(e){return Object(He.jsx)(l.c,{className:Wp("tab"),activeClassName:Wp("tab-active"),exact:e.exact,to:e.to,children:e.label},e.to)}))})}),[]);return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("header",{className:Wp("header"),children:Object(He.jsx)("div",{className:Wp("inner"),children:Object(He.jsx)("h1",{children:"System Administration"})})}),a,Object(He.jsxs)(b.d,{children:[Object(He.jsx)(b.b,{path:"/settings",component:function(){return Object(He.jsx)(b.a,{from:"/settings",to:"/settings/users",strict:!0,exact:!0})},exact:!0}),Object(He.jsx)(dh.Users,{path:"/settings/users",componentProps:{user:t},visibility:M,exact:!0})]})]})},Zp=a(364),Gp=a.n(Zp),qp=D.a.bind(Gp.a),Yp=function(e){var t=e.initialValues,a=e.handleSubmit,r=e.handleDelete,c=e.handleCancel,s=Object(n.useState)(t),l=Object(o.a)(s,2),u=l[0],d=l[1],m=function(e){return function(t){d((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.checked))}))}};return Object(He.jsxs)(ii,{className:qp("new-user-form"),children:[Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Checkbox,{label:"Admin User",name:"admin",checked:u.admin,onChange:m("admin")})}),Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Checkbox,{label:"Machine User",name:"machine",checked:u.machine,disabled:!0,onChange:m("machine")})}),Object(He.jsxs)(li,{className:qp("new-user-form-controls"),children:[Object(He.jsx)(Ye,{className:qp("save"),theme:"primary",type:"button",onClick:function(){a(u),c()},children:"Save"}),Object(He.jsx)(Ye,{className:qp("cancel"),theme:"primary",type:"button",onClick:c,children:"Cancel"}),Object(He.jsx)(Ye,{className:qp("delete"),theme:"primary",icon:Object(He.jsx)(tp,{}),onClick:function(){r(u.login),c()},children:"Delete"})]})]})},Kp=function(e){var t=e.handleSubmit,a=e.handleCancel,r=Object(n.useState)({login:"",email:"",admin:!1,machine:!1}),c=Object(o.a)(r,2),s=c[0],l=c[1],u=function(e){return function(t){switch(e){case"admin":case"machine":l((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.checked))}));break;default:l((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}}};return Object(He.jsxs)(ii,{className:qp("new-user-form"),children:[Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Input,{label:"Login",placeholder:"userlogin",value:s.login,name:"login",width:400,required:!0,onChange:u("login")})}),Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Input,{label:"Email",type:"email",placeholder:"example@mail.com",value:s.email,name:"email",width:400,required:!0,onChange:u("email")})}),Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Checkbox,{label:"Admin User",name:"admin",checked:s.admin,onChange:u("admin")})}),Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Checkbox,{label:"Machine User",name:"machine",checked:s.machine,onChange:u("machine")})}),Object(He.jsxs)(li,{className:qp("new-user-form-controls"),children:[Object(He.jsx)(Ye,{className:qp("save"),theme:"primary",onClick:function(e){e.preventDefault(),t(s),a()},children:"Create"}),Object(He.jsx)(Ye,{className:qp("cancel"),theme:"primary",type:"button",onClick:a,children:"Cancel"})]})]})},Jp=a(365),Qp=a.n(Jp),Xp=D.a.bind(Qp.a);function $p(e){var t=e.data,a=e.isCurrentUser,n=e.handleEditClick;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:Xp("user-list-item"),children:[Object(He.jsx)("div",{children:Object(He.jsx)(Ve,{className:Xp("avatar"),text:t.login,path:t.avatar,alt:t.login})}),Object(He.jsx)("div",{children:t.login}),Object(He.jsx)("div",{children:t.active?"Active":"Inactive"}),Object(He.jsx)("div",{children:t.machine?"Machine":"User"}),Object(He.jsx)("div",{children:t.admin?"Admin":"Member"}),Object(He.jsx)("div",{children:Object(ku.a)(new Date(1e3*t.created),new Date,{addSuffix:!0})}),Object(He.jsx)("div",{children:0===t.last_login?"":Object(ku.a)(new Date(1e3*t.last_login),new Date,{addSuffix:!0})}),Object(He.jsx)("div",{children:!a&&Object(He.jsx)(Ye,{onClick:n,children:Object(He.jsx)(Np,{})})})]})})}var eh=function(e){var t;return Object(He.jsxs)("div",{className:Xp("user-list-wrapper"),children:[Object(He.jsxs)("div",{className:Xp("user-list-header"),children:[Object(He.jsx)("div",{}),Object(He.jsx)("div",{children:"Username"}),Object(He.jsx)("div",{children:"Active"}),Object(He.jsx)("div",{children:"Type"}),Object(He.jsx)("div",{children:"Role"}),Object(He.jsx)("div",{children:"Created"}),Object(He.jsx)("div",{children:"Last Login"})]}),Object(He.jsx)("div",{className:Xp("user-list"),children:null===e||void 0===e||null===(t=e.users)||void 0===t?void 0:t.map((function(t){return Object(He.jsx)($p,{data:t,isCurrentUser:t.id===e.currentUser.id,handleEditClick:e.handleEditUserClick(t.id)},t.id)}))})]})},th=a(366),ah=a.n(th),nh=D.a.bind(ah.a);function rh(e){var t=e.user,a=Object(n.useState)(!1),r=Object(o.a)(a,2),c=r[0],s=r[1];A("User Management");var l=K(),u=l.showError,b=l.showSuccess,p=St("/api/users"),h=p.data,j=p.isLoading,f=p.mutate,v=Ps(),O=Object(o.a)(v,2),g=O[0],_=O[1],x=Object(n.useState)("new"),w=Object(o.a)(x,2),y=w[0],N=w[1],k=Object(n.useMemo)((function(){var e;return function(e){return e.sort((function(e,t){return e.login-t.login}))}(null!==(e=null===h||void 0===h?void 0:h.slice(0,c?null===h||void 0===h?void 0:h.length:1e3))&&void 0!==e?e:[])}),[h,c]),E=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/users",{method:"POST",data:Object(i.a)({},t)});case 3:f(),b("New user has been created successfully"),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),u("Unable to create new user: ".concat(e.t0.message)),console.warn(e.t0.message);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),[f,u,b]),C=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(t){var a,n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.admin,n=t.login,e.prev=1,e.next=4,at("/api/users/".concat(n),{method:"PATCH",data:{admin:a}});case 4:f(),b("User settings have been updated"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),u("Unable to create new user: ".concat(e.t0.message)),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),[f,u,b]),S=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm("Are you sure you want to delete this user?")){e.next=14;break}return e.prev=2,e.next=5,at("/api/users/".concat(t),{method:"DELETE"});case 5:N("new"),f((function(e){return e.filter((function(e){return e.login!==t}))}),!1),b("User has been deleted successfully"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),u("Unable to delete user: ".concat(e.t0.message)),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),[f,u,b]);return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("section",{className:nh("wrapper"),children:Object(He.jsxs)("div",{className:nh("card"),children:[Object(He.jsx)("div",{className:nh("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:nh("btn","btn-user"),icon:Object(He.jsx)(Nb,{}),onClick:function(){N("new"),_()},children:"New User"})}),j?Object(He.jsx)("p",{children:"Loading..."}):Object(He.jsx)(eh,{users:k,currentUser:t,handleEditUserClick:function(e){return function(){N(e),_()}}}),!c&&(null===h||void 0===h?void 0:h.length)>1e3&&Object(He.jsx)(Ye,{className:nh("btn","btn-show-more"),onClick:function(){return s(!0)},children:"Show More \u2193"})]})}),Object(He.jsx)(Is,{title:"new"===y?"Create a New User":"Edit user",isShowing:g,hide:_,children:"new"===y?Object(He.jsx)(Kp,{handleSubmit:E,handleCancel:_}):Object(He.jsx)(Yp,{handleSubmit:C,handleDelete:S,handleCancel:_,initialValues:rt(k.find((function(e){return e.id===y})))(["machine","admin","login"])})})]})}var ch=a(367),sh=a.n(ch),lh=D.a.bind(sh.a);function ih(){var e,t=Object(b.h)(),a=t.pathname,n=t.search,r=null;switch(a){case"/logout":r=Object(He.jsx)("div",{className:lh("error"),children:"Your session has been successfully terminated."});break;case"/login/error":var c,s;if("cloud.drone.io"===window.location.host)r=Object(He.jsxs)("div",{className:lh("error"),children:["Drone Cloud is no longer accepting new registrations. We recommend"," ",Object(He.jsx)("a",{href:"https://docs.drone.io/server/overview/",children:"installing Drone"})," ","on your own hardware, or you can try out the new"," ",Object(He.jsx)("a",{href:"https://harness.io/products/continuous-integration",children:"Harness CI Cloud"}),"."]});else r=Object(He.jsx)("div",{className:lh("error"),children:null!==(c=null===(e=n,s=("?"===e[0]?e.substr(1):e).split("&").reduce((function(e,t){var a=t.split("="),n=Object(o.a)(a,2),r=n[0],c=n[1];return Object(i.a)(Object(i.a)({},e),{},Object(z.a)({},decodeURIComponent(r),decodeURIComponent(c||"")))}),{}))||void 0===s?void 0:s.message)&&void 0!==c?c:"An error occurred during login attempt, please, try again"})}return Object(He.jsxs)("section",{className:lh("wrapper"),children:[Object(He.jsxs)("div",{className:lh("login"),children:[Object(He.jsx)("div",{className:lh("kicker"),children:Object(He.jsx)(Jm,{})}),Object(He.jsxs)("div",{className:lh("header"),children:[Object(He.jsxs)("h1",{className:lh("title"),children:["Hello,",Object(He.jsx)("br",{}),"Welcome to Drone."]}),r,Object(He.jsx)("p",{children:"You will be redirected to your source control management system to authenticate."})]}),Object(He.jsxs)("a",{href:"/login",target:"_self",className:lh("btn"),children:[Object(He.jsx)("span",{children:"Continue"}),Object(He.jsx)(zs,{className:lh("chevron-right")})]})]}),Object(He.jsx)("div",{className:lh("illustration"),children:Object(He.jsx)(tb,{})})]})}var oh=["component","visibility","componentProps","children"];function uh(e){var t=e.component,a=e.visibility,n=e.componentProps,r=e.children,c=Object(Te.a)(e,oh),s=n.user,l=!!s,o=null===s||void 0===s?void 0:s.admin,u=Object(He.jsx)(b.b,Object(i.a)(Object(i.a)({},c),{},{render:function(e){return t?Object(He.jsx)(t,Object(i.a)(Object(i.a)({},e),n)):r}}));return[a===S,a===L&&l,a===M&&o].some((function(e){return!!e}))?u:a!==S&&!1===l?Object(He.jsx)(b.a,{to:"/welcome"}):Object(He.jsx)(ol,{user:s})}uh.defaultProps={componentProps:{},children:null,visibility:0};var dh={Home:function(e){return Object(He.jsx)(uh,Object(i.a)({component:yd},e))},LoginForm:function(e){return Object(He.jsx)(uh,Object(i.a)({component:cb},e))},Login:function(){return Object(He.jsx)("p",{children:"Redirecting to Github Auth..."})},Logout:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ih},e))},LoginError:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ih},e))},Register:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ob},e))},Account:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ua},e))},Admin:function(e){return Object(He.jsx)(uh,Object(i.a)({component:function(){return Object(He.jsx)("h1",{children:"Admin Settings"})}},e))},Branches:function(e){return Object(He.jsx)(uh,Object(i.a)({component:On},e))},Deployments:function(e){return Object(He.jsx)(uh,Object(i.a)({component:Qu},e))},Settings:function(e){return Object(He.jsx)(uh,Object(i.a)({component:zp},e))},SettingsAdmin:function(e){return Object(He.jsx)(uh,Object(i.a)({component:Up},e))},Builds:function(e){return Object(He.jsx)(uh,Object(i.a)({component:qu},e))},Build:function(e){return Object(He.jsx)(uh,Object(i.a)({component:Nu},e))},NotFound:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ol},e))},Welcome:function(e){return Object(He.jsx)(b.b,Object(i.a)({component:ih},e))},Users:function(e){return Object(He.jsx)(uh,Object(i.a)({component:rh},e))},Repo:function(e){return Object(He.jsx)(uh,Object(i.a)({component:Lb},e))}},mh={fetcher:function(){var e=Object(m.a)(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",at(t,{method:"GET"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),shouldRetryOnError:!1,revalidateOnFocus:!1},bh=function(e){var t=e.render,a=Ft(),r=a.data,c=a.isLoading,s=Object(n.useContext)(kt),l=Object(o.a)(s,2),u=l[0],d=l[1];return Object(n.useEffect)((function(){r&&null===u.isAccSyncing&&d(Object(i.a)(Object(i.a)({},u),{},{isAccSyncing:r.syncing}))}),[r,u,d]),It(),c?null:t({user:r})};function ph(){var e=Object(b.h)().pathname;return Object(He.jsx)(r.a.StrictMode,{children:Object(He.jsx)(h.a,{value:mh,children:Object(He.jsx)(Ct,{children:Object(He.jsx)(bh,{render:function(t){var a=t.user;return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)(Tt,{children:[Object(He.jsxs)(b.d,{children:[Object(He.jsx)(b.a,{from:"/:url*(/+)",to:e.slice(0,-1)}),Object(He.jsx)(b.b,{path:["/welcome","/login/form","/login/error","/logout","/register"],exact:!0}),Object(He.jsx)(b.b,{path:["/settings*"],exact:!0,children:Object(He.jsx)(Nt,{user:a})}),Object(He.jsxs)(b.b,{path:"/*",children:[Object(He.jsx)(Nt,{user:a}),Object(He.jsx)(Qt,{})]})]}),Object(He.jsxs)(b.d,{children:[Object(He.jsx)(dh.Home,{path:"/",componentProps:{user:a},visibility:L,exact:!0}),Object(He.jsx)(dh.Welcome,{path:"/welcome",componentProps:{user:a},exact:!0}),Object(He.jsx)(dh.Register,{path:"/register",componentProps:{user:a},exact:!0}),Object(He.jsx)(dh.LoginForm,{path:"/login/form",exact:!0}),Object(He.jsx)(dh.LoginError,{path:"/login/error",exact:!0}),Object(He.jsx)(dh.Logout,{path:"/logout",exact:!0}),Object(He.jsx)(dh.Account,{path:"/account",componentProps:{user:a},visibility:L,exact:!0}),Object(He.jsx)(dh.SettingsAdmin,{path:"/settings*",componentProps:{user:a},visibility:M,exact:!0}),Object(He.jsx)(dh.Repo,{path:["/:namespace/:name","/:namespace/:name/deployments","/:namespace/:name/branches","/:namespace/:name/settings*","/:namespace/:name/:build","/:namespace/:name/:build/:stage?/:step?"],componentProps:{user:a},visibility:S,exact:!0}),Object(He.jsx)(dh.NotFound,{path:"*",componentProps:{user:a}})]})]}),Object(He.jsx)(p.a,{position:"top-center",limit:3,pauseOnHover:!0,hideProgressBar:!0})]})}})})})})}a(707);s.a.render(Object(He.jsx)(r.a.StrictMode,{children:Object(He.jsx)(l.a,{children:Object(He.jsx)(ph,{})})}),document.getElementById("root"))},84:function(e,t,a){e.exports={dark:"secrets_dark__2zoVu",inner:"secrets_inner__12xiG",container:"secrets_container__1uMwz","btn-new":"secrets_btn-new__2a8zC","group-fields":"secrets_group-fields__Pe5hi",controls:"secrets_controls__2Y7Zj",zero:"secrets_zero__3gAFn",actions:"secrets_actions__UH8Qf",card:"secrets_card__YRE4v","secret-list":"secrets_secret-list__aLeKk","secret-list-wrapper":"secrets_secret-list-wrapper__EISvS","secret-list-header":"secrets_secret-list-header__2VW-w","secret-list-item":"secrets_secret-list-item__zx-Cy",wrapper:"secrets_wrapper__17XyB"}}},[[708,1,2]]]);`) +// /static/js/main.316b22ac.chunk.js +var file10 = []byte(`(this["webpackJsonpdrone-ui-react"]=this["webpackJsonpdrone-ui-react"]||[]).push([[0],{298:function(e,t,a){e.exports={wrapper:"avatar_wrapper__1rxDX",image:"avatar_image__3M2_A",stub:"avatar_stub__BnP-r"}},299:function(e,t,a){e.exports={dark:"button_dark__V5P38",base:"button_base__2g-bH",plain:"button_plain__1LweR","theme-plain":"button_theme-plain__2mkOw button_plain__1LweR","theme-primary":"button_theme-primary__N_vdO button_base__2g-bH button_plain__1LweR"}},302:function(e,t,a){e.exports={dark:"search-drawer_dark__2479v",wrapper:"search-drawer_wrapper__2PmY0",slideIn:"search-drawer_slideIn__2uLei","slide-out":"search-drawer_slide-out__2IXKL",slideOut:"search-drawer_slideOut__YtSk0",header:"search-drawer_header__2Ks7k","back-btn":"search-drawer_back-btn__3sXrF",input:"search-drawer_input__si7jN","wrapper-results":"search-drawer_wrapper-results__3Jo7N",kicker:"search-drawer_kicker__13n0e",results:"search-drawer_results__1jF-R","search-card-wrapper":"search-drawer_search-card-wrapper__3Stsc","search-card-left":"search-drawer_search-card-left__2cMUe","search-card-kicker":"search-drawer_search-card-kicker__1573i","search-card-content":"search-drawer_search-card-content__3-RwD"}},303:function(e,t,a){e.exports={dark:"sidebar_dark__3Rea1",wrapper:"sidebar_wrapper__1zTlZ",sidebar:"sidebar_sidebar__29FRg",top:"sidebar_top__2NJsi",bottom:"sidebar_bottom__3ll0o","sidebar-item":"sidebar_sidebar-item__-WDcS","sidebar-item-active":"sidebar_sidebar-item-active__3jy3i",logo:"sidebar_logo__1HHJ8",avatar:"sidebar_avatar__2WFSN",anonymous:"sidebar_anonymous__214GZ"}},305:function(e,t,a){e.exports={dark:"base_dark__2KQj7",wrapper:"base_wrapper__3STDt",inner:"base_inner__3T-XN",content:"base_content__2IV3G",fadeIn:"base_fadeIn__2UeQJ",slideIn:"base_slideIn__2JjgG",slideOut:"base_slideOut__ba1An"}},306:function(e,t,a){e.exports={wrapper:"system-message_wrapper__LBz-2","wrapper-success":"system-message_wrapper-success__21LAZ","wrapper-danger":"system-message_wrapper-danger__2w24w","wrapper-warning":"system-message_wrapper-warning__302Mf"}},307:function(e,t,a){e.exports={"system-messages-wrapper":"license_system-messages-wrapper__2jNgH","message-with-link":"license_message-with-link__1n_82"}},308:function(e,t,a){e.exports={dark:"account_dark__2zRSS",header:"account_header__3LyWr",wrapper:"account_wrapper__L7fVO",title:"account_title__2-w7f","title-wrapper":"account_title-wrapper__2s0mB",label:"account_label__3aN_T",row:"account_row__3rksT",snippet:"account_snippet__3JorP","copy-btn":"account_copy-btn__3CHOA"}},309:function(e,t,a){e.exports={status:"status_status__1f9yu","status-label":"status_status-label__d4nJH","status-label-success":"status_status-label-success__3J-6I","status-label-running":"status_status-label-running__1cPze","status-label-failure":"status_status-label-failure__E-1d6","status-label-killed":"status_status-label-killed__OtzQv","status-label-error":"status_status-label-error__3uNtA","status-label-pending":"status_status-label-pending__1l2r1","status-success":"status_status-success__2WE4F","status-running":"status_status-running__3l0E0","status-pending":"status_status-pending__1RrtV","status-blocked":"status_status-blocked__3wCHe","status-waiting_on_dependencies":"status_status-waiting_on_dependencies__3jmO2",spin:"status_spin__3rzNT","status-failure":"status_status-failure__1-JE_","status-error":"status_status-error__2PEGH","status-declined":"status_status-declined__1f5RC","status-killed":"status_status-killed__2WjvI","status-inactive":"status_status-inactive__1qEU9","status-skipped":"status_status-skipped__2tmNG"}},310:function(e,t,a){e.exports={dark:"zero-state_dark__1sGMo",wrapper:"zero-state_wrapper__2GHgl",inner:"zero-state_inner__2n0xG"}},311:function(e,t,a){e.exports={dark:"branches_dark___Wuk-",wrapper:"branches_wrapper__3sGOD",inner:"branches_inner__1lkEo",card:"branches_card__GQ1Fv","branch-list":"branches_branch-list__2R-nH","branch-list-header":"branches_branch-list-header__3szSA","branch-list-item":"branches_branch-list-item__3KPYL",commit:"branches_commit__28d0S",message:"branches_message__3e7Dt",target:"branches_target__3Qmp8",avatar:"branches_avatar__1g4rF"}},314:function(e,t,a){e.exports={card:"card_card__3GF8r","card-message":"card_card-message__2vHh8"}},315:function(e,t,a){e.exports={"card-list":"cards-view_card-list__24Wtq",message:"cards-view_message__s91-q"}},317:function(e,t,a){e.exports={"diagram-controls":"controls_diagram-controls__1LBY8","diagram-controls-group":"controls_diagram-controls-group__LQx3d",btn:"controls_btn___pW9A","btn-zoom-in":"controls_btn-zoom-in__3V9Us","btn-zoom-out":"controls_btn-zoom-out__3ztVz"}},318:function(e,t,a){e.exports={"node-wrapper":"node-default-widget_node-wrapper__20Nrh","node-inner":"node-default-widget_node-inner__2SisP","node-inner-selected":"node-default-widget_node-inner-selected__2SA4N","node-inner-skipped":"node-default-widget_node-inner-skipped__2A_6V","node-inner-declined":"node-default-widget_node-inner-declined__QnB6m","node-inner-waiting_on_dependencies":"node-default-widget_node-inner-waiting_on_dependencies__1v9Wi",port:"node-default-widget_port__3zq0R","circle-port":"node-default-widget_circle-port__3zLp8","port-in":"node-default-widget_port-in__2u4zJ","port-out":"node-default-widget_port-out__269vw",name:"node-default-widget_name__2S4Da",status:"node-default-widget_status__VEa7f"}},319:function(e,t,a){e.exports={"node-wrapper":"node-edge-widget_node-wrapper__2vCxy","node-inner":"node-edge-widget_node-inner__1IIAl",port:"node-edge-widget_port__JphHa","circle-port":"node-edge-widget_circle-port__13vM9","port-in":"node-edge-widget_port-in__3FRmu","port-out":"node-edge-widget_port-out__1BLIN","fake-icon-stop":"node-edge-widget_fake-icon-stop__s-ZFJ"}},320:function(e,t,a){e.exports={"diagram-wrapper":"diagram_diagram-wrapper__2s9c_"}},321:function(e,t,a){e.exports={"graph-wrapper":"graph-view_graph-wrapper__2wPx3","graph-stages":"graph-view_graph-stages__1Hmdr","graph-steps":"graph-view_graph-steps__2vRmx"}},322:function(e,t,a){e.exports={"elapsed-static":"elapsed_elapsed-static__2nw59"}},323:function(e,t,a){e.exports={dark:"console_dark__32gJH",wrapper:"console_wrapper__3ow2p",header:"console_header__4K9_D","header-inner":"console_header-inner__29khj",info:"console_info__1NL_l",controls:"console_controls__QeCq_","btn-close":"console_btn-close__3GPwv","step-time-elapsed":"console_step-time-elapsed__VEAyi",terminal:"console_terminal__3DK3w",output:"console_output__2qZpe",line:"console_line__1ir27","line-number":"console_line-number__3zolU","line-content":"console_line-content__3xTWR","line-time":"console_line-time__oQvWj",footer:"console_footer__3xmc8",summary:"console_summary__1762k","summary-title":"console_summary-title__3gzAm","summary-info":"console_summary-info__3mKSP","summary-status":"console_summary-status__2Vetb","summary-controls":"console_summary-controls__Siy-a","scroll-to-top-btn":"console_scroll-to-top-btn__2uMa_","tmate-link":"console_tmate-link__2GPLX","btn-show-all-logs":"console_btn-show-all-logs__1jncL","stage-error":"console_stage-error__1h1S6",status:"console_status__ZfYQA",text:"console_text__Bc8dq"}},324:function(e,t,a){e.exports={dark:"console-manager_dark__1188Z","error-wrapper":"console-manager_error-wrapper__1cBjH","no-logs":"console-manager_no-logs__1-L-h"}},325:function(e,t,a){e.exports={step:"step-info-drawer_step__Pf2on",slideIn:"step-info-drawer_slideIn__1bOVS","slide-out":"step-info-drawer_slide-out__g2n_U",slideOut:"step-info-drawer_slideOut__ziruq","step-header":"step-info-drawer_step-header___Zx1S",status:"step-info-drawer_status__U2mag",heading:"step-info-drawer_heading__TMwCj","step-meta":"step-info-drawer_step-meta__3RL2B"}},326:function(e,t,a){e.exports={dark:"modal_dark__1-pnC",overlay:"modal_overlay__2QGE1","modal-wrapper":"modal_modal-wrapper__1M0PW",fullscreen:"modal_fullscreen__1JWVX","modal-inner":"modal_modal-inner__25g7i","modal-header":"modal_modal-header__3GTI6"}},327:function(e,t,a){e.exports={dark:"log-view_dark__1tccH",inner:"log-view_inner__ESALr",navbar:"log-view_navbar__kqtHJ",logs:"log-view_logs__3KfZh","page-wrapper":"log-view_page-wrapper__9zFm-","console-mobile":"log-view_console-mobile__3pGJk"}},328:function(e,t,a){e.exports={dark:"stage-nav_dark__3mgMN",wrapper:"stage-nav_wrapper__6YG00",header:"stage-nav_header__3-ZTN",title:"stage-nav_title__JcQSe",counter:"stage-nav_counter__19CHN",inner:"stage-nav_inner__3w4uQ",stage:"stage-nav_stage__EkGL6","stage-expanded":"stage-nav_stage-expanded__1J1uO",time:"stage-nav_time__3hF_i","stage-header":"stage-nav_stage-header__1dF95",chevron:"stage-nav_chevron__29dQ1","chevron-disabled":"stage-nav_chevron-disabled__2spPT","chevron-hidden":"stage-nav_chevron-hidden__3IRUS","stage-header-expanded":"stage-nav_stage-header-expanded__1U_RV","stage-header-unselectable":"stage-nav_stage-header-unselectable__2Egdv","stage-active":"stage-nav_stage-active__3MoCo","stage-status":"stage-nav_stage-status__2PIpN","stage-steps":"stage-nav_stage-steps__2AIQ4",toggler:"stage-nav_toggler__1IAYH","toggler-expanded":"stage-nav_toggler-expanded__1IwsM","steps-header":"stage-nav_steps-header__1Am0T",divider:"stage-nav_divider__2hoY5","stage-step":"stage-nav_stage-step__2fpt5","stage-step-active":"stage-nav_stage-step-active__2A6U8","stage-step-unselectable":"stage-nav_stage-step-unselectable__13evR",status:"stage-nav_status__YzKxb",name:"stage-nav_name__1dXvz"}},329:function(e,t,a){e.exports={dark:"not-found_dark__dCmCa",wrapper:"not-found_wrapper__JkJJ-",inner:"not-found_inner__n7t_C",title:"not-found_title__2cg0J",note:"not-found_note__3djYH",btn:"not-found_btn__2mfNt"}},330:function(e,t,a){e.exports={dark:"build_dark__1RJ3v",blocked:"build_blocked__1Gbzm","no-logs":"build_no-logs__3TBNe",controls:"build_controls__eBluS","controls-button":"build_controls-button__1tDBr","controls-button-approve":"build_controls-button-approve__Vj2lE","controls-button-decline":"build_controls-button-decline__3I5wY"}},331:function(e,t,a){e.exports={label:"label_label__AboI9"}},332:function(e,t,a){e.exports={checkbox:"checkbox_checkbox__2t8iU","checkbox-fake":"checkbox_checkbox-fake__3M-W4",disabled:"checkbox_disabled__xkbX3"}},333:function(e,t,a){e.exports={dark:"input_dark__12r-v",input:"input_input__3o3x-","input-wrapper":"input_input-wrapper__3NFuA","input-with-icon":"input_input-with-icon__2VspA","input-inner":"input_input-inner__2Pgau",icon:"input_icon__3z-ES","icon-search":"input_icon-search__9epsc"}},334:function(e,t,a){e.exports={radio:"radio_radio__3Eaht","radio-fake":"radio_radio-fake__e9wCC","appearance-checkmark":"radio_appearance-checkmark__Ki2Fl",disabled:"radio_disabled__1phyC",label:"radio_label__2t_PM"}},335:function(e,t,a){e.exports={dark:"select_dark__3bPUv",select:"select_select__1HHVE",label:"select_label__1bDYS","select-inner":"select_select-inner__1CKS3","select-input":"select_select-input__39Yvq"}},336:function(e,t,a){e.exports={dark:"text-area_dark__RrDva","text-area":"text-area_text-area__31bmm","text-area-wrapper":"text-area_text-area-wrapper__28Wsn"}},337:function(e,t,a){e.exports={form:"form_form__vo1by","form-section":"form_form-section__2-baB"}},338:function(e,t,a){e.exports={"deployment-form":"deployment-form_deployment-form__3ts9q","deployment-form-row":"deployment-form_deployment-form-row__JQIz_","deployment-form-radio-group":"deployment-form_deployment-form-radio-group__1pkWm","deployment-form-parameters":"deployment-form_deployment-form-parameters__stAcu","deployment-form-parameters-list":"deployment-form_deployment-form-parameters-list__3Q8VC","deployment-form-parameters-fields":"deployment-form_deployment-form-parameters-fields__oK3dv","deployment-form-controls":"deployment-form_deployment-form-controls__3QCDT"}},339:function(e,t,a){e.exports={root:"label_root__2WztY"}},340:function(e,t,a){e.exports={activity:"simple_activity__2CGnv",avatar:"simple_avatar__1uvhU",chunk:"simple_chunk__1u11R",info:"simple_info__2V4OO",label:"simple_label__VUkR-"}},341:function(e,t,a){e.exports={breadcrumb:"breadcrumb_breadcrumb__3RygM","breadcrumb-item":"breadcrumb_breadcrumb-item__1DZP4","breadcrumb-spacer":"breadcrumb_breadcrumb-spacer__1QK5s"}},342:function(e,t,a){e.exports={wrapper:"dots-menu_wrapper__CSmLP","wrapper-menu":"dots-menu_wrapper-menu__sBJ3-","btn-menu-controller":"dots-menu_btn-menu-controller__unn7-","is-open":"dots-menu_is-open__yklDf","is-focused":"dots-menu_is-focused__2aPYe",menu:"dots-menu_menu__j0xkY","menu-left":"dots-menu_menu-left__vjE7N","menu-right":"dots-menu_menu-right__3-mhU","menu-item":"dots-menu_menu-item__1bXgl"}},343:function(e,t,a){e.exports={dark:"header_dark__3jtfA",header:"header_header__3MEQh",breadcrumbs:"header_breadcrumbs__K3Bly","breadcrumbs-inner":"header_breadcrumbs-inner__T316J",togglers:"header_togglers__JltxF",active:"header_active__24GhX",meta:"header_meta__3yqUX",controls:"header_controls__1_Brh",activity:"header_activity__r3bJr",status:"header_status__33LMg",message:"header_message__2MpgX","cancel-button":"header_cancel-button__2kURt",title:"header_title__1GYIg",date:"header_date__GXk_u"}},344:function(e,t,a){e.exports={dark:"build-list_dark__2rTAn",list:"build-list_list__1kSdE","list-item":"build-list_list-item__wH4VT",status:"build-list_status__1uAP8",container:"build-list_container__17FFZ",header:"build-list_header__3Zzfb",connector:"build-list_connector__3Njz1",commit:"build-list_commit__1m69S",number:"build-list_number__1Bb51",content:"build-list_content__3Hqgw",activity:"build-list_activity__bJw7m",timing:"build-list_timing__2rn6_",elapsed:"build-list_elapsed__lZg2F",dot:"build-list_dot__IjGr-"}},345:function(e,t,a){e.exports={dark:"builds_dark__3XsYP",wrapper:"builds_wrapper__2qInD","section-title":"builds_section-title__311nJ",summary:"builds_summary__33iuz",btn:"builds_btn__u_Pjv","btn-show-more":"builds_btn-show-more__2F_u_"}},347:function(e,t,a){e.exports={wrapper:"bar-chart_wrapper__Epu5j","y-axis":"bar-chart_y-axis__12MoN","chart-grid":"bar-chart_chart-grid__29KGZ","bar-background":"bar-chart_bar-background__1PNT0",bar:"bar-chart_bar__18agi","bar-running":"bar-chart_bar-running__3GzBo","bar-success":"bar-chart_bar-success__377Ah","bar-failure":"bar-chart_bar-failure__2qJRv","bar-killed":"bar-chart_bar-killed__3NbRt","bar-error":"bar-chart_bar-error__ydlH9","bar-pending":"bar-chart_bar-pending__3DeM5"}},348:function(e,t,a){e.exports={dark:"summary_dark__1mzER",wrapper:"summary_wrapper__6MsKT",info:"summary_info__xNKWE",summary:"summary_summary__tMwPO",title:"summary_title__1oizo",item:"summary_item__A3wFB","item-heading":"summary_item-heading__3BDpl","item-content":"summary_item-content__3oLix",status:"summary_status__2nD-m","status-running":"summary_status-running__iwIfl","status-success":"summary_status-success__38O47","status-failure":"summary_status-failure__7oT0t","status-killed":"summary_status-killed__2BHAr","status-error":"summary_status-error__3sLri","status-pending":"summary_status-pending__2GlAQ","bar-wrapper":"summary_bar-wrapper__3iiRj"}},349:function(e,t,a){e.exports={dark:"deployments_dark__8Kn8a",wrapper:"deployments_wrapper__3cqTQ",inner:"deployments_inner__KF1bz",card:"deployments_card__2TbQZ","deployment-list":"deployments_deployment-list__1MzbH","deployment-list-header":"deployments_deployment-list-header__3oce2","deployment-list-item":"deployments_deployment-list-item__i3jgx",avatar:"deployments_avatar__2siC3",commit:"deployments_commit__ld9Ei",message:"deployments_message__s30D5",target:"deployments_target__2xt4_"}},350:function(e,t,a){e.exports={dark:"repos_dark__S51XK",list:"repos_list__pslzV",item:"repos_item__31Hyq",date:"repos_date__1d2oe",inactive:"repos_inactive__1OKWU",detail:"repos_detail__H6wTv",title:"repos_title__1iH7c",spacer:"repos_spacer__JwxyF",commit:"repos_commit__3Mft-"}},351:function(e,t,a){e.exports={dark:"repos-recent_dark__2RV09",cards:"repos-recent_cards__3AwVU",card:"repos-recent_card__1gAHn",header:"repos-recent_header__FV22W",title:"repos-recent_title__kF1SC",namespace:"repos-recent_namespace__12A4o",status:"repos-recent_status__2Ngo4",body:"repos-recent_body__1QCXT",footer:"repos-recent_footer__3esl8",avatar:"repos-recent_avatar__3GXGI"}},352:function(e,t,a){e.exports={wrapper:"switch_wrapper__3287w","switch-label-fake":"switch_switch-label-fake__37KO7",switch:"switch_switch__3SEnA","switch-toggler":"switch_switch-toggler__B-BCb","switch-label":"switch_switch-label__ji-6Y","switch-input":"switch_switch-input__2ITId"}},353:function(e,t,a){e.exports={dark:"home_dark__2Gpf3",wrapper:"home_wrapper__11qAb","section-title":"home_section-title__1e6sc","section-title-recent":"home_section-title-recent__2mSnE",header:"home_header__3cqQx",subheader:"home_subheader__NpQ1G",actions:"home_actions__iIdun",btn:"home_btn__j4vyI","btn-sync":"home_btn-sync__142m7","btn-sync-spinner":"home_btn-sync-spinner__2EA5x","spinner-border":"home_spinner-border__BzAl9","btn-show-more":"home_btn-show-more__1oqNM","system-messages-wrapper":"home_system-messages-wrapper__3WHoS","message-with-link":"home_message-with-link__DIJG4",search:"home_search__YZniK","zero-state-msg":"home_zero-state-msg__22gZA"}},354:function(e,t,a){e.exports={dark:"login_dark__2NctZ",wrapper:"login_wrapper__2A-iz",login:"login_login__2gh5w",kicker:"login_kicker__2ldX7",header:"login_header__2a_3B",title:"login_title__5tk8c","title-sub":"login_title-sub__OLg_7",illustration:"login_illustration__31X8i",btn:"login_btn__1D4hR",error:"login_error__3ULWd"}},355:function(e,t,a){e.exports={dark:"register_dark__2BYbW",wrapper:"register_wrapper__6rNIp",login:"register_login__Wy4gP",kicker:"register_kicker__2copx",header:"register_header__24KjP",title:"register_title__2DeIa",illustration:"register_illustration__305M4",btn:"register_btn__3MaSP",error:"register_error__3hsIF",legal:"register_legal__dFLgV"}},356:function(e,t,a){e.exports={"new-build-form":"new-build-form_new-build-form__3J7En","new-build-form-column":"new-build-form_new-build-form-column__27Gv-","new-build-form-column-list":"new-build-form_new-build-form-column-list__1qqZC","new-build-form-parameters":"new-build-form_new-build-form-parameters__1Q3BL","new-build-form-parameters-list":"new-build-form_new-build-form-parameters-list__3XwZO","new-build-form-parameters-fields":"new-build-form_new-build-form-parameters-fields__3EC8I","new-build-form-controls":"new-build-form_new-build-form-controls__a-7K9"}},357:function(e,t,a){e.exports={dark:"repo_dark__2rsok",header:"repo_header__271Qk",breadcrumb:"repo_breadcrumb__27xlj",tabs:"repo_tabs__37XFO",tab:"repo_tab__3rhP5","tab-active":"repo_tab-active__2wiDX","tab-disabled":"repo_tab-disabled__1Sk0t","new-build-btn":"repo_new-build-btn__P79mm"}},358:function(e,t,a){e.exports={dark:"badges_dark__37Uzi",title:"badges_title__175kU",inner:"badges_inner__3U4ZV","group-badge":"badges_group-badge__39KKB","badge-snippet":"badges_badge-snippet__17n1M","copy-btn":"badges_copy-btn__1-4VE"}},359:function(e,t,a){e.exports={dark:"cron_dark__2HDFl",inner:"cron_inner__186HI",container:"cron_container__3eExz","btn-new":"cron_btn-new__1ZFxA","group-fields":"cron_group-fields__2Oco_",zero:"cron_zero__3uolM",controls:"cron_controls__1tW7W",actions:"cron_actions__2K0S5",card:"cron_card__1m5GC","cron-list":"cron_cron-list__3BxzM","cron-list-wrapper":"cron_cron-list-wrapper__GL_7G","cron-list-header":"cron_cron-list-header__3oY8g","cron-list-item":"cron_cron-list-item__3Keyg",wrapper:"cron_wrapper__1zipL"}},360:function(e,t,a){e.exports={dark:"general_dark__1Plar",inner:"general_inner__10GUe",form:"general_form__EieKC","form-section-row":"general_form-section-row__2m-y6","switch-row":"general_switch-row__2BH9F","form-section-row-is-last":"general_form-section-row-is-last__4nyg-",timeout:"general_timeout__16kV6",config:"general_config__dDOaK",note:"general_note__HptyZ",btn:"general_btn__1H6Hm","btn-save":"general_btn-save__2sx2k","btn-disable":"general_btn-disable__2IBx1","visibility-container":"general_visibility-container__NGVFQ","visibility-card-wrapper":"general_visibility-card-wrapper__ury9q","visibility-card":"general_visibility-card__1tSov",controls:"general_controls__2f5h1"}},361:function(e,t,a){e.exports={header:"settings_header__1aOuu",wrapper:"settings_wrapper__1qh5b","settings-nav":"settings_settings-nav__kMI5o","settings-nav-item":"settings_settings-nav-item__3tLNN","settings-nav-item-active":"settings_settings-nav-item-active__1oicd","settings-nav-section-header":"settings_settings-nav-section-header__KSb2p","inactive-wrapper":"settings_inactive-wrapper__2HS2u","inactive-inner":"settings_inactive-inner__z1fP7"}},362:function(e,t,a){e.exports={dark:"templates_dark__22A7R",inner:"templates_inner__fFrAa",container:"templates_container__8VUAo","btn-new":"templates_btn-new__1Y0h7","group-fields":"templates_group-fields__Mdjex",zero:"templates_zero__3vLH9",controls:"templates_controls__1_y2_",actions:"templates_actions__3jFG-",card:"templates_card__4tgVu","template-list":"templates_template-list__1naXs","template-list-wrapper":"templates_template-list-wrapper__1O6-E","template-list-header":"templates_template-list-header__1A2ac","template-list-item":"templates_template-list-item__5uj9h",wrapper:"templates_wrapper__1ms3f","monaco-wrapper":"templates_monaco-wrapper__p9IYa"}},363:function(e,t,a){e.exports={header:"settings-admin_header__2_iH-",tabs:"settings-admin_tabs__1HXE4",tab:"settings-admin_tab__1GgwW","tab-active":"settings-admin_tab-active__91bVr","tab-disabled":"settings-admin_tab-disabled__31Cw5"}},364:function(e,t,a){e.exports={dark:"user-form_dark__16_iu","new-user-form":"user-form_new-user-form__3bjpb","new-user-form-column":"user-form_new-user-form-column__1303t","new-user-form-column-list":"user-form_new-user-form-column-list__XCbwG","new-user-form-parameters":"user-form_new-user-form-parameters__21TXN","new-user-form-parameters-list":"user-form_new-user-form-parameters-list__2eVso","new-user-form-parameters-fields":"user-form_new-user-form-parameters-fields__2e1AM","new-user-form-controls":"user-form_new-user-form-controls__3s2Ve",save:"user-form_save__X7SX4",cancel:"user-form_cancel__16Wel",delete:"user-form_delete__35mHE"}},365:function(e,t,a){e.exports={dark:"user-list_dark__2L1CX",avatar:"user-list_avatar__UN22p","user-list":"user-list_user-list__Wg5kX","user-list-wrapper":"user-list_user-list-wrapper__dbIr4","user-list-header":"user-list_user-list-header__14o1A","user-list-item":"user-list_user-list-item__1azLC"}},366:function(e,t,a){e.exports={dark:"users_dark__2_oJ6",wrapper:"users_wrapper__3mar2",actions:"users_actions__JhzhN",avatar:"users_avatar__2sNHF",btn:"users_btn__1M3P9","btn-show-more":"users_btn-show-more__hvN4Z","btn-user":"users_btn-user__1iv3n",card:"users_card__1V-f3"}},367:function(e,t,a){e.exports={dark:"welcome_dark__V-uDR",wrapper:"welcome_wrapper__2vss1",login:"welcome_login__PcQoQ",kicker:"welcome_kicker__3q_EB",header:"welcome_header__km9Fn",title:"welcome_title__25M7u","title-sub":"welcome_title-sub__3FkPx",illustration:"welcome_illustration__wZtLz",btn:"welcome_btn__1HXaL","chevron-right":"welcome_chevron-right__2nYSb",error:"welcome_error__28uu6"}},485:function(e,t,a){},706:function(e,t,a){},707:function(e,t,a){},708:function(e,t,a){"use strict";a.r(t);var n=a(1),r=a.n(n),c=a(54),s=a.n(c),l=a(11),i=a(2),o=a(5),u=a(6),d=a.n(u),m=a(13),b=a(24),p=a(86),h=a(42),j=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_DRONE_TOKEN||"",f=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_DRONE_SERVER||"".concat(window.location.protocol,"//").concat(window.location.host),v=250,O={DEFAULT:"default",RUNNING:"running"},g=[15,30,60,90,120,180,240,300,360,420,480,540,600,660,720,1080,1440,2880,4320],_="loading",x="stream_on",w="resolved",y="no_logs_available",N="error",k="idle",E=window&&window.LICENSE_EXPIRED,C=window&&window.LICENSE_LIMIT_EXCEEDED,S=0,L=1,M=2,P="dark",I="light",R=a(3),D=a.n(R);function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Drone CI";Object(n.useEffect)((function(){document.querySelector("title").innerText="".concat(e).concat(e?" - ":"").concat(t)}),[e,t])}function H(){var e=Object(n.useState)((function(){return window.innerHeight||0})),t=Object(o.a)(e,2),a=t[0],r=t[1],c=Object(n.useCallback)((function(e){r(e.currentTarget.innerHeight)}),[]);return Object(n.useLayoutEffect)((function(){return window.addEventListener("resize",c),function(){return window.removeEventListener("resize",c)}}),[c]),a}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=Object(n.useState)((function(){return e(500)})),a=Object(o.a)(t,2),r=a[0],c=a[1],s=H(),l=Object(n.useCallback)((function(t){if(null!==t){var a=s-t.getBoundingClientRect().top;c(e(a))}}),[s,e]);return{dynamicHeight:r,dynamicHeightRef:l}}var B,z=a(15);B={},Object(z.a)(B,O.DEFAULT,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAAEEfUpiAAAABGdBTUEAALGPC/xhBQAABh5JREFUWAm1V1tslEUUnvPvbres2EIK1u4WWkITFOi22ETFC1SD3ZarD/bBGAwmhkQkiqKJD4pENN4SxRsRfJDAk/ZBRaHsJiKYGOShlu4KKoL2QrcopUgLpN3l/8fvTDt/ZrfbpYlxkv3PnOucOXPOmVkhxkZZdcMQT4k/QCQV+G9QhDHOVEb6EjFyJZjAw8MfSH1cHKySQ+fO/K70mVheszLEtixGeNhO6ixDYipPeLhGZy9qmt/d3noyGG6ISymqR9mjAlYwHNmRvmafYM1kPBY2mWNrWK2ayIRgQWUBm2YanE6oCSPm2ozzcH1gpK5uvS+Z6jouSPb3xWNLmcbD3TlLm1bAuJBMxGbAyYYUSzJTmSTrSYbYa0llbWOlqwWHfoRcDbY5hRUsEhscKXa4kQLjzkJfcRkzPURNsPC6EuSPHsPpwW/YvC3Ew4jJNKZTKBx515FykxYyIQtbvfHoM9jLzyaD5z6LFjJ0A8WIHtlnoukMLaLtyugYURkYDWKnCgfTeWmGwZrIxmRH9EOe8wiFm+53pP2tQohO9MWjCylbWTHxYSNIhNuklG2aRoK2JRPRLdpDIrpq9aU7XQFD8CjPpZBuoozhLzGEYovCpQx4Ef8BRswBxcVY5TmEupTpVYuaZp5ubz2vZeBVs56rvZo5ohn5oI5RqCay2T2FYHVDP+dPPkWT5y3wVPW0tZ5xDWjmnEXLK0Zs+yTcDGiahmTRRziVjRpnOM4AE0O1kRXSlk9JQYuJ5DnE6ZC/JLip8/DuYeabY5yBYN2qGTI14gYsU5hGppcUzThxuOWyprvVgKifxe+9ZNvX/WhMM7WACXE6/oELl4aCtQ13abryAIrtcLOWiai793F8T7MnAe+11OljrYNauCzckEByqBooKios+u2HfUM0uyayIO3IrGKhd/oS0c2sWF7bWO8IZ1ryeOxLxoPVkQ54EkZWppCVfsp1fB7hDZ9NHEhgxTRW9LIiD33+Om88U4sDVq6zZ+Xm5maPqcwGsPoahnrYly9td4OoiRq2tLSgcWQOj/BcNCmI1305DSDKDyhBok5XgcjuSRz4ft7dq2/UNCmpNKcBaYsYC6He5/C+77ml2Iu5isXQsPRrAzjCY27b1MQMaFmNfR0Ho0wL1S6vdWx7LZ+OTjYiz2oqC0f2CCnXZijmQcw8UUnHsvpY8uhlsLQRJqoY+IRvbobE9ZGHtIgy0J3Y/8dkjSAD40j1kDYwvhprIp9KR67TAhqiD/b7vN4lXT/t/0XTGI4zYDL1PFTT+CyMvogamK5p+SB3a1j+3G95tv7ZfqArr2wuJl+racd5pDcee03z+ehFeuQQqt59RGjedSFuRp/0reFQZ8tmRGBWeMVCW6YPm/VpnjgrZzpCeGHJryyLTqFuu7DrABysQqQiwFXbMRfEYhe8wne76YjrQDDcuFVK52VTwZxnO2LyJprD2YBIpz7D/bDSlDGvd+UAuswH8DrjsjAV9ByXym5cKo9pHL1yuePInVigXNPgaFqSeDPorXylrW1XmuncU23b+U7LKEi0F+3hUULjeRC944sMZi6ExN94vKmLmtnotUcQ5iW5RBWNxDWvp7Cip31fknHcGm/heJ435bmVWMKmx03iRHPUHz/x1FB5kG9xlsJF4NjDbv+GftatAxFpb+YL4d5Rs9f7yqX19VtVR1U9jOiTfBo4it4SUbpHyzhCLNNzA9YhH+RfBmHCKcJXfGrgqHuOyXh0vd8T4L6wk5sMKyKh+N1wBHgdulV5PL73CtOR4BsmaNg9fB3shMx6FpzcIAcLvJCMH3x7cvKjUpnl62ruovLFzVOcK4P9uZ5SrljeCQ1h5wlsH1GQN+E1NRe7dd812eWrHYHJWdPnFZeqMqwIr5qTlqlfUYoFedf6D8xsR7Qp5QAjVXc0FV256uBhLedr5v8B0TW39HZEt2nbrgOaoJ59ttiH6pj0U1nr5oVE5wu83qWTvg0X1DdP/WdgcBuy/wkcjfuQybtIFhO1nyJLvHqzt+IN3RWzRLhyJjcq69cVpi8mlzmOWAmtW6FYBufw15Ic/MXtRuPpRnV04ZHSWuabdXCiBbNX+xd0bpKI7Ls03wAAAABJRU5ErkJggg=="),Object(z.a)(B,O.RUNNING,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACwElEQVRYw71XO2tUQRT+wAeJJmqhjRbRWPkCsUwhQRBFDfoLUptg5aOSBdFOlEUUcW2C8ReIWmgx5173oYUgG41FGgtjEQ3qGtQ8lE9m9homd+fuzl3vemGqOefMd17fORfw/PgSa6hwnII7VHhChUkKvlEwR8EUFcLoTst0IcuPCmcp+EwFep7vFIyxjL5sAAg2UzCRAsDfM09BnoKetA9up+BiRiBIwWsW0e/3+DPspsK0UQxwIzMQCrMMMdDK871G0FZsBqJehPcZIMcQwxScpuCa8TgJRFIkTJULXjkV3SDO8AU2JDoT4lACkDcsodfl/aWmIYyB8GzddRQ8dNREfqVgCXsoWGyZxwDXEx4ZpMIoBadYwbaGe4VqzNaCLnTb+5ue1TwWC/MxCt7HZBYpuKJTatkfdNgbtxlu1gtAiH1WtxygYKmJ/OVYiicayKqCbpiw+bXRTIwdwxbRWmIJWy35q46UDumL257hf75sjFhFwQ8PvZPLOgFGHPcFHYFHnhF4sKINfXQCjFj1MuxwKoA3swkqsRTMeNTMQSsCOYfNKW2o5hmBrxSstgDcbSE/zSrWW/LjDgBzMPPcl88DHLb6eyMF7xJkf1Fw1OKZXuNAo1wN0TLhO9WKsdbaZJYQwafo/qfOq27RWLpGE+y9hVFIN1rPJ0zRLbo7Uu0TgqcaXSHlWP3NABcyWmoKujqH2lwyilQ4YlOu9dh+KtyLz44GEIaIKug2tNjeklHfCRTKmic0WVHw0WufEHzhJNYmt0iWxw3inD3VdpgR+R9BuIok31EArUDo9cr8bHQeRC4ZRBH93rtBe+cDy9jZPBUhBjoCQndHiF1+pKEjkbxat3Oqeu9My1w9UWHO/8PDC2YMO8jKH0gZfeZHMw1Z6eEkuOUdcs+IdFFwIvoFD80UrY/yWpSux2a909SewuM/2U5mE0vDlDMAAAAASUVORK5CYII=");var V,T,W=function(e,t){var a=Object(n.useState)((function(){try{var a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch(n){return console.error(n),t}})),r=Object(o.a)(a,2),c=r[0],s=r[1],l=Object(n.useCallback)((function(t){try{var a=t instanceof Function?t(c):t;s(a),window.localStorage.setItem(e,JSON.stringify(a))}catch(n){console.error(n)}}),[e,c]);return[c,l]},U=function(e,t){Object(n.useEffect)((function(){var a=function(a){e.current&&!e.current.contains(a.target)&&t(a)};return document.addEventListener("mousedown",a),document.addEventListener("touchstart",a),function(){document.removeEventListener("mousedown",a),document.removeEventListener("touchstart",a)}}),[e,t])},Z={attributes:!0,characterData:!0,subtree:!0,childList:!0},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,a=Object(n.useState)(null),r=Object(o.a)(a,2),c=r[0],s=r[1];Object(n.useEffect)((function(){if(c){var a=new ResizeObserver(e);return a.observe(c,t),function(){a.disconnect()}}}),[c,e,t]);var l=Object(n.useCallback)((function(e){s(e)}),[]);return[l]},q=function(){var e=W("selected_theme",!0===window.matchMedia("(prefers-color-scheme: dark)").matches?P:I),t=Object(o.a)(e,2),a=t[0],r=t[1];Object(n.useEffect)((function(){a===P?document.body.classList.add(P):document.body.classList.remove(P)}),[a]);return{storedTheme:a,toggleTheme:function(){r(a===P?I:P)}}},Y=3e3,K=function(){var e=Object(n.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;p.b.success(e,{autoClose:t})}),[]),t=Object(n.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;p.b.warn(e,{autoClose:t})}),[]),a=Object(n.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y;p.b.error(e,{autoClose:t})}),[]);return{showSuccess:e,showWarning:t,showError:a}},J=a.p+"static/media/logo.76c744d4.svg",Q=["title","titleId"];function X(){return X=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ee(e,t){var a=e.title,r=e.titleId,c=$(e,Q);return n.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-search",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,V||(V=n.createElement("circle",{cx:11,cy:11,r:8})),T||(T=n.createElement("line",{x1:21,y1:21,x2:16.65,y2:16.65})))}var te,ae,ne,re,ce,se,le,ie,oe,ue=n.forwardRef(ee),de=(a.p,["title","titleId"]);function me(){return me=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function pe(e,t){var a=e.title,r=e.titleId,c=be(e,de);return n.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-sliders",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,te||(te=n.createElement("line",{x1:4,y1:21,x2:4,y2:14})),ae||(ae=n.createElement("line",{x1:4,y1:10,x2:4,y2:3})),ne||(ne=n.createElement("line",{x1:12,y1:21,x2:12,y2:12})),re||(re=n.createElement("line",{x1:12,y1:8,x2:12,y2:3})),ce||(ce=n.createElement("line",{x1:20,y1:21,x2:20,y2:16})),se||(se=n.createElement("line",{x1:20,y1:12,x2:20,y2:3})),le||(le=n.createElement("line",{x1:1,y1:14,x2:7,y2:14})),ie||(ie=n.createElement("line",{x1:9,y1:8,x2:15,y2:8})),oe||(oe=n.createElement("line",{x1:17,y1:16,x2:23,y2:16})))}var he,je=n.forwardRef(pe),fe=(a.p,["title","titleId"]);function ve(){return ve=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ge(e,t){var a=e.title,r=e.titleId,c=Oe(e,fe);return n.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,he||(he=n.createElement("path",{d:"m18.94,18.37c.26-.26.52-.54.76-.84.25-.3.42-.54.53-.72-1.78-.1-3.44-.49-5-1.16-1.55-.67-2.93-1.59-4.11-2.78s-2.12-2.56-2.79-4.12c-.67-1.56-1.05-3.21-1.15-4.95-.18.1-.42.27-.71.5-.29.23-.59.49-.89.79-1.83,1.83-2.75,4.03-2.75,6.59,0,2.57.93,4.79,2.81,6.67s4.11,2.81,6.69,2.79c2.58-.02,4.78-.94,6.61-2.77Zm1.02,1.33c-1.06,1.06-2.25,1.85-3.57,2.38-1.33.53-2.69.79-4.08.79-1.4,0-2.77-.28-4.12-.83-1.35-.56-2.58-1.39-3.69-2.5s-1.94-2.35-2.5-3.71c-.56-1.36-.84-2.75-.85-4.14-.01-1.4.25-2.76.78-4.09.54-1.33,1.33-2.53,2.39-3.58.71-.71,1.48-1.31,2.33-1.82.85-.51,1.63-.86,2.35-1.06-.29,2.01-.15,3.93.42,5.77.57,1.83,1.53,3.43,2.89,4.79s2.94,2.3,4.8,2.88c1.85.57,3.77.71,5.76.39-.2.72-.55,1.51-1.06,2.37-.51.86-1.12,1.65-1.84,2.37Z"})))}var _e,xe=n.forwardRef(ge),we=(a.p,["title","titleId"]);function ye(){return ye=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ke(e,t){var a=e.title,r=e.titleId,c=Ne(e,we);return n.createElement("svg",ye({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,_e||(_e=n.createElement("path",{d:"m11.24,3.62V.82h1.52v2.79h-1.52Zm0,19.56v-2.79h1.52v2.79h-1.52Zm9.15-10.42v-1.52h2.79v1.52h-2.79ZM.82,12.76v-1.52h2.79v1.52H.82Zm17.83-6.35l-1.09-1.09,1.68-1.68,1.09,1.09-1.68,1.68Zm-13.9,13.95l-1.09-1.09,1.68-1.68,1.09,1.09-1.68,1.68Zm14.48,0l-1.68-1.68,1.09-1.09,1.68,1.68-1.09,1.09ZM5.34,6.41l-1.68-1.68,1.09-1.09,1.68,1.68-1.09,1.09Zm6.66,11.31c-1.59,0-2.94-.55-4.05-1.66-1.11-1.11-1.66-2.46-1.66-4.05s.55-2.94,1.66-4.05c1.11-1.11,2.46-1.66,4.05-1.66s2.94.55,4.05,1.66c1.11,1.11,1.66,2.46,1.66,4.05s-.55,2.94-1.66,4.05c-1.11,1.11-2.46,1.66-4.05,1.66Zm0-1.52c1.17,0,2.16-.41,2.97-1.22.81-.81,1.22-1.8,1.22-2.97s-.41-2.16-1.22-2.97c-.81-.81-1.8-1.22-2.97-1.22s-2.16.41-2.97,1.22c-.81.81-1.22,1.8-1.22,2.97s.41,2.16,1.22,2.97c.81.81,1.8,1.22,2.97,1.22Z"})))}var Ee,Ce,Se=n.forwardRef(ke),Le=(a.p,["title","titleId"]);function Me(){return Me=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Ie(e,t){var a=e.title,r=e.titleId,c=Pe(e,Le);return n.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-user",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ee||(Ee=n.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"})),Ce||(Ce=n.createElement("circle",{cx:12,cy:7,r:4})))}var Re=n.forwardRef(Ie),De=(a.p,a(298)),Ae=a.n(De),He=a(0),Fe=D.a.bind(Ae.a),Be=["#06C270","#0063F7","#FF8800","#06B7C4","#4D0B8F"],ze=function(e){var t,a=e.className,r=e.path,c=e.alt,s=e.text,l=Object(n.useState)(!1),i=Object(o.a)(l,2),u=i[0],d=i[1];if(!r||u){var m=s||c||"?";t=Object(He.jsx)("span",{className:Fe("stub"),title:m,style:{backgroundColor:Be[m.charCodeAt(0)%Be.length]},children:s[0]})}else t=Object(He.jsx)("img",{className:Fe("image"),src:r,alt:c,onError:function(){return d(!0)}});return Object(He.jsx)("div",{className:Fe("wrapper",a||""),children:t})};ze.defaultProps={className:void 0,path:void 0,alt:"User avatar"};var Ve=ze,Te=a(26),We=a(299),Ue=a.n(We),Ze=["as","children","className","label","icon","size","theme"],Ge=D.a.bind(Ue.a),qe=function(e){var t,a=e.as,n=e.children,r=e.className,c=e.label,s=e.icon,o=e.size,u=e.theme,d=Object(Te.a)(e,Ze);switch(a){case"link":t=l.b;break;case"a":t="a";break;default:t="button"}var m=Object(He.jsxs)(He.Fragment,{children:[s,Object(He.jsx)("span",{children:c||n})]});return"plain"===u&&(m=n),Object(He.jsx)(t,Object(i.a)(Object(i.a)({className:Ge("button","theme-".concat(u),"size-".concat(o),r||"")},d),{},{children:m}))};qe.defaultProps={theme:"plain",as:"button",className:"",label:"",type:"button",icon:null,children:null,size:"md"};var Ye=qe,Ke=a(16),Je=a(301),Qe=a.n(Je),Xe=a(127),$e=a.n(Xe),et=$e.a.create({baseURL:f,headers:j?{Authorization:"Bearer ".concat(j)}:{},withCredentials:!0}),tt=function(){var e=Object(m.a)(d.a.mark((function e(t,a){var n,r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,et(t,a);case 3:return n=e.sent,e.abrupt("return",n.data);case 7:throw e.prev=7,e.t0=e.catch(0),r=new Error,e.t0.response?r.message=e.t0.response.data.message:e.t0.request?r.message=e.t0.request.response:r.message=e.t0.message,r;case 12:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,a){return e.apply(this,arguments)}}(),at=tt,nt=function(e){var t=e.date,a=e.dateOptions,n=void 0===a?{}:a,r=new Date(1e3*t),c=Object(i.a)({year:"numeric",month:"short",day:"numeric",hour:"numeric",hour12:!0,minute:"2-digit"},n);return"".concat(r.toLocaleDateString("en-US",c))},rt=function(e){return function(t){var a={};return t.forEach((function(t){Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t],Object.assign(a,Object(z.a)({},t,e[t])))})),a}};function ct(e,t){return e.slugt.slug?1:0}function st(e,t){var a,n,r,c;return(null!==(a=null===(n=t.build)||void 0===n?void 0:n.created)&&void 0!==a?a:0)-(null!==(r=null===(c=e.build)||void 0===c?void 0:c.created)&&void 0!==r?r:0)}var lt=function(){for(var e=arguments.length,t=new Array(e),a=0;a=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function pt(e,t){var a=e.title,r=e.titleId,c=bt(e,dt);return n.createElement("svg",mt({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,it||(it=n.createElement("path",{d:"M13.6667 6.16668H3.52504L8.18337 1.50834L7.00004 0.333344L0.333374 7.00001L7.00004 13.6667L8.17504 12.4917L3.52504 7.83334H13.6667V6.16668Z",fill:"#6B6D85"})))}var ht=n.forwardRef(pt),jt=(a.p,a(302)),ft=a.n(jt),vt=D.a.bind(ft.a),Ot=function(e){var t=e.query,a=e.slug,n=e.handleLinkClick;return Object(He.jsxs)("div",{className:vt("search-card-wrapper"),children:[Object(He.jsx)("div",{className:vt("search-card-left"),children:Object(He.jsx)(ue,{})}),Object(He.jsxs)("div",{className:vt("search-card-right"),children:[Object(He.jsxs)("span",{className:vt("search-card-kicker"),children:['Found "',Object(He.jsx)("b",{children:t}),'" in'," ",Object(He.jsx)("b",{children:"Repositories"})]}),Object(He.jsx)("p",{className:vt("search-card-content"),children:Object(He.jsx)(l.b,{to:"/".concat(a),onClick:n,children:a})})]})]})},gt=function(e){var t=e.isShown,a=e.hide,r=ut(),c=r.repos,l=r.reloadOnce,i=Object(n.useMemo)((function(){return c?Object.values(c):void 0}),[c]);Object(n.useEffect)((function(){return l()}),[l]);var u=Object(n.useState)(""),d=Object(o.a)(u,2),m=d[0],b=d[1],p=Object(n.useState)([]),h=Object(o.a)(p,2),j=h[0],f=h[1],v=Object(n.useRef)(),O=function(){v.current.classList.add(vt("slide-out")),b(""),setTimeout(a,200)};U(v,O);var g;return Object(n.useEffect)((function(){t&&v.current.querySelector("input").focus()}),[t]),Object(n.useEffect)((function(){if(m.length||f([]),m.length&&(null===i||void 0===i?void 0:i.length)){var e=function(e,t){var a=[],n=t.toLowerCase(),r=n.split("/"),c=Object(o.a)(r,2),s=c[0],l=c[1];return e.forEach((function(e){(l?e.namespace.toLowerCase().indexOf(s)>-1&&e.name.toLowerCase().indexOf(l)>-1:e.slug.toLowerCase().indexOf(n)>-1)&&a.push(e)})),a}(function(e){return null===e||void 0===e?void 0:e.slice(0).sort(lt)}(i),m);f(e)}}),[m,i]),m.length&&!j.length?g=Object(He.jsx)("p",{children:"Repos not found"}):j.length&&(g=j.map((function(e){var t=e.slug,a=e.id;return Object(He.jsx)(Ot,{slug:t,query:m,handleLinkClick:O},a)}))),t?s.a.createPortal(Object(He.jsxs)("div",{ref:v,className:vt("wrapper"),children:[Object(He.jsxs)("div",{className:vt("header"),children:[Object(He.jsx)(Ye,{tabIndex:0,className:vt("back-btn"),theme:"plain",onClick:O,children:Object(He.jsx)(ht,{})}),Object(He.jsx)("input",{tabIndex:0,className:vt("input"),type:"text",placeholder:"Search repositories",onChange:function(e){return b(e.target.value.trim())}})]}),Object(He.jsxs)("div",{className:vt("wrapper-results"),children:[Object(He.jsx)("span",{className:vt("kicker"),children:"Search results"}),Object(He.jsx)("div",{className:vt("results"),children:g})]})]}),document.body):null},_t=a(303),xt=a.n(_t),wt=D.a.bind(xt.a),yt=function(){return Object(He.jsxs)(l.b,{className:wt("sidebar-item","anonymous"),to:"/welcome",children:[Object(He.jsx)("div",{role:"img","aria-label":"Click to sign in",children:Object(He.jsx)(Re,{})}),Object(He.jsx)("span",{children:"Click to sign in or sign up."})]})};function Nt(e){var t=e.user,a=Object(n.useState)(!1),r=Object(o.a)(a,2),c=r[0],s=r[1],i=q(),u=i.storedTheme,d=i.toggleTheme,m=!!t,b=null===t||void 0===t?void 0:t.admin,p=Object(He.jsxs)("div",{className:wt("top"),children:[Object(He.jsx)(Ye,{as:"link",to:"/",className:wt("sidebar-item","logo"),children:Object(He.jsx)("img",{src:J,alt:"Drone Logo"})}),m&&Object(He.jsx)(Ye,{className:wt("sidebar-item","search-btn"),theme:"plain",label:"Search",onClick:function(){return s(!0)},children:Object(He.jsx)(ue,{})})]}),h=Object(He.jsxs)("div",{className:wt("bottom"),children:[Object(He.jsx)(Ye,{className:wt("sidebar-item","theme-btn"),label:"Search",onClick:d,children:u===P?Object(He.jsx)(Se,{}):Object(He.jsx)(xe,{})}),b?Object(He.jsx)(l.c,{to:"/settings",className:wt("sidebar-item"),activeClassName:wt("sidebar-item-active"),children:Object(He.jsx)(je,{})}):null,m?Object(He.jsx)(l.c,{as:"link",to:"/account",className:wt("sidebar-item"),activeClassName:wt("sidebar-item-active"),theme:"plain",children:Object(He.jsx)(Ve,{className:wt("avatar"),path:null===t||void 0===t?void 0:t.avatar,text:null===t||void 0===t?void 0:t.login})}):Object(He.jsx)(yt,{})]});return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("aside",{className:wt("wrapper"),children:Object(He.jsxs)("nav",{className:wt("sidebar"),children:[p,h]})}),t?Object(He.jsx)(gt,{isShown:c,hide:function(){return s(!1)}}):void 0]})}Nt.defaultProps={user:null,drawer:null};var kt=r.a.createContext(),Et={isRepoNavDisabled:!1,isAccSyncing:null},Ct=function(e){var t=e.children,a=r.a.useState(Et);return Object(He.jsx)(kt.Provider,{value:a,children:t})},St=function(e){var t=Object(h.b)(e),a=t.data,n=t.error;return{data:a,mutate:t.mutate,isError:n,isLoading:!n&&!a}},Lt=50,Mt=[{regex:new RegExp(/^\/$/),page:"Home"},{regex:new RegExp(/^\/builds-feed$/),page:"BuildsFeed"},{regex:new RegExp(/^\/[a-zA-Z0-9-_.~]+?\/[a-zA-Z0-9-_.]+?$/),page:"Builds"},{regex:new RegExp(/^\/[a-zA-Z0-9-_.~]+?\/[a-zA-Z0-9-_.]+?\/[0-9]+?(\/[0-9]+?\/[0-9]+?)?$/),page:"Build"}],Pt=function(){var e=Object(m.a)(d.a.mark((function e(t,a){var n,r,c=arguments;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>2&&void 0!==c[2]?c[2]:null,"/".concat(a.namespace,"/").concat(a.name)===t){e.next=3;break}return e.abrupt("return");case 3:r='arg@"many"@"/api/repos'.concat(t,"/builds?page=1&per_page=").concat(Lt,'"'),Object(h.c)(r,function(){var e=Object(m.a)(d.a.mark((function e(t){var r,c,s;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null!==n&&void 0!==n?n:a.build,null===t||void 0===t?void 0:t.length){e.next=3;break}return e.abrupt("return",[[r]]);case 3:if(c=t.flat(),!((s=c.findIndex((function(e){return e.id===r.id})))>0)){e.next=7;break}return e.abrupt("return",[[].concat(Object(Ke.a)(c.slice(0,s)),[r],Object(Ke.a)(c.slice(s+1)))]);case 7:if(s){e.next=9;break}return e.abrupt("return",[[r].concat(Object(Ke.a)(c.slice(1)))]);case 9:if(!(c.length>Lt)){e.next=11;break}return e.abrupt("return",[[r].concat(Object(Ke.a)(c.slice(0,c.length-1)))]);case 11:return e.abrupt("return",[[r].concat(Object(Ke.a)(c))]);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!1);case 5:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),It=function(){var e=ut().update,t=Object(n.useState)(),a=Object(o.a)(t,2)[1],r=Object(n.useCallback)((function(){a()}),[]),c=function(t){var a,n=JSON.parse(t.data);window.DEBUG&&(console.debug("The server has sent an event:"),console.debug(n));var r=window.location.pathname;switch(null===(a=Mt.find((function(e){return e.regex.test(r)})))||void 0===a?void 0:a.page){case"Builds":Pt(r,n);break;case"Build":!function(e,t){var a=e.split("/").filter(Boolean),n=Object(o.a)(a,3),r=n[0],c=n[1],s=n[2],l=t.namespace,i=t.name,u=t.build.number;r===l&&c===i&&+s===u&&Object(h.c)("/api/repos/".concat(l,"/").concat(i,"/builds/").concat(u),Object(m.a)(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.build);case 1:case"end":return e.stop()}}),e)}))),!1)}(r,n)}Object(h.c)("/api/user/repos?latest=true",function(e){return function(t){if(!t||!Array.isArray(t)||!t.length)return t;var a=t.findIndex((function(t){var a=t.id;return e.id===a}));return a<0?t:!t.build||t.build.number<=e.build.number?0===a?[e].concat(Object(Ke.a)(t.slice(1))):[].concat(Object(Ke.a)(t.slice(0,a)),[e],Object(Ke.a)(t.slice(a+1))):t}}(n),!1),e(n)};Object(n.useEffect)((function(){var e="".concat(f,"/api/stream").concat(j?"?access_token=".concat(j):""),t=new EventSource(e);return t.onmessage=c,t.onerror=r,function(){return t.close()}}),[r])},Rt=a(304),Dt=a.n(Rt);function At(e){if(!e)return[];var t=new Dt.a;return t.use_classes=!0,Array.isArray(e)?e.map((function(e){return Object(i.a)({html:t.ansi_to_html(e.out)},e)})):Object(i.a)({html:t.ansi_to_html(e.out)},e)}var Ht=function(e){var t=e.namespace,a=e.name;return St("/api/repos/".concat(t,"/").concat(a))},Ft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withPolling,a=void 0!==t&&t,r=e.timeout,c=void 0===r?1e4:r,s=Object(n.useState)(void 0),l=Object(o.a)(s,2),i=l[0],u=l[1],b=Object(n.useState)(void 0),p=Object(o.a)(b,2),h=p[0],j=p[1],f=Object(n.useState)(!1),v=Object(o.a)(f,2),O=v[0],g=v[1],_=Object(n.useState)(!1),x=Object(o.a)(_,2),w=x[0],y=x[1],N=function(){var e=Object(m.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/user");case 3:return t=e.sent,u(t),e.abrupt("return",t);case 8:e.prev=8,e.t0=e.catch(0),j(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();return Object(n.useEffect)((function(){N()}),[]),Object(n.useEffect)((function(){var e;return a&&!w&&(e=setInterval(Object(m.a)(d.a.mark((function t(){var a;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,N();case 3:a=t.sent,g(a.syncing),a.syncing||(y(!a.syncing),clearInterval(e)),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),j(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])}))),c)),a||(g(!1),y(!1)),function(){return clearInterval(e)}}),[a,c,w]),{data:i,isError:h,isLoading:!i&&!h,isSyncing:O,isSynced:w}},Bt=a(305),zt=a.n(Bt),Vt=D.a.bind(zt.a);var Tt=function(e){var t=e.children;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:Vt("wrapper"),children:[t[0],Object(He.jsx)("div",{className:Vt("inner"),children:Object(He.jsx)("main",{className:Vt("container","content"),children:t[1]})})]})})},Wt=a(306),Ut=a.n(Wt),Zt=D.a.bind(Ut.a),Gt=function(e){var t=e.className,a=e.intent,n=e.children;return Object(He.jsx)("div",{className:Zt("wrapper","wrapper-".concat(a),t),children:n})};Gt.defaultProps={className:"",intent:"success"};var qt=Gt,Yt=a(307),Kt=a.n(Yt),Jt=D.a.bind(Kt.a);function Qt(){return Object(He.jsxs)(He.Fragment,{children:[E&&Object(He.jsx)("div",{className:Jt("system-messages-wrapper"),children:Object(He.jsxs)(qt,{intent:"danger",className:Jt("message-with-link"),children:["Your Server License is Expired.",Object(He.jsx)("a",{href:"https://docs.drone.io/license-is-expired",target:"_blank",rel:"noopener noreferrer",children:"Learn more"})]})}),C&&Object(He.jsx)("div",{className:Jt("system-messages-wrapper"),children:Object(He.jsxs)(qt,{intent:"danger",className:Jt("message-with-link"),children:["Your License Limit is Exceeded.",Object(He.jsx)("a",{href:"https://docs.drone.io/license-is-exceeded",target:"_blank",rel:"noopener noreferrer",children:"Learn more"}),"or",Object(He.jsx)("a",{href:"https://drone.io/enterprise",target:"_blank",rel:"noopener noreferrer",children:"Purchase License"})]})})]})}a(398);var Xt,$t,ea=a(85),ta=["title","titleId"];function aa(){return aa=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ra(e,t){var a=e.title,r=e.titleId,c=na(e,ta);return n.createElement("svg",aa({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-copy",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Xt||(Xt=n.createElement("rect",{x:9,y:9,width:13,height:13,rx:2,ry:2})),$t||($t=n.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})))}var ca=n.forwardRef(ra),sa=(a.p,a(308)),la=a.n(sa),ia=D.a.bind(la.a),oa={token:{copied:!1,snippet:null},api:{copied:!1,snippet:null},cli:{copied:!1,snippet:null}};function ua(){var e,t=Object(n.useState)(oa),a=Object(o.a)(t,2),r=a[0],c=a[1],s=function(){var e=Object(n.useState)(!1),t=Object(o.a)(e,2),a=t[0],r=t[1],c=Object(n.useState)(""),s=Object(o.a)(c,2),l=s[0],i=s[1],u=Object(n.useState)(null),b=Object(o.a)(u,2),p=b[0],h=b[1],j=function(){var e=Object(m.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),e.prev=1,e.next=4,at("/api/user/token",{method:"POST"});case 4:t=e.sent,i(t),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0.message),h(e.t0);case 12:return e.prev=12,r(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,8,12,15]])})));return function(){return e.apply(this,arguments)}}();return Object(n.useEffect)((function(){j()}),[]),{data:l,isLoading:a,isError:p}}(),l=s.data;A("Account");var u=function(e){return function(){c((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(z.a)({},e,Object(i.a)(Object(i.a)({},t[e]),{},{copied:!0})))})),setTimeout((function(){c((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(z.a)({},e,Object(i.a)(Object(i.a)({},t[e]),{},{copied:!1})))}))}),2e3)}};return Object(n.useLayoutEffect)((function(){(null===l||void 0===l?void 0:l.token)&&c({token:{copied:!1,snippet:l.token},api:{copied:!1,snippet:["curl -i ".concat(f,"/api/user \\"),'-H "Authorization: Bearer '.concat(l.token,'"')]},cli:{copied:!1,snippet:["export DRONE_SERVER=".concat(f),"export DRONE_TOKEN=".concat(l.token),"drone info"]}})}),[null===l||void 0===l?void 0:l.token]),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("header",{className:ia("header"),children:[Object(He.jsx)("h1",{children:"Account Settings"}),Object(He.jsx)("a",{href:"/logout",target:"_self",children:"Logout"})]}),Object(He.jsx)("section",{className:ia("wrapper"),children:r.token.snippet?Object(He.jsxs)("div",{children:[Object(He.jsxs)("div",{className:ia("row"),children:[Object(He.jsx)("span",{className:ia("label"),children:"Your personal token:"}),Object(He.jsxs)("pre",{className:ia("snippet"),children:[Object(He.jsx)(ea.CopyToClipboard,{text:r.token.snippet,onCopy:u("token"),children:Object(He.jsx)(Ye,{className:ia("copy-btn"),children:r.token.copied?"Copied":Object(He.jsx)(ca,{})})}),Object(He.jsx)("code",{children:r.token.snippet})]})]}),Object(He.jsxs)("div",{className:ia("row"),children:[Object(He.jsx)("span",{className:ia("label"),children:"Example API Usage:"}),Object(He.jsxs)("pre",{className:ia("snippet"),children:[Object(He.jsx)(ea.CopyToClipboard,{text:r.api.snippet.join("\n"),onCopy:u("api"),children:Object(He.jsx)(Ye,{className:ia("copy-btn"),children:r.api.copied?"Copied":Object(He.jsx)(ca,{})})}),Object(He.jsxs)("code",{children:[Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:"$"}),r.api.snippet[0]]}),Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:">"}),r.api.snippet[1]]})]})]})]}),Object(He.jsxs)("div",{className:ia("row"),children:[Object(He.jsx)("span",{className:ia("label"),children:"Example CLI Usage:"}),Object(He.jsxs)("pre",{className:ia("snippet"),children:[Object(He.jsx)(ea.CopyToClipboard,{text:null===(e=r.cli.snippet)||void 0===e?void 0:e.join("\n"),onCopy:u("cli"),children:Object(He.jsx)(Ye,{className:ia("copy-btn"),children:r.cli.copied?"Copied":Object(He.jsx)(ca,{})})}),Object(He.jsxs)("code",{children:[Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:"$"}),r.cli.snippet[0]]}),Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:"$"}),r.cli.snippet[1]]}),Object(He.jsxs)("div",{children:[Object(He.jsx)("span",{children:"$"}),r.cli.snippet[2]]})]})]})]})]}):null})]})}var da,ma=a(4),ba=a.n(ma),pa=["title","titleId"];function ha(){return ha=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function fa(e,t){var a=e.title,r=e.titleId,c=ja(e,pa);return n.createElement("svg",ha({viewBox:"0 0 24 24",width:24,height:24,stroke:"currentColor",strokeWidth:2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"css-i6dzq1",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,da||(da=n.createElement("line",{x1:5,y1:12,x2:19,y2:12})))}var va,Oa,ga=n.forwardRef(fa),_a=(a.p,["title","titleId"]);function xa(){return xa=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ya(e,t){var a=e.title,r=e.titleId,c=wa(e,_a);return n.createElement("svg",xa({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:1.414,ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,va||(va=n.createElement("path",{fill:"none",d:"M0 0h20v20H0z"})),Oa||(Oa=n.createElement("g",{fill:"currentColor",fillRule:"nonzero"},n.createElement("path",{d:"M5.434 6.566a.802.802 0 0 1 1.132-1.132l7.778 7.778a.802.802 0 0 1-1.132 1.132L5.434 6.566z"}),n.createElement("path",{d:"M13.212 5.434a.802.802 0 0 1 1.132 1.132l-7.778 7.778a.802.802 0 0 1-1.132-1.132l7.778-7.778z"}))))}var Na,ka=n.forwardRef(ya),Ea=(a.p,["title","titleId"]);function Ca(){return Ca=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function La(e,t){var a=e.title,r=e.titleId,c=Sa(e,Ea);return n.createElement("svg",Ca({viewBox:"0 0 24 24",width:24,height:24,stroke:"currentColor",strokeWidth:2,fill:"none",strokeLinecap:"round",strokeLinejoin:"round",className:"css-i6dzq1",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Na||(Na=n.createElement("line",{x1:5,y1:12,x2:19,y2:12})))}var Ma,Pa=n.forwardRef(La),Ia=(a.p,["title","titleId"]);function Ra(){return Ra=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Aa(e,t){var a=e.title,r=e.titleId,c=Da(e,Ia);return n.createElement("svg",Ra({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ma||(Ma=n.createElement("path",{d:"M20 11.2586V11.9946C19.999 13.7197 19.4404 15.3983 18.4075 16.78C17.3745 18.1618 15.9226 19.1726 14.2683 19.6617C12.6139 20.1508 10.8458 20.0921 9.22757 19.4942C7.60934 18.8964 6.22772 17.7915 5.28877 16.3442C4.34981 14.897 3.90383 13.185 4.01734 11.4636C4.13085 9.74223 4.79777 8.10364 5.91862 6.79224C7.03948 5.48084 8.55423 4.56689 10.2369 4.1867C11.9197 3.80651 13.6802 3.98045 15.256 4.68258",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var Ha,Fa,Ba=n.forwardRef(Aa),za=(a.p,["title","titleId"]);function Va(){return Va=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Wa(e,t){var a=e.title,r=e.titleId,c=Ta(e,za);return n.createElement("svg",Va({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:1.414,ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ha||(Ha=n.createElement("path",{fill:"none",d:"M0 0h20v20H0z"})),Fa||(Fa=n.createElement("path",{d:"M14.577 6.23a.887.887 0 0 1 1.17-.019.704.704 0 0 1 .021 1.063l-6.844 6.439-.025.023a1.11 1.11 0 0 1-1.463-.023l-3.204-3.015a.704.704 0 0 1 .021-1.063.887.887 0 0 1 1.17.019l2.757 2.594 6.397-6.018z",fill:"currentColor",fillRule:"nonzero"})))}var Ua=n.forwardRef(Wa),Za=(a.p,a(309)),Ga=a.n(Za),qa=D.a.bind(Ga.a),Ya=function(e){switch(e){case"error":case"failure":return Object(He.jsx)(ka,{});case"killed":case"declined":case"skipped":return Object(He.jsx)(ga,{});case"running":case"pending":case"waiting_on_dependencies":case"blocked":return Object(He.jsx)(Ba,{});case"success":return Object(He.jsx)(Ua,{});case"inactive":return Object(He.jsx)(Pa,{});default:return null}},Ka=function(e){var t=e.className,a=e.status;return Object(He.jsx)("div",{className:qa("status","status-".concat(a),t||""),title:"Status: ".concat(a),children:Ya(a)})};Ka.defaultProps={className:void 0,status:void 0};var Ja,Qa,Xa,$a,en,tn,an,nn,rn=Ka,cn=["title","titleId"];function sn(){return sn=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function on(e,t){var a=e.title,r=e.titleId,c=ln(e,cn);return n.createElement("svg",sn({width:102,height:89,viewBox:"0 0 102 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ja||(Ja=n.createElement("path",{opacity:.8,d:"M40 9C62.0914 9 80 26.9086 80 49C80 71.0914 62.0914 89 40 89C17.9086 89 0 71.0914 0 49C0 26.9086 17.9086 9 40 9Z",fill:"url(#paint0_linear)"})),Qa||(Qa=n.createElement("path",{d:"M80 47.5C72.5 53.5 34 73 0 47.5V52.5L0.5 55.5L1 58.5L2 61.5C36 76 49.5 72 77 62L78 61.5L78.5 60L79 58L79.5 56L79.75 53.75L80 52V50V47.5Z",fill:"#f8f9fa"})),Xa||(Xa=n.createElement("path",{d:"M40.3 78.8C52.0637 78.8 61.6 71.9052 61.6 63.4C61.6 54.8948 52.0637 48 40.3 48C28.5363 48 19 54.8948 19 63.4C19 71.9052 28.5363 78.8 40.3 78.8Z",fill:"#f8f9fa"})),$a||($a=n.createElement("path",{d:"M40.3004 73.0031C47.1487 73.0031 52.7004 69.0185 52.7004 64.1031C52.7004 59.1878 47.1487 55.2031 40.3004 55.2031C33.4521 55.2031 27.9004 59.1878 27.9004 64.1031C27.9004 69.0185 33.4521 73.0031 40.3004 73.0031Z",fill:"url(#paint1_linear)"})),en||(en=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.9619 40L57.9101 39.998L53.6955 39.7071C53.3937 39.6872 53.1358 39.4869 53.0392 39.199C52.9426 38.9131 53.0282 38.5973 53.2573 38.3991L56.4023 35.6595L53.9873 35.4921C53.5759 35.4632 53.2662 35.1066 53.2941 34.6951C53.323 34.2837 53.6895 33.9739 54.0908 34.0017L58.3045 34.2936C58.6063 34.3136 58.8652 34.5138 58.9608 34.8007C59.0574 35.0876 58.9718 35.4034 58.7437 35.6017L55.5976 38.3413L58.0127 38.5077C58.424 38.5356 58.7347 38.8932 58.7059 39.3046C58.679 39.6981 58.3513 40 57.9619 40Z",fill:"#6B6D85"})),tn||(tn=n.createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M64.6545 30.4262C64.4577 30.0542 64.5255 29.6119 64.8234 29.3041L71.7314 22.1791L65.1769 22.5317C64.5811 22.5715 64.0375 22.1363 64.0019 21.5747C63.9663 21.0132 64.4332 20.5311 65.0458 20.4975L74.2805 20.0001C74.7419 19.994 75.151 20.2019 75.3455 20.5729C75.5423 20.9439 75.4745 21.3862 75.1766 21.694L68.2686 28.819L74.8231 28.4664C75.4245 28.4307 75.9625 28.8618 75.9981 29.4233C76.0337 29.9849 75.5668 30.468 74.9542 30.5006L65.7195 30.998L65.6539 31C65.2292 31 64.8401 30.7778 64.6545 30.4262Z",fill:"#6B6D85"})),an||(an=n.createElement("path",{opacity:.3,fillRule:"evenodd",clipRule:"evenodd",d:"M83.0908 18.9567C82.7628 18.2804 82.8758 17.4762 83.3724 16.9166L94.8857 3.96202L83.9616 4.60317C82.9685 4.67544 82.0625 3.88419 82.0032 2.86317C81.9439 1.84215 82.7221 0.965668 83.743 0.904518L99.1343 0.000238518C99.9032 -0.0108797 100.585 0.367139 100.909 1.04164C101.237 1.71614 101.124 2.52036 100.628 3.07998L89.1143 16.0345L100.038 15.3934C101.041 15.3285 101.938 16.1123 101.997 17.1334C102.056 18.1544 101.278 19.0327 100.257 19.092L84.8658 19.9963L84.7564 20C84.0487 20 83.4002 19.596 83.0908 18.9567Z",fill:"#6B6D85"})),nn||(nn=n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear",x1:12.5,y1:21.5,x2:70,y2:77.5,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#D9DAE5"}),n.createElement("stop",{offset:1,stopColor:"#9293AB"})),n.createElement("linearGradient",{id:"paint1_linear",x1:32.3754,y1:56.2101,x2:47.6364,y2:71.4711,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#D9DAE5"}),n.createElement("stop",{offset:1,stopColor:"#9293AB"})))))}var un=n.forwardRef(on),dn=(a.p,a(310)),mn=a.n(dn),bn=D.a.bind(mn.a),pn={builds:Object(He.jsx)(un,{})};function hn(e){var t=e.page,a=e.title,n=e.message,r=e.children;return Object(He.jsx)("section",{className:bn("wrapper"),children:Object(He.jsxs)("div",{className:bn("inner"),children:[pn[t],Object(He.jsx)("h2",{children:a}),n&&Object(He.jsx)("p",{children:n}),Object(He.jsx)("div",{children:r})]})})}hn.defaultProps={page:"builds",title:"It looks a little empty here!",children:null,message:null};var jn=a(311),fn=a.n(jn),vn=D.a.bind(fn.a);function On(e){var t=e.repo.active,a=Object(b.i)(),r=a.namespace,c=a.name,s=function(e){var t=e.namespace,a=e.name;return St("/api/repos/".concat(t,"/").concat(a,"/builds/branches"))}({namespace:r,name:c}),l=s.data,i=s.isLoading,o=Object(b.g)();Object(n.useLayoutEffect)((function(){t||o.replace("/".concat(r,"/").concat(c,"/settings"))}),[t,o,r,c]);var u=null;return u=i?null:l.length?Object(He.jsx)("section",{className:vn("wrapper"),children:Object(He.jsx)("div",{className:vn("inner"),children:Object(He.jsx)(gn,{data:l})})}):Object(He.jsx)(hn,{title:"Your Branch List is Empty.",message:"This list will be populated when you execute a pipeline for an open branch."}),Object(He.jsx)(He.Fragment,{children:u})}function gn(e){var t=e.data;return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("div",{className:vn("branch-list-header"),children:[Object(He.jsx)("div",{}),Object(He.jsx)("div",{children:"Branch"}),Object(He.jsx)("div",{children:"Commit"}),Object(He.jsx)("div",{children:"Committer"}),Object(He.jsx)("div",{children:"Message"})]}),Object(He.jsx)("div",{className:vn("branch-list"),children:t.map((function(e){return Object(He.jsx)(l.b,{to:"".concat(e.number),children:Object(He.jsxs)("div",{className:vn("branch-list-item"),children:[Object(He.jsx)("div",{children:Object(He.jsx)(rn,{status:e.status})}),Object(He.jsx)("div",{className:vn("target"),children:e.target}),Object(He.jsx)("div",{className:vn("commit"),children:e.after.slice(0,8)}),Object(He.jsxs)("div",{children:[Object(He.jsx)(Ve,{className:vn("avatar"),path:e.author_avatar,alt:e.author_login,text:e.author_login}),Object(He.jsx)("span",{children:e.author_login})]}),e.message&&Object(He.jsx)("div",{className:vn("message"),children:Object(He.jsx)("span",{children:e.message})})]})},e.id)}))})]})}On.propTypes={match:ba.a.shape({params:ba.a.shape({namespace:ba.a.string.isRequired,name:ba.a.string.isRequired}).isRequired}).isRequired};var _n=a(312),xn=a(313),wn=a(314),yn=a.n(wn),Nn=D.a.bind(yn.a),kn=function(){var e=Object(m.a)(d.a.mark((function e(t,a,n){var r,c,s;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$e()({method:"GET",url:t});case 2:return r=e.sent,c=new xn.Template(null===r||void 0===r?void 0:r.data),e.next=6,c.expand({$root:Object(i.a)({},a)});case 6:s=e.sent,n(s);case 8:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),En=function(e){var t=e.data,a=function(e){var t=e.namespace,a=e.name,n=e.build,r=e.stage,c=e.step;return St("/api/repos/".concat(t,"/").concat(a,"/cards/").concat(n,"/").concat(r,"/").concat(c))}({namespace:e.namespace,name:e.name,build:e.build,stage:t.stage,step:t.step}),r=a.data,c=a.isError,s=a.isLoading,l=Object(n.useState)(null),i=Object(o.a)(l,2),u=i[0],d=i[1];return Object(n.useEffect)((function(){s||u||kn(t.schema,r,d)}),[s,t,r,u]),s||!u?Object(He.jsx)("li",{className:Nn("card","card-message"),children:"CARD LOADING..."}):c?Object(He.jsx)("li",{className:Nn("card","card-message"),children:"CARD ERROR"}):Object(He.jsx)("li",{className:Nn("card"),children:Object(He.jsx)(_n.AdaptiveCard,{payload:u})})},Cn=a(315),Sn=a.n(Cn),Ln=D.a.bind(Sn.a),Mn=function(e){var t=e.data,a=e.isDataLoading,n=e.namespace,r=e.name,c=e.build;return a?Object(He.jsx)("div",{className:Ln("message"),children:"LOADING..."}):t.length?Object(He.jsx)("ul",{className:Ln("card-list"),children:null===t||void 0===t?void 0:t.map((function(e){var t=e.stage.toString()+" - "+e.step.toString();return Object(He.jsx)(En,{data:e,namespace:n,name:r,build:c},t)}))}):Object(He.jsx)("div",{className:Ln("card-list"),children:Object(He.jsx)("span",{className:Ln("message"),children:"NO ADAPTIVE CARDS FOUND"})})};Mn.defaultProps={data:[]};var Pn,In=Mn,Rn=a(368),Dn=(a(485),a(18)),An=a(27),Hn=a.n(An),Fn=["title","titleId"];function Bn(){return Bn=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Vn(e,t){var a=e.title,r=e.titleId,c=zn(e,Fn);return n.createElement("svg",Bn({width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Pn||(Pn=n.createElement("g",null,n.createElement("path",{d:"M9.60938 4.60938H5.39062V0.390625C5.39062 0.174883 5.21574 0 5 0C4.78426 0 4.60938 0.174883 4.60938 0.390625V4.60938H0.390625C0.174883 4.60938 0 4.78426 0 5C0 5.21574 0.174883 5.39062 0.390625 5.39062H4.60938V9.60938C4.60938 9.82512 4.78426 10 5 10C5.21574 10 5.39062 9.82512 5.39062 9.60938V5.39062H9.60938C9.82512 5.39062 10 5.21574 10 5C10 4.78426 9.82512 4.60938 9.60938 4.60938Z",fill:"black"}))))}var Tn,Wn=n.forwardRef(Vn),Un=(a.p,["title","titleId"]);function Zn(){return Zn=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function qn(e,t){var a=e.title,r=e.titleId,c=Gn(e,Un);return n.createElement("svg",Zn({width:10,height:2,viewBox:"0 0 10 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Tn||(Tn=n.createElement("g",null,n.createElement("path",{d:"M9.60938 0.609375H5.39062H4.60938H0.390625C0.174883 0.609375 0 0.784258 0 1C0 1.21574 0.174883 1.39062 0.390625 1.39062H4.60938H5.39062H9.60938C9.82512 1.39062 10 1.21574 10 1C10 0.784258 9.82512 0.609375 9.60938 0.609375Z",fill:"black"}))))}var Yn,Kn=n.forwardRef(qn),Jn=(a.p,["title","titleId"]);function Qn(){return Qn=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function $n(e,t){var a=e.title,r=e.titleId,c=Xn(e,Jn);return n.createElement("svg",Qn({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Yn||(Yn=n.createElement("g",null,n.createElement("rect",{opacity:.01,width:14,height:14,fill:"black"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1H0V0H1V1ZM0 7H1V6H0V7ZM0 8H1V9H0V8ZM0 13H1V12H0V13ZM1 11H0V10H1V11ZM0 5H1V4H0V5ZM1 3H0V2H1V3ZM12 9H13V8H12V9ZM12 6H13V7H12V6ZM11 0H10V1H11V0ZM12 0H13V1H12V0ZM13 2H12V3H13V2ZM12 4H13V5H12V4ZM4 1H5V0H4V1ZM13 14H12V13H13V14ZM13 12H14V13H13V12ZM13 12V10H12V12H10V13H12V12H13ZM8 1H9V0H8V1ZM4 13H5V12H4V13ZM3 13H2V12H3V13ZM2 1H3V0H2V1ZM9 13H8V12H9V13ZM6 1H7V0H6V1ZM7 13H6V12H7V13Z",fill:"black"}))))}var er,tr=n.forwardRef($n),ar=(a.p,["title","titleId"]);function nr(){return nr=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function cr(e,t){var a=e.title,r=e.titleId,c=rr(e,ar);return n.createElement("svg",nr({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,er||(er=n.createElement("g",{opacity:.9},n.createElement("rect",{opacity:.01,width:16,height:16,fill:"black"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3.33333V2H2V5.33333H3.33333V3.33333H6ZM14 2H10V3.33333H12.6667V5.33333H14V2ZM10 14V12.6667H12.6667V10.6667H14V14H10ZM2 14H6V12.6667H3.33333V10.6667H2V14Z",fill:"black"}))))}var sr,lr=n.forwardRef(cr),ir=(a.p,a(317)),or=a.n(ir),ur=D.a.bind(or.a),dr=function(e){var t=e.engine,a=Object(n.useCallback)((function(){t.zoomToFit()}),[t]),r=Object(n.useCallback)((function(){t.getModel().setZoomLevel(100),t.getModel().setOffset(0,0),t.repaintCanvas()}),[t]),c=Object(n.useCallback)((function(){var e=t.getModel().getZoomLevel();t.getModel().setZoomLevel(e+20),t.repaintCanvas()}),[t]),s=Object(n.useCallback)((function(){var e=t.getModel().getZoomLevel();t.getModel().setZoomLevel(e-20),t.repaintCanvas()}),[t]);return Object(He.jsxs)("div",{className:ur("diagram-controls"),children:[Object(He.jsx)(Ye,{className:ur("btn"),title:"Zoom to fit",onClick:a,children:Object(He.jsx)(lr,{})}),Object(He.jsx)(Ye,{className:ur("btn"),title:"Reset zoom",onClick:r,children:Object(He.jsx)(tr,{})}),Object(He.jsxs)("div",{className:ur("diagram-controls-group"),children:[Object(He.jsx)(Ye,{className:ur("btn","btn-zoom-in"),title:"Zoom in",onClick:c,children:Object(He.jsx)(Wn,{})}),Object(He.jsx)(Ye,{className:ur("btn","btn-zoom-out"),title:"Zoom out",onClick:s,children:Object(He.jsx)(Kn,{})})]})]})},mr=a(55),br=a(56),pr=a(58),hr=a(57),jr=a(70),fr=a(39),vr=function(e){Object(pr.a)(a,e);var t=Object(hr.a)(a);function a(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(mr.a)(this,a),(e=t.call(this,Object(i.a)(Object(i.a)({},n),{},{type:"node-default"}))).width=80,e.height=36,e.isImperativelySelected=!1,e}return Object(br.a)(a,[{key:"setIsImperativelySelected",value:function(e){this.isImperativelySelected=e}},{key:"addPort",value:function(e){return Object(jr.a)(Object(fr.a)(a.prototype),"addPort",this).call(this,e),e}},{key:"addInPort",value:function(e){var t=new An.DefaultPortModel({in:!0,name:e,label:e});return this.addPort(t)}},{key:"addOutPort",value:function(e){var t=new An.DefaultPortModel({in:!1,name:e,label:e});return this.addPort(t)}},{key:"serialize",value:function(){return Object(i.a)(Object(i.a)({},Object(jr.a)(Object(fr.a)(a.prototype),"serialize",this).call(this)),{},{color:this.color})}},{key:"deserialize",value:function(e,t){Object(jr.a)(Object(fr.a)(a.prototype),"deserialize",this).call(this,e,t),this.color=e.color}}]),a}(An.NodeModel),Or=a(318),gr=a.n(Or),_r=D.a.bind(gr.a),xr=function(e){var t=e.engine,a=e.node;return Object(He.jsxs)("div",{className:_r("node-wrapper"),children:[Object(He.jsxs)("button",{className:_r("node-inner",{"node-inner-selected":a.isImperativelySelected},"node-inner-".concat(a.options.status)),type:"button",children:[a.getPort("in")&&Object(He.jsx)(An.PortWidget,{className:_r("port","port-in"),engine:t,port:a.getPort("in"),children:Object(He.jsx)("div",{className:_r("circle-port","circle-port-in")})}),a.getPort("out")&&Object(He.jsx)(An.PortWidget,{className:_r("port","port-out"),engine:t,port:a.getPort("out"),children:Object(He.jsx)("div",{className:_r("circle-port","circle-port-out")})}),Object(He.jsx)(rn,{className:_r("status"),status:a.options.status})]}),Object(He.jsx)("p",{className:_r("name"),children:a.options.name})]})},wr=function(e){Object(pr.a)(a,e);var t=Object(hr.a)(a);function a(){return Object(mr.a)(this,a),t.call(this,"node-default")}return Object(br.a)(a,[{key:"generateModel",value:function(){return new vr}},{key:"generateReactWidget",value:function(e){return Object(He.jsx)(xr,{engine:this.engine,node:e.model})}}]),a}(Dn.AbstractReactFactory),yr=function(e){Object(pr.a)(a,e);var t=Object(hr.a)(a);function a(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(mr.a)(this,a);var r=n.isStart,c=void 0===r||r;return(e=t.call(this,Object(i.a)(Object(i.a)({},n),{},{type:"node-edge",name:c?"Start":"Stop"}))).isStart=c,e.width=30,e.height=30,e.isStart?e.addPort(new An.DefaultPortModel({in:!1,name:"out"})):e.addPort(new An.DefaultPortModel({in:!0,name:"in"})),e}return Object(br.a)(a,[{key:"serialize",value:function(){return Object(jr.a)(Object(fr.a)(a.prototype),"serialize",this).call(this)}},{key:"deserialize",value:function(e,t){Object(jr.a)(Object(fr.a)(a.prototype),"deserialize",this).call(this,e,t)}}]),a}(An.NodeModel),Nr=["title","titleId"];function kr(){return kr=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Cr(e,t){var a=e.title,r=e.titleId,c=Er(e,Nr);return n.createElement("svg",kr({width:9,height:12,viewBox:"0 0 9 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,sr||(sr=n.createElement("path",{d:"M2.26845 0.724627C1.93557 0.471794 1.48737 0.42885 1.11214 0.613833C0.736903 0.798817 0.499633 1.17968 0.500001 1.59644L0.500001 10.4045C0.499983 10.8211 0.737385 11.2016 1.11255 11.3864C1.48771 11.5711 1.9357 11.5281 2.26845 11.2754L8.0673 6.87067C8.34 6.66343 8.5 6.34148 8.5 6C8.5 5.65852 8.34 5.33657 8.0673 5.12933L2.26845 0.724627Z",fill:"#09c270"})))}var Sr,Lr,Mr=n.forwardRef(Cr),Pr=(a.p,a(319)),Ir=a.n(Pr),Rr=D.a.bind(Ir.a),Dr=function(e){var t=e.engine,a=e.node;return Object(He.jsx)("div",{className:Rr("node-wrapper"),children:Object(He.jsxs)("button",{className:Rr("node-inner"),type:"button",children:[a.getPort("in")&&Object(He.jsx)(An.PortWidget,{className:Rr("port","port-in"),engine:t,port:a.getPort("in"),children:Object(He.jsx)("div",{className:Rr("circle-port","circle-port-in")})}),a.getPort("out")&&Object(He.jsx)(An.PortWidget,{className:Rr("port","port-out"),engine:t,port:a.getPort("out"),children:Object(He.jsx)("div",{className:Rr("circle-port","circle-port-out")})}),a.isStart?Object(He.jsx)(Mr,{}):Object(He.jsx)("i",{className:Rr("fake-icon-stop")})]})})},Ar=function(e){Object(pr.a)(a,e);var t=Object(hr.a)(a);function a(){return Object(mr.a)(this,a),t.call(this,"node-edge")}return Object(br.a)(a,[{key:"generateModel",value:function(){return new yr}},{key:"generateReactWidget",value:function(e){return Object(He.jsx)(Dr,{engine:this.engine,node:e.model})}}]),a}(Dn.AbstractReactFactory),Hr=a(320),Fr=a.n(Hr),Br=D.a.bind(Fr.a),zr=function(e,t,a){var n=e.getPort("out"),r=t.getPort("in"),c=n.link(r);c.setWidth(1),c.setColor("#2477e5"),a.push(c)},Vr=function(e){var t=e.items,a=e.nodeSelectHandler,r=e.selectedNodeNumber,c=e.graphOffsetX,s=e.graphOffsetY,l=e.kind,i=void 0===l?"step":l,o=Object(n.useMemo)((function(){return new An.DagreEngine({graph:{rankdir:"LR",ranker:"network-simplex",marginx:c,marginy:s,nodesep:35,edgesep:10,ranksep:75},includeLinks:!1})}),[c,s]),u=Object(n.useMemo)((function(){var e,n=null!==(e=null===t||void 0===t?void 0:t.map((function(e){var t=new vr({name:e.name,status:e.status,number:e.number,depends_on:e.depends_on});return t.addInPort("in"),t.addOutPort("out"),t})))&&void 0!==e?e:[];if(n.length){n.forEach((function(e){return e.registerListener({selectionChanged:function(e){var t=e.entity;Object.prototype.hasOwnProperty.call(t.options,"number")&&!["skipped","declined","waiting_on_dependencies"].includes(t.options.status)&&a(t.options.number)}})}));var r=new yr,c=new yr({isStart:!1});return[r].concat(n,c)}return n}),[t,a]),d=Object(n.useMemo)((function(){var e=[];if(function(e,t){return"stage"===t||e.some((function(e){var t;return null===(t=e.options.depends_on)||void 0===t?void 0:t.length}))}(u,i)){u.forEach((function(t,a){var n;a!==u.length-1&&(a||zr(t,u[a+1],e),(null===(n=t.options.depends_on)||void 0===n?void 0:n.length)&&u.filter((function(e){return t.options.depends_on.includes(e.options.name)})).forEach((function(a){zr(a,t,e)})))}));var t=u.slice(1,u.length-1),a=u[0],n=u[u.length-1];t.forEach((function(t){Object.keys(t.getPort("in").getLinks()).length||zr(a,t,e),Object.keys(t.getPort("out").getLinks()).length||zr(t,n,e)}))}else u.forEach((function(t,a){a!==u.length-1&&zr(t,u[a+1],e)}));return e}),[u,i]),m=Object(n.useMemo)((function(){return Hn()()}),[]),b=Object(n.useMemo)((function(){return new An.DiagramModel}),[]);return m.getNodeFactories().registerFactory(new wr),m.getNodeFactories().registerFactory(new Ar),Object(n.useLayoutEffect)((function(){u.length>=3&&u.slice(1,u.length-1).forEach((function(e){e.setIsImperativelySelected(e.getOptions().number===r)}))}),[u,r]),Object(n.useLayoutEffect)((function(){var e=b.getNodes(),t=b.getLinks();e.length&&e.map((function(e){return b.removeNode(e)})),t.length&&t.map((function(e){return b.removeLink(e)})),b.addAll.apply(b,Object(Ke.a)(u.concat(d))),o.redistribute(b),m.repaintCanvas()}),[m,b,u,d,o]),m.setModel(b),b.setLocked(!0),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)(Dn.CanvasWidget,{className:Br("diagram-wrapper"),engine:m}),Object(He.jsx)(dr,{engine:m})]})},Tr=a(321),Wr=a.n(Tr),Ur=a(710),Zr=a(711),Gr=["title","titleId"];function qr(){return qr=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Kr(e,t){var a=e.title,r=e.titleId,c=Yr(e,Gr);return n.createElement("svg",qr({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-clock",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Sr||(Sr=n.createElement("circle",{cx:12,cy:12,r:10})),Lr||(Lr=n.createElement("polyline",{points:"12 6 12 12 16 14"})))}var Jr,Qr,Xr=n.forwardRef(Kr),$r=(a.p,a(322)),ec=a.n($r),tc=D.a.bind(ec.a),ac=function(e,t){return e.toString().padStart(t?1:2,"0")},nc=function(e){var t=e.started,a=e.finished,n=e.withLetters,r=void 0!==n&&n;if(!t||!a)return"";var c=Object(Ur.a)({start:new Date(1e3*t),end:new Date(1e3*a)}),s=c.days,l=c.hours,i=c.minutes,o=c.seconds;return r?"".concat(s?"".concat(ac(s,r),"d"):""," ").concat(l?"".concat(ac(l,r),"h"):""," ").concat(ac(i,r),"m ").concat(ac(o,r),"s"):"".concat(s?"".concat(ac(s)):""," ").concat(l?"".concat(ac(l),":"):"").concat(ac(i),":").concat(ac(o))},rc=function(e){var t=e.className,a=e.withIcon,n=e.label,r=e.elapsed;return Object(He.jsxs)("div",{className:tc("elapsed-static",t||""),children:[a?Object(He.jsx)(Xr,{}):null,n&&Object(He.jsxs)("span",{children:[n,"\xa0"]}),r]})},cc=function(e){var t=e.started,a=e.className,n=e.withIcon,c=e.withLetters,s=e.label,l=function(e){var t=e.started,a=e.withLetters,n=r.a.useState((function(){return nc({started:t,finished:Date.now()/1e3,withLetters:a})})),c=Object(o.a)(n,2),s=c[0],l=c[1];return r.a.useEffect((function(){var e=setInterval((function(){l(nc({started:t,finished:Date.now()/1e3,withLetters:a}))}),1e3);return function(){return clearInterval(e)}}),[t,a]),s}({started:t,withLetters:c});return Object(He.jsx)(rc,{className:a,elapsed:l,withIcon:n,label:s})},sc=function(e){var t=e.className,a=e.started,n=e.finished,r=e.withIcon,c=e.withLetters,s=e.since,l=e.label,i=s?function(e){var t=e.dateSince;return Object(Zr.a)(1e3*t,{addSuffix:!0})}({dateSince:n}):nc({started:a,finished:n,withLetters:c});return Object(He.jsx)(rc,{elapsed:i,withIcon:r,className:t,label:l})},lc=function(e){var t=e.started,a=e.finished;return t&&!a?Object(He.jsx)(cc,Object(i.a)({},e)):Object(He.jsx)(sc,Object(i.a)({},e))},ic=["title","titleId"];function oc(){return oc=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function dc(e,t){var a=e.title,r=e.titleId,c=uc(e,ic);return n.createElement("svg",oc({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Jr||(Jr=n.createElement("path",{d:"M0.794117 14C0.590885 14 0.387653 13.9224 0.232582 13.7674C-0.0775275 13.4573 -0.0775275 12.9544 0.232582 12.6443L12.6443 0.232582C12.9545 -0.0775274 13.4573 -0.0775274 13.7674 0.232582C14.0775 0.542707 14.0775 1.04554 13.7674 1.35568L1.35564 13.7674C1.20058 13.9224 0.997349 14 0.794102 14L0.794117 14Z",fill:"currentColor"})),Qr||(Qr=n.createElement("path",{d:"M13.2059 14C13.0027 14 12.7994 13.9225 12.6444 13.7674L0.232582 1.35567C-0.0775275 1.04556 -0.0775275 0.542707 0.232582 0.232582C0.542739 -0.0775274 1.04557 -0.0775274 1.35568 0.232582L13.7674 12.6443C14.0775 12.9544 14.0775 13.4573 13.7674 13.7674C13.6124 13.9225 13.4091 14 13.2059 14H13.2059Z",fill:"currentColor"})))}var mc,bc,pc,hc=n.forwardRef(dc),jc=(a.p,["title","titleId"]);function fc(){return fc=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Oc(e,t){var a=e.title,r=e.titleId,c=vc(e,jc);return n.createElement("svg",fc({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-download",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,mc||(mc=n.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"})),bc||(bc=n.createElement("polyline",{points:"7 10 12 15 17 10"})),pc||(pc=n.createElement("line",{x1:12,y1:15,x2:12,y2:3})))}var gc,_c,xc=n.forwardRef(Oc),wc=(a.p,["title","titleId"]);function yc(){return yc=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function kc(e,t){var a=e.title,r=e.titleId,c=Nc(e,wc);return n.createElement("svg",yc({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-eye-off",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,gc||(gc=n.createElement("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"})),_c||(_c=n.createElement("line",{x1:1,y1:1,x2:23,y2:23})))}var Ec,Cc,Sc=n.forwardRef(kc),Lc=(a.p,["title","titleId"]);function Mc(){return Mc=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Ic(e,t){var a=e.title,r=e.titleId,c=Pc(e,Lc);return n.createElement("svg",Mc({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-eye",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ec||(Ec=n.createElement("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"})),Cc||(Cc=n.createElement("circle",{cx:12,cy:12,r:3})))}var Rc=n.forwardRef(Ic),Dc=(a.p,a(323)),Ac=a.n(Dc),Hc=function(e,t,a){switch(e){case"error":return t;case"failure":return"Exit Code ".concat(a);case"success":return"Exit Code 0";case"running":return"Step is running...";case"pending":return"Step is pending";case"killed":return"Step is killed (canceled)";case"skipped":return t?"Skipped due to error":"Skipped";default:return"Loading..."}},Fc=function(e,t){var a=null===e||void 0===e?void 0:e.length;if(!t&&a&&a>v){var n=Math.floor(a/v),r=a%v;return e.slice((n-1)*v+r)}return e},Bc=(a(706),D.a.bind(Ac.a)),zc=function(e){var t=e.areLogsLoading,a=e.toggleFollowLogs,n=e.shouldFollowLogs,r=e.handleDownloadClick,c=e.showDownloadBtn,s=e.showCloseBtn,l=e.showFollowLogsBtn,i=e.onCloseBtnClick;return Object(He.jsx)("header",{className:Bc("header"),children:Object(He.jsxs)("div",{className:Bc("header-inner"),children:[Object(He.jsx)("div",{className:Bc("info"),children:Object(He.jsx)("h3",{children:"Console Logs"})}),!t&&Object(He.jsxs)("div",{className:Bc("controls"),children:[l&&Object(He.jsx)(Ye,{className:Bc("controls-logs-toggler"),title:n?"Stop following logs":"Follow logs",onClick:a,children:n?Object(He.jsx)(Sc,{}):Object(He.jsx)(Rc,{})}),c&&Object(He.jsx)(Ye,{onClick:r,children:Object(He.jsx)(xc,{})}),s&&Object(He.jsx)(Ye,{className:Bc("btn-close"),onClick:i,children:Object(He.jsx)(hc,{})})]})]})})};zc.defaultProps={showFollowLogsBtn:!1,showDownloadBtn:!1,showCloseBtn:!1,onCloseBtnClick:void 0};var Vc=function(e){var t=e.stepStatus,a=e.stepError,n=e.stepExitCode,r=e.tmateLink,c=e.stageError,s=e.stageStatus;return Object(He.jsx)("footer",{className:Bc("footer"),children:Object(He.jsxs)("div",{className:Bc("summary"),children:[Object(He.jsxs)("div",{className:Bc("summary-info"),children:[(t||s)&&Object(He.jsx)(rn,{className:Bc("summary-status"),status:t||s}),Hc(t||s,a||c,n)]}),Object(He.jsx)("div",{className:Bc("summary-controls"),children:r?Object(He.jsx)("a",{className:Bc("tmate-link"),href:r,target:"_blank",rel:"noopener noreferrer",children:"Open Remote Session"}):null})]})})};Vc.defaultProps={stepStatus:"",stepError:"",stepExitCode:void 0,tmateLink:""};var Tc=function(e){var t=e.shouldShow,a=e.handleShowAllLogsClick;return t?Object(He.jsx)(Ye,{className:Bc("btn-show-all-logs"),onClick:a,children:"Show all logs"}):null},Wc=function(e){return e.shouldShow?Object(He.jsx)("div",{className:Bc("line-number"),children:"Loading..."}):null},Uc=function(e){var t=e.out,a=e.pos,n=e.html,r=e.time;return Object(He.jsxs)("div",{className:Bc("line"),children:[Object(He.jsx)("span",{className:Bc("line-number"),children:a+1}),n?Object(He.jsx)("span",{className:D()("loc-html",Bc("line-content")),dangerouslySetInnerHTML:{__html:n}}):Object(He.jsx)("span",{className:Bc("line-content"),children:t}),Object(He.jsx)("span",{className:Bc("line-time"),children:"".concat(r,"s")})]},a)},Zc=function(e){var t=e.error;return Object(He.jsxs)("div",{className:Bc("stage-error"),children:[Object(He.jsx)(rn,{className:Bc("status"),status:"error"}),Object(He.jsx)("span",{className:Bc("text"),children:t})]})},Gc=r.a.forwardRef((function(e,t){var a=e.className,r=e.height,c=e.showHeader,s=e.showFooter,l=e.shownLogsLimit,u=e.tmateLink,d=e.logs,m=e.showLogsLoadingLine,b=e.areLogsLoading,p=e.stepData,h=e.showDownloadBtn,j=e.showFollowLogsBtn,f=e.logsBlobName,v=e.showCloseBtn,O=e.onCloseBtnClick,g=e.stageError,_=e.stageStatus,x=Object(n.useState)(!1),w=Object(o.a)(x,2),y=w[0],N=w[1],k=Object(n.useState)(!1),E=Object(o.a)(k,2),C=E[0],S=E[1],L=Object(n.useRef)();return Object(n.useEffect)((function(){var e;C&&"running"===p.status&&d.length?null===(e=L.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}):S(!1)}),[C,p.status,d.length]),Object(He.jsxs)("div",{className:Bc("wrapper",a),ref:t,style:{height:r},children:[c&&Object(He.jsx)(zc,{areLogsLoading:b,showDownloadBtn:h,showFollowLogsBtn:j,showCloseBtn:v,shouldFollowLogs:C,toggleFollowLogs:function(){return S((function(e){return!e}))},handleDownloadClick:function(){return function(e,t){for(var a="",n=0;nl&&!y,handleShowAllLogsClick:function(){return N(!0)}}),g&&Object(He.jsx)(Zc,{error:g}),Object(He.jsxs)("code",{className:D()("ansi-hook",Bc("output")),children:[Object(He.jsx)(Wc,{shouldShow:m}),d.length&&!b?Fc(d,y).map((function(e){return Object(n.createElement)(Uc,Object(i.a)(Object(i.a)({},e),{},{key:e.pos}))})):null,Object(He.jsx)("div",{ref:L})]})]}),s&&Object(He.jsx)(Vc,{stepStatus:p.status,stepError:p.error,stepExitCode:p.exit_code,tmateLink:u,stageError:g,stageStatus:_})]})}));Gc.defaultProps={areLogsLoading:!0,showHeader:!0,showFooter:!0,shownLogsLimit:250,tmateLink:"",logs:[],showLogsLoadingLine:!1,stepData:{},showDownloadBtn:!1,showFollowLogsBtn:!1,showCloseBtn:!1,onCloseBtnClick:void 0,logsBlobName:"step_logs",stageError:null,stageStatus:null};var qc=Gc,Yc=a(324),Kc=a.n(Yc),Jc=function(e,t,a){if(e&&"running"===t&&a){var n=e.find((function(e){return e.out.startsWith("web session: ")}));return n?n.out.replace("web session: ","").replace("\n",""):""}return""},Qc=function(e){var t=e.stageStatus,a=e.stepStatus,n=e.logsExist,r=e.currentCompState;if("error"===t)return N;switch(a){case"skipped":return y;case"error":return N;case"killed":return n?w:r;case"failure":return w;case"running":return x;case"pending":case"waiting_on_dependencies":return _;case"success":return r!==_||n?n?w:y:w;default:return r}},Xc=function(e){var t,a=e.buildStatus,n=e.state;switch(a){case"declined":return y;case"error":case"killed":return"skipped"===n.stageStatus?y:(null===(t=n.logs)||void 0===t?void 0:t.length)||n.compState===_?n.compState:y;default:return n.compState}},$c="toggle_logs_following",es="set_show_all_logs",ts="update_is_data_loading",as="update_build_status",ns="update_stage_status",rs="update_stage_name",cs="update_stage_error",ss="update_step_data",ls="update_logs_hook_error",is="update_logs",os="update_are_logs_loading",us="update_has_build_debug_mode",ds="set_logs",ms="batch_update_logs",bs=function(e){var t=e.isDataLoading,a=e.hasBuildDebugMode,n=e.buildStatus,r=e.stageStatus,c=e.stageName,s=e.stageError,l=e.stepData,i=void 0===l?{}:l,o=_;return t||[n,r,i.status].includes("pending")?o=_:"error"===r?o=N:"running"===i.status&&(o=x),{compState:o,shouldFollowLogs:!1,showAllLogs:!1,logs:[],stepData:i,isDataLoading:t,stageName:c,stageStatus:r,stageError:s,buildStatus:n,logsHookError:{},tmateLink:"",hasBuildDebugMode:a}},ps=function(e,t){var a,n,r,c,s;switch(t.type){case $c:return Object(i.a)(Object(i.a)({},e),{},{shouldFollowLogs:!e.shouldFollowLogs});case es:return Object(i.a)(Object(i.a)({},e),{},{showAllLogs:!0});case as:return Object(i.a)(Object(i.a)({},e),{},{buildStatus:t.payload,compState:Xc({buildStatus:t.payload,state:e})});case us:return Object(i.a)(Object(i.a)({},e),{},{hasBuildDebugMode:t.payload});case ns:return Object(i.a)(Object(i.a)({},e),{},{stageStatus:t.payload,compState:"error"===t.payload?N:e.compState});case rs:return Object(i.a)(Object(i.a)({},e),{},{stageName:t.payload});case ts:return Object(i.a)(Object(i.a)({},e),{},{isDataLoading:t.payload,compState:t.payload?_:Qc({stageStatus:e.stageStatus,stepStatus:e.stepData.status,logsExist:null===(a=e.logs)||void 0===a?void 0:a.length,currentCompState:e.compState})});case ss:return Object(i.a)(Object(i.a)({},e),{},{stepData:Object(i.a)({},t.payload),compState:Qc({stageStatus:e.stageStatus,stepStatus:null===(n=t.payload)||void 0===n?void 0:n.status,logsExist:null===(r=e.logs)||void 0===r?void 0:r.length,currentCompState:e.compState})});case ls:return Object(i.a)(Object(i.a)({},e),{},{logsHookError:t.payload,compState:t.payload?N:e.compState});case is:return Object(i.a)(Object(i.a)({},e),{},{logs:e.logs.concat(t.payload),tmateLink:e.tmateLink||Jc(t.payload,e.stepData.status,e.hasBuildDebugMode)});case ms:return Object(i.a)(Object(i.a)({},e),{},{logs:(c=e.logs).concat.apply(c,Object(Ke.a)(t.payload)),tmateLink:e.tmateLink||Jc(t.payload,e.stepData.status,e.hasBuildDebugMode)});case ds:return Object(i.a)(Object(i.a)({},e),{},{logs:t.payload,compState:t.payload.length||e.compState===_?e.compState:y});case os:return Object(i.a)(Object(i.a)({},e),{},{compState:t.payload?_:Qc({stageStatus:e.stageStatus,stepStatus:e.stepData.status,logsExist:null===(s=e.logs)||void 0===s?void 0:s.length,currentCompState:e.compState})});case cs:return Object(i.a)(Object(i.a)({},e),{},{stageError:e.compState===y?t.payload:void 0,compState:t.payload.length||e.compState===_?e.compState:y});default:return e}},hs=D.a.bind(Kc.a),js=function(e){var t=e.className,a=e.children,n=e.style;return Object(He.jsx)("div",{className:hs("non-logs-container",t),"data-container":"non-logs",style:n,children:a})},fs={setLogs:ds,setError:ls,setIsLoading:os},vs=["running","pending","skipped","waiting_on_dependencies"],Os=vs.slice(1);function gs(e){var t,a=e.consoleProps,r=e.hasBuildDebugMode,c=e.isDataLoading,s=e.stageStatus,l=e.stageName,u=e.stepData,d=e.buildStatus,m=e.stageError,p=Object(b.i)(),O=Object(n.useReducer)(ps,e,bs),g=Object(o.a)(O,2),y=g[0],N=g[1],E="logs_".concat(p.namespace,"_").concat(p.name,"_").concat(p.build,"_").concat(p.stage,"_").concat(p.step),C=F(),S=C.dynamicHeightRef,L=C.dynamicHeight;return function(e,t,a,r){var c=a.namespace,s=a.name,l=a.build,i=a.stage,o=void 0===i?1:i,u=a.step,d=void 0===u?1:u,m=Object(h.b)((function(){return!0===r?"/api/repos/".concat(c,"/").concat(s,"/builds/").concat(l,"/logs/").concat(o,"/").concat(d):null})),b=m.data,p=m.error,j=Object(n.useMemo)((function(){return At(b)}),[b]);Object(n.useEffect)((function(){r&&j.length&&e({type:t.setLogs,payload:j})}),[e,j,t.setLogs,r]),Object(n.useEffect)((function(){r&&e(void 0!==b||p?{type:t.setIsLoading,payload:!1}:{type:t.setIsLoading,payload:!0})}),[e,b,t.setIsLoading,r,p]),Object(n.useEffect)((function(){r&&e({type:t.setError,payload:p})}),[p,e,r,t.setError])}(N,fs,p,y.compState!==x&&!!y.stageStatus&&!!y.stepData.status&&!Os.includes(y.stageStatus)&&!vs.includes(y.stepData.status)),function(e,t,a,r){var c=a.namespace,s=a.name,l=a.build,i=a.stage,u=void 0===i?1:i,d=a.step,m=void 0===d?1:d,b=Object(n.useState)(),p=Object(o.a)(b,2)[1],h=Object(n.useRef)(),v=Object(n.useRef)(null),O=Object(n.useRef)([]),g=Object(n.useMemo)((function(){var e="".concat(c,"/").concat(s,"/").concat(l,"/").concat(u,"/").concat(m);return r?"".concat(f,"/api/stream/").concat(e).concat(j?"?access_token=".concat(j):""):"/api/repos/".concat(e)}),[r,c,s,l,u,m]),_=Object(n.useCallback)((function(a){var n=At(JSON.parse(a.data));O.current.push(n),v.current||(v.current=setTimeout((function(){e({type:t,payload:O.current}),O.current=[],v.current=null}),250))}),[e,t]),x=Object(n.useCallback)((function(e,t){var a;"eof"!==(null===e||void 0===e?void 0:e.data)&&t?p():null===(a=h.current)||void 0===a||a.close()}),[]);Object(n.useEffect)((function(){var e;return r?(null===(e=h.current)||void 0===e||e.close(),h.current=new EventSource(g),h.current.onmessage=_,h.current.onerror=x):x(),function(){return x(void 0,!1)}}),[r,x,g,_])}(N,ms,p,y.compState===x),Object(n.useLayoutEffect)((function(){return N({type:ds,payload:[]}),function(){N({type:ds,payload:[]})}}),[p.stage,p.step]),Object(n.useEffect)((function(){N({type:us,payload:r})}),[r]),Object(n.useLayoutEffect)((function(){N({type:ts,payload:c})}),[c]),Object(n.useEffect)((function(){s&&N({type:ns,payload:s})}),[s]),Object(n.useEffect)((function(){l&&N({type:rs,payload:l})}),[l]),Object(n.useEffect)((function(){N({type:ss,payload:u})}),[u]),Object(n.useEffect)((function(){d&&N({type:as,payload:d})}),[d]),Object(n.useEffect)((function(){m&&N({type:cs,payload:m})}),[m]),(null===y||void 0===y?void 0:y.compState)===k?null:Object(He.jsx)(qc,Object(i.a)({ref:S,height:L,shownLogsLimit:v,tmateLink:y.tmateLink,logs:y.logs,showLogsLoadingLine:y.compState===_||y.compState===x&&!y.logs.length,areLogsLoading:y.compState===_,stepData:y.stepData,showDownloadBtn:(null===(t=y.stepData)||void 0===t?void 0:t.stopped)&&y.compState===w,showFollowLogsBtn:y.compState===x,logsBlobName:E,stageError:m,stageStatus:s},a))}gs.defaultProps={stepData:{},hasBuildDebugMode:!1,buildStatus:"",stageStatus:"",stageName:"",stageError:void 0,consoleProps:{showHeader:!0,showFooter:!0}},js.defaultProps={style:void 0};var _s=a(325),xs=a.n(_s),ws=D.a.bind(xs.a),ys=function(e){var t,a,r,c,s,l,i,o=e.data,u=e.isDataLoading,d=e.isShown,m=e.hide,p=Object(b.i)(),h=p.stage,j=void 0===h?1:h,f=p.step,v=void 0===f?1:f,O=null===o||void 0===o||null===(t=o.stages[j-1])||void 0===t?void 0:t.machine,g=null===o||void 0===o||null===(a=o.stages[j-1])||void 0===a||null===(r=a.steps)||void 0===r?void 0:r[v-1],_=Object(n.useRef)();if(!d||!g)return null;return Object(He.jsxs)("div",{className:ws("step"),ref:_,children:[Object(He.jsxs)("div",{className:ws("step-header"),children:[Object(He.jsx)(rn,{className:ws("status"),status:null===g||void 0===g?void 0:g.status}),Object(He.jsx)("h3",{className:ws("heading"),children:null===g||void 0===g?void 0:g.name}),Object(He.jsx)(Ye,{onClick:function(){_.current.classList.add(ws("slide-out")),setTimeout(m,200)},children:Object(He.jsx)(hc,{})})]}),Object(He.jsx)("div",{className:ws("step-meta"),children:["pending","skipped","blocked","waiting_on_dependencies"].includes(null===g||void 0===g?void 0:g.status)?Object(He.jsx)("div",{children:"Step data is unavailable"}):Object(He.jsxs)("dl",{children:[Object(He.jsx)("dt",{children:"Started:"}),Object(He.jsx)("dd",{children:nt({date:null===g||void 0===g?void 0:g.started})}),(null===g||void 0===g?void 0:g.stopped)&&Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("dt",{children:"Finished:"}),Object(He.jsx)("dd",{children:nt({date:null===g||void 0===g?void 0:g.stopped})})]}),Object(He.jsx)("dt",{children:"Duration:"}),Object(He.jsx)("dd",{children:Object(He.jsx)(lc,{started:null===g||void 0===g?void 0:g.started,finished:null===g||void 0===g?void 0:g.stopped,withLetters:!0})}),Object(He.jsx)("dt",{children:"Runner:"}),Object(He.jsx)("dd",{children:O})]})}),Object(He.jsx)(gs,{isDataLoading:u,hasBuildDebugMode:(null===o||void 0===o?void 0:o.debug)||!1,buildStatus:null===o||void 0===o?void 0:o.status,stageStatus:null===o||void 0===o||null===(c=o.stages)||void 0===c||null===(s=c[j-1])||void 0===s?void 0:s.status,stageName:null===o||void 0===o||null===(l=o.stages)||void 0===l||null===(i=l[j-1])||void 0===i?void 0:i.name,stepData:g,consoleProps:{showFooter:!1,showHeader:!0}})]})};ys.defaultProps={data:void 0};var Ns,ks=ys,Es=D.a.bind(Wr.a),Cs=function(e){var t,a,r=e.data,c=e.isDataLoading,s=Object(b.i)(),l=s.namespace,i=s.name,u=s.build,d=s.stage,m=void 0===d?1:d,p=s.step,h=void 0===p?1:p,j=Object(b.g)(),f=Object(n.useState)(!1),v=Object(o.a)(f,2),O=v[0],g=v[1],_=F((function(e){return e})),x=_.dynamicHeightRef,w=_.dynamicHeight;return Object(He.jsxs)("section",{className:Es("graph-wrapper"),ref:x,style:{height:w},children:[Object(He.jsxs)(Rn.a,{split:"horizontal",minSize:190,defaultSize:w/2,maxSize:w-190,children:[Object(He.jsx)("div",{className:Es("graph-stages"),children:Object(He.jsx)(Vr,{kind:"stage",items:null===r||void 0===r?void 0:r.stages,nodeSelectHandler:function(e){j.replace("/".concat(l,"/").concat(i,"/").concat(u,"/").concat(e,"/1"))},selectedNodeNumber:m,graphOffsetX:60,graphOffsetY:60})}),Object(He.jsx)("div",{className:Es("graph-steps"),children:Object(He.jsx)(Vr,{items:null===r||void 0===r||null===(t=r.stages)||void 0===t||null===(a=t[m-1])||void 0===a?void 0:a.steps,nodeSelectHandler:function(e){g(!0),j.replace("/".concat(l,"/").concat(i,"/").concat(u,"/").concat(m,"/").concat(e))},selectedNodeNumber:h,graphOffsetX:60,graphOffsetY:60})})]}),Object(He.jsx)(ks,{isShown:O,hide:function(){return g(!1)},isDataLoading:c,data:r})]})},Ss=a(326),Ls=a.n(Ss),Ms=D.a.bind(Ls.a),Ps=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Object(n.useState)(e),a=Object(o.a)(t,2),r=a[0],c=a[1],s=function(){return c(!r)};return[r,s]},Is=function(e){var t=e.isShowing,a=e.title,r=e.children,c=e.hide,l=e.mode,i=void 0===l?"default":l,o=Object(n.useRef)(null);return U(o,c),Object(n.useLayoutEffect)((function(){return window.document.body.style.overflow=t?"hidden":"unset",function(){return window.document.body.style.overflow="unset"}}),[t]),t?s.a.createPortal(Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Ms("overlay")}),Object(He.jsx)("div",{className:Ms("modal-wrapper","".concat(i)),tabIndex:-1,role:"dialog","aria-modal":!0,"aria-hidden":!0,children:Object(He.jsxs)("div",{className:Ms("modal-inner"),ref:o,children:[Object(He.jsxs)("header",{className:Ms("modal-header"),children:[Object(He.jsx)("h3",{className:Ms("modal-title"),children:a}),Object(He.jsx)(Ye,{theme:"plain",type:"button",onClick:c,children:Object(He.jsx)(hc,{})})]}),Object(He.jsx)("div",{className:Ms("modal-content"),children:r})]})})]}),document.body):null},Rs=a(327),Ds=a.n(Rs),As=["title","titleId"];function Hs(){return Hs=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Bs(e,t){var a=e.title,r=e.titleId,c=Fs(e,As);return n.createElement("svg",Hs({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-chevron-down",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ns||(Ns=n.createElement("polyline",{points:"6 9 12 15 18 9"})))}var zs=n.forwardRef(Bs),Vs=(a.p,a(328)),Ts=a.n(Vs),Ws=D.a.bind(Ts.a);function Us(e){var t=e.isDataLoading,a=e.stages,n=void 0===a?[]:a,r=e.className,c=e.onStepClick,s=Object(b.i)(),l=s.namespace,i=s.name,o=s.build,u=s.stage,d=void 0===u?1:u,m=F(),p=m.dynamicHeight,h=m.dynamicHeightRef;return Object(He.jsxs)("div",{className:Ws("wrapper"),children:[Object(He.jsxs)("div",{className:Ws("header"),children:[Object(He.jsx)("h3",{className:Ws("title"),children:"Pipeline stages"}),Object(He.jsx)("span",{className:Ws("counter"),children:t?null:"".concat(n.length," ").concat(1===n.length?"stage":"stages")})]}),Object(He.jsx)("nav",{className:D()(Ws("inner"),r),ref:h,style:{height:p},children:t?Object(He.jsx)("div",{className:Ws("stage"),children:Object(He.jsx)("h3",{className:Ws("stage-header"),children:"Loading..."})}):n.map((function(e){var t=e.id,a=e.name,n=e.status,r=e.started,s=e.stopped,u=e.steps,m=e.number,b=e.error;return!(null===u||void 0===u?void 0:u.length)||["skipped","blocked","pending","waiting_on_dependencies"].includes(n)?Object(He.jsx)(Gs,{stageId:t,stageName:a,stageStatus:n,stageStarted:r,stageStopped:s,namespace:l,name:i,build:o,stageNumber:m},t):Object(He.jsx)(Zs,{stageId:t,stageName:a,stageStatus:n,stageStarted:r,stageStopped:s,stageNumber:m,steps:u,namespace:l,name:i,build:o,stageInPath:Number(d),error:b,onStepClick:c},t)}))})]})}var Zs=function(e){var t=e.stageStatus,a=e.stageName,r=e.stageStarted,c=e.stageNumber,s=e.stageStopped,i=e.steps,u=e.name,d=e.namespace,m=e.build,b=e.stageInPath,p=e.onStepClick,h=Object(n.useState)(c===b),j=Object(o.a)(h,2),f=j[0],v=j[1];return Object(He.jsxs)("div",{className:Ws("stage",{"stage-expanded":f}),children:[Object(He.jsxs)("button",{type:"button",className:Ws("stage-header",{"stage-header-expanded":f}),onClick:function(){return v((function(e){return!e}))},children:[Object(He.jsx)(zs,{className:Ws("chevron")}),Object(He.jsx)(rn,{className:Ws("stage-status"),status:t}),Object(He.jsx)("span",{className:Ws("name"),children:a}),Object(He.jsx)(lc,{className:Ws("time"),started:r,finished:s})]}),f&&Object(He.jsxs)("ul",{className:Ws("stage-steps"),children:[Object(He.jsxs)("li",{className:Ws("steps-header"),children:["Steps",Object(He.jsx)("i",{className:Ws("divider")})]}),i.sort((function(e,t){return e.number-t.number})).map((function(e,t){var a=e.id,n=e.status,r=e.name,s=e.started,i=e.stopped,o=e.number;return Object(He.jsx)("li",{children:Object(He.jsxs)(l.c,{activeClassName:Ws("stage-step-active"),className:Ws("stage-step"),isActive:t?void 0:function(e,t){var a=!!t.pathname.split("/")[4];return e||c===b&&!a},to:"/".concat(d,"/").concat(u,"/").concat(m,"/").concat(c,"/").concat(o),title:r,exact:!0,onClick:p,children:[Object(He.jsx)(rn,{className:Ws("status"),status:n}),Object(He.jsx)("span",{className:Ws("name"),children:r}),Object(He.jsx)(lc,{className:Ws("time"),started:s,finished:i})]})},a)}))]})]})},Gs=function(e){var t=e.stageStatus,a=e.stageName,n=e.stageStarted,r=e.stageStopped,c=e.namespace,s=e.name,i=e.build,o=e.stageNumber;return Object(He.jsx)(l.c,{activeClassName:Ws("stage-active"),className:Ws("stage"),to:"/".concat(c,"/").concat(s,"/").concat(i,"/").concat(o),exact:!0,children:Object(He.jsxs)("h3",{className:Ws("stage-header"),children:[Object(He.jsx)(zs,{className:Ws("chevron-hidden")}),Object(He.jsx)(rn,{className:Ws("stage-status"),status:t}),Object(He.jsx)("span",{className:Ws("name"),children:a}),Object(He.jsx)(lc,{className:Ws("time"),started:n,finished:r})]})})};Us.defaultProps={stages:[]};var qs,Ys,Ks,Js,Qs,Xs,$s=D.a.bind(Ds.a),el=function(e){var t,a,r,c,s,l,i,u,d,m,p,h,j,f,v,O,g=Object(b.i)(),_=g.stage,x=void 0===_?1:_,w=g.step,y=void 0===w?1:w,N=e.isDataLoading,k=e.data,E=Ps(),C=Object(o.a)(E,2),S=C[0],L=C[1],M=Object(n.useState)(!1),P=Object(o.a)(M,2),I=P[0],R=P[1],D=Object(n.useCallback)((function(){return I?L():{}}),[I,L]);return Object(n.useLayoutEffect)((function(){window.innerWidth<768&&R(!0)}),[]),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("section",{className:$s("page-wrapper"),children:Object(He.jsxs)("div",{className:$s("inner"),children:[Object(He.jsx)(Us,{isDataLoading:N,className:$s("navbar"),stages:null===k||void 0===k?void 0:k.stages,onStepClick:D}),Object(He.jsx)("div",{className:$s("logs"),children:Object(He.jsx)(gs,{isDataLoading:N,hasBuildDebugMode:(null===k||void 0===k?void 0:k.debug)||!1,buildStatus:null===k||void 0===k?void 0:k.status,stageStatus:null===k||void 0===k||null===(t=k.stages)||void 0===t||null===(a=t[x-1])||void 0===a?void 0:a.status,stageName:null===k||void 0===k||null===(r=k.stages)||void 0===r||null===(c=r[x-1])||void 0===c?void 0:c.name,stageError:null===k||void 0===k||null===(s=k.stages)||void 0===s||null===(l=s[x-1])||void 0===l?void 0:l.error,stepData:null===k||void 0===k||null===(i=k.stages)||void 0===i||null===(u=i[x-1])||void 0===u||null===(d=u.steps)||void 0===d?void 0:d[y-1]})})]})}),Object(He.jsx)(Is,{isShowing:S,mode:"fullscreen",hide:L,children:Object(He.jsx)(gs,{consoleProps:{showCloseBtn:!0,onCloseBtnClick:L,className:$s("console-mobile")},isDataLoading:N,hasBuildDebugMode:(null===k||void 0===k?void 0:k.debug)||!1,buildStatus:null===k||void 0===k?void 0:k.status,stageStatus:null===k||void 0===k||null===(m=k.stages)||void 0===m||null===(p=m[x-1])||void 0===p?void 0:p.status,stageName:null===k||void 0===k||null===(h=k.stages)||void 0===h||null===(j=h[x-1])||void 0===j?void 0:j.name,stepData:null===k||void 0===k||null===(f=k.stages)||void 0===f||null===(v=f[x-1])||void 0===v||null===(O=v.steps)||void 0===O?void 0:O[y-1]})})]})},tl=["title","titleId"];function al(){return al=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function rl(e,t){var a=e.title,r=e.titleId,c=nl(e,tl);return n.createElement("svg",al({width:101,height:80,viewBox:"0 0 101 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,qs||(qs=n.createElement("path",{opacity:.8,d:"M40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80C17.9086 80 0 62.0914 0 40C0 17.9086 17.9086 0 40 0Z",fill:"url(#paint0_linear)"})),Ys||(Ys=n.createElement("path",{d:"M80 38.5C72.5 44.5 34 64 0 38.5V43.5L0.5 46.5L1 49.5L2 52.5C36 67 49.5 63 77 53L78 52.5L78.5 51L79 49L79.5 47L79.75 44.75L80 43V41V38.5Z",fill:"#f8f9fa"})),Ks||(Ks=n.createElement("path",{d:"M40.3 69.8C52.0637 69.8 61.6 62.9052 61.6 54.4C61.6 45.8948 52.0637 39 40.3 39C28.5363 39 19 45.8948 19 54.4C19 62.9052 28.5363 69.8 40.3 69.8Z",fill:"#f8f9fa"})),Js||(Js=n.createElement("path",{d:"M40.3004 64.0031C47.1487 64.0031 52.7004 60.0185 52.7004 55.1031C52.7004 50.1878 47.1487 46.2031 40.3004 46.2031C33.4521 46.2031 27.9004 50.1878 27.9004 55.1031C27.9004 60.0185 33.4521 64.0031 40.3004 64.0031Z",fill:"url(#paint1_linear)"})),Qs||(Qs=n.createElement("path",{d:"M50.9062 23.7969V13.2031L44.9844 23.7969H50.9062ZM49.2188 31C48.7188 31 48.3802 30.9219 48.2031 30.7656C48.026 30.599 47.9375 30.3021 47.9375 29.875C47.9375 29.5 48.026 29.2292 48.2031 29.0625C48.3906 28.8854 48.6875 28.7969 49.0938 28.7969H50.9062V26.1719H43.6094C43.349 26.1719 43.1458 26.0885 43 25.9219C42.8542 25.7552 42.7812 25.5156 42.7812 25.2031V24.125C42.7812 23.7083 42.9323 23.2708 43.2344 22.8125C43.2865 22.7292 43.3281 22.6615 43.3594 22.6094L49.9531 11.4219C50.099 11.1615 50.2188 10.9948 50.3125 10.9219C50.4062 10.849 50.5312 10.8125 50.6875 10.8125C50.75 10.8125 50.8594 10.8229 51.0156 10.8438C51.0573 10.8542 51.099 10.8646 51.1406 10.875L52.7344 11.125C52.8802 11.1458 52.9948 11.2292 53.0781 11.375C53.1719 11.5104 53.2188 11.6927 53.2188 11.9219V23.7969H54.0156C54.2448 23.7969 54.4219 23.7083 54.5469 23.5312C54.6719 23.3438 54.8125 23.25 54.9688 23.25C55.1771 23.25 55.3542 23.3281 55.5 23.4844C55.6458 23.6406 55.7188 23.8333 55.7188 24.0625C55.7188 24.1562 55.7135 24.2448 55.7031 24.3281C55.6927 24.401 55.6719 24.4792 55.6406 24.5625L55.5156 25.2031C55.4427 25.5781 55.3333 25.8333 55.1875 25.9688C55.0521 26.1042 54.8333 26.1719 54.5312 26.1719H53.2188V28.7969H53.7656C54.4323 28.7969 54.8906 28.8802 55.1406 29.0469C55.3906 29.2031 55.5156 29.4792 55.5156 29.875C55.5156 30.25 55.4115 30.5312 55.2031 30.7188C54.9948 30.9062 54.6823 31 54.2656 31H49.2188ZM70.4125 13.0156C69.2146 13.0156 68.2823 13.724 67.6156 15.1406C66.949 16.5573 66.6156 18.5573 66.6156 21.1406C66.6156 23.7344 66.949 25.7448 67.6156 27.1719C68.2823 28.5885 69.2146 29.2969 70.4125 29.2969C71.6208 29.2969 72.5583 28.5885 73.225 27.1719C73.8917 25.7448 74.225 23.7344 74.225 21.1406C74.225 18.5573 73.8917 16.5573 73.225 15.1406C72.5583 13.724 71.6208 13.0156 70.4125 13.0156ZM70.4125 31.5156C68.4542 31.5156 66.8969 30.5938 65.7406 28.75C64.5948 26.8958 64.0219 24.3594 64.0219 21.1406C64.0219 17.9323 64.5948 15.4062 65.7406 13.5625C66.8969 11.7083 68.4542 10.7812 70.4125 10.7812C72.3708 10.7812 73.9281 11.7083 75.0844 13.5625C76.2406 15.4167 76.8188 17.9427 76.8188 21.1406C76.8188 24.3385 76.2406 26.8698 75.0844 28.7344C73.9281 30.5885 72.3708 31.5156 70.4125 31.5156ZM92.5438 23.7969V13.2031L86.6219 23.7969H92.5438ZM90.8563 31C90.3563 31 90.0177 30.9219 89.8406 30.7656C89.6635 30.599 89.575 30.3021 89.575 29.875C89.575 29.5 89.6635 29.2292 89.8406 29.0625C90.0281 28.8854 90.325 28.7969 90.7313 28.7969H92.5438V26.1719H85.2469C84.9865 26.1719 84.7833 26.0885 84.6375 25.9219C84.4917 25.7552 84.4188 25.5156 84.4188 25.2031V24.125C84.4188 23.7083 84.5698 23.2708 84.8719 22.8125C84.924 22.7292 84.9656 22.6615 84.9969 22.6094L91.5906 11.4219C91.7365 11.1615 91.8563 10.9948 91.95 10.9219C92.0438 10.849 92.1688 10.8125 92.325 10.8125C92.3875 10.8125 92.4969 10.8229 92.6531 10.8438C92.6948 10.8542 92.7365 10.8646 92.7781 10.875L94.3719 11.125C94.5177 11.1458 94.6323 11.2292 94.7156 11.375C94.8094 11.5104 94.8563 11.6927 94.8563 11.9219V23.7969H95.6531C95.8823 23.7969 96.0594 23.7083 96.1844 23.5312C96.3094 23.3438 96.45 23.25 96.6063 23.25C96.8146 23.25 96.9917 23.3281 97.1375 23.4844C97.2833 23.6406 97.3563 23.8333 97.3563 24.0625C97.3563 24.1562 97.351 24.2448 97.3406 24.3281C97.3302 24.401 97.3094 24.4792 97.2781 24.5625L97.1531 25.2031C97.0802 25.5781 96.9708 25.8333 96.825 25.9688C96.6896 26.1042 96.4708 26.1719 96.1688 26.1719H94.8563V28.7969H95.4031C96.0698 28.7969 96.5281 28.8802 96.7781 29.0469C97.0281 29.2031 97.1531 29.4792 97.1531 29.875C97.1531 30.25 97.049 30.5312 96.8406 30.7188C96.6323 30.9062 96.3198 31 95.9031 31H90.8563Z",fill:"#6B6D85"})),Xs||(Xs=n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear",x1:12.5,y1:12.5,x2:70,y2:68.5,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#D9DAE5"}),n.createElement("stop",{offset:1,stopColor:"#9293AB"})),n.createElement("linearGradient",{id:"paint1_linear",x1:32.3754,y1:47.2101,x2:47.6364,y2:62.4711,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#D9DAE5"}),n.createElement("stop",{offset:1,stopColor:"#9293AB"})))))}var cl=n.forwardRef(rl),sl=(a.p,a(329)),ll=a.n(sl),il=D.a.bind(ll.a);function ol(e){var t=e.user;return A("Not Found"),Object(He.jsx)("section",{className:il("wrapper"),children:Object(He.jsxs)("div",{className:il("inner"),children:[Object(He.jsx)(cl,{}),Object(He.jsxs)("p",{className:il("note"),children:[Object(He.jsx)("span",{children:"We are sorry, the resource you requested cannot be found."}),Object(He.jsx)("sub",{children:"That's all we know."})]}),!t&&Object(He.jsx)(Ye,{as:"link",to:"/welcome",theme:"primary",className:il("btn"),children:"Sign In"})]})})}ol.defaultProps={user:void 0};var ul,dl,ml=a(330),bl=a.n(ml),pl=["title","titleId"];function hl(){return hl=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function fl(e,t){var a=e.title,r=e.titleId,c=jl(e,pl);return n.createElement("svg",hl({viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,ul||(ul=n.createElement("g",{filter:"url(#filter0_dd)"},n.createElement("path",{d:"M3.27392 5.25531C3.75124 4.70692 4.59669 4.68757 5.0986 5.21355L6.89435 7.09545C6.90159 7.10303 6.91368 7.10304 6.92094 7.09548L11.4514 2.37316C11.9066 1.89873 12.6667 1.90345 13.1159 2.3835C13.5378 2.83431 13.5269 3.53825 13.0912 3.97579L6.98994 10.1039C6.94388 10.1502 6.86958 10.152 6.82124 10.1082L3.37538 6.98024C2.87787 6.52864 2.83279 5.76212 3.27392 5.25531Z",fill:"white"}))),dl||(dl=n.createElement("defs",null,n.createElement("filter",{id:"filter0_dd",x:-1.0293,y:.0195312,width:18.4547,height:16.1195,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},n.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),n.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),n.createElement("feOffset",{dy:2}),n.createElement("feGaussianBlur",{stdDeviation:2}),n.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.376471 0 0 0 0 0.380392 0 0 0 0 0.439216 0 0 0 0.2 0"}),n.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),n.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),n.createElement("feOffset",{dy:1}),n.createElement("feGaussianBlur",{stdDeviation:1}),n.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.156863 0 0 0 0 0.160784 0 0 0 0 0.239216 0 0 0 0.4 0"}),n.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow",result:"effect2_dropShadow"}),n.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow",result:"shape"})))))}var vl=n.forwardRef(fl),Ol=(a.p,a(331)),gl=a.n(Ol),_l=["className","htmlFor","children"],xl=D.a.bind(gl.a),wl=function(e){var t=e.className,a=e.htmlFor,n=e.children,r=Object(Te.a)(e,_l);return Object(He.jsx)("label",Object(i.a)(Object(i.a)({className:D()(xl("label"),t),htmlFor:a},r),{},{children:n}))};wl.defaultProps={className:"",children:null};var yl=wl,Nl=a(332),kl=a.n(Nl),El=["className","label","name","checked","disabled"],Cl=D.a.bind(kl.a),Sl=function(e){var t=e.className,a=e.label,n=e.name,r=e.checked,c=e.disabled,s=Object(Te.a)(e,El);return Object(He.jsxs)("div",{className:D()(Cl("checkbox"),t),children:[Object(He.jsx)("input",Object(i.a)(Object(i.a)({type:"checkbox",name:n,id:n,checked:r,disabled:c},s),{},{hidden:!0})),Object(He.jsx)("label",{htmlFor:n,className:Cl("checkbox-fake",{disabled:c}),children:Object(He.jsx)(vl,{})}),Object(He.jsx)(yl,{htmlFor:n,children:a})]})},Ll=Sl;Sl.defaultProps={className:"",disabled:!1};var Ml=a(333),Pl=a.n(Ml),Il=["className","name","label","type","width","style","icon"],Rl=D.a.bind(Pl.a),Dl={search:Object(He.jsx)(ue,{className:Rl("icon","icon-search")})},Al=function(e){var t=e.className,a=e.name,n=e.label,r=e.type,c=e.width,s=e.style,l=e.icon,o=Object(Te.a)(e,Il);return Object(He.jsxs)("div",{className:Rl("input-wrapper",t),children:[n&&Object(He.jsx)(yl,{htmlFor:a,children:n}),Object(He.jsxs)("div",{className:Rl("input-inner"),children:[l&&Dl[l],Object(He.jsx)("input",Object(i.a)({className:D()(Rl("input",{"input-with-icon":!!l})),type:r,name:a,id:a,style:Object(i.a)({width:c},s),spellCheck:"false",autoComplete:"false",autoCorrect:"false"},o))]})]})};Al.defaultProps={className:"",label:null,type:"text",width:200,style:{}};var Hl=Al,Fl=a(334),Bl=a.n(Fl),zl=["className","label","name","disabled","appearance"],Vl=D.a.bind(Bl.a),Tl=function(e){var t=e.className,a=e.label,n=e.name,r=e.disabled,c=e.appearance,s=Object(Te.a)(e,zl),l="circle"===c?Object(He.jsx)("i",{}):Object(He.jsx)(vl,{});return Object(He.jsxs)("div",{className:D()(Vl("radio"),t),children:[Object(He.jsx)("input",Object(i.a)(Object(i.a)({type:"radio",id:n,name:n},s),{},{disabled:r,hidden:!0})),Object(He.jsx)("label",{htmlFor:n,className:Vl("radio-fake",{disabled:r},"appearance-".concat(c)),children:l}),a&&Object(He.jsx)(yl,{className:Vl("label"),htmlFor:n,children:a})]})};Tl.defaultProps={className:"",disabled:!1,label:null,appearance:"circle"};var Wl=Tl,Ul=a(335),Zl=a.n(Ul),Gl=["className","label","optionsList","onChange","width"],ql=D.a.bind(Zl.a),Yl=function(e){var t=e.className,a=e.label,n=e.optionsList,r=e.onChange,c=e.width,s=Object(Te.a)(e,Gl);return Object(He.jsxs)("div",{className:D()(ql("select"),t),children:[a&&Object(He.jsx)("span",{className:ql("label"),children:a}),Object(He.jsxs)("div",{className:ql("select-inner"),style:{width:c},children:[Object(He.jsx)("select",Object(i.a)(Object(i.a)({className:ql("select-input"),onChange:r},s),{},{children:n.map((function(e){var t=e.value,a=e.key;return Object(He.jsx)("option",{value:t,children:a},a)}))})),Object(He.jsx)("i",{})]})]})};Yl.defaultProps={className:"",label:null,width:200};var Kl=Yl,Jl=a(336),Ql=a.n(Jl),Xl=["className","name","label","width"],$l=D.a.bind(Ql.a),ei=function(e){var t=e.className,a=e.name,n=e.label,r=e.width,c=Object(Te.a)(e,Xl);return Object(He.jsxs)("div",{className:D()($l("text-area-wrapper"),t),children:[n&&Object(He.jsx)(yl,{htmlFor:a,children:n}),Object(He.jsx)("textarea",Object(i.a)({className:$l("text-area"),name:a,id:a,style:{width:r},autoCapitalize:"false",autoComplete:"false",autoCorrect:"false",spellCheck:"false"},c))]})};ei.defaultProps={className:"",width:400,label:null};var ti=ei,ai=a(337),ni=a.n(ai),ri=["title","className","children"],ci=D.a.bind(ni.a),si=function(e){var t=e.title,a=e.className,n=e.children,r=Object(Te.a)(e,ri);return Object(He.jsxs)("form",Object(i.a)(Object(i.a)({className:D()(ci("form"),a),spellCheck:"false",autoCapitalize:"false",autoCorrect:"false",autoComplete:"false"},r),{},{children:[t&&Object(He.jsx)("h2",{className:ci("form-title"),children:t}),n]}))},li=function(e){var t=e.title,a=e.className,n=e.children;return Object(He.jsxs)("div",{className:D()(ci("form-section"),a),children:[t&&Object(He.jsx)("h3",{children:t}),n]})};li.defaultProps={className:"",title:null,children:null},si.defaultProps={className:"",title:null,children:null};var ii=si,oi={Checkbox:Ll,Input:Hl,Radio:Wl,Select:Kl,TextArea:ti},ui=a(338),di=a.n(ui),mi=D.a.bind(di.a),bi=function(e){var t=e.handleSubmit,a=e.handleCancel,r=e.action,c=e.target,s=e.parameters,l=Object(n.useState)({action:r,target:c,parameters:s}),u=Object(o.a)(l,2),d=u[0],m=u[1],b=Object(n.useState)({key:"",value:""}),p=Object(o.a)(b,2),h=p[0],j=p[1],f=function(e){return function(){return m((function(t){return Object(i.a)(Object(i.a)({},t),{},{parameters:t.parameters.filter((function(t){return t.id!==e}))})}))}},v=function(e){return function(t){j((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}},O=function(e){return function(t){switch(e){case"action":m((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value))}));break;case"target":m((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}}};return Object(He.jsxs)(ii,{className:mi("deployment-form"),children:[Object(He.jsx)(li,{title:"Type",className:mi("deployment-form-row"),children:Object(He.jsxs)("div",{className:mi("deployment-form-radio-group"),children:[Object(He.jsx)(oi.Radio,{id:"promote",name:"promote",label:"Promote",value:"promote",checked:"promote"===d.action,onChange:O("action")}),Object(He.jsx)(oi.Radio,{id:"rollback",name:"rollback",label:"Rollback",value:"rollback",checked:"rollback"===d.action,onChange:O("action")})]})}),Object(He.jsx)(li,{className:mi("deployment-form-row"),title:"Target",children:Object(He.jsx)(oi.Input,{autoFocus:"true",name:"production",placeholder:"production",value:d.target,onChange:O("target")})}),Object(He.jsxs)(li,{title:"Parameters",className:mi("deployment-form-row"),children:[d.parameters.length?Object(He.jsx)("div",{className:mi("deployment-form-parameters-list"),children:d.parameters.map((function(e){var t=e.key,a=e.id;return Object(He.jsxs)("div",{className:mi("deployment-form-parameters"),children:[Object(He.jsx)("span",{type:"text",placeholder:"key",children:t}),Object(He.jsx)(Ye,{type:"button",onClick:f(a),children:"Remove"})]},a)}))}):null,Object(He.jsxs)("div",{className:mi("deployment-form-parameters-fields"),children:[Object(He.jsx)(oi.Input,{placeholder:"key",name:"key",value:h.key,onChange:v("key")}),Object(He.jsx)(oi.Input,{placeholder:"value",name:"value",value:h.value,onChange:v("value")}),Object(He.jsx)(Ye,{onClick:function(){h.key&&h.value&&(m((function(e){return Object(i.a)(Object(i.a)({},e),{},{parameters:[].concat(Object(Ke.a)(e.parameters),[Object(i.a)(Object(i.a)({},h),{},{id:Date.now()})])})})),j({key:"",value:""}))},children:"+ Add"})]})]}),Object(He.jsxs)(li,{className:mi("deployment-form-controls"),children:[Object(He.jsx)(Ye,{type:"button",onClick:function(){t(d),a()},children:"Deploy"}),Object(He.jsx)(Ye,{type:"button",onClick:a,children:"Cancel"})]})]})};bi.defaultProps={action:"promote",target:"",parameters:[]};var pi,hi,ji,fi=bi,vi=["title","titleId"];function Oi(){return Oi=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function _i(e,t){var a=e.title,r=e.titleId,c=gi(e,vi);return n.createElement("svg",Oi({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,pi||(pi=n.createElement("path",{d:"M20 15.6007V8.39926C19.9997 8.08354 19.9174 7.77346 19.7614 7.50012C19.6054 7.22678 19.3811 6.9998 19.1111 6.84194L12.8889 3.2412C12.6186 3.08319 12.3121 3 12 3C11.6879 3 11.3814 3.08319 11.1111 3.2412L4.88889 6.84194C4.6189 6.9998 4.39465 7.22678 4.23863 7.50012C4.08262 7.77346 4.00032 8.08354 4 8.39926V15.6007C4.00032 15.9165 4.08262 16.2265 4.23863 16.4999C4.39465 16.7732 4.6189 17.0002 4.88889 17.1581L11.1111 20.7588C11.3814 20.9168 11.6879 21 12 21C12.3121 21 12.6186 20.9168 12.8889 20.7588L19.1111 17.1581C19.3811 17.0002 19.6054 16.7732 19.7614 16.4999C19.9174 16.2265 19.9997 15.9165 20 15.6007Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hi||(hi=n.createElement("path",{d:"M4.27002 7.95999L12 12.01L19.73 7.95999",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ji||(ji=n.createElement("path",{d:"M12 20.08V12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var xi,wi,yi,Ni,ki=n.forwardRef(_i),Ei=(a.p,["title","titleId"]);function Ci(){return Ci=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Li(e,t){var a=e.title,r=e.titleId,c=Si(e,Ei);return n.createElement("svg",Ci({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,xi||(xi=n.createElement("path",{d:"M6 5V13",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),wi||(wi=n.createElement("path",{d:"M16 11C17.6569 11 19 9.65685 19 8C19 6.34315 17.6569 5 16 5C14.3431 5 13 6.34315 13 8C13 9.65685 14.3431 11 16 11Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yi||(yi=n.createElement("path",{d:"M6 19C7.65685 19 9 17.6569 9 16C9 14.3431 7.65685 13 6 13C4.34315 13 3 14.3431 3 16C3 17.6569 4.34315 19 6 19Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ni||(Ni=n.createElement("path",{d:"M16 11C16 12.3261 15.2625 13.5979 13.9497 14.5355C12.637 15.4732 10.8565 16 9 16",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var Mi,Pi,Ii=n.forwardRef(Li),Ri=(a.p,["title","titleId"]);function Di(){return Di=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Hi(e,t){var a=e.title,r=e.titleId,c=Ai(e,Ri);return n.createElement("svg",Di({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Mi||(Mi=n.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),Pi||(Pi=n.createElement("path",{fill:"currentColor",d:"M15.874 13a4.002 4.002 0 0 1-7.748 0H3v-2h5.126a4.002 4.002 0 0 1 7.748 0H21v2h-5.126zM12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"})))}var Fi,Bi,zi,Vi,Ti=n.forwardRef(Hi),Wi=(a.p,["title","titleId"]);function Ui(){return Ui=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Gi(e,t){var a=e.title,r=e.titleId,c=Zi(e,Wi);return n.createElement("svg",Ui({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Fi||(Fi=n.createElement("path",{d:"M5 9H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Bi||(Bi=n.createElement("path",{d:"M5 14H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),zi||(zi=n.createElement("path",{d:"M10 5L8 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Vi||(Vi=n.createElement("path",{d:"M16 5L14 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var qi,Yi,Ki,Ji,Qi=n.forwardRef(Gi),Xi=(a.p,["title","titleId"]);function $i(){return $i=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function to(e,t){var a=e.title,r=e.titleId,c=eo(e,Xi);return n.createElement("svg",$i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,qi||(qi=n.createElement("path",{d:"M18 20C19.6569 20 21 18.6569 21 17C21 15.3431 19.6569 14 18 14C16.3431 14 15 15.3431 15 17C15 18.6569 16.3431 20 18 20Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Yi||(Yi=n.createElement("path",{d:"M6 10C7.65685 10 9 8.65685 9 7C9 5.34315 7.65685 4 6 4C4.34315 4 3 5.34315 3 7C3 8.65685 4.34315 10 6 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ki||(Ki=n.createElement("path",{d:"M13 7H16C16.5304 7 17.0391 7.16389 17.4142 7.45561C17.7893 7.74733 18 8.143 18 8.55556V14",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ji||(Ji=n.createElement("path",{d:"M6 10V19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var ao,no,ro=n.forwardRef(to),co=(a.p,["title","titleId"]);function so(){return so=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function io(e,t){var a=e.title,r=e.titleId,c=lo(e,co);return n.createElement("svg",so({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,ao||(ao=n.createElement("path",{d:"M19.6491 13.2214L13.2277 19.6445C13.0614 19.8111 12.8638 19.9433 12.6464 20.0334C12.4289 20.1236 12.1958 20.17 11.9604 20.17C11.7251 20.17 11.492 20.1236 11.2745 20.0334C11.0571 19.9433 10.8595 19.8111 10.6932 19.6445L3 11.9583V3H11.956L19.6491 10.6952C19.9827 11.0309 20.17 11.485 20.17 11.9583C20.17 12.4316 19.9827 12.8857 19.6491 13.2214V13.2214Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),no||(no=n.createElement("path",{d:"M7 7H7.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}var oo=n.forwardRef(io),uo=(a.p,a(339)),mo=a.n(uo),bo=D.a.bind(mo.a),po=function(e){var t=e.className,a=e.event,n=e.commit,r=e.branch,c=e.refs,s=e.environment;switch(a){case"pull_request":return Object(He.jsx)(fo,{className:t,pr:c});case"tag":return Object(He.jsx)(vo,{className:t,tag:c});case"promote":case"rollback":return Object(He.jsx)(Oo,{className:t,environment:s});case"cron":case"custom":case"push":return Object(He.jsx)(jo,{className:t,branch:r});default:return Object(He.jsx)(ho,{className:t,commit:n})}},ho=function(e){var t=e.className,a=e.commit;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(Ti,{}),a]})},jo=function(e){var t=e.className,a=e.branch;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(Ii,{}),a]})},fo=function(e){var t,a=e.className,n=e.pr;return Object(He.jsxs)("div",{className:bo("root",a||""),children:[Object(He.jsx)(ro,{}),Object(He.jsx)("sub",{children:"#"}),(t=n,null===t||void 0===t?void 0:t.match(/\d+/g))]})},vo=function(e){var t=e.className,a=e.tag;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(oo,{}),xo(a)]})},Oo=function(e){var t=e.className,a=e.environment;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(ki,{}),a]})},go=function(e){var t=e.className,a=e.name;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(Xr,{}),a]})},_o=function(e){var t=e.className,a=e.build;return Object(He.jsxs)("div",{className:bo("root",t||""),children:[Object(He.jsx)(Qi,{}),a]})};function xo(e){var t;return null===e||void 0===e||null===(t=e.replace("refs/heads/",""))||void 0===t?void 0:t.replace("refs/tags/","")}var wo=a(340),yo=a.n(wo),No=D.a.bind(yo.a);function ko(e,t){var a=t.namespace,n=t.name,r=t.refs;return!0===t.deeplink?Object(He.jsx)("a",{href:"".concat(f,"/link/").concat(a,"/").concat(n,"/tree/").concat(r),target:"_blank",rel:"noreferrer noopener",children:e}):e}function Eo(e,t){var a=t.namespace,n=t.name,r=t.commit;return!0===t.deeplink?Object(He.jsx)("a",{href:"".concat(f,"/link/").concat(a,"/").concat(n,"/commit/").concat(r),target:"_blank",rel:"noreferrer noopener",children:e}):e}function Co(e,t){var a=t.namespace,n=t.name,r=t.number;return!0===t.deeplink?Object(He.jsx)("a",{href:"/".concat(a,"/").concat(n,"/").concat(r),children:e}):e}var So=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.commit,c=e.branch,s=e.namespace,l=e.name,i=e.deeplink,o=e.refs;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:n})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"pushed"}),Eo(Object(He.jsx)(ho,{className:No("label"),commit:r.substr(0,8)}),{namespace:s,name:l,commit:r,deeplink:i})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"to"}),ko(Object(He.jsx)(jo,{className:No("label"),branch:c}),{namespace:s,name:l,refs:o,deeplink:i})]})]})},Lo=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.branch,c=e.action,s=e.refs,l=e.namespace,i=e.name,o=e.deeplink;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:n})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"opened"===c?"opened":"synchronized"}),Object(He.jsx)("span",{className:No("info"),children:"pull request"}),ko(Object(He.jsx)(fo,{className:No("label"),pr:s}),{namespace:l,name:i,refs:s,deeplink:o})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"to"}),ko(Object(He.jsx)(jo,{className:No("label"),branch:r}),{namespace:l,name:i,refs:s,deeplink:o})]})]})},Mo=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.refs,c=e.namespace,s=e.name,l=e.deeplink;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:n})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"created"}),ko(Object(He.jsx)(vo,{className:No("label"),tag:r}),{namespace:c,name:s,refs:r,deeplink:l})]})]})},Po=function(e){var t=e.className,a=e.namespace,n=e.name,r=e.deeplink,c=e.parent,s=e.target,l=e.trigger;return Object(He.jsxs)("div",{className:No("activity",t||""),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{alt:l,text:l,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:l})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"promoted build"}),Co(Object(He.jsx)(_o,{className:No("label"),build:c}),{namespace:a,name:n,number:c,deeplink:r})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"to"}),Object(He.jsx)(Oo,{className:No("label"),environment:s})]})]})},Io=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.namespace,c=e.name,s=e.commit,l=e.deeplink,i=e.target,o=e.parent;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")}),Object(He.jsx)("span",{className:No("info"),children:n})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"rolled back"}),Object(He.jsx)(Oo,{className:No("label"),environment:i})]}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"to build"}),Co(Object(He.jsx)(_o,{className:No("label"),build:o}),{namespace:r,name:c,commit:s,deeplink:l})]})]})},Ro=function(e){var t=e.className,a=e.avatar,n=e.actor,r=e.cron;return Object(He.jsxs)("div",{className:No("activity",t),children:[Object(He.jsx)("div",{className:No("chunk"),"data-type":"chunk",children:Object(He.jsx)(Ve,{path:a,alt:n,text:n,className:No("avatar")})}),Object(He.jsxs)("div",{className:No("chunk"),"data-type":"chunk",children:[Object(He.jsx)("span",{className:No("info"),children:"executed scheduled task"}),Object(He.jsx)(go,{className:No("label"),name:r})]})]})},Do=function(e){switch(e.event){case"pull_request":return Lo(e);case"tag":return Mo(e);case"promote":return Po(e);case"rollback":return Io(e);case"cron":return Ro(e);default:return So(e)}};Do.defaultProps={className:void 0,deeplink:void 0,namespace:void 0,name:void 0,number:void 0,event:void 0,action:void 0,actor:void 0,avatar:void 0,commit:void 0,branch:void 0,target:void 0,refs:void 0},So.defaultProps={className:"",commit:void 0,branch:void 0,deeplink:void 0},Lo.defaultProps={className:"",branch:void 0,deeplink:void 0},Mo.defaultProps={className:"",deeplink:void 0},Po.defaultProps={className:"",deeplink:void 0},Io.defaultProps={className:"",commit:void 0,deeplink:void 0},Ro.defaultProps={className:""};var Ao,Ho,Fo,Bo=Do,zo=a(341),Vo=a.n(zo),To=D.a.bind(Vo.a);function Wo(e){var t=e.className;return Object(He.jsx)("nav",{className:To("breadcrumb",t||""),children:e.children})}function Uo(e){return Object(He.jsx)("div",{className:To("breadcrumb-item"),children:e.href?Object(He.jsx)(l.b,{to:e.href,children:e.text}):e.text})}function Zo(){return Object(He.jsx)("div",{className:To("breadcrumb-spacer"),children:Object(He.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:Object(He.jsx)("polyline",{points:"9 18 15 12 9 6"})})})}var Go=["title","titleId"];function qo(){return qo=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Ko(e,t){var a=e.title,r=e.titleId,c=Yo(e,Go);return n.createElement("svg",qo({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-more-vertical",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ao||(Ao=n.createElement("circle",{cx:12,cy:12,r:1})),Ho||(Ho=n.createElement("circle",{cx:12,cy:5,r:1})),Fo||(Fo=n.createElement("circle",{cx:12,cy:19,r:1})))}var Jo,Qo,Xo,$o,eu=n.forwardRef(Ko),tu=(a.p,a(342)),au=a.n(tu),nu=D.a.bind(au.a),ru=function(e,t){return e.map((function(e,a){return Object(n.createElement)("div",Object(i.a)(Object(i.a)({className:nu("menu-item")},t(e.value)),{},{key:a,role:"menuitem",tabIndex:"-1","data-value":e.value}),e.content)}))},cu=function(e){var t=e.id,a=e.className,r=e.isMenuOpen,c=e.hideMenu,s=e.menuItems,l=e.onMenuItemSelect,i=e.menuAlignment,o=Object(n.useRef)();return Object(n.useEffect)((function(){r&&o.current.firstElementChild.focus()}),[r]),Object(He.jsx)("div",{className:nu("menu","menu-".concat(i),a),role:"menu",tabIndex:"-1",hidden:!r,"aria-hidden":!r,id:t,ref:o,onKeyDown:function(e){var t,a;switch(e.key){case"ArrowDown":e.preventDefault(),(null===(t=e.target)||void 0===t?void 0:t.nextElementSibling)?e.target.nextElementSibling.focus():e.target.parentElement.firstElementChild.focus();break;case"ArrowUp":e.preventDefault(),(null===(a=e.target)||void 0===a?void 0:a.previousElementSibling)?e.target.previousElementSibling.focus():e.target.parentElement.lastElementChild.focus();break;case"Escape":e.preventDefault(),c()}},children:ru(s,(function(e){return{onClick:function(t){l(e,t),c()},onKeyDown:function(t){"Enter"===t.key&&(t.preventDefault(),l(e,t),c()),"Tab"===t.key&&(t.preventDefault(),c())}}}))})},su=function(e){var t=e.id,a=e.className,r=e.menuItems,c=e.onMenuItemSelect,s=e.disabled,l=e.menuAlignment,i=Object(n.useState)(!1),u=Object(o.a)(i,2),d=u[0],m=u[1],b=Object(n.useState)(!1),p=Object(o.a)(b,2),h=p[0],j=p[1],f=Object(n.useRef)(),v=Object(n.useRef)();U(f,(function(){return m(!1)}));var O=function(){var e;m(!1),null===(e=v.current)||void 0===e||e.focus()},g=function(){d?O():(j(!1),m(!0))};return Object(He.jsx)("div",{className:nu("wrapper",a),ref:f,children:Object(He.jsxs)("div",{className:nu("wrapper-menu"),children:[Object(He.jsx)("button",{className:nu("btn-menu-controller",{"is-open":d,"is-focused":h}),type:"button",disabled:s,"aria-haspopup":"menu","aria-expanded":d||void 0,ref:v,onFocus:function(e){j(!0)},onBlur:function(e){j(!1)},onClick:g,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),g())},children:Object(He.jsx)(eu,{})}),Object(He.jsx)(cu,{menuItems:r,isMenuOpen:d,hideMenu:O,id:t,menuAlignment:l,onMenuItemSelect:c})]})})},lu=["title","titleId"];function iu(){return iu=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function uu(e,t){var a=e.title,r=e.titleId,c=ou(e,lu);return n.createElement("svg",iu({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-calendar",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Jo||(Jo=n.createElement("rect",{x:3,y:4,width:18,height:18,rx:2,ry:2})),Qo||(Qo=n.createElement("line",{x1:16,y1:2,x2:16,y2:6})),Xo||(Xo=n.createElement("line",{x1:8,y1:2,x2:8,y2:6})),$o||($o=n.createElement("line",{x1:3,y1:10,x2:21,y2:10})))}var du=n.forwardRef(uu),mu=(a.p,a(343)),bu=a.n(mu),pu=D.a.bind(bu.a),hu=function(e){var t=e.namespace,a=e.name,n=e.build,r=e.data,c=e.handleCancelClick,s=e.handleMenuItemSelect,i=e.handleViewModeClick,o=e.view,u=e.userIsAdminOrHasWritePerm,d=e.showCardHeader,m=null;return r&&"blocked"!==r.status&&(["pending","running"].includes(r.status)?m=Object(He.jsx)(Ye,{className:pu("cancel-button","controls"),onClick:c,children:"Cancel"}):u&&(m=Object(He.jsx)(su,{id:"build-actions",className:pu("controls"),menuItems:[{value:"restart",content:"Restart"},{value:"promote",content:"Promote"},{value:"debug",content:"Debug"}],menuAlignment:"right",onMenuItemSelect:s}))),Object(He.jsxs)("header",{className:pu("header"),children:[Object(He.jsx)("div",{className:pu("breadcrumbs"),children:Object(He.jsxs)(Wo,{className:pu("breadcrumbs-inner"),children:[Object(He.jsx)(Uo,{href:"/".concat(t,"/").concat(a),text:"Builds"}),Object(He.jsx)(Zo,{}),Object(He.jsx)(Uo,{text:"#".concat(n)}),Object(He.jsx)(Zo,{})]})}),Object(He.jsxs)("div",{className:pu("togglers"),children:[Object(He.jsx)(Ye,{className:pu({active:o===yu.LOGS_VIEW}),onClick:i(yu.LOGS_VIEW),children:"Log View"}),Object(He.jsx)(Ye,{className:pu({active:o===yu.GRAPH_VIEW}),onClick:i(yu.GRAPH_VIEW),children:"Graph View"}),d&&Object(He.jsx)(Ye,{className:pu({active:o===yu.CARDS_VIEW}),onClick:i(yu.CARDS_VIEW),children:"Card View"})]}),r?Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("div",{className:pu("meta"),children:[r.started>0&&Object(He.jsx)(lc,{started:r.started,finished:r.finished,withLetters:!0,withIcon:!0}),Object(He.jsxs)("div",{className:pu("date"),children:[Object(He.jsx)(du,{}),nt({date:r.created})]}),m]}),m]}):null,Object(He.jsx)("div",{className:pu("title"),children:Object(He.jsxs)("h1",{children:[Object(He.jsx)(l.b,{to:"/".concat(t,"/").concat(a),children:Object(He.jsx)(ht,{})}),a]})}),r?Object(He.jsxs)("div",{className:pu("activity"),children:[Object(He.jsx)(rn,{status:r.status,className:pu("status")}),Object(He.jsx)("p",{title:r.title||r.message,className:pu("message"),children:r.title||r.message}),Object(He.jsx)(Bo,{namespace:t,name:a,number:r.number,event:r.event,action:r.action,actor:r.sender,avatar:r.author_avatar,commit:r.after,branch:r.target,target:r.deploy_to,refs:r.ref,cron:r.cron,trigger:r.trigger,parent:r.parent,deeplink:!0})]}):null]})};hu.defaultProps={data:void 0,userIsAdminOrHasWritePerm:!1};var ju=hu,fu=D.a.bind(bl.a),vu="error",Ou="resolved",gu="resolved_blocked",_u="logs",xu="graph",wu="cards",yu={LOGS_VIEW:_u,GRAPH_VIEW:xu,CARDS_VIEW:wu};function Nu(e){var t,a=e.user,r=e.userIsAdminOrHasWritePerm,c=Object(b.i)(),s=c.namespace,l=c.name,u=c.build,p=c.stage,h=void 0===p?1:p,j=c.step,v=void 0===j?1:j;A("Build #".concat(u,".").concat(h,".").concat(v," - ").concat(s,"/").concat(l));var O=Object(b.g)(),g=function(e){var t=e.namespace,a=e.name,n=e.build;return St("/api/repos/".concat(t,"/").concat(a,"/builds/").concat(n))}({namespace:s,name:l,build:u}),_=g.data,x=g.mutate,w=g.isError,y=g.isLoading,N=Object(n.useState)(Ou),k=Object(o.a)(N,2),E=k[0],C=k[1],S=Object(n.useState)(_u),L=Object(o.a)(S,2),M=L[0],P=L[1],I=Object(b.h)().search,R=new URLSearchParams(I),D="promote",H="",F=[];try{D=R.get("action")||"promote",H=R.get("target")||"",F=R.get("parameters")?JSON.parse(R.get("parameters")):[]}catch(ae){console.warn("Invalid query parameters",ae)}var B=Ps(!!R.get("target")),V=Object(o.a)(B,2),T=V[0],W=V[1],U=K().showError;Object(n.useLayoutEffect)((function(){var e,t;if(w||(null===_||void 0===_?void 0:_.error)||_&&(null!==(e=null===_||void 0===_||null===(t=_.stages)||void 0===t?void 0:t.length)&&void 0!==e?e:0)=0})).reverse()}),[t]),s=Object(b.i)(),l=s.namespace,i=s.name,o=Object(b.g)(),u=Object(n.useCallback)((function(e){var t=e.number;return o.push("/".concat(l,"/").concat(i,"/").concat(t))}),[l,i,o]),d=Object(n.useMemo)((function(){return function(e){var t=e.slice().sort((function(e,t){return e.duration-t.duration})),a=e.slice().sort((function(e,t){return e.timeStarted-t.timeStarted})),n=Math.floor(t.length/2),r=Math.floor(t.length%2?t[n].duration/60:(t[n-1].duration+t[n].duration)/120),c=0===r?"< 1":r,s=a[a.length-1].timeStarted,l=Object(ku.a)(new Date(1e3*s),new Date,{addSuffix:!0}).split(" "),i=Object(Ru.a)(l);return{median:c,latest:{number:i[0],units:i.slice(1).join(" "),status:a[a.length-1].status}}}(c)}),[c]),m=d.median,p=d.latest;return Object(He.jsxs)("div",{className:Wu("wrapper",r),children:[Object(He.jsx)("div",{className:Wu("info"),children:Object(He.jsxs)("ul",{className:Wu("summary"),children:[Object(He.jsxs)("li",{className:Wu("item"),children:[Object(He.jsx)("span",{className:Wu("item-heading"),children:"Total Builds"}),Object(He.jsx)("span",{className:Wu("item-content"),children:Object(He.jsx)("span",{children:a})})]}),Object(He.jsxs)("li",{className:Wu("item"),children:[Object(He.jsx)("span",{className:Wu("item-heading"),children:"Median Build"}),Object(He.jsx)("span",{className:Wu("item-content"),children:Object(He.jsxs)("span",{children:[m,Object(He.jsx)("sub",{children:m>1?"minutes":"minute"})]})})]}),Object(He.jsxs)("li",{className:Wu("item"),children:[Object(He.jsx)("span",{className:Wu("item-heading"),children:"Last Build"}),Object(He.jsx)("span",{className:Wu("item-content"),children:Object(He.jsxs)("span",{children:[p.number,Object(He.jsx)("sub",{children:p.units})]})})]}),Object(He.jsxs)("li",{className:Wu("item"),children:[Object(He.jsx)("span",{className:Wu("item-heading"),children:"Last Status"}),Object(He.jsx)("span",{className:Wu("item-content"),children:Object(He.jsx)("span",{className:Wu("status","status-".concat(p.status)),children:p.status})})]})]})}),Object(He.jsx)("div",{className:Wu("bar-wrapper"),children:Object(He.jsx)(zu,{data:c,height:170,barsShown:50,onClick:u})})]})};Uu.defaultProps={className:void 0};var Zu=Uu,Gu=D.a.bind(Iu.a);function qu(e){var t=e.repo,a=t.active,r=Object(b.j)(),c=r.params,s=c.namespace,l=c.name,i=r.url,o=Object(b.g)();Object(n.useLayoutEffect)((function(){a||o.replace("/".concat(s,"/").concat(l,"/settings"))}),[a,o,s,l]);var u=function(e){var t,a=e.namespace,n=e.name,r=Object(h.d)((function(e,t){var r=e+1;return t&&t.length-1})))&&void 0!==e?e:[]}),[Z,J,h,w]),$=Object(n.useMemo)((function(){var e;return null!==(e=X.slice(0).sort(O===xd?ct:st).slice(0,l?X.length:50))&&void 0!==e?e:[]}),[X,l,O]),ee=Object(n.useMemo)((function(){var e,t;return null!==(e=null===Z||void 0===Z||null===(t=Z.slice(0).sort(st).filter((function(e){return!!e.build})))||void 0===t?void 0:t.slice(0,6))&&void 0!==e?e:[]}),[Z]),te=Object(n.useMemo)((function(){if(!z)return[{value:"",key:"All Organizations"}];var e=null===z||void 0===z?void 0:z.map((function(e){return{value:e,key:e}}));return[{value:"",key:"All Organizations"}].concat(Object(Ke.a)(e))}),[z]),ae=wd.map((function(e){return{value:e,key:e}}));Object(n.useEffect)((function(){(P||H)&&(r(Object(i.a)(Object(i.a)({},a),{},{isAccSyncing:!1})),S("Sync error has occurred, please, try again"),console.error("Sync error:",(null===P||void 0===P?void 0:P.message)||(null===H||void 0===H?void 0:H.message)))}),[P,H,S,a,r]),Object(n.useEffect)((function(){R&&(C(!1),T(),a.isAccSyncing&&r(Object(i.a)(Object(i.a)({},a),{},{isAccSyncing:!1})))}),[R,a,r,T]);var ne=null;return ne=G?null:(null===Z||void 0===Z?void 0:Z.length)?Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("div",{className:_d("subheader"),children:[Object(He.jsx)("h2",{className:_d("section-title"),children:"Repositories"}),Object(He.jsxs)("div",{className:_d("actions"),children:[Object(He.jsx)(pd,{id:"active-switch",checked:h,onChange:function(e){return j(e)},children:"Active Only"}),Object(He.jsx)(Kl,{value:O,optionsList:ae,onChange:function(e){return g(e.target.value)}}),Object(He.jsx)(Kl,{value:w,optionsList:te,onChange:function(e){return y(e.target.value)}}),Object(He.jsx)(Hl,{placeholder:"Filter \u2026",icon:"search",className:_d("search"),width:300,name:"repo-search",onChange:function(e){return Q(e.target.value.trim())}})]})]}),Object(He.jsx)(rd,{repos:$}),!l&&$.length>=50&&Object(He.jsx)(Ye,{className:_d("btn","btn-show-more"),onClick:function(){return u(!0)},children:"Show more \u2193"})]}):Object(He.jsx)(hn,{title:"Your Repository List is Empty.",message:"Drone automatically syncs with your version control system to display your repositories."}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("header",{className:_d("header"),children:[Object(He.jsx)("h1",{children:"Dashboard"}),Object(He.jsxs)("button",{type:"button",className:_d("btn","btn-sync"),disabled:D||M,onClick:function(){return C(!0)},children:[(D||M)&&Object(He.jsx)("span",{className:_d("btn-sync-spinner")}),D||M?"Syncing":"Sync"]})]}),Object(He.jsxs)("section",{className:_d("wrapper"),children:[!!ee.length&&Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("h2",{className:_d("section-title","section-title-recent"),children:"Recent Activity"}),Object(He.jsx)(od,{repos:ee})]}),ne]})]})}var Nd=["title","titleId"];function kd(){return kd=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Cd(e,t){var a=e.title,r=e.titleId,c=Ed(e,Nd);return n.createElement("svg",kd({xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 86.62 27",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,hd||(hd=n.createElement("defs",null,n.createElement("style",null,".cls-1{fill:#22222A}"))),jd||(jd=n.createElement("g",{id:"Landing"},n.createElement("g",{id:"logos"},n.createElement("g",{id:"drone-logo-back-with-text"},n.createElement("g",{id:"Group-4"},n.createElement("path",{id:"DRONE",className:"cls-1",d:"M29.07 6.52h4.35A4.93 4.93 0 0137 7.69a5.09 5.09 0 011.19 3.74A4.91 4.91 0 0137 15.06a4.89 4.89 0 01-3.53 1.17h-4.4zm4 7.54a3 3 0 001.22-.22 1.31 1.31 0 00.71-.79 4.32 4.32 0 00.24-1.62A4.65 4.65 0 0035 9.76a1.58 1.58 0 00-.69-.85 2.71 2.71 0 00-1.24-.24h-1.16v5.39zm7.82-7.54h5.07a3.47 3.47 0 012.6.93 3.52 3.52 0 01.85 2.55 3.19 3.19 0 01-.48 1.73 3.32 3.32 0 01-1.3 1.16 1.15 1.15 0 01.3.32 3.74 3.74 0 01.26.53l1.12 2.55h-3l-1-2.34a1 1 0 00-.29-.39.88.88 0 00-.48-.11h-.8v2.84h-2.82V6.52zm4.32 4.7a1.31 1.31 0 001-.32 1.17 1.17 0 00.34-.93c0-.85-.39-1.27-1.22-1.27h-1.65v2.55h1.51zm11.38 5.17a5.23 5.23 0 01-3.71-1.19 5.09 5.09 0 01-1.25-3.77 5.13 5.13 0 011.25-3.84 5.14 5.14 0 013.71-1.2 5.17 5.17 0 013.72 1.2 5.13 5.13 0 011.24 3.84 5.09 5.09 0 01-1.24 3.77 5.24 5.24 0 01-3.74 1.19zm0-2.41a1.91 1.91 0 001.57-.61 3.19 3.19 0 00.47-2 3.25 3.25 0 00-.47-2 2.39 2.39 0 00-3.19 0 3.38 3.38 0 00-.47 2 3.32 3.32 0 00.47 2 2 2 0 001.6.63zm7.69-7.46h2.42l3.66 5.15V6.52h2.84v9.71h-2.46l-3.64-5.12v5.12h-2.84zm12 0h7.32V8.7h-4.54v1.59h4v2.2h-4v1.59h4.54v2.18h-7.37z"}),n.createElement("g",{id:"Group-3"},n.createElement("path",{id:"Combined-Shape",d:"M4.43 2.47l-.11.1 3.85 3.8a5.68 5.68 0 00-.85 3.05 5.27 5.27 0 005.49 5.43 5.7 5.7 0 003.08-.85l3.87 3.85A10.89 10.89 0 0111 22.12 10.84 10.84 0 010 11.25a10.63 10.63 0 014.43-8.78zM6.58 1a11.17 11.17 0 014.69-1A10.82 10.82 0 0122.2 10.87a11 11 0 01-1 4.7l-3.45-3.45a5.71 5.71 0 00.85-3 5.28 5.28 0 00-5.5-5.49 5.61 5.61 0 00-3 .85zm6.58 11.25A3.18 3.18 0 019.87 9a3.18 3.18 0 013.29-3.3A3.21 3.21 0 0116.44 9a3.16 3.16 0 01-3.28 3.28z",fill:"#00abe4"}))))))),fd||(fd=n.createElement("path",{className:"cls-1",d:"M44.32 24.61a1.85 1.85 0 01-1.3.45 1.79 1.79 0 01-1.62-1v.88h-.43v-7.09h.51v3a1.85 1.85 0 011.64-1 1.82 1.82 0 011.33.51 2.81 2.81 0 01.77 2.06 3.19 3.19 0 01-.9 2.19zm-.27-3.79A1.4 1.4 0 0043 20.4a1.53 1.53 0 00-1 .37 2.18 2.18 0 00-.61 1.72 2.2 2.2 0 00.64 1.7 1.32 1.32 0 001 .4 1.46 1.46 0 001-.35 2.27 2.27 0 00.64-1.75 2.35 2.35 0 00-.62-1.67z"})),vd||(vd=n.createElement("path",{className:"cls-1",d:"M47.26 26a1.36 1.36 0 01-1.32 1 2.37 2.37 0 01-.61-.08v-.42a5.37 5.37 0 00.61.05 1 1 0 00.9-.72l.32-.79-2-5h.53l1.71 4.36 1.6-4.35h.53zM54.61 24.93v-3.15c0-.59-.19-1-.85-1s-1.06.8-1.06 1.41v2.7h-1.22v-7.04h1.22v2.52a1.74 1.74 0 011.41-.66 1.67 1.67 0 011.72 1.83v3.39zM60.52 25a.82.82 0 01-.87-.72 1.75 1.75 0 01-1.54.77 1.66 1.66 0 01-1.86-1.59A1.62 1.62 0 0158 21.88l1.51-.1v-.32c0-.48-.16-.8-.88-.8-.55 0-.9.27-.92.72h-1.2c.08-1.14 1-1.67 2.12-1.67a1.81 1.81 0 011.91 1 2.61 2.61 0 01.16 1v1.88c0 .24.08.32.3.32a.43.43 0 00.15 0v.9a1 1 0 01-.63.19zm-1-2.33l-1.3.1a.73.73 0 00-.74.67.66.66 0 00.71.63 1.15 1.15 0 001.3-1.16v-.24zM64.16 20.93a1.28 1.28 0 00-1.33 1.43v2.57h-1.24v-5.09h1l.11.77a1.44 1.44 0 011.43-.82 2.17 2.17 0 01.37 0V21a1.44 1.44 0 00-.34-.07zM68 24.93V21.8c0-.61-.19-.95-.85-.95a.94.94 0 00-.88.63 3.46 3.46 0 00-.16 1.36v2.09h-1.24v-5.09h1l.08.66a1.76 1.76 0 013.23 1v3.39zM74.34 22.76h-3.42a1.4 1.4 0 00.37 1 1.15 1.15 0 00.75.32 1 1 0 00.74-.24 1 1 0 00.24-.42h1.16a2.14 2.14 0 01-.42.95 2.39 2.39 0 01-3.34.08 2.76 2.76 0 01-.8-2 2.81 2.81 0 01.74-2 2.17 2.17 0 011.64-.72 2.12 2.12 0 011.86 1 3 3 0 01.45 1.77c.06-.09.03.15.03.26zM72.83 21a1 1 0 00-.77-.29 1 1 0 00-.85.4 1.16 1.16 0 00-.26.79h2.2a1.45 1.45 0 00-.32-.9zM78.45 24.48a2.43 2.43 0 01-1.75.58 2.34 2.34 0 01-1.64-.58 1.74 1.74 0 01-.53-1.19h1.14a.86.86 0 00.26.61 1.13 1.13 0 00.77.24c.43 0 1-.08 1-.64a.53.53 0 00-.51-.53c-.45-.08-1-.11-1.4-.19a1.43 1.43 0 01-1.17-1.35 1.39 1.39 0 01.53-1.14 2.32 2.32 0 011.54-.5 2.07 2.07 0 011.59.61 1.63 1.63 0 01.45 1.06h-1.12a.64.64 0 00-.22-.48 1 1 0 00-.66-.24 1.23 1.23 0 00-.53.08.58.58 0 00-.4.53c0 .37.32.48.59.5l1.08.16a1.5 1.5 0 011.41 1.44 1.44 1.44 0 01-.43 1.03zM83 24.48a2.43 2.43 0 01-1.75.58 2.34 2.34 0 01-1.64-.58 1.74 1.74 0 01-.53-1.19h1.14a.82.82 0 00.26.61 1.13 1.13 0 00.77.24c.43 0 1-.08 1-.64a.53.53 0 00-.51-.53c-.45-.08-.95-.11-1.4-.19a1.43 1.43 0 01-1.17-1.35 1.39 1.39 0 01.53-1.14 2.32 2.32 0 011.54-.5 2.07 2.07 0 011.59.61 1.68 1.68 0 01.45 1.06h-1.09A.67.67 0 0082 21a1 1 0 00-.66-.24 1.2 1.2 0 00-.53.08.58.58 0 00-.4.53c0 .37.32.48.58.5l1.09.16a1.5 1.5 0 011.41 1.44 1.37 1.37 0 01-.49 1.01zM85.19 6.68v.93h-.13v-.93h-.32v-.13h.77v.13zM86.49 7.61v-.9l-.32.88h-.1l-.32-.88v.9h-.14V6.55h.19l.32.88.32-.88h.18v1.06z"})))}var Sd,Ld,Md,Pd,Id,Rd,Dd,Ad,Hd,Fd,Bd,zd,Vd,Td,Wd,Ud,Zd,Gd,qd,Yd,Kd,Jd,Qd,Xd,$d,em,tm,am,nm,rm,cm,sm,lm,im,om,um,dm,mm,bm,pm,hm,jm,fm,vm,Om,gm,_m,xm,wm,ym,Nm,km,Em,Cm,Sm,Lm,Mm,Pm,Im,Rm,Dm,Am,Hm,Fm,Bm,zm,Vm,Tm,Wm,Um,Zm,Gm,qm,Ym,Km,Jm=n.forwardRef(Cd),Qm=(a.p,["title","titleId"]);function Xm(){return Xm=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function eb(e,t){var a=e.title,r=e.titleId,c=$m(e,Qm);return n.createElement("svg",Xm({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 2430.2 1721.2",style:{enableBackground:"new 0 0 2430.2 1721.2"},xmlSpace:"preserve",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Sd||(Sd=n.createElement("style",{type:"text/css"},"\n\t.st0{display:none;}\n\t.st1{display:inline;fill:#153461;}\n\t.st2{display:inline;opacity:0.3;}\n\t.st3{fill:none;stroke:#DD4ADD;stroke-width:1.1209;stroke-miterlimit:10;}\n\t.st4{display:inline;opacity:0.5;}\n\t.st5{fill:#DD4ADD;}\n\t.st6{fill:none;stroke:#FFFFFF;stroke-width:2;stroke-miterlimit:10;}\n\t.st7{fill:none;stroke:#00ADE4;stroke-width:2;stroke-miterlimit:10;}\n\t.st8{fill:none;stroke:#FFFFFF;stroke-width:2;stroke-linecap:square;stroke-miterlimit:10;}\n\t.st9{fill:none;stroke:#F2BA44;stroke-width:2;stroke-miterlimit:10;}\n\t.st10{fill:#FFFFFF;}\n\t.st11{clip-path:url(#SVGID_2_);fill:none;stroke:#00ADE4;stroke-width:2;stroke-miterlimit:10;}\n\t.st12{clip-path:url(#SVGID_4_);fill:none;stroke:#00ADE4;stroke-width:2;stroke-miterlimit:10;}\n\t.st13{clip-path:url(#SVGID_6_);fill:none;stroke:#00ADE4;stroke-width:2;stroke-miterlimit:10;}\n\t.st14{fill:#00ADE4;}\n\t.st15{fill:none;stroke:#FFFFFF;stroke-width:2;}\n\t.st16{opacity:0.3;}\n\t.st17{fill:#00ADE4;stroke:#00ADE4;stroke-miterlimit:10;}\n\t.st18{opacity:0.6;}\n\t.st19{fill-rule:evenodd;clip-rule:evenodd;fill:none;stroke:#FFFFFF;stroke-width:2;stroke-miterlimit:10;}\n\t.st20{fill:none;stroke:#4FACDF;stroke-width:2;stroke-miterlimit:10;}\n\t.st21{fill:#FFFFFF;stroke:#FFFFFF;stroke-width:2;stroke-miterlimit:10;}\n\t.st22{fill:none;stroke:#00A0DF;stroke-width:2;stroke-miterlimit:10;}\n")),n.createElement("g",{id:"Reference",className:"st0"},n.createElement("image",{style:{display:"inline",overflow:"visible"},width:3808,height:2258,xlinkHref:"D4BA146C9DCC15D1.png",transform:"matrix(0.9147 0 0 0.9147 -939.1922 -214.9771)"})),Ld||(Ld=n.createElement("g",{id:"Background",className:"st0"},n.createElement("rect",{className:"st1",width:2430.2,height:1721.2}))),Md||(Md=n.createElement("g",{id:"Grid",className:"st0"},n.createElement("g",{className:"st2"},n.createElement("rect",{className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:286.9,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:573.7,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:860.6,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:1147.5,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:404.2,y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:808.4,y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1212.6,y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:1616.7,y:1434.3,className:"st3",width:404.2,height:286.9}),n.createElement("rect",{x:2020.9,y:1434.3,className:"st3",width:404.2,height:286.9})))),Pd||(Pd=n.createElement("g",{id:"Margin",className:"st0"},n.createElement("g",{className:"st4"},n.createElement("polygon",{className:"st5",points:"2400.7,1685.5 2400.7,1649.9 69.8,1649.9 69.7,71.4 2361.4,71.4 2361.4,1685.5 2400.7,1685.5 2400.7,1649.9 2400.7,1685.5 2430.1,1685.5 2430.1,0 0,0 0,1721.2 2430.1,1721.2 2430.1,1685.5 "})))),n.createElement("g",{id:"Art"},Id||(Id=n.createElement("line",{className:"st6",x1:207.9,y1:283,x2:207.9,y2:252.9})),Rd||(Rd=n.createElement("path",{className:"st6",d:"M1894.6,854.1v628.1h127.6"})),Dd||(Dd=n.createElement("path",{className:"st6",d:"M1616.7,860.6V0.6"})),Ad||(Ad=n.createElement("path",{className:"st6",d:"M1616.7,1137.3V1314h-331.9c-0.6-4.1-0.9-8.2-0.9-12.5c0-47,38.2-85.2,85.3-85.2c4.3,0,8.5,0.3,12.7,0.9 c3-44.3,39.9-79.3,85-79.3c20,0,38.3,6.9,52.8,18.4c15.5-16.4,37.5-26.6,61.8-26.6C1594.1,1129.7,1606,1132.4,1616.7,1137.3z"})),Hd||(Hd=n.createElement("path",{className:"st6",d:"M1138,1306.5c0,2.5-0.1,5-0.3,7.4h-328v-135c15.6-18.8,39.2-30.7,65.5-30.7c24.8,0,47.2,10.6,62.8,27.6 c11.8-6.2,25.2-9.7,39.5-9.7c36.6,0,67.7,23,79.8,55.3C1102.3,1223.8,1138,1260.9,1138,1306.5z"})),Fd||(Fd=n.createElement("path",{className:"st7",d:"M1361,1015.5v56.2"})),Bd||(Bd=n.createElement("path",{className:"st7",d:"M1065.5,1015.5v56.2"})),zd||(zd=n.createElement("path",{className:"st7",d:"M1379.4,1015.5v41.1"})),Vd||(Vd=n.createElement("path",{className:"st7",d:"M1048.1,1015.5v41.1"})),Td||(Td=n.createElement("path",{className:"st6",d:"M1239,1032.3h-54.5l-12.9,31.8h80.3L1239,1032.3z"})),Wd||(Wd=n.createElement("path",{className:"st6",d:"M0,1314.1h810.6v407.1"})),Ud||(Ud=n.createElement("path",{className:"st6",d:"M1894.6,855.1h-277.9v459"})),Zd||(Zd=n.createElement("path",{className:"st8",d:"M1053.7,855.1h-244"})),Gd||(Gd=n.createElement("path",{className:"st8",d:"M809.7,855.1V1314h807.1V855.1c-81.6,0-163.2,0-244.9,0"})),qd||(qd=n.createElement("path",{className:"st6",d:"M1029.7,740.6h-27.4"})),Yd||(Yd=n.createElement("path",{className:"st6",d:"M1016,726.9v27.4"})),Kd||(Kd=n.createElement("path",{className:"st6",d:"M1511.4,534H1484"})),Jd||(Jd=n.createElement("path",{className:"st6",d:"M1497.7,520.4v27.4"})),Qd||(Qd=n.createElement("path",{className:"st9",d:"M1420.1,640.3h-27.4"})),Xd||(Xd=n.createElement("path",{className:"st9",d:"M1406.4,626.6V654"})),$d||($d=n.createElement("path",{className:"st7",d:"M1378.3,484.5h-27.4"})),em||(em=n.createElement("path",{className:"st7",d:"M1364.6,470.8v27.4"})),tm||(tm=n.createElement("path",{className:"st6",d:"M1333.5,373h-27.4"})),am||(am=n.createElement("path",{className:"st6",d:"M1319.8,359.3v27.4"})),nm||(nm=n.createElement("path",{className:"st9",d:"M932.3,601.3h-27.4"})),rm||(rm=n.createElement("path",{className:"st9",d:"M918.7,587.6V615"})),cm||(cm=n.createElement("path",{className:"st7",d:"M951.6,370.1h-27.4"})),sm||(sm=n.createElement("path",{className:"st7",d:"M937.9,356.4v27.4"})),lm||(lm=n.createElement("path",{className:"st7",d:"M1491.6,395.6h-27.4"})),im||(im=n.createElement("path",{className:"st7",d:"M1478,381.9v27.4"})),om||(om=n.createElement("path",{className:"st9",d:"M1142,403.6h-27.4"})),um||(um=n.createElement("path",{className:"st9",d:"M1128.3,389.9v27.4"})),dm||(dm=n.createElement("path",{className:"st7",d:"M1081.8,616.4h-27.4"})),mm||(mm=n.createElement("path",{className:"st7",d:"M1068.1,602.7V630"})),bm||(bm=n.createElement("path",{className:"st6",d:"M1060.2,481.1h-27.4"})),pm||(pm=n.createElement("path",{className:"st6",d:"M1046.5,467.4v27.4"})),hm||(hm=n.createElement("g",null,n.createElement("path",{className:"st6",d:"M1889.7,480.8v128.4h-3.2H1773c13,0,23.6,10.5,23.6,23.6c0,6.5-2.6,18.7-6.9,23l-16.7,0.6 c-13,0-23.6-10.5-23.6-23.6V457.2h116.6C1879.2,457.2,1889.7,467.8,1889.7,480.8z"}),n.createElement("path",{className:"st7",d:"M1806.2,514.5l-15.8,21.8l15.8,21.8"}),n.createElement("path",{className:"st7",d:"M1835.4,559l15.8-21.8l-15.8-21.8"}),n.createElement("path",{className:"st7",d:"M1829.5,515.2l-16.4,43.4"}),n.createElement("path",{className:"st10",d:"M1926,632.8c0,13-10.5,23.6-23.6,23.6H1773c6.5,0,12.5-2.6,16.7-6.9c4.2-4.3,6.9-10.1,6.9-16.6 c0-13-10.5-23.6-23.6-23.6h129.4C1915.4,609.2,1926,619.8,1926,632.8z"}))),jm||(jm=n.createElement("path",{className:"st6",d:"M809.7,855.1V249.4H405.9"})),fm||(fm=n.createElement("path",{className:"st6",d:"M1260.1,1085.9l60.3,135.4"})),vm||(vm=n.createElement("path",{className:"st7",d:"M1255.2,1119.2l36.2,95.8"})),Om||(Om=n.createElement("path",{className:"st7",d:"M1174.8,1106.2l-42.2,93.3"})),gm||(gm=n.createElement("path",{className:"st6",d:"M1164.6,1087.3l-68,134.6"})),_m||(_m=n.createElement("path",{className:"st6",d:"M1326,842.1c46.5,0,84.3,37.7,84.3,84.3v63.5H1326V842.1z"})),xm||(xm=n.createElement("path",{className:"st6",d:"M1099.1,842.1c-46.5,0-84.3,37.7-84.3,84.3v63.5h84.3V842.1z"})),wm||(wm=n.createElement("path",{className:"st6",d:"M1305.5,639.4v380.6h-185.8V639.4l55.6-132.9c6.3-15,21-24.8,37.3-24.8c8.2,0,15.9,2.5,22.4,6.8 c6.5,4.3,11.8,10.5,14.9,18L1305.5,639.4z"})),ym||(ym=n.createElement("g",null,n.createElement("circle",{className:"st6",cx:1213.6,cy:689.5,r:50.9}),n.createElement("circle",{className:"st6",cx:1213.6,cy:689.5,r:62.9}))),Nm||(Nm=n.createElement("path",{className:"st7",d:"M825.5,1200.8c7.7-20.6,27.6-35.3,51-35.3c22.1,0,41.1,13.1,49.6,31.8"})),n.createElement("g",null,km||(km=n.createElement("defs",null,n.createElement("rect",{id:"SVGID_1_",x:1303.5,y:1240.8,transform:"matrix(0.8563 -0.5166 0.5166 0.8563 -455.9261 881.544)",width:104.9,height:38.4}))),n.createElement("clipPath",{id:"SVGID_2_"},n.createElement("use",{xlinkHref:"#SVGID_1_",style:{overflow:"visible"}})),Em||(Em=n.createElement("path",{className:"st11",d:"M1322.4,1301.7c-4.1-21.6,5.4-44.5,25.4-56.6c18.9-11.4,41.9-10,58.9,1.6"}))),n.createElement("g",null,Cm||(Cm=n.createElement("defs",null,n.createElement("rect",{id:"SVGID_3_",x:1519.7,y:1155,transform:"matrix(0.9876 -0.1571 0.1571 0.9876 -164.2807 260.0947)",width:87.9,height:29.1}))),n.createElement("clipPath",{id:"SVGID_4_"},n.createElement("use",{xlinkHref:"#SVGID_3_",style:{overflow:"visible"}})),Sm||(Sm=n.createElement("path",{className:"st12",d:"M1524.2,1189.9c3.9-16.4,18.7-30,38-33.1c18.3-2.9,35.5,4.4,44.8,17.3"}))),n.createElement("g",null,Lm||(Lm=n.createElement("defs",null,n.createElement("rect",{id:"SVGID_5_",x:1075.2,y:1210.2,transform:"matrix(0.6355 -0.7721 0.7721 0.6355 -578.0751 1301.8018)",width:29.1,height:105.8}))),n.createElement("clipPath",{id:"SVGID_6_"},n.createElement("use",{xlinkHref:"#SVGID_5_",style:{overflow:"visible"}})),Mm||(Mm=n.createElement("path",{className:"st13",d:"M1029.7,1245.5c15.9-7.1,38.5-2.9,56.7,12.1c17.2,14.2,25.7,34,23.3,50.4"}))),Pm||(Pm=n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st6",d:"M300.9,177.6l24.5,52.9c1.7,3.6-1,7.7-4.9,7.7h-15.5v13.4c0,14.6-11.8,26.4-26.4,26.4h-23.9"}),n.createElement("path",{className:"st6",d:"M194.2,188.9v33.2h-17.4v6.2c0,13.5,11,24.5,24.5,24.5h13.1v-44.5h0.3c10.1,0,18.2-8.2,18.2-18.2v-1.2"})),n.createElement("path",{className:"st14",d:"M198.1,161.6h88.3v-0.8h15.5c0.9,0,1.8,0.2,2.5,0.5c2.3,1,4,3.3,4,6v22.9v1h-2.2H192.7v-23.9 c0-2.4,1.4-4.6,3.4-5.7H198.1z"}),n.createElement("path",{className:"st14",d:"M198,163.3h106.4c0-0.7,0-1.3,0-2c-1.1-28.4-24.4-51.2-53.1-51.2c-28,0-50.9,21.6-53,49.1h88.2v2.4h-88.3 C198.1,162.1,198,162.7,198,163.3z"}),n.createElement("path",{className:"st14",d:"M251.7,120c3.7,0,6.6-3,6.6-6.6c0-3.7-3-6.6-6.6-6.6c-3.7,0-6.6,3-6.6,6.6C245,117,248,120,251.7,120z"}),n.createElement("path",{className:"st10",d:"M285.1,211.3c1.9,0,3.5-1.6,3.5-3.5s-1.6-3.5-3.5-3.5c-1.9,0-3.5,1.6-3.5,3.5S283.2,211.3,285.1,211.3z"})),n.createElement("path",{className:"st6",d:"M240,405c91.5,0,165.6-74.1,165.6-165.6c0-91.4-74.2-165.5-165.6-165.5c-91.5,0-165.6,74.1-165.6,165.5 C74.3,330.9,148.5,405,240,405z"}))),Im||(Im=n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st14",d:"M694.2,1196.2c14.7,0,26.7-12,26.7-26.7c0-14.7-12-26.7-26.7-26.7c-14.7,0-26.7,12-26.7,26.7 C667.5,1184.3,679.5,1196.2,694.2,1196.2z"}),n.createElement("path",{className:"st6",d:"M717,1169.6c0,15.8-12.8,28.6-28.6,28.6c-0.8,0-1.7,0-2.5-0.1l-12.3,12.4l0.1-16.4 c-8.3-5-13.9-14.1-13.9-24.5c0-15.8,12.8-28.6,28.6-28.6C704.3,1141,717,1153.8,717,1169.6z"}),n.createElement("path",{className:"st6",d:"M679.7,1171.8l7.1,8.8l17.8-17.8"})),n.createElement("path",{className:"st15",d:"M729.5,1228h-78.2c-15.3,0-27.7-12.4-27.7-27.7v-56.2c0-12.3,10-22.3,22.3-22.3h83.6 c15.3,0,27.7,12.4,27.7,27.7v50.8C757.2,1215.6,744.8,1228,729.5,1228z"}),n.createElement("line",{className:"st15",x1:690.4,y1:1313.4,x2:690.4,y2:1228.4}))),Rm||(Rm=n.createElement("g",null,n.createElement("line",{className:"st15",x1:132.6,y1:1313.4,x2:132.6,y2:1198.7}))),Dm||(Dm=n.createElement("g",null,n.createElement("g",{className:"st16"},n.createElement("path",{className:"st17",d:"M552.8,1203.1c-13,0-19.5-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.7-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.7,25.5-25.7,25.5c-13,0-19.5-13-25.8-25.5c-6.4-12.8-12.4-24.8-24.6-24.8c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9v-1.2c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c12.9,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.7-25.5,25.7-25.5c13,0,19.5,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5v1.2c-12.2,0-18.2,12.1-24.6,24.8 C572.3,1190.1,565.8,1203.1,552.8,1203.1z"})),n.createElement("g",{className:"st18"},n.createElement("path",{className:"st17",d:"M562.6,1203.1c-13,0-19.5-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.7-24.9s-18.3,12.1-24.7,24.9 c-6.3,12.5-12.7,25.5-25.7,25.5c-13,0-19.5-13-25.8-25.5c-6.4-12.8-12.4-24.8-24.6-24.8c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9v-1.2c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c12.9,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.7-25.5,25.7-25.5s19.5,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5v1.2c-12.2,0-18.2,12.1-24.6,24.8 C582.1,1190.1,575.6,1203.1,562.6,1203.1z"})),n.createElement("g",null,n.createElement("path",{className:"st17",d:"M572.4,1203.1c-13,0-19.5-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.7-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.7,25.5-25.7,25.5c-13,0-19.5-13-25.8-25.5c-6.4-12.8-12.4-24.8-24.6-24.8c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9c-12.2,0-18.3,12.1-24.7,24.9 c-6.3,12.5-12.8,25.5-25.7,25.5c-13,0-19.4-13-25.7-25.5c-6.4-12.8-12.4-24.9-24.6-24.9v-1.2c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c13,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.6,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5c12.9,0,19.4,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.7-25.5,25.7-25.5c13,0,19.5,13,25.7,25.5 c6.4,12.8,12.4,24.9,24.7,24.9c12.2,0,18.3-12.1,24.7-24.9c6.3-12.5,12.8-25.5,25.7-25.5v1.2c-12.2,0-18.2,12.1-24.6,24.8 C591.9,1190.1,585.4,1203.1,572.4,1203.1z"})),n.createElement("path",{className:"st15",d:"M532.1,1228H271.7c-15.3,0-27.7-12.4-27.7-27.7v-50.8c0-15.3,12.4-27.7,27.7-27.7h260.5 c15.3,0,27.7,12.4,27.7,27.7v50.8C559.8,1215.6,547.4,1228,532.1,1228z"}),n.createElement("line",{className:"st15",x1:412.3,y1:1313.4,x2:412.3,y2:1228.4}))),Am||(Am=n.createElement("g",null,n.createElement("ellipse",{transform:"matrix(0.9833 -0.1818 0.1818 0.9833 -212.1949 36.6854)",className:"st14",cx:94,cy:1175.7,rx:17.6,ry:17.6}),n.createElement("path",{className:"st6",d:"M172.5,1154c12,0,21.7,9.7,21.7,21.7c0,12-9.7,21.7-21.7,21.7l-81.2,0c-12,0-21.7-9.7-21.7-21.7 c0-12,9.7-21.7,21.7-21.7L172.5,1154z"}))),Hm||(Hm=n.createElement("line",{className:"st6",x1:1325.7,y1:855.8,x2:1305.1,y2:855.8})),Fm||(Fm=n.createElement("line",{className:"st6",x1:1119.3,y1:855.8,x2:1098.7,y2:855.8})),Bm||(Bm=n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("g",null,n.createElement("line",{className:"st19",x1:2281.2,y1:970.6,x2:2035.3,y2:970.6}))))),n.createElement("g",null,n.createElement("rect",{x:2057.1,y:908.7,transform:"matrix(-1.836970e-16 1 -1 -1.836970e-16 3203.5029 -1113.0746)",className:"st6",width:202.3,height:273.1}),n.createElement("rect",{x:2035.3,y:957.6,className:"st6",width:246,height:175.3})),n.createElement("polygon",{className:"st19",points:"2209.8,1175.4 2202.2,1146.4 2160.8,1146.4 2155.7,1146.4 2114.4,1146.4 2106.7,1175.4 2097.7,1175.4 2097.7,1183.4 2158.3,1183.4 2218.9,1183.4 2218.9,1175.4 "})))),zm||(zm=n.createElement("g",null,n.createElement("path",{className:"st6",d:"M1193.8,192c7.2,0,13.1-5.8,13.1-13.1c0-7.2-5.8-13.1-13.1-13.1c-7.2,0-13.1,5.8-13.1,13.1 C1180.7,186.2,1186.6,192,1193.8,192z"}),n.createElement("path",{className:"st6",d:"M1229.1,192c7.2,0,13.1-5.8,13.1-13.1c0-7.2-5.8-13.1-13.1-13.1c-7.2,0-13.1,5.8-13.1,13.1 C1216.1,186.2,1221.9,192,1229.1,192z"}),n.createElement("path",{className:"st6",d:"M1264,204.2c-1.9,30.3-24.5,54.3-52.1,54.3c-27.7,0-50.4-24.1-52.1-54.6c-0.1-1.2-0.1-2.5-0.1-3.8 c0-9.3,2-18.1,5.4-25.9c0-0.7-0.1-1.4-0.1-2.1c0-3.8,0.5-7.5,1.3-11.1c5-20.3,23.3-35.4,45.1-35.4c21.8,0,40.1,15.1,45.1,35.3 c-0.1,0-0.1,0-0.2,0"}),n.createElement("path",{className:"st6",d:"M1244.3,218c-8.4,8.4-20,13.6-32.9,13.6c-11.9,0-22.8-4.5-31.1-11.9"}),n.createElement("path",{className:"st10",d:"M1204.2,206.2c1.7,0,3.1-1.4,3.1-3.1c0-1.7-1.4-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1 C1201.1,204.9,1202.5,206.2,1204.2,206.2z"}),n.createElement("path",{className:"st10",d:"M1219.5,206.2c1.7,0,3.1-1.4,3.1-3.1c0-1.7-1.4-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1 C1216.5,204.9,1217.8,206.2,1219.5,206.2z"}),n.createElement("path",{className:"st10",d:"M1194.7,182.4c1.7,0,3.1-1.4,3.1-3.1c0-1.7-1.4-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1 C1191.6,181,1193,182.4,1194.7,182.4z"}),n.createElement("path",{className:"st10",d:"M1228.7,182.4c1.7,0,3.1-1.4,3.1-3.1c0-1.7-1.4-3.1-3.1-3.1c-1.7,0-3.1,1.4-3.1,3.1 C1225.6,181,1227,182.4,1228.7,182.4z"}),n.createElement("path",{className:"st6",d:"M1165,174.2c-3.5,7.8-5.4,16.6-5.4,25.9c0,1.3,0,2.5,0.1,3.8c-8.2-3.3-13.9-11.3-13.9-20.7 c0-11.7,9-21.3,20.5-22.2c-0.9,3.5-1.3,7.3-1.3,11.1C1165,172.8,1165,173.5,1165,174.2z"}),n.createElement("path",{className:"st6",d:"M1278.7,183.2c0,9.7-6.1,17.9-14.7,21c0.1-1.3,0.1-2.7,0.1-4.1c0-9.9-2.2-19.3-6.2-27.5c0-0.2,0-0.4,0-0.5 c0-3.8-0.5-7.6-1.3-11.1C1268.8,161,1278.7,171,1278.7,183.2z"}),n.createElement("path",{className:"st6",d:"M1178.5,139.4c3.5-3.8,8.4-6.1,14-6.1c10.5,0,19,8.5,19,19"}),n.createElement("path",{className:"st6",d:"M1211.5,152.3c0-10.5,8.5-19,19-19c5.2,0,9.9,2.1,13.4,5.5"}),n.createElement("path",{className:"st7",d:"M1295,135.6h11.1c14,0,14.3,11.4,14.3,25.4v9.8c0,14-0.3,25.4-14.3,25.4H1295"}),n.createElement("path",{className:"st7",d:"M1130.1,196.2H1119c-14,0-14.3-11.4-14.3-25.4V161c0-14,0.3-25.4,14.3-25.4h11.1"}),n.createElement("path",{className:"st7",d:"M1286.5,163.4c0,0,2.3-40.5-76.5-40.5c-73.3,0-70,40-70,40l4.1,62.2c0.7,0.7-1.9-2.7-2.8-4 c-0.1-0.1-0.2-0.2-0.2-0.3c-1-1.5-2-3-2.9-4.6c-3.7-6.2-6.6-13-8.8-20c-2.7-8.9-4.2-18.4-4.2-28.3c0-50.7,38.8-91.7,86.8-91.7 c47.9,0,86.7,41,86.7,91.7c0,17.8-5.6,38-13,48.4L1286.5,163.4z"}),n.createElement("path",{className:"st20",d:"M1286.5,163.4l-0.9,52.8c-3.4,6-4.9,7.7-7.7,11.1c-15.9,19.7-39.6,32.3-66,32.3c-26.4,0-50.1-12.5-65.9-32.3 c-0.6-0.7-1.2-1.5-1.8-2.3l-4.1-62.2c0,0-3.3-40,70-40C1288.8,123,1286.5,163.4,1286.5,163.4z"}),n.createElement("path",{className:"st20",d:"M1138.1,216.3c0.9,1.5,1.9,3,2.9,4.6c0.1,0.1,0.1,0.2,0.2,0.3c0.9,1.4,1.9,2.7,2.8,4"}),n.createElement("path",{className:"st7",d:"M1300.1,241.5c0,24-39.1,43.6-87.3,43.6c-48.2,0-87.2-19.5-87.2-43.6c0-10.5,7.7-13.8,20.2-14.1 c15.9,19.7,39.5,32.3,65.9,32.3c26.4,0,50.1-12.6,66-32.3C1291.7,227.3,1300.1,230.2,1300.1,241.5z"}))),Vm||(Vm=n.createElement("g",null,n.createElement("circle",{className:"st21",cx:571.9,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:571.9,cy:1598.6,r:11.2}),n.createElement("circle",{className:"st21",cx:571.9,cy:1432.5,r:11.2}),n.createElement("circle",{className:"st21",cx:492.6,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:492.6,cy:1598.6,r:11.2}),n.createElement("circle",{className:"st21",cx:492.6,cy:1432.5,r:11.2}),n.createElement("circle",{className:"st21",cx:410.8,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:324,cy:1601,r:11.2}),n.createElement("circle",{className:"st21",cx:324,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:237.2,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:237.2,cy:1514.3,r:11.2}),n.createElement("circle",{className:"st21",cx:237.2,cy:1598.6,r:11.2}),n.createElement("circle",{className:"st21",cx:324,cy:1432.5,r:11.2}),n.createElement("circle",{className:"st21",cx:410.8,cy:1598.6,r:11.2}),n.createElement("circle",{className:"st21",cx:410.8,cy:1432.5,r:11.2}),n.createElement("circle",{className:"st21",cx:237.2,cy:1432.5,r:11.2}),n.createElement("line",{className:"st21",x1:571.9,y1:1432.5,x2:500,y2:1432.5}),n.createElement("line",{className:"st21",x1:490.1,y1:1516.7,x2:573.2,y2:1599.8}),n.createElement("line",{className:"st21",x1:410.8,y1:1598.6,x2:569.5,y2:1598.6}),n.createElement("line",{className:"st21",x1:410.8,y1:1514.3,x2:324,y2:1601}))),Tm||(Tm=n.createElement("g",null,n.createElement("ellipse",{transform:"matrix(0.9846 -0.1747 0.1747 0.9846 -246.14 217.8016)",className:"st14",cx:1114.1,cy:1507.1,rx:51.6,ry:51.6}),n.createElement("path",{className:"st6",d:"M1344.2,1443.6c35,0,63.5,28.4,63.5,63.5c0,35-28.4,63.5-63.5,63.5l-238,0c-35,0-63.5-28.4-63.5-63.5 c0-35,28.4-63.5,63.5-63.5L1344.2,1443.6z"}))),Wm||(Wm=n.createElement("g",null,n.createElement("path",{className:"st7",d:"M1809,1038.5c16.8,20.8,18.7,51,2.8,74.2c-19.5,28.3-58.1,35.4-86.4,16c-28.2-19.5-35.4-58.1-16-86.4 c15.8-22.9,44.2-32,69.4-24.2"}),n.createElement("path",{className:"st10",d:"M1788.7,1027.4c1.7-2.4,4.9-3,7.4-1.4c2.4,1.6,3,4.9,1.4,7.3l-31.5,45.7c-1.7,2.4-4.9,3-7.3,1.4 c-2.4-1.6-3-4.9-1.4-7.3L1788.7,1027.4z"}),n.createElement("path",{className:"st7",d:"M1799.7,1326.1c-20.8,16.8-51,18.7-74.2,2.8c-28.3-19.5-35.4-58.1-16-86.4c19.5-28.2,58.1-35.4,86.4-16 c22.9,15.8,32,44.2,24.2,69.4"}),n.createElement("path",{className:"st10",d:"M1810.8,1305.8c2.4,1.7,3,4.9,1.4,7.4c-1.6,2.4-4.9,3-7.3,1.4l-45.7-31.5c-2.4-1.7-3-4.9-1.4-7.3 c1.6-2.4,4.9-3,7.3-1.4L1810.8,1305.8z"}),n.createElement("path",{className:"st7",d:"M1721.6,1429.5c20.8-16.8,51-18.7,74.2-2.8c28.3,19.5,35.4,58.1,16,86.4c-19.5,28.2-58.1,35.4-86.4,16 c-22.9-15.8-31.9-44.2-24.2-69.4"}),n.createElement("path",{className:"st10",d:"M1710.5,1449.8c-2.4-1.7-3-4.9-1.4-7.4c1.6-2.4,4.9-3,7.3-1.4l45.7,31.5c2.4,1.7,3,4.9,1.4,7.3 c-1.6,2.4-4.9,3-7.3,1.4L1710.5,1449.8z"}))),Um||(Um=n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st6",d:"M461.9,721.2c-3.2-1.8-6.3-3.8-9.2-6.1l-23.6,4.7l-15-25l14.5-17.9c-2.3-9.5-2.5-19.7-0.6-29.7l-14.6-17.2 l14.4-25.1l22.2,3.9c7.3-6.5,15.9-11.4,25-14.1l7.7-21.6l29.2-0.2l8.1,22.7c3.7,1.2,7.3,3.1,10.7,5c3.2,1.8,6.3,3.8,9.2,6.1 l23.6-4.7l15,25l-14.5,17.9c2.3,9.5,2.5,19.7,0.6,29.7l14.6,17.2L564.7,717l-22.2-3.9c-7.3,6.5-15.9,11.4-25,14.1l-7.7,21.6 l-29.2,0.2l-8.1-22.7C469,725.1,465.4,723.2,461.9,721.2z"}),n.createElement("path",{className:"st14",d:"M461.3,640.6c11.1-19.4,36-26.3,55.5-15.1c19.6,11.2,26.1,35.9,14.9,55.4c-11.2,19.6-36,26.3-55.4,15.2 C457,685.1,450.2,660.1,461.3,640.6z"})),n.createElement("g",null,n.createElement("path",{className:"st7",d:"M317.1,818.9c-1.8-1.5-3.4-3.2-4.9-4.9l-15,0.2l-6.2-17.2l11.1-9.3c-0.3-6,0.7-12.5,3.2-18.2l-7-12.4 l11.9-13.8l13.3,5c5.2-3.2,11.1-5.1,16.9-5.9l7.2-12.3l17.8,3.4l2.4,14.9c2.1,1.2,4.1,2.6,6.1,4.3c1.8,1.5,3.4,3.2,4.8,4.7 l15-0.2l6.2,17.2l-11.1,9.3c0.3,6-0.7,12.5-3.2,18.2l7,12.4l-11.9,13.8l-13.3-5c-5.2,3.2-11.1,5.1-17.1,5.7l-7.2,12.3l-17.9-3.6 l-2.4-14.9C321.1,822,319.1,820.5,317.1,818.9z"}),n.createElement("path",{className:"st10",d:"M330.3,774.5c6.8-7.9,18.8-8.8,26.7-2c7.9,6.8,8.8,18.8,2,26.7c-6.8,7.9-18.8,8.8-26.7,2 S323.5,782.4,330.3,774.5z"})),n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st7",d:"M250.6,778.9c-0.7,30.2,13.2,57.4,35.1,74.7"}),n.createElement("g",null,n.createElement("polygon",{className:"st14",points:"275.4,855.6 275.3,853.6 285.1,853.1 283.8,843.3 285.8,843 287.4,854.9 "})))),n.createElement("g",null,n.createElement("g",null,n.createElement("path",{className:"st7",d:"M622.1,672.2c10.7-48.4-18.7-96.9-66.7-109.7"}),n.createElement("g",null,n.createElement("polygon",{className:"st14",points:"564,556.6 564.9,558.4 556.1,562.8 561.2,571.3 559.5,572.3 553.3,562 "})))))),Zm||(Zm=n.createElement("g",null,n.createElement("path",{className:"st6",d:"M2189.5,1641.2c93.1,0,168.5-75.4,168.5-168.5c0-93-75.5-168.4-168.5-168.4c-93.1,0-168.5,75.4-168.5,168.4 C2020.9,1565.8,2096.4,1641.2,2189.5,1641.2z"}),n.createElement("g",null,n.createElement("circle",{className:"st14",cx:2236.6,cy:1390,r:20.7}),n.createElement("line",{className:"st6",x1:2215.6,y1:1467.4,x2:2215.6,y2:1534.3}),n.createElement("path",{className:"st6",d:"M2116.5,1488.6"}),n.createElement("path",{className:"st6",d:"M2165.8,1517.5c-30.9,0-45.9-15.8-45.9-34c-5.5-3-17.1-8.1-17.1-8.1s23-25.3,23-45.9"}),n.createElement("circle",{className:"st6",cx:2147.2,cy:1449.2,r:17.8}),n.createElement("g",null,n.createElement("line",{className:"st6",x1:2164.2,y1:1443.7,x2:2207.1,y2:1443.7})),n.createElement("path",{className:"st14",d:"M2236.2,1407.5v73.9l-29.1,14.1v-36.7c1.4,1,3.2,1.6,5.1,1.6c4.8,0,8.7-3.9,8.7-8.7c0-4.8-3.9-8.7-8.7-8.7 c-1.9,0-3.7,0.6-5.1,1.6V1405l-107.7,17.7c0-36.5,29.6-66.1,66.1-66.1c28,0,52,17.4,61.6,42 C2229.9,1406.1,2236.2,1407.5,2236.2,1407.5z"}),n.createElement("g",null,n.createElement("path",{className:"st6",d:"M2179.5,1549.3"})),n.createElement("circle",{className:"st10",cx:2140.8,cy:1447,r:3.4})))),Gm||(Gm=n.createElement("g",null,n.createElement("line",{className:"st22",x1:2138.5,y1:573.7,x2:2138.5,y2:819.3}),n.createElement("line",{className:"st22",x1:2190,y1:573.7,x2:2190,y2:819.3}),n.createElement("circle",{className:"st10",cx:2138.5,cy:631.5,r:14.1}),n.createElement("circle",{className:"st10",cx:2190,cy:714,r:14.1}))),qm||(qm=n.createElement("g",null,n.createElement("path",{className:"st6",d:"M1617.7,285.4h698.9"}),n.createElement("path",{className:"st6",d:"M2316.6,374.3H2240V196.2h76.6"}),n.createElement("path",{className:"st10",d:"M2337.9,216.2c11.9,0,21.6-9,21.6-20.2s-9.6-20.2-21.6-20.2s-21.6,9-21.6,20.2 C2316.6,207.4,2326.3,216.2,2337.9,216.2z"}),n.createElement("path",{className:"st14",d:"M2337.9,305.3c11.9,0,21.6-9,21.6-20c0-11.2-9.6-20.2-21.6-20.2s-21.6,9-21.6,20.2 C2316.6,296.3,2326.3,305.3,2337.9,305.3z"}),n.createElement("path",{className:"st10",d:"M2337.9,394.5c11.9,0,21.6-9,21.6-20.2c0-11.2-9.6-20.2-21.6-20.2s-21.6,9-21.6,20.2 C2316.6,385.5,2326.3,394.5,2337.9,394.5z"}))),Ym||(Ym=n.createElement("g",null,n.createElement("path",{className:"st7",d:"M258.5,287.5l-17.8,16.2L207.9,283l-37.3,30.5c0,0-26.2,19.3-26.2,34.3c26.2,0,177.2,0,177.2,0 c0-17.7-21.3-30.9-21.3-30.9L258.5,287.5z"}),n.createElement("path",{className:"st14",d:"M242.3,303.5l-45.1,43.4l-52.8,0.9c0,0-0.2-10.6,11.2-21s52.3-43.8,52.3-43.8L242.3,303.5z"}))),Km||(Km=n.createElement("g",null,n.createElement("path",{className:"st7",d:"M2165.3,1528.7l17.8,16.2l32.8-20.8l37.3,30.5c0,0,26.2,19.3,26.2,34.3c-26.2,0-177.2,0-177.2,0 c0-17.7,21.3-30.9,21.3-30.9L2165.3,1528.7z"}),n.createElement("path",{className:"st14",d:"M2181.5,1544.7l45.1,43.4l52.8,0.9c0,0,0.2-10.6-11.2-21c-11.4-10.4-52.3-43.8-52.3-43.8L2181.5,1544.7z"})))))}var tb=n.forwardRef(eb),ab=(a.p,a(354)),nb=a.n(ab),rb=D.a.bind(nb.a);function cb(){var e=Object(n.useState)({username:"",password:""}),t=Object(o.a)(e,2),a=(t[0],t[1]),r=function(e){return function(t){a((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}};return Object(He.jsxs)("section",{className:rb("wrapper"),children:[Object(He.jsxs)("div",{className:rb("login"),children:[Object(He.jsx)("div",{className:rb("kicker"),children:Object(He.jsx)(Jm,{})}),Object(He.jsxs)("div",{className:rb("header"),children:[Object(He.jsx)("h1",{className:rb("title"),children:"Sign in using your Gogs credentials."}),Object(He.jsx)("span",{className:rb("title-sub"),children:"\u4f7f\u7528\u60a8\u7684Gogs\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5f55"})]}),Object(He.jsxs)(ii,{className:rb("form"),method:"POST",action:"/login",children:[Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Username",name:"username",width:"100%",type:"text",required:!0,onChange:r("username")})}),Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Password",name:"password",width:"100%",type:"password",autoComplete:"current-password",required:!0,onChange:r("password")})}),Object(He.jsx)(li,{children:Object(He.jsx)(Ye,{theme:"primary",type:"submit",className:rb("btn","btn-sign-in"),children:"Sign in"})})]})]}),Object(He.jsx)("div",{className:rb("illustration"),children:Object(He.jsx)(tb,{})})]})}var sb=a(355),lb=a.n(sb),ib=D.a.bind(lb.a);function ob(){var e=Object(b.g)(),t=Object(n.useState)({name:"",email:"",company:""}),a=Object(o.a)(t,2),r=a[0],c=a[1],s=function(e){return function(t){c((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}},l=Object(n.useCallback)(Object(m.a)(d.a.mark((function t(){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at("/api/user",{method:"PATCH",data:r});case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.warn(t.t0.message);case 8:e.push("/");case 9:case"end":return t.stop()}}),t,null,[[0,5]])}))),[r,e]);return Object(He.jsxs)("section",{className:ib("wrapper"),children:[Object(He.jsxs)("div",{className:ib("login"),children:[Object(He.jsx)("div",{className:ib("kicker"),children:Object(He.jsx)(Jm,{})}),Object(He.jsx)("div",{className:ib("header"),children:Object(He.jsx)("h1",{className:ib("title"),children:"Complete your Drone Registration."})}),Object(He.jsxs)(ii,{className:ib("form"),onSubmit:function(e){return e.preventDefault()},children:[Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Your Email",name:"email",width:"100%",type:"email",required:!0,onChange:s("email")})}),Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Your Full Name",name:"name",width:"100%",type:"text",required:!0,onChange:s("name")})}),Object(He.jsx)(li,{children:Object(He.jsx)(oi.Input,{label:"Company Name",name:"name",width:"100%",type:"text",onChange:s("company")})}),Object(He.jsx)(li,{children:Object(He.jsx)(Ye,{theme:"primary",className:ib("btn","btn-sign-in"),onClick:l,children:"Submit"})})]}),Object(He.jsxs)("div",{className:ib("legal"),children:['By clicking "Submit", you agree to our'," ",Object(He.jsx)("a",{href:"https://harness.io/privacy/",children:"Privacy Policy"})," ","and"," ",Object(He.jsx)("a",{href:"https://github.com/drone/drone/blob/master/LICENSE",children:"License"}),". See our"," ",Object(He.jsx)("a",{href:"https://docs.drone.io/enterprise/pings/",children:"documentation"})," ","to learn more about how we process your data."]})]}),Object(He.jsx)("div",{className:ib("illustration"),children:Object(He.jsx)(tb,{})})]})}var ub=a(356),db=a.n(ub),mb=D.a.bind(db.a),bb=function(e){var t,a=e.handleSubmit,r=e.handleCancel,c=e.target,s=e.parameters,l=Object(n.useState)({target:c,parameters:s}),u=Object(o.a)(l,2),d=u[0],m=u[1],b=Object(n.useState)({key:"",value:""}),p=Object(o.a)(b,2),h=p[0],j=p[1],f=function(e){return function(){return m((function(t){return Object(i.a)(Object(i.a)({},t),{},{parameters:t.parameters.filter((function(t){return t.id!==e}))})}))}},v=function(e){return function(t){j((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}};return Object(He.jsxs)(ii,{className:mb("new-build-form"),children:[Object(He.jsx)(li,{className:mb("new-build-form-column"),children:Object(He.jsx)(oi.Input,{label:"Branch",placeholder:"",value:d.target,name:"branch",onChange:(t="target",function(e){m((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},t,e.target.value.trim()))}))})})}),Object(He.jsxs)(li,{title:"Parameters",className:mb("new-build-form-column"),children:[d.parameters.length?Object(He.jsx)("div",{className:mb("new-build-form-parameters-list"),children:d.parameters.map((function(e){var t=e.key,a=e.value,n=e.id;return Object(He.jsxs)("div",{className:mb("new-build-form-parameters"),children:[Object(He.jsx)(oi.Input,{value:t,name:t,readOnly:!0}),Object(He.jsx)(oi.Input,{name:a,value:a,readOnly:!0}),Object(He.jsx)(Ye,{theme:"plain",type:"button",onClick:f(n),children:"Remove"})]},n)}))}):null,Object(He.jsxs)("div",{className:mb("new-build-form-parameters-fields"),children:[Object(He.jsx)(oi.Input,{name:"newKey",placeholder:"key",value:h.key,onChange:v("key")}),Object(He.jsx)(oi.Input,{name:"newVal",placeholder:"value",value:h.value,onChange:v("value")}),Object(He.jsx)(Ye,{theme:"plain",type:"button",onClick:function(){h.key&&h.value&&(m((function(e){return Object(i.a)(Object(i.a)({},e),{},{parameters:[].concat(Object(Ke.a)(e.parameters),[Object(i.a)(Object(i.a)({},h),{},{id:Date.now()})])})})),j({key:"",value:""}))},children:"+ Add"})]})]}),Object(He.jsxs)(li,{className:mb("new-build-form-controls"),children:[Object(He.jsx)(Ye,{theme:"primary",type:"submit",onClick:function(e){e.preventDefault(),a(d),r()},children:"Create"}),Object(He.jsx)(Ye,{theme:"primary",type:"button",onClick:r,children:"Cancel"})]})]})};bb.defaultProps={target:"",parameters:[]};var pb,hb,jb=bb,fb=["title","titleId"];function vb(){return vb=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function gb(e,t){var a=e.title,r=e.titleId,c=Ob(e,fb);return n.createElement("svg",vb({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-plus",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,pb||(pb=n.createElement("line",{x1:12,y1:5,x2:12,y2:19})),hb||(hb=n.createElement("line",{x1:5,y1:12,x2:19,y2:12})))}var _b,xb,wb,yb,Nb=n.forwardRef(gb),kb=(a.p,a(357)),Eb=a.n(kb),Cb=D.a.bind(Eb.a),Sb=function(e){var t=e.isRepoNavDisabled,a=e.namespace,n=e.name,r=e.displaySettings,c=[{to:"/".concat(a,"/").concat(n),exact:!0,label:"Builds",tag:t?"span":l.c},{to:"/".concat(a,"/").concat(n,"/branches"),exact:!0,label:"Branches",tag:t?"span":l.c},{to:"/".concat(a,"/").concat(n,"/deployments"),exact:!0,label:"Deployments",tag:t?"span":l.c},{to:"/".concat(a,"/").concat(n,"/settings"),label:"Settings",tag:l.c}];return r?c:c.slice(0,c.length-1)},Lb=function(e){var t=e.user,a=Object(b.j)().params,r=a.namespace,c=a.name,s=Object(n.useContext)(kt),i=Object(o.a)(s,1)[0].isRepoNavDisabled,u=Object(b.h)().search,p=new URLSearchParams(u),h="",j=[];try{h=p.get("target")||"",j=p.get("parameters")?JSON.parse(p.get("parameters")):[]}catch(I){console.warn("Invalid query parameters",I)}var f=Ps(!!p.get("target")),v=Object(o.a)(f,2),O=v[0],g=v[1],_=Ht({namespace:r,name:c}),x=_.data,w=_.isLoading,y=_.isError,N=Object(n.useMemo)((function(){var e,a;return null!==(e=null===x||void 0===x||null===(a=x.permissions)||void 0===a?void 0:a.write)&&void 0!==e&&e||(null===t||void 0===t?void 0:t.admin)}),[x,t]),k=K(),E=k.showError,C=k.showSuccess,L=Object(n.useMemo)((function(){return Object(He.jsx)("nav",{className:Cb("tabs"),children:Sb({isRepoNavDisabled:i,namespace:r,name:c,displaySettings:N}).map((function(e){return"span"===e.tag?Object(He.jsx)("span",{className:Cb("tab","tab-disabled"),children:e.label},e.label):Object(He.jsx)(l.c,{className:Cb("tab"),activeClassName:Cb("tab-active"),exact:e.exact,to:e.to,children:e.label},e.to)}))})}),[i,r,c,N]),M=g,P=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(t){var a,n,s,l,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new URLSearchParams,t.target&&n.set("branch",t.target),t.commit&&n.set("commit",t.commit),(null===(a=t.parameters)||void 0===a?void 0:a.length)&&t.parameters.forEach((function(e){n.set(e.key,e.value)})),s=n.toString(),l="/api/repos/".concat(r,"/").concat(c,"/builds").concat(s.length?"?".concat(s):""),e.prev=6,e.next=9,at(l,{method:"POST"});case 9:i=e.sent,C("New build has started successfully"),Pt(window.location.pathname,x,i),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(6),E("Unable to start a new build: ".concat(e.t0.message)),console.warn(e.t0.message);case 18:case"end":return e.stop()}}),e,null,[[6,14]])})));return function(t){return e.apply(this,arguments)}}(),[c,r,E,C,x]);return w?null:"Not Found"===(null===y||void 0===y?void 0:y.message)||"Unauthorized"===(null===y||void 0===y?void 0:y.message)?Object(He.jsx)(ol,{user:t}):Object(He.jsxs)(b.d,{children:[Object(He.jsx)(b.b,{path:["/:namespace/:name","/:namespace/:name/deployments","/:namespace/:name/branches","/:namespace/:name/settings*"],exact:!0,children:Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("header",{className:Cb("header"),children:[Object(He.jsxs)("div",{className:Cb("inner"),children:[Object(He.jsxs)(Wo,{className:Cb("breadcrumb"),children:[Object(He.jsx)(Uo,{href:"/",text:"Repositories"}),Object(He.jsx)(Zo,{})]}),Object(He.jsx)("h1",{children:c})]}),!i&&N&&Object(He.jsx)(Ye,{theme:"primary",className:Cb("new-build-btn"),icon:Object(He.jsx)(Nb,{}),onClick:M,children:"New Build"})]}),L,Object(He.jsxs)(b.d,{children:[Object(He.jsx)(dh.Branches,{path:"/:namespace/:name/branches",componentProps:{user:t,repo:x},visibility:S,exact:!0}),Object(He.jsx)(dh.Deployments,{path:"/:namespace/:name/deployments",componentProps:{user:t,repo:x},visibility:S,exact:!0}),Object(He.jsx)(dh.Settings,{path:"/:namespace/:name/settings*",componentProps:{user:t,repo:x},visibility:S}),Object(He.jsx)(dh.Builds,{path:"/:namespace/:name",componentProps:{user:t,repo:x},visibility:S,exact:!0})]}),Object(He.jsx)(Is,{title:"Create a New Build",isShowing:O,hide:g,children:Object(He.jsx)(jb,{handleSubmit:P,handleCancel:g,target:h,parameters:j})})]})}),Object(He.jsx)(dh.Build,{path:"/:namespace/:name/:build/:stage?/:step?",componentProps:{user:t,userIsAdminOrHasWritePerm:N},visibility:S})]})},Mb=a(358),Pb=a.n(Mb),Ib=D.a.bind(Pb.a),Rb=[{key:"Markdown",value:"markdown"},{key:"Markup",value:"markup"},{key:"CCMenu",value:"cc"}];function Db(){var e=Object(b.i)(),t=e.namespace,a=e.name,r=Object(n.useState)(!1),c=Object(o.a)(r,2),s=c[0],l=c[1],u=Object(n.useState)({branch:"",snippetSyntax:"markdown"}),d=Object(o.a)(u,2),m=d[0],p=d[1],h=function(e,t,a,n){var r=e?"?ref=refs/heads/".concat(e):"";return"".concat(t,"/api/badges/").concat(n,"/").concat(a,"/status.svg").concat(r)}(m.branch,f,a,t),j=Object(n.useMemo)((function(){return function(e){var t=e.syntax,a=e.image,n=e.namespace,r=e.name;switch(t){case"markup":return'\n \n');case"cc":return"".concat(f,"/").concat(n,"/").concat(r,"/cc.xml");default:return"[![Build Status](".concat(a,")](").concat(f,"/").concat(n,"/").concat(r,")")}}({syntax:m.snippetSyntax,image:h,namespace:t,name:a})}),[m.snippetSyntax,h,t,a]);return Object(n.useEffect)((function(){var e;return s&&(e=setTimeout((function(){l(!1)}),2e3)),function(){return clearTimeout(e)}}),[s]),Object(n.useEffect)((function(){l(!1)}),[m]),Object(He.jsx)("div",{className:Ib("wrapper"),children:Object(He.jsxs)("div",{className:Ib("inner"),children:[Object(He.jsx)("img",{alt:"badge",src:h}),Object(He.jsxs)(ii,{className:Ib("group"),children:[Object(He.jsxs)("div",{className:Ib("group","group-badge"),children:[Object(He.jsx)(oi.Select,{label:"Syntax",name:"syntax",value:m.snippetSyntax,optionsList:Rb,width:260,onChange:function(e){var t=e.target;p((function(e){return Object(i.a)(Object(i.a)({},e),{},{snippetSyntax:t.value})}))}}),Object(He.jsx)(oi.Input,{label:"Branch",name:"branch",placeholder:"master",value:m.branch,width:260,onChange:function(e){var t=e.target;p((function(e){return Object(i.a)(Object(i.a)({},e),{},{branch:t.value.trim()})}))}})]}),Object(He.jsxs)("pre",{className:Ib("badge-snippet"),children:[Object(He.jsx)(ea.CopyToClipboard,{text:j,onCopy:function(){l(!0)},children:Object(He.jsx)(Ye,{className:Ib("copy-btn"),type:"button",children:s?"Copied!":Object(He.jsx)(ca,{})})}),Object(He.jsx)("code",{children:j})]})]})]})})}var Ab=["title","titleId"];function Hb(){return Hb=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Bb(e,t){var a=e.title,r=e.titleId,c=Fb(e,Ab);return n.createElement("svg",Hb({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-trash-2",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,_b||(_b=n.createElement("polyline",{points:"3 6 5 6 21 6"})),xb||(xb=n.createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})),wb||(wb=n.createElement("line",{x1:10,y1:11,x2:10,y2:17})),yb||(yb=n.createElement("line",{x1:14,y1:11,x2:14,y2:17})))}var zb,Vb,Tb=n.forwardRef(Bb),Wb=(a.p,a(359)),Ub=a.n(Wb),Zb=D.a.bind(Ub.a),Gb=["@hourly","@daily","@weekly","@monthly","@yearly"].map((function(e){return{key:e,value:e}})),qb=function(e){var t=e.handleSubmit,a=e.handleCancel,r=Object(n.useState)({name:"",branch:"",expr:Gb[0].value}),c=Object(o.a)(r,2),s=c[0],l=c[1],u=function(e){return function(t){l((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value))}))}};return Object(He.jsxs)(ii,{className:Zb("container","form"),children:[Object(He.jsxs)(li,{className:Zb("group","group-fields"),children:[Object(He.jsx)(oi.Input,{label:"Name",value:s.name,name:"cron-name",width:350,autoFocus:"true",onChange:u("name")}),Object(He.jsx)(oi.Input,{label:"Branch",value:s.branch,placeholder:"master",name:"cron-branch",width:350,onChange:u("branch")}),Object(He.jsx)(oi.Select,{label:"Schedule",value:s.expr,optionsList:Gb,width:350,onChange:u("expr")})]}),Object(He.jsxs)(li,{className:Zb("controls"),children:[Object(He.jsx)(Ye,{onClick:function(){t(s),a()},children:"Create"}),Object(He.jsx)(Ye,{onClick:a,children:"Cancel"})]})]})};function Yb(){var e=Object(b.i)(),t=e.namespace,a=e.name,r=Ps(),c=Object(o.a)(r,2),s=c[0],l=c[1],u=function(e){var t=e.namespace,a=e.name;return St("/api/repos/".concat(t,"/").concat(a,"/cron"))}({namespace:t,name:a}),p=u.data,h=u.isLoading,j=u.mutate,f=K(),v=f.showSuccess,O=f.showError,g=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(n){var r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/repos/".concat(t,"/").concat(a,"/cron"),{method:"POST",data:Object(i.a)(Object(i.a)({},n),{},{branch:n.branch||"master"})});case 3:r=e.sent,j((function(e){return e.concat(r)}),!1),v("Cron has been added successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),O(e.t0.message),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),[t,a,j,v,O]),_=null;return _=h?null:p.length?Object(He.jsx)(Kb,{crons:p,handleRemove:function(e){return Object(m.a)(d.a.mark((function n(){return d.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!confirm("Are you sure you want to remove cron job?")){n.next=13;break}return n.prev=2,n.next=5,at("/api/repos/".concat(t,"/").concat(a,"/cron/").concat(e),{method:"DELETE"});case 5:v("Cron has been removed successfully"),j(p.filter((function(t){return t.name!==e})),!1),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),O(n.t0.message),console.warn(n.t0.message);case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))}}):Object(He.jsxs)("div",{className:Zb("zero"),children:[Object(He.jsx)("h2",{children:"No Cron Jobs"}),Object(He.jsx)("p",{children:"You can create cron jobs to schedule pipeline executions on a recurring basis."})]}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Zb("wrapper"),children:Object(He.jsx)("div",{className:Zb("card"),children:h?null:Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Zb("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:Zb("btn-new"),icon:Object(He.jsx)(Nb,{}),onClick:l,children:"New Cron Job"})}),_]})})}),Object(He.jsx)(Is,{title:"Create a New Cron Job",isShowing:s,hide:l,children:Object(He.jsx)(qb,{handleSubmit:g,handleCancel:l})})]})}function Kb(e){var t;return Object(He.jsxs)("div",{className:Zb("cron-list-wrapper"),children:[Object(He.jsxs)("div",{className:Zb("cron-list-header"),children:[Object(He.jsx)("div",{children:"Name"}),Object(He.jsx)("div",{children:"Branch"}),Object(He.jsx)("div",{children:"Schedule"}),Object(He.jsx)("div",{children:"Next Execution"}),Object(He.jsx)("div",{})]}),Object(He.jsx)("div",{className:Zb("cron-list"),children:null===e||void 0===e||null===(t=e.crons)||void 0===t?void 0:t.map((function(t){return Object(He.jsx)(Jb,{data:t,onRemove:e.handleRemove},t.id)}))})]})}function Jb(e){var t=e.data,a=e.onRemove;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:Zb("cron-list-item"),children:[Object(He.jsx)("div",{children:t.name}),Object(He.jsx)("div",{children:t.branch}),Object(He.jsx)("div",{children:t.expr}),Object(He.jsx)("div",{children:t.next&&new Date(1e3*t.next).toLocaleString()}),Object(He.jsx)("div",{children:Object(He.jsx)(Ye,{onClick:a(t.name),children:Object(He.jsx)(Tb,{})})})]})})}var Qb=["title","titleId"];function Xb(){return Xb=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ep(e,t){var a=e.title,r=e.titleId,c=$b(e,Qb);return n.createElement("svg",Xb({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-slash",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,zb||(zb=n.createElement("circle",{cx:12,cy:12,r:10})),Vb||(Vb=n.createElement("line",{x1:4.93,y1:4.93,x2:19.07,y2:19.07})))}var tp=n.forwardRef(ep),ap=(a.p,a(360)),np=a.n(ap),rp=D.a.bind(np.a);function cp(e){var t=e.user,a=e.repo,r=Object(b.i)(),c=r.namespace,s=r.name,l=Ht({namespace:c,name:s}).mutate,u=K(),p=u.showError,h=u.showSuccess,j=Object(n.useState)(null),f=Object(o.a)(j,2),v=f[0],O=f[1];Object(n.useLayoutEffect)((function(){a&&O(rt(a)(["ignore_pull_requests","ignore_forks","protected","trusted","visibility","timeout","config_path","auto_cancel_pull_requests","auto_cancel_pushes","auto_cancel_running"]))}),[a]);var _,x=function(){var e=Object(m.a)(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm("Are you sure you want to disable this repo?")){e.next=13;break}return e.prev=2,e.next=5,at("/api/repos/".concat(c,"/").concat(s),{method:"DELETE"});case 5:l(),h("Repo has been disabled"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),p("Unable to disable repo: ".concat(e.t0.message)),console.warn(e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=Object(m.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/repos/".concat(c,"/").concat(s),{method:"PATCH",data:Object(i.a)(Object(i.a)({},v),{},{timeout:+v.timeout})});case 3:t=e.sent,l(t),h("Changes have been saved"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),p("Unable to save changes: ".concat(e.t0.message)),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),y=function(e){return function(t){switch(e){case"ignore_pull_requests":case"ignore_forks":case"protected":case"trusted":case"auto_cancel_running":O((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(z.a)({},e,!t[e]))}));break;case"auto_cancel_pull_requests":O((function(t){var a;return Object(i.a)(Object(i.a)({},t),{},(a={},Object(z.a)(a,e,!t[e]),Object(z.a)(a,"auto_cancel_running",!!t.auto_cancel_pushes&&t.auto_cancel_running),a))}));break;case"auto_cancel_pushes":O((function(t){var a;return Object(i.a)(Object(i.a)({},t),{},(a={},Object(z.a)(a,e,!t[e]),Object(z.a)(a,"auto_cancel_running",!!t.auto_cancel_pull_requests&&t.auto_cancel_running),a))}));break;case"visibility":case"config_path":case"timeout":O((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value))}))}}};return null===v?null:Object(He.jsx)("div",{className:rp("wrapper"),children:Object(He.jsx)("div",{className:rp("inner"),children:Object(He.jsxs)(ii,{className:rp("form"),children:[Object(He.jsxs)(li,{className:rp("form-section-row"),title:"Project Webhooks",children:[Object(He.jsx)("div",{className:rp("switch-row"),children:Object(He.jsx)(pd,{id:"ignore_pull_requests",checked:v.ignore_pull_requests,onChange:y("ignore_pull_requests"),children:"Disable Pull Requests"})}),Object(He.jsx)("div",{className:rp("switch-row"),children:Object(He.jsx)(pd,{id:"ignore_forks",checked:v.ignore_forks,onChange:y("ignore_forks"),children:"Disable forks"})})]}),Object(He.jsxs)(li,{className:rp("form-section-row"),title:"Project Settings",children:[Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"protected",checked:v.protected,onChange:y("protected"),children:"Protected"}),Object(He.jsx)("p",{className:rp("note"),children:"Blocks a pipeline if the yaml signature cannot be verified."})]}),(null===t||void 0===t?void 0:t.admin)&&Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"trusted",checked:v.trusted,onChange:y("trusted"),children:"Trusted"}),Object(He.jsx)("p",{className:rp("note"),children:"Enables privileged container settings."})]}),Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"auto_cancel_pull_requests",checked:v.auto_cancel_pull_requests,onChange:y("auto_cancel_pull_requests"),children:"Auto cancel pull requests"}),Object(He.jsx)("p",{className:rp("note"),children:"Automatically cancel pending pull request builds."})]}),Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"auto_cancel_pushes",checked:v.auto_cancel_pushes,onChange:y("auto_cancel_pushes"),children:"Auto cancel pushes"}),Object(He.jsx)("p",{className:rp("note"),children:"Automatically cancel pending push builds."})]}),Object(He.jsxs)("div",{className:rp("switch-row"),children:[Object(He.jsx)(pd,{id:"auto_cancel_running",checked:v.auto_cancel_running,disabled:!v.auto_cancel_pull_requests&&!v.auto_cancel_pushes,onChange:y("auto_cancel_running"),children:"Auto cancel running"}),Object(He.jsx)("p",{className:rp("note"),children:"Automatically cancel running builds if newer commit pushed."})]})]})]}),Object(He.jsx)(li,{className:rp("form-section-row"),title:"Project Visibility",children:Object(He.jsxs)("ul",{className:rp("visibility-container"),children:[Object(He.jsxs)("li",{className:rp("visibility-card-wrapper"),children:[Object(He.jsxs)("div",{className:rp("visibility-card"),children:[Object(He.jsx)("h4",{children:"Private"}),Object(He.jsx)("p",{children:"Private repositories are only accessible to people you explicitly share access with."})]}),Object(He.jsx)(oi.Radio,{name:"private",checked:"private"===v.visibility,value:"private",appearance:"checkmark",onChange:y("visibility")})]}),Object(He.jsxs)("li",{className:rp("visibility-card-wrapper"),children:[Object(He.jsxs)("div",{className:rp("visibility-card"),children:[Object(He.jsx)("h4",{children:"Public"}),Object(He.jsx)("p",{children:"Public repositories are accessible to everyone on the internet."})]}),Object(He.jsx)(oi.Radio,{name:"public",value:"public",appearance:"checkmark",checked:"public"===v.visibility,onChange:y("visibility")})]}),Object(He.jsxs)("li",{className:rp("visibility-card-wrapper"),children:[Object(He.jsxs)("div",{className:rp("visibility-card"),children:[Object(He.jsx)("h4",{children:"Internal"}),Object(He.jsx)("p",{children:"Internal repositories are only accessible to authenticated users."})]}),Object(He.jsx)(oi.Radio,{name:"internal",checked:"internal"===v.visibility,value:"internal",appearance:"checkmark",onChange:y("visibility")})]})]})}),Object(He.jsxs)(li,{className:rp("form-section-row","form-section-row-is-last"),children:[Object(He.jsx)(oi.Select,{label:"Timeout",value:v.timeout,optionsList:(_=g,_.map((function(e){return{value:e,key:e>90?"".concat(e/60," hours"):"".concat(e," minutes")}}))),width:200,className:rp("timeout"),onChange:y("timeout")}),Object(He.jsx)(oi.Input,{label:"Configuration",name:"configuration",value:v.config_path,width:372,className:rp("config"),onChange:y("config_path")})]}),Object(He.jsxs)("div",{className:rp("controls"),children:[Object(He.jsx)("button",{className:rp("btn","btn-save"),type:"button",onClick:w,children:"Save Changes"}),Object(He.jsxs)("button",{className:rp("btn","btn-disable"),type:"button",onClick:x,children:[Object(He.jsx)(tp,{}),"Disable"]})]})]})})})}var sp=a(84),lp=a.n(sp),ip=D.a.bind(lp.a),op=function(e){var t=e.handleSubmit,a=e.handleCancel,r=Object(n.useState)({name:"",data:"",pull_request:!1}),c=Object(o.a)(r,2),s=c[0],l=c[1],u=function(e){return function(t){switch(e){case"name":case"data":l((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value))}));break;case"pull_request":l((function(e){return Object(i.a)(Object(i.a)({},e),{},{pull_request:t.target.checked})}))}}};return Object(He.jsxs)(ii,{className:ip("container"),children:[Object(He.jsxs)(li,{className:ip("group","group-fields"),children:[Object(He.jsx)(oi.Input,{placeholder:"Secret Name",value:s.name,label:"Name",name:"secret-name",width:350,autoFocus:!0,onChange:u("name")}),Object(He.jsx)(oi.TextArea,{label:"Value",placeholder:"Secret value",value:s.data,name:"secret-value",width:350,onChange:u("data")}),Object(He.jsx)(oi.Checkbox,{label:"Allow Pull Requests",name:"pull_request",checked:s.pull_request,onChange:u("pull_request")})]}),Object(He.jsxs)(li,{className:ip("controls"),children:[Object(He.jsx)(Ye,{onClick:function(){t(s),a()},children:"Create"}),Object(He.jsx)(Ye,{onClick:a,children:"Cancel"})]})]})},up=function(e){var t=e.secrets,a=e.handleRemove;return Object(He.jsxs)("div",{className:ip("secret-list-wrapper"),children:[Object(He.jsxs)("div",{className:ip("secret-list-header"),children:[Object(He.jsx)("div",{children:"Name"}),Object(He.jsx)("div",{children:"Pull Requests"}),Object(He.jsx)("div",{})]}),Object(He.jsx)("div",{className:ip("secret-list"),children:null===t||void 0===t?void 0:t.map((function(e){return Object(He.jsx)(dp,{data:e,onRemove:a},e.id)}))})]})},dp=function(e){var t=e.data,a=e.onRemove;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:ip("secret-list-item"),children:[Object(He.jsx)("div",{children:t.name}),Object(He.jsx)("div",{children:t.pull_request?"Enabled":"Disabled"}),Object(He.jsx)("div",{children:Object(He.jsx)(Ye,{onClick:a(t.name),children:Object(He.jsx)(Tb,{})})})]})})};up.defaultProps={secrets:[]};var mp=D.a.bind(lp.a);function bp(){var e=Object(b.i)().namespace,t=function(e){var t=e.namespace;return St("/api/secrets/".concat(t))}({namespace:e}),a=t.data,r=t.isLoading,c=t.mutate,s=Ps(),l=Object(o.a)(s,2),i=l[0],u=l[1],p=K(),h=p.showError,j=p.showSuccess,f=Object(n.useCallback)(function(){var t=Object(m.a)(d.a.mark((function t(a){var n;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at("/api/secrets/".concat(e),{method:"POST",data:a});case 3:n=t.sent,c((function(e){return e.concat(n)}),!1),j("Organization secret has been added successfully"),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),h("Unable to add organization secret: ".concat(t.t0.message)),console.warn(t.t0.message);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),[c,e,j,h]),v=null;return v=r?null:a.length?Object(He.jsx)(up,{secrets:a,handleRemove:function(t){return Object(m.a)(d.a.mark((function n(){return d.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!window.confirm("Are you sure you want to delete this organization secret?")){n.next=13;break}return n.prev=2,n.next=5,at("/api/secrets/".concat(e,"/").concat(t),{method:"DELETE"});case 5:c(a.filter((function(e){return e.name!==t})),!1),j("Organization secret has been removed successfully"),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),h("Unable to remove organization secret: ".concat(n.t0.message)),console.warn(n.t0.message);case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))}}):Object(He.jsxs)("div",{className:mp("zero"),children:[Object(He.jsx)("h2",{children:"No Organization Secrets"}),Object(He.jsx)("p",{children:"Manage sensitive configuration parameters, such as passwords, tokens, and ssh keys."})]}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:mp("wrapper"),children:Object(He.jsxs)("div",{className:mp("card"),children:[Object(He.jsx)("div",{className:mp("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:mp("btn-new"),icon:Object(He.jsx)(Nb,{}),onClick:u,children:"New Organization Secret"})}),v]})}),Object(He.jsx)(Is,{title:"Create a New Organization Secret",isShowing:i,hide:u,children:Object(He.jsx)(op,{handleSubmit:f,handleCancel:u})})]})}var pp=D.a.bind(lp.a);function hp(){var e=Object(b.i)(),t=e.namespace,a=e.name,r=function(e){var t=e.namespace,a=e.name;return St("/api/repos/".concat(t,"/").concat(a,"/secrets"))}({namespace:t,name:a}),c=r.data,s=r.isLoading,l=r.mutate,i=Ps(),u=Object(o.a)(i,2),p=u[0],h=u[1],j=K(),f=j.showError,v=j.showSuccess,O=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(n){var r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/repos/".concat(t,"/").concat(a,"/secrets"),{method:"POST",data:n});case 3:r=e.sent,l((function(e){return e.concat(r)}),!1),v("Secret has been added successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),f("Unable to add secret: ".concat(e.t0.message)),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),[l,t,a,v,f]),g=null;return g=s?null:c.length?Object(He.jsx)(up,{secrets:c,handleRemove:function(e){return Object(m.a)(d.a.mark((function n(){return d.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!window.confirm("Are you sure you want to delete this secret?")){n.next=13;break}return n.prev=2,n.next=5,at("/api/repos/".concat(t,"/").concat(a,"/secrets/").concat(e),{method:"DELETE"});case 5:l(c.filter((function(t){return t.name!==e})),!1),v("Secret has been removed successfully"),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),f("Unable to remove secret: ".concat(n.t0.message)),console.warn(n.t0.message);case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))}}):Object(He.jsxs)("div",{className:pp("zero"),children:[Object(He.jsx)("h2",{children:"No Secrets"}),Object(He.jsx)("p",{children:"Manage sensitive configuration parameters, such as passwords, tokens, and ssh keys."})]}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:pp("wrapper"),children:Object(He.jsxs)("div",{className:pp("card"),children:[Object(He.jsx)("div",{className:pp("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:pp("btn-new"),icon:Object(He.jsx)(Nb,{}),onClick:h,children:"New Secret"})}),g]})}),Object(He.jsx)(Is,{title:"Create a New Secret",isShowing:p,hide:h,children:Object(He.jsx)(op,{handleSubmit:O,handleCancel:h})})]})}var jp,fp,vp=a(361),Op=a.n(vp),gp=a(181),_p=["title","titleId"];function xp(){return xp=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function yp(e,t){var a=e.title,r=e.titleId,c=wp(e,_p);return n.createElement("svg",xp({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-edit",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,jp||(jp=n.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"})),fp||(fp=n.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})))}var Np=n.forwardRef(yp),kp=(a.p,a(362)),Ep=a.n(kp),Cp=D.a.bind(Ep.a),Sp=".jsonnet",Lp=".starlark",Mp=".yaml",Pp=[Sp,Lp,Mp].map((function(e){return{key:e,value:e}})),Ip=function(e){var t=e.handleSubmit,a=e.handleCancel,r=Object(n.useState)({name:"",ext:Pp[0].value,data:""}),c=Object(o.a)(r,2),s=c[0],l=c[1];Object(n.useEffect)((function(){switch(s.ext){case Sp:l((function(e){return Object(i.a)(Object(i.a)({},e),{},{data:'/* A Jsonnet template example. */\nlocal stepName = std.extVar("input.stepName");\nlocal image = std.extVar("input.image");\nlocal commands = std.extVar("input.commands");\n{\n "kind": "pipeline",\n "type": "docker",\n "name": "default",\n "steps": [\n {\n "name": stepName,\n "image": image,\n "commands": [\n commands\n ]\n }\n ]\n}\n'})}));break;case Lp:l((function(e){return Object(i.a)(Object(i.a)({},e),{},{data:'# A Starlark template example.\ndef main(ctx):\nreturn {\n "kind": "pipeline",\n "name": "build",\n "steps": [\n {\n "name": ctx.input.stepName,\n "image": ctx.input.image,\n "commands": [\n ctx.input.commands\n ]\n }\n ]\n}\n'})}));break;case Mp:l((function(e){return Object(i.a)(Object(i.a)({},e),{},{data:"# A YAML template example.\nkind: pipeline\ntype: docker\nname: default\nsteps:\n - name: {{ .input.name }}\n image: {{ .input.image }}\n commands:\n - {{ .input.commands }}\n"})}))}}),[s.ext]);var u=function(e){return function(t){l((function(a){var n;return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,(null===t||void 0===t||null===(n=t.target)||void 0===n?void 0:n.value)||t))}))}};return Object(He.jsxs)(ii,{className:Cp("container","form"),children:[Object(He.jsxs)(li,{className:Cp("group","group-fields"),children:[Object(He.jsx)(oi.Input,{label:"Name",value:s.name,name:"template-name",width:700,autoFocus:!0,onChange:u("name")}),Object(He.jsx)(oi.Select,{label:"Extension",value:s.ext,optionsList:Pp,width:700,onChange:u("ext")}),Object(He.jsx)(gp.a,{wrapperClassName:Cp("monaco-wrapper"),height:"20rem",width:"100%",theme:"vs-dark",value:s.data,onChange:u("data")})]}),Object(He.jsxs)(li,{className:Cp("controls"),children:[Object(He.jsx)(Ye,{onClick:function(){t(s),a()},children:"Create"}),Object(He.jsx)(Ye,{onClick:a,children:"Cancel"})]})]})},Rp=function(e){var t,a=e.handleSubmit,r=e.handleCancel,c=e.editModalInitialState,s=Object(n.useState)({data:c.data}),l=Object(o.a)(s,2),u=l[0],d=l[1];return Object(He.jsxs)(ii,{className:Cp("container","form"),children:[Object(He.jsx)(li,{title:c.name,className:Cp("group","group-fields"),children:Object(He.jsx)(gp.a,{wrapperClassName:Cp("monaco-wrapper"),height:"20rem",width:"100%",theme:"vs-dark",value:u.data,onChange:(t="data",function(e){d((function(a){var n;return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},t,(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)||e))}))})})}),Object(He.jsxs)(li,{className:Cp("controls"),children:[Object(He.jsx)(Ye,{onClick:function(){a({templateData:u.data,templateName:c.name}),r()},children:"Update"}),Object(He.jsx)(Ye,{onClick:r,children:"Cancel"})]})]})};function Dp(){var e=Object(b.i)().namespace,t=Ps(),a=Object(o.a)(t,2),r=a[0],c=a[1],s=Ps(),l=Object(o.a)(s,2),i=l[0],u=l[1],p=Object(n.useState)(),h=Object(o.a)(p,2),j=h[0],f=h[1],v=function(e){var t=e.namespace;return St("/api/templates/".concat(t))}({namespace:e}),O=v.data,g=v.isLoading,_=v.mutate,x=K(),w=x.showSuccess,y=x.showError,N=Object(n.useCallback)(function(){var t=Object(m.a)(d.a.mark((function t(a){var n;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,at("/api/templates/".concat(e),{method:"POST",data:{data:a.data,name:"".concat(a.name).concat(a.ext)}});case 3:n=t.sent,_((function(e){return[n].concat(Object(Ke.a)(e))}),!1),w("Template has been added successfully"),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),y(t.t0.message),console.warn(t.t0.message);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),[e,_,w,y]),k=Object(n.useCallback)(function(){var t=Object(m.a)(d.a.mark((function t(a){var n,r,c;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.templateName,r=a.templateData,t.prev=1,t.next=4,at("/api/templates/".concat(e,"/").concat(n),{method:"PATCH",data:{data:r}});case 4:c=t.sent,_((function(e){return[c].concat(Object(Ke.a)(e.filter((function(e){return e.name!==n}))))}),!1),w("Template has been edited successfully"),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(1),y(t.t0.message),console.warn(t.t0.message);case 13:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e){return t.apply(this,arguments)}}(),[e,_,w,y]),E=null;return E=g?null:O.length?Object(He.jsx)(Ap,{templates:O,handleRemove:function(t){return Object(m.a)(d.a.mark((function a(){return d.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!window.confirm("Are you sure you want to remove template?")){a.next=13;break}return a.prev=2,a.next=5,at("/api/templates/".concat(e,"/").concat(t),{method:"DELETE"});case 5:w("Template has been removed successfully"),_((function(e){return e.filter((function(e){return e.name!==t}))}),!1),a.next=13;break;case 9:a.prev=9,a.t0=a.catch(2),y(a.t0.message),console.warn(a.t0.message);case 13:case"end":return a.stop()}}),a,null,[[2,9]])})))},setEditModalInitialStateAndToggle:function(e){f(e),u()}}):Object(He.jsxs)("div",{className:Cp("zero"),children:[Object(He.jsx)("h2",{children:"No Templates"}),Object(He.jsx)("p",{children:"You can create templates to simplify configuration management if you have large numbers of similar configuration files."})]}),Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Cp("wrapper"),children:Object(He.jsx)("div",{className:Cp("card"),children:g?null:Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("div",{className:Cp("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:Cp("btn-new"),icon:Object(He.jsx)(Nb,{}),onClick:c,children:"New Template"})}),E]})})}),Object(He.jsx)(Is,{title:"Create a New Template",isShowing:r,hide:c,children:Object(He.jsx)(Ip,{handleSubmit:N,handleCancel:c})}),Object(He.jsx)(Is,{title:"Edit Template",isShowing:i,hide:u,children:Object(He.jsx)(Rp,{handleSubmit:k,handleCancel:u,editModalInitialState:j})})]})}function Ap(e){var t=e.templates,a=e.setEditModalInitialStateAndToggle,n=e.handleRemove;return Object(He.jsxs)("div",{className:Cp("template-list-wrapper"),children:[Object(He.jsxs)("div",{className:Cp("template-list-header"),children:[Object(He.jsx)("div",{children:"Name"}),Object(He.jsx)("div",{}),Object(He.jsx)("div",{})]}),Object(He.jsx)("div",{className:Cp("template-list"),children:null===t||void 0===t?void 0:t.map((function(e){return Object(He.jsx)(Hp,{data:e,setEditModalInitialStateAndToggle:a,onRemove:n},e.id)}))})]})}function Hp(e){var t=e.data,a=e.onRemove,n=e.setEditModalInitialStateAndToggle;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:Cp("template-list-item"),children:[Object(He.jsx)("div",{children:t.name}),Object(He.jsx)("div",{children:Object(He.jsx)(Ye,{onClick:function(){return n(t)},children:Object(He.jsx)(Np,{})})}),Object(He.jsx)("div",{children:Object(He.jsx)(Ye,{onClick:a(t.name),children:Object(He.jsx)(Tb,{})})})]})})}Ap.defaultProps={templates:[]};var Fp=D.a.bind(Op.a),Bp=function(e){var t=e.showActivationBtn,a=e.activationHandler;return Object(He.jsx)("section",{className:Fp("inactive-wrapper"),children:Object(He.jsxs)("div",{className:Fp("inactive-inner"),children:[Object(He.jsx)(un,{}),Object(He.jsx)("h2",{children:"This Repository is not Active."}),t?Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("p",{children:"Please activate your repository to begin executing pipelines."}),Object(He.jsx)(Ye,{theme:"primary",icon:Object(He.jsx)(Nb,{}),onClick:a,children:"Activate Repository"})]}):Object(He.jsx)("p",{children:"Please contact the repository administrator to activate this repository."})]})})};function zp(e){var t,a,r=e.user,c=e.repo,s=Object(b.i)(),u=s.namespace,p=s.name,h=Ht({namespace:u,name:p}).mutate,j=Object(n.useContext)(kt),f=Object(o.a)(j,2)[1],v=K(),O=v.showError,g=v.showSuccess,_=Object(n.useCallback)((function(){return Object(He.jsx)(cp,{repo:c,user:r})}),[c,r]);Object(n.useEffect)((function(){return c&&f((function(e){return Object(i.a)(Object(i.a)({},e),{},{isRepoNavDisabled:!(null===c||void 0===c?void 0:c.active)})})),function(){return f((function(e){return Object(i.a)(Object(i.a)({},e),{},{isRepoNavDisabled:!1})}))}}),[c,f]);var x=Object(n.useCallback)(Object(m.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/repos/".concat(u,"/").concat(p),{method:"POST"});case 3:t=e.sent,h(t,!1),g("Repo has been successfully enabled"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),O(e.t0.message),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),[O,g,u,p,h]);return A("Settings - ".concat(u,"/").concat(p)),Object(He.jsx)(He.Fragment,{children:(null===c||void 0===c?void 0:c.active)?Object(He.jsxs)("section",{className:Fp("wrapper"),children:[Object(He.jsx)("aside",{children:Object(He.jsxs)("nav",{className:Fp("settings-nav"),children:[Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings"),exact:!0,children:"General"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/secrets"),exact:!0,children:"Secrets"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/cron"),exact:!0,children:"Cron Jobs"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/badges"),exact:!0,children:"Badges"}),Object(He.jsx)("h3",{className:Fp("settings-nav-section-header"),children:"Organization"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/org-secrets"),exact:!0,children:"Secrets"}),Object(He.jsx)(l.c,{className:Fp("settings-nav-item"),activeClassName:Fp("settings-nav-item-active"),to:"/".concat(u,"/").concat(p,"/settings/templates"),exact:!0,children:"Templates"})]})}),Object(He.jsxs)(b.d,{children:[Object(He.jsx)(b.b,{path:"/:namespace/:name/settings",component:_,exact:!0}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/secrets",component:hp}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/cron",component:Yb}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/badges",component:Db}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/org-secrets",component:bp}),Object(He.jsx)(b.b,{path:"/:namespace/:name/settings/templates",component:Dp})]})]}):Object(He.jsx)(Bp,{showActivationBtn:null!==(t=null===c||void 0===c||null===(a=c.permissions)||void 0===a?void 0:a.admin)&&void 0!==t&&t,activationHandler:x})})}var Vp=a(363),Tp=a.n(Vp),Wp=D.a.bind(Tp.a),Up=function(e){var t=e.user,a=Object(n.useMemo)((function(){return Object(He.jsx)("nav",{className:Wp("tabs"),children:[{to:"/settings/users",exact:!0,label:"Users"}].map((function(e){return Object(He.jsx)(l.c,{className:Wp("tab"),activeClassName:Wp("tab-active"),exact:e.exact,to:e.to,children:e.label},e.to)}))})}),[]);return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("header",{className:Wp("header"),children:Object(He.jsx)("div",{className:Wp("inner"),children:Object(He.jsx)("h1",{children:"System Administration"})})}),a,Object(He.jsxs)(b.d,{children:[Object(He.jsx)(b.b,{path:"/settings",component:function(){return Object(He.jsx)(b.a,{from:"/settings",to:"/settings/users",strict:!0,exact:!0})},exact:!0}),Object(He.jsx)(dh.Users,{path:"/settings/users",componentProps:{user:t},visibility:M,exact:!0})]})]})},Zp=a(364),Gp=a.n(Zp),qp=D.a.bind(Gp.a),Yp=function(e){var t=e.initialValues,a=e.handleSubmit,r=e.handleDelete,c=e.handleCancel,s=Object(n.useState)(t),l=Object(o.a)(s,2),u=l[0],d=l[1],m=function(e){return function(t){d((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.checked))}))}};return Object(He.jsxs)(ii,{className:qp("new-user-form"),children:[Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Checkbox,{label:"Admin User",name:"admin",checked:u.admin,onChange:m("admin")})}),Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Checkbox,{label:"Machine User",name:"machine",checked:u.machine,disabled:!0,onChange:m("machine")})}),Object(He.jsxs)(li,{className:qp("new-user-form-controls"),children:[Object(He.jsx)(Ye,{className:qp("save"),theme:"primary",type:"button",onClick:function(){a(u),c()},children:"Save"}),Object(He.jsx)(Ye,{className:qp("cancel"),theme:"primary",type:"button",onClick:c,children:"Cancel"}),Object(He.jsx)(Ye,{className:qp("delete"),theme:"primary",icon:Object(He.jsx)(tp,{}),onClick:function(){r(u.login),c()},children:"Delete"})]})]})},Kp=function(e){var t=e.handleSubmit,a=e.handleCancel,r=Object(n.useState)({login:"",email:"",admin:!1,machine:!1}),c=Object(o.a)(r,2),s=c[0],l=c[1],u=function(e){return function(t){switch(e){case"admin":case"machine":l((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.checked))}));break;default:l((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(z.a)({},e,t.target.value.trim()))}))}}};return Object(He.jsxs)(ii,{className:qp("new-user-form"),children:[Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Input,{label:"Login",placeholder:"userlogin",value:s.login,name:"login",width:400,required:!0,onChange:u("login")})}),Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Input,{label:"Email",type:"email",placeholder:"example@mail.com",value:s.email,name:"email",width:400,required:!0,onChange:u("email")})}),Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Checkbox,{label:"Admin User",name:"admin",checked:s.admin,onChange:u("admin")})}),Object(He.jsx)(li,{className:qp("new-user-form-column"),children:Object(He.jsx)(oi.Checkbox,{label:"Machine User",name:"machine",checked:s.machine,onChange:u("machine")})}),Object(He.jsxs)(li,{className:qp("new-user-form-controls"),children:[Object(He.jsx)(Ye,{className:qp("save"),theme:"primary",onClick:function(e){e.preventDefault(),t(s),a()},children:"Create"}),Object(He.jsx)(Ye,{className:qp("cancel"),theme:"primary",type:"button",onClick:a,children:"Cancel"})]})]})},Jp=a(365),Qp=a.n(Jp),Xp=D.a.bind(Qp.a);function $p(e){var t=e.data,a=e.isCurrentUser,n=e.handleEditClick;return Object(He.jsx)(He.Fragment,{children:Object(He.jsxs)("div",{className:Xp("user-list-item"),children:[Object(He.jsx)("div",{children:Object(He.jsx)(Ve,{className:Xp("avatar"),text:t.login,path:t.avatar,alt:t.login})}),Object(He.jsx)("div",{children:t.login}),Object(He.jsx)("div",{children:t.active?"Active":"Inactive"}),Object(He.jsx)("div",{children:t.machine?"Machine":"User"}),Object(He.jsx)("div",{children:t.admin?"Admin":"Member"}),Object(He.jsx)("div",{children:Object(ku.a)(new Date(1e3*t.created),new Date,{addSuffix:!0})}),Object(He.jsx)("div",{children:0===t.last_login?"":Object(ku.a)(new Date(1e3*t.last_login),new Date,{addSuffix:!0})}),Object(He.jsx)("div",{children:!a&&Object(He.jsx)(Ye,{onClick:n,children:Object(He.jsx)(Np,{})})})]})})}var eh=function(e){var t;return Object(He.jsxs)("div",{className:Xp("user-list-wrapper"),children:[Object(He.jsxs)("div",{className:Xp("user-list-header"),children:[Object(He.jsx)("div",{}),Object(He.jsx)("div",{children:"Username"}),Object(He.jsx)("div",{children:"Active"}),Object(He.jsx)("div",{children:"Type"}),Object(He.jsx)("div",{children:"Role"}),Object(He.jsx)("div",{children:"Created"}),Object(He.jsx)("div",{children:"Last Login"})]}),Object(He.jsx)("div",{className:Xp("user-list"),children:null===e||void 0===e||null===(t=e.users)||void 0===t?void 0:t.map((function(t){return Object(He.jsx)($p,{data:t,isCurrentUser:t.id===e.currentUser.id,handleEditClick:e.handleEditUserClick(t.id)},t.id)}))})]})},th=a(366),ah=a.n(th),nh=D.a.bind(ah.a);function rh(e){var t=e.user,a=Object(n.useState)(!1),r=Object(o.a)(a,2),c=r[0],s=r[1];A("User Management");var l=K(),u=l.showError,b=l.showSuccess,p=St("/api/users"),h=p.data,j=p.isLoading,f=p.mutate,v=Ps(),O=Object(o.a)(v,2),g=O[0],_=O[1],x=Object(n.useState)("new"),w=Object(o.a)(x,2),y=w[0],N=w[1],k=Object(n.useMemo)((function(){var e;return function(e){return e.sort((function(e,t){return e.login-t.login}))}(null!==(e=null===h||void 0===h?void 0:h.slice(0,c?null===h||void 0===h?void 0:h.length:1e3))&&void 0!==e?e:[])}),[h,c]),E=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,at("/api/users",{method:"POST",data:Object(i.a)({},t)});case 3:f(),b("New user has been created successfully"),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),u("Unable to create new user: ".concat(e.t0.message)),console.warn(e.t0.message);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),[f,u,b]),C=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(t){var a,n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.admin,n=t.login,e.prev=1,e.next=4,at("/api/users/".concat(n),{method:"PATCH",data:{admin:a}});case 4:f(),b("User settings have been updated"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),u("Unable to create new user: ".concat(e.t0.message)),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),[f,u,b]),S=Object(n.useCallback)(function(){var e=Object(m.a)(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!confirm("Are you sure you want to delete this user?")){e.next=14;break}return e.prev=2,e.next=5,at("/api/users/".concat(t),{method:"DELETE"});case 5:N("new"),f((function(e){return e.filter((function(e){return e.login!==t}))}),!1),b("User has been deleted successfully"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),u("Unable to delete user: ".concat(e.t0.message)),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),[f,u,b]);return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsx)("section",{className:nh("wrapper"),children:Object(He.jsxs)("div",{className:nh("card"),children:[Object(He.jsx)("div",{className:nh("actions"),children:Object(He.jsx)(Ye,{theme:"primary",className:nh("btn","btn-user"),icon:Object(He.jsx)(Nb,{}),onClick:function(){N("new"),_()},children:"New User"})}),j?Object(He.jsx)("p",{children:"Loading..."}):Object(He.jsx)(eh,{users:k,currentUser:t,handleEditUserClick:function(e){return function(){N(e),_()}}}),!c&&(null===h||void 0===h?void 0:h.length)>1e3&&Object(He.jsx)(Ye,{className:nh("btn","btn-show-more"),onClick:function(){return s(!0)},children:"Show More \u2193"})]})}),Object(He.jsx)(Is,{title:"new"===y?"Create a New User":"Edit user",isShowing:g,hide:_,children:"new"===y?Object(He.jsx)(Kp,{handleSubmit:E,handleCancel:_}):Object(He.jsx)(Yp,{handleSubmit:C,handleDelete:S,handleCancel:_,initialValues:rt(k.find((function(e){return e.id===y})))(["machine","admin","login"])})})]})}var ch=a(367),sh=a.n(ch),lh=D.a.bind(sh.a);function ih(){var e,t=Object(b.h)(),a=t.pathname,n=t.search,r=null;switch(a){case"/logout":r=Object(He.jsx)("div",{className:lh("error"),children:"Your session has been successfully terminated."});break;case"/login/error":var c,s;if("cloud.drone.io"===window.location.host)r=Object(He.jsxs)("div",{className:lh("error"),children:["Drone Cloud is no longer accepting new registrations. We recommend"," ",Object(He.jsx)("a",{href:"https://docs.drone.io/server/overview/",children:"installing Drone"})," ","on your own hardware, or you can try out the new"," ",Object(He.jsx)("a",{href:"https://harness.io/products/continuous-integration",children:"Harness CI Cloud"}),"."]});else r=Object(He.jsx)("div",{className:lh("error"),children:null!==(c=null===(e=n,s=("?"===e[0]?e.substr(1):e).split("&").reduce((function(e,t){var a=t.split("="),n=Object(o.a)(a,2),r=n[0],c=n[1];return Object(i.a)(Object(i.a)({},e),{},Object(z.a)({},decodeURIComponent(r),decodeURIComponent(c||"")))}),{}))||void 0===s?void 0:s.message)&&void 0!==c?c:"An error occurred during login attempt, please, try again"})}return Object(He.jsxs)("section",{className:lh("wrapper"),children:[Object(He.jsxs)("div",{className:lh("login"),children:[Object(He.jsx)("div",{className:lh("kicker"),children:Object(He.jsx)(Jm,{})}),Object(He.jsxs)("div",{className:lh("header"),children:[Object(He.jsxs)("h1",{className:lh("title"),children:["Hello,",Object(He.jsx)("br",{}),"Welcome to Drone."]}),r,Object(He.jsx)("p",{children:"You will be redirected to your source control management system to authenticate."})]}),Object(He.jsxs)("a",{href:"/login",target:"_self",className:lh("btn"),children:[Object(He.jsx)("span",{children:"Continue"}),Object(He.jsx)(zs,{className:lh("chevron-right")})]})]}),Object(He.jsx)("div",{className:lh("illustration"),children:Object(He.jsx)(tb,{})})]})}var oh=["component","visibility","componentProps","children"];function uh(e){var t=e.component,a=e.visibility,n=e.componentProps,r=e.children,c=Object(Te.a)(e,oh),s=n.user,l=!!s,o=null===s||void 0===s?void 0:s.admin,u=Object(He.jsx)(b.b,Object(i.a)(Object(i.a)({},c),{},{render:function(e){return t?Object(He.jsx)(t,Object(i.a)(Object(i.a)({},e),n)):r}}));return[a===S,a===L&&l,a===M&&o].some((function(e){return!!e}))?u:a!==S&&!1===l?Object(He.jsx)(b.a,{to:"/welcome"}):Object(He.jsx)(ol,{user:s})}uh.defaultProps={componentProps:{},children:null,visibility:0};var dh={Home:function(e){return Object(He.jsx)(uh,Object(i.a)({component:yd},e))},LoginForm:function(e){return Object(He.jsx)(uh,Object(i.a)({component:cb},e))},Login:function(){return Object(He.jsx)("p",{children:"Redirecting to Github Auth..."})},Logout:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ih},e))},LoginError:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ih},e))},Register:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ob},e))},Account:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ua},e))},Admin:function(e){return Object(He.jsx)(uh,Object(i.a)({component:function(){return Object(He.jsx)("h1",{children:"Admin Settings"})}},e))},Branches:function(e){return Object(He.jsx)(uh,Object(i.a)({component:On},e))},Deployments:function(e){return Object(He.jsx)(uh,Object(i.a)({component:Qu},e))},Settings:function(e){return Object(He.jsx)(uh,Object(i.a)({component:zp},e))},SettingsAdmin:function(e){return Object(He.jsx)(uh,Object(i.a)({component:Up},e))},Builds:function(e){return Object(He.jsx)(uh,Object(i.a)({component:qu},e))},Build:function(e){return Object(He.jsx)(uh,Object(i.a)({component:Nu},e))},NotFound:function(e){return Object(He.jsx)(uh,Object(i.a)({component:ol},e))},Welcome:function(e){return Object(He.jsx)(b.b,Object(i.a)({component:ih},e))},Users:function(e){return Object(He.jsx)(uh,Object(i.a)({component:rh},e))},Repo:function(e){return Object(He.jsx)(uh,Object(i.a)({component:Lb},e))}},mh={fetcher:function(){var e=Object(m.a)(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",at(t,{method:"GET"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),shouldRetryOnError:!1,revalidateOnFocus:!1},bh=function(e){var t=e.render,a=Ft(),r=a.data,c=a.isLoading,s=Object(n.useContext)(kt),l=Object(o.a)(s,2),u=l[0],d=l[1];return Object(n.useEffect)((function(){r&&null===u.isAccSyncing&&d(Object(i.a)(Object(i.a)({},u),{},{isAccSyncing:r.syncing}))}),[r,u,d]),It(),c?null:t({user:r})};function ph(){var e=Object(b.h)().pathname;return Object(He.jsx)(r.a.StrictMode,{children:Object(He.jsx)(h.a,{value:mh,children:Object(He.jsx)(Ct,{children:Object(He.jsx)(bh,{render:function(t){var a=t.user;return Object(He.jsxs)(He.Fragment,{children:[Object(He.jsxs)(Tt,{children:[Object(He.jsxs)(b.d,{children:[Object(He.jsx)(b.a,{from:"/:url*(/+)",to:e.slice(0,-1)}),Object(He.jsx)(b.b,{path:["/welcome","/login/form","/login/error","/logout","/register"],exact:!0}),Object(He.jsx)(b.b,{path:["/settings*"],exact:!0,children:Object(He.jsx)(Nt,{user:a})}),Object(He.jsxs)(b.b,{path:"/*",children:[Object(He.jsx)(Nt,{user:a}),Object(He.jsx)(Qt,{})]})]}),Object(He.jsxs)(b.d,{children:[Object(He.jsx)(dh.Home,{path:"/",componentProps:{user:a},visibility:L,exact:!0}),Object(He.jsx)(dh.Welcome,{path:"/welcome",componentProps:{user:a},exact:!0}),Object(He.jsx)(dh.Register,{path:"/register",componentProps:{user:a},exact:!0}),Object(He.jsx)(dh.LoginForm,{path:"/login/form",exact:!0}),Object(He.jsx)(dh.LoginError,{path:"/login/error",exact:!0}),Object(He.jsx)(dh.Logout,{path:"/logout",exact:!0}),Object(He.jsx)(dh.Account,{path:"/account",componentProps:{user:a},visibility:L,exact:!0}),Object(He.jsx)(dh.SettingsAdmin,{path:"/settings*",componentProps:{user:a},visibility:M,exact:!0}),Object(He.jsx)(dh.Repo,{path:["/:namespace/:name","/:namespace/:name/deployments","/:namespace/:name/branches","/:namespace/:name/settings*","/:namespace/:name/:build","/:namespace/:name/:build/:stage?/:step?"],componentProps:{user:a},visibility:S,exact:!0}),Object(He.jsx)(dh.NotFound,{path:"*",componentProps:{user:a}})]})]}),Object(He.jsx)(p.a,{position:"top-center",limit:3,pauseOnHover:!0,hideProgressBar:!0})]})}})})})})}a(707);s.a.render(Object(He.jsx)(r.a.StrictMode,{children:Object(He.jsx)(l.a,{children:Object(He.jsx)(ph,{})})}),document.getElementById("root"))},84:function(e,t,a){e.exports={dark:"secrets_dark__2zoVu",inner:"secrets_inner__12xiG",container:"secrets_container__1uMwz","btn-new":"secrets_btn-new__2a8zC","group-fields":"secrets_group-fields__Pe5hi",controls:"secrets_controls__2Y7Zj",zero:"secrets_zero__3gAFn",actions:"secrets_actions__UH8Qf",card:"secrets_card__YRE4v","secret-list":"secrets_secret-list__aLeKk","secret-list-wrapper":"secrets_secret-list-wrapper__EISvS","secret-list-header":"secrets_secret-list-header__2VW-w","secret-list-item":"secrets_secret-list-item__zx-Cy",wrapper:"secrets_wrapper__17XyB"}}},[[708,1,2]]]);`) // /static/js/runtime-main.73c0d22c.js var file11 = []byte(`!function(e){function r(r){for(var n,i,l=r[0],a=r[1],f=r[2],p=0,s=[];p