From 5b836d944f0ab23a090c2e66fc1a0478c5022324 Mon Sep 17 00:00:00 2001 From: Dan Wilson Date: Fri, 20 Aug 2021 14:24:11 +0100 Subject: [PATCH 1/2] release v2.0.1 --- .github_changelog_generator | 1 + CHANGELOG.md | 28 ++++++++ README.md | 24 +++++++ dist/dist_gen.go | 132 ++++++++++++++++++------------------ package.json | 2 +- 5 files changed, 120 insertions(+), 67 deletions(-) create mode 100644 .github_changelog_generator create mode 100644 CHANGELOG.md diff --git a/.github_changelog_generator b/.github_changelog_generator new file mode 100644 index 00000000..9eec3740 --- /dev/null +++ b/.github_changelog_generator @@ -0,0 +1 @@ +since-tag=v2.0.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..dd1577a9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,28 @@ +# Changelog + +## [v2.0.1](https://github.com/drone/drone-ui/tree/v2.0.1) (2021-08-20) + +[Full Changelog](https://github.com/drone/drone-ui/compare/v2.0.0...v2.0.1) + +**Implemented enhancements:** + +- new go file [\#366](https://github.com/drone/drone-ui/pull/366) ([d1wilko](https://github.com/d1wilko)) + +**Fixed bugs:** + +- fix off centre alt avatar bug [\#368](https://github.com/drone/drone-ui/pull/368) ([d1wilko](https://github.com/d1wilko)) +- fix single pending build bug and simplify median build time logic [\#367](https://github.com/drone/drone-ui/pull/367) ([d1wilko](https://github.com/d1wilko)) +- show error message for steps and stages [\#365](https://github.com/drone/drone-ui/pull/365) ([d1wilko](https://github.com/d1wilko)) + +**Closed issues:** + +- UI crashes when no builds are found [\#364](https://github.com/drone/drone-ui/issues/364) + +**Merged pull requests:** + +- Merging drone2 branch into master [\#369](https://github.com/drone/drone-ui/pull/369) ([d1wilko](https://github.com/d1wilko)) +- allow ~ in project name [\#361](https://github.com/drone/drone-ui/pull/361) ([muffl0n](https://github.com/muffl0n)) + + + +\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* diff --git a/README.md b/README.md index becd78e5..e8251d73 100644 --- a/README.md +++ b/README.md @@ -68,3 +68,27 @@ npm run test We use Conventional Commits for commit messages. You can read more about Conventional Commits [here](https://www.conventionalcommits.org/en/v1.0.0/). [Here](https://cheatography.com/albelop/cheat-sheets/conventional-commits/) you can find a useful Conventional Commits Cheat Sheet. We try to make our commits "atomic". [Here](https://www.freshconsulting.com/atomic-commits/) and [here](https://en.wikipedia.org/wiki/Atomic_commit) you can read more about Atomic commits. + +## Release procedure + +Run the changelog generator. + +```BASH +docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone -p drone-ui -t +``` + +You can generate a token by logging into your GitHub account and going to Settings -> Personal access tokens. + +Next we tag the PR's with the fixes or enhancements labels. If the PR does not fufil the requirements, do not add a label. + +** Before moving on make sure to update the version in `package.json`. ** + +Run the changelog generator again with the future version according to semver. + +```BASH +docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone -p drone-ui -t --future-release v1.0.0 +``` + +Create your pull request for the release. Get it merged then tag the release. + +Please reference the updated changelog in your PR to update `Drone` with the latest UI SHA. \ No newline at end of file diff --git a/dist/dist_gen.go b/dist/dist_gen.go index 2a264bbf..af945ba6 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(1629293221, 0), + modTime: time.Unix(1629465219, 0), }, }, "/asset-manifest.json": { @@ -149,7 +149,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "asset-manifest.json", size: 3884, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/favicon.png": { @@ -157,7 +157,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "favicon.png", size: 1639, - modTime: time.Unix(1629293221, 0), + modTime: time.Unix(1629465219, 0), }, }, "/index.html": { @@ -165,7 +165,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "index.html", size: 2304, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/manifest.json": { @@ -173,7 +173,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "manifest.json", size: 281, - modTime: time.Unix(1629293221, 0), + modTime: time.Unix(1629465219, 0), }, }, "/robots.txt": { @@ -181,7 +181,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "robots.txt", size: 67, - modTime: time.Unix(1629293221, 0), + modTime: time.Unix(1629465219, 0), }, }, "/static/css/2.4bdc0d70.chunk.css": { @@ -189,7 +189,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "2.4bdc0d70.chunk.css", size: 18048, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/css/main.0c322688.chunk.css": { @@ -197,7 +197,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "main.0c322688.chunk.css", size: 94575, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/js/2.53caeb28.chunk.js": { @@ -205,7 +205,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "2.53caeb28.chunk.js", size: 630544, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/js/2.53caeb28.chunk.js.LICENSE.txt": { @@ -213,15 +213,15 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "2.53caeb28.chunk.js.LICENSE.txt", size: 1794, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, - "/static/js/main.3d08dace.chunk.js": { + "/static/js/main.512f70d6.chunk.js": { data: file10, FileInfo: &fileInfo{ - name: "main.3d08dace.chunk.js", - size: 257107, - modTime: time.Unix(1629293275, 0), + name: "main.512f70d6.chunk.js", + size: 257130, + modTime: time.Unix(1629465253, 0), }, }, "/static/js/runtime-main.546137e0.js": { @@ -229,7 +229,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "runtime-main.546137e0.js", size: 1525, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 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(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/media/trash.c89915b8.svg": { @@ -533,7 +533,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "trash.c89915b8.svg", size: 469, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/media/user.780a52a3.svg": { @@ -541,7 +541,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "user.780a52a3.svg", size: 313, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/media/welcome-illustration.c1834133.svg": { @@ -549,7 +549,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "welcome-illustration.c1834133.svg", size: 24954, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/media/zoom-in.9cbe275c.svg": { @@ -557,7 +557,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "zoom-in.9cbe275c.svg", size: 535, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/media/zoom-out.f1c9beee.svg": { @@ -565,7 +565,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "zoom-out.f1c9beee.svg", size: 372, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/media/zoom-reset.95147acc.svg": { @@ -573,7 +573,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "zoom-reset.95147acc.svg", size: 629, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, "/static/media/zoom-to-fit.f38a881e.svg": { @@ -581,7 +581,7 @@ var files = map[string]file{ FileInfo: &fileInfo{ name: "zoom-to-fit.f38a881e.svg", size: 407, - modTime: time.Unix(1629293275, 0), + modTime: time.Unix(1629465253, 0), }, }, } @@ -606,8 +606,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, 0x33, 0x64, 0x30, 0x38, 0x64, 0x61, - 0x63, 0x65, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x6a, 0x73, 0x22, + 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x35, 0x31, 0x32, 0x66, 0x37, 0x30, + 0x64, 0x36, 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, @@ -919,8 +919,8 @@ var file1 = []byte{ 0x69, 0x6e, 0x2e, 0x30, 0x63, 0x33, 0x32, 0x32, 0x36, 0x38, 0x38, 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, 0x33, 0x64, 0x30, 0x38, - 0x64, 0x61, 0x63, 0x65, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x6a, + 0x6a, 0x73, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x35, 0x31, 0x32, 0x66, + 0x37, 0x30, 0x64, 0x36, 0x2e, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x2e, 0x6a, 0x73, 0x22, 0x0a, 0x20, 0x20, 0x5d, 0x0a, 0x7d, } @@ -1066,7 +1066,7 @@ var file2 = []byte{ } // /index.html -var file3 = []byte(`Drone CI
`) +var file3 = []byte(`Drone CI
`) // /manifest.json var file4 = []byte{ @@ -1270,8 +1270,8 @@ var file9 = []byte{ 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x0a, } -// /static/js/main.3d08dace.chunk.js -var file10 = []byte(`(this["webpackJsonpdrone-ui-react"]=this["webpackJsonpdrone-ui-react"]||[]).push([[0],{265:function(e,t,a){e.exports={wrapper:"avatar_wrapper__1rxDX",image:"avatar_image__3M2_A",stub:"avatar_stub__BnP-r"}},266:function(e,t,a){e.exports={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"}},270:function(e,t,a){e.exports={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"}},271:function(e,t,a){e.exports={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"}},272: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"}},273:function(e,t,a){e.exports={"system-messages-wrapper":"license_system-messages-wrapper__2jNgH","message-with-link":"license_message-with-link__1n_82"}},275:function(e,t,a){e.exports={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"}},276:function(e,t,a){e.exports={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"}},277: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"}},278:function(e,t,a){e.exports={wrapper:"zero-state_wrapper__2GHgl",inner:"zero-state_inner__2n0xG"}},279:function(e,t,a){e.exports={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"}},281: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"}},282: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"}},283: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"}},284:function(e,t,a){e.exports={"diagram-wrapper":"diagram_diagram-wrapper__2s9c_"}},285: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"}},286:function(e,t,a){e.exports={"elapsed-static":"elapsed_elapsed-static__2nw59"}},287:function(e,t,a){e.exports={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"}},288:function(e,t,a){e.exports={"error-wrapper":"console-manager_error-wrapper__1cBjH","no-logs":"console-manager_no-logs__1-L-h"}},289: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"}},290:function(e,t,a){e.exports={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"}},291:function(e,t,a){e.exports={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"}},292:function(e,t,a){e.exports={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","stage-header":"stage-nav_stage-header__1dF95",chevron:"stage-nav_chevron__29dQ1","chevron-disabled":"stage-nav_chevron-disabled__2spPT","stage-header-expanded":"stage-nav_stage-header-expanded__1U_RV","stage-header-unselectable":"stage-nav_stage-header-unselectable__2Egdv","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",time:"stage-nav_time__3hF_i","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"}},293:function(e,t,a){e.exports={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"}},294:function(e,t,a){e.exports={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"}},295:function(e,t,a){e.exports={label:"label_label__AboI9"}},296:function(e,t,a){e.exports={checkbox:"checkbox_checkbox__2t8iU","checkbox-fake":"checkbox_checkbox-fake__3M-W4",disabled:"checkbox_disabled__xkbX3"}},297:function(e,t,a){e.exports={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"}},298: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"}},299:function(e,t,a){e.exports={select:"select_select__1HHVE",label:"select_label__1bDYS","select-inner":"select_select-inner__1CKS3","select-input":"select_select-input__39Yvq"}},300:function(e,t,a){e.exports={"text-area":"text-area_text-area__31bmm","text-area-wrapper":"text-area_text-area-wrapper__28Wsn"}},301:function(e,t,a){e.exports={form:"form_form__vo1by","form-section":"form_form-section__2-baB"}},302: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"}},303:function(e,t,a){e.exports={root:"label_root__2WztY"}},304: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-"}},305:function(e,t,a){e.exports={breadcrumb:"breadcrumb_breadcrumb__3RygM","breadcrumb-item":"breadcrumb_breadcrumb-item__1DZP4","breadcrumb-spacer":"breadcrumb_breadcrumb-spacer__1QK5s"}},306: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"}},307:function(e,t,a){e.exports={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"}},308:function(e,t,a){e.exports={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-"}},309:function(e,t,a){e.exports={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_"}},311: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"}},312:function(e,t,a){e.exports={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"}},313:function(e,t,a){e.exports={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_"}},314:function(e,t,a){e.exports={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-"}},315:function(e,t,a){e.exports={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"}},316: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"}},317:function(e,t,a){e.exports={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"}},318:function(e,t,a){e.exports={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"}},319:function(e,t,a){e.exports={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"}},320: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"}},321:function(e,t,a){e.exports={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"}},322:function(e,t,a){e.exports={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"}},323:function(e,t,a){e.exports={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"}},324:function(e,t,a){e.exports={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"}},325:function(e,t,a){e.exports={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"}},326: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","inactive-wrapper":"settings_inactive-wrapper__2HS2u","inactive-inner":"settings_inactive-inner__z1fP7"}},327: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"}},328:function(e,t,a){e.exports={"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"}},329:function(e,t,a){e.exports={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"}},330:function(e,t,a){e.exports={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"}},331:function(e,t,a){e.exports={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"}},366:function(e,t,a){},594:function(e,t,a){},595:function(e,t,a){},596:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a(1),c=a.n(r),s=a(54),l=a.n(s),i=a(2),o=a(4),u=a(6),d=a.n(u),m=a(14),b=a(11),p=a(21),h=a(77),j=a(41),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_TOKEN||"",v=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),O=250,g="error",x={DEFAULT:"default",RUNNING:"running"},_=[15,30,60,90,120,180,240,300,360,420,480,540,600,660,720,1080,1440,2880,4320],w="loading",y="stream_on",N="resolved",k="no_logs_available",E="error",C="idle",S=window&&window.LICENSE_EXPIRED,L=window&&window.LICENSE_LIMIT_EXCEEDED,M=0,P=1,I=2,D=a(3),R=a.n(D),H=a.p+"static/media/logo.76c744d4.svg";function A(){return(A=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}var F=r.createElement("circle",{cx:11,cy:11,r:8}),z=r.createElement("line",{x1:21,y1:21,x2:16.65,y2:16.65});function V(e,t){var a=e.title,n=e.titleId,c=B(e,["title","titleId"]);return r.createElement("svg",A({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":n},c),a?r.createElement("title",{id:n},a):null,F,z)}var W=r.forwardRef(V);a.p;function T(){return(T=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}var Z=r.createElement("line",{x1:4,y1:21,x2:4,y2:14}),G=r.createElement("line",{x1:4,y1:10,x2:4,y2:3}),q=r.createElement("line",{x1:12,y1:21,x2:12,y2:12}),Y=r.createElement("line",{x1:12,y1:8,x2:12,y2:3}),K=r.createElement("line",{x1:20,y1:21,x2:20,y2:16}),J=r.createElement("line",{x1:20,y1:12,x2:20,y2:3}),Q=r.createElement("line",{x1:1,y1:14,x2:7,y2:14}),X=r.createElement("line",{x1:9,y1:8,x2:15,y2:8}),$=r.createElement("line",{x1:17,y1:16,x2:23,y2:16});function ee(e,t){var a=e.title,n=e.titleId,c=U(e,["title","titleId"]);return r.createElement("svg",T({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":n},c),a?r.createElement("title",{id:n},a):null,Z,G,q,Y,K,J,Q,X,$)}var te=r.forwardRef(ee);a.p;function ae(){return(ae=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}var re=r.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),ce=r.createElement("circle",{cx:12,cy:7,r:4});function se(e,t){var a=e.title,n=e.titleId,c=ne(e,["title","titleId"]);return r.createElement("svg",ae({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":n},c),a?r.createElement("title",{id:n},a):null,re,ce)}var le=r.forwardRef(se),ie=(a.p,a(265)),oe=a.n(ie),ue=R.a.bind(oe.a),de=["#06C270","#0063F7","#FF8800","#06B7C4","#4D0B8F"],me=function(e){var t,a=e.className,c=e.path,s=e.alt,l=e.text,i=Object(r.useState)(!1),u=Object(o.a)(i,2),d=u[0],m=u[1];if(!c||d){var b=l||s||"?";t=Object(n.jsx)("span",{className:ue("stub"),title:b,style:{backgroundColor:de[b.charCodeAt(0)%de.length]},children:l[0]})}else t=Object(n.jsx)("img",{className:ue("image"),src:c,alt:s,onError:function(){return m(!0)}});return Object(n.jsx)("div",{className:ue("wrapper",a||""),children:t})};me.defaultProps={className:void 0,path:void 0,alt:"User avatar"};var be=me,pe=a(24),he=a(266),je=a.n(he),fe=R.a.bind(je.a),ve=function(e){var t,a=e.as,r=e.children,c=e.className,s=e.label,l=e.icon,o=e.size,u=e.theme,d=Object(pe.a)(e,["as","children","className","label","icon","size","theme"]);switch(a){case"link":t=b.b;break;case"a":t="a";break;case"button":default:t="button"}var m=Object(n.jsxs)(n.Fragment,{children:[l,Object(n.jsx)("span",{children:s||r})]});return"plain"===u&&(m=r),Object(n.jsx)(t,Object(i.a)(Object(i.a)({className:fe("button","theme-".concat(u),"size-".concat(o),c||"")},d),{},{children:m}))};ve.defaultProps={theme:"plain",as:"button",className:"",label:"",type:"button",icon:null,children:null,size:"md"};var Oe=ve;function ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Drone CI";Object(r.useEffect)((function(){document.querySelector("title").innerText="".concat(e).concat(e?" - ":"").concat(t)}),[e,t])}function xe(){var e=Object(r.useState)((function(){return window.innerHeight||0})),t=Object(o.a)(e,2),a=t[0],n=t[1],c=Object(r.useCallback)((function(e){n(e.currentTarget.innerHeight)}),[]);return Object(r.useLayoutEffect)((function(){return window.addEventListener("resize",c),function(){return window.removeEventListener("resize",c)}}),[c]),a}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=Object(r.useState)((function(){return e(500)})),a=Object(o.a)(t,2),n=a[0],c=a[1],s=xe(),l=Object(r.useCallback)((function(t){if(null!==t){var a=s-t.getBoundingClientRect().top;c(e(a))}}),[s,e]);return{dynamicHeight:n,dynamicHeightRef:l}}var we,ye=a(15);we={},Object(ye.a)(we,x.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(ye.a)(we,x.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 Ne=function(e,t){var a=Object(r.useState)((function(){try{var a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch(n){return console.error(n),t}})),n=Object(o.a)(a,2),c=n[0],s=n[1],l=Object(r.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]},ke=function(e,t){Object(r.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])},Ee={attributes:!0,characterData:!0,subtree:!0,childList:!0},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ee,a=Object(r.useState)(null),n=Object(o.a)(a,2),c=n[0],s=n[1];Object(r.useEffect)((function(){if(c){var a=new ResizeObserver(e);return a.observe(c,t),function(){a.disconnect()}}}),[c,e,t]);var l=Object(r.useCallback)((function(e){s(e)}),[]);return[l]},Se=3e3,Le=function(){return{showSuccess:Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se;h.b.success(e,{autoClose:t})}),[]),showWarning:Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se;h.b.warn(e,{autoClose:t})}),[]),showError:Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se;h.b.error(e,{autoClose:t})}),[])}},Me=a(268),Pe=a.n(Me).a.create({baseURL:v,headers:f?{Authorization:"Bearer ".concat(f)}:{},withCredentials:!0}),Ie=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,Pe(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)}}(),De=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))},Re=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(ye.a)({},t,e[t])))})),a}};function He(e,t){return e.slugt.slug?1:0}function Ae(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 Be=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}var Ue=r.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"});function Ze(e,t){var a=e.title,n=e.titleId,c=Te(e,["title","titleId"]);return r.createElement("svg",We({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Ue)}var Ge=r.forwardRef(Ze),qe=(a.p,a(270)),Ye=a.n(qe),Ke=R.a.bind(Ye.a),Je=function(e){var t=e.query,a=e.slug,r=e.handleLinkClick;return Object(n.jsxs)("div",{className:Ke("search-card-wrapper"),children:[Object(n.jsx)("div",{className:Ke("search-card-left"),children:Object(n.jsx)(W,{})}),Object(n.jsxs)("div",{className:Ke("search-card-right"),children:[Object(n.jsxs)("span",{className:Ke("search-card-kicker"),children:['Found "',Object(n.jsx)("b",{children:t}),'" in'," ",Object(n.jsx)("b",{children:"Repositories"})]}),Object(n.jsx)("p",{className:Ke("search-card-content"),children:Object(n.jsx)(b.b,{to:"/".concat(a),onClick:r,children:a})})]})]})},Qe=function(e){var t=e.isShown,a=e.hide,c=ze(),s=c.repos,i=c.reloadOnce,u=Object(r.useMemo)((function(){return s?Object.values(s):void 0}),[s]);Object(r.useEffect)((function(){return i()}),[i]);var d=Object(r.useState)(""),m=Object(o.a)(d,2),b=m[0],p=m[1],h=Object(r.useState)([]),j=Object(o.a)(h,2),f=j[0],v=j[1],O=Object(r.useRef)(),g=function(){O.current.classList.add(Ke("slide-out")),p(""),setTimeout(a,200)};ke(O,g);var x;return Object(r.useEffect)((function(){t&&O.current.querySelector("input").focus()}),[t]),Object(r.useEffect)((function(){if(b.length||v([]),b.length&&(null===u||void 0===u?void 0:u.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(Be)}(u),b);v(e)}}),[b,u]),b.length&&!f.length?x=Object(n.jsx)("p",{children:"Repos not found"}):f.length&&(x=f.map((function(e){var t=e.slug,a=e.id;return Object(n.jsx)(Je,{slug:t,query:b,handleLinkClick:g},a)}))),t?l.a.createPortal(Object(n.jsxs)("div",{ref:O,className:Ke("wrapper"),children:[Object(n.jsxs)("div",{className:Ke("header"),children:[Object(n.jsx)(Oe,{tabIndex:0,className:Ke("back-btn"),theme:"plain",onClick:g,children:Object(n.jsx)(Ge,{})}),Object(n.jsx)("input",{tabIndex:0,className:Ke("input"),type:"text",placeholder:"Search repositories, branches and builds",onChange:function(e){return p(e.target.value.trim())}})]}),Object(n.jsxs)("div",{className:Ke("wrapper-results"),children:[Object(n.jsx)("span",{className:Ke("kicker"),children:"Search results"}),Object(n.jsx)("div",{className:Ke("results"),children:x})]})]}),document.body):null},Xe=a(271),$e=a.n(Xe),et=R.a.bind($e.a),tt=function(){return Object(n.jsxs)(b.b,{className:et("sidebar-item","anonymous"),to:"/welcome",children:[Object(n.jsx)("div",{role:"img","aria-label":"Click to sign in",children:Object(n.jsx)(le,{})}),Object(n.jsx)("span",{children:"Click to sign in or sign up."})]})};function at(e){var t=e.user,a=Object(r.useState)(!1),c=Object(o.a)(a,2),s=c[0],l=c[1],i=!!t,u=null===t||void 0===t?void 0:t.admin,d=Object(n.jsxs)("div",{className:et("top"),children:[Object(n.jsx)(Oe,{as:"link",to:"/",className:et("sidebar-item","logo"),children:Object(n.jsx)("img",{src:H,alt:"Drone Logo"})}),i&&Object(n.jsx)(Oe,{className:et("sidebar-item","search-btn"),theme:"plain",label:"Search",onClick:function(){return l(!0)},children:Object(n.jsx)(W,{})})]}),m=Object(n.jsxs)("div",{className:et("bottom"),children:[u?Object(n.jsx)(b.c,{to:"/settings",className:et("sidebar-item"),activeClassName:et("sidebar-item-active"),children:Object(n.jsx)(te,{})}):null,i?Object(n.jsx)(b.c,{as:"link",to:"/account",className:et("sidebar-item"),activeClassName:et("sidebar-item-active"),theme:"plain",children:Object(n.jsx)(be,{className:et("avatar"),path:null===t||void 0===t?void 0:t.avatar,text:null===t||void 0===t?void 0:t.login})}):Object(n.jsx)(tt,{})]});return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("aside",{className:et("wrapper"),children:Object(n.jsxs)("nav",{className:et("sidebar"),children:[d,m]})}),t?Object(n.jsx)(Qe,{isShown:s,hide:function(){return l(!1)}}):void 0]})}at.defaultProps={user:null,drawer:null};var nt=a(272),rt=a.n(nt),ct=R.a.bind(rt.a),st=function(e){var t=e.className,a=e.intent,r=e.children;return Object(n.jsx)("div",{className:ct("wrapper","wrapper-".concat(a),t),children:r})};st.defaultProps={className:"",intent:"success"};var lt=st,it=a(273),ot=a.n(it),ut=R.a.bind(ot.a);function dt(e){e.user;return Object(n.jsxs)(n.Fragment,{children:[S&&Object(n.jsx)("div",{className:ut("system-messages-wrapper"),children:Object(n.jsxs)(lt,{intent:"danger",className:ut("message-with-link"),children:["Your Server License is Expired.",Object(n.jsx)("a",{href:"https://docs.drone.io/license-is-expired",target:"_blank",rel:"noopener noreferrer",children:"Learn more"})]})}),L&&Object(n.jsx)("div",{className:ut("system-messages-wrapper"),children:Object(n.jsxs)(lt,{intent:"danger",className:ut("message-with-link"),children:["Your License Limit is Exceeded.",Object(n.jsx)("a",{href:"https://docs.drone.io/license-is-exceeded",target:"_blank",rel:"noopener noreferrer",children:"Learn more"}),"or",Object(n.jsx)("a",{href:"https://drone.io/enterprise",target:"_blank",rel:"noopener noreferrer",children:"Purchase License"})]})})]})}var mt=c.a.createContext(),bt={isRepoNavDisabled:!1,isAccSyncing:null},pt=function(e){var t=e.children,a=c.a.useState(bt);return Object(n.jsx)(mt.Provider,{value:a,children:t})},ht=a(36),jt=function(e){var t=Object(j.b)(e),a=t.data,n=t.error;return{data:a,mutate:t.mutate,isError:n,isLoading:!n&&!a}},ft=[{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"}],vt=function(){var e=Object(m.a)(d.a.mark((function e(t,a){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("/".concat(a.namespace,"/").concat(a.name)===t){e.next=2;break}return e.abrupt("return");case 2:n='arg@"many"@"/api/repos'.concat(t,'/builds?page=1&per_page=50"'),Object(j.c)(n,function(){var e=Object(m.a)(d.a.mark((function e(t){var n,r,c;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.build,null===t||void 0===t?void 0:t.length){e.next=3;break}return e.abrupt("return",[[n]]);case 3:if(r=Object(ht.a)(t[0]),!((c=r.findIndex((function(e){return e.id===n.id})))>0)){e.next=7;break}return e.abrupt("return",[r.slice(0,c).concat(n,r.slice(c+1))]);case 7:if(c){e.next=9;break}return e.abrupt("return",[[n].concat(r.slice(1))]);case 9:return e.abrupt("return",[[n].concat(r.slice(0,r.length-1))]);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!1);case 4:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Ot=function(){var e=ze().update,t=Object(r.useState)(),a=Object(o.a)(t,2)[1],n=Object(r.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=ft.find((function(e){return e.regex.test(r)})))||void 0===a?void 0:a.page){case"Builds":vt(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(j.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(j.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(ht.a)(t.slice(1))):t.slice(0,a).concat(e,t.slice(a+1)):void 0}}(n),!1),e(n)};Object(r.useEffect)((function(){var e="".concat(v,"/api/stream").concat(f?"?access_token=".concat(f):""),t=new EventSource(e);return t.onmessage=c,t.onerror=n,function(){return t.close()}}),[n])},gt=a(274),xt=a.n(gt);function _t(e){if(!e)return[];var t=new xt.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 wt=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a))},yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withPolling,a=void 0!==t&&t,n=e.timeout,c=void 0===n?1e4:n,s=Object(r.useState)(void 0),l=Object(o.a)(s,2),i=l[0],u=l[1],b=Object(r.useState)(void 0),p=Object(o.a)(b,2),h=p[0],j=p[1],f=Object(r.useState)(!1),v=Object(o.a)(f,2),O=v[0],g=v[1],x=Object(r.useState)(!1),_=Object(o.a)(x,2),w=_[0],y=_[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,Ie("/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(r.useEffect)((function(){N()}),[]),Object(r.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}},Nt=a(275),kt=a.n(Nt),Et=R.a.bind(kt.a);var Ct=function(e){var t=e.children;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:Et("wrapper"),children:[t[0],Object(n.jsx)("div",{className:Et("inner"),children:Object(n.jsx)("main",{className:Et("container","content"),children:t[1]})})]})})},St=(a(361),a(76));function Lt(){return(Lt=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}var Pt=r.createElement("rect",{x:9,y:9,width:13,height:13,rx:2,ry:2}),It=r.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"});function Dt(e,t){var a=e.title,n=e.titleId,c=Mt(e,["title","titleId"]);return r.createElement("svg",Lt({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":n},c),a?r.createElement("title",{id:n},a):null,Pt,It)}var Rt=r.forwardRef(Dt),Ht=(a.p,a(276)),At=a.n(Ht),Bt=R.a.bind(At.a),Ft={token:{copied:!1,snippet:null},api:{copied:!1,snippet:null},cli:{copied:!1,snippet:null}};function zt(){var e,t=Object(r.useState)(Ft),a=Object(o.a)(t,2),c=a[0],s=a[1],l=function(){var e=Object(r.useState)(!1),t=Object(o.a)(e,2),a=t[0],n=t[1],c=Object(r.useState)(""),s=Object(o.a)(c,2),l=s[0],i=s[1],u=Object(r.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 n(!0),e.prev=1,e.next=4,Ie("/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,n(!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(r.useEffect)((function(){j()}),[]),{data:l,isLoading:a,isError:p}}().data;ge("Account");var u=function(e){return function(){s((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(ye.a)({},e,Object(i.a)(Object(i.a)({},t[e]),{},{copied:!0})))})),setTimeout((function(){s((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(ye.a)({},e,Object(i.a)(Object(i.a)({},t[e]),{},{copied:!1})))}))}),2e3)}};return Object(r.useLayoutEffect)((function(){(null===l||void 0===l?void 0:l.token)&&s({token:{copied:!1,snippet:l.token},api:{copied:!1,snippet:["curl -i ".concat(v,"/api/user \\"),'-H "Authorization: Bearer '.concat(l.token,'"')]},cli:{copied:!1,snippet:["export DRONE_SERVER=".concat(v),"export DRONE_TOKEN=".concat(l.token),"drone info"]}})}),[null===l||void 0===l?void 0:l.token]),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("header",{className:Bt("header"),children:[Object(n.jsx)("h1",{children:"Account Settings"}),Object(n.jsx)("a",{href:"/logout",target:"_self",children:"Logout"})]}),Object(n.jsx)("section",{className:Bt("wrapper"),children:c.token.snippet?Object(n.jsxs)("div",{children:[Object(n.jsxs)("div",{className:Bt("row"),children:[Object(n.jsx)("span",{className:Bt("label"),children:"Your personal token:"}),Object(n.jsxs)("pre",{className:Bt("snippet"),children:[Object(n.jsx)(St.CopyToClipboard,{text:c.token.snippet,onCopy:u("token"),children:Object(n.jsx)(Oe,{className:Bt("copy-btn"),children:c.token.copied?"Copied":Object(n.jsx)(Rt,{})})}),Object(n.jsx)("code",{children:c.token.snippet})]})]}),Object(n.jsxs)("div",{className:Bt("row"),children:[Object(n.jsx)("span",{className:Bt("label"),children:"Example API Usage:"}),Object(n.jsxs)("pre",{className:Bt("snippet"),children:[Object(n.jsx)(St.CopyToClipboard,{text:c.api.snippet.join("\n"),onCopy:u("api"),children:Object(n.jsx)(Oe,{className:Bt("copy-btn"),children:c.api.copied?"Copied":Object(n.jsx)(Rt,{})})}),Object(n.jsxs)("code",{children:[Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:"$"}),c.api.snippet[0]]}),Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:">"}),c.api.snippet[1]]})]})]})]}),Object(n.jsxs)("div",{className:Bt("row"),children:[Object(n.jsx)("span",{className:Bt("label"),children:"Example CLI Usage:"}),Object(n.jsxs)("pre",{className:Bt("snippet"),children:[Object(n.jsx)(St.CopyToClipboard,{text:null===(e=c.cli.snippet)||void 0===e?void 0:e.join("\n"),onCopy:u("cli"),children:Object(n.jsx)(Oe,{className:Bt("copy-btn"),children:c.cli.copied?"Copied":Object(n.jsx)(Rt,{})})}),Object(n.jsxs)("code",{children:[Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:"$"}),c.cli.snippet[0]]}),Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:"$"}),c.cli.snippet[1]]}),Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:"$"}),c.cli.snippet[2]]})]})]})]})]}):null})]})}var Vt=a(10),Wt=a.n(Vt);function Tt(){return(Tt=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}var Zt=r.createElement("line",{x1:5,y1:12,x2:19,y2:12});function Gt(e,t){var a=e.title,n=e.titleId,c=Ut(e,["title","titleId"]);return r.createElement("svg",Tt({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":n},c),a?r.createElement("title",{id:n},a):null,Zt)}var qt=r.forwardRef(Gt);a.p;function Yt(){return(Yt=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}var Jt=r.createElement("path",{fill:"none",d:"M0 0h20v20H0z"}),Qt=r.createElement("g",{fill:"currentColor",fillRule:"nonzero"},r.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"}),r.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"}));function Xt(e,t){var a=e.title,n=e.titleId,c=Kt(e,["title","titleId"]);return r.createElement("svg",Yt({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":n},c),a?r.createElement("title",{id:n},a):null,Jt,Qt)}var $t=r.forwardRef(Xt);a.p;function ea(){return(ea=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}var aa=r.createElement("line",{x1:5,y1:12,x2:19,y2:12});function na(e,t){var a=e.title,n=e.titleId,c=ta(e,["title","titleId"]);return r.createElement("svg",ea({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":n},c),a?r.createElement("title",{id:n},a):null,aa)}var ra=r.forwardRef(na);a.p;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}var la=r.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"});function ia(e,t){var a=e.title,n=e.titleId,c=sa(e,["title","titleId"]);return r.createElement("svg",ca({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,la)}var oa=r.forwardRef(ia);a.p;function ua(){return(ua=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}var ma=r.createElement("path",{fill:"none",d:"M0 0h20v20H0z"}),ba=r.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"});function pa(e,t){var a=e.title,n=e.titleId,c=da(e,["title","titleId"]);return r.createElement("svg",ua({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":n},c),a?r.createElement("title",{id:n},a):null,ma,ba)}var ha=r.forwardRef(pa),ja=(a.p,a(277)),fa=a.n(ja),va=R.a.bind(fa.a),Oa=function(e){var t=e.className,a=e.status;return Object(n.jsx)("div",{className:va("status","status-".concat(a),t||""),title:"Status: ".concat(a),children:ga(a)})},ga=function(e){switch(e){case"error":case"failure":return Object(n.jsx)($t,{});case"killed":case"declined":case"skipped":return Object(n.jsx)(qt,{});case"running":case"pending":case"waiting_on_dependencies":case"blocked":return Object(n.jsx)(oa,{});case"success":return Object(n.jsx)(ha,{});case"inactive":return Object(n.jsx)(ra,{});default:return null}};Oa.defaultProps={className:void 0,status:void 0};var xa=Oa;function _a(){return(_a=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}var ya=r.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)"}),Na=r.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"}),ka=r.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"}),Ea=r.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)"}),Ca=r.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"}),Sa=r.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"}),La=r.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"}),Ma=r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear",x1:12.5,y1:21.5,x2:70,y2:77.5,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D9DAE5"}),r.createElement("stop",{offset:1,stopColor:"#9293AB"})),r.createElement("linearGradient",{id:"paint1_linear",x1:32.3754,y1:56.2101,x2:47.6364,y2:71.4711,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D9DAE5"}),r.createElement("stop",{offset:1,stopColor:"#9293AB"})));function Pa(e,t){var a=e.title,n=e.titleId,c=wa(e,["title","titleId"]);return r.createElement("svg",_a({width:102,height:89,viewBox:"0 0 102 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,ya,Na,ka,Ea,Ca,Sa,La,Ma)}var Ia=r.forwardRef(Pa),Da=(a.p,a(278)),Ra=a.n(Da),Ha=R.a.bind(Ra.a),Aa={builds:Object(n.jsx)(Ia,{})};function Ba(e){var t=e.page,a=e.title,r=e.message,c=e.children;return Object(n.jsx)("section",{className:Ha("wrapper"),children:Object(n.jsxs)("div",{className:Ha("inner"),children:[Aa[t],Object(n.jsx)("h2",{children:a}),r&&Object(n.jsx)("p",{children:r}),Object(n.jsx)("div",{children:c})]})})}Ba.defaultProps={page:"builds",title:"It looks a little empty here!",children:null,message:null};var Fa=a(279),za=a.n(Fa),Va=R.a.bind(za.a);function Wa(e){var t=e.repo.active,a=Object(p.i)(),c=a.namespace,s=a.name,l=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a,"/builds/branches"))}({namespace:c,name:s}),i=l.data,o=l.isLoading,u=Object(p.g)();Object(r.useLayoutEffect)((function(){t||u.replace("/".concat(c,"/").concat(s,"/settings"))}),[t,u,c,s]);var d=null;return d=o?null:i.length?Object(n.jsx)("section",{className:Va("wrapper"),children:Object(n.jsx)("div",{className:Va("inner"),children:Object(n.jsx)(Ta,{data:i})})}):Object(n.jsx)(Ba,{title:"Your Branch List is Empty.",message:"This list will be populated when you execute a pipeline for an open branch."}),Object(n.jsx)(n.Fragment,{children:d})}function Ta(e){var t=e.data;return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:Va("branch-list-header"),children:[Object(n.jsx)("div",{}),Object(n.jsx)("div",{children:"Branch"}),Object(n.jsx)("div",{children:"Commit"}),Object(n.jsx)("div",{children:"Committer"}),Object(n.jsx)("div",{children:"Message"})]}),Object(n.jsx)("div",{className:Va("branch-list"),children:t.map((function(e){return Object(n.jsx)(b.b,{to:"".concat(e.number),children:Object(n.jsxs)("div",{className:Va("branch-list-item"),children:[Object(n.jsx)("div",{children:Object(n.jsx)(xa,{status:e.status})}),Object(n.jsx)("div",{className:Va("target"),children:e.target}),Object(n.jsx)("div",{className:Va("commit"),children:e.after.slice(0,8)}),Object(n.jsxs)("div",{children:[Object(n.jsx)(be,{className:Va("avatar"),path:e.author_avatar,alt:e.author_login,text:e.author_login}),Object(n.jsx)("span",{children:e.author_login})]}),e.message&&Object(n.jsx)("div",{className:Va("message"),children:Object(n.jsx)("span",{children:e.message})})]})},e.id)}))})]})}Wa.propTypes={match:Wt.a.shape({params:Wt.a.shape({namespace:Wt.a.string.isRequired,name:Wt.a.string.isRequired}).isRequired}).isRequired};var Ua=a(332),Za=(a(366),a(16)),Ga=a(25),qa=a.n(Ga);function Ya(){return(Ya=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}var Ja=r.createElement("g",{opacity:.7},r.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"}));function Qa(e,t){var a=e.title,n=e.titleId,c=Ka(e,["title","titleId"]);return r.createElement("svg",Ya({width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Ja)}var Xa=r.forwardRef(Qa);a.p;function $a(){return($a=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}var tn=r.createElement("g",{opacity:.7},r.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"}));function an(e,t){var a=e.title,n=e.titleId,c=en(e,["title","titleId"]);return r.createElement("svg",$a({width:10,height:2,viewBox:"0 0 10 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,tn)}var nn=r.forwardRef(an);a.p;function rn(){return(rn=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}var sn=r.createElement("g",{opacity:.7},r.createElement("rect",{opacity:.01,width:14,height:14,fill:"black"}),r.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"}));function ln(e,t){var a=e.title,n=e.titleId,c=cn(e,["title","titleId"]);return r.createElement("svg",rn({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,sn)}var on=r.forwardRef(ln);a.p;function un(){return(un=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}var mn=r.createElement("g",{opacity:.6},r.createElement("rect",{opacity:.01,width:16,height:16,fill:"black"}),r.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"}));function bn(e,t){var a=e.title,n=e.titleId,c=dn(e,["title","titleId"]);return r.createElement("svg",un({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,mn)}var pn=r.forwardRef(bn),hn=(a.p,a(281)),jn=a.n(hn),fn=R.a.bind(jn.a),vn=function(e){var t=e.engine,a=Object(r.useCallback)((function(){t.zoomToFit()}),[t]),c=Object(r.useCallback)((function(){t.getModel().setZoomLevel(100),t.getModel().setOffset(0,0),t.repaintCanvas()}),[t]),s=Object(r.useCallback)((function(){var e=t.getModel().getZoomLevel();t.getModel().setZoomLevel(e+20),t.repaintCanvas()}),[t]),l=Object(r.useCallback)((function(){var e=t.getModel().getZoomLevel();t.getModel().setZoomLevel(e-20),t.repaintCanvas()}),[t]);return Object(n.jsxs)("div",{className:fn("diagram-controls"),children:[Object(n.jsx)(Oe,{className:fn("btn"),title:"Zoom to fit",onClick:a,children:Object(n.jsx)(pn,{})}),Object(n.jsx)(Oe,{className:fn("btn"),title:"Reset zoom",onClick:c,children:Object(n.jsx)(on,{})}),Object(n.jsxs)("div",{className:fn("diagram-controls-group"),children:[Object(n.jsx)(Oe,{className:fn("btn","btn-zoom-in"),title:"Zoom in",onClick:s,children:Object(n.jsx)(Xa,{})}),Object(n.jsx)(Oe,{className:fn("btn","btn-zoom-out"),title:"Zoom out",onClick:l,children:Object(n.jsx)(nn,{})})]})]})},On=a(55),gn=a(56),xn=a(58),_n=a(57),wn=a(66),yn=a(37),Nn=function(e){Object(xn.a)(a,e);var t=Object(_n.a)(a);function a(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(On.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(gn.a)(a,[{key:"setIsImperativelySelected",value:function(e){this.isImperativelySelected=e}},{key:"addPort",value:function(e){return Object(wn.a)(Object(yn.a)(a.prototype),"addPort",this).call(this,e),e}},{key:"addInPort",value:function(e){var t=new Ga.DefaultPortModel({in:!0,name:e,label:e});return this.addPort(t)}},{key:"addOutPort",value:function(e){var t=new Ga.DefaultPortModel({in:!1,name:e,label:e});return this.addPort(t)}},{key:"serialize",value:function(){return Object(i.a)(Object(i.a)({},Object(wn.a)(Object(yn.a)(a.prototype),"serialize",this).call(this)),{},{color:this.color})}},{key:"deserialize",value:function(e,t){Object(wn.a)(Object(yn.a)(a.prototype),"deserialize",this).call(this,e,t),this.color=e.color}}]),a}(Ga.NodeModel),kn=a(282),En=a.n(kn),Cn=R.a.bind(En.a),Sn=function(e){var t=e.engine,a=e.node;return Object(n.jsxs)("div",{className:Cn("node-wrapper"),children:[Object(n.jsxs)("button",{className:Cn("node-inner",{"node-inner-selected":a.isImperativelySelected},"node-inner-".concat(a.options.status)),type:"button",children:[a.getPort("in")&&Object(n.jsx)(Ga.PortWidget,{className:Cn("port","port-in"),engine:t,port:a.getPort("in"),children:Object(n.jsx)("div",{className:Cn("circle-port","circle-port-in")})}),a.getPort("out")&&Object(n.jsx)(Ga.PortWidget,{className:Cn("port","port-out"),engine:t,port:a.getPort("out"),children:Object(n.jsx)("div",{className:Cn("circle-port","circle-port-out")})}),Object(n.jsx)(xa,{className:Cn("status"),status:a.options.status})]}),Object(n.jsx)("p",{className:Cn("name"),children:a.options.name})]})},Ln=function(e){Object(xn.a)(a,e);var t=Object(_n.a)(a);function a(){return Object(On.a)(this,a),t.call(this,"node-default")}return Object(gn.a)(a,[{key:"generateModel",value:function(){return new Nn}},{key:"generateReactWidget",value:function(e){return Object(n.jsx)(Sn,{engine:this.engine,node:e.model})}}]),a}(Za.AbstractReactFactory),Mn=function(e){Object(xn.a)(a,e);var t=Object(_n.a)(a);function a(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(On.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 Ga.DefaultPortModel({in:!1,name:"out"})):e.addPort(new Ga.DefaultPortModel({in:!0,name:"in"})),e}return Object(gn.a)(a,[{key:"serialize",value:function(){return Object(wn.a)(Object(yn.a)(a.prototype),"serialize",this).call(this)}},{key:"deserialize",value:function(e,t){Object(wn.a)(Object(yn.a)(a.prototype),"deserialize",this).call(this,e,t)}}]),a}(Ga.NodeModel);function Pn(){return(Pn=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}var Dn=r.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"});function Rn(e,t){var a=e.title,n=e.titleId,c=In(e,["title","titleId"]);return r.createElement("svg",Pn({width:9,height:12,viewBox:"0 0 9 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Dn)}var Hn=r.forwardRef(Rn),An=(a.p,a(283)),Bn=a.n(An),Fn=R.a.bind(Bn.a),zn=function(e){var t=e.engine,a=e.node;return Object(n.jsx)("div",{className:Fn("node-wrapper"),children:Object(n.jsxs)("button",{className:Fn("node-inner"),type:"button",children:[a.getPort("in")&&Object(n.jsx)(Ga.PortWidget,{className:Fn("port","port-in"),engine:t,port:a.getPort("in"),children:Object(n.jsx)("div",{className:Fn("circle-port","circle-port-in")})}),a.getPort("out")&&Object(n.jsx)(Ga.PortWidget,{className:Fn("port","port-out"),engine:t,port:a.getPort("out"),children:Object(n.jsx)("div",{className:Fn("circle-port","circle-port-out")})}),a.isStart?Object(n.jsx)(Hn,{}):Object(n.jsx)("i",{className:Fn("fake-icon-stop")})]})})},Vn=function(e){Object(xn.a)(a,e);var t=Object(_n.a)(a);function a(){return Object(On.a)(this,a),t.call(this,"node-edge")}return Object(gn.a)(a,[{key:"generateModel",value:function(){return new Mn}},{key:"generateReactWidget",value:function(e){return Object(n.jsx)(zn,{engine:this.engine,node:e.model})}}]),a}(Za.AbstractReactFactory),Wn=a(284),Tn=a.n(Wn),Un=R.a.bind(Tn.a),Zn=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)},Gn=function(e){var t=e.items,a=e.nodeSelectHandler,c=e.selectedNodeNumber,s=e.graphOffsetX,l=e.graphOffsetY,i=e.kind,o=void 0===i?"step":i,u=Object(r.useMemo)((function(){return new Ga.DagreEngine({graph:{rankdir:"LR",ranker:"network-simplex",marginx:s,marginy:l,nodesep:35,edgesep:10,ranksep:75},includeLinks:!1})}),[s,l]),d=Object(r.useMemo)((function(){var e,n=null!==(e=null===t||void 0===t?void 0:t.map((function(e){var t=new Nn({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 Mn,c=new Mn({isStart:!1});return[r].concat(n,c)}return n}),[t,a]),m=Object(r.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}))}(d,o)){d.forEach((function(t,a){var n;a!==d.length-1&&(a||Zn(t,d[a+1],e),(null===(n=t.options.depends_on)||void 0===n?void 0:n.length)&&d.filter((function(e){return t.options.depends_on.includes(e.options.name)})).forEach((function(a){Zn(a,t,e)})))}));var t=d.slice(1,d.length-1),a=d[0],n=d[d.length-1];t.forEach((function(t){Object.keys(t.getPort("in").getLinks()).length||Zn(a,t,e),Object.keys(t.getPort("out").getLinks()).length||Zn(t,n,e)}))}else d.forEach((function(t,a){a!==d.length-1&&Zn(t,d[a+1],e)}));return e}),[d,o]),b=Object(r.useMemo)((function(){return qa()()}),[]),p=Object(r.useMemo)((function(){return new Ga.DiagramModel}),[]);return b.getNodeFactories().registerFactory(new Ln),b.getNodeFactories().registerFactory(new Vn),Object(r.useLayoutEffect)((function(){d.length>=3&&d.slice(1,d.length-1).forEach((function(e){e.setIsImperativelySelected(e.getOptions().number==c)}))}),[d,c]),Object(r.useLayoutEffect)((function(){var e=p.getNodes(),t=p.getLinks();e.length&&e.map((function(e){return p.removeNode(e)})),t.length&&t.map((function(e){return p.removeLink(e)})),p.addAll.apply(p,Object(ht.a)(d.concat(m))),u.redistribute(p),b.repaintCanvas()}),[b,p,d,m,u]),b.setModel(p),p.setLocked(!0),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)(Za.CanvasWidget,{className:Un("diagram-wrapper"),engine:b}),Object(n.jsx)(vn,{engine:b})]})},qn=a(285),Yn=a.n(qn),Kn=a(598),Jn=a(599);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}var $n=r.createElement("circle",{cx:12,cy:12,r:10}),er=r.createElement("polyline",{points:"12 6 12 12 16 14"});function tr(e,t){var a=e.title,n=e.titleId,c=Xn(e,["title","titleId"]);return r.createElement("svg",Qn({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":n},c),a?r.createElement("title",{id:n},a):null,$n,er)}var ar=r.forwardRef(tr),nr=(a.p,a(286)),rr=a.n(nr),cr=R.a.bind(rr.a),sr=function(e,t){return e.toString().padStart(t?1:2,"0")},lr=function(e){var t=e.started,a=e.finished,n=e.withLetters,r=void 0!==n&&n;if(!t||!a)return"";var c=Object(Kn.a)({start:new Date(1e3*t),end:new Date(1e3*a)}),s=c.hours,l=c.minutes,i=c.seconds;return r?"".concat(s?"".concat(sr(s,r),"h"):""," ").concat(sr(l,r),"m ").concat(sr(i,r),"s"):"".concat(s?"".concat(sr(s),":"):"").concat(sr(l),":").concat(sr(i))},ir=function(e){var t=e.className,a=e.withIcon,r=e.label,c=e.elapsed;return Object(n.jsxs)("div",{className:cr("elapsed-static",t||""),children:[a?Object(n.jsx)(ar,{}):null,r&&Object(n.jsxs)("span",{children:[r,"\xa0"]}),c]})},or=function(e){var t=e.started,a=e.className,r=e.withIcon,s=e.withLetters,l=e.label,i=function(e){var t=e.started,a=e.withLetters,n=c.a.useState((function(){return lr({started:t,finished:Date.now()/1e3,withLetters:a})})),r=Object(o.a)(n,2),s=r[0],l=r[1];return c.a.useEffect((function(){var e=setInterval((function(){l(lr({started:t,finished:Date.now()/1e3,withLetters:a}))}),1e3);return function(){return clearInterval(e)}}),[t,a]),s}({started:t,withLetters:s});return Object(n.jsx)(ir,{className:a,elapsed:i,withIcon:r,label:l})},ur=function(e){var t=e.className,a=e.started,r=e.finished,c=e.withIcon,s=e.withLetters,l=e.since,i=e.label,o=l?function(e){var t=e.dateSince;return Object(Jn.a)(1e3*t,{addSuffix:!0})}({dateSince:r}):lr({started:a,finished:r,withLetters:s});return Object(n.jsx)(ir,{elapsed:o,withIcon:c,className:t,label:i})},dr=function(e){var t=e.started,a=e.finished;return t&&!a?Object(n.jsx)(or,Object(i.a)({},e)):Object(n.jsx)(ur,Object(i.a)({},e))};function mr(){return(mr=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}var pr=r.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"}),hr=r.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"});function jr(e,t){var a=e.title,n=e.titleId,c=br(e,["title","titleId"]);return r.createElement("svg",mr({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,pr,hr)}var fr=r.forwardRef(jr);a.p;function vr(){return(vr=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}var gr=r.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),xr=r.createElement("polyline",{points:"7 10 12 15 17 10"}),_r=r.createElement("line",{x1:12,y1:15,x2:12,y2:3});function wr(e,t){var a=e.title,n=e.titleId,c=Or(e,["title","titleId"]);return r.createElement("svg",vr({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":n},c),a?r.createElement("title",{id:n},a):null,gr,xr,_r)}var yr=r.forwardRef(wr);a.p;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}var Er=r.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"}),Cr=r.createElement("line",{x1:1,y1:1,x2:23,y2:23});function Sr(e,t){var a=e.title,n=e.titleId,c=kr(e,["title","titleId"]);return r.createElement("svg",Nr({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":n},c),a?r.createElement("title",{id:n},a):null,Er,Cr)}var Lr=r.forwardRef(Sr);a.p;function Mr(){return(Mr=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}var Ir=r.createElement("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),Dr=r.createElement("circle",{cx:12,cy:12,r:3});function Rr(e,t){var a=e.title,n=e.titleId,c=Pr(e,["title","titleId"]);return r.createElement("svg",Mr({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":n},c),a?r.createElement("title",{id:n},a):null,Ir,Dr)}var Hr=r.forwardRef(Rr),Ar=(a.p,a(287)),Br=a.n(Ar),Fr=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)";default:return"Loading..."}},zr=function(e,t){var a=null===e||void 0===e?void 0:e.length;if(!t&&a&&a>O){var n=Math.floor(a/O),r=a%O;return e.slice((n-1)*O+r)}return e},Vr=(a(594),R.a.bind(Br.a)),Wr=function(e){var t=e.areLogsLoading,a=e.toggleFollowLogs,r=e.shouldFollowLogs,c=e.handleDownloadClick,s=e.showDownloadBtn,l=e.showCloseBtn,i=e.showFollowLogsBtn,o=e.onCloseBtnClick;return Object(n.jsx)("header",{className:Vr("header"),children:Object(n.jsxs)("div",{className:Vr("header-inner"),children:[Object(n.jsx)("div",{className:Vr("info"),children:Object(n.jsx)("h3",{children:"Console Logs"})}),!t&&Object(n.jsxs)("div",{className:Vr("controls"),children:[i&&Object(n.jsx)(Oe,{className:Vr("controls-logs-toggler"),onClick:a,children:r?Object(n.jsx)(Lr,{}):Object(n.jsx)(Hr,{})}),s&&Object(n.jsx)(Oe,{onClick:c,children:Object(n.jsx)(yr,{})}),l&&Object(n.jsx)(Oe,{className:Vr("btn-close"),onClick:o,children:Object(n.jsx)(fr,{})})]})]})})};Wr.defaultProps={showFollowLogsBtn:!1,showDownloadBtn:!1,showCloseBtn:!1,onCloseBtnClick:void 0};var Tr=function(e){var t=e.stepStatus,a=e.stepError,r=e.stepExitCode,c=e.tmateLink;return Object(n.jsx)("footer",{className:Vr("footer"),children:Object(n.jsxs)("div",{className:Vr("summary"),children:[Object(n.jsxs)("div",{className:Vr("summary-info"),children:[t&&Object(n.jsx)(xa,{className:Vr("summary-status"),status:t}),Fr(t,a,r)]}),Object(n.jsx)("div",{className:Vr("summary-controls"),children:c?Object(n.jsx)("a",{className:Vr("tmate-link"),href:c,target:"_blank",rel:"noopener noreferrer",children:"Open Remote Session"}):null})]})})};Tr.defaultProps={stepStatus:"",stepError:"",stepExitCode:void 0,tmateLink:""};var Ur=function(e){var t=e.shouldShow,a=e.handleShowAllLogsClick;return t?Object(n.jsx)(Oe,{className:Vr("btn-show-all-logs"),onClick:a,children:"Show all logs"}):null},Zr=function(e){return e.shouldShow?Object(n.jsx)("div",{className:Vr("line-number"),children:"Loading..."}):null},Gr=function(e){var t=e.out,a=e.pos,r=e.html,c=e.time;return Object(n.jsxs)("div",{className:Vr("line"),children:[Object(n.jsx)("span",{className:Vr("line-number"),children:a+1}),r?Object(n.jsx)("span",{className:R()("loc-html",Vr("line-content")),dangerouslySetInnerHTML:{__html:r}}):Object(n.jsx)("span",{className:Vr("line-content"),children:t}),Object(n.jsx)("span",{className:Vr("line-time"),children:"".concat(c,"s")})]},a)},qr=c.a.forwardRef((function(e,t){var a=e.className,c=e.height,s=e.showHeader,l=e.showFooter,u=e.shownLogsLimit,d=e.tmateLink,m=e.logs,b=e.showLogsLoadingLine,p=e.areLogsLoading,h=e.stepData,j=e.showDownloadBtn,f=e.showFollowLogsBtn,v=e.logsBlobName,O=e.showCloseBtn,g=e.onCloseBtnClick,x=Object(r.useState)(!1),_=Object(o.a)(x,2),w=_[0],y=_[1],N=Object(r.useState)(!1),k=Object(o.a)(N,2),E=k[0],C=k[1],S=Object(r.useRef)();return Object(r.useEffect)((function(){var e;E&&"running"===h.status&&m.length?null===(e=S.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}):C(!1)}),[E,h.status,m.length]),Object(n.jsxs)("div",{className:Vr("wrapper",a),ref:t,style:{height:c},children:[s&&Object(n.jsx)(Wr,{areLogsLoading:p,showDownloadBtn:j,showFollowLogsBtn:f,showCloseBtn:O,shouldFollowLogs:E,toggleFollowLogs:function(){return C((function(e){return!e}))},handleDownloadClick:function(){return function(e,t){for(var a="",n=0;nu&&!w,handleShowAllLogsClick:function(){return y(!0)}}),Object(n.jsxs)("code",{className:R()("ansi-hook",Vr("output")),children:[Object(n.jsx)(Zr,{shouldShow:b}),m.length&&!p?zr(m,w).map((function(e){return Object(r.createElement)(Gr,Object(i.a)(Object(i.a)({},e),{},{key:e.pos}))})):null,Object(n.jsx)("div",{ref:S})]})]}),l&&Object(n.jsx)(Tr,{stepStatus:h.status,stepError:h.error,stepExitCode:h.exit_code,tmateLink:d})]})}));qr.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"};var Yr=qr,Kr=a(288),Jr=a.n(Kr),Qr=function(e){switch(e){case"success":return"success";case"failure":case"declined":case"error":case"killed":return"danger";default:return"warning"}},Xr=function(e){var t=e.buildStatus,a=e.stageStatus,n=e.stageName,r=e.stepName,c=e.stepError,s=e.logsHookError;return"skipped"===a?"".concat(n,": Skipped"):"killed"===a?"".concat(n,": ").concat(r," - Killed (Cancelled)"):c?"".concat(r,": ").concat(c):"error"===a?"".concat(n,": ").concat(r," - Error"):s?"sql: no rows in result set"===s.message?"killed"===t?"This pipeline was cancelled":"Step does not exist":s.message:"Something went wrong, please, reload the page or restart the build"},$r=function(e){var t=e.buildStatus,a=e.stageName,n=e.stepName,r=e.stepStatus,c=e.stageStatus,s=e.stageError;if("declined"===t)return"This pipeline was declined";var l=[a];return n?l.push("- ".concat(n,": ").concat(r)):s?l.push(": ".concat(s)):l.push(": ".concat(c)),l.join(" ")},ec=function(e){var t=e.stageStatus,a=e.stepStatus,n=e.logsExist,r=e.currentCompState;if("error"===t)return E;switch(a){case"skipped":return k;case"error":return E;case"killed":return n?N:r;case"failure":return N;case"running":return y;case"pending":case"waiting_on_dependencies":return w;case"success":return r!==w||n?n?N:k:N;default:return r}},tc=function(e){var t,a=e.buildStatus,n=e.state;switch(a){case"declined":return k;case"error":case"killed":return"skipped"===n.stageStatus?k:(null===(t=n.logs)||void 0===t?void 0:t.length)||n.compState===w?n.compState:k;default:return n.compState}},ac="toggle_logs_following",nc="set_show_all_logs",rc="update_is_data_loading",cc="update_build_status",sc="update_stage_status",lc="update_stage_name",ic="update_stage_error",oc="update_step_data",uc="update_logs_hook_error",dc="update_logs",mc="update_are_logs_loading",bc="update_has_build_debug_mode",pc="set_logs",hc=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=w;return t||[n,r,i.status].includes("pending")?o=w:"error"===r?o=E:"running"===i.status&&(o=y),{compState:o,shouldFollowLogs:!1,showAllLogs:!1,logs:[],stepData:i,isDataLoading:t,stageName:c,stageStatus:r,stageError:s,buildStatus:n,logsHookError:{},tmateLink:"",hasBuildDebugMode:a}},jc=function(e,t){var a,n,r,c,s,l,o;switch(t.type){case ac:return Object(i.a)(Object(i.a)({},e),{},{shouldFollowLogs:!e.shouldFollowLogs});case nc:return Object(i.a)(Object(i.a)({},e),{},{showAllLogs:!0});case cc:return Object(i.a)(Object(i.a)({},e),{},{buildStatus:t.payload,compState:tc({buildStatus:t.payload,state:e})});case bc:return Object(i.a)(Object(i.a)({},e),{},{hasBuildDebugMode:t.payload});case sc:return Object(i.a)(Object(i.a)({},e),{},{stageStatus:t.payload,compState:"error"===t.payload?E:e.compState});case lc:return Object(i.a)(Object(i.a)({},e),{},{stageName:t.payload});case rc:return Object(i.a)(Object(i.a)({},e),{},{isDataLoading:t.payload,compState:t.payload?w:ec({stageStatus:e.stageStatus,stepStatus:e.stepData.status,logsExist:null===(a=e.logs)||void 0===a?void 0:a.length,currentCompState:e.compState})});case oc:return Object(i.a)(Object(i.a)({},e),{},{stepData:Object(i.a)({},t.payload),compState:ec({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 uc:return Object(i.a)(Object(i.a)({},e),{},{logsHookError:t.payload,compState:t.payload?E:e.compState});case dc:return Object(i.a)(Object(i.a)({},e),{},{logs:e.logs.concat(t.payload),tmateLink:e.tmateLink||(s=t.payload,l=e.stepData.status,o=e.hasBuildDebugMode,s&&"running"===l&&o&&s.out.startsWith("web session: ")?s.out.replace("web session: ","").replace("\n",""):"")});case pc:return Object(i.a)(Object(i.a)({},e),{},{logs:t.payload,compState:t.payload.length||e.compState===w?e.compState:k});case mc:return Object(i.a)(Object(i.a)({},e),{},{compState:t.payload?w:ec({stageStatus:e.stageStatus,stepStatus:e.stepData.status,logsExist:null===(c=e.logs)||void 0===c?void 0:c.length,currentCompState:e.compState})});case ic:return Object(i.a)(Object(i.a)({},e),{},{stageError:e.compState===k?t.payload:void 0,compState:t.payload.length||e.compState===w?e.compState:k});default:return e}},fc=R.a.bind(Jr.a),vc=function(e){var t=e.className,a=e.children,r=e.style;return Object(n.jsx)("div",{className:fc("non-logs-container",t),"data-container":"non-logs",style:r,children:a})},Oc={setLogs:pc,setError:uc,setIsLoading:mc},gc=["running","pending","skipped","waiting_on_dependencies"],xc=gc.slice(1);function _c(e){var t,a,c=e.consoleProps,s=e.hasBuildDebugMode,l=e.isDataLoading,u=e.stageStatus,d=e.stageName,m=e.stepData,b=e.buildStatus,h=e.stageError,x=Object(p.i)(),_=Object(r.useReducer)(jc,e,hc),E=Object(o.a)(_,2),S=E[0],L=E[1],M="logs_".concat(x.namespace,"_").concat(x.name,"_").concat(x.build,"_").concat(x.stage,"_").concat(x.step),P=_e(),I=P.dynamicHeightRef,D=P.dynamicHeight;if(function(e,t,a,n){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(j.b)((function(){return!0===n?"/api/repos/".concat(c,"/").concat(s,"/builds/").concat(l,"/logs/").concat(o,"/").concat(d):null})),b=m.data,p=m.error,h=Object(r.useMemo)((function(){return _t(b)}),[b]);Object(r.useEffect)((function(){n&&h.length&&e({type:t.setLogs,payload:h})}),[e,h,t.setLogs,n]),Object(r.useEffect)((function(){n&&e(void 0!==b||p?{type:t.setIsLoading,payload:!1}:{type:t.setIsLoading,payload:!0})}),[e,b,t.setIsLoading,n,p]),Object(r.useEffect)((function(){n&&e({type:t.setError,payload:p})}),[p,e,n,t.setError])}(L,Oc,x,S.compState!==y&&!!S.stageStatus&&!!S.stepData.status&&!xc.includes(S.stageStatus)&&!gc.includes(S.stepData.status)),function(e,t,a,n){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(r.useState)(),p=Object(o.a)(b,2)[1],h=Object(r.useRef)(),j=Object(r.useMemo)((function(){var e="".concat(c,"/").concat(s,"/").concat(l,"/").concat(u,"/").concat(m);return n?"".concat(v,"/api/stream/").concat(e).concat(f?"?access_token=".concat(f):""):"/api/repos/".concat(e)}),[n,c,s,l,u,m]),O=Object(r.useCallback)((function(a){var n=_t(JSON.parse(a.data));e({type:t,payload:n})}),[e,t]),g=Object(r.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(r.useEffect)((function(){var e;return n?(null===(e=h.current)||void 0===e||e.close(),h.current=new EventSource(j),h.current.onmessage=O,h.current.onerror=g):g(),function(){return g(void 0,!1)}}),[n,g,j,O])}(L,dc,x,S.compState===y),Object(r.useLayoutEffect)((function(){return L({type:pc,payload:[]}),function(){L({type:pc,payload:[]})}}),[x.stage,x.step]),Object(r.useEffect)((function(){L({type:bc,payload:s})}),[s]),Object(r.useLayoutEffect)((function(){L({type:rc,payload:l})}),[l]),Object(r.useEffect)((function(){u&&L({type:sc,payload:u})}),[u]),Object(r.useEffect)((function(){d&&L({type:lc,payload:d})}),[d]),Object(r.useEffect)((function(){L({type:oc,payload:m})}),[m]),Object(r.useEffect)((function(){b&&L({type:cc,payload:b})}),[b]),Object(r.useEffect)((function(){h&&L({type:ic,payload:h})}),[h]),(null===S||void 0===S||null===(t=S.stepData)||void 0===t?void 0:t.status)===g)return Object(n.jsx)(vc,{className:fc("no-logs"),children:Object(n.jsx)("div",{className:fc("error-wrapper"),children:Object(n.jsx)(lt,{intent:"danger",children:Xr({buildStatus:S.buildStatus,stageStatus:S.stageStatus,stageName:S.stageName,stepName:S.stepData.name,stepError:S.stepData.error,logsHookError:S.logsHookError})})})});switch(null===S||void 0===S?void 0:S.compState){case k:return Object(n.jsx)(vc,{className:fc("no-logs"),children:Object(n.jsx)(lt,{intent:Qr(S.stageStatus),children:$r({buildStatus:S.buildStatus,stageStatus:S.stageStatus,stageName:S.stageName,stepName:S.stepData.name,stepStatus:S.stepData.status,stageError:S.stageError})})});case C:return null}return Object(n.jsx)(Yr,Object(i.a)({ref:I,height:D,shownLogsLimit:O,tmateLink:S.tmateLink,logs:S.logs,showLogsLoadingLine:S.compState===w||S.compState===y&&!S.logs.length,areLogsLoading:S.compState===w,stepData:S.stepData,showDownloadBtn:(null===(a=S.stepData)||void 0===a?void 0:a.stopped)&&S.compState===N,showFollowLogsBtn:S.compState===y,logsBlobName:M},c))}_c.defaultProps={stepData:{},hasBuildDebugMode:!1,buildStatus:"",stageStatus:"",stageName:"",stageError:void 0,consoleProps:{showHeader:!0,showFooter:!0}},vc.defaultProps={style:void 0};var wc=a(289),yc=a.n(wc),Nc=R.a.bind(yc.a),kc=function(e){var t,a,c,s,l,i,o,u=e.data,d=e.isDataLoading,m=e.isShown,b=e.hide,h=Object(p.i)(),j=h.stage,f=void 0===j?1:j,v=h.step,O=void 0===v?1:v,g=null===u||void 0===u||null===(t=u.stages)||void 0===t||null===(a=t[f-1])||void 0===a||null===(c=a.steps)||void 0===c?void 0:c[O-1],x=Object(r.useRef)();if(!m||!g)return null;return Object(n.jsxs)("div",{className:Nc("step"),ref:x,children:[Object(n.jsxs)("div",{className:Nc("step-header"),children:[Object(n.jsx)(xa,{className:Nc("status"),status:null===g||void 0===g?void 0:g.status}),Object(n.jsx)("h3",{className:Nc("heading"),children:null===g||void 0===g?void 0:g.name}),Object(n.jsx)(Oe,{onClick:function(){x.current.classList.add(Nc("slide-out")),setTimeout(b,200)},children:Object(n.jsx)(fr,{})})]}),Object(n.jsx)("div",{className:Nc("step-meta"),children:["pending","skipped","blocked","waiting_on_dependencies"].includes(null===g||void 0===g?void 0:g.status)?Object(n.jsx)("div",{children:"Step data is unavailable"}):Object(n.jsxs)("dl",{children:[Object(n.jsx)("dt",{children:"Started:"}),Object(n.jsx)("dd",{children:De({date:null===g||void 0===g?void 0:g.started})}),(null===g||void 0===g?void 0:g.stopped)&&Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("dt",{children:"Finished:"}),Object(n.jsx)("dd",{children:De({date:null===g||void 0===g?void 0:g.stopped})})]}),Object(n.jsx)("dt",{children:"Duration:"}),Object(n.jsx)("dd",{children:Object(n.jsx)(dr,{started:null===g||void 0===g?void 0:g.started,finished:null===g||void 0===g?void 0:g.stopped,withLetters:!0})})]})}),Object(n.jsx)(_c,{isDataLoading:d,hasBuildDebugMode:(null===u||void 0===u?void 0:u.debug)||!1,buildStatus:null===u||void 0===u?void 0:u.status,stageStatus:null===u||void 0===u||null===(s=u.stages)||void 0===s||null===(l=s[f-1])||void 0===l?void 0:l.status,stageName:null===u||void 0===u||null===(i=u.stages)||void 0===i||null===(o=i[f-1])||void 0===o?void 0:o.name,stepData:g,consoleProps:{showFooter:!1,showHeader:!0}})]})},Ec=R.a.bind(Yn.a),Cc=function(e){var t,a,c=e.data,s=e.isDataLoading,l=Object(p.i)(),i=l.namespace,u=l.name,d=l.build,m=l.stage,b=void 0===m?1:m,h=l.step,j=void 0===h?1:h,f=Object(p.g)(),v=Object(r.useState)(!1),O=Object(o.a)(v,2),g=O[0],x=O[1],_=_e((function(e){return e})),w=_.dynamicHeightRef,y=_.dynamicHeight;return Object(n.jsxs)("section",{className:Ec("graph-wrapper"),ref:w,style:{height:y},children:[Object(n.jsxs)(Ua.a,{split:"horizontal",minSize:190,defaultSize:y/2,maxSize:y-190,children:[Object(n.jsx)("div",{className:Ec("graph-stages"),children:Object(n.jsx)(Gn,{kind:"stage",items:null===c||void 0===c?void 0:c.stages,nodeSelectHandler:function(e){f.replace("/".concat(i,"/").concat(u,"/").concat(d,"/").concat(e,"/1"))},selectedNodeNumber:b,graphOffsetX:60,graphOffsetY:60})}),Object(n.jsx)("div",{className:Ec("graph-steps"),children:Object(n.jsx)(Gn,{items:null===c||void 0===c||null===(t=c.stages)||void 0===t||null===(a=t[b-1])||void 0===a?void 0:a.steps,nodeSelectHandler:function(e){x(!0),f.replace("/".concat(i,"/").concat(u,"/").concat(d,"/").concat(b,"/").concat(e))},selectedNodeNumber:j,graphOffsetX:60,graphOffsetY:60})})]}),Object(n.jsx)(kc,{isShown:g,hide:function(){return x(!1)},isDataLoading:s,data:c})]})},Sc=a(290),Lc=a.n(Sc),Mc=R.a.bind(Lc.a),Pc=function(){var e=Object(r.useState)(!1),t=Object(o.a)(e,2),a=t[0],n=t[1];return[a,function(){return n(!a)}]},Ic=function(e){var t=e.isShowing,a=e.title,c=e.children,s=e.hide,i=e.mode,o=void 0===i?"default":i,u=Object(r.useRef)(null);return ke(u,s),Object(r.useLayoutEffect)((function(){return window.document.body.style.overflow=t?"hidden":"unset",function(){return window.document.body.style.oveflow="unset"}}),[t]),t?l.a.createPortal(Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:Mc("overlay")}),Object(n.jsx)("div",{className:Mc("modal-wrapper","".concat(o)),tabIndex:-1,role:"dialog","aria-modal":!0,"aria-hidden":!0,children:Object(n.jsxs)("div",{className:Mc("modal-inner"),ref:u,children:[Object(n.jsxs)("header",{className:Mc("modal-header"),children:[Object(n.jsx)("h3",{className:Mc("modal-title"),children:a}),Object(n.jsx)(Oe,{theme:"plain",type:"button",onClick:s,children:Object(n.jsx)(fr,{})})]}),Object(n.jsx)("div",{className:Mc("modal-content"),children:c})]})})]}),document.body):null},Dc=a(291),Rc=a.n(Dc);function Hc(){return(Hc=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}var Bc=r.createElement("polyline",{points:"6 9 12 15 18 9"});function Fc(e,t){var a=e.title,n=e.titleId,c=Ac(e,["title","titleId"]);return r.createElement("svg",Hc({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":n},c),a?r.createElement("title",{id:n},a):null,Bc)}var zc=r.forwardRef(Fc),Vc=(a.p,a(292)),Wc=a.n(Vc),Tc=R.a.bind(Wc.a);function Uc(e){var t=e.isDataLoading,a=e.stages,r=void 0===a?[]:a,c=e.className,s=e.onStepClick,l=Object(p.i)(),i=l.namespace,o=l.name,u=l.build,d=l.stage,m=void 0===d?1:d,b=_e(),h=b.dynamicHeight,j=b.dynamicHeightRef;return Object(n.jsxs)("div",{className:Tc("wrapper"),children:[Object(n.jsxs)("div",{className:Tc("header"),children:[Object(n.jsx)("h3",{className:Tc("title"),children:"Pipeline stages"}),Object(n.jsx)("span",{className:Tc("counter"),children:t?null:"".concat(r.length," ").concat(1===r.length?"stage":"stages")})]}),Object(n.jsx)("nav",{className:R()(Tc("inner"),c),ref:j,style:{height:h},children:t?Object(n.jsx)("div",{className:Tc("stage"),children:Object(n.jsx)("h3",{className:Tc("stage-header"),children:"Loading..."})}):r.map((function(e){var t=e.id,a=e.name,r=e.status,c=e.started,l=e.stopped,d=e.steps,b=e.number;return!(null===d||void 0===d?void 0:d.length)||["skipped","blocked","pending","waiting_on_dependencies"].includes(r)?Object(n.jsx)(Gc,{stageId:t,stageName:a,stageStatus:r,stageStarted:c,stageStopped:l},t):Object(n.jsx)(Zc,{stageId:t,stageName:a,stageStatus:r,stageStarted:c,stageStopped:l,stageNumber:b,steps:d,namespace:i,name:o,build:u,stageInPath:m,onStepClick:s},t)}))})]})}var Zc=function(e){var t=e.stageStatus,a=e.stageName,c=e.stageStarted,s=e.stageNumber,l=e.stageStopped,i=e.steps,u=e.name,d=e.namespace,m=e.build,p=e.stageInPath,h=e.onStepClick,j=Object(r.useState)(s==p),f=Object(o.a)(j,2),v=f[0],O=f[1];return Object(n.jsxs)("div",{className:Tc("stage",{"stage-expanded":v}),children:[Object(n.jsxs)("button",{type:"button",className:Tc("stage-header",{"stage-header-expanded":v}),onClick:function(){return O((function(e){return!e}))},children:[Object(n.jsx)(zc,{className:Tc("chevron")}),Object(n.jsx)(xa,{className:Tc("stage-status"),status:t}),Object(n.jsx)("span",{className:Tc("name"),children:a}),Object(n.jsx)(dr,{className:Tc("time"),started:c,finished:l})]}),v&&Object(n.jsxs)("ul",{className:Tc("stage-steps"),children:[Object(n.jsxs)("li",{className:Tc("steps-header"),children:["Steps",Object(n.jsx)("i",{className:Tc("divider")})]}),i.map((function(e,t){var a=e.id,r=e.status,c=e.name,l=e.started,i=e.stopped;return"skipped"===r?Object(n.jsx)("li",{children:Object(n.jsxs)("div",{className:Tc("stage-step","stage-step-unselectable"),children:[Object(n.jsx)(xa,{className:Tc("status"),status:r}),Object(n.jsx)("span",{className:Tc("name"),children:c})]})},a):Object(n.jsx)("li",{children:Object(n.jsxs)(b.c,{activeClassName:Tc("stage-step-active"),className:Tc("stage-step"),isActive:t?void 0:function(e,t){var a=t.pathname.split("/").filter(Boolean),n=Object(o.a)(a,5)[4];return e||s==p&&!n},to:"/".concat(d,"/").concat(u,"/").concat(m,"/").concat(s,"/").concat(t+1),exact:!0,onClick:h,children:[Object(n.jsx)(xa,{className:Tc("status"),status:r}),Object(n.jsx)("span",{className:Tc("name"),children:c}),Object(n.jsx)(dr,{className:Tc("time"),started:l,finished:i})]})},a)}))]})]})},Gc=function(e){var t=e.stageStatus,a=e.stageName,r=e.stageStarted,c=e.stageStopped;return Object(n.jsx)("div",{className:Tc("stage"),children:Object(n.jsxs)("h3",{className:Tc("stage-header","stage-header-unselectable"),children:[Object(n.jsx)(zc,{className:Tc("chevron","chevron-disabled")}),Object(n.jsx)(xa,{className:Tc("stage-status"),status:t}),Object(n.jsx)("span",{className:Tc("name"),children:a}),Object(n.jsx)(dr,{className:Tc("time"),started:r,finished:c})]})})},qc=R.a.bind(Rc.a),Yc=function(e){var t,a,c,s,l,i,u,d,m,b,h,j,f,v,O,g,x=Object(p.i)(),_=x.stage,w=void 0===_?1:_,y=x.step,N=void 0===y?1:y,k=e.isDataLoading,E=e.data,C=Pc(),S=Object(o.a)(C,2),L=S[0],M=S[1],P=Object(r.useState)(!1),I=Object(o.a)(P,2),D=I[0],R=I[1],H=Object(r.useCallback)((function(){return D?M():{}}),[D,M]);return Object(r.useLayoutEffect)((function(){window.innerWidth<768&&R(!0)}),[]),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("section",{className:qc("page-wrapper"),children:Object(n.jsxs)("div",{className:qc("inner"),children:[Object(n.jsx)(Uc,{isDataLoading:k,className:qc("navbar"),stages:null===E||void 0===E?void 0:E.stages,onStepClick:H}),Object(n.jsx)("div",{className:qc("logs"),children:Object(n.jsx)(_c,{isDataLoading:k,hasBuildDebugMode:(null===E||void 0===E?void 0:E.debug)||!1,buildStatus:null===E||void 0===E?void 0:E.status,stageStatus:null===E||void 0===E||null===(t=E.stages)||void 0===t||null===(a=t[w-1])||void 0===a?void 0:a.status,stageName:null===E||void 0===E||null===(c=E.stages)||void 0===c||null===(s=c[w-1])||void 0===s?void 0:s.name,stageError:null===E||void 0===E||null===(l=E.stages)||void 0===l||null===(i=l[w-1])||void 0===i?void 0:i.error,stepData:null===E||void 0===E||null===(u=E.stages)||void 0===u||null===(d=u[w-1])||void 0===d||null===(m=d.steps)||void 0===m?void 0:m[N-1]})})]})}),Object(n.jsx)(Ic,{isShowing:L,mode:"fullscreen",hide:M,children:Object(n.jsx)(_c,{consoleProps:{showCloseBtn:!0,onCloseBtnClick:M,className:qc("console-mobile")},isDataLoading:k,hasBuildDebugMode:(null===E||void 0===E?void 0:E.debug)||!1,buildStatus:null===E||void 0===E?void 0:E.status,stageStatus:null===E||void 0===E||null===(b=E.stages)||void 0===b||null===(h=b[w-1])||void 0===h?void 0:h.status,stageName:null===E||void 0===E||null===(j=E.stages)||void 0===j||null===(f=j[w-1])||void 0===f?void 0:f.name,stepData:null===E||void 0===E||null===(v=E.stages)||void 0===v||null===(O=v[w-1])||void 0===O||null===(g=O.steps)||void 0===g?void 0:g[N-1]})})]})};function Kc(){return(Kc=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}var Qc=r.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)"}),Xc=r.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"}),$c=r.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"}),es=r.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)"}),ts=r.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"}),as=r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear",x1:12.5,y1:12.5,x2:70,y2:68.5,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D9DAE5"}),r.createElement("stop",{offset:1,stopColor:"#9293AB"})),r.createElement("linearGradient",{id:"paint1_linear",x1:32.3754,y1:47.2101,x2:47.6364,y2:62.4711,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D9DAE5"}),r.createElement("stop",{offset:1,stopColor:"#9293AB"})));function ns(e,t){var a=e.title,n=e.titleId,c=Jc(e,["title","titleId"]);return r.createElement("svg",Kc({width:101,height:80,viewBox:"0 0 101 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Qc,Xc,$c,es,ts,as)}var rs=r.forwardRef(ns),cs=(a.p,a(293)),ss=a.n(cs),ls=R.a.bind(ss.a);function is(e){var t=e.user;return ge("Not Found"),Object(n.jsx)("section",{className:ls("wrapper"),children:Object(n.jsxs)("div",{className:ls("inner"),children:[Object(n.jsx)(rs,{}),Object(n.jsxs)("p",{className:ls("note"),children:[Object(n.jsx)("span",{children:"We are sorry, the resource you requested cannot be found."}),Object(n.jsx)("sub",{children:"That's all we know."})]}),!t&&Object(n.jsx)(Oe,{as:"link",to:"/welcome",theme:"primary",className:ls("btn"),children:"Sign In"})]})})}is.defaultProps={user:void 0};var os=a(294),us=a.n(os);function ds(){return(ds=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}var bs=r.createElement("g",{filter:"url(#filter0_dd)"},r.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"})),ps=r.createElement("defs",null,r.createElement("filter",{id:"filter0_dd",x:-1.0293,y:.0195312,width:18.4547,height:16.1195,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r.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"}),r.createElement("feOffset",{dy:2}),r.createElement("feGaussianBlur",{stdDeviation:2}),r.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"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r.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"}),r.createElement("feOffset",{dy:1}),r.createElement("feGaussianBlur",{stdDeviation:1}),r.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"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow",result:"effect2_dropShadow"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow",result:"shape"})));function hs(e,t){var a=e.title,n=e.titleId,c=ms(e,["title","titleId"]);return r.createElement("svg",ds({viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,bs,ps)}var js=r.forwardRef(hs),fs=(a.p,a(295)),vs=a.n(fs),Os=R.a.bind(vs.a),gs=function(e){var t=e.className,a=e.htmlFor,r=e.children,c=Object(pe.a)(e,["className","htmlFor","children"]);return Object(n.jsx)("label",Object(i.a)(Object(i.a)({className:R()(Os("label"),t),htmlFor:a},c),{},{children:r}))};gs.defaultProps={className:"",children:null};var xs=gs,_s=a(296),ws=a.n(_s),ys=R.a.bind(ws.a),Ns=function(e){var t=e.className,a=e.label,r=e.name,c=e.checked,s=e.disabled,l=Object(pe.a)(e,["className","label","name","checked","disabled"]);return Object(n.jsxs)("div",{className:R()(ys("checkbox"),t),children:[Object(n.jsx)("input",Object(i.a)(Object(i.a)({type:"checkbox",name:r,id:r,checked:c,disabled:s},l),{},{hidden:!0})),Object(n.jsx)("label",{htmlFor:r,className:ys("checkbox-fake",{disabled:s}),children:Object(n.jsx)(js,{})}),Object(n.jsx)(xs,{htmlFor:r,children:a})]})},ks=Ns;Ns.defaultProps={className:"",disabled:!1};var Es=a(297),Cs=a.n(Es),Ss=R.a.bind(Cs.a),Ls={search:Object(n.jsx)(W,{className:Ss("icon","icon-search")})},Ms=function(e){var t=e.className,a=e.name,r=e.label,c=e.type,s=e.width,l=e.style,o=e.icon,u=Object(pe.a)(e,["className","name","label","type","width","style","icon"]);return Object(n.jsxs)("div",{className:Ss("input-wrapper",t),children:[r&&Object(n.jsx)(xs,{htmlFor:a,children:r}),Object(n.jsxs)("div",{className:Ss("input-inner"),children:[o&&Ls[o],Object(n.jsx)("input",Object(i.a)({className:R()(Ss("input",{"input-with-icon":!!o})),type:c,name:a,id:a,style:Object(i.a)({width:s},l),spellCheck:"false",autoComplete:"false",autoCorrect:"false"},u))]})]})};Ms.defaultProps={className:"",label:null,type:"text",width:200,style:{}};var Ps=Ms,Is=a(298),Ds=a.n(Is),Rs=R.a.bind(Ds.a),Hs=function(e){var t=e.className,a=e.label,r=e.name,c=e.disabled,s=e.appearance,l=Object(pe.a)(e,["className","label","name","disabled","appearance"]),o="circle"===s?Object(n.jsx)("i",{}):Object(n.jsx)(js,{});return Object(n.jsxs)("div",{className:R()(Rs("radio"),t),children:[Object(n.jsx)("input",Object(i.a)(Object(i.a)({type:"radio",id:r,name:r},l),{},{disabled:c,hidden:!0})),Object(n.jsx)("label",{htmlFor:r,className:Rs("radio-fake",{disabled:c},"appearance-".concat(s)),children:o}),a&&Object(n.jsx)(xs,{className:Rs("label"),htmlFor:r,children:a})]})};Hs.defaultProps={className:"",disabled:!1,label:null,appearance:"circle"};var As=Hs,Bs=a(299),Fs=a.n(Bs),zs=R.a.bind(Fs.a),Vs=function(e){var t=e.className,a=e.label,r=e.optionsList,c=e.onChange,s=e.width,l=Object(pe.a)(e,["className","label","optionsList","onChange","width"]);return Object(n.jsxs)("div",{className:R()(zs("select"),t),children:[a&&Object(n.jsx)("span",{className:zs("label"),children:a}),Object(n.jsxs)("div",{className:zs("select-inner"),style:{width:s},children:[Object(n.jsx)("select",Object(i.a)(Object(i.a)({className:zs("select-input"),onChange:c},l),{},{children:r.map((function(e){var t=e.value,a=e.key;return Object(n.jsx)("option",{value:t,children:a},a)}))})),Object(n.jsx)("i",{})]})]})};Vs.defaultProps={className:"",label:null,width:200};var Ws=Vs,Ts=a(300),Us=a.n(Ts),Zs=R.a.bind(Us.a),Gs=function(e){var t=e.className,a=e.name,r=e.label,c=e.width,s=Object(pe.a)(e,["className","name","label","width"]);return Object(n.jsxs)("div",{className:R()(Zs("text-area-wrapper"),t),children:[r&&Object(n.jsx)(xs,{htmlFor:a,children:r}),Object(n.jsx)("textarea",Object(i.a)({className:Zs("text-area"),name:a,id:a,style:{width:c},autoCapitalize:"false",autoComplete:"false",autoCorrect:"false",spellCheck:"false"},s))]})};Gs.defaultProps={className:"",width:400,label:null};var qs=Gs,Ys=a(301),Ks=a.n(Ys),Js=R.a.bind(Ks.a),Qs=function(e){var t=e.title,a=e.className,r=e.children,c=Object(pe.a)(e,["title","className","children"]);return Object(n.jsxs)("form",Object(i.a)(Object(i.a)({className:R()(Js("form"),a),spellCheck:"false",autoCapitalize:"false",autoCorrect:"false",autoComplete:"false"},c),{},{children:[t&&Object(n.jsx)("h2",{className:Js("form-title"),children:t}),r]}))},Xs=function(e){var t=e.title,a=e.className,r=e.children;return Object(n.jsxs)("div",{className:R()(Js("form-section"),a),children:[t&&Object(n.jsx)("h3",{children:t}),r]})};Xs.defaultProps={className:"",title:null,children:null},Qs.defaultProps={className:"",title:null,children:null};var $s=Qs,el={Checkbox:ks,Input:Ps,Radio:As,Select:Ws,TextArea:qs},tl=a(302),al=a.n(tl),nl=R.a.bind(al.a),rl=function(e){var t=e.handleSubmit,a=e.handleCancel,c=Object(r.useState)({action:"promote",target:"",parameters:[]}),s=Object(o.a)(c,2),l=s[0],u=s[1],d=Object(r.useState)({key:"",value:""}),m=Object(o.a)(d,2),b=m[0],p=m[1],h=function(e){return function(){return u((function(t){return Object(i.a)(Object(i.a)({},t),{},{parameters:t.parameters.filter((function(t){return t.id!==e}))})}))}},j=function(e){return function(t){p((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}},f=function(e){return function(t){switch(e){case"action":u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value))}));break;case"target":u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}}};return Object(n.jsxs)($s,{className:nl("deployment-form"),children:[Object(n.jsx)(Xs,{title:"Type",className:nl("deployment-form-row"),children:Object(n.jsxs)("div",{className:nl("deployment-form-radio-group"),children:[Object(n.jsx)(el.Radio,{id:"promote",name:"promote",label:"Promote",value:"promote",checked:"promote"===l.action,onChange:f("action")}),Object(n.jsx)(el.Radio,{id:"rollback",name:"rollback",label:"Rollback",value:"rollback",checked:"rollback"===l.action,onChange:f("action")})]})}),Object(n.jsx)(Xs,{className:nl("deployment-form-row"),title:"Target",children:Object(n.jsx)(el.Input,{autoFocus:"true",name:"production",placeholder:"production",value:l.target,onChange:f("target")})}),Object(n.jsxs)(Xs,{title:"Parameters",className:nl("deployment-form-row"),children:[l.parameters.length?Object(n.jsx)("div",{className:nl("deployment-form-parameters-list"),children:l.parameters.map((function(e){var t=e.key,a=e.id;return Object(n.jsxs)("div",{className:nl("deployment-form-parameters"),children:[Object(n.jsx)("span",{type:"text",placeholder:"key",children:t}),Object(n.jsx)(Oe,{type:"button",onClick:h(a),children:"Remove"})]},a)}))}):null,Object(n.jsxs)("div",{className:nl("deployment-form-parameters-fields"),children:[Object(n.jsx)(el.Input,{placeholder:"key",name:"key",value:b.key,onChange:j("key")}),Object(n.jsx)(el.Input,{placeholder:"value",name:"value",value:b.value,onChange:j("value")}),Object(n.jsx)(Oe,{onClick:function(){b.key&&b.value&&(u((function(e){return Object(i.a)(Object(i.a)({},e),{},{parameters:[].concat(Object(ht.a)(e.parameters),[Object(i.a)(Object(i.a)({},b),{},{id:Date.now()})])})})),p({key:"",value:""}))},children:"+ Add"})]})]}),Object(n.jsxs)(Xs,{className:nl("deployment-form-controls"),children:[Object(n.jsx)(Oe,{type:"button",onClick:function(e){t(l),a()},children:"Deploy"}),Object(n.jsx)(Oe,{type:"button",onClick:a,children:"Cancel"})]})]})};function cl(){return(cl=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}var ll=r.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),il=r.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"});function ol(e,t){var a=e.title,n=e.titleId,c=sl(e,["title","titleId"]);return r.createElement("svg",cl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,ll,il)}var ul=r.forwardRef(ol);a.p;function dl(){return(dl=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}var bl=r.createElement("path",{d:"M6 5V13",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),pl=r.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"}),hl=r.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"}),jl=r.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"});function fl(e,t){var a=e.title,n=e.titleId,c=ml(e,["title","titleId"]);return r.createElement("svg",dl({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,bl,pl,hl,jl)}var vl=r.forwardRef(fl);a.p;function Ol(){return(Ol=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}var xl=r.createElement("path",{d:"M5 9H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),_l=r.createElement("path",{d:"M5 14H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),wl=r.createElement("path",{d:"M10 5L8 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),yl=r.createElement("path",{d:"M16 5L14 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});function Nl(e,t){var a=e.title,n=e.titleId,c=gl(e,["title","titleId"]);return r.createElement("svg",Ol({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,xl,_l,wl,yl)}var kl=r.forwardRef(Nl);a.p;function El(){return(El=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}var Sl=r.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"}),Ll=r.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"}),Ml=r.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"}),Pl=r.createElement("path",{d:"M6 10V19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});function Il(e,t){var a=e.title,n=e.titleId,c=Cl(e,["title","titleId"]);return r.createElement("svg",El({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Sl,Ll,Ml,Pl)}var Dl=r.forwardRef(Il);a.p;function Rl(){return(Rl=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}var Al=r.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"}),Bl=r.createElement("path",{d:"M7 7H7.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});function Fl(e,t){var a=e.title,n=e.titleId,c=Hl(e,["title","titleId"]);return r.createElement("svg",Rl({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Al,Bl)}var zl=r.forwardRef(Fl);a.p;function Vl(){return(Vl=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}var Tl=r.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"}),Ul=r.createElement("path",{d:"M4.27002 7.95999L12 12.01L19.73 7.95999",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),Zl=r.createElement("path",{d:"M12 20.08V12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});function Gl(e,t){var a=e.title,n=e.titleId,c=Wl(e,["title","titleId"]);return r.createElement("svg",Vl({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Tl,Ul,Zl)}var ql=r.forwardRef(Gl),Yl=(a.p,a(303)),Kl=a.n(Yl),Jl=R.a.bind(Kl.a),Ql=function(e){var t=e.className,a=e.event,r=e.commit,c=e.branch,s=e.refs,l=e.environment;switch(a){case"pull_request":return Object(n.jsx)(ei,{className:t,pr:s});case"tag":return Object(n.jsx)(ti,{className:t,tag:s});case"promote":case"rollback":return Object(n.jsx)(ai,{className:t,environment:l});case"cron":case"custom":case"push":return Object(n.jsx)($l,{className:t,branch:c});default:return Object(n.jsx)(Xl,{className:t,commit:r})}},Xl=function(e){var t=e.className,a=e.commit;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(ul,{}),a]})},$l=function(e){var t=e.className,a=e.branch;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(vl,{}),a]})},ei=function(e){var t,a=e.className,r=e.pr;return Object(n.jsxs)("div",{className:Jl("root",a||""),children:[Object(n.jsx)(Dl,{}),Object(n.jsx)("sub",{children:"#"}),(t=r,null===t||void 0===t?void 0:t.match(/\d+/g))]})},ti=function(e){var t=e.className,a=e.tag;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(zl,{}),ci(a)]})},ai=function(e){var t=e.className,a=e.environment;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(ql,{}),a]})},ni=function(e){var t=e.className,a=e.name;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(ar,{}),a]})},ri=function(e){var t=e.className,a=e.build;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(kl,{}),a]})};function ci(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 si=a(304),li=a.n(si),ii=R.a.bind(li.a);function oi(e,t){var a=t.namespace,r=t.name,c=t.refs;return!0===t.deeplink?Object(n.jsx)("a",{href:"/link/".concat(a,"/").concat(r,"/tree/").concat(c),target:"_blank",rel:"noreferrer",children:e}):e}function ui(e,t){var a=t.namespace,r=t.name,c=t.commit;return!0===t.deeplink?Object(n.jsx)("a",{href:"/link/".concat(a,"/").concat(r,"/commit/").concat(c),target:"_blank",rel:"noreferrer",children:e}):e}function di(e,t){var a=t.namespace,r=t.name,c=t.number;return!0===t.deeplink?Object(n.jsx)("a",{href:"/".concat(a,"/").concat(r,"/").concat(c),children:e}):e}var mi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.commit,s=e.branch,l=e.namespace,i=e.name,o=e.deeplink;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"pushed"}),ui(Object(n.jsx)(Xl,{className:ii("label"),commit:c.substr(0,8)}),{namespace:l,name:i,commit:c,deeplink:o})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"to"}),oi(Object(n.jsx)($l,{className:ii("label"),branch:s}),{namespace:l,name:i,commit:c,deeplink:o})]})]})},bi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.branch,s=e.action,l=e.refs,i=e.namespace,o=e.name,u=e.commit,d=e.deeplink;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"opened"===s?"opened":"synchronized"}),Object(n.jsx)("span",{className:ii("info"),children:"pull request"}),oi(Object(n.jsx)(ei,{className:ii("label"),pr:l}),{namespace:i,name:o,commit:u,deeplink:d})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"to"}),oi(Object(n.jsx)($l,{className:ii("label"),branch:c}),{namespace:i,name:o,commit:u,deeplink:d})]})]})},pi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.refs,s=e.namespace,l=e.name,i=e.commit,o=e.deeplink;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"created"}),oi(Object(n.jsx)(ti,{className:ii("label"),tag:c}),{namespace:s,name:l,commit:i,deeplink:o})]})]})},hi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.namespace,s=e.name,l=e.commit,i=e.deeplink,o=e.parent,u=e.target;return Object(n.jsxs)("div",{className:ii("activity",t||""),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"promoted build"}),di(Object(n.jsx)(ri,{className:ii("label"),build:o}),{namespace:c,name:s,commit:l,deeplink:i})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"to"}),Object(n.jsx)(ai,{className:ii("label"),environment:u})]})]})},ji=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.namespace,s=e.name,l=e.commit,i=e.deeplink,o=e.target,u=e.parent;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"rolled back"}),Object(n.jsx)(ai,{className:ii("label"),environment:o})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"to build"}),di(Object(n.jsx)(ri,{className:ii("label"),build:u}),{namespace:c,name:s,commit:l,deeplink:i})]})]})},fi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.cron;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsx)("div",{className:ii("chunk"),"data-type":"chunk",children:Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")})}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"executed scheduled task"}),Object(n.jsx)(ni,{className:ii("label"),name:c})]})]})},vi=function(e){switch(e.event){case"pull_request":return bi(e);case"tag":return pi(e);case"promote":return hi(e);case"rollback":return ji(e);case"cron":return fi(e);default:return mi(e)}};vi.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},mi.defaultProps={className:"",commit:void 0,branch:void 0},bi.defaultProps={className:"",commit:void 0,branch:void 0},pi.defaultProps={className:"",commit:void 0},hi.defaultProps={className:"",commit:void 0},ji.defaultProps={className:"",commit:void 0},fi.defaultProps={className:""};var Oi=vi,gi=a(305),xi=a.n(gi),_i=R.a.bind(xi.a);function wi(e){var t=e.className;return Object(n.jsx)("nav",{className:_i("breadcrumb",t||""),children:e.children})}function yi(e){return Object(n.jsx)("div",{className:_i("breadcrumb-item"),children:e.href?Object(n.jsx)(b.b,{to:e.href,children:e.text}):e.text})}function Ni(e){return Object(n.jsx)("div",{className:_i("breadcrumb-spacer"),children:Object(n.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(n.jsx)("polyline",{points:"9 18 15 12 9 6"})})})}function ki(){return(ki=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}var Ci=r.createElement("circle",{cx:12,cy:12,r:1}),Si=r.createElement("circle",{cx:12,cy:5,r:1}),Li=r.createElement("circle",{cx:12,cy:19,r:1});function Mi(e,t){var a=e.title,n=e.titleId,c=Ei(e,["title","titleId"]);return r.createElement("svg",ki({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":n},c),a?r.createElement("title",{id:n},a):null,Ci,Si,Li)}var Pi=r.forwardRef(Mi),Ii=(a.p,a(306)),Di=a.n(Ii),Ri=R.a.bind(Di.a),Hi=function(e,t){return e.map((function(e,a){return Object(r.createElement)("div",Object(i.a)(Object(i.a)({className:Ri("menu-item")},t(e.value)),{},{key:a,role:"menuitem",tabIndex:"-1","data-value":e.value}),e.content)}))},Ai=function(e){var t=e.id,a=e.className,c=e.isMenuOpen,s=e.hideMenu,l=e.menuItems,i=e.onMenuItemSelect,o=e.menuAlignment,u=Object(r.useRef)();return Object(r.useEffect)((function(){c&&u.current.firstElementChild.focus()}),[c]),Object(n.jsx)("div",{className:Ri("menu","menu-".concat(o),a),role:"menu",tabIndex:"-1",hidden:!c,"aria-hidden":!c,id:t,ref:u,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(),s()}},children:Hi(l,(function(e){return{onClick:function(t){i(e,t),s()},onKeyDown:function(t){"Enter"===t.key&&(t.preventDefault(),i(e,t),s()),"Tab"===t.key&&(t.preventDefault(),s())}}}))})},Bi=function(e){var t=e.id,a=e.className,c=e.menuItems,s=e.onMenuItemSelect,l=e.disabled,i=e.menuAlignment,u=Object(r.useState)(!1),d=Object(o.a)(u,2),m=d[0],b=d[1],p=Object(r.useState)(!1),h=Object(o.a)(p,2),j=h[0],f=h[1],v=Object(r.useRef)(),O=Object(r.useRef)();ke(v,(function(){return b(!1)}));var g=function(){var e;b(!1),null===(e=O.current)||void 0===e||e.focus()},x=function(){m?g():(f(!1),b(!0))};return Object(n.jsx)("div",{className:Ri("wrapper",a),ref:v,children:Object(n.jsxs)("div",{className:Ri("wrapper-menu"),children:[Object(n.jsx)("button",{className:Ri("btn-menu-controller",{"is-open":m,"is-focused":j}),type:"button",disabled:l,"aria-haspopup":"menu","aria-expanded":m||void 0,ref:O,onFocus:function(e){f(!0)},onBlur:function(e){f(!1)},onClick:x,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),x())},children:Object(n.jsx)(Pi,{})}),Object(n.jsx)(Ai,{menuItems:c,isMenuOpen:m,hideMenu:g,id:t,menuAlignment:i,onMenuItemSelect:s})]})})};function Fi(){return(Fi=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}var Vi=r.createElement("rect",{x:3,y:4,width:18,height:18,rx:2,ry:2}),Wi=r.createElement("line",{x1:16,y1:2,x2:16,y2:6}),Ti=r.createElement("line",{x1:8,y1:2,x2:8,y2:6}),Ui=r.createElement("line",{x1:3,y1:10,x2:21,y2:10});function Zi(e,t){var a=e.title,n=e.titleId,c=zi(e,["title","titleId"]);return r.createElement("svg",Fi({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":n},c),a?r.createElement("title",{id:n},a):null,Vi,Wi,Ti,Ui)}var Gi=r.forwardRef(Zi),qi=(a.p,a(307)),Yi=a.n(qi),Ki=R.a.bind(Yi.a),Ji=function(e){var t=e.namespace,a=e.name,r=e.build,c=e.data,s=e.handleCancelClick,l=e.handleMenuItemSelect,i=e.handleViewModeClick,o=e.isGraphView,u=e.userIsAdminOrHasWritePerm,d=null;return c&&"blocked"!==c.status&&(["pending","running"].includes(c.status)?d=Object(n.jsx)(Oe,{className:Ki("cancel-button","controls"),onClick:s,children:"Cancel"}):u&&(d=Object(n.jsx)(Bi,{id:"build-actions",className:Ki("controls"),menuItems:[{value:"restart",content:"Restart"},{value:"promote",content:"Promote"},{value:"debug",content:"Debug"}],menuAlignment:"right",onMenuItemSelect:l}))),Object(n.jsxs)("header",{className:Ki("header"),children:[Object(n.jsx)("div",{className:Ki("breadcrumbs"),children:Object(n.jsxs)(wi,{className:Ki("breadcrumbs-inner"),children:[Object(n.jsx)(yi,{href:"/".concat(t,"/").concat(a),text:"Builds"}),Object(n.jsx)(Ni,{}),Object(n.jsx)(yi,{text:"#".concat(r)}),Object(n.jsx)(Ni,{})]})}),Object(n.jsxs)("div",{className:Ki("togglers"),children:[Object(n.jsx)(Oe,{className:Ki({active:!o}),onClick:i("log"),children:"Log View"}),Object(n.jsx)(Oe,{className:Ki({active:o}),onClick:i("graph"),children:"Graph View"})]}),c?Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:Ki("meta"),children:[c.started>0&&Object(n.jsx)(dr,{started:c.started,finished:c.finished,withLetters:!0,withIcon:!0}),Object(n.jsxs)("div",{className:Ki("date"),children:[Object(n.jsx)(Gi,{}),De({date:c.created})]}),d]}),d]}):null,Object(n.jsx)("div",{className:Ki("title"),children:Object(n.jsxs)("h1",{children:[Object(n.jsx)(b.b,{to:"/".concat(t,"/").concat(a),children:Object(n.jsx)(Ge,{})}),a]})}),c?Object(n.jsxs)("div",{className:Ki("activity"),children:[Object(n.jsx)(xa,{status:c.status,className:Ki("status")}),Object(n.jsx)("p",{title:c.title||c.message,className:Ki("message"),children:c.title||c.message}),Object(n.jsx)(Oi,{namespace:t,name:a,number:c.number,event:c.event,action:c.action,actor:c.sender,avatar:c.author_avatar,commit:c.after,branch:c.target,target:c.deploy_to,refs:c.ref,cron:c.cron,parent:r.parent,deeplink:!0})]}):null]})};Ji.defaultProps={data:void 0,userIsAdminOrHasWritePerm:!1};var Qi=Ji,Xi=R.a.bind(us.a),$i="error",eo="resolved",to="resolved_blocked";function ao(e){var t=e.user,a=e.userIsAdminOrHasWritePerm,c=Object(p.i)(),s=c.namespace,l=c.name,u=c.build,b=c.stage,h=void 0===b?1:b,j=c.step,f=void 0===j?1:j;ge("Build #".concat(u,".").concat(h,".").concat(f," - ").concat(s,"/").concat(l));var O=Object(p.g)(),g=function(e){var t=e.namespace,a=e.name,n=e.build;return jt("/api/repos/".concat(t,"/").concat(a,"/builds/").concat(n))}({namespace:s,name:l,build:u}),x=g.data,_=g.mutate,w=g.isError,y=g.isLoading,N=Object(r.useState)(eo),k=Object(o.a)(N,2),E=k[0],C=k[1],S=Ne("isBuildPageInGraphMode",!1),L=Object(o.a)(S,2),M=L[0],P=L[1],I=Pc(),D=Object(o.a)(I,2),R=D[0],H=D[1],A=Le().showError;Object(r.useLayoutEffect)((function(){var e,t;if(w||(null===x||void 0===x?void 0:x.error)||x&&(null!==(e=null===x||void 0===x||null===(t=x.stages)||void 0===t?void 0:t.length)&&void 0!==e?e:0)=0})).reverse()}),[t]),l=Object(p.i)(),i=l.namespace,o=l.name,u=Object(p.g)(),d=Object(r.useCallback)((function(e){var t=e.number;return u.push("/".concat(i,"/").concat(o,"/").concat(t))}),[i,o,u]),m=Object(r.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(no.a)(new Date(1e3*s),new Date,{addSuffix:!0}).split(" "),i=Object(uo.a)(l);return{median:c,latest:{number:i[0],units:i.slice(1).join(" "),status:a[a.length-1].status}}}(s)}),[s]),b=m.median,h=m.latest;return Object(n.jsxs)("div",{className:go("wrapper",c),children:[Object(n.jsx)("div",{className:go("info"),children:Object(n.jsxs)("ul",{className:go("summary"),children:[Object(n.jsxs)("li",{className:go("item"),children:[Object(n.jsx)("span",{className:go("item-heading"),children:"Total Builds"}),Object(n.jsx)("span",{className:go("item-content"),children:Object(n.jsx)("span",{children:a})})]}),Object(n.jsxs)("li",{className:go("item"),children:[Object(n.jsx)("span",{className:go("item-heading"),children:"Median Build"}),Object(n.jsx)("span",{className:go("item-content"),children:Object(n.jsxs)("span",{children:[b,Object(n.jsx)("sub",{children:b>1?"minutes":"minute"})]})})]}),Object(n.jsxs)("li",{className:go("item"),children:[Object(n.jsx)("span",{className:go("item-heading"),children:"Last Build"}),Object(n.jsx)("span",{className:go("item-content"),children:Object(n.jsxs)("span",{children:[h.number,Object(n.jsx)("sub",{children:h.units})]})})]}),Object(n.jsxs)("li",{className:go("item"),children:[Object(n.jsx)("span",{className:go("item-heading"),children:"Last Status"}),Object(n.jsx)("span",{className:go("item-content"),children:Object(n.jsx)("span",{className:go("status","status-".concat(h.status)),children:h.status})})]})]})}),Object(n.jsx)("div",{className:go("bar-wrapper"),children:Object(n.jsx)(fo,{data:s,height:170,barsShown:50,onClick:d})})]})};xo.defaultProps={className:void 0};var _o=xo,wo=R.a.bind(oo.a);function yo(e){var t=e.repo,a=t.active,c=Object(p.j)(),s=c.params,l=s.namespace,i=s.name,o=c.url,u=Object(p.g)();Object(r.useLayoutEffect)((function(){a||u.replace("/".concat(l,"/").concat(i,"/settings"))}),[a,u,l,i]);var d=function(e){var t,a=e.namespace,n=e.name,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=function(e,t){var r=e+1;return t&&t.length<50?null:"/api/repos/".concat(a,"/").concat(n,"/builds?page=").concat(r,"&per_page=50")},s=Object(j.d)(c,r),l=s.data,i=s.size,o=s.setSize,u=s.error,d=s.mutate,m=null===l||void 0===l?void 0:l.some((function(e){return!e.length||e.length<50}));return{isLoading:!u&&!l,data:(t=[]).concat.apply(t,Object(ht.a)(l||[])),mutate:d,size:i,setSize:o,isEndReached:m,isError:u}}({namespace:l,name:i}),m=d.data,b=d.isError,h=d.isEndReached,f=d.isLoading,v=d.size,O=d.setSize;ge("".concat(l,"/").concat(i)),b&&"Not Found"===b.message&&u.push("/404");var g=null;return g=f?null:m.length?Object(n.jsxs)("section",{className:wo("wrapper"),children:[Object(n.jsx)("h2",{className:wo("section-title"),children:"Summary"}),Object(n.jsx)(_o,{data:m,totalBuildsCounter:null===t||void 0===t?void 0:t.counter,className:wo("summary")}),Object(n.jsx)("h2",{className:wo("section-title"),children:"Executions"}),Object(n.jsx)(lo,{data:m,url:o}),f||h||!m.length?null:Object(n.jsx)("div",{children:Object(n.jsx)(Oe,{className:wo("btn","btn-show-more"),onClick:function(){return O(v+1)},children:"Show more \u2193"})})]}):Object(n.jsx)(Ba,{title:"Your Build List is Empty.",message:"Press the New Build button to execute your first build pipeline."}),Object(n.jsx)(n.Fragment,{children:g})}var No=a(313),ko=a.n(No),Eo=R.a.bind(ko.a);function Co(e){var t=e.repo.active,a=Object(p.i)(),c=a.namespace,s=a.name,l=Object(p.g)();Object(r.useLayoutEffect)((function(){t||l.replace("/".concat(c,"/").concat(s,"/settings"))}),[t,l,c,s]);var i=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a,"/builds/deployments"))}({namespace:c,name:s}),o=i.data,u=null;return u=i.isLoading?null:o.length?Object(n.jsx)("section",{className:Eo("wrapper"),children:Object(n.jsx)("div",{className:Eo("inner"),children:Object(n.jsx)(So,{builds:o})})}):Object(n.jsx)(Ba,{title:"Your Deployment List is Empty.",message:"This list will be populated when you promote or rollback a build."}),Object(n.jsx)(n.Fragment,{children:u})}function So(e){return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:Eo("deployment-list-header"),children:[Object(n.jsx)("div",{}),Object(n.jsx)("div",{children:"Environment"}),Object(n.jsx)("div",{children:"Commit"}),Object(n.jsx)("div",{children:"Committer"}),Object(n.jsx)("div",{children:"Message"})]}),Object(n.jsx)("div",{className:Eo("deployment-list"),children:e.builds.map((function(e){return Object(n.jsx)(b.b,{to:"".concat(e.number),children:Object(n.jsx)(Lo,{build:e},e.build_id)},e.build_id)}))})]})}function Lo(e){var t=e.build;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:Eo("deployment-list-item"),children:[Object(n.jsx)("div",{children:Object(n.jsx)(xa,{status:t.status})}),Object(n.jsx)("div",{className:Eo("target"),children:t.deploy_to}),Object(n.jsx)("div",{className:Eo("commit"),children:t.after.slice(0,8)}),Object(n.jsxs)("div",{children:[Object(n.jsx)(be,{className:Eo("avatar"),path:t.author_avatar,alt:t.author_login,text:t.author_login}),Object(n.jsx)("span",{children:t.author_login})]}),Object(n.jsx)("div",{className:Eo("message"),children:Object(n.jsx)("span",{children:t.message})})]})})}Co.propTypes={match:Wt.a.shape({params:Wt.a.shape({namespace:Wt.a.string.isRequired,name:Wt.a.string.isRequired}).isRequired}).isRequired};var Mo=a(314),Po=a.n(Mo),Io=R.a.bind(Po.a),Do=function(e){var t=e.repos;return Object(n.jsx)("div",{className:Io("list"),children:Object(n.jsx)("div",{className:Io("body"),children:!!(null===t||void 0===t?void 0:t.length)&&t.map((function(e){var t,a=e.namespace,r=e.name,c=e.id,s=e.build,l=e.active,i=e.slug;return Object(n.jsx)(b.b,{to:"/".concat(a,"/").concat(r).concat(l?"":"/settings"),children:Object(n.jsxs)("div",{className:Io("item",s?null:"inactive"),children:[Object(n.jsxs)("h3",{className:Io("title"),children:[Object(n.jsx)(xa,{status:null!==(t=null===s||void 0===s?void 0:s.status)&&void 0!==t?t:"inactive"}),Object(n.jsx)("span",{children:i})]}),Object(n.jsxs)("div",{className:Io("detail"),children:[Object(n.jsx)("div",{className:Io("spacer")}),Object(n.jsxs)("div",{className:Io("commit"),children:[Object(n.jsxs)("strong",{children:[Object(n.jsx)(ul,{}),null===s||void 0===s?void 0:s.after.slice(0,8)]}),Object(n.jsx)("span",{children:(null===s||void 0===s?void 0:s.title)||(null===s||void 0===s?void 0:s.message)})]}),s&&Object(n.jsx)("div",{className:Io("date"),children:Object(no.a)(new Date(1e3*s.created),new Date,{addSuffix:!0})})]})]})},c)}))})})};Do.defaultProps={repos:[]};var Ro=Do,Ho=a(315),Ao=a.n(Ho),Bo=R.a.bind(Ao.a),Fo=function(e){var t=e.repos;return Object(n.jsx)("div",{className:Bo("cards"),children:!!(null===t||void 0===t?void 0:t.length)&&e.repos.map((function(e){var t=e.namespace,a=e.name,r=e.build,c=e.id;return Object(n.jsx)(b.b,{to:"/".concat(t,"/").concat(a),children:Object(n.jsxs)("div",{className:Bo("card"),children:[Object(n.jsxs)("div",{className:Bo("header"),children:[Object(n.jsxs)("h3",{className:Bo("title"),children:[Object(n.jsx)("span",{className:Bo("namespace"),children:t}),Object(n.jsx)("span",{children:a})]}),Object(n.jsx)(xa,{status:null===r||void 0===r?void 0:r.status,className:Bo("status")})]}),Object(n.jsxs)("div",{className:Bo("body"),children:[Object(n.jsx)(Ql,{event:null===r||void 0===r?void 0:r.event,commit:null===r||void 0===r?void 0:r.after,branch:null===r||void 0===r?void 0:r.target,environment:null===r||void 0===r?void 0:r.deploy_to,refs:null===r||void 0===r?void 0:r.ref}),Object(n.jsx)("span",{children:(null===r||void 0===r?void 0:r.title)||(null===r||void 0===r?void 0:r.message)})]}),Object(n.jsxs)("div",{className:Bo("footer"),children:[Object(n.jsx)("div",{children:Object(n.jsx)(be,{className:Bo("avatar"),path:null===r||void 0===r?void 0:r.author_avatar,alt:null===r||void 0===r?void 0:r.sender,text:null===r||void 0===r?void 0:r.sender})}),r&&Object(n.jsx)("div",{children:Object(no.a)(new Date(1e3*r.created),new Date,{addSuffix:!0})})]})]})},c)}))})};Fo.defaultProps={repos:[]};var zo=Fo,Vo=a(316),Wo=a.n(Vo),To=R.a.bind(Wo.a),Uo=function(e){var t=e.id,a=e.className,r=e.checked,c=e.onChange,s=e.children,l=e.disabled;return Object(n.jsxs)("div",{className:To("wrapper",a),children:[Object(n.jsx)("input",{className:To("switch-input"),id:t,disabled:l,checked:r,type:"checkbox",onChange:function(e){var t=e.target.checked;return c(t)}}),Object(n.jsx)("label",{className:To("switch-label"),htmlFor:t,children:Object(n.jsx)("i",{className:To("switch-toggler")})}),s&&Object(n.jsx)("span",{className:To("switch-label-fake"),children:s})]})},Zo=Uo;Uo.defaultProps={checked:!1,children:void 0,disabled:!1,className:""};var Go=a(317),qo=a.n(Go),Yo=R.a.bind(qo.a);function Ko(e){e.user;var t=Object(r.useContext)(mt),a=Object(o.a)(t,2),c=a[0],s=a[1],l=Object(r.useState)(!1),u=Object(o.a)(l,2),b=u[0],p=u[1],h=Ne("home_show_active_only_repos",!1),j=Object(o.a)(h,2),f=j[0],v=j[1],O=Object(r.useState)(c.isAccSyncing),g=Object(o.a)(O,2),x=g[0],_=g[1],w=Le().showError,y=function(e){var t=Object(r.useState)(!1),a=Object(o.a)(t,2),n=a[0],c=a[1],s=Object(r.useState)(null),l=Object(o.a)(s,2),i=l[0],u=l[1],b=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:return e.prev=0,e.next=3,Ie("/api/user/repos?async=true",{method:"POST"});case 3:c(!0),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),u(e.t0),c(!1);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){e?b():c(!1)}),[e,c]),{hasSyncReqFiredOff:n,isError:i}}(x),N=y.hasSyncReqFiredOff,k=y.isError,E=yt({withPolling:N}),C=E.isSynced,S=E.isSyncing,L=E.isError,M=ze(),P=M.repos,I=M.error,D=M.reload,R=M.reloadOnce,H=P?Object.values(P):void 0,A=!H&&!I;Object(r.useEffect)((function(){return R()}),[R]),ge();var B=Object(r.useState)(""),F=Object(o.a)(B,2),z=F[0],V=F[1],W=Object(r.useMemo)((function(){var e;return null!==(e=null===H||void 0===H?void 0:H.slice(0).filter((function(e){return f?!!e.build:!!e})).filter((function(e){return e.slug.indexOf(z)>-1})))&&void 0!==e?e:[]}),[H,z,f]),T=Object(r.useMemo)((function(){var e;return null!==(e=W.slice(0).sort(He).slice(0,b?W.length:50))&&void 0!==e?e:[]}),[W,b]),U=Object(r.useMemo)((function(){var e,t;return null!==(e=null===H||void 0===H||null===(t=H.slice(0).sort(Ae).filter((function(e){return!!e.build})))||void 0===t?void 0:t.slice(0,6))&&void 0!==e?e:[]}),[H]);Object(r.useEffect)((function(){(k||L)&&(s(Object(i.a)(Object(i.a)({},c),{},{isAccSyncing:!1})),w("Sync error has occured, please, try again"),console.error("Sync error:",(null===k||void 0===k?void 0:k.message)||(null===L||void 0===L?void 0:L.message)))}),[k,L,w,c,s]),Object(r.useEffect)((function(){C&&(_(!1),D(),c.isAccSyncing&&s(Object(i.a)(Object(i.a)({},c),{},{isAccSyncing:!1})))}),[C,c,s,D]);var Z=null;return Z=A?null:(null===H||void 0===H?void 0:H.length)?Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:Yo("subheader"),children:[Object(n.jsx)("h2",{className:Yo("section-title"),children:"Repositories"}),Object(n.jsxs)("div",{className:Yo("actions"),children:[Object(n.jsx)(Zo,{id:"active-switch",checked:f,onChange:function(e){return v(e)},children:"Active Only"}),Object(n.jsx)(Ps,{placeholder:"Filter \u2026",icon:"search",className:Yo("search"),width:300,name:"repo-search",onChange:function(e){return V(e.target.value.trim())}})]})]}),Object(n.jsx)(Ro,{repos:T}),!b&&T.length>=50&&Object(n.jsx)(Oe,{className:Yo("btn","btn-show-more"),onClick:function(){return p(!0)},children:"Show more \u2193"})]}):Object(n.jsx)(Ba,{title:"Your Repository List is Empty.",message:"Drone automatically syncs with your version control system to display your repositories."}),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("header",{className:Yo("header"),children:[Object(n.jsx)("h1",{children:"Dashboard"}),Object(n.jsxs)("button",{type:"button",className:Yo("btn","btn-sync"),disabled:S||N,onClick:function(){return _(!0)},children:[(S||N)&&Object(n.jsx)("span",{className:Yo("btn-sync-spinner")}),S||N?"Syncing":"Sync"]})]}),Object(n.jsxs)("section",{className:Yo("wrapper"),children:[!!U.length&&Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("h2",{className:Yo("section-title","section-title-recent"),children:"Recent Activity"}),Object(n.jsx)(zo,{repos:U})]}),Z]})]})}function Jo(){return(Jo=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}var Xo=r.createElement("defs",null,r.createElement("style",null,".cls-1{fill:#22222A}")),$o=r.createElement("g",{id:"Landing"},r.createElement("g",{id:"logos"},r.createElement("g",{id:"drone-logo-back-with-text"},r.createElement("g",{id:"Group-4"},r.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"}),r.createElement("g",{id:"Group-3"},r.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"})))))),eu=r.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"}),tu=r.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"});function au(e,t){var a=e.title,n=e.titleId,c=Qo(e,["title","titleId"]);return r.createElement("svg",Jo({xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 86.62 27",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Xo,$o,eu,tu)}var nu=r.forwardRef(au);a.p;function ru(){return(ru=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}var su=r.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"),lu=r.createElement("g",{id:"Background",className:"st0"},r.createElement("rect",{className:"st1",width:2430.2,height:1721.2})),iu=r.createElement("g",{id:"Grid",className:"st0"},r.createElement("g",{className:"st2"},r.createElement("rect",{className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:1434.3,className:"st3",width:404.2,height:286.9}))),ou=r.createElement("g",{id:"Margin",className:"st0"},r.createElement("g",{className:"st4"},r.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 "}))),uu=r.createElement("line",{className:"st6",x1:207.9,y1:283,x2:207.9,y2:252.9}),du=r.createElement("path",{className:"st6",d:"M1894.6,854.1v628.1h127.6"}),mu=r.createElement("path",{className:"st6",d:"M1616.7,860.6V0.6"}),bu=r.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"}),pu=r.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"}),hu=r.createElement("path",{className:"st7",d:"M1361,1015.5v56.2"}),ju=r.createElement("path",{className:"st7",d:"M1065.5,1015.5v56.2"}),fu=r.createElement("path",{className:"st7",d:"M1379.4,1015.5v41.1"}),vu=r.createElement("path",{className:"st7",d:"M1048.1,1015.5v41.1"}),Ou=r.createElement("path",{className:"st6",d:"M1239,1032.3h-54.5l-12.9,31.8h80.3L1239,1032.3z"}),gu=r.createElement("path",{className:"st6",d:"M0,1314.1h810.6v407.1"}),xu=r.createElement("path",{className:"st6",d:"M1894.6,855.1h-277.9v459"}),_u=r.createElement("path",{className:"st8",d:"M1053.7,855.1h-244"}),wu=r.createElement("path",{className:"st8",d:"M809.7,855.1V1314h807.1V855.1c-81.6,0-163.2,0-244.9,0"}),yu=r.createElement("path",{className:"st6",d:"M1029.7,740.6h-27.4"}),Nu=r.createElement("path",{className:"st6",d:"M1016,726.9v27.4"}),ku=r.createElement("path",{className:"st6",d:"M1511.4,534H1484"}),Eu=r.createElement("path",{className:"st6",d:"M1497.7,520.4v27.4"}),Cu=r.createElement("path",{className:"st9",d:"M1420.1,640.3h-27.4"}),Su=r.createElement("path",{className:"st9",d:"M1406.4,626.6V654"}),Lu=r.createElement("path",{className:"st7",d:"M1378.3,484.5h-27.4"}),Mu=r.createElement("path",{className:"st7",d:"M1364.6,470.8v27.4"}),Pu=r.createElement("path",{className:"st6",d:"M1333.5,373h-27.4"}),Iu=r.createElement("path",{className:"st6",d:"M1319.8,359.3v27.4"}),Du=r.createElement("path",{className:"st9",d:"M932.3,601.3h-27.4"}),Ru=r.createElement("path",{className:"st9",d:"M918.7,587.6V615"}),Hu=r.createElement("path",{className:"st7",d:"M951.6,370.1h-27.4"}),Au=r.createElement("path",{className:"st7",d:"M937.9,356.4v27.4"}),Bu=r.createElement("path",{className:"st7",d:"M1491.6,395.6h-27.4"}),Fu=r.createElement("path",{className:"st7",d:"M1478,381.9v27.4"}),zu=r.createElement("path",{className:"st9",d:"M1142,403.6h-27.4"}),Vu=r.createElement("path",{className:"st9",d:"M1128.3,389.9v27.4"}),Wu=r.createElement("path",{className:"st7",d:"M1081.8,616.4h-27.4"}),Tu=r.createElement("path",{className:"st7",d:"M1068.1,602.7V630"}),Uu=r.createElement("path",{className:"st6",d:"M1060.2,481.1h-27.4"}),Zu=r.createElement("path",{className:"st6",d:"M1046.5,467.4v27.4"}),Gu=r.createElement("g",null,r.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"}),r.createElement("path",{className:"st7",d:"M1806.2,514.5l-15.8,21.8l15.8,21.8"}),r.createElement("path",{className:"st7",d:"M1835.4,559l15.8-21.8l-15.8-21.8"}),r.createElement("path",{className:"st7",d:"M1829.5,515.2l-16.4,43.4"}),r.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"})),qu=r.createElement("path",{className:"st6",d:"M809.7,855.1V249.4H405.9"}),Yu=r.createElement("path",{className:"st6",d:"M1260.1,1085.9l60.3,135.4"}),Ku=r.createElement("path",{className:"st7",d:"M1255.2,1119.2l36.2,95.8"}),Ju=r.createElement("path",{className:"st7",d:"M1174.8,1106.2l-42.2,93.3"}),Qu=r.createElement("path",{className:"st6",d:"M1164.6,1087.3l-68,134.6"}),Xu=r.createElement("path",{className:"st6",d:"M1326,842.1c46.5,0,84.3,37.7,84.3,84.3v63.5H1326V842.1z"}),$u=r.createElement("path",{className:"st6",d:"M1099.1,842.1c-46.5,0-84.3,37.7-84.3,84.3v63.5h84.3V842.1z"}),ed=r.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"}),td=r.createElement("g",null,r.createElement("circle",{className:"st6",cx:1213.6,cy:689.5,r:50.9}),r.createElement("circle",{className:"st6",cx:1213.6,cy:689.5,r:62.9})),ad=r.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"}),nd=r.createElement("defs",null,r.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})),rd=r.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"}),cd=r.createElement("defs",null,r.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})),sd=r.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"}),ld=r.createElement("defs",null,r.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})),id=r.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"}),od=r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.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"}),r.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"})),r.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"}),r.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"}),r.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"}),r.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"})),r.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"})),ud=r.createElement("g",null,r.createElement("g",null,r.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"}),r.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"}),r.createElement("path",{className:"st6",d:"M679.7,1171.8l7.1,8.8l17.8-17.8"})),r.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"}),r.createElement("line",{className:"st15",x1:690.4,y1:1313.4,x2:690.4,y2:1228.4})),dd=r.createElement("g",null,r.createElement("line",{className:"st15",x1:132.6,y1:1313.4,x2:132.6,y2:1198.7})),md=r.createElement("g",null,r.createElement("g",{className:"st16"},r.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"})),r.createElement("g",{className:"st18"},r.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"})),r.createElement("g",null,r.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"})),r.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"}),r.createElement("line",{className:"st15",x1:412.3,y1:1313.4,x2:412.3,y2:1228.4})),bd=r.createElement("g",null,r.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}),r.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"})),pd=r.createElement("line",{className:"st6",x1:1325.7,y1:855.8,x2:1305.1,y2:855.8}),hd=r.createElement("line",{className:"st6",x1:1119.3,y1:855.8,x2:1098.7,y2:855.8}),jd=r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.createElement("line",{className:"st19",x1:2281.2,y1:970.6,x2:2035.3,y2:970.6}))))),r.createElement("g",null,r.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}),r.createElement("rect",{x:2035.3,y:957.6,className:"st6",width:246,height:175.3})),r.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 "}))),fd=r.createElement("g",null,r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"})),vd=r.createElement("g",null,r.createElement("circle",{className:"st21",cx:571.9,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:571.9,cy:1598.6,r:11.2}),r.createElement("circle",{className:"st21",cx:571.9,cy:1432.5,r:11.2}),r.createElement("circle",{className:"st21",cx:492.6,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:492.6,cy:1598.6,r:11.2}),r.createElement("circle",{className:"st21",cx:492.6,cy:1432.5,r:11.2}),r.createElement("circle",{className:"st21",cx:410.8,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:324,cy:1601,r:11.2}),r.createElement("circle",{className:"st21",cx:324,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:237.2,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:237.2,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:237.2,cy:1598.6,r:11.2}),r.createElement("circle",{className:"st21",cx:324,cy:1432.5,r:11.2}),r.createElement("circle",{className:"st21",cx:410.8,cy:1598.6,r:11.2}),r.createElement("circle",{className:"st21",cx:410.8,cy:1432.5,r:11.2}),r.createElement("circle",{className:"st21",cx:237.2,cy:1432.5,r:11.2}),r.createElement("line",{className:"st21",x1:571.9,y1:1432.5,x2:500,y2:1432.5}),r.createElement("line",{className:"st21",x1:490.1,y1:1516.7,x2:573.2,y2:1599.8}),r.createElement("line",{className:"st21",x1:410.8,y1:1598.6,x2:569.5,y2:1598.6}),r.createElement("line",{className:"st21",x1:410.8,y1:1514.3,x2:324,y2:1601})),Od=r.createElement("g",null,r.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}),r.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"})),gd=r.createElement("g",null,r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"})),xd=r.createElement("g",null,r.createElement("g",null,r.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"}),r.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"})),r.createElement("g",null,r.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"}),r.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"})),r.createElement("g",null,r.createElement("g",null,r.createElement("path",{className:"st7",d:"M250.6,778.9c-0.7,30.2,13.2,57.4,35.1,74.7"}),r.createElement("g",null,r.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 "})))),r.createElement("g",null,r.createElement("g",null,r.createElement("path",{className:"st7",d:"M622.1,672.2c10.7-48.4-18.7-96.9-66.7-109.7"}),r.createElement("g",null,r.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 "}))))),_d=r.createElement("g",null,r.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"}),r.createElement("g",null,r.createElement("circle",{className:"st14",cx:2236.6,cy:1390,r:20.7}),r.createElement("line",{className:"st6",x1:2215.6,y1:1467.4,x2:2215.6,y2:1534.3}),r.createElement("path",{className:"st6",d:"M2116.5,1488.6"}),r.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"}),r.createElement("circle",{className:"st6",cx:2147.2,cy:1449.2,r:17.8}),r.createElement("g",null,r.createElement("line",{className:"st6",x1:2164.2,y1:1443.7,x2:2207.1,y2:1443.7})),r.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"}),r.createElement("g",null,r.createElement("path",{className:"st6",d:"M2179.5,1549.3"})),r.createElement("circle",{className:"st10",cx:2140.8,cy:1447,r:3.4}))),wd=r.createElement("g",null,r.createElement("line",{className:"st22",x1:2138.5,y1:573.7,x2:2138.5,y2:819.3}),r.createElement("line",{className:"st22",x1:2190,y1:573.7,x2:2190,y2:819.3}),r.createElement("circle",{className:"st10",cx:2138.5,cy:631.5,r:14.1}),r.createElement("circle",{className:"st10",cx:2190,cy:714,r:14.1})),yd=r.createElement("g",null,r.createElement("path",{className:"st6",d:"M1617.7,285.4h698.9"}),r.createElement("path",{className:"st6",d:"M2316.6,374.3H2240V196.2h76.6"}),r.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"}),r.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"}),r.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"})),Nd=r.createElement("g",null,r.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"}),r.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"})),kd=r.createElement("g",null,r.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"}),r.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"}));function Ed(e,t){var a=e.title,n=e.titleId,c=cu(e,["title","titleId"]);return r.createElement("svg",ru({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":n},c),a?r.createElement("title",{id:n},a):null,su,r.createElement("g",{id:"Reference",className:"st0"},r.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)"})),lu,iu,ou,r.createElement("g",{id:"Art"},uu,du,mu,bu,pu,hu,ju,fu,vu,Ou,gu,xu,_u,wu,yu,Nu,ku,Eu,Cu,Su,Lu,Mu,Pu,Iu,Du,Ru,Hu,Au,Bu,Fu,zu,Vu,Wu,Tu,Uu,Zu,Gu,qu,Yu,Ku,Ju,Qu,Xu,$u,ed,td,ad,r.createElement("g",null,nd,r.createElement("clipPath",{id:"SVGID_2_"},r.createElement("use",{xlinkHref:"#SVGID_1_",style:{overflow:"visible"}})),rd),r.createElement("g",null,cd,r.createElement("clipPath",{id:"SVGID_4_"},r.createElement("use",{xlinkHref:"#SVGID_3_",style:{overflow:"visible"}})),sd),r.createElement("g",null,ld,r.createElement("clipPath",{id:"SVGID_6_"},r.createElement("use",{xlinkHref:"#SVGID_5_",style:{overflow:"visible"}})),id),od,ud,dd,md,bd,pd,hd,jd,fd,vd,Od,gd,xd,_d,wd,yd,Nd,kd))}var Cd=r.forwardRef(Ed),Sd=(a.p,a(318)),Ld=a.n(Sd),Md=R.a.bind(Ld.a);function Pd(){var e=Object(r.useState)({username:"",password:""}),t=Object(o.a)(e,2),a=(t[0],t[1]),c=function(e){return function(t){a((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}};return Object(n.jsxs)("section",{className:Md("wrapper"),children:[Object(n.jsxs)("div",{className:Md("login"),children:[Object(n.jsx)("div",{className:Md("kicker"),children:Object(n.jsx)(nu,{})}),Object(n.jsxs)("div",{className:Md("header"),children:[Object(n.jsx)("h1",{className:Md("title"),children:"Sign in using your Gogs credentials."}),Object(n.jsx)("span",{className:Md("title-sub"),children:"\u4f7f\u7528\u60a8\u7684Gogs\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5f55"})]}),Object(n.jsxs)($s,{className:Md("form"),method:"POST",action:"/login",children:[Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Username",name:"username",width:"100%",type:"text",required:!0,onChange:c("username")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Password",name:"password",width:"100%",type:"password",autoComplete:"current-password",required:!0,onChange:c("password")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(Oe,{theme:"primary",type:"submit",className:Md("btn","btn-sign-in"),children:"Sign in"})})]})]}),Object(n.jsx)("div",{className:Md("illustration"),children:Object(n.jsx)(Cd,{})})]})}var Id=a(319),Dd=a.n(Id),Rd=R.a.bind(Dd.a);function Hd(){var e=Object(p.g)(),t=Object(r.useState)({name:"",email:"",company:""}),a=Object(o.a)(t,2),c=a[0],s=a[1],l=function(e){return function(t){s((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}},u=Object(r.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,Ie("/api/user",{method:"PATCH",data:c});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]])}))),[c,e]);return Object(n.jsxs)("section",{className:Rd("wrapper"),children:[Object(n.jsxs)("div",{className:Rd("login"),children:[Object(n.jsx)("div",{className:Rd("kicker"),children:Object(n.jsx)(nu,{})}),Object(n.jsx)("div",{className:Rd("header"),children:Object(n.jsx)("h1",{className:Rd("title"),children:"Complete your Drone Registration."})}),Object(n.jsxs)($s,{className:Rd("form"),onSubmit:function(e){return e.preventDefault()},children:[Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Your Email",name:"email",width:"100%",type:"email",required:!0,onChange:l("email")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Your Full Name",name:"name",width:"100%",type:"text",required:!0,onChange:l("name")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Company Name",name:"name",width:"100%",type:"text",onChange:l("company")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(Oe,{theme:"primary",className:Rd("btn","btn-sign-in"),onClick:u,children:"Submit"})})]}),Object(n.jsxs)("div",{className:Rd("legal"),children:['By clicking "Submit", you agree to our'," ",Object(n.jsx)("a",{href:"https://harness.io/privacy/",children:"Privacy Policy"})," ","and"," ",Object(n.jsx)("a",{href:"https://github.com/drone/drone/blob/master/LICENSE",children:"License"}),"."]})]}),Object(n.jsx)("div",{className:Rd("illustration"),children:Object(n.jsx)(Cd,{})})]})}var Ad=a(320),Bd=a.n(Ad),Fd=R.a.bind(Bd.a),zd=function(e){var t,a=e.handleSubmit,c=e.handleCancel,s=Object(r.useState)({target:"",commit:"",parameters:[]}),l=Object(o.a)(s,2),u=l[0],d=l[1],m=Object(r.useState)({key:"",value:""}),b=Object(o.a)(m,2),p=b[0],h=b[1],j=function(e){return function(){return d((function(t){return Object(i.a)(Object(i.a)({},t),{},{parameters:t.parameters.filter((function(t){return t.id!==e}))})}))}},f=function(e){return function(t){h((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}};return Object(n.jsxs)($s,{className:Fd("new-build-form"),children:[Object(n.jsx)(Xs,{className:Fd("new-build-form-column"),children:Object(n.jsx)(el.Input,{label:"Branch",placeholder:"master",value:u.target,name:"branch",onChange:(t="target",function(e){d((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},t,e.target.value.trim()))}))})})}),Object(n.jsxs)(Xs,{title:"Parameters",className:Fd("new-build-form-column"),children:[u.parameters.length?Object(n.jsx)("div",{className:Fd("new-build-form-parameters-list"),children:u.parameters.map((function(e){var t=e.key,a=e.value,r=e.id;return Object(n.jsxs)("div",{className:Fd("new-build-form-parameters"),children:[Object(n.jsx)(el.Input,{value:t,name:t,readOnly:!0}),Object(n.jsx)(el.Input,{name:a,value:a,readOnly:!0}),Object(n.jsx)(Oe,{theme:"plain",type:"button",onClick:j(r),children:"Remove"})]},r)}))}):null,Object(n.jsxs)("div",{className:Fd("new-build-form-parameters-fields"),children:[Object(n.jsx)(el.Input,{placeholder:"key",value:p.key,onChange:f("key")}),Object(n.jsx)(el.Input,{placeholder:"value",value:p.value,onChange:f("value")}),Object(n.jsx)(Oe,{theme:"plain",type:"button",onClick:function(){p.key&&p.value&&(d((function(e){return Object(i.a)(Object(i.a)({},e),{},{parameters:[].concat(Object(ht.a)(e.parameters),[Object(i.a)(Object(i.a)({},p),{},{id:Date.now()})])})})),h({key:"",value:""}))},children:"+ Add"})]})]}),Object(n.jsxs)(Xs,{className:Fd("new-build-form-controls"),children:[Object(n.jsx)(Oe,{theme:"primary",type:"submit",onClick:function(e){e.preventDefault(),a(u),c()},children:"Create"}),Object(n.jsx)(Oe,{theme:"primary",type:"button",onClick:c,children:"Cancel"})]})]})};function Vd(){return(Vd=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}var Td=r.createElement("line",{x1:12,y1:5,x2:12,y2:19}),Ud=r.createElement("line",{x1:5,y1:12,x2:19,y2:12});function Zd(e,t){var a=e.title,n=e.titleId,c=Wd(e,["title","titleId"]);return r.createElement("svg",Vd({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":n},c),a?r.createElement("title",{id:n},a):null,Td,Ud)}var Gd=r.forwardRef(Zd),qd=(a.p,a(321)),Yd=a.n(qd),Kd=R.a.bind(Yd.a),Jd=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":b.c},{to:"/".concat(a,"/").concat(n,"/branches"),exact:!0,label:"Branches",tag:t?"span":b.c},{to:"/".concat(a,"/").concat(n,"/deployments"),exact:!0,label:"Deployments",tag:t?"span":b.c},{to:"/".concat(a,"/").concat(n,"/settings"),label:"Settings",tag:b.c}];return r?c:c.slice(0,c.length-1)},Qd=function(e){var t=e.user,a=Object(p.j)().params,c=a.namespace,s=a.name,l=(a.build,a.stage,a.step,Object(r.useContext)(mt)),i=Object(o.a)(l,1)[0].isRepoNavDisabled,u=Pc(),h=Object(o.a)(u,2),j=h[0],f=h[1],v=wt({namespace:c,name:s}),O=v.data,g=v.isLoading,x=v.isError,_=Object(r.useMemo)((function(){var e,a;return null!==(e=null===O||void 0===O||null===(a=O.permissions)||void 0===a?void 0:a.write)&&void 0!==e&&e||(null===t||void 0===t?void 0:t.admin)}),[O,t]),w=Le(),y=w.showError,N=w.showSuccess,k=Object(r.useMemo)((function(){return Object(n.jsx)("nav",{className:Kd("tabs"),children:Jd({isRepoNavDisabled:i,namespace:c,name:s,displaySettings:_}).map((function(e){return"span"===e.tag?Object(n.jsx)("span",{className:Kd("tab","tab-disabled"),children:e.label},e.label):Object(n.jsx)(b.c,{className:Kd("tab"),activeClassName:Kd("tab-active"),exact:e.exact,to:e.to,children:e.label},e.to)}))})}),[i,c,s,_]),E=f,C=Object(r.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="/api/repos/".concat(c,"/").concat(s,"/builds"),t.target&&(a="".concat(a,"?branch=").concat(t.target),t.commit&&(a="".concat(a,"&commit=").concat(t.commit)),(null===(n=t.parameters)||void 0===n?void 0:n.length)&&(a="".concat(a,"&").concat(t.parameters.map((function(e){return"".concat(e.key,"=").concat(e.value)})).join("&")))),e.prev=2,e.next=5,Ie(a,{method:"POST"});case 5:N("New build has started successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),y("Unable to start a new build: ".concat(e.t0.message)),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}(),[s,c,y,N]);return g?null:"Not Found"===(null===x||void 0===x?void 0:x.message)||"Unauthorized"===(null===x||void 0===x?void 0:x.message)?Object(n.jsx)(is,{user:t}):Object(n.jsxs)(p.d,{children:[Object(n.jsx)(p.b,{path:["/:namespace/:name","/:namespace/:name/deployments","/:namespace/:name/branches","/:namespace/:name/settings*"],exact:!0,children:Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("header",{className:Kd("header"),children:[Object(n.jsxs)("div",{className:Kd("inner"),children:[Object(n.jsxs)(wi,{className:Kd("breadcrumb"),children:[Object(n.jsx)(yi,{href:"/",text:"Repositories"}),Object(n.jsx)(Ni,{})]}),Object(n.jsx)("h1",{children:s})]}),!i&&_&&Object(n.jsx)(Oe,{theme:"primary",className:Kd("new-build-btn"),icon:Object(n.jsx)(Gd,{}),onClick:E,children:"New Build"})]}),k,Object(n.jsxs)(p.d,{children:[Object(n.jsx)(jb.Branches,{path:"/:namespace/:name/branches",componentProps:{user:t,repo:O},visibility:M,exact:!0}),Object(n.jsx)(jb.Deployments,{path:"/:namespace/:name/deployments",componentProps:{user:t,repo:O},visibility:M,exact:!0}),Object(n.jsx)(jb.Settings,{path:"/:namespace/:name/settings*",componentProps:{user:t,repo:O},visibility:M}),Object(n.jsx)(jb.Builds,{path:"/:namespace/:name",componentProps:{user:t,repo:O},visibility:M,exact:!0})]}),Object(n.jsx)(Ic,{title:"Create a New Build",isShowing:j,hide:f,children:Object(n.jsx)(zd,{handleSubmit:C,handleCancel:f})})]})}),Object(n.jsx)(jb.Build,{path:"/:namespace/:name/:build/:stage?/:step?",componentProps:{user:t,userIsAdminOrHasWritePerm:_},visibility:M})]})},Xd=a(322),$d=a.n(Xd),em=R.a.bind($d.a),tm=[{key:"Markdown",value:"markdown"},{key:"Markup",value:"markup"},{key:"CCMenu",value:"cc"}];function am(){var e=Object(p.i)(),t=e.namespace,a=e.name,c=Object(r.useState)(!1),s=Object(o.a)(c,2),l=s[0],u=s[1],d=Object(r.useState)({branch:"",snippetSyntax:"markdown"}),m=Object(o.a)(d,2),b=m[0],h=m[1],j=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)}(b.branch,v,a,t),f=Object(r.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(v,"/").concat(n,"/").concat(r,"/cc.xml");case"markdown":default:return"[![Build Status](".concat(a,")](").concat(v,"/").concat(n,"/").concat(r,")")}}({syntax:b.snippetSyntax,image:j,namespace:t,name:a})}),[b.snippetSyntax,j,t,a]);return Object(r.useEffect)((function(){var e;return l&&(e=setTimeout((function(){u(!1)}),2e3)),function(){return clearTimeout(e)}}),[l]),Object(r.useEffect)((function(){u(!1)}),[b]),Object(n.jsx)("div",{className:em("wrapper"),children:Object(n.jsxs)("div",{className:em("inner"),children:[Object(n.jsx)("img",{alt:"badge",src:j}),Object(n.jsxs)($s,{className:em("group"),children:[Object(n.jsxs)("div",{className:em("group","group-badge"),children:[Object(n.jsx)(el.Select,{label:"Syntax",name:"syntax",value:b.snippetSyntax,optionsList:tm,width:260,onChange:function(e){var t=e.target;h((function(e){return Object(i.a)(Object(i.a)({},e),{},{snippetSyntax:t.value})}))}}),Object(n.jsx)(el.Input,{label:"Branch",name:"branch",placeholder:"master",value:b.branch,width:260,onChange:function(e){var t=e.target;h((function(e){return Object(i.a)(Object(i.a)({},e),{},{branch:t.value.trim()})}))}})]}),Object(n.jsxs)("pre",{className:em("badge-snippet"),children:[Object(n.jsx)(St.CopyToClipboard,{text:f,onCopy:function(){u(!0)},children:Object(n.jsx)(Oe,{className:em("copy-btn"),type:"button",children:l?"Copied!":Object(n.jsx)(Rt,{})})}),Object(n.jsx)("code",{children:f})]})]})]})})}function nm(){return(nm=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}var cm=r.createElement("polyline",{points:"3 6 5 6 21 6"}),sm=r.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"}),lm=r.createElement("line",{x1:10,y1:11,x2:10,y2:17}),im=r.createElement("line",{x1:14,y1:11,x2:14,y2:17});function om(e,t){var a=e.title,n=e.titleId,c=rm(e,["title","titleId"]);return r.createElement("svg",nm({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":n},c),a?r.createElement("title",{id:n},a):null,cm,sm,lm,im)}var um=r.forwardRef(om),dm=(a.p,a(323)),mm=a.n(dm),bm=R.a.bind(mm.a),pm=["@hourly","@daily","@weekly","@monthly","@yearly"].map((function(e){return{key:e,value:e}})),hm=function(e){var t=e.handleSubmit,a=e.handleCancel,c=Object(r.useState)({name:"",branch:"",expr:pm[0].value}),s=Object(o.a)(c,2),l=s[0],u=s[1],d=function(e){return function(t){u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value))}))}};return Object(n.jsxs)($s,{className:bm("container","form"),children:[Object(n.jsxs)(Xs,{className:bm("group","group-fields"),children:[Object(n.jsx)(el.Input,{label:"Name",value:l.name,name:"cron-name",width:350,autoFocus:"true",onChange:d("name")}),Object(n.jsx)(el.Input,{label:"Branch",value:l.branch,placeholder:"master",name:"cron-branch",width:350,onChange:d("branch")}),Object(n.jsx)(el.Select,{label:"Schedule",value:l.expr,optionsList:pm,width:350,onChange:d("expr")})]}),Object(n.jsxs)(Xs,{className:bm("controls"),children:[Object(n.jsx)(Oe,{onClick:function(){t(l),a()},children:"Create"}),Object(n.jsx)(Oe,{onClick:a,children:"Cancel"})]})]})};function jm(){var e=Object(p.i)(),t=e.namespace,a=e.name,c=Pc(),s=Object(o.a)(c,2),l=s[0],u=s[1],b=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a,"/cron"))}({namespace:t,name:a}),h=b.data,j=b.isLoading,f=b.mutate,v=Le(),O=v.showSuccess,g=v.showError,x=Object(r.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,Ie("/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,f((function(e){return e.concat(r)}),!1),O("Cron has been added successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),g(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,f,O,g]),_=null;return _=j?null:h.length?Object(n.jsx)(fm,{crons:h,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,Ie("/api/repos/".concat(t,"/").concat(a,"/cron/").concat(e),{method:"DELETE"});case 5:O("Cron has been removed successfully"),f(h.filter((function(t){return t.name!==e})),!1),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),g(n.t0.message),console.warn(n.t0.message);case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))}}):Object(n.jsxs)("div",{className:bm("zero"),children:[Object(n.jsx)("h2",{children:"No Cron Jobs"}),Object(n.jsx)("p",{children:"You can create cron jobs to schedule pipeline executions on a recurring basis."})]}),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:bm("wrapper"),children:Object(n.jsx)("div",{className:bm("card"),children:j?null:Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:bm("actions"),children:Object(n.jsx)(Oe,{theme:"primary",className:bm("btn-new"),icon:Object(n.jsx)(Gd,{}),onClick:u,children:"New Cron Job"})}),_]})})}),Object(n.jsx)(Ic,{title:"Create a New Cron Job",isShowing:l,hide:u,children:Object(n.jsx)(hm,{handleSubmit:x,handleCancel:u})})]})}function fm(e){var t;return Object(n.jsxs)("div",{className:bm("cron-list-wrapper"),children:[Object(n.jsxs)("div",{className:bm("cron-list-header"),children:[Object(n.jsx)("div",{children:"Name"}),Object(n.jsx)("div",{children:"Branch"}),Object(n.jsx)("div",{children:"Schedule"}),Object(n.jsx)("div",{children:"Next Execution"}),Object(n.jsx)("div",{})]}),Object(n.jsx)("div",{className:bm("cron-list"),children:null===e||void 0===e||null===(t=e.crons)||void 0===t?void 0:t.map((function(t){return Object(n.jsx)(vm,{data:t,onRemove:e.handleRemove},t.id)}))})]})}function vm(e){var t=e.data,a=e.onRemove;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:bm("cron-list-item"),children:[Object(n.jsx)("div",{children:t.name}),Object(n.jsx)("div",{children:t.branch}),Object(n.jsx)("div",{children:t.expr}),Object(n.jsx)("div",{children:t.next&&new Date(1e3*t.next).toLocaleString()}),Object(n.jsx)("div",{children:Object(n.jsx)(Oe,{onClick:a(t.name),children:Object(n.jsx)(um,{})})})]})})}function Om(){return(Om=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}var xm=r.createElement("circle",{cx:12,cy:12,r:10}),_m=r.createElement("line",{x1:4.93,y1:4.93,x2:19.07,y2:19.07});function wm(e,t){var a=e.title,n=e.titleId,c=gm(e,["title","titleId"]);return r.createElement("svg",Om({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":n},c),a?r.createElement("title",{id:n},a):null,xm,_m)}var ym=r.forwardRef(wm),Nm=(a.p,a(324)),km=a.n(Nm),Em=R.a.bind(km.a);function Cm(e){var t=e.user,a=e.repo,c=Object(p.i)(),s=c.namespace,l=c.name,u=wt({namespace:s,name:l}).mutate,b=Le(),h=b.showError,j=b.showSuccess,f=Object(r.useState)(null),v=Object(o.a)(f,2),O=v[0],g=v[1];Object(r.useLayoutEffect)((function(){a&&g(Re(a)(["ignore_pull_requests","ignore_forks","protected","trusted","visibility","timeout","config_path"]))}),[a]);var x,w=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,Ie("/api/repos/".concat(s,"/").concat(l),{method:"DELETE"});case 5:u(),j("Repo has been disabled"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),h("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)}}(),y=function(){var e=Object(m.a)(d.a.mark((function e(t){var a;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ie("/api/repos/".concat(s,"/").concat(l),{method:"PATCH",data:Object(i.a)(Object(i.a)({},O),{},{timeout:+O.timeout})});case 3:a=e.sent,u(a),j("Changes have been saved"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),h("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(t){return e.apply(this,arguments)}}(),N=function(e){return function(t){switch(e){case"ignore_pull_requests":case"ignore_forks":case"protected":case"trusted":g((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(ye.a)({},e,!t[e]))}));break;case"visibility":case"config_path":case"timeout":g((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value))}))}}};return null===O?null:Object(n.jsx)("div",{className:Em("wrapper"),children:Object(n.jsx)("div",{className:Em("inner"),children:Object(n.jsxs)($s,{className:Em("form"),children:[Object(n.jsxs)(Xs,{className:Em("form-section-row"),title:"Project Webhooks",children:[Object(n.jsx)("div",{className:Em("switch-row"),children:Object(n.jsx)(Zo,{id:"ignore_pull_requests",checked:O.ignore_pull_requests,onChange:N("ignore_pull_requests"),children:"Disable Pull Requests"})}),Object(n.jsx)("div",{className:Em("switch-row"),children:Object(n.jsx)(Zo,{id:"ignore_forks",checked:O.ignore_forks,onChange:N("ignore_forks"),children:"Disable forks"})})]}),(null===t||void 0===t?void 0:t.admin)&&Object(n.jsxs)(Xs,{className:Em("form-section-row"),title:"Project Settings",children:[Object(n.jsxs)("div",{className:Em("switch-row"),children:[Object(n.jsx)(Zo,{id:"protected",checked:O.protected,onChange:N("protected"),children:"Protected"}),Object(n.jsx)("p",{className:Em("note"),children:"Blocks a pipeline if the yaml signature cannot be verified."})]}),Object(n.jsxs)("div",{className:Em("switch-row"),children:[Object(n.jsx)(Zo,{id:"trusted",checked:O.trusted,onChange:N("trusted"),children:"Trusted"}),Object(n.jsx)("p",{className:Em("note"),children:"Enables privileged container settings."})]})]}),Object(n.jsx)(Xs,{className:Em("form-section-row"),title:"Project Visibility",children:Object(n.jsxs)("ul",{className:Em("visibility-container"),children:[Object(n.jsxs)("li",{className:Em("visibility-card-wrapper"),children:[Object(n.jsxs)("div",{className:Em("visibility-card"),children:[Object(n.jsx)("h4",{children:"Private"}),Object(n.jsx)("p",{children:"Private repositories are only accessible to people you explicitly share access with."})]}),Object(n.jsx)(el.Radio,{name:"private",checked:"private"===O.visibility,value:"private",appearance:"checkmark",onChange:N("visibility")})]}),Object(n.jsxs)("li",{className:Em("visibility-card-wrapper"),children:[Object(n.jsxs)("div",{className:Em("visibility-card"),children:[Object(n.jsx)("h4",{children:"Public"}),Object(n.jsx)("p",{children:"Public repositories are accessible to everyone on the internet."})]}),Object(n.jsx)(el.Radio,{name:"public",value:"public",appearance:"checkmark",checked:"public"===O.visibility,onChange:N("visibility")})]}),Object(n.jsxs)("li",{className:Em("visibility-card-wrapper"),children:[Object(n.jsxs)("div",{className:Em("visibility-card"),children:[Object(n.jsx)("h4",{children:"Internal"}),Object(n.jsx)("p",{children:"Internal repositories are only accessible to authenticated user."})]}),Object(n.jsx)(el.Radio,{name:"internal",checked:"internal"===O.visibility,value:"internal",appearance:"checkmark",onChange:N("visibility")})]})]})}),Object(n.jsxs)(Xs,{className:Em("form-section-row","form-section-row-is-last"),children:[Object(n.jsx)(el.Select,{label:"Timeout",value:O.timeout,optionsList:(x=_,x.map((function(e){return{value:e,key:e>90?"".concat(e/60," hours"):"".concat(e," minutes")}}))),width:200,className:Em("timeout"),onChange:N("timeout")}),Object(n.jsx)(el.Input,{label:"Configuration",name:"configuration",value:O.config_path,width:372,className:Em("config"),onChange:N("config_path")})]}),Object(n.jsxs)("div",{className:Em("controls"),children:[Object(n.jsx)("button",{className:Em("btn","btn-save"),type:"button",onClick:y,children:"Save Changes"}),Object(n.jsxs)("button",{className:Em("btn","btn-disable"),type:"button",onClick:w,children:[Object(n.jsx)(ym,{}),"Disable"]})]})]})})})}var Sm=a(325),Lm=a.n(Sm),Mm=R.a.bind(Lm.a),Pm=function(e){var t=e.handleSubmit,a=e.handleCancel,c=Object(r.useState)({name:"",data:"",pull_request:!1}),s=Object(o.a)(c,2),l=s[0],u=s[1],d=function(e){return function(t){switch(e){case"name":case"data":u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value))}));break;case"pull_request":u((function(e){return Object(i.a)(Object(i.a)({},e),{},{pull_request:t.target.checked})}))}}};return Object(n.jsxs)($s,{className:Mm("container"),children:[Object(n.jsxs)(Xs,{className:Mm("group","group-fields"),children:[Object(n.jsx)(el.Input,{placeholder:"Secret Name",value:l.name,label:"Name",name:"secret-name",width:350,autoFocus:"true",onChange:d("name")}),Object(n.jsx)(el.TextArea,{label:"Value",placeholder:"Secret value",value:l.data,name:"secret-value",width:350,onChange:d("data")}),Object(n.jsx)(el.Checkbox,{label:"Allow Pull Requests",name:"pull_request",checked:l.pull_request,onChange:d("pull_request")})]}),Object(n.jsxs)(Xs,{className:Mm("controls"),children:[Object(n.jsx)(Oe,{onClick:function(e){t(l),a()},children:"Create"}),Object(n.jsx)(Oe,{onClick:a,children:"Cancel"})]})]})};function Im(){var e=Object(p.i)(),t=e.namespace,a=e.name,c=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a,"/secrets"))}({namespace:t,name:a}),s=c.data,l=c.isLoading,i=c.mutate,u=Pc(),b=Object(o.a)(u,2),h=b[0],j=b[1],f=Le(),v=f.showError,O=f.showSuccess,g=Object(r.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,Ie("/api/repos/".concat(t,"/").concat(a,"/secrets"),{method:"POST",data:n});case 3:r=e.sent,i((function(e){return e.concat(r)}),!1),O("Secret has been added successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),v("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)}}(),[i,t,a,O,v]),x=null;return x=l?null:s.length?Object(n.jsx)(Dm,{secrets:s,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 delete this secret?")){n.next=13;break}return n.prev=2,n.next=5,Ie("/api/repos/".concat(t,"/").concat(a,"/secrets/").concat(e),{method:"DELETE"});case 5:i(s.filter((function(t){return t.name!==e})),!1),O("Secret has been removed successfully"),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),v("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(n.jsxs)("div",{className:Mm("zero"),children:[Object(n.jsx)("h2",{children:"No Secrets"}),Object(n.jsx)("p",{children:"Manage sensitive configuration parameters, such as passwords, tokens, and ssh keys."})]}),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:Mm("wrapper"),children:Object(n.jsxs)("div",{className:Mm("card"),children:[Object(n.jsx)("div",{className:Mm("actions"),children:Object(n.jsx)(Oe,{theme:"primary",className:Mm("btn-new"),icon:Object(n.jsx)(Gd,{}),onClick:j,children:"New Secret"})}),x]})}),Object(n.jsx)(Ic,{title:"Create a New Secret",isShowing:h,hide:j,children:Object(n.jsx)(Pm,{handleSubmit:g,handleCancel:j})})]})}function Dm(e){var t;return Object(n.jsxs)("div",{className:Mm("secret-list-wrapper"),children:[Object(n.jsxs)("div",{className:Mm("secret-list-header"),children:[Object(n.jsx)("div",{children:"Name"}),Object(n.jsx)("div",{children:"Pull Requests"}),Object(n.jsx)("div",{})]}),Object(n.jsx)("div",{className:Mm("secret-list"),children:null===e||void 0===e||null===(t=e.secrets)||void 0===t?void 0:t.map((function(t){return Object(n.jsx)(Rm,{data:t,onRemove:e.handleRemove},t.id)}))})]})}function Rm(e){var t=e.data,a=e.onRemove;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:Mm("secret-list-item"),children:[Object(n.jsx)("div",{children:t.name}),Object(n.jsx)("div",{children:t.pull_request?"Enabled":"Disabled"}),Object(n.jsx)("div",{children:Object(n.jsx)(Oe,{onClick:a(t.name),children:Object(n.jsx)(um,{})})})]})})}var Hm=a(326),Am=a.n(Hm),Bm=R.a.bind(Am.a),Fm=function(e){e.namespace,e.name;var t=e.showActivationBtn,a=e.activationHandler;return Object(n.jsx)("section",{className:Bm("inactive-wrapper"),children:Object(n.jsxs)("div",{className:Bm("inactive-inner"),children:[Object(n.jsx)(Ia,{}),Object(n.jsx)("h2",{children:"This Repository is not Active."}),t?Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("p",{children:"Please activate your repository to begin executing pipelines."}),Object(n.jsx)(Oe,{theme:"primary",icon:Object(n.jsx)(Gd,{}),onClick:a,children:"Activate Repository"})]}):Object(n.jsx)("p",{children:"Please contact the repository administrator to activate this repository."})]})})};function zm(e){var t,a,c=e.user,s=e.repo,l=Object(p.i)(),u=l.namespace,h=l.name,j=wt({namespace:u,name:h}).mutate,f=Object(r.useContext)(mt),v=Object(o.a)(f,2)[1],O=Le(),g=O.showError,x=O.showSuccess;Object(r.useEffect)((function(){return s&&v((function(e){return Object(i.a)(Object(i.a)({},e),{},{isRepoNavDisabled:!(null===s||void 0===s?void 0:s.active)})})),function(){return v((function(e){return Object(i.a)(Object(i.a)({},e),{},{isRepoNavDisabled:!1})}))}}),[s,v]);var _=Object(r.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,Ie("/api/repos/".concat(u,"/").concat(h),{method:"POST"});case 3:t=e.sent,j(t,!1),x("Repo has been successfully enabled"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),g(e.t0.message),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),[g,x,u,h,j]);return ge("Settings - ".concat(u,"/").concat(h)),Object(n.jsx)(n.Fragment,{children:(null===s||void 0===s?void 0:s.active)?Object(n.jsxs)("section",{className:Bm("wrapper"),children:[Object(n.jsx)("aside",{children:Object(n.jsxs)("nav",{className:Bm("settings-nav"),children:[Object(n.jsx)(b.c,{className:Bm("settings-nav-item"),activeClassName:Bm("settings-nav-item-active"),to:"/".concat(u,"/").concat(h,"/settings"),exact:!0,children:"General"}),Object(n.jsx)(b.c,{className:Bm("settings-nav-item"),activeClassName:Bm("settings-nav-item-active"),to:"/".concat(u,"/").concat(h,"/settings/secrets"),exact:!0,children:"Secrets"}),Object(n.jsx)(b.c,{className:Bm("settings-nav-item"),activeClassName:Bm("settings-nav-item-active"),to:"/".concat(u,"/").concat(h,"/settings/cron"),exact:!0,children:"Cron Jobs"}),Object(n.jsx)(b.c,{className:Bm("settings-nav-item"),activeClassName:Bm("settings-nav-item-active"),to:"/".concat(u,"/").concat(h,"/settings/badges"),exact:!0,children:"Badges"})]})}),Object(n.jsxs)(p.d,{children:[Object(n.jsx)(p.b,{path:"/:namespace/:name/settings",component:function(e){return Object(n.jsx)(Cm,Object(i.a)(Object(i.a)({},e),{},{repo:s,user:c}))},exact:!0}),Object(n.jsx)(p.b,{path:"/:namespace/:name/settings/secrets",component:Im}),Object(n.jsx)(p.b,{path:"/:namespace/:name/settings/cron",component:jm}),Object(n.jsx)(p.b,{path:"/:namespace/:name/settings/badges",component:am})]})]}):Object(n.jsx)(Fm,{namespace:u,name:h,showActivationBtn:null!==(t=null===s||void 0===s||null===(a=s.permissions)||void 0===a?void 0:a.admin)&&void 0!==t&&t,activationHandler:_})})}var Vm=a(327),Wm=a.n(Vm),Tm=R.a.bind(Wm.a),Um=function(e){var t=e.user,a=Object(r.useMemo)((function(){return Object(n.jsx)("nav",{className:Tm("tabs"),children:[{to:"/settings/users",exact:!0,label:"Users"}].map((function(e){return Object(n.jsx)(b.c,{className:Tm("tab"),activeClassName:Tm("tab-active"),exact:e.exact,to:e.to,children:e.label},e.to)}))})}),[]);return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("header",{className:Tm("header"),children:Object(n.jsx)("div",{className:Tm("inner"),children:Object(n.jsx)("h1",{children:"System Administration"})})}),a,Object(n.jsxs)(p.d,{children:[Object(n.jsx)(p.b,{path:"/settings",component:function(){return Object(n.jsx)(p.a,{from:"/settings",to:"/settings/users",strict:!0,exact:!0})},exact:!0}),Object(n.jsx)(jb.Users,{path:"/settings/users",componentProps:{user:t},visibility:I,exact:!0})]})]})},Zm=a(328),Gm=a.n(Zm),qm=R.a.bind(Gm.a),Ym=function(e){var t=e.initialValues,a=e.handleSubmit,c=e.handleDelete,s=e.handleCancel,l=Object(r.useState)(t),u=Object(o.a)(l,2),d=u[0],m=u[1],b=function(e){return function(t){m((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.checked))}))}};return Object(n.jsxs)($s,{className:qm("new-user-form"),children:[Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Checkbox,{label:"Admin User",name:"admin",checked:d.admin,onChange:b("admin")})}),Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Checkbox,{label:"Machine User",name:"machine",checked:d.machine,disabled:!0,onChange:b("machine")})}),Object(n.jsxs)(Xs,{className:qm("new-user-form-controls"),children:[Object(n.jsx)(Oe,{className:qm("save"),theme:"primary",type:"button",onClick:function(e){a(d),s()},children:"Save"}),Object(n.jsx)(Oe,{className:qm("cancel"),theme:"primary",type:"button",onClick:s,children:"Cancel"}),Object(n.jsx)(Oe,{className:qm("delete"),theme:"primary",icon:Object(n.jsx)(ym,{}),onClick:function(){c(d.login),s()},children:"Delete"})]})]})},Km=function(e){var t=e.handleSubmit,a=e.handleCancel,c=Object(r.useState)({login:"",email:"",admin:!1,machine:!1}),s=Object(o.a)(c,2),l=s[0],u=s[1],d=function(e){return function(t){switch(e){case"admin":case"machine":u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.checked))}));break;default:u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}}};return Object(n.jsxs)($s,{className:qm("new-user-form"),children:[Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Input,{label:"Login",placeholder:"userlogin",value:l.login,name:"login",width:400,required:!0,onChange:d("login")})}),Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Input,{label:"Email",type:"email",placeholder:"example@mail.com",value:l.email,name:"email",width:400,required:!0,onChange:d("email")})}),Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Checkbox,{label:"Admin User",name:"admin",checked:l.admin,onChange:d("admin")})}),Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Checkbox,{label:"Machine User",name:"machine",checked:l.machine,onChange:d("machine")})}),Object(n.jsxs)(Xs,{className:qm("new-user-form-controls"),children:[Object(n.jsx)(Oe,{className:qm("save"),theme:"primary",onClick:function(e){e.preventDefault(),t(l),a()},children:"Create"}),Object(n.jsx)(Oe,{className:qm("cancel"),theme:"primary",type:"button",onClick:a,children:"Cancel"})]})]})};function Jm(){return(Jm=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}var Xm=r.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),$m=r.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"});function eb(e,t){var a=e.title,n=e.titleId,c=Qm(e,["title","titleId"]);return r.createElement("svg",Jm({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":n},c),a?r.createElement("title",{id:n},a):null,Xm,$m)}var tb=r.forwardRef(eb),ab=(a.p,a(329)),nb=a.n(ab),rb=R.a.bind(nb.a);function cb(e){var t=e.data,a=e.isCurrentUser,r=e.handleEditClick;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:rb("user-list-item"),children:[Object(n.jsx)("div",{children:Object(n.jsx)(be,{className:rb("avatar"),text:t.login,path:t.avatar,alt:t.login})}),Object(n.jsx)("div",{children:t.login}),Object(n.jsx)("div",{children:t.active?"Active":"Inactive"}),Object(n.jsx)("div",{children:t.machine?"Machine":"User"}),Object(n.jsx)("div",{children:t.admin?"Admin":"Member"}),Object(n.jsx)("div",{children:Object(no.a)(new Date(1e3*t.created),new Date,{addSuffix:!0})}),Object(n.jsx)("div",{children:0===t.last_login?"":Object(no.a)(new Date(1e3*t.last_login),new Date,{addSuffix:!0})}),Object(n.jsx)("div",{children:!a&&Object(n.jsx)(Oe,{onClick:r,children:Object(n.jsx)(tb,{})})})]})})}var sb=function(e){var t;return Object(n.jsxs)("div",{className:rb("user-list-wrapper"),children:[Object(n.jsxs)("div",{className:rb("user-list-header"),children:[Object(n.jsx)("div",{}),Object(n.jsx)("div",{children:"Username"}),Object(n.jsx)("div",{children:"Active"}),Object(n.jsx)("div",{children:"Type"}),Object(n.jsx)("div",{children:"Role"}),Object(n.jsx)("div",{children:"Created"}),Object(n.jsx)("div",{children:"Last Login"})]}),Object(n.jsx)("div",{className:rb("user-list"),children:null===e||void 0===e||null===(t=e.users)||void 0===t?void 0:t.map((function(t){return Object(n.jsx)(cb,{data:t,isCurrentUser:t.id===e.currentUser.id,handleEditClick:e.handleEditUserClick(t.id)},t.id)}))})]})},lb=a(330),ib=a.n(lb),ob=R.a.bind(ib.a);function ub(e){var t=e.user,a=Object(r.useState)(!1),c=Object(o.a)(a,2),s=c[0],l=c[1];ge("User Management");var u=Le(),b=u.showError,p=u.showSuccess,h=jt("/api/users"),j=h.data,f=h.isLoading,v=h.mutate,O=Pc(),g=Object(o.a)(O,2),x=g[0],_=g[1],w=Object(r.useState)("new"),y=Object(o.a)(w,2),N=y[0],k=y[1],E=Object(r.useMemo)((function(){var e;return function(e){return e.sort((function(e,t){return e.login-t.login}))}(null!==(e=null===j||void 0===j?void 0:j.slice(0,s?null===j||void 0===j?void 0:j.length:1e3))&&void 0!==e?e:[])}),[j,s]),C=Object(r.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,Ie("/api/users",{method:"POST",data:Object(i.a)({},t)});case 3:v(),p("New user has been created successfully"),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),b("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)}}(),[v,b,p]),S=Object(r.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,Ie("/api/users/".concat(n),{method:"PATCH",data:{admin:a}});case 4:v(),p("User settings have been updated"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),b("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)}}(),[v,b,p]),L=Object(r.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,Ie("/api/users/".concat(t),{method:"DELETE"});case 5:k("new"),v((function(e){return e.filter((function(e){return e.login!==t}))}),!1),p("User has been deleted successfully"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),b("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)}}(),[v,b,p]);return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("section",{className:ob("wrapper"),children:Object(n.jsxs)("div",{className:ob("card"),children:[Object(n.jsx)("div",{className:ob("actions"),children:Object(n.jsx)(Oe,{theme:"primary",className:ob("btn","btn-user"),icon:Object(n.jsx)(Gd,{}),onClick:function(){k("new"),_()},children:"New User"})}),f?Object(n.jsx)("p",{children:"Loading..."}):Object(n.jsx)(sb,{users:E,currentUser:t,handleEditUserClick:function(e){return function(){k(e),_()}}}),!s&&(null===j||void 0===j?void 0:j.length)>1e3&&Object(n.jsx)(Oe,{className:ob("btn","btn-show-more"),onClick:function(){return l(!0)},children:"Show More \u2193"})]})}),Object(n.jsx)(Ic,{title:"new"===N?"Create a New User":"Edit user",isShowing:x,hide:_,children:"new"===N?Object(n.jsx)(Km,{handleSubmit:C,handleCancel:_}):Object(n.jsx)(Ym,{handleSubmit:S,handleDelete:L,handleCancel:_,initialValues:Re(E.find((function(e){return e.id===N})))(["machine","admin","login"])})})]})}var db=a(331),mb=a.n(db),bb=R.a.bind(mb.a);function pb(){var e,t,a,r=Object(p.h)(),c=r.pathname,s=r.search,l=null;switch(c){case"/logout":l=Object(n.jsx)("div",{className:bb("error"),children:"Your session has been successfully terminated."});break;case"/login/error":l=Object(n.jsx)("div",{className:bb("error"),children:null!==(e=null===(a=s,t=("?"===a[0]?a.substr(1):a).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(ye.a)({},decodeURIComponent(r),decodeURIComponent(c||"")))}),{}))||void 0===t?void 0:t.message)&&void 0!==e?e:"An error occured during login attempt, please, try again"})}return Object(n.jsxs)("section",{className:bb("wrapper"),children:[Object(n.jsxs)("div",{className:bb("login"),children:[Object(n.jsx)("div",{className:bb("kicker"),children:Object(n.jsx)(nu,{})}),Object(n.jsxs)("div",{className:bb("header"),children:[Object(n.jsxs)("h1",{className:bb("title"),children:["Hello,",Object(n.jsx)("br",{}),"Welcome to Drone."]}),l,Object(n.jsx)("p",{children:"You will be redirected to your source control management system to authenticate."})]}),Object(n.jsxs)("a",{href:"/login",target:"_self",className:bb("btn"),children:[Object(n.jsx)("span",{children:"Continue"}),Object(n.jsx)(zc,{className:bb("chevron-right")})]})]}),Object(n.jsx)("div",{className:bb("illustration"),children:Object(n.jsx)(Cd,{})})]})}function hb(e){var t=e.component,a=e.visibility,r=e.componentProps,c=e.children,s=Object(pe.a)(e,["component","visibility","componentProps","children"]),l=r.user,o=!!l,u=null===l||void 0===l?void 0:l.admin,d=Object(n.jsx)(p.b,Object(i.a)(Object(i.a)({},s),{},{render:function(e){return t?Object(n.jsx)(t,Object(i.a)(Object(i.a)({},e),r)):c}}));return[a===M,a===P&&o,a===I&&u].some((function(e){return!!e}))?d:a!==M&&!1===o?Object(n.jsx)(p.a,{to:"/welcome"}):Object(n.jsx)(is,{user:l})}hb.defaultProps={componentProps:{},children:null,visibility:0};var jb={Home:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Ko},e))},LoginForm:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Pd},e))},Login:function(e){return Object(n.jsx)("p",{children:"Redirecting to Github Auth..."})},Logout:function(e){return Object(n.jsx)(hb,Object(i.a)({component:pb},e))},LoginError:function(e){return Object(n.jsx)(hb,Object(i.a)({component:pb},e))},Register:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Hd},e))},Account:function(e){return Object(n.jsx)(hb,Object(i.a)({component:zt},e))},Admin:function(e){return Object(n.jsx)(hb,Object(i.a)({component:function(){return Object(n.jsx)("h1",{children:"Admin Settings"})}},e))},Branches:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Wa},e))},Deployments:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Co},e))},Settings:function(e){return Object(n.jsx)(hb,Object(i.a)({component:zm},e))},SettingsAdmin:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Um},e))},Builds:function(e){return Object(n.jsx)(hb,Object(i.a)({component:yo},e))},Build:function(e){return Object(n.jsx)(hb,Object(i.a)({component:ao},e))},NotFound:function(e){return Object(n.jsx)(hb,Object(i.a)({component:is},e))},Welcome:function(e){return Object(n.jsx)(p.b,Object(i.a)({component:pb},e))},Users:function(e){return Object(n.jsx)(hb,Object(i.a)({component:ub},e))},Repo:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Qd},e))}},fb={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",Ie(t,{method:"GET"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),shouldRetryOnError:!1,revalidateOnFocus:!1},vb=function(e){var t=e.render,a=yt(),n=a.data,c=a.isLoading,s=Object(r.useContext)(mt),l=Object(o.a)(s,2),u=l[0],d=l[1];return Object(r.useEffect)((function(){n&&null===u.isAccSyncing&&d(Object(i.a)(Object(i.a)({},u),{},{isAccSyncing:n.syncing}))}),[n,u,d]),Ot(),c?null:t({user:n})};function Ob(){return Object(n.jsx)(c.a.StrictMode,{children:Object(n.jsx)(j.a,{value:fb,children:Object(n.jsx)(b.a,{children:Object(n.jsx)(pt,{children:Object(n.jsx)(vb,{render:function(e){var t=e.user;return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)(Ct,{children:[Object(n.jsxs)(p.d,{children:[Object(n.jsx)(p.b,{path:["/welcome","/login/form","/login/error","/logout","/register"],exact:!0}),Object(n.jsx)(p.b,{path:["/settings*"],exact:!0,children:Object(n.jsx)(at,{user:t})}),Object(n.jsxs)(p.b,{path:"/*",children:[Object(n.jsx)(at,{user:t}),Object(n.jsx)(dt,{})]})]}),Object(n.jsxs)(p.d,{children:[Object(n.jsx)(jb.Home,{path:"/",componentProps:{user:t},visibility:P,exact:!0}),Object(n.jsx)(jb.Welcome,{path:"/welcome",componentProps:{user:t},exact:!0}),Object(n.jsx)(jb.Register,{path:"/register",componentProps:{user:t},exact:!0}),Object(n.jsx)(jb.LoginForm,{path:"/login/form",exact:!0}),Object(n.jsx)(jb.LoginError,{path:"/login/error",exact:!0}),Object(n.jsx)(jb.Logout,{path:"/logout",exact:!0}),Object(n.jsx)(jb.Account,{path:"/account",componentProps:{user:t},visibility:P,exact:!0}),Object(n.jsx)(jb.SettingsAdmin,{path:"/settings*",componentProps:{user:t},visibility:I,exact:!0}),Object(n.jsx)(jb.Repo,{path:["/:namespace/:name","/:namespace/:name/deployments","/:namespace/:name/branches","/:namespace/:name/settings*","/:namespace/:name/:build","/:namespace/:name/:build/:stage?/:step?"],componentProps:{user:t},visibility:M,exact:!0}),Object(n.jsx)(jb.NotFound,{path:"*",componentProps:{user:t}})]})]}),Object(n.jsx)(h.a,{position:"top-center",limit:3,pauseOnHover:!0,hideProgressBar:!0})]})}})})})})})}a(595);l.a.render(Object(n.jsx)(c.a.StrictMode,{children:Object(n.jsx)(Ob,{})}),document.getElementById("root"))}},[[596,1,2]]]);`) +// /static/js/main.512f70d6.chunk.js +var file10 = []byte(`(this["webpackJsonpdrone-ui-react"]=this["webpackJsonpdrone-ui-react"]||[]).push([[0],{265:function(e,t,a){e.exports={wrapper:"avatar_wrapper__1rxDX",image:"avatar_image__3M2_A",stub:"avatar_stub__BnP-r"}},266:function(e,t,a){e.exports={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"}},270:function(e,t,a){e.exports={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"}},271:function(e,t,a){e.exports={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"}},272: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"}},273:function(e,t,a){e.exports={"system-messages-wrapper":"license_system-messages-wrapper__2jNgH","message-with-link":"license_message-with-link__1n_82"}},275:function(e,t,a){e.exports={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"}},276:function(e,t,a){e.exports={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"}},277: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"}},278:function(e,t,a){e.exports={wrapper:"zero-state_wrapper__2GHgl",inner:"zero-state_inner__2n0xG"}},279:function(e,t,a){e.exports={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"}},281: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"}},282: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"}},283: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"}},284:function(e,t,a){e.exports={"diagram-wrapper":"diagram_diagram-wrapper__2s9c_"}},285: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"}},286:function(e,t,a){e.exports={"elapsed-static":"elapsed_elapsed-static__2nw59"}},287:function(e,t,a){e.exports={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"}},288:function(e,t,a){e.exports={"error-wrapper":"console-manager_error-wrapper__1cBjH","no-logs":"console-manager_no-logs__1-L-h"}},289: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"}},290:function(e,t,a){e.exports={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"}},291:function(e,t,a){e.exports={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"}},292:function(e,t,a){e.exports={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","stage-header":"stage-nav_stage-header__1dF95",chevron:"stage-nav_chevron__29dQ1","chevron-disabled":"stage-nav_chevron-disabled__2spPT","stage-header-expanded":"stage-nav_stage-header-expanded__1U_RV","stage-header-unselectable":"stage-nav_stage-header-unselectable__2Egdv","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",time:"stage-nav_time__3hF_i","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"}},293:function(e,t,a){e.exports={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"}},294:function(e,t,a){e.exports={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"}},295:function(e,t,a){e.exports={label:"label_label__AboI9"}},296:function(e,t,a){e.exports={checkbox:"checkbox_checkbox__2t8iU","checkbox-fake":"checkbox_checkbox-fake__3M-W4",disabled:"checkbox_disabled__xkbX3"}},297:function(e,t,a){e.exports={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"}},298: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"}},299:function(e,t,a){e.exports={select:"select_select__1HHVE",label:"select_label__1bDYS","select-inner":"select_select-inner__1CKS3","select-input":"select_select-input__39Yvq"}},300:function(e,t,a){e.exports={"text-area":"text-area_text-area__31bmm","text-area-wrapper":"text-area_text-area-wrapper__28Wsn"}},301:function(e,t,a){e.exports={form:"form_form__vo1by","form-section":"form_form-section__2-baB"}},302: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"}},303:function(e,t,a){e.exports={root:"label_root__2WztY"}},304: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-"}},305:function(e,t,a){e.exports={breadcrumb:"breadcrumb_breadcrumb__3RygM","breadcrumb-item":"breadcrumb_breadcrumb-item__1DZP4","breadcrumb-spacer":"breadcrumb_breadcrumb-spacer__1QK5s"}},306: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"}},307:function(e,t,a){e.exports={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"}},308:function(e,t,a){e.exports={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-"}},309:function(e,t,a){e.exports={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_"}},311: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"}},312:function(e,t,a){e.exports={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"}},313:function(e,t,a){e.exports={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_"}},314:function(e,t,a){e.exports={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-"}},315:function(e,t,a){e.exports={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"}},316: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"}},317:function(e,t,a){e.exports={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"}},318:function(e,t,a){e.exports={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"}},319:function(e,t,a){e.exports={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"}},320: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"}},321:function(e,t,a){e.exports={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"}},322:function(e,t,a){e.exports={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"}},323:function(e,t,a){e.exports={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"}},324:function(e,t,a){e.exports={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"}},325:function(e,t,a){e.exports={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"}},326: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","inactive-wrapper":"settings_inactive-wrapper__2HS2u","inactive-inner":"settings_inactive-inner__z1fP7"}},327: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"}},328:function(e,t,a){e.exports={"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"}},329:function(e,t,a){e.exports={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"}},330:function(e,t,a){e.exports={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"}},331:function(e,t,a){e.exports={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"}},366:function(e,t,a){},594:function(e,t,a){},595:function(e,t,a){},596:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a(1),c=a.n(r),s=a(54),l=a.n(s),i=a(2),o=a(4),u=a(6),d=a.n(u),m=a(14),b=a(11),p=a(21),h=a(77),j=a(41),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_TOKEN||"",v=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),O=250,g="error",x={DEFAULT:"default",RUNNING:"running"},_=[15,30,60,90,120,180,240,300,360,420,480,540,600,660,720,1080,1440,2880,4320],w="loading",y="stream_on",N="resolved",k="no_logs_available",E="error",C="idle",S=window&&window.LICENSE_EXPIRED,L=window&&window.LICENSE_LIMIT_EXCEEDED,M=0,P=1,I=2,D=a(3),R=a.n(D),H=a.p+"static/media/logo.76c744d4.svg";function A(){return(A=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}var F=r.createElement("circle",{cx:11,cy:11,r:8}),z=r.createElement("line",{x1:21,y1:21,x2:16.65,y2:16.65});function V(e,t){var a=e.title,n=e.titleId,c=B(e,["title","titleId"]);return r.createElement("svg",A({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":n},c),a?r.createElement("title",{id:n},a):null,F,z)}var W=r.forwardRef(V);a.p;function T(){return(T=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}var Z=r.createElement("line",{x1:4,y1:21,x2:4,y2:14}),G=r.createElement("line",{x1:4,y1:10,x2:4,y2:3}),q=r.createElement("line",{x1:12,y1:21,x2:12,y2:12}),Y=r.createElement("line",{x1:12,y1:8,x2:12,y2:3}),K=r.createElement("line",{x1:20,y1:21,x2:20,y2:16}),J=r.createElement("line",{x1:20,y1:12,x2:20,y2:3}),Q=r.createElement("line",{x1:1,y1:14,x2:7,y2:14}),X=r.createElement("line",{x1:9,y1:8,x2:15,y2:8}),$=r.createElement("line",{x1:17,y1:16,x2:23,y2:16});function ee(e,t){var a=e.title,n=e.titleId,c=U(e,["title","titleId"]);return r.createElement("svg",T({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":n},c),a?r.createElement("title",{id:n},a):null,Z,G,q,Y,K,J,Q,X,$)}var te=r.forwardRef(ee);a.p;function ae(){return(ae=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}var re=r.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),ce=r.createElement("circle",{cx:12,cy:7,r:4});function se(e,t){var a=e.title,n=e.titleId,c=ne(e,["title","titleId"]);return r.createElement("svg",ae({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":n},c),a?r.createElement("title",{id:n},a):null,re,ce)}var le=r.forwardRef(se),ie=(a.p,a(265)),oe=a.n(ie),ue=R.a.bind(oe.a),de=["#06C270","#0063F7","#FF8800","#06B7C4","#4D0B8F"],me=function(e){var t,a=e.className,c=e.path,s=e.alt,l=e.text,i=Object(r.useState)(!1),u=Object(o.a)(i,2),d=u[0],m=u[1];if(!c||d){var b=l||s||"?";t=Object(n.jsx)("span",{className:ue("stub"),title:b,style:{backgroundColor:de[b.charCodeAt(0)%de.length]},children:l[0]})}else t=Object(n.jsx)("img",{className:ue("image"),src:c,alt:s,onError:function(){return m(!0)}});return Object(n.jsx)("div",{className:ue("wrapper",a||""),children:t})};me.defaultProps={className:void 0,path:void 0,alt:"User avatar"};var be=me,pe=a(24),he=a(266),je=a.n(he),fe=R.a.bind(je.a),ve=function(e){var t,a=e.as,r=e.children,c=e.className,s=e.label,l=e.icon,o=e.size,u=e.theme,d=Object(pe.a)(e,["as","children","className","label","icon","size","theme"]);switch(a){case"link":t=b.b;break;case"a":t="a";break;case"button":default:t="button"}var m=Object(n.jsxs)(n.Fragment,{children:[l,Object(n.jsx)("span",{children:s||r})]});return"plain"===u&&(m=r),Object(n.jsx)(t,Object(i.a)(Object(i.a)({className:fe("button","theme-".concat(u),"size-".concat(o),c||"")},d),{},{children:m}))};ve.defaultProps={theme:"plain",as:"button",className:"",label:"",type:"button",icon:null,children:null,size:"md"};var Oe=ve;function ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Drone CI";Object(r.useEffect)((function(){document.querySelector("title").innerText="".concat(e).concat(e?" - ":"").concat(t)}),[e,t])}function xe(){var e=Object(r.useState)((function(){return window.innerHeight||0})),t=Object(o.a)(e,2),a=t[0],n=t[1],c=Object(r.useCallback)((function(e){n(e.currentTarget.innerHeight)}),[]);return Object(r.useLayoutEffect)((function(){return window.addEventListener("resize",c),function(){return window.removeEventListener("resize",c)}}),[c]),a}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e},t=Object(r.useState)((function(){return e(500)})),a=Object(o.a)(t,2),n=a[0],c=a[1],s=xe(),l=Object(r.useCallback)((function(t){if(null!==t){var a=s-t.getBoundingClientRect().top;c(e(a))}}),[s,e]);return{dynamicHeight:n,dynamicHeightRef:l}}var we,ye=a(15);we={},Object(ye.a)(we,x.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(ye.a)(we,x.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 Ne=function(e,t){var a=Object(r.useState)((function(){try{var a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch(n){return console.error(n),t}})),n=Object(o.a)(a,2),c=n[0],s=n[1],l=Object(r.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]},ke=function(e,t){Object(r.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])},Ee={attributes:!0,characterData:!0,subtree:!0,childList:!0},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ee,a=Object(r.useState)(null),n=Object(o.a)(a,2),c=n[0],s=n[1];Object(r.useEffect)((function(){if(c){var a=new ResizeObserver(e);return a.observe(c,t),function(){a.disconnect()}}}),[c,e,t]);var l=Object(r.useCallback)((function(e){s(e)}),[]);return[l]},Se=3e3,Le=function(){return{showSuccess:Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se;h.b.success(e,{autoClose:t})}),[]),showWarning:Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se;h.b.warn(e,{autoClose:t})}),[]),showError:Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se;h.b.error(e,{autoClose:t})}),[])}},Me=a(268),Pe=a.n(Me).a.create({baseURL:v,headers:f?{Authorization:"Bearer ".concat(f)}:{},withCredentials:!0}),Ie=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,Pe(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)}}(),De=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))},Re=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(ye.a)({},t,e[t])))})),a}};function He(e,t){return e.slugt.slug?1:0}function Ae(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 Be=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}var Ue=r.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"});function Ze(e,t){var a=e.title,n=e.titleId,c=Te(e,["title","titleId"]);return r.createElement("svg",We({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Ue)}var Ge=r.forwardRef(Ze),qe=(a.p,a(270)),Ye=a.n(qe),Ke=R.a.bind(Ye.a),Je=function(e){var t=e.query,a=e.slug,r=e.handleLinkClick;return Object(n.jsxs)("div",{className:Ke("search-card-wrapper"),children:[Object(n.jsx)("div",{className:Ke("search-card-left"),children:Object(n.jsx)(W,{})}),Object(n.jsxs)("div",{className:Ke("search-card-right"),children:[Object(n.jsxs)("span",{className:Ke("search-card-kicker"),children:['Found "',Object(n.jsx)("b",{children:t}),'" in'," ",Object(n.jsx)("b",{children:"Repositories"})]}),Object(n.jsx)("p",{className:Ke("search-card-content"),children:Object(n.jsx)(b.b,{to:"/".concat(a),onClick:r,children:a})})]})]})},Qe=function(e){var t=e.isShown,a=e.hide,c=ze(),s=c.repos,i=c.reloadOnce,u=Object(r.useMemo)((function(){return s?Object.values(s):void 0}),[s]);Object(r.useEffect)((function(){return i()}),[i]);var d=Object(r.useState)(""),m=Object(o.a)(d,2),b=m[0],p=m[1],h=Object(r.useState)([]),j=Object(o.a)(h,2),f=j[0],v=j[1],O=Object(r.useRef)(),g=function(){O.current.classList.add(Ke("slide-out")),p(""),setTimeout(a,200)};ke(O,g);var x;return Object(r.useEffect)((function(){t&&O.current.querySelector("input").focus()}),[t]),Object(r.useEffect)((function(){if(b.length||v([]),b.length&&(null===u||void 0===u?void 0:u.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(Be)}(u),b);v(e)}}),[b,u]),b.length&&!f.length?x=Object(n.jsx)("p",{children:"Repos not found"}):f.length&&(x=f.map((function(e){var t=e.slug,a=e.id;return Object(n.jsx)(Je,{slug:t,query:b,handleLinkClick:g},a)}))),t?l.a.createPortal(Object(n.jsxs)("div",{ref:O,className:Ke("wrapper"),children:[Object(n.jsxs)("div",{className:Ke("header"),children:[Object(n.jsx)(Oe,{tabIndex:0,className:Ke("back-btn"),theme:"plain",onClick:g,children:Object(n.jsx)(Ge,{})}),Object(n.jsx)("input",{tabIndex:0,className:Ke("input"),type:"text",placeholder:"Search repositories, branches and builds",onChange:function(e){return p(e.target.value.trim())}})]}),Object(n.jsxs)("div",{className:Ke("wrapper-results"),children:[Object(n.jsx)("span",{className:Ke("kicker"),children:"Search results"}),Object(n.jsx)("div",{className:Ke("results"),children:x})]})]}),document.body):null},Xe=a(271),$e=a.n(Xe),et=R.a.bind($e.a),tt=function(){return Object(n.jsxs)(b.b,{className:et("sidebar-item","anonymous"),to:"/welcome",children:[Object(n.jsx)("div",{role:"img","aria-label":"Click to sign in",children:Object(n.jsx)(le,{})}),Object(n.jsx)("span",{children:"Click to sign in or sign up."})]})};function at(e){var t=e.user,a=Object(r.useState)(!1),c=Object(o.a)(a,2),s=c[0],l=c[1],i=!!t,u=null===t||void 0===t?void 0:t.admin,d=Object(n.jsxs)("div",{className:et("top"),children:[Object(n.jsx)(Oe,{as:"link",to:"/",className:et("sidebar-item","logo"),children:Object(n.jsx)("img",{src:H,alt:"Drone Logo"})}),i&&Object(n.jsx)(Oe,{className:et("sidebar-item","search-btn"),theme:"plain",label:"Search",onClick:function(){return l(!0)},children:Object(n.jsx)(W,{})})]}),m=Object(n.jsxs)("div",{className:et("bottom"),children:[u?Object(n.jsx)(b.c,{to:"/settings",className:et("sidebar-item"),activeClassName:et("sidebar-item-active"),children:Object(n.jsx)(te,{})}):null,i?Object(n.jsx)(b.c,{as:"link",to:"/account",className:et("sidebar-item"),activeClassName:et("sidebar-item-active"),theme:"plain",children:Object(n.jsx)(be,{className:et("avatar"),path:null===t||void 0===t?void 0:t.avatar,text:null===t||void 0===t?void 0:t.login})}):Object(n.jsx)(tt,{})]});return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("aside",{className:et("wrapper"),children:Object(n.jsxs)("nav",{className:et("sidebar"),children:[d,m]})}),t?Object(n.jsx)(Qe,{isShown:s,hide:function(){return l(!1)}}):void 0]})}at.defaultProps={user:null,drawer:null};var nt=a(272),rt=a.n(nt),ct=R.a.bind(rt.a),st=function(e){var t=e.className,a=e.intent,r=e.children;return Object(n.jsx)("div",{className:ct("wrapper","wrapper-".concat(a),t),children:r})};st.defaultProps={className:"",intent:"success"};var lt=st,it=a(273),ot=a.n(it),ut=R.a.bind(ot.a);function dt(e){e.user;return Object(n.jsxs)(n.Fragment,{children:[S&&Object(n.jsx)("div",{className:ut("system-messages-wrapper"),children:Object(n.jsxs)(lt,{intent:"danger",className:ut("message-with-link"),children:["Your Server License is Expired.",Object(n.jsx)("a",{href:"https://docs.drone.io/license-is-expired",target:"_blank",rel:"noopener noreferrer",children:"Learn more"})]})}),L&&Object(n.jsx)("div",{className:ut("system-messages-wrapper"),children:Object(n.jsxs)(lt,{intent:"danger",className:ut("message-with-link"),children:["Your License Limit is Exceeded.",Object(n.jsx)("a",{href:"https://docs.drone.io/license-is-exceeded",target:"_blank",rel:"noopener noreferrer",children:"Learn more"}),"or",Object(n.jsx)("a",{href:"https://drone.io/enterprise",target:"_blank",rel:"noopener noreferrer",children:"Purchase License"})]})})]})}var mt=c.a.createContext(),bt={isRepoNavDisabled:!1,isAccSyncing:null},pt=function(e){var t=e.children,a=c.a.useState(bt);return Object(n.jsx)(mt.Provider,{value:a,children:t})},ht=a(36),jt=function(e){var t=Object(j.b)(e),a=t.data,n=t.error;return{data:a,mutate:t.mutate,isError:n,isLoading:!n&&!a}},ft=[{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"}],vt=function(){var e=Object(m.a)(d.a.mark((function e(t,a){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("/".concat(a.namespace,"/").concat(a.name)===t){e.next=2;break}return e.abrupt("return");case 2:n='arg@"many"@"/api/repos'.concat(t,'/builds?page=1&per_page=50"'),Object(j.c)(n,function(){var e=Object(m.a)(d.a.mark((function e(t){var n,r,c;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.build,null===t||void 0===t?void 0:t.length){e.next=3;break}return e.abrupt("return",[[n]]);case 3:if(r=Object(ht.a)(t[0]),!((c=r.findIndex((function(e){return e.id===n.id})))>0)){e.next=7;break}return e.abrupt("return",[r.slice(0,c).concat(n,r.slice(c+1))]);case 7:if(c){e.next=9;break}return e.abrupt("return",[[n].concat(r.slice(1))]);case 9:return e.abrupt("return",[[n].concat(r.slice(0,r.length-1))]);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!1);case 4:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Ot=function(){var e=ze().update,t=Object(r.useState)(),a=Object(o.a)(t,2)[1],n=Object(r.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=ft.find((function(e){return e.regex.test(r)})))||void 0===a?void 0:a.page){case"Builds":vt(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(j.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(j.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(ht.a)(t.slice(1))):t.slice(0,a).concat(e,t.slice(a+1)):void 0}}(n),!1),e(n)};Object(r.useEffect)((function(){var e="".concat(v,"/api/stream").concat(f?"?access_token=".concat(f):""),t=new EventSource(e);return t.onmessage=c,t.onerror=n,function(){return t.close()}}),[n])},gt=a(274),xt=a.n(gt);function _t(e){if(!e)return[];var t=new xt.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 wt=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a))},yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.withPolling,a=void 0!==t&&t,n=e.timeout,c=void 0===n?1e4:n,s=Object(r.useState)(void 0),l=Object(o.a)(s,2),i=l[0],u=l[1],b=Object(r.useState)(void 0),p=Object(o.a)(b,2),h=p[0],j=p[1],f=Object(r.useState)(!1),v=Object(o.a)(f,2),O=v[0],g=v[1],x=Object(r.useState)(!1),_=Object(o.a)(x,2),w=_[0],y=_[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,Ie("/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(r.useEffect)((function(){N()}),[]),Object(r.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}},Nt=a(275),kt=a.n(Nt),Et=R.a.bind(kt.a);var Ct=function(e){var t=e.children;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:Et("wrapper"),children:[t[0],Object(n.jsx)("div",{className:Et("inner"),children:Object(n.jsx)("main",{className:Et("container","content"),children:t[1]})})]})})},St=(a(361),a(76));function Lt(){return(Lt=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}var Pt=r.createElement("rect",{x:9,y:9,width:13,height:13,rx:2,ry:2}),It=r.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"});function Dt(e,t){var a=e.title,n=e.titleId,c=Mt(e,["title","titleId"]);return r.createElement("svg",Lt({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":n},c),a?r.createElement("title",{id:n},a):null,Pt,It)}var Rt=r.forwardRef(Dt),Ht=(a.p,a(276)),At=a.n(Ht),Bt=R.a.bind(At.a),Ft={token:{copied:!1,snippet:null},api:{copied:!1,snippet:null},cli:{copied:!1,snippet:null}};function zt(){var e,t=Object(r.useState)(Ft),a=Object(o.a)(t,2),c=a[0],s=a[1],l=function(){var e=Object(r.useState)(!1),t=Object(o.a)(e,2),a=t[0],n=t[1],c=Object(r.useState)(""),s=Object(o.a)(c,2),l=s[0],i=s[1],u=Object(r.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 n(!0),e.prev=1,e.next=4,Ie("/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,n(!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(r.useEffect)((function(){j()}),[]),{data:l,isLoading:a,isError:p}}().data;ge("Account");var u=function(e){return function(){s((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(ye.a)({},e,Object(i.a)(Object(i.a)({},t[e]),{},{copied:!0})))})),setTimeout((function(){s((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(ye.a)({},e,Object(i.a)(Object(i.a)({},t[e]),{},{copied:!1})))}))}),2e3)}};return Object(r.useLayoutEffect)((function(){(null===l||void 0===l?void 0:l.token)&&s({token:{copied:!1,snippet:l.token},api:{copied:!1,snippet:["curl -i ".concat(v,"/api/user \\"),'-H "Authorization: Bearer '.concat(l.token,'"')]},cli:{copied:!1,snippet:["export DRONE_SERVER=".concat(v),"export DRONE_TOKEN=".concat(l.token),"drone info"]}})}),[null===l||void 0===l?void 0:l.token]),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("header",{className:Bt("header"),children:[Object(n.jsx)("h1",{children:"Account Settings"}),Object(n.jsx)("a",{href:"/logout",target:"_self",children:"Logout"})]}),Object(n.jsx)("section",{className:Bt("wrapper"),children:c.token.snippet?Object(n.jsxs)("div",{children:[Object(n.jsxs)("div",{className:Bt("row"),children:[Object(n.jsx)("span",{className:Bt("label"),children:"Your personal token:"}),Object(n.jsxs)("pre",{className:Bt("snippet"),children:[Object(n.jsx)(St.CopyToClipboard,{text:c.token.snippet,onCopy:u("token"),children:Object(n.jsx)(Oe,{className:Bt("copy-btn"),children:c.token.copied?"Copied":Object(n.jsx)(Rt,{})})}),Object(n.jsx)("code",{children:c.token.snippet})]})]}),Object(n.jsxs)("div",{className:Bt("row"),children:[Object(n.jsx)("span",{className:Bt("label"),children:"Example API Usage:"}),Object(n.jsxs)("pre",{className:Bt("snippet"),children:[Object(n.jsx)(St.CopyToClipboard,{text:c.api.snippet.join("\n"),onCopy:u("api"),children:Object(n.jsx)(Oe,{className:Bt("copy-btn"),children:c.api.copied?"Copied":Object(n.jsx)(Rt,{})})}),Object(n.jsxs)("code",{children:[Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:"$"}),c.api.snippet[0]]}),Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:">"}),c.api.snippet[1]]})]})]})]}),Object(n.jsxs)("div",{className:Bt("row"),children:[Object(n.jsx)("span",{className:Bt("label"),children:"Example CLI Usage:"}),Object(n.jsxs)("pre",{className:Bt("snippet"),children:[Object(n.jsx)(St.CopyToClipboard,{text:null===(e=c.cli.snippet)||void 0===e?void 0:e.join("\n"),onCopy:u("cli"),children:Object(n.jsx)(Oe,{className:Bt("copy-btn"),children:c.cli.copied?"Copied":Object(n.jsx)(Rt,{})})}),Object(n.jsxs)("code",{children:[Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:"$"}),c.cli.snippet[0]]}),Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:"$"}),c.cli.snippet[1]]}),Object(n.jsxs)("div",{children:[Object(n.jsx)("span",{children:"$"}),c.cli.snippet[2]]})]})]})]})]}):null})]})}var Vt=a(10),Wt=a.n(Vt);function Tt(){return(Tt=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}var Zt=r.createElement("line",{x1:5,y1:12,x2:19,y2:12});function Gt(e,t){var a=e.title,n=e.titleId,c=Ut(e,["title","titleId"]);return r.createElement("svg",Tt({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":n},c),a?r.createElement("title",{id:n},a):null,Zt)}var qt=r.forwardRef(Gt);a.p;function Yt(){return(Yt=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}var Jt=r.createElement("path",{fill:"none",d:"M0 0h20v20H0z"}),Qt=r.createElement("g",{fill:"currentColor",fillRule:"nonzero"},r.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"}),r.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"}));function Xt(e,t){var a=e.title,n=e.titleId,c=Kt(e,["title","titleId"]);return r.createElement("svg",Yt({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":n},c),a?r.createElement("title",{id:n},a):null,Jt,Qt)}var $t=r.forwardRef(Xt);a.p;function ea(){return(ea=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}var aa=r.createElement("line",{x1:5,y1:12,x2:19,y2:12});function na(e,t){var a=e.title,n=e.titleId,c=ta(e,["title","titleId"]);return r.createElement("svg",ea({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":n},c),a?r.createElement("title",{id:n},a):null,aa)}var ra=r.forwardRef(na);a.p;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}var la=r.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"});function ia(e,t){var a=e.title,n=e.titleId,c=sa(e,["title","titleId"]);return r.createElement("svg",ca({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,la)}var oa=r.forwardRef(ia);a.p;function ua(){return(ua=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}var ma=r.createElement("path",{fill:"none",d:"M0 0h20v20H0z"}),ba=r.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"});function pa(e,t){var a=e.title,n=e.titleId,c=da(e,["title","titleId"]);return r.createElement("svg",ua({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":n},c),a?r.createElement("title",{id:n},a):null,ma,ba)}var ha=r.forwardRef(pa),ja=(a.p,a(277)),fa=a.n(ja),va=R.a.bind(fa.a),Oa=function(e){var t=e.className,a=e.status;return Object(n.jsx)("div",{className:va("status","status-".concat(a),t||""),title:"Status: ".concat(a),children:ga(a)})},ga=function(e){switch(e){case"error":case"failure":return Object(n.jsx)($t,{});case"killed":case"declined":case"skipped":return Object(n.jsx)(qt,{});case"running":case"pending":case"waiting_on_dependencies":case"blocked":return Object(n.jsx)(oa,{});case"success":return Object(n.jsx)(ha,{});case"inactive":return Object(n.jsx)(ra,{});default:return null}};Oa.defaultProps={className:void 0,status:void 0};var xa=Oa;function _a(){return(_a=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}var ya=r.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)"}),Na=r.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"}),ka=r.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"}),Ea=r.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)"}),Ca=r.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"}),Sa=r.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"}),La=r.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"}),Ma=r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear",x1:12.5,y1:21.5,x2:70,y2:77.5,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D9DAE5"}),r.createElement("stop",{offset:1,stopColor:"#9293AB"})),r.createElement("linearGradient",{id:"paint1_linear",x1:32.3754,y1:56.2101,x2:47.6364,y2:71.4711,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D9DAE5"}),r.createElement("stop",{offset:1,stopColor:"#9293AB"})));function Pa(e,t){var a=e.title,n=e.titleId,c=wa(e,["title","titleId"]);return r.createElement("svg",_a({width:102,height:89,viewBox:"0 0 102 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,ya,Na,ka,Ea,Ca,Sa,La,Ma)}var Ia=r.forwardRef(Pa),Da=(a.p,a(278)),Ra=a.n(Da),Ha=R.a.bind(Ra.a),Aa={builds:Object(n.jsx)(Ia,{})};function Ba(e){var t=e.page,a=e.title,r=e.message,c=e.children;return Object(n.jsx)("section",{className:Ha("wrapper"),children:Object(n.jsxs)("div",{className:Ha("inner"),children:[Aa[t],Object(n.jsx)("h2",{children:a}),r&&Object(n.jsx)("p",{children:r}),Object(n.jsx)("div",{children:c})]})})}Ba.defaultProps={page:"builds",title:"It looks a little empty here!",children:null,message:null};var Fa=a(279),za=a.n(Fa),Va=R.a.bind(za.a);function Wa(e){var t=e.repo.active,a=Object(p.i)(),c=a.namespace,s=a.name,l=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a,"/builds/branches"))}({namespace:c,name:s}),i=l.data,o=l.isLoading,u=Object(p.g)();Object(r.useLayoutEffect)((function(){t||u.replace("/".concat(c,"/").concat(s,"/settings"))}),[t,u,c,s]);var d=null;return d=o?null:i.length?Object(n.jsx)("section",{className:Va("wrapper"),children:Object(n.jsx)("div",{className:Va("inner"),children:Object(n.jsx)(Ta,{data:i})})}):Object(n.jsx)(Ba,{title:"Your Branch List is Empty.",message:"This list will be populated when you execute a pipeline for an open branch."}),Object(n.jsx)(n.Fragment,{children:d})}function Ta(e){var t=e.data;return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:Va("branch-list-header"),children:[Object(n.jsx)("div",{}),Object(n.jsx)("div",{children:"Branch"}),Object(n.jsx)("div",{children:"Commit"}),Object(n.jsx)("div",{children:"Committer"}),Object(n.jsx)("div",{children:"Message"})]}),Object(n.jsx)("div",{className:Va("branch-list"),children:t.map((function(e){return Object(n.jsx)(b.b,{to:"".concat(e.number),children:Object(n.jsxs)("div",{className:Va("branch-list-item"),children:[Object(n.jsx)("div",{children:Object(n.jsx)(xa,{status:e.status})}),Object(n.jsx)("div",{className:Va("target"),children:e.target}),Object(n.jsx)("div",{className:Va("commit"),children:e.after.slice(0,8)}),Object(n.jsxs)("div",{children:[Object(n.jsx)(be,{className:Va("avatar"),path:e.author_avatar,alt:e.author_login,text:e.author_login}),Object(n.jsx)("span",{children:e.author_login})]}),e.message&&Object(n.jsx)("div",{className:Va("message"),children:Object(n.jsx)("span",{children:e.message})})]})},e.id)}))})]})}Wa.propTypes={match:Wt.a.shape({params:Wt.a.shape({namespace:Wt.a.string.isRequired,name:Wt.a.string.isRequired}).isRequired}).isRequired};var Ua=a(332),Za=(a(366),a(16)),Ga=a(25),qa=a.n(Ga);function Ya(){return(Ya=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}var Ja=r.createElement("g",{opacity:.7},r.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"}));function Qa(e,t){var a=e.title,n=e.titleId,c=Ka(e,["title","titleId"]);return r.createElement("svg",Ya({width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Ja)}var Xa=r.forwardRef(Qa);a.p;function $a(){return($a=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}var tn=r.createElement("g",{opacity:.7},r.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"}));function an(e,t){var a=e.title,n=e.titleId,c=en(e,["title","titleId"]);return r.createElement("svg",$a({width:10,height:2,viewBox:"0 0 10 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,tn)}var nn=r.forwardRef(an);a.p;function rn(){return(rn=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}var sn=r.createElement("g",{opacity:.7},r.createElement("rect",{opacity:.01,width:14,height:14,fill:"black"}),r.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"}));function ln(e,t){var a=e.title,n=e.titleId,c=cn(e,["title","titleId"]);return r.createElement("svg",rn({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,sn)}var on=r.forwardRef(ln);a.p;function un(){return(un=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}var mn=r.createElement("g",{opacity:.6},r.createElement("rect",{opacity:.01,width:16,height:16,fill:"black"}),r.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"}));function bn(e,t){var a=e.title,n=e.titleId,c=dn(e,["title","titleId"]);return r.createElement("svg",un({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,mn)}var pn=r.forwardRef(bn),hn=(a.p,a(281)),jn=a.n(hn),fn=R.a.bind(jn.a),vn=function(e){var t=e.engine,a=Object(r.useCallback)((function(){t.zoomToFit()}),[t]),c=Object(r.useCallback)((function(){t.getModel().setZoomLevel(100),t.getModel().setOffset(0,0),t.repaintCanvas()}),[t]),s=Object(r.useCallback)((function(){var e=t.getModel().getZoomLevel();t.getModel().setZoomLevel(e+20),t.repaintCanvas()}),[t]),l=Object(r.useCallback)((function(){var e=t.getModel().getZoomLevel();t.getModel().setZoomLevel(e-20),t.repaintCanvas()}),[t]);return Object(n.jsxs)("div",{className:fn("diagram-controls"),children:[Object(n.jsx)(Oe,{className:fn("btn"),title:"Zoom to fit",onClick:a,children:Object(n.jsx)(pn,{})}),Object(n.jsx)(Oe,{className:fn("btn"),title:"Reset zoom",onClick:c,children:Object(n.jsx)(on,{})}),Object(n.jsxs)("div",{className:fn("diagram-controls-group"),children:[Object(n.jsx)(Oe,{className:fn("btn","btn-zoom-in"),title:"Zoom in",onClick:s,children:Object(n.jsx)(Xa,{})}),Object(n.jsx)(Oe,{className:fn("btn","btn-zoom-out"),title:"Zoom out",onClick:l,children:Object(n.jsx)(nn,{})})]})]})},On=a(55),gn=a(56),xn=a(58),_n=a(57),wn=a(66),yn=a(37),Nn=function(e){Object(xn.a)(a,e);var t=Object(_n.a)(a);function a(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(On.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(gn.a)(a,[{key:"setIsImperativelySelected",value:function(e){this.isImperativelySelected=e}},{key:"addPort",value:function(e){return Object(wn.a)(Object(yn.a)(a.prototype),"addPort",this).call(this,e),e}},{key:"addInPort",value:function(e){var t=new Ga.DefaultPortModel({in:!0,name:e,label:e});return this.addPort(t)}},{key:"addOutPort",value:function(e){var t=new Ga.DefaultPortModel({in:!1,name:e,label:e});return this.addPort(t)}},{key:"serialize",value:function(){return Object(i.a)(Object(i.a)({},Object(wn.a)(Object(yn.a)(a.prototype),"serialize",this).call(this)),{},{color:this.color})}},{key:"deserialize",value:function(e,t){Object(wn.a)(Object(yn.a)(a.prototype),"deserialize",this).call(this,e,t),this.color=e.color}}]),a}(Ga.NodeModel),kn=a(282),En=a.n(kn),Cn=R.a.bind(En.a),Sn=function(e){var t=e.engine,a=e.node;return Object(n.jsxs)("div",{className:Cn("node-wrapper"),children:[Object(n.jsxs)("button",{className:Cn("node-inner",{"node-inner-selected":a.isImperativelySelected},"node-inner-".concat(a.options.status)),type:"button",children:[a.getPort("in")&&Object(n.jsx)(Ga.PortWidget,{className:Cn("port","port-in"),engine:t,port:a.getPort("in"),children:Object(n.jsx)("div",{className:Cn("circle-port","circle-port-in")})}),a.getPort("out")&&Object(n.jsx)(Ga.PortWidget,{className:Cn("port","port-out"),engine:t,port:a.getPort("out"),children:Object(n.jsx)("div",{className:Cn("circle-port","circle-port-out")})}),Object(n.jsx)(xa,{className:Cn("status"),status:a.options.status})]}),Object(n.jsx)("p",{className:Cn("name"),children:a.options.name})]})},Ln=function(e){Object(xn.a)(a,e);var t=Object(_n.a)(a);function a(){return Object(On.a)(this,a),t.call(this,"node-default")}return Object(gn.a)(a,[{key:"generateModel",value:function(){return new Nn}},{key:"generateReactWidget",value:function(e){return Object(n.jsx)(Sn,{engine:this.engine,node:e.model})}}]),a}(Za.AbstractReactFactory),Mn=function(e){Object(xn.a)(a,e);var t=Object(_n.a)(a);function a(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(On.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 Ga.DefaultPortModel({in:!1,name:"out"})):e.addPort(new Ga.DefaultPortModel({in:!0,name:"in"})),e}return Object(gn.a)(a,[{key:"serialize",value:function(){return Object(wn.a)(Object(yn.a)(a.prototype),"serialize",this).call(this)}},{key:"deserialize",value:function(e,t){Object(wn.a)(Object(yn.a)(a.prototype),"deserialize",this).call(this,e,t)}}]),a}(Ga.NodeModel);function Pn(){return(Pn=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}var Dn=r.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"});function Rn(e,t){var a=e.title,n=e.titleId,c=In(e,["title","titleId"]);return r.createElement("svg",Pn({width:9,height:12,viewBox:"0 0 9 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Dn)}var Hn=r.forwardRef(Rn),An=(a.p,a(283)),Bn=a.n(An),Fn=R.a.bind(Bn.a),zn=function(e){var t=e.engine,a=e.node;return Object(n.jsx)("div",{className:Fn("node-wrapper"),children:Object(n.jsxs)("button",{className:Fn("node-inner"),type:"button",children:[a.getPort("in")&&Object(n.jsx)(Ga.PortWidget,{className:Fn("port","port-in"),engine:t,port:a.getPort("in"),children:Object(n.jsx)("div",{className:Fn("circle-port","circle-port-in")})}),a.getPort("out")&&Object(n.jsx)(Ga.PortWidget,{className:Fn("port","port-out"),engine:t,port:a.getPort("out"),children:Object(n.jsx)("div",{className:Fn("circle-port","circle-port-out")})}),a.isStart?Object(n.jsx)(Hn,{}):Object(n.jsx)("i",{className:Fn("fake-icon-stop")})]})})},Vn=function(e){Object(xn.a)(a,e);var t=Object(_n.a)(a);function a(){return Object(On.a)(this,a),t.call(this,"node-edge")}return Object(gn.a)(a,[{key:"generateModel",value:function(){return new Mn}},{key:"generateReactWidget",value:function(e){return Object(n.jsx)(zn,{engine:this.engine,node:e.model})}}]),a}(Za.AbstractReactFactory),Wn=a(284),Tn=a.n(Wn),Un=R.a.bind(Tn.a),Zn=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)},Gn=function(e){var t=e.items,a=e.nodeSelectHandler,c=e.selectedNodeNumber,s=e.graphOffsetX,l=e.graphOffsetY,i=e.kind,o=void 0===i?"step":i,u=Object(r.useMemo)((function(){return new Ga.DagreEngine({graph:{rankdir:"LR",ranker:"network-simplex",marginx:s,marginy:l,nodesep:35,edgesep:10,ranksep:75},includeLinks:!1})}),[s,l]),d=Object(r.useMemo)((function(){var e,n=null!==(e=null===t||void 0===t?void 0:t.map((function(e){var t=new Nn({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 Mn,c=new Mn({isStart:!1});return[r].concat(n,c)}return n}),[t,a]),m=Object(r.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}))}(d,o)){d.forEach((function(t,a){var n;a!==d.length-1&&(a||Zn(t,d[a+1],e),(null===(n=t.options.depends_on)||void 0===n?void 0:n.length)&&d.filter((function(e){return t.options.depends_on.includes(e.options.name)})).forEach((function(a){Zn(a,t,e)})))}));var t=d.slice(1,d.length-1),a=d[0],n=d[d.length-1];t.forEach((function(t){Object.keys(t.getPort("in").getLinks()).length||Zn(a,t,e),Object.keys(t.getPort("out").getLinks()).length||Zn(t,n,e)}))}else d.forEach((function(t,a){a!==d.length-1&&Zn(t,d[a+1],e)}));return e}),[d,o]),b=Object(r.useMemo)((function(){return qa()()}),[]),p=Object(r.useMemo)((function(){return new Ga.DiagramModel}),[]);return b.getNodeFactories().registerFactory(new Ln),b.getNodeFactories().registerFactory(new Vn),Object(r.useLayoutEffect)((function(){d.length>=3&&d.slice(1,d.length-1).forEach((function(e){e.setIsImperativelySelected(e.getOptions().number==c)}))}),[d,c]),Object(r.useLayoutEffect)((function(){var e=p.getNodes(),t=p.getLinks();e.length&&e.map((function(e){return p.removeNode(e)})),t.length&&t.map((function(e){return p.removeLink(e)})),p.addAll.apply(p,Object(ht.a)(d.concat(m))),u.redistribute(p),b.repaintCanvas()}),[b,p,d,m,u]),b.setModel(p),p.setLocked(!0),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)(Za.CanvasWidget,{className:Un("diagram-wrapper"),engine:b}),Object(n.jsx)(vn,{engine:b})]})},qn=a(285),Yn=a.n(qn),Kn=a(598),Jn=a(599);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}var $n=r.createElement("circle",{cx:12,cy:12,r:10}),er=r.createElement("polyline",{points:"12 6 12 12 16 14"});function tr(e,t){var a=e.title,n=e.titleId,c=Xn(e,["title","titleId"]);return r.createElement("svg",Qn({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":n},c),a?r.createElement("title",{id:n},a):null,$n,er)}var ar=r.forwardRef(tr),nr=(a.p,a(286)),rr=a.n(nr),cr=R.a.bind(rr.a),sr=function(e,t){return e.toString().padStart(t?1:2,"0")},lr=function(e){var t=e.started,a=e.finished,n=e.withLetters,r=void 0!==n&&n;if(!t||!a)return"";var c=Object(Kn.a)({start:new Date(1e3*t),end:new Date(1e3*a)}),s=c.hours,l=c.minutes,i=c.seconds;return r?"".concat(s?"".concat(sr(s,r),"h"):""," ").concat(sr(l,r),"m ").concat(sr(i,r),"s"):"".concat(s?"".concat(sr(s),":"):"").concat(sr(l),":").concat(sr(i))},ir=function(e){var t=e.className,a=e.withIcon,r=e.label,c=e.elapsed;return Object(n.jsxs)("div",{className:cr("elapsed-static",t||""),children:[a?Object(n.jsx)(ar,{}):null,r&&Object(n.jsxs)("span",{children:[r,"\xa0"]}),c]})},or=function(e){var t=e.started,a=e.className,r=e.withIcon,s=e.withLetters,l=e.label,i=function(e){var t=e.started,a=e.withLetters,n=c.a.useState((function(){return lr({started:t,finished:Date.now()/1e3,withLetters:a})})),r=Object(o.a)(n,2),s=r[0],l=r[1];return c.a.useEffect((function(){var e=setInterval((function(){l(lr({started:t,finished:Date.now()/1e3,withLetters:a}))}),1e3);return function(){return clearInterval(e)}}),[t,a]),s}({started:t,withLetters:s});return Object(n.jsx)(ir,{className:a,elapsed:i,withIcon:r,label:l})},ur=function(e){var t=e.className,a=e.started,r=e.finished,c=e.withIcon,s=e.withLetters,l=e.since,i=e.label,o=l?function(e){var t=e.dateSince;return Object(Jn.a)(1e3*t,{addSuffix:!0})}({dateSince:r}):lr({started:a,finished:r,withLetters:s});return Object(n.jsx)(ir,{elapsed:o,withIcon:c,className:t,label:i})},dr=function(e){var t=e.started,a=e.finished;return t&&!a?Object(n.jsx)(or,Object(i.a)({},e)):Object(n.jsx)(ur,Object(i.a)({},e))};function mr(){return(mr=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}var pr=r.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"}),hr=r.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"});function jr(e,t){var a=e.title,n=e.titleId,c=br(e,["title","titleId"]);return r.createElement("svg",mr({width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,pr,hr)}var fr=r.forwardRef(jr);a.p;function vr(){return(vr=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}var gr=r.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),xr=r.createElement("polyline",{points:"7 10 12 15 17 10"}),_r=r.createElement("line",{x1:12,y1:15,x2:12,y2:3});function wr(e,t){var a=e.title,n=e.titleId,c=Or(e,["title","titleId"]);return r.createElement("svg",vr({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":n},c),a?r.createElement("title",{id:n},a):null,gr,xr,_r)}var yr=r.forwardRef(wr);a.p;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}var Er=r.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"}),Cr=r.createElement("line",{x1:1,y1:1,x2:23,y2:23});function Sr(e,t){var a=e.title,n=e.titleId,c=kr(e,["title","titleId"]);return r.createElement("svg",Nr({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":n},c),a?r.createElement("title",{id:n},a):null,Er,Cr)}var Lr=r.forwardRef(Sr);a.p;function Mr(){return(Mr=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}var Ir=r.createElement("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),Dr=r.createElement("circle",{cx:12,cy:12,r:3});function Rr(e,t){var a=e.title,n=e.titleId,c=Pr(e,["title","titleId"]);return r.createElement("svg",Mr({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":n},c),a?r.createElement("title",{id:n},a):null,Ir,Dr)}var Hr=r.forwardRef(Rr),Ar=(a.p,a(287)),Br=a.n(Ar),Fr=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)";default:return"Loading..."}},zr=function(e,t){var a=null===e||void 0===e?void 0:e.length;if(!t&&a&&a>O){var n=Math.floor(a/O),r=a%O;return e.slice((n-1)*O+r)}return e},Vr=(a(594),R.a.bind(Br.a)),Wr=function(e){var t=e.areLogsLoading,a=e.toggleFollowLogs,r=e.shouldFollowLogs,c=e.handleDownloadClick,s=e.showDownloadBtn,l=e.showCloseBtn,i=e.showFollowLogsBtn,o=e.onCloseBtnClick;return Object(n.jsx)("header",{className:Vr("header"),children:Object(n.jsxs)("div",{className:Vr("header-inner"),children:[Object(n.jsx)("div",{className:Vr("info"),children:Object(n.jsx)("h3",{children:"Console Logs"})}),!t&&Object(n.jsxs)("div",{className:Vr("controls"),children:[i&&Object(n.jsx)(Oe,{className:Vr("controls-logs-toggler"),onClick:a,children:r?Object(n.jsx)(Lr,{}):Object(n.jsx)(Hr,{})}),s&&Object(n.jsx)(Oe,{onClick:c,children:Object(n.jsx)(yr,{})}),l&&Object(n.jsx)(Oe,{className:Vr("btn-close"),onClick:o,children:Object(n.jsx)(fr,{})})]})]})})};Wr.defaultProps={showFollowLogsBtn:!1,showDownloadBtn:!1,showCloseBtn:!1,onCloseBtnClick:void 0};var Tr=function(e){var t=e.stepStatus,a=e.stepError,r=e.stepExitCode,c=e.tmateLink;return Object(n.jsx)("footer",{className:Vr("footer"),children:Object(n.jsxs)("div",{className:Vr("summary"),children:[Object(n.jsxs)("div",{className:Vr("summary-info"),children:[t&&Object(n.jsx)(xa,{className:Vr("summary-status"),status:t}),Fr(t,a,r)]}),Object(n.jsx)("div",{className:Vr("summary-controls"),children:c?Object(n.jsx)("a",{className:Vr("tmate-link"),href:c,target:"_blank",rel:"noopener noreferrer",children:"Open Remote Session"}):null})]})})};Tr.defaultProps={stepStatus:"",stepError:"",stepExitCode:void 0,tmateLink:""};var Ur=function(e){var t=e.shouldShow,a=e.handleShowAllLogsClick;return t?Object(n.jsx)(Oe,{className:Vr("btn-show-all-logs"),onClick:a,children:"Show all logs"}):null},Zr=function(e){return e.shouldShow?Object(n.jsx)("div",{className:Vr("line-number"),children:"Loading..."}):null},Gr=function(e){var t=e.out,a=e.pos,r=e.html,c=e.time;return Object(n.jsxs)("div",{className:Vr("line"),children:[Object(n.jsx)("span",{className:Vr("line-number"),children:a+1}),r?Object(n.jsx)("span",{className:R()("loc-html",Vr("line-content")),dangerouslySetInnerHTML:{__html:r}}):Object(n.jsx)("span",{className:Vr("line-content"),children:t}),Object(n.jsx)("span",{className:Vr("line-time"),children:"".concat(c,"s")})]},a)},qr=c.a.forwardRef((function(e,t){var a=e.className,c=e.height,s=e.showHeader,l=e.showFooter,u=e.shownLogsLimit,d=e.tmateLink,m=e.logs,b=e.showLogsLoadingLine,p=e.areLogsLoading,h=e.stepData,j=e.showDownloadBtn,f=e.showFollowLogsBtn,v=e.logsBlobName,O=e.showCloseBtn,g=e.onCloseBtnClick,x=Object(r.useState)(!1),_=Object(o.a)(x,2),w=_[0],y=_[1],N=Object(r.useState)(!1),k=Object(o.a)(N,2),E=k[0],C=k[1],S=Object(r.useRef)();return Object(r.useEffect)((function(){var e;E&&"running"===h.status&&m.length?null===(e=S.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}):C(!1)}),[E,h.status,m.length]),Object(n.jsxs)("div",{className:Vr("wrapper",a),ref:t,style:{height:c},children:[s&&Object(n.jsx)(Wr,{areLogsLoading:p,showDownloadBtn:j,showFollowLogsBtn:f,showCloseBtn:O,shouldFollowLogs:E,toggleFollowLogs:function(){return C((function(e){return!e}))},handleDownloadClick:function(){return function(e,t){for(var a="",n=0;nu&&!w,handleShowAllLogsClick:function(){return y(!0)}}),Object(n.jsxs)("code",{className:R()("ansi-hook",Vr("output")),children:[Object(n.jsx)(Zr,{shouldShow:b}),m.length&&!p?zr(m,w).map((function(e){return Object(r.createElement)(Gr,Object(i.a)(Object(i.a)({},e),{},{key:e.pos}))})):null,Object(n.jsx)("div",{ref:S})]})]}),l&&Object(n.jsx)(Tr,{stepStatus:h.status,stepError:h.error,stepExitCode:h.exit_code,tmateLink:d})]})}));qr.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"};var Yr=qr,Kr=a(288),Jr=a.n(Kr),Qr=function(e){switch(e){case"success":return"success";case"failure":case"declined":case"error":case"killed":return"danger";default:return"warning"}},Xr=function(e){var t=e.buildStatus,a=e.stageStatus,n=e.stageName,r=e.stepName,c=e.stepError,s=e.logsHookError;return"skipped"===a?"".concat(n,": Skipped"):"killed"===a?"".concat(n,": ").concat(r," - Killed (Cancelled)"):c?"".concat(r,": ").concat(c):"error"===a?"".concat(n,": ").concat(r," - Error"):s?"sql: no rows in result set"===s.message?"killed"===t?"This pipeline was cancelled":"Step does not exist":s.message:"Something went wrong, please, reload the page or restart the build"},$r=function(e){var t=e.buildStatus,a=e.stageName,n=e.stepName,r=e.stepStatus,c=e.stageStatus,s=e.stageError;if("declined"===t)return"This pipeline was declined";var l=[a];return n?l.push("- ".concat(n,": ").concat(r)):s?l.push(": ".concat(s)):l.push(": ".concat(c)),l.join(" ")},ec=function(e){var t=e.stageStatus,a=e.stepStatus,n=e.logsExist,r=e.currentCompState;if("error"===t)return E;switch(a){case"skipped":return k;case"error":return E;case"killed":return n?N:r;case"failure":return N;case"running":return y;case"pending":case"waiting_on_dependencies":return w;case"success":return r!==w||n?n?N:k:N;default:return r}},tc=function(e){var t,a=e.buildStatus,n=e.state;switch(a){case"declined":return k;case"error":case"killed":return"skipped"===n.stageStatus?k:(null===(t=n.logs)||void 0===t?void 0:t.length)||n.compState===w?n.compState:k;default:return n.compState}},ac="toggle_logs_following",nc="set_show_all_logs",rc="update_is_data_loading",cc="update_build_status",sc="update_stage_status",lc="update_stage_name",ic="update_stage_error",oc="update_step_data",uc="update_logs_hook_error",dc="update_logs",mc="update_are_logs_loading",bc="update_has_build_debug_mode",pc="set_logs",hc=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=w;return t||[n,r,i.status].includes("pending")?o=w:"error"===r?o=E:"running"===i.status&&(o=y),{compState:o,shouldFollowLogs:!1,showAllLogs:!1,logs:[],stepData:i,isDataLoading:t,stageName:c,stageStatus:r,stageError:s,buildStatus:n,logsHookError:{},tmateLink:"",hasBuildDebugMode:a}},jc=function(e,t){var a,n,r,c,s,l,o;switch(t.type){case ac:return Object(i.a)(Object(i.a)({},e),{},{shouldFollowLogs:!e.shouldFollowLogs});case nc:return Object(i.a)(Object(i.a)({},e),{},{showAllLogs:!0});case cc:return Object(i.a)(Object(i.a)({},e),{},{buildStatus:t.payload,compState:tc({buildStatus:t.payload,state:e})});case bc:return Object(i.a)(Object(i.a)({},e),{},{hasBuildDebugMode:t.payload});case sc:return Object(i.a)(Object(i.a)({},e),{},{stageStatus:t.payload,compState:"error"===t.payload?E:e.compState});case lc:return Object(i.a)(Object(i.a)({},e),{},{stageName:t.payload});case rc:return Object(i.a)(Object(i.a)({},e),{},{isDataLoading:t.payload,compState:t.payload?w:ec({stageStatus:e.stageStatus,stepStatus:e.stepData.status,logsExist:null===(a=e.logs)||void 0===a?void 0:a.length,currentCompState:e.compState})});case oc:return Object(i.a)(Object(i.a)({},e),{},{stepData:Object(i.a)({},t.payload),compState:ec({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 uc:return Object(i.a)(Object(i.a)({},e),{},{logsHookError:t.payload,compState:t.payload?E:e.compState});case dc:return Object(i.a)(Object(i.a)({},e),{},{logs:e.logs.concat(t.payload),tmateLink:e.tmateLink||(s=t.payload,l=e.stepData.status,o=e.hasBuildDebugMode,s&&"running"===l&&o&&s.out.startsWith("web session: ")?s.out.replace("web session: ","").replace("\n",""):"")});case pc:return Object(i.a)(Object(i.a)({},e),{},{logs:t.payload,compState:t.payload.length||e.compState===w?e.compState:k});case mc:return Object(i.a)(Object(i.a)({},e),{},{compState:t.payload?w:ec({stageStatus:e.stageStatus,stepStatus:e.stepData.status,logsExist:null===(c=e.logs)||void 0===c?void 0:c.length,currentCompState:e.compState})});case ic:return Object(i.a)(Object(i.a)({},e),{},{stageError:e.compState===k?t.payload:void 0,compState:t.payload.length||e.compState===w?e.compState:k});default:return e}},fc=R.a.bind(Jr.a),vc=function(e){var t=e.className,a=e.children,r=e.style;return Object(n.jsx)("div",{className:fc("non-logs-container",t),"data-container":"non-logs",style:r,children:a})},Oc={setLogs:pc,setError:uc,setIsLoading:mc},gc=["running","pending","skipped","waiting_on_dependencies"],xc=gc.slice(1);function _c(e){var t,a,c=e.consoleProps,s=e.hasBuildDebugMode,l=e.isDataLoading,u=e.stageStatus,d=e.stageName,m=e.stepData,b=e.buildStatus,h=e.stageError,x=Object(p.i)(),_=Object(r.useReducer)(jc,e,hc),E=Object(o.a)(_,2),S=E[0],L=E[1],M="logs_".concat(x.namespace,"_").concat(x.name,"_").concat(x.build,"_").concat(x.stage,"_").concat(x.step),P=_e(),I=P.dynamicHeightRef,D=P.dynamicHeight;if(function(e,t,a,n){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(j.b)((function(){return!0===n?"/api/repos/".concat(c,"/").concat(s,"/builds/").concat(l,"/logs/").concat(o,"/").concat(d):null})),b=m.data,p=m.error,h=Object(r.useMemo)((function(){return _t(b)}),[b]);Object(r.useEffect)((function(){n&&h.length&&e({type:t.setLogs,payload:h})}),[e,h,t.setLogs,n]),Object(r.useEffect)((function(){n&&e(void 0!==b||p?{type:t.setIsLoading,payload:!1}:{type:t.setIsLoading,payload:!0})}),[e,b,t.setIsLoading,n,p]),Object(r.useEffect)((function(){n&&e({type:t.setError,payload:p})}),[p,e,n,t.setError])}(L,Oc,x,S.compState!==y&&!!S.stageStatus&&!!S.stepData.status&&!xc.includes(S.stageStatus)&&!gc.includes(S.stepData.status)),function(e,t,a,n){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(r.useState)(),p=Object(o.a)(b,2)[1],h=Object(r.useRef)(),j=Object(r.useMemo)((function(){var e="".concat(c,"/").concat(s,"/").concat(l,"/").concat(u,"/").concat(m);return n?"".concat(v,"/api/stream/").concat(e).concat(f?"?access_token=".concat(f):""):"/api/repos/".concat(e)}),[n,c,s,l,u,m]),O=Object(r.useCallback)((function(a){var n=_t(JSON.parse(a.data));e({type:t,payload:n})}),[e,t]),g=Object(r.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(r.useEffect)((function(){var e;return n?(null===(e=h.current)||void 0===e||e.close(),h.current=new EventSource(j),h.current.onmessage=O,h.current.onerror=g):g(),function(){return g(void 0,!1)}}),[n,g,j,O])}(L,dc,x,S.compState===y),Object(r.useLayoutEffect)((function(){return L({type:pc,payload:[]}),function(){L({type:pc,payload:[]})}}),[x.stage,x.step]),Object(r.useEffect)((function(){L({type:bc,payload:s})}),[s]),Object(r.useLayoutEffect)((function(){L({type:rc,payload:l})}),[l]),Object(r.useEffect)((function(){u&&L({type:sc,payload:u})}),[u]),Object(r.useEffect)((function(){d&&L({type:lc,payload:d})}),[d]),Object(r.useEffect)((function(){L({type:oc,payload:m})}),[m]),Object(r.useEffect)((function(){b&&L({type:cc,payload:b})}),[b]),Object(r.useEffect)((function(){h&&L({type:ic,payload:h})}),[h]),(null===S||void 0===S||null===(t=S.stepData)||void 0===t?void 0:t.status)===g)return Object(n.jsx)(vc,{className:fc("no-logs"),children:Object(n.jsx)("div",{className:fc("error-wrapper"),children:Object(n.jsx)(lt,{intent:"danger",children:Xr({buildStatus:S.buildStatus,stageStatus:S.stageStatus,stageName:S.stageName,stepName:S.stepData.name,stepError:S.stepData.error,logsHookError:S.logsHookError})})})});switch(null===S||void 0===S?void 0:S.compState){case k:return Object(n.jsx)(vc,{className:fc("no-logs"),children:Object(n.jsx)(lt,{intent:Qr(S.stageStatus),children:$r({buildStatus:S.buildStatus,stageStatus:S.stageStatus,stageName:S.stageName,stepName:S.stepData.name,stepStatus:S.stepData.status,stageError:S.stageError})})});case C:return null}return Object(n.jsx)(Yr,Object(i.a)({ref:I,height:D,shownLogsLimit:O,tmateLink:S.tmateLink,logs:S.logs,showLogsLoadingLine:S.compState===w||S.compState===y&&!S.logs.length,areLogsLoading:S.compState===w,stepData:S.stepData,showDownloadBtn:(null===(a=S.stepData)||void 0===a?void 0:a.stopped)&&S.compState===N,showFollowLogsBtn:S.compState===y,logsBlobName:M},c))}_c.defaultProps={stepData:{},hasBuildDebugMode:!1,buildStatus:"",stageStatus:"",stageName:"",stageError:void 0,consoleProps:{showHeader:!0,showFooter:!0}},vc.defaultProps={style:void 0};var wc=a(289),yc=a.n(wc),Nc=R.a.bind(yc.a),kc=function(e){var t,a,c,s,l,i,o,u=e.data,d=e.isDataLoading,m=e.isShown,b=e.hide,h=Object(p.i)(),j=h.stage,f=void 0===j?1:j,v=h.step,O=void 0===v?1:v,g=null===u||void 0===u||null===(t=u.stages)||void 0===t||null===(a=t[f-1])||void 0===a||null===(c=a.steps)||void 0===c?void 0:c[O-1],x=Object(r.useRef)();if(!m||!g)return null;return Object(n.jsxs)("div",{className:Nc("step"),ref:x,children:[Object(n.jsxs)("div",{className:Nc("step-header"),children:[Object(n.jsx)(xa,{className:Nc("status"),status:null===g||void 0===g?void 0:g.status}),Object(n.jsx)("h3",{className:Nc("heading"),children:null===g||void 0===g?void 0:g.name}),Object(n.jsx)(Oe,{onClick:function(){x.current.classList.add(Nc("slide-out")),setTimeout(b,200)},children:Object(n.jsx)(fr,{})})]}),Object(n.jsx)("div",{className:Nc("step-meta"),children:["pending","skipped","blocked","waiting_on_dependencies"].includes(null===g||void 0===g?void 0:g.status)?Object(n.jsx)("div",{children:"Step data is unavailable"}):Object(n.jsxs)("dl",{children:[Object(n.jsx)("dt",{children:"Started:"}),Object(n.jsx)("dd",{children:De({date:null===g||void 0===g?void 0:g.started})}),(null===g||void 0===g?void 0:g.stopped)&&Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("dt",{children:"Finished:"}),Object(n.jsx)("dd",{children:De({date:null===g||void 0===g?void 0:g.stopped})})]}),Object(n.jsx)("dt",{children:"Duration:"}),Object(n.jsx)("dd",{children:Object(n.jsx)(dr,{started:null===g||void 0===g?void 0:g.started,finished:null===g||void 0===g?void 0:g.stopped,withLetters:!0})})]})}),Object(n.jsx)(_c,{isDataLoading:d,hasBuildDebugMode:(null===u||void 0===u?void 0:u.debug)||!1,buildStatus:null===u||void 0===u?void 0:u.status,stageStatus:null===u||void 0===u||null===(s=u.stages)||void 0===s||null===(l=s[f-1])||void 0===l?void 0:l.status,stageName:null===u||void 0===u||null===(i=u.stages)||void 0===i||null===(o=i[f-1])||void 0===o?void 0:o.name,stepData:g,consoleProps:{showFooter:!1,showHeader:!0}})]})},Ec=R.a.bind(Yn.a),Cc=function(e){var t,a,c=e.data,s=e.isDataLoading,l=Object(p.i)(),i=l.namespace,u=l.name,d=l.build,m=l.stage,b=void 0===m?1:m,h=l.step,j=void 0===h?1:h,f=Object(p.g)(),v=Object(r.useState)(!1),O=Object(o.a)(v,2),g=O[0],x=O[1],_=_e((function(e){return e})),w=_.dynamicHeightRef,y=_.dynamicHeight;return Object(n.jsxs)("section",{className:Ec("graph-wrapper"),ref:w,style:{height:y},children:[Object(n.jsxs)(Ua.a,{split:"horizontal",minSize:190,defaultSize:y/2,maxSize:y-190,children:[Object(n.jsx)("div",{className:Ec("graph-stages"),children:Object(n.jsx)(Gn,{kind:"stage",items:null===c||void 0===c?void 0:c.stages,nodeSelectHandler:function(e){f.replace("/".concat(i,"/").concat(u,"/").concat(d,"/").concat(e,"/1"))},selectedNodeNumber:b,graphOffsetX:60,graphOffsetY:60})}),Object(n.jsx)("div",{className:Ec("graph-steps"),children:Object(n.jsx)(Gn,{items:null===c||void 0===c||null===(t=c.stages)||void 0===t||null===(a=t[b-1])||void 0===a?void 0:a.steps,nodeSelectHandler:function(e){x(!0),f.replace("/".concat(i,"/").concat(u,"/").concat(d,"/").concat(b,"/").concat(e))},selectedNodeNumber:j,graphOffsetX:60,graphOffsetY:60})})]}),Object(n.jsx)(kc,{isShown:g,hide:function(){return x(!1)},isDataLoading:s,data:c})]})},Sc=a(290),Lc=a.n(Sc),Mc=R.a.bind(Lc.a),Pc=function(){var e=Object(r.useState)(!1),t=Object(o.a)(e,2),a=t[0],n=t[1];return[a,function(){return n(!a)}]},Ic=function(e){var t=e.isShowing,a=e.title,c=e.children,s=e.hide,i=e.mode,o=void 0===i?"default":i,u=Object(r.useRef)(null);return ke(u,s),Object(r.useLayoutEffect)((function(){return window.document.body.style.overflow=t?"hidden":"unset",function(){return window.document.body.style.oveflow="unset"}}),[t]),t?l.a.createPortal(Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:Mc("overlay")}),Object(n.jsx)("div",{className:Mc("modal-wrapper","".concat(o)),tabIndex:-1,role:"dialog","aria-modal":!0,"aria-hidden":!0,children:Object(n.jsxs)("div",{className:Mc("modal-inner"),ref:u,children:[Object(n.jsxs)("header",{className:Mc("modal-header"),children:[Object(n.jsx)("h3",{className:Mc("modal-title"),children:a}),Object(n.jsx)(Oe,{theme:"plain",type:"button",onClick:s,children:Object(n.jsx)(fr,{})})]}),Object(n.jsx)("div",{className:Mc("modal-content"),children:c})]})})]}),document.body):null},Dc=a(291),Rc=a.n(Dc);function Hc(){return(Hc=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}var Bc=r.createElement("polyline",{points:"6 9 12 15 18 9"});function Fc(e,t){var a=e.title,n=e.titleId,c=Ac(e,["title","titleId"]);return r.createElement("svg",Hc({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":n},c),a?r.createElement("title",{id:n},a):null,Bc)}var zc=r.forwardRef(Fc),Vc=(a.p,a(292)),Wc=a.n(Vc),Tc=R.a.bind(Wc.a);function Uc(e){var t=e.isDataLoading,a=e.stages,r=void 0===a?[]:a,c=e.className,s=e.onStepClick,l=Object(p.i)(),i=l.namespace,o=l.name,u=l.build,d=l.stage,m=void 0===d?1:d,b=_e(),h=b.dynamicHeight,j=b.dynamicHeightRef;return Object(n.jsxs)("div",{className:Tc("wrapper"),children:[Object(n.jsxs)("div",{className:Tc("header"),children:[Object(n.jsx)("h3",{className:Tc("title"),children:"Pipeline stages"}),Object(n.jsx)("span",{className:Tc("counter"),children:t?null:"".concat(r.length," ").concat(1===r.length?"stage":"stages")})]}),Object(n.jsx)("nav",{className:R()(Tc("inner"),c),ref:j,style:{height:h},children:t?Object(n.jsx)("div",{className:Tc("stage"),children:Object(n.jsx)("h3",{className:Tc("stage-header"),children:"Loading..."})}):r.map((function(e){var t=e.id,a=e.name,r=e.status,c=e.started,l=e.stopped,d=e.steps,b=e.number;return!(null===d||void 0===d?void 0:d.length)||["skipped","blocked","pending","waiting_on_dependencies"].includes(r)?Object(n.jsx)(Gc,{stageId:t,stageName:a,stageStatus:r,stageStarted:c,stageStopped:l},t):Object(n.jsx)(Zc,{stageId:t,stageName:a,stageStatus:r,stageStarted:c,stageStopped:l,stageNumber:b,steps:d,namespace:i,name:o,build:u,stageInPath:m,onStepClick:s},t)}))})]})}var Zc=function(e){var t=e.stageStatus,a=e.stageName,c=e.stageStarted,s=e.stageNumber,l=e.stageStopped,i=e.steps,u=e.name,d=e.namespace,m=e.build,p=e.stageInPath,h=e.onStepClick,j=Object(r.useState)(s==p),f=Object(o.a)(j,2),v=f[0],O=f[1];return Object(n.jsxs)("div",{className:Tc("stage",{"stage-expanded":v}),children:[Object(n.jsxs)("button",{type:"button",className:Tc("stage-header",{"stage-header-expanded":v}),onClick:function(){return O((function(e){return!e}))},children:[Object(n.jsx)(zc,{className:Tc("chevron")}),Object(n.jsx)(xa,{className:Tc("stage-status"),status:t}),Object(n.jsx)("span",{className:Tc("name"),children:a}),Object(n.jsx)(dr,{className:Tc("time"),started:c,finished:l})]}),v&&Object(n.jsxs)("ul",{className:Tc("stage-steps"),children:[Object(n.jsxs)("li",{className:Tc("steps-header"),children:["Steps",Object(n.jsx)("i",{className:Tc("divider")})]}),i.map((function(e,t){var a=e.id,r=e.status,c=e.name,l=e.started,i=e.stopped;return"skipped"===r?Object(n.jsx)("li",{children:Object(n.jsxs)("div",{className:Tc("stage-step","stage-step-unselectable"),children:[Object(n.jsx)(xa,{className:Tc("status"),status:r}),Object(n.jsx)("span",{className:Tc("name"),children:c})]})},a):Object(n.jsx)("li",{children:Object(n.jsxs)(b.c,{activeClassName:Tc("stage-step-active"),className:Tc("stage-step"),isActive:t?void 0:function(e,t){var a=t.pathname.split("/").filter(Boolean),n=Object(o.a)(a,5)[4];return e||s==p&&!n},to:"/".concat(d,"/").concat(u,"/").concat(m,"/").concat(s,"/").concat(t+1),exact:!0,onClick:h,children:[Object(n.jsx)(xa,{className:Tc("status"),status:r}),Object(n.jsx)("span",{className:Tc("name"),children:c}),Object(n.jsx)(dr,{className:Tc("time"),started:l,finished:i})]})},a)}))]})]})},Gc=function(e){var t=e.stageStatus,a=e.stageName,r=e.stageStarted,c=e.stageStopped;return Object(n.jsx)("div",{className:Tc("stage"),children:Object(n.jsxs)("h3",{className:Tc("stage-header","stage-header-unselectable"),children:[Object(n.jsx)(zc,{className:Tc("chevron","chevron-disabled")}),Object(n.jsx)(xa,{className:Tc("stage-status"),status:t}),Object(n.jsx)("span",{className:Tc("name"),children:a}),Object(n.jsx)(dr,{className:Tc("time"),started:r,finished:c})]})})},qc=R.a.bind(Rc.a),Yc=function(e){var t,a,c,s,l,i,u,d,m,b,h,j,f,v,O,g,x=Object(p.i)(),_=x.stage,w=void 0===_?1:_,y=x.step,N=void 0===y?1:y,k=e.isDataLoading,E=e.data,C=Pc(),S=Object(o.a)(C,2),L=S[0],M=S[1],P=Object(r.useState)(!1),I=Object(o.a)(P,2),D=I[0],R=I[1],H=Object(r.useCallback)((function(){return D?M():{}}),[D,M]);return Object(r.useLayoutEffect)((function(){window.innerWidth<768&&R(!0)}),[]),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("section",{className:qc("page-wrapper"),children:Object(n.jsxs)("div",{className:qc("inner"),children:[Object(n.jsx)(Uc,{isDataLoading:k,className:qc("navbar"),stages:null===E||void 0===E?void 0:E.stages,onStepClick:H}),Object(n.jsx)("div",{className:qc("logs"),children:Object(n.jsx)(_c,{isDataLoading:k,hasBuildDebugMode:(null===E||void 0===E?void 0:E.debug)||!1,buildStatus:null===E||void 0===E?void 0:E.status,stageStatus:null===E||void 0===E||null===(t=E.stages)||void 0===t||null===(a=t[w-1])||void 0===a?void 0:a.status,stageName:null===E||void 0===E||null===(c=E.stages)||void 0===c||null===(s=c[w-1])||void 0===s?void 0:s.name,stageError:null===E||void 0===E||null===(l=E.stages)||void 0===l||null===(i=l[w-1])||void 0===i?void 0:i.error,stepData:null===E||void 0===E||null===(u=E.stages)||void 0===u||null===(d=u[w-1])||void 0===d||null===(m=d.steps)||void 0===m?void 0:m[N-1]})})]})}),Object(n.jsx)(Ic,{isShowing:L,mode:"fullscreen",hide:M,children:Object(n.jsx)(_c,{consoleProps:{showCloseBtn:!0,onCloseBtnClick:M,className:qc("console-mobile")},isDataLoading:k,hasBuildDebugMode:(null===E||void 0===E?void 0:E.debug)||!1,buildStatus:null===E||void 0===E?void 0:E.status,stageStatus:null===E||void 0===E||null===(b=E.stages)||void 0===b||null===(h=b[w-1])||void 0===h?void 0:h.status,stageName:null===E||void 0===E||null===(j=E.stages)||void 0===j||null===(f=j[w-1])||void 0===f?void 0:f.name,stepData:null===E||void 0===E||null===(v=E.stages)||void 0===v||null===(O=v[w-1])||void 0===O||null===(g=O.steps)||void 0===g?void 0:g[N-1]})})]})};function Kc(){return(Kc=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}var Qc=r.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)"}),Xc=r.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"}),$c=r.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"}),es=r.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)"}),ts=r.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"}),as=r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear",x1:12.5,y1:12.5,x2:70,y2:68.5,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D9DAE5"}),r.createElement("stop",{offset:1,stopColor:"#9293AB"})),r.createElement("linearGradient",{id:"paint1_linear",x1:32.3754,y1:47.2101,x2:47.6364,y2:62.4711,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D9DAE5"}),r.createElement("stop",{offset:1,stopColor:"#9293AB"})));function ns(e,t){var a=e.title,n=e.titleId,c=Jc(e,["title","titleId"]);return r.createElement("svg",Kc({width:101,height:80,viewBox:"0 0 101 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Qc,Xc,$c,es,ts,as)}var rs=r.forwardRef(ns),cs=(a.p,a(293)),ss=a.n(cs),ls=R.a.bind(ss.a);function is(e){var t=e.user;return ge("Not Found"),Object(n.jsx)("section",{className:ls("wrapper"),children:Object(n.jsxs)("div",{className:ls("inner"),children:[Object(n.jsx)(rs,{}),Object(n.jsxs)("p",{className:ls("note"),children:[Object(n.jsx)("span",{children:"We are sorry, the resource you requested cannot be found."}),Object(n.jsx)("sub",{children:"That's all we know."})]}),!t&&Object(n.jsx)(Oe,{as:"link",to:"/welcome",theme:"primary",className:ls("btn"),children:"Sign In"})]})})}is.defaultProps={user:void 0};var os=a(294),us=a.n(os);function ds(){return(ds=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}var bs=r.createElement("g",{filter:"url(#filter0_dd)"},r.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"})),ps=r.createElement("defs",null,r.createElement("filter",{id:"filter0_dd",x:-1.0293,y:.0195312,width:18.4547,height:16.1195,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),r.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"}),r.createElement("feOffset",{dy:2}),r.createElement("feGaussianBlur",{stdDeviation:2}),r.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"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),r.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"}),r.createElement("feOffset",{dy:1}),r.createElement("feGaussianBlur",{stdDeviation:1}),r.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"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow",result:"effect2_dropShadow"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow",result:"shape"})));function hs(e,t){var a=e.title,n=e.titleId,c=ms(e,["title","titleId"]);return r.createElement("svg",ds({viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,bs,ps)}var js=r.forwardRef(hs),fs=(a.p,a(295)),vs=a.n(fs),Os=R.a.bind(vs.a),gs=function(e){var t=e.className,a=e.htmlFor,r=e.children,c=Object(pe.a)(e,["className","htmlFor","children"]);return Object(n.jsx)("label",Object(i.a)(Object(i.a)({className:R()(Os("label"),t),htmlFor:a},c),{},{children:r}))};gs.defaultProps={className:"",children:null};var xs=gs,_s=a(296),ws=a.n(_s),ys=R.a.bind(ws.a),Ns=function(e){var t=e.className,a=e.label,r=e.name,c=e.checked,s=e.disabled,l=Object(pe.a)(e,["className","label","name","checked","disabled"]);return Object(n.jsxs)("div",{className:R()(ys("checkbox"),t),children:[Object(n.jsx)("input",Object(i.a)(Object(i.a)({type:"checkbox",name:r,id:r,checked:c,disabled:s},l),{},{hidden:!0})),Object(n.jsx)("label",{htmlFor:r,className:ys("checkbox-fake",{disabled:s}),children:Object(n.jsx)(js,{})}),Object(n.jsx)(xs,{htmlFor:r,children:a})]})},ks=Ns;Ns.defaultProps={className:"",disabled:!1};var Es=a(297),Cs=a.n(Es),Ss=R.a.bind(Cs.a),Ls={search:Object(n.jsx)(W,{className:Ss("icon","icon-search")})},Ms=function(e){var t=e.className,a=e.name,r=e.label,c=e.type,s=e.width,l=e.style,o=e.icon,u=Object(pe.a)(e,["className","name","label","type","width","style","icon"]);return Object(n.jsxs)("div",{className:Ss("input-wrapper",t),children:[r&&Object(n.jsx)(xs,{htmlFor:a,children:r}),Object(n.jsxs)("div",{className:Ss("input-inner"),children:[o&&Ls[o],Object(n.jsx)("input",Object(i.a)({className:R()(Ss("input",{"input-with-icon":!!o})),type:c,name:a,id:a,style:Object(i.a)({width:s},l),spellCheck:"false",autoComplete:"false",autoCorrect:"false"},u))]})]})};Ms.defaultProps={className:"",label:null,type:"text",width:200,style:{}};var Ps=Ms,Is=a(298),Ds=a.n(Is),Rs=R.a.bind(Ds.a),Hs=function(e){var t=e.className,a=e.label,r=e.name,c=e.disabled,s=e.appearance,l=Object(pe.a)(e,["className","label","name","disabled","appearance"]),o="circle"===s?Object(n.jsx)("i",{}):Object(n.jsx)(js,{});return Object(n.jsxs)("div",{className:R()(Rs("radio"),t),children:[Object(n.jsx)("input",Object(i.a)(Object(i.a)({type:"radio",id:r,name:r},l),{},{disabled:c,hidden:!0})),Object(n.jsx)("label",{htmlFor:r,className:Rs("radio-fake",{disabled:c},"appearance-".concat(s)),children:o}),a&&Object(n.jsx)(xs,{className:Rs("label"),htmlFor:r,children:a})]})};Hs.defaultProps={className:"",disabled:!1,label:null,appearance:"circle"};var As=Hs,Bs=a(299),Fs=a.n(Bs),zs=R.a.bind(Fs.a),Vs=function(e){var t=e.className,a=e.label,r=e.optionsList,c=e.onChange,s=e.width,l=Object(pe.a)(e,["className","label","optionsList","onChange","width"]);return Object(n.jsxs)("div",{className:R()(zs("select"),t),children:[a&&Object(n.jsx)("span",{className:zs("label"),children:a}),Object(n.jsxs)("div",{className:zs("select-inner"),style:{width:s},children:[Object(n.jsx)("select",Object(i.a)(Object(i.a)({className:zs("select-input"),onChange:c},l),{},{children:r.map((function(e){var t=e.value,a=e.key;return Object(n.jsx)("option",{value:t,children:a},a)}))})),Object(n.jsx)("i",{})]})]})};Vs.defaultProps={className:"",label:null,width:200};var Ws=Vs,Ts=a(300),Us=a.n(Ts),Zs=R.a.bind(Us.a),Gs=function(e){var t=e.className,a=e.name,r=e.label,c=e.width,s=Object(pe.a)(e,["className","name","label","width"]);return Object(n.jsxs)("div",{className:R()(Zs("text-area-wrapper"),t),children:[r&&Object(n.jsx)(xs,{htmlFor:a,children:r}),Object(n.jsx)("textarea",Object(i.a)({className:Zs("text-area"),name:a,id:a,style:{width:c},autoCapitalize:"false",autoComplete:"false",autoCorrect:"false",spellCheck:"false"},s))]})};Gs.defaultProps={className:"",width:400,label:null};var qs=Gs,Ys=a(301),Ks=a.n(Ys),Js=R.a.bind(Ks.a),Qs=function(e){var t=e.title,a=e.className,r=e.children,c=Object(pe.a)(e,["title","className","children"]);return Object(n.jsxs)("form",Object(i.a)(Object(i.a)({className:R()(Js("form"),a),spellCheck:"false",autoCapitalize:"false",autoCorrect:"false",autoComplete:"false"},c),{},{children:[t&&Object(n.jsx)("h2",{className:Js("form-title"),children:t}),r]}))},Xs=function(e){var t=e.title,a=e.className,r=e.children;return Object(n.jsxs)("div",{className:R()(Js("form-section"),a),children:[t&&Object(n.jsx)("h3",{children:t}),r]})};Xs.defaultProps={className:"",title:null,children:null},Qs.defaultProps={className:"",title:null,children:null};var $s=Qs,el={Checkbox:ks,Input:Ps,Radio:As,Select:Ws,TextArea:qs},tl=a(302),al=a.n(tl),nl=R.a.bind(al.a),rl=function(e){var t=e.handleSubmit,a=e.handleCancel,c=Object(r.useState)({action:"promote",target:"",parameters:[]}),s=Object(o.a)(c,2),l=s[0],u=s[1],d=Object(r.useState)({key:"",value:""}),m=Object(o.a)(d,2),b=m[0],p=m[1],h=function(e){return function(){return u((function(t){return Object(i.a)(Object(i.a)({},t),{},{parameters:t.parameters.filter((function(t){return t.id!==e}))})}))}},j=function(e){return function(t){p((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}},f=function(e){return function(t){switch(e){case"action":u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value))}));break;case"target":u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}}};return Object(n.jsxs)($s,{className:nl("deployment-form"),children:[Object(n.jsx)(Xs,{title:"Type",className:nl("deployment-form-row"),children:Object(n.jsxs)("div",{className:nl("deployment-form-radio-group"),children:[Object(n.jsx)(el.Radio,{id:"promote",name:"promote",label:"Promote",value:"promote",checked:"promote"===l.action,onChange:f("action")}),Object(n.jsx)(el.Radio,{id:"rollback",name:"rollback",label:"Rollback",value:"rollback",checked:"rollback"===l.action,onChange:f("action")})]})}),Object(n.jsx)(Xs,{className:nl("deployment-form-row"),title:"Target",children:Object(n.jsx)(el.Input,{autoFocus:"true",name:"production",placeholder:"production",value:l.target,onChange:f("target")})}),Object(n.jsxs)(Xs,{title:"Parameters",className:nl("deployment-form-row"),children:[l.parameters.length?Object(n.jsx)("div",{className:nl("deployment-form-parameters-list"),children:l.parameters.map((function(e){var t=e.key,a=e.id;return Object(n.jsxs)("div",{className:nl("deployment-form-parameters"),children:[Object(n.jsx)("span",{type:"text",placeholder:"key",children:t}),Object(n.jsx)(Oe,{type:"button",onClick:h(a),children:"Remove"})]},a)}))}):null,Object(n.jsxs)("div",{className:nl("deployment-form-parameters-fields"),children:[Object(n.jsx)(el.Input,{placeholder:"key",name:"key",value:b.key,onChange:j("key")}),Object(n.jsx)(el.Input,{placeholder:"value",name:"value",value:b.value,onChange:j("value")}),Object(n.jsx)(Oe,{onClick:function(){b.key&&b.value&&(u((function(e){return Object(i.a)(Object(i.a)({},e),{},{parameters:[].concat(Object(ht.a)(e.parameters),[Object(i.a)(Object(i.a)({},b),{},{id:Date.now()})])})})),p({key:"",value:""}))},children:"+ Add"})]})]}),Object(n.jsxs)(Xs,{className:nl("deployment-form-controls"),children:[Object(n.jsx)(Oe,{type:"button",onClick:function(e){t(l),a()},children:"Deploy"}),Object(n.jsx)(Oe,{type:"button",onClick:a,children:"Cancel"})]})]})};function cl(){return(cl=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}var ll=r.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),il=r.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"});function ol(e,t){var a=e.title,n=e.titleId,c=sl(e,["title","titleId"]);return r.createElement("svg",cl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,ll,il)}var ul=r.forwardRef(ol);a.p;function dl(){return(dl=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}var bl=r.createElement("path",{d:"M6 5V13",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),pl=r.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"}),hl=r.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"}),jl=r.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"});function fl(e,t){var a=e.title,n=e.titleId,c=ml(e,["title","titleId"]);return r.createElement("svg",dl({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,bl,pl,hl,jl)}var vl=r.forwardRef(fl);a.p;function Ol(){return(Ol=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}var xl=r.createElement("path",{d:"M5 9H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),_l=r.createElement("path",{d:"M5 14H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),wl=r.createElement("path",{d:"M10 5L8 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),yl=r.createElement("path",{d:"M16 5L14 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});function Nl(e,t){var a=e.title,n=e.titleId,c=gl(e,["title","titleId"]);return r.createElement("svg",Ol({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,xl,_l,wl,yl)}var kl=r.forwardRef(Nl);a.p;function El(){return(El=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}var Sl=r.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"}),Ll=r.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"}),Ml=r.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"}),Pl=r.createElement("path",{d:"M6 10V19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});function Il(e,t){var a=e.title,n=e.titleId,c=Cl(e,["title","titleId"]);return r.createElement("svg",El({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Sl,Ll,Ml,Pl)}var Dl=r.forwardRef(Il);a.p;function Rl(){return(Rl=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}var Al=r.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"}),Bl=r.createElement("path",{d:"M7 7H7.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});function Fl(e,t){var a=e.title,n=e.titleId,c=Hl(e,["title","titleId"]);return r.createElement("svg",Rl({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Al,Bl)}var zl=r.forwardRef(Fl);a.p;function Vl(){return(Vl=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}var Tl=r.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"}),Ul=r.createElement("path",{d:"M4.27002 7.95999L12 12.01L19.73 7.95999",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),Zl=r.createElement("path",{d:"M12 20.08V12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"});function Gl(e,t){var a=e.title,n=e.titleId,c=Wl(e,["title","titleId"]);return r.createElement("svg",Vl({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Tl,Ul,Zl)}var ql=r.forwardRef(Gl),Yl=(a.p,a(303)),Kl=a.n(Yl),Jl=R.a.bind(Kl.a),Ql=function(e){var t=e.className,a=e.event,r=e.commit,c=e.branch,s=e.refs,l=e.environment;switch(a){case"pull_request":return Object(n.jsx)(ei,{className:t,pr:s});case"tag":return Object(n.jsx)(ti,{className:t,tag:s});case"promote":case"rollback":return Object(n.jsx)(ai,{className:t,environment:l});case"cron":case"custom":case"push":return Object(n.jsx)($l,{className:t,branch:c});default:return Object(n.jsx)(Xl,{className:t,commit:r})}},Xl=function(e){var t=e.className,a=e.commit;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(ul,{}),a]})},$l=function(e){var t=e.className,a=e.branch;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(vl,{}),a]})},ei=function(e){var t,a=e.className,r=e.pr;return Object(n.jsxs)("div",{className:Jl("root",a||""),children:[Object(n.jsx)(Dl,{}),Object(n.jsx)("sub",{children:"#"}),(t=r,null===t||void 0===t?void 0:t.match(/\d+/g))]})},ti=function(e){var t=e.className,a=e.tag;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(zl,{}),ci(a)]})},ai=function(e){var t=e.className,a=e.environment;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(ql,{}),a]})},ni=function(e){var t=e.className,a=e.name;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(ar,{}),a]})},ri=function(e){var t=e.className,a=e.build;return Object(n.jsxs)("div",{className:Jl("root",t||""),children:[Object(n.jsx)(kl,{}),a]})};function ci(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 si=a(304),li=a.n(si),ii=R.a.bind(li.a);function oi(e,t){var a=t.namespace,r=t.name,c=t.refs;return!0===t.deeplink?Object(n.jsx)("a",{href:"/link/".concat(a,"/").concat(r,"/tree/").concat(c),target:"_blank",rel:"noreferrer",children:e}):e}function ui(e,t){var a=t.namespace,r=t.name,c=t.commit;return!0===t.deeplink?Object(n.jsx)("a",{href:"/link/".concat(a,"/").concat(r,"/commit/").concat(c),target:"_blank",rel:"noreferrer",children:e}):e}function di(e,t){var a=t.namespace,r=t.name,c=t.number;return!0===t.deeplink?Object(n.jsx)("a",{href:"/".concat(a,"/").concat(r,"/").concat(c),children:e}):e}var mi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.commit,s=e.branch,l=e.namespace,i=e.name,o=e.deeplink;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"pushed"}),ui(Object(n.jsx)(Xl,{className:ii("label"),commit:c.substr(0,8)}),{namespace:l,name:i,commit:c,deeplink:o})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"to"}),oi(Object(n.jsx)($l,{className:ii("label"),branch:s}),{namespace:l,name:i,commit:c,deeplink:o})]})]})},bi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.branch,s=e.action,l=e.refs,i=e.namespace,o=e.name,u=e.commit,d=e.deeplink;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"opened"===s?"opened":"synchronized"}),Object(n.jsx)("span",{className:ii("info"),children:"pull request"}),oi(Object(n.jsx)(ei,{className:ii("label"),pr:l}),{namespace:i,name:o,commit:u,deeplink:d})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"to"}),oi(Object(n.jsx)($l,{className:ii("label"),branch:c}),{namespace:i,name:o,commit:u,deeplink:d})]})]})},pi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.refs,s=e.namespace,l=e.name,i=e.commit,o=e.deeplink;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"created"}),oi(Object(n.jsx)(ti,{className:ii("label"),tag:c}),{namespace:s,name:l,commit:i,deeplink:o})]})]})},hi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.namespace,s=e.name,l=e.commit,i=e.deeplink,o=e.parent,u=e.target;return Object(n.jsxs)("div",{className:ii("activity",t||""),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"promoted build"}),di(Object(n.jsx)(ri,{className:ii("label"),build:o}),{namespace:c,name:s,commit:l,deeplink:i})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"to"}),Object(n.jsx)(ai,{className:ii("label"),environment:u})]})]})},ji=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.namespace,s=e.name,l=e.commit,i=e.deeplink,o=e.target,u=e.parent;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")}),Object(n.jsx)("span",{className:ii("info"),children:r})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"rolled back"}),Object(n.jsx)(ai,{className:ii("label"),environment:o})]}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"to build"}),di(Object(n.jsx)(ri,{className:ii("label"),build:u}),{namespace:c,name:s,commit:l,deeplink:i})]})]})},fi=function(e){var t=e.className,a=e.avatar,r=e.actor,c=e.cron;return Object(n.jsxs)("div",{className:ii("activity",t),children:[Object(n.jsx)("div",{className:ii("chunk"),"data-type":"chunk",children:Object(n.jsx)(be,{path:a,alt:r,text:r,className:ii("avatar")})}),Object(n.jsxs)("div",{className:ii("chunk"),"data-type":"chunk",children:[Object(n.jsx)("span",{className:ii("info"),children:"executed scheduled task"}),Object(n.jsx)(ni,{className:ii("label"),name:c})]})]})},vi=function(e){switch(e.event){case"pull_request":return bi(e);case"tag":return pi(e);case"promote":return hi(e);case"rollback":return ji(e);case"cron":return fi(e);default:return mi(e)}};vi.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},mi.defaultProps={className:"",commit:void 0,branch:void 0},bi.defaultProps={className:"",commit:void 0,branch:void 0},pi.defaultProps={className:"",commit:void 0},hi.defaultProps={className:"",commit:void 0},ji.defaultProps={className:"",commit:void 0},fi.defaultProps={className:""};var Oi=vi,gi=a(305),xi=a.n(gi),_i=R.a.bind(xi.a);function wi(e){var t=e.className;return Object(n.jsx)("nav",{className:_i("breadcrumb",t||""),children:e.children})}function yi(e){return Object(n.jsx)("div",{className:_i("breadcrumb-item"),children:e.href?Object(n.jsx)(b.b,{to:e.href,children:e.text}):e.text})}function Ni(e){return Object(n.jsx)("div",{className:_i("breadcrumb-spacer"),children:Object(n.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(n.jsx)("polyline",{points:"9 18 15 12 9 6"})})})}function ki(){return(ki=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}var Ci=r.createElement("circle",{cx:12,cy:12,r:1}),Si=r.createElement("circle",{cx:12,cy:5,r:1}),Li=r.createElement("circle",{cx:12,cy:19,r:1});function Mi(e,t){var a=e.title,n=e.titleId,c=Ei(e,["title","titleId"]);return r.createElement("svg",ki({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":n},c),a?r.createElement("title",{id:n},a):null,Ci,Si,Li)}var Pi=r.forwardRef(Mi),Ii=(a.p,a(306)),Di=a.n(Ii),Ri=R.a.bind(Di.a),Hi=function(e,t){return e.map((function(e,a){return Object(r.createElement)("div",Object(i.a)(Object(i.a)({className:Ri("menu-item")},t(e.value)),{},{key:a,role:"menuitem",tabIndex:"-1","data-value":e.value}),e.content)}))},Ai=function(e){var t=e.id,a=e.className,c=e.isMenuOpen,s=e.hideMenu,l=e.menuItems,i=e.onMenuItemSelect,o=e.menuAlignment,u=Object(r.useRef)();return Object(r.useEffect)((function(){c&&u.current.firstElementChild.focus()}),[c]),Object(n.jsx)("div",{className:Ri("menu","menu-".concat(o),a),role:"menu",tabIndex:"-1",hidden:!c,"aria-hidden":!c,id:t,ref:u,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(),s()}},children:Hi(l,(function(e){return{onClick:function(t){i(e,t),s()},onKeyDown:function(t){"Enter"===t.key&&(t.preventDefault(),i(e,t),s()),"Tab"===t.key&&(t.preventDefault(),s())}}}))})},Bi=function(e){var t=e.id,a=e.className,c=e.menuItems,s=e.onMenuItemSelect,l=e.disabled,i=e.menuAlignment,u=Object(r.useState)(!1),d=Object(o.a)(u,2),m=d[0],b=d[1],p=Object(r.useState)(!1),h=Object(o.a)(p,2),j=h[0],f=h[1],v=Object(r.useRef)(),O=Object(r.useRef)();ke(v,(function(){return b(!1)}));var g=function(){var e;b(!1),null===(e=O.current)||void 0===e||e.focus()},x=function(){m?g():(f(!1),b(!0))};return Object(n.jsx)("div",{className:Ri("wrapper",a),ref:v,children:Object(n.jsxs)("div",{className:Ri("wrapper-menu"),children:[Object(n.jsx)("button",{className:Ri("btn-menu-controller",{"is-open":m,"is-focused":j}),type:"button",disabled:l,"aria-haspopup":"menu","aria-expanded":m||void 0,ref:O,onFocus:function(e){f(!0)},onBlur:function(e){f(!1)},onClick:x,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),x())},children:Object(n.jsx)(Pi,{})}),Object(n.jsx)(Ai,{menuItems:c,isMenuOpen:m,hideMenu:g,id:t,menuAlignment:i,onMenuItemSelect:s})]})})};function Fi(){return(Fi=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}var Vi=r.createElement("rect",{x:3,y:4,width:18,height:18,rx:2,ry:2}),Wi=r.createElement("line",{x1:16,y1:2,x2:16,y2:6}),Ti=r.createElement("line",{x1:8,y1:2,x2:8,y2:6}),Ui=r.createElement("line",{x1:3,y1:10,x2:21,y2:10});function Zi(e,t){var a=e.title,n=e.titleId,c=zi(e,["title","titleId"]);return r.createElement("svg",Fi({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":n},c),a?r.createElement("title",{id:n},a):null,Vi,Wi,Ti,Ui)}var Gi=r.forwardRef(Zi),qi=(a.p,a(307)),Yi=a.n(qi),Ki=R.a.bind(Yi.a),Ji=function(e){var t=e.namespace,a=e.name,r=e.build,c=e.data,s=e.handleCancelClick,l=e.handleMenuItemSelect,i=e.handleViewModeClick,o=e.isGraphView,u=e.userIsAdminOrHasWritePerm,d=null;return c&&"blocked"!==c.status&&(["pending","running"].includes(c.status)?d=Object(n.jsx)(Oe,{className:Ki("cancel-button","controls"),onClick:s,children:"Cancel"}):u&&(d=Object(n.jsx)(Bi,{id:"build-actions",className:Ki("controls"),menuItems:[{value:"restart",content:"Restart"},{value:"promote",content:"Promote"},{value:"debug",content:"Debug"}],menuAlignment:"right",onMenuItemSelect:l}))),Object(n.jsxs)("header",{className:Ki("header"),children:[Object(n.jsx)("div",{className:Ki("breadcrumbs"),children:Object(n.jsxs)(wi,{className:Ki("breadcrumbs-inner"),children:[Object(n.jsx)(yi,{href:"/".concat(t,"/").concat(a),text:"Builds"}),Object(n.jsx)(Ni,{}),Object(n.jsx)(yi,{text:"#".concat(r)}),Object(n.jsx)(Ni,{})]})}),Object(n.jsxs)("div",{className:Ki("togglers"),children:[Object(n.jsx)(Oe,{className:Ki({active:!o}),onClick:i("log"),children:"Log View"}),Object(n.jsx)(Oe,{className:Ki({active:o}),onClick:i("graph"),children:"Graph View"})]}),c?Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:Ki("meta"),children:[c.started>0&&Object(n.jsx)(dr,{started:c.started,finished:c.finished,withLetters:!0,withIcon:!0}),Object(n.jsxs)("div",{className:Ki("date"),children:[Object(n.jsx)(Gi,{}),De({date:c.created})]}),d]}),d]}):null,Object(n.jsx)("div",{className:Ki("title"),children:Object(n.jsxs)("h1",{children:[Object(n.jsx)(b.b,{to:"/".concat(t,"/").concat(a),children:Object(n.jsx)(Ge,{})}),a]})}),c?Object(n.jsxs)("div",{className:Ki("activity"),children:[Object(n.jsx)(xa,{status:c.status,className:Ki("status")}),Object(n.jsx)("p",{title:c.title||c.message,className:Ki("message"),children:c.title||c.message}),Object(n.jsx)(Oi,{namespace:t,name:a,number:c.number,event:c.event,action:c.action,actor:c.sender,avatar:c.author_avatar,commit:c.after,branch:c.target,target:c.deploy_to,refs:c.ref,cron:c.cron,parent:r.parent,deeplink:!0})]}):null]})};Ji.defaultProps={data:void 0,userIsAdminOrHasWritePerm:!1};var Qi=Ji,Xi=R.a.bind(us.a),$i="error",eo="resolved",to="resolved_blocked";function ao(e){var t=e.user,a=e.userIsAdminOrHasWritePerm,c=Object(p.i)(),s=c.namespace,l=c.name,u=c.build,b=c.stage,h=void 0===b?1:b,j=c.step,f=void 0===j?1:j;ge("Build #".concat(u,".").concat(h,".").concat(f," - ").concat(s,"/").concat(l));var O=Object(p.g)(),g=function(e){var t=e.namespace,a=e.name,n=e.build;return jt("/api/repos/".concat(t,"/").concat(a,"/builds/").concat(n))}({namespace:s,name:l,build:u}),x=g.data,_=g.mutate,w=g.isError,y=g.isLoading,N=Object(r.useState)(eo),k=Object(o.a)(N,2),E=k[0],C=k[1],S=Ne("isBuildPageInGraphMode",!1),L=Object(o.a)(S,2),M=L[0],P=L[1],I=Pc(),D=Object(o.a)(I,2),R=D[0],H=D[1],A=Le().showError;Object(r.useLayoutEffect)((function(){var e,t;if(w||(null===x||void 0===x?void 0:x.error)||x&&(null!==(e=null===x||void 0===x||null===(t=x.stages)||void 0===t?void 0:t.length)&&void 0!==e?e:0)=0})).reverse()}),[t]),l=Object(p.i)(),i=l.namespace,o=l.name,u=Object(p.g)(),d=Object(r.useCallback)((function(e){var t=e.number;return u.push("/".concat(i,"/").concat(o,"/").concat(t))}),[i,o,u]),m=Object(r.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(no.a)(new Date(1e3*s),new Date,{addSuffix:!0}).split(" "),i=Object(uo.a)(l);return{median:c,latest:{number:i[0],units:i.slice(1).join(" "),status:a[a.length-1].status}}}(s)}),[s]),b=m.median,h=m.latest;return Object(n.jsxs)("div",{className:go("wrapper",c),children:[Object(n.jsx)("div",{className:go("info"),children:Object(n.jsxs)("ul",{className:go("summary"),children:[Object(n.jsxs)("li",{className:go("item"),children:[Object(n.jsx)("span",{className:go("item-heading"),children:"Total Builds"}),Object(n.jsx)("span",{className:go("item-content"),children:Object(n.jsx)("span",{children:a})})]}),Object(n.jsxs)("li",{className:go("item"),children:[Object(n.jsx)("span",{className:go("item-heading"),children:"Median Build"}),Object(n.jsx)("span",{className:go("item-content"),children:Object(n.jsxs)("span",{children:[b,Object(n.jsx)("sub",{children:b>1?"minutes":"minute"})]})})]}),Object(n.jsxs)("li",{className:go("item"),children:[Object(n.jsx)("span",{className:go("item-heading"),children:"Last Build"}),Object(n.jsx)("span",{className:go("item-content"),children:Object(n.jsxs)("span",{children:[h.number,Object(n.jsx)("sub",{children:h.units})]})})]}),Object(n.jsxs)("li",{className:go("item"),children:[Object(n.jsx)("span",{className:go("item-heading"),children:"Last Status"}),Object(n.jsx)("span",{className:go("item-content"),children:Object(n.jsx)("span",{className:go("status","status-".concat(h.status)),children:h.status})})]})]})}),Object(n.jsx)("div",{className:go("bar-wrapper"),children:Object(n.jsx)(fo,{data:s,height:170,barsShown:50,onClick:d})})]})};xo.defaultProps={className:void 0};var _o=xo,wo=R.a.bind(oo.a);function yo(e){var t=e.repo,a=t.active,c=Object(p.j)(),s=c.params,l=s.namespace,i=s.name,o=c.url,u=Object(p.g)();Object(r.useLayoutEffect)((function(){a||u.replace("/".concat(l,"/").concat(i,"/settings"))}),[a,u,l,i]);var d=function(e){var t,a=e.namespace,n=e.name,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=function(e,t){var r=e+1;return t&&t.length<50?null:"/api/repos/".concat(a,"/").concat(n,"/builds?page=").concat(r,"&per_page=50")},s=Object(j.d)(c,r),l=s.data,i=s.size,o=s.setSize,u=s.error,d=s.mutate,m=null===l||void 0===l?void 0:l.some((function(e){return!e.length||e.length<50}));return{isLoading:!u&&!l,data:(t=[]).concat.apply(t,Object(ht.a)(l||[])),mutate:d,size:i,setSize:o,isEndReached:m,isError:u}}({namespace:l,name:i}),m=d.data,b=d.isError,h=d.isEndReached,f=d.isLoading,v=d.size,O=d.setSize;ge("".concat(l,"/").concat(i)),b&&"Not Found"===b.message&&u.push("/404");var g=null;return g=f?null:m.length?Object(n.jsxs)("section",{className:wo("wrapper"),children:[Object(n.jsx)("h2",{className:wo("section-title"),children:"Summary"}),Object(n.jsx)(_o,{data:m,totalBuildsCounter:null===t||void 0===t?void 0:t.counter,className:wo("summary")}),Object(n.jsx)("h2",{className:wo("section-title"),children:"Executions"}),Object(n.jsx)(lo,{data:m,url:o}),f||h||!m.length?null:Object(n.jsx)("div",{children:Object(n.jsx)(Oe,{className:wo("btn","btn-show-more"),onClick:function(){return O(v+1)},children:"Show more \u2193"})})]}):Object(n.jsx)(Ba,{title:"Your Build List is Empty.",message:"Press the New Build button to execute your first build pipeline."}),Object(n.jsx)(n.Fragment,{children:g})}var No=a(313),ko=a.n(No),Eo=R.a.bind(ko.a);function Co(e){var t=e.repo.active,a=Object(p.i)(),c=a.namespace,s=a.name,l=Object(p.g)();Object(r.useLayoutEffect)((function(){t||l.replace("/".concat(c,"/").concat(s,"/settings"))}),[t,l,c,s]);var i=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a,"/builds/deployments"))}({namespace:c,name:s}),o=i.data,u=null;return u=i.isLoading?null:o.length?Object(n.jsx)("section",{className:Eo("wrapper"),children:Object(n.jsx)("div",{className:Eo("inner"),children:Object(n.jsx)(So,{builds:o})})}):Object(n.jsx)(Ba,{title:"Your Deployment List is Empty.",message:"This list will be populated when you promote or rollback a build."}),Object(n.jsx)(n.Fragment,{children:u})}function So(e){return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:Eo("deployment-list-header"),children:[Object(n.jsx)("div",{}),Object(n.jsx)("div",{children:"Environment"}),Object(n.jsx)("div",{children:"Commit"}),Object(n.jsx)("div",{children:"Committer"}),Object(n.jsx)("div",{children:"Message"})]}),Object(n.jsx)("div",{className:Eo("deployment-list"),children:e.builds.map((function(e){return Object(n.jsx)(b.b,{to:"".concat(e.number),children:Object(n.jsx)(Lo,{build:e},e.build_id)},e.build_id)}))})]})}function Lo(e){var t=e.build;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:Eo("deployment-list-item"),children:[Object(n.jsx)("div",{children:Object(n.jsx)(xa,{status:t.status})}),Object(n.jsx)("div",{className:Eo("target"),children:t.deploy_to}),Object(n.jsx)("div",{className:Eo("commit"),children:t.after.slice(0,8)}),Object(n.jsxs)("div",{children:[Object(n.jsx)(be,{className:Eo("avatar"),path:t.author_avatar,alt:t.author_login,text:t.author_login}),Object(n.jsx)("span",{children:t.author_login})]}),Object(n.jsx)("div",{className:Eo("message"),children:Object(n.jsx)("span",{children:t.message})})]})})}Co.propTypes={match:Wt.a.shape({params:Wt.a.shape({namespace:Wt.a.string.isRequired,name:Wt.a.string.isRequired}).isRequired}).isRequired};var Mo=a(314),Po=a.n(Mo),Io=R.a.bind(Po.a),Do=function(e){var t=e.repos;return Object(n.jsx)("div",{className:Io("list"),children:Object(n.jsx)("div",{className:Io("body"),children:!!(null===t||void 0===t?void 0:t.length)&&t.map((function(e){var t,a=e.namespace,r=e.name,c=e.id,s=e.build,l=e.active,i=e.slug;return Object(n.jsx)(b.b,{to:"/".concat(a,"/").concat(r).concat(l?"":"/settings"),children:Object(n.jsxs)("div",{className:Io("item",s?null:"inactive"),children:[Object(n.jsxs)("h3",{className:Io("title"),children:[Object(n.jsx)(xa,{status:null!==(t=null===s||void 0===s?void 0:s.status)&&void 0!==t?t:"inactive"}),Object(n.jsx)("span",{children:i})]}),Object(n.jsxs)("div",{className:Io("detail"),children:[Object(n.jsx)("div",{className:Io("spacer")}),Object(n.jsxs)("div",{className:Io("commit"),children:[Object(n.jsxs)("strong",{children:[Object(n.jsx)(ul,{}),null===s||void 0===s?void 0:s.after.slice(0,8)]}),Object(n.jsx)("span",{children:(null===s||void 0===s?void 0:s.title)||(null===s||void 0===s?void 0:s.message)})]}),s&&Object(n.jsx)("div",{className:Io("date"),children:Object(no.a)(new Date(1e3*s.created),new Date,{addSuffix:!0})})]})]})},c)}))})})};Do.defaultProps={repos:[]};var Ro=Do,Ho=a(315),Ao=a.n(Ho),Bo=R.a.bind(Ao.a),Fo=function(e){var t=e.repos;return Object(n.jsx)("div",{className:Bo("cards"),children:!!(null===t||void 0===t?void 0:t.length)&&e.repos.map((function(e){var t=e.namespace,a=e.name,r=e.build,c=e.id;return Object(n.jsx)(b.b,{to:"/".concat(t,"/").concat(a),children:Object(n.jsxs)("div",{className:Bo("card"),children:[Object(n.jsxs)("div",{className:Bo("header"),children:[Object(n.jsxs)("h3",{className:Bo("title"),children:[Object(n.jsx)("span",{className:Bo("namespace"),children:t}),Object(n.jsx)("span",{children:a})]}),Object(n.jsx)(xa,{status:null===r||void 0===r?void 0:r.status,className:Bo("status")})]}),Object(n.jsxs)("div",{className:Bo("body"),children:[Object(n.jsx)(Ql,{event:null===r||void 0===r?void 0:r.event,commit:null===r||void 0===r?void 0:r.after,branch:null===r||void 0===r?void 0:r.target,environment:null===r||void 0===r?void 0:r.deploy_to,refs:null===r||void 0===r?void 0:r.ref}),Object(n.jsx)("span",{children:(null===r||void 0===r?void 0:r.title)||(null===r||void 0===r?void 0:r.message)})]}),Object(n.jsxs)("div",{className:Bo("footer"),children:[Object(n.jsx)("div",{children:Object(n.jsx)(be,{className:Bo("avatar"),path:null===r||void 0===r?void 0:r.author_avatar,alt:null===r||void 0===r?void 0:r.sender,text:null===r||void 0===r?void 0:r.sender})}),r&&Object(n.jsx)("div",{children:Object(no.a)(new Date(1e3*r.created),new Date,{addSuffix:!0})})]})]})},c)}))})};Fo.defaultProps={repos:[]};var zo=Fo,Vo=a(316),Wo=a.n(Vo),To=R.a.bind(Wo.a),Uo=function(e){var t=e.id,a=e.className,r=e.checked,c=e.onChange,s=e.children,l=e.disabled;return Object(n.jsxs)("div",{className:To("wrapper",a),children:[Object(n.jsx)("input",{className:To("switch-input"),id:t,disabled:l,checked:r,type:"checkbox",onChange:function(e){var t=e.target.checked;return c(t)}}),Object(n.jsx)("label",{className:To("switch-label"),htmlFor:t,children:Object(n.jsx)("i",{className:To("switch-toggler")})}),s&&Object(n.jsx)("span",{className:To("switch-label-fake"),children:s})]})},Zo=Uo;Uo.defaultProps={checked:!1,children:void 0,disabled:!1,className:""};var Go=a(317),qo=a.n(Go),Yo=R.a.bind(qo.a);function Ko(e){e.user;var t=Object(r.useContext)(mt),a=Object(o.a)(t,2),c=a[0],s=a[1],l=Object(r.useState)(!1),u=Object(o.a)(l,2),b=u[0],p=u[1],h=Ne("home_show_active_only_repos",!1),j=Object(o.a)(h,2),f=j[0],v=j[1],O=Object(r.useState)(c.isAccSyncing),g=Object(o.a)(O,2),x=g[0],_=g[1],w=Le().showError,y=function(e){var t=Object(r.useState)(!1),a=Object(o.a)(t,2),n=a[0],c=a[1],s=Object(r.useState)(null),l=Object(o.a)(s,2),i=l[0],u=l[1],b=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:return e.prev=0,e.next=3,Ie("/api/user/repos?async=true",{method:"POST"});case 3:c(!0),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),u(e.t0),c(!1);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){e?b():c(!1)}),[e,c]),{hasSyncReqFiredOff:n,isError:i}}(x),N=y.hasSyncReqFiredOff,k=y.isError,E=yt({withPolling:N}),C=E.isSynced,S=E.isSyncing,L=E.isError,M=ze(),P=M.repos,I=M.error,D=M.reload,R=M.reloadOnce,H=P?Object.values(P):void 0,A=!H&&!I;Object(r.useEffect)((function(){return R()}),[R]),ge();var B=Object(r.useState)(""),F=Object(o.a)(B,2),z=F[0],V=F[1],W=Object(r.useMemo)((function(){var e;return null!==(e=null===H||void 0===H?void 0:H.slice(0).filter((function(e){return f?!!e.build:!!e})).filter((function(e){return e.slug.indexOf(z)>-1})))&&void 0!==e?e:[]}),[H,z,f]),T=Object(r.useMemo)((function(){var e;return null!==(e=W.slice(0).sort(He).slice(0,b?W.length:50))&&void 0!==e?e:[]}),[W,b]),U=Object(r.useMemo)((function(){var e,t;return null!==(e=null===H||void 0===H||null===(t=H.slice(0).sort(Ae).filter((function(e){return!!e.build})))||void 0===t?void 0:t.slice(0,6))&&void 0!==e?e:[]}),[H]);Object(r.useEffect)((function(){(k||L)&&(s(Object(i.a)(Object(i.a)({},c),{},{isAccSyncing:!1})),w("Sync error has occured, please, try again"),console.error("Sync error:",(null===k||void 0===k?void 0:k.message)||(null===L||void 0===L?void 0:L.message)))}),[k,L,w,c,s]),Object(r.useEffect)((function(){C&&(_(!1),D(),c.isAccSyncing&&s(Object(i.a)(Object(i.a)({},c),{},{isAccSyncing:!1})))}),[C,c,s,D]);var Z=null;return Z=A?null:(null===H||void 0===H?void 0:H.length)?Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:Yo("subheader"),children:[Object(n.jsx)("h2",{className:Yo("section-title"),children:"Repositories"}),Object(n.jsxs)("div",{className:Yo("actions"),children:[Object(n.jsx)(Zo,{id:"active-switch",checked:f,onChange:function(e){return v(e)},children:"Active Only"}),Object(n.jsx)(Ps,{placeholder:"Filter \u2026",icon:"search",className:Yo("search"),width:300,name:"repo-search",onChange:function(e){return V(e.target.value.trim())}})]})]}),Object(n.jsx)(Ro,{repos:T}),!b&&T.length>=50&&Object(n.jsx)(Oe,{className:Yo("btn","btn-show-more"),onClick:function(){return p(!0)},children:"Show more \u2193"})]}):Object(n.jsx)(Ba,{title:"Your Repository List is Empty.",message:"Drone automatically syncs with your version control system to display your repositories."}),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("header",{className:Yo("header"),children:[Object(n.jsx)("h1",{children:"Dashboard"}),Object(n.jsxs)("button",{type:"button",className:Yo("btn","btn-sync"),disabled:S||N,onClick:function(){return _(!0)},children:[(S||N)&&Object(n.jsx)("span",{className:Yo("btn-sync-spinner")}),S||N?"Syncing":"Sync"]})]}),Object(n.jsxs)("section",{className:Yo("wrapper"),children:[!!U.length&&Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("h2",{className:Yo("section-title","section-title-recent"),children:"Recent Activity"}),Object(n.jsx)(zo,{repos:U})]}),Z]})]})}function Jo(){return(Jo=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}var Xo=r.createElement("defs",null,r.createElement("style",null,".cls-1{fill:#22222A}")),$o=r.createElement("g",{id:"Landing"},r.createElement("g",{id:"logos"},r.createElement("g",{id:"drone-logo-back-with-text"},r.createElement("g",{id:"Group-4"},r.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"}),r.createElement("g",{id:"Group-3"},r.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"})))))),eu=r.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"}),tu=r.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"});function au(e,t){var a=e.title,n=e.titleId,c=Qo(e,["title","titleId"]);return r.createElement("svg",Jo({xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 86.62 27",ref:t,"aria-labelledby":n},c),a?r.createElement("title",{id:n},a):null,Xo,$o,eu,tu)}var nu=r.forwardRef(au);a.p;function ru(){return(ru=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}var su=r.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"),lu=r.createElement("g",{id:"Background",className:"st0"},r.createElement("rect",{className:"st1",width:2430.2,height:1721.2})),iu=r.createElement("g",{id:"Grid",className:"st0"},r.createElement("g",{className:"st2"},r.createElement("rect",{className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:286.9,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:573.7,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:860.6,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:1147.5,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:404.2,y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:808.4,y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1212.6,y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:1616.7,y:1434.3,className:"st3",width:404.2,height:286.9}),r.createElement("rect",{x:2020.9,y:1434.3,className:"st3",width:404.2,height:286.9}))),ou=r.createElement("g",{id:"Margin",className:"st0"},r.createElement("g",{className:"st4"},r.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 "}))),uu=r.createElement("line",{className:"st6",x1:207.9,y1:283,x2:207.9,y2:252.9}),du=r.createElement("path",{className:"st6",d:"M1894.6,854.1v628.1h127.6"}),mu=r.createElement("path",{className:"st6",d:"M1616.7,860.6V0.6"}),bu=r.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"}),pu=r.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"}),hu=r.createElement("path",{className:"st7",d:"M1361,1015.5v56.2"}),ju=r.createElement("path",{className:"st7",d:"M1065.5,1015.5v56.2"}),fu=r.createElement("path",{className:"st7",d:"M1379.4,1015.5v41.1"}),vu=r.createElement("path",{className:"st7",d:"M1048.1,1015.5v41.1"}),Ou=r.createElement("path",{className:"st6",d:"M1239,1032.3h-54.5l-12.9,31.8h80.3L1239,1032.3z"}),gu=r.createElement("path",{className:"st6",d:"M0,1314.1h810.6v407.1"}),xu=r.createElement("path",{className:"st6",d:"M1894.6,855.1h-277.9v459"}),_u=r.createElement("path",{className:"st8",d:"M1053.7,855.1h-244"}),wu=r.createElement("path",{className:"st8",d:"M809.7,855.1V1314h807.1V855.1c-81.6,0-163.2,0-244.9,0"}),yu=r.createElement("path",{className:"st6",d:"M1029.7,740.6h-27.4"}),Nu=r.createElement("path",{className:"st6",d:"M1016,726.9v27.4"}),ku=r.createElement("path",{className:"st6",d:"M1511.4,534H1484"}),Eu=r.createElement("path",{className:"st6",d:"M1497.7,520.4v27.4"}),Cu=r.createElement("path",{className:"st9",d:"M1420.1,640.3h-27.4"}),Su=r.createElement("path",{className:"st9",d:"M1406.4,626.6V654"}),Lu=r.createElement("path",{className:"st7",d:"M1378.3,484.5h-27.4"}),Mu=r.createElement("path",{className:"st7",d:"M1364.6,470.8v27.4"}),Pu=r.createElement("path",{className:"st6",d:"M1333.5,373h-27.4"}),Iu=r.createElement("path",{className:"st6",d:"M1319.8,359.3v27.4"}),Du=r.createElement("path",{className:"st9",d:"M932.3,601.3h-27.4"}),Ru=r.createElement("path",{className:"st9",d:"M918.7,587.6V615"}),Hu=r.createElement("path",{className:"st7",d:"M951.6,370.1h-27.4"}),Au=r.createElement("path",{className:"st7",d:"M937.9,356.4v27.4"}),Bu=r.createElement("path",{className:"st7",d:"M1491.6,395.6h-27.4"}),Fu=r.createElement("path",{className:"st7",d:"M1478,381.9v27.4"}),zu=r.createElement("path",{className:"st9",d:"M1142,403.6h-27.4"}),Vu=r.createElement("path",{className:"st9",d:"M1128.3,389.9v27.4"}),Wu=r.createElement("path",{className:"st7",d:"M1081.8,616.4h-27.4"}),Tu=r.createElement("path",{className:"st7",d:"M1068.1,602.7V630"}),Uu=r.createElement("path",{className:"st6",d:"M1060.2,481.1h-27.4"}),Zu=r.createElement("path",{className:"st6",d:"M1046.5,467.4v27.4"}),Gu=r.createElement("g",null,r.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"}),r.createElement("path",{className:"st7",d:"M1806.2,514.5l-15.8,21.8l15.8,21.8"}),r.createElement("path",{className:"st7",d:"M1835.4,559l15.8-21.8l-15.8-21.8"}),r.createElement("path",{className:"st7",d:"M1829.5,515.2l-16.4,43.4"}),r.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"})),qu=r.createElement("path",{className:"st6",d:"M809.7,855.1V249.4H405.9"}),Yu=r.createElement("path",{className:"st6",d:"M1260.1,1085.9l60.3,135.4"}),Ku=r.createElement("path",{className:"st7",d:"M1255.2,1119.2l36.2,95.8"}),Ju=r.createElement("path",{className:"st7",d:"M1174.8,1106.2l-42.2,93.3"}),Qu=r.createElement("path",{className:"st6",d:"M1164.6,1087.3l-68,134.6"}),Xu=r.createElement("path",{className:"st6",d:"M1326,842.1c46.5,0,84.3,37.7,84.3,84.3v63.5H1326V842.1z"}),$u=r.createElement("path",{className:"st6",d:"M1099.1,842.1c-46.5,0-84.3,37.7-84.3,84.3v63.5h84.3V842.1z"}),ed=r.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"}),td=r.createElement("g",null,r.createElement("circle",{className:"st6",cx:1213.6,cy:689.5,r:50.9}),r.createElement("circle",{className:"st6",cx:1213.6,cy:689.5,r:62.9})),ad=r.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"}),nd=r.createElement("defs",null,r.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})),rd=r.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"}),cd=r.createElement("defs",null,r.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})),sd=r.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"}),ld=r.createElement("defs",null,r.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})),id=r.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"}),od=r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.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"}),r.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"})),r.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"}),r.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"}),r.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"}),r.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"})),r.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"})),ud=r.createElement("g",null,r.createElement("g",null,r.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"}),r.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"}),r.createElement("path",{className:"st6",d:"M679.7,1171.8l7.1,8.8l17.8-17.8"})),r.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"}),r.createElement("line",{className:"st15",x1:690.4,y1:1313.4,x2:690.4,y2:1228.4})),dd=r.createElement("g",null,r.createElement("line",{className:"st15",x1:132.6,y1:1313.4,x2:132.6,y2:1198.7})),md=r.createElement("g",null,r.createElement("g",{className:"st16"},r.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"})),r.createElement("g",{className:"st18"},r.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"})),r.createElement("g",null,r.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"})),r.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"}),r.createElement("line",{className:"st15",x1:412.3,y1:1313.4,x2:412.3,y2:1228.4})),bd=r.createElement("g",null,r.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}),r.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"})),pd=r.createElement("line",{className:"st6",x1:1325.7,y1:855.8,x2:1305.1,y2:855.8}),hd=r.createElement("line",{className:"st6",x1:1119.3,y1:855.8,x2:1098.7,y2:855.8}),jd=r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.createElement("g",null,r.createElement("line",{className:"st19",x1:2281.2,y1:970.6,x2:2035.3,y2:970.6}))))),r.createElement("g",null,r.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}),r.createElement("rect",{x:2035.3,y:957.6,className:"st6",width:246,height:175.3})),r.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 "}))),fd=r.createElement("g",null,r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"})),vd=r.createElement("g",null,r.createElement("circle",{className:"st21",cx:571.9,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:571.9,cy:1598.6,r:11.2}),r.createElement("circle",{className:"st21",cx:571.9,cy:1432.5,r:11.2}),r.createElement("circle",{className:"st21",cx:492.6,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:492.6,cy:1598.6,r:11.2}),r.createElement("circle",{className:"st21",cx:492.6,cy:1432.5,r:11.2}),r.createElement("circle",{className:"st21",cx:410.8,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:324,cy:1601,r:11.2}),r.createElement("circle",{className:"st21",cx:324,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:237.2,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:237.2,cy:1514.3,r:11.2}),r.createElement("circle",{className:"st21",cx:237.2,cy:1598.6,r:11.2}),r.createElement("circle",{className:"st21",cx:324,cy:1432.5,r:11.2}),r.createElement("circle",{className:"st21",cx:410.8,cy:1598.6,r:11.2}),r.createElement("circle",{className:"st21",cx:410.8,cy:1432.5,r:11.2}),r.createElement("circle",{className:"st21",cx:237.2,cy:1432.5,r:11.2}),r.createElement("line",{className:"st21",x1:571.9,y1:1432.5,x2:500,y2:1432.5}),r.createElement("line",{className:"st21",x1:490.1,y1:1516.7,x2:573.2,y2:1599.8}),r.createElement("line",{className:"st21",x1:410.8,y1:1598.6,x2:569.5,y2:1598.6}),r.createElement("line",{className:"st21",x1:410.8,y1:1514.3,x2:324,y2:1601})),Od=r.createElement("g",null,r.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}),r.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"})),gd=r.createElement("g",null,r.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"}),r.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"}),r.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"}),r.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"}),r.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"}),r.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"})),xd=r.createElement("g",null,r.createElement("g",null,r.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"}),r.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"})),r.createElement("g",null,r.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"}),r.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"})),r.createElement("g",null,r.createElement("g",null,r.createElement("path",{className:"st7",d:"M250.6,778.9c-0.7,30.2,13.2,57.4,35.1,74.7"}),r.createElement("g",null,r.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 "})))),r.createElement("g",null,r.createElement("g",null,r.createElement("path",{className:"st7",d:"M622.1,672.2c10.7-48.4-18.7-96.9-66.7-109.7"}),r.createElement("g",null,r.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 "}))))),_d=r.createElement("g",null,r.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"}),r.createElement("g",null,r.createElement("circle",{className:"st14",cx:2236.6,cy:1390,r:20.7}),r.createElement("line",{className:"st6",x1:2215.6,y1:1467.4,x2:2215.6,y2:1534.3}),r.createElement("path",{className:"st6",d:"M2116.5,1488.6"}),r.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"}),r.createElement("circle",{className:"st6",cx:2147.2,cy:1449.2,r:17.8}),r.createElement("g",null,r.createElement("line",{className:"st6",x1:2164.2,y1:1443.7,x2:2207.1,y2:1443.7})),r.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"}),r.createElement("g",null,r.createElement("path",{className:"st6",d:"M2179.5,1549.3"})),r.createElement("circle",{className:"st10",cx:2140.8,cy:1447,r:3.4}))),wd=r.createElement("g",null,r.createElement("line",{className:"st22",x1:2138.5,y1:573.7,x2:2138.5,y2:819.3}),r.createElement("line",{className:"st22",x1:2190,y1:573.7,x2:2190,y2:819.3}),r.createElement("circle",{className:"st10",cx:2138.5,cy:631.5,r:14.1}),r.createElement("circle",{className:"st10",cx:2190,cy:714,r:14.1})),yd=r.createElement("g",null,r.createElement("path",{className:"st6",d:"M1617.7,285.4h698.9"}),r.createElement("path",{className:"st6",d:"M2316.6,374.3H2240V196.2h76.6"}),r.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"}),r.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"}),r.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"})),Nd=r.createElement("g",null,r.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"}),r.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"})),kd=r.createElement("g",null,r.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"}),r.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"}));function Ed(e,t){var a=e.title,n=e.titleId,c=cu(e,["title","titleId"]);return r.createElement("svg",ru({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":n},c),a?r.createElement("title",{id:n},a):null,su,r.createElement("g",{id:"Reference",className:"st0"},r.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)"})),lu,iu,ou,r.createElement("g",{id:"Art"},uu,du,mu,bu,pu,hu,ju,fu,vu,Ou,gu,xu,_u,wu,yu,Nu,ku,Eu,Cu,Su,Lu,Mu,Pu,Iu,Du,Ru,Hu,Au,Bu,Fu,zu,Vu,Wu,Tu,Uu,Zu,Gu,qu,Yu,Ku,Ju,Qu,Xu,$u,ed,td,ad,r.createElement("g",null,nd,r.createElement("clipPath",{id:"SVGID_2_"},r.createElement("use",{xlinkHref:"#SVGID_1_",style:{overflow:"visible"}})),rd),r.createElement("g",null,cd,r.createElement("clipPath",{id:"SVGID_4_"},r.createElement("use",{xlinkHref:"#SVGID_3_",style:{overflow:"visible"}})),sd),r.createElement("g",null,ld,r.createElement("clipPath",{id:"SVGID_6_"},r.createElement("use",{xlinkHref:"#SVGID_5_",style:{overflow:"visible"}})),id),od,ud,dd,md,bd,pd,hd,jd,fd,vd,Od,gd,xd,_d,wd,yd,Nd,kd))}var Cd=r.forwardRef(Ed),Sd=(a.p,a(318)),Ld=a.n(Sd),Md=R.a.bind(Ld.a);function Pd(){var e=Object(r.useState)({username:"",password:""}),t=Object(o.a)(e,2),a=(t[0],t[1]),c=function(e){return function(t){a((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}};return Object(n.jsxs)("section",{className:Md("wrapper"),children:[Object(n.jsxs)("div",{className:Md("login"),children:[Object(n.jsx)("div",{className:Md("kicker"),children:Object(n.jsx)(nu,{})}),Object(n.jsxs)("div",{className:Md("header"),children:[Object(n.jsx)("h1",{className:Md("title"),children:"Sign in using your Gogs credentials."}),Object(n.jsx)("span",{className:Md("title-sub"),children:"\u4f7f\u7528\u60a8\u7684Gogs\u7528\u6237\u540d\u548c\u5bc6\u7801\u767b\u5f55"})]}),Object(n.jsxs)($s,{className:Md("form"),method:"POST",action:"/login",children:[Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Username",name:"username",width:"100%",type:"text",required:!0,onChange:c("username")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Password",name:"password",width:"100%",type:"password",autoComplete:"current-password",required:!0,onChange:c("password")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(Oe,{theme:"primary",type:"submit",className:Md("btn","btn-sign-in"),children:"Sign in"})})]})]}),Object(n.jsx)("div",{className:Md("illustration"),children:Object(n.jsx)(Cd,{})})]})}var Id=a(319),Dd=a.n(Id),Rd=R.a.bind(Dd.a);function Hd(){var e=Object(p.g)(),t=Object(r.useState)({name:"",email:"",company:""}),a=Object(o.a)(t,2),c=a[0],s=a[1],l=function(e){return function(t){s((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}},u=Object(r.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,Ie("/api/user",{method:"PATCH",data:c});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]])}))),[c,e]);return Object(n.jsxs)("section",{className:Rd("wrapper"),children:[Object(n.jsxs)("div",{className:Rd("login"),children:[Object(n.jsx)("div",{className:Rd("kicker"),children:Object(n.jsx)(nu,{})}),Object(n.jsx)("div",{className:Rd("header"),children:Object(n.jsx)("h1",{className:Rd("title"),children:"Complete your Drone Registration."})}),Object(n.jsxs)($s,{className:Rd("form"),onSubmit:function(e){return e.preventDefault()},children:[Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Your Email",name:"email",width:"100%",type:"email",required:!0,onChange:l("email")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Your Full Name",name:"name",width:"100%",type:"text",required:!0,onChange:l("name")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(el.Input,{label:"Company Name",name:"name",width:"100%",type:"text",onChange:l("company")})}),Object(n.jsx)(Xs,{children:Object(n.jsx)(Oe,{theme:"primary",className:Rd("btn","btn-sign-in"),onClick:u,children:"Submit"})})]}),Object(n.jsxs)("div",{className:Rd("legal"),children:['By clicking "Submit", you agree to our'," ",Object(n.jsx)("a",{href:"https://harness.io/privacy/",children:"Privacy Policy"})," ","and"," ",Object(n.jsx)("a",{href:"https://github.com/drone/drone/blob/master/LICENSE",children:"License"}),"."]})]}),Object(n.jsx)("div",{className:Rd("illustration"),children:Object(n.jsx)(Cd,{})})]})}var Ad=a(320),Bd=a.n(Ad),Fd=R.a.bind(Bd.a),zd=function(e){var t,a=e.handleSubmit,c=e.handleCancel,s=Object(r.useState)({target:"",commit:"",parameters:[]}),l=Object(o.a)(s,2),u=l[0],d=l[1],m=Object(r.useState)({key:"",value:""}),b=Object(o.a)(m,2),p=b[0],h=b[1],j=function(e){return function(){return d((function(t){return Object(i.a)(Object(i.a)({},t),{},{parameters:t.parameters.filter((function(t){return t.id!==e}))})}))}},f=function(e){return function(t){h((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}};return Object(n.jsxs)($s,{className:Fd("new-build-form"),children:[Object(n.jsx)(Xs,{className:Fd("new-build-form-column"),children:Object(n.jsx)(el.Input,{label:"Branch",placeholder:"master",value:u.target,name:"branch",onChange:(t="target",function(e){d((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},t,e.target.value.trim()))}))})})}),Object(n.jsxs)(Xs,{title:"Parameters",className:Fd("new-build-form-column"),children:[u.parameters.length?Object(n.jsx)("div",{className:Fd("new-build-form-parameters-list"),children:u.parameters.map((function(e){var t=e.key,a=e.value,r=e.id;return Object(n.jsxs)("div",{className:Fd("new-build-form-parameters"),children:[Object(n.jsx)(el.Input,{value:t,name:t,readOnly:!0}),Object(n.jsx)(el.Input,{name:a,value:a,readOnly:!0}),Object(n.jsx)(Oe,{theme:"plain",type:"button",onClick:j(r),children:"Remove"})]},r)}))}):null,Object(n.jsxs)("div",{className:Fd("new-build-form-parameters-fields"),children:[Object(n.jsx)(el.Input,{placeholder:"key",value:p.key,onChange:f("key")}),Object(n.jsx)(el.Input,{placeholder:"value",value:p.value,onChange:f("value")}),Object(n.jsx)(Oe,{theme:"plain",type:"button",onClick:function(){p.key&&p.value&&(d((function(e){return Object(i.a)(Object(i.a)({},e),{},{parameters:[].concat(Object(ht.a)(e.parameters),[Object(i.a)(Object(i.a)({},p),{},{id:Date.now()})])})})),h({key:"",value:""}))},children:"+ Add"})]})]}),Object(n.jsxs)(Xs,{className:Fd("new-build-form-controls"),children:[Object(n.jsx)(Oe,{theme:"primary",type:"submit",onClick:function(e){e.preventDefault(),a(u),c()},children:"Create"}),Object(n.jsx)(Oe,{theme:"primary",type:"button",onClick:c,children:"Cancel"})]})]})};function Vd(){return(Vd=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}var Td=r.createElement("line",{x1:12,y1:5,x2:12,y2:19}),Ud=r.createElement("line",{x1:5,y1:12,x2:19,y2:12});function Zd(e,t){var a=e.title,n=e.titleId,c=Wd(e,["title","titleId"]);return r.createElement("svg",Vd({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":n},c),a?r.createElement("title",{id:n},a):null,Td,Ud)}var Gd=r.forwardRef(Zd),qd=(a.p,a(321)),Yd=a.n(qd),Kd=R.a.bind(Yd.a),Jd=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":b.c},{to:"/".concat(a,"/").concat(n,"/branches"),exact:!0,label:"Branches",tag:t?"span":b.c},{to:"/".concat(a,"/").concat(n,"/deployments"),exact:!0,label:"Deployments",tag:t?"span":b.c},{to:"/".concat(a,"/").concat(n,"/settings"),label:"Settings",tag:b.c}];return r?c:c.slice(0,c.length-1)},Qd=function(e){var t=e.user,a=Object(p.j)().params,c=a.namespace,s=a.name,l=(a.build,a.stage,a.step,Object(r.useContext)(mt)),i=Object(o.a)(l,1)[0].isRepoNavDisabled,u=Pc(),h=Object(o.a)(u,2),j=h[0],f=h[1],v=wt({namespace:c,name:s}),O=v.data,g=v.isLoading,x=v.isError,_=Object(r.useMemo)((function(){var e,a;return null!==(e=null===O||void 0===O||null===(a=O.permissions)||void 0===a?void 0:a.write)&&void 0!==e&&e||(null===t||void 0===t?void 0:t.admin)}),[O,t]),w=Le(),y=w.showError,N=w.showSuccess,k=Object(r.useMemo)((function(){return Object(n.jsx)("nav",{className:Kd("tabs"),children:Jd({isRepoNavDisabled:i,namespace:c,name:s,displaySettings:_}).map((function(e){return"span"===e.tag?Object(n.jsx)("span",{className:Kd("tab","tab-disabled"),children:e.label},e.label):Object(n.jsx)(b.c,{className:Kd("tab"),activeClassName:Kd("tab-active"),exact:e.exact,to:e.to,children:e.label},e.to)}))})}),[i,c,s,_]),E=f,C=Object(r.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="/api/repos/".concat(c,"/").concat(s,"/builds"),t.target&&(a="".concat(a,"?branch=").concat(t.target),t.commit&&(a="".concat(a,"&commit=").concat(t.commit)),(null===(n=t.parameters)||void 0===n?void 0:n.length)&&(a="".concat(a,"&").concat(t.parameters.map((function(e){return"".concat(e.key,"=").concat(e.value)})).join("&")))),e.prev=2,e.next=5,Ie(a,{method:"POST"});case 5:N("New build has started successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),y("Unable to start a new build: ".concat(e.t0.message)),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}(),[s,c,y,N]);return g?null:"Not Found"===(null===x||void 0===x?void 0:x.message)||"Unauthorized"===(null===x||void 0===x?void 0:x.message)?Object(n.jsx)(is,{user:t}):Object(n.jsxs)(p.d,{children:[Object(n.jsx)(p.b,{path:["/:namespace/:name","/:namespace/:name/deployments","/:namespace/:name/branches","/:namespace/:name/settings*"],exact:!0,children:Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("header",{className:Kd("header"),children:[Object(n.jsxs)("div",{className:Kd("inner"),children:[Object(n.jsxs)(wi,{className:Kd("breadcrumb"),children:[Object(n.jsx)(yi,{href:"/",text:"Repositories"}),Object(n.jsx)(Ni,{})]}),Object(n.jsx)("h1",{children:s})]}),!i&&_&&Object(n.jsx)(Oe,{theme:"primary",className:Kd("new-build-btn"),icon:Object(n.jsx)(Gd,{}),onClick:E,children:"New Build"})]}),k,Object(n.jsxs)(p.d,{children:[Object(n.jsx)(jb.Branches,{path:"/:namespace/:name/branches",componentProps:{user:t,repo:O},visibility:M,exact:!0}),Object(n.jsx)(jb.Deployments,{path:"/:namespace/:name/deployments",componentProps:{user:t,repo:O},visibility:M,exact:!0}),Object(n.jsx)(jb.Settings,{path:"/:namespace/:name/settings*",componentProps:{user:t,repo:O},visibility:M}),Object(n.jsx)(jb.Builds,{path:"/:namespace/:name",componentProps:{user:t,repo:O},visibility:M,exact:!0})]}),Object(n.jsx)(Ic,{title:"Create a New Build",isShowing:j,hide:f,children:Object(n.jsx)(zd,{handleSubmit:C,handleCancel:f})})]})}),Object(n.jsx)(jb.Build,{path:"/:namespace/:name/:build/:stage?/:step?",componentProps:{user:t,userIsAdminOrHasWritePerm:_},visibility:M})]})},Xd=a(322),$d=a.n(Xd),em=R.a.bind($d.a),tm=[{key:"Markdown",value:"markdown"},{key:"Markup",value:"markup"},{key:"CCMenu",value:"cc"}];function am(){var e=Object(p.i)(),t=e.namespace,a=e.name,c=Object(r.useState)(!1),s=Object(o.a)(c,2),l=s[0],u=s[1],d=Object(r.useState)({branch:"",snippetSyntax:"markdown"}),m=Object(o.a)(d,2),b=m[0],h=m[1],j=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)}(b.branch,v,a,t),f=Object(r.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(v,"/").concat(n,"/").concat(r,"/cc.xml");case"markdown":default:return"[![Build Status](".concat(a,")](").concat(v,"/").concat(n,"/").concat(r,")")}}({syntax:b.snippetSyntax,image:j,namespace:t,name:a})}),[b.snippetSyntax,j,t,a]);return Object(r.useEffect)((function(){var e;return l&&(e=setTimeout((function(){u(!1)}),2e3)),function(){return clearTimeout(e)}}),[l]),Object(r.useEffect)((function(){u(!1)}),[b]),Object(n.jsx)("div",{className:em("wrapper"),children:Object(n.jsxs)("div",{className:em("inner"),children:[Object(n.jsx)("img",{alt:"badge",src:j}),Object(n.jsxs)($s,{className:em("group"),children:[Object(n.jsxs)("div",{className:em("group","group-badge"),children:[Object(n.jsx)(el.Select,{label:"Syntax",name:"syntax",value:b.snippetSyntax,optionsList:tm,width:260,onChange:function(e){var t=e.target;h((function(e){return Object(i.a)(Object(i.a)({},e),{},{snippetSyntax:t.value})}))}}),Object(n.jsx)(el.Input,{label:"Branch",name:"branch",placeholder:"master",value:b.branch,width:260,onChange:function(e){var t=e.target;h((function(e){return Object(i.a)(Object(i.a)({},e),{},{branch:t.value.trim()})}))}})]}),Object(n.jsxs)("pre",{className:em("badge-snippet"),children:[Object(n.jsx)(St.CopyToClipboard,{text:f,onCopy:function(){u(!0)},children:Object(n.jsx)(Oe,{className:em("copy-btn"),type:"button",children:l?"Copied!":Object(n.jsx)(Rt,{})})}),Object(n.jsx)("code",{children:f})]})]})]})})}function nm(){return(nm=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}var cm=r.createElement("polyline",{points:"3 6 5 6 21 6"}),sm=r.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"}),lm=r.createElement("line",{x1:10,y1:11,x2:10,y2:17}),im=r.createElement("line",{x1:14,y1:11,x2:14,y2:17});function om(e,t){var a=e.title,n=e.titleId,c=rm(e,["title","titleId"]);return r.createElement("svg",nm({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":n},c),a?r.createElement("title",{id:n},a):null,cm,sm,lm,im)}var um=r.forwardRef(om),dm=(a.p,a(323)),mm=a.n(dm),bm=R.a.bind(mm.a),pm=["@hourly","@daily","@weekly","@monthly","@yearly"].map((function(e){return{key:e,value:e}})),hm=function(e){var t=e.handleSubmit,a=e.handleCancel,c=Object(r.useState)({name:"",branch:"",expr:pm[0].value}),s=Object(o.a)(c,2),l=s[0],u=s[1],d=function(e){return function(t){u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value))}))}};return Object(n.jsxs)($s,{className:bm("container","form"),children:[Object(n.jsxs)(Xs,{className:bm("group","group-fields"),children:[Object(n.jsx)(el.Input,{label:"Name",value:l.name,name:"cron-name",width:350,autoFocus:"true",onChange:d("name")}),Object(n.jsx)(el.Input,{label:"Branch",value:l.branch,placeholder:"master",name:"cron-branch",width:350,onChange:d("branch")}),Object(n.jsx)(el.Select,{label:"Schedule",value:l.expr,optionsList:pm,width:350,onChange:d("expr")})]}),Object(n.jsxs)(Xs,{className:bm("controls"),children:[Object(n.jsx)(Oe,{onClick:function(){t(l),a()},children:"Create"}),Object(n.jsx)(Oe,{onClick:a,children:"Cancel"})]})]})};function jm(){var e=Object(p.i)(),t=e.namespace,a=e.name,c=Pc(),s=Object(o.a)(c,2),l=s[0],u=s[1],b=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a,"/cron"))}({namespace:t,name:a}),h=b.data,j=b.isLoading,f=b.mutate,v=Le(),O=v.showSuccess,g=v.showError,x=Object(r.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,Ie("/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,f((function(e){return e.concat(r)}),!1),O("Cron has been added successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),g(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,f,O,g]),_=null;return _=j?null:h.length?Object(n.jsx)(fm,{crons:h,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,Ie("/api/repos/".concat(t,"/").concat(a,"/cron/").concat(e),{method:"DELETE"});case 5:O("Cron has been removed successfully"),f(h.filter((function(t){return t.name!==e})),!1),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),g(n.t0.message),console.warn(n.t0.message);case 13:case"end":return n.stop()}}),n,null,[[2,9]])})))}}):Object(n.jsxs)("div",{className:bm("zero"),children:[Object(n.jsx)("h2",{children:"No Cron Jobs"}),Object(n.jsx)("p",{children:"You can create cron jobs to schedule pipeline executions on a recurring basis."})]}),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:bm("wrapper"),children:Object(n.jsx)("div",{className:bm("card"),children:j?null:Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:bm("actions"),children:Object(n.jsx)(Oe,{theme:"primary",className:bm("btn-new"),icon:Object(n.jsx)(Gd,{}),onClick:u,children:"New Cron Job"})}),_]})})}),Object(n.jsx)(Ic,{title:"Create a New Cron Job",isShowing:l,hide:u,children:Object(n.jsx)(hm,{handleSubmit:x,handleCancel:u})})]})}function fm(e){var t;return Object(n.jsxs)("div",{className:bm("cron-list-wrapper"),children:[Object(n.jsxs)("div",{className:bm("cron-list-header"),children:[Object(n.jsx)("div",{children:"Name"}),Object(n.jsx)("div",{children:"Branch"}),Object(n.jsx)("div",{children:"Schedule"}),Object(n.jsx)("div",{children:"Next Execution"}),Object(n.jsx)("div",{})]}),Object(n.jsx)("div",{className:bm("cron-list"),children:null===e||void 0===e||null===(t=e.crons)||void 0===t?void 0:t.map((function(t){return Object(n.jsx)(vm,{data:t,onRemove:e.handleRemove},t.id)}))})]})}function vm(e){var t=e.data,a=e.onRemove;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:bm("cron-list-item"),children:[Object(n.jsx)("div",{children:t.name}),Object(n.jsx)("div",{children:t.branch}),Object(n.jsx)("div",{children:t.expr}),Object(n.jsx)("div",{children:t.next&&new Date(1e3*t.next).toLocaleString()}),Object(n.jsx)("div",{children:Object(n.jsx)(Oe,{onClick:a(t.name),children:Object(n.jsx)(um,{})})})]})})}function Om(){return(Om=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}var xm=r.createElement("circle",{cx:12,cy:12,r:10}),_m=r.createElement("line",{x1:4.93,y1:4.93,x2:19.07,y2:19.07});function wm(e,t){var a=e.title,n=e.titleId,c=gm(e,["title","titleId"]);return r.createElement("svg",Om({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":n},c),a?r.createElement("title",{id:n},a):null,xm,_m)}var ym=r.forwardRef(wm),Nm=(a.p,a(324)),km=a.n(Nm),Em=R.a.bind(km.a);function Cm(e){var t=e.user,a=e.repo,c=Object(p.i)(),s=c.namespace,l=c.name,u=wt({namespace:s,name:l}).mutate,b=Le(),h=b.showError,j=b.showSuccess,f=Object(r.useState)(null),v=Object(o.a)(f,2),O=v[0],g=v[1];Object(r.useLayoutEffect)((function(){a&&g(Re(a)(["ignore_pull_requests","ignore_forks","protected","trusted","visibility","timeout","config_path"]))}),[a]);var x,w=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,Ie("/api/repos/".concat(s,"/").concat(l),{method:"DELETE"});case 5:u(),j("Repo has been disabled"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),h("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)}}(),y=function(){var e=Object(m.a)(d.a.mark((function e(t){var a;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ie("/api/repos/".concat(s,"/").concat(l),{method:"PATCH",data:Object(i.a)(Object(i.a)({},O),{},{timeout:+O.timeout})});case 3:a=e.sent,u(a),j("Changes have been saved"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),h("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(t){return e.apply(this,arguments)}}(),N=function(e){return function(t){switch(e){case"ignore_pull_requests":case"ignore_forks":case"protected":case"trusted":g((function(t){return Object(i.a)(Object(i.a)({},t),{},Object(ye.a)({},e,!t[e]))}));break;case"visibility":case"config_path":case"timeout":g((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value))}))}}};return null===O?null:Object(n.jsx)("div",{className:Em("wrapper"),children:Object(n.jsx)("div",{className:Em("inner"),children:Object(n.jsxs)($s,{className:Em("form"),children:[Object(n.jsxs)(Xs,{className:Em("form-section-row"),title:"Project Webhooks",children:[Object(n.jsx)("div",{className:Em("switch-row"),children:Object(n.jsx)(Zo,{id:"ignore_pull_requests",checked:O.ignore_pull_requests,onChange:N("ignore_pull_requests"),children:"Disable Pull Requests"})}),Object(n.jsx)("div",{className:Em("switch-row"),children:Object(n.jsx)(Zo,{id:"ignore_forks",checked:O.ignore_forks,onChange:N("ignore_forks"),children:"Disable forks"})})]}),(null===t||void 0===t?void 0:t.admin)&&Object(n.jsxs)(Xs,{className:Em("form-section-row"),title:"Project Settings",children:[Object(n.jsxs)("div",{className:Em("switch-row"),children:[Object(n.jsx)(Zo,{id:"protected",checked:O.protected,onChange:N("protected"),children:"Protected"}),Object(n.jsx)("p",{className:Em("note"),children:"Blocks a pipeline if the yaml signature cannot be verified."})]}),Object(n.jsxs)("div",{className:Em("switch-row"),children:[Object(n.jsx)(Zo,{id:"trusted",checked:O.trusted,onChange:N("trusted"),children:"Trusted"}),Object(n.jsx)("p",{className:Em("note"),children:"Enables privileged container settings."})]})]}),Object(n.jsx)(Xs,{className:Em("form-section-row"),title:"Project Visibility",children:Object(n.jsxs)("ul",{className:Em("visibility-container"),children:[Object(n.jsxs)("li",{className:Em("visibility-card-wrapper"),children:[Object(n.jsxs)("div",{className:Em("visibility-card"),children:[Object(n.jsx)("h4",{children:"Private"}),Object(n.jsx)("p",{children:"Private repositories are only accessible to people you explicitly share access with."})]}),Object(n.jsx)(el.Radio,{name:"private",checked:"private"===O.visibility,value:"private",appearance:"checkmark",onChange:N("visibility")})]}),Object(n.jsxs)("li",{className:Em("visibility-card-wrapper"),children:[Object(n.jsxs)("div",{className:Em("visibility-card"),children:[Object(n.jsx)("h4",{children:"Public"}),Object(n.jsx)("p",{children:"Public repositories are accessible to everyone on the internet."})]}),Object(n.jsx)(el.Radio,{name:"public",value:"public",appearance:"checkmark",checked:"public"===O.visibility,onChange:N("visibility")})]}),Object(n.jsxs)("li",{className:Em("visibility-card-wrapper"),children:[Object(n.jsxs)("div",{className:Em("visibility-card"),children:[Object(n.jsx)("h4",{children:"Internal"}),Object(n.jsx)("p",{children:"Internal repositories are only accessible to authenticated user."})]}),Object(n.jsx)(el.Radio,{name:"internal",checked:"internal"===O.visibility,value:"internal",appearance:"checkmark",onChange:N("visibility")})]})]})}),Object(n.jsxs)(Xs,{className:Em("form-section-row","form-section-row-is-last"),children:[Object(n.jsx)(el.Select,{label:"Timeout",value:O.timeout,optionsList:(x=_,x.map((function(e){return{value:e,key:e>90?"".concat(e/60," hours"):"".concat(e," minutes")}}))),width:200,className:Em("timeout"),onChange:N("timeout")}),Object(n.jsx)(el.Input,{label:"Configuration",name:"configuration",value:O.config_path,width:372,className:Em("config"),onChange:N("config_path")})]}),Object(n.jsxs)("div",{className:Em("controls"),children:[Object(n.jsx)("button",{className:Em("btn","btn-save"),type:"button",onClick:y,children:"Save Changes"}),Object(n.jsxs)("button",{className:Em("btn","btn-disable"),type:"button",onClick:w,children:[Object(n.jsx)(ym,{}),"Disable"]})]})]})})})}var Sm=a(325),Lm=a.n(Sm),Mm=R.a.bind(Lm.a),Pm=function(e){var t=e.handleSubmit,a=e.handleCancel,c=Object(r.useState)({name:"",data:"",pull_request:!1}),s=Object(o.a)(c,2),l=s[0],u=s[1],d=function(e){return function(t){switch(e){case"name":case"data":u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value))}));break;case"pull_request":u((function(e){return Object(i.a)(Object(i.a)({},e),{},{pull_request:t.target.checked})}))}}};return Object(n.jsxs)($s,{className:Mm("container"),children:[Object(n.jsxs)(Xs,{className:Mm("group","group-fields"),children:[Object(n.jsx)(el.Input,{placeholder:"Secret Name",value:l.name,label:"Name",name:"secret-name",width:350,autoFocus:"true",onChange:d("name")}),Object(n.jsx)(el.TextArea,{label:"Value",placeholder:"Secret value",value:l.data,name:"secret-value",width:350,onChange:d("data")}),Object(n.jsx)(el.Checkbox,{label:"Allow Pull Requests",name:"pull_request",checked:l.pull_request,onChange:d("pull_request")})]}),Object(n.jsxs)(Xs,{className:Mm("controls"),children:[Object(n.jsx)(Oe,{onClick:function(e){t(l),a()},children:"Create"}),Object(n.jsx)(Oe,{onClick:a,children:"Cancel"})]})]})};function Im(){var e=Object(p.i)(),t=e.namespace,a=e.name,c=function(e){var t=e.namespace,a=e.name;return jt("/api/repos/".concat(t,"/").concat(a,"/secrets"))}({namespace:t,name:a}),s=c.data,l=c.isLoading,i=c.mutate,u=Pc(),b=Object(o.a)(u,2),h=b[0],j=b[1],f=Le(),v=f.showError,O=f.showSuccess,g=Object(r.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,Ie("/api/repos/".concat(t,"/").concat(a,"/secrets"),{method:"POST",data:n});case 3:r=e.sent,i((function(e){return e.concat(r)}),!1),O("Secret has been added successfully"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),v("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)}}(),[i,t,a,O,v]),x=null;return x=l?null:s.length?Object(n.jsx)(Dm,{secrets:s,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 delete this secret?")){n.next=13;break}return n.prev=2,n.next=5,Ie("/api/repos/".concat(t,"/").concat(a,"/secrets/").concat(e),{method:"DELETE"});case 5:i(s.filter((function(t){return t.name!==e})),!1),O("Secret has been removed successfully"),n.next=13;break;case 9:n.prev=9,n.t0=n.catch(2),v("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(n.jsxs)("div",{className:Mm("zero"),children:[Object(n.jsx)("h2",{children:"No Secrets"}),Object(n.jsx)("p",{children:"Manage sensitive configuration parameters, such as passwords, tokens, and ssh keys."})]}),Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:Mm("wrapper"),children:Object(n.jsxs)("div",{className:Mm("card"),children:[Object(n.jsx)("div",{className:Mm("actions"),children:Object(n.jsx)(Oe,{theme:"primary",className:Mm("btn-new"),icon:Object(n.jsx)(Gd,{}),onClick:j,children:"New Secret"})}),x]})}),Object(n.jsx)(Ic,{title:"Create a New Secret",isShowing:h,hide:j,children:Object(n.jsx)(Pm,{handleSubmit:g,handleCancel:j})})]})}function Dm(e){var t;return Object(n.jsxs)("div",{className:Mm("secret-list-wrapper"),children:[Object(n.jsxs)("div",{className:Mm("secret-list-header"),children:[Object(n.jsx)("div",{children:"Name"}),Object(n.jsx)("div",{children:"Pull Requests"}),Object(n.jsx)("div",{})]}),Object(n.jsx)("div",{className:Mm("secret-list"),children:null===e||void 0===e||null===(t=e.secrets)||void 0===t?void 0:t.map((function(t){return Object(n.jsx)(Rm,{data:t,onRemove:e.handleRemove},t.id)}))})]})}function Rm(e){var t=e.data,a=e.onRemove;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:Mm("secret-list-item"),children:[Object(n.jsx)("div",{children:t.name}),Object(n.jsx)("div",{children:t.pull_request?"Enabled":"Disabled"}),Object(n.jsx)("div",{children:Object(n.jsx)(Oe,{onClick:a(t.name),children:Object(n.jsx)(um,{})})})]})})}var Hm=a(326),Am=a.n(Hm),Bm=R.a.bind(Am.a),Fm=function(e){e.namespace,e.name;var t=e.showActivationBtn,a=e.activationHandler;return Object(n.jsx)("section",{className:Bm("inactive-wrapper"),children:Object(n.jsxs)("div",{className:Bm("inactive-inner"),children:[Object(n.jsx)(Ia,{}),Object(n.jsx)("h2",{children:"This Repository is not Active."}),t?Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("p",{children:"Please activate your repository to begin executing pipelines."}),Object(n.jsx)(Oe,{theme:"primary",icon:Object(n.jsx)(Gd,{}),onClick:a,children:"Activate Repository"})]}):Object(n.jsx)("p",{children:"Please contact the repository administrator to activate this repository."})]})})};function zm(e){var t,a,c=e.user,s=e.repo,l=Object(p.i)(),u=l.namespace,h=l.name,j=wt({namespace:u,name:h}).mutate,f=Object(r.useContext)(mt),v=Object(o.a)(f,2)[1],O=Le(),g=O.showError,x=O.showSuccess;Object(r.useEffect)((function(){return s&&v((function(e){return Object(i.a)(Object(i.a)({},e),{},{isRepoNavDisabled:!(null===s||void 0===s?void 0:s.active)})})),function(){return v((function(e){return Object(i.a)(Object(i.a)({},e),{},{isRepoNavDisabled:!1})}))}}),[s,v]);var _=Object(r.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,Ie("/api/repos/".concat(u,"/").concat(h),{method:"POST"});case 3:t=e.sent,j(t,!1),x("Repo has been successfully enabled"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),g(e.t0.message),console.warn(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),[g,x,u,h,j]);return ge("Settings - ".concat(u,"/").concat(h)),Object(n.jsx)(n.Fragment,{children:(null===s||void 0===s?void 0:s.active)?Object(n.jsxs)("section",{className:Bm("wrapper"),children:[Object(n.jsx)("aside",{children:Object(n.jsxs)("nav",{className:Bm("settings-nav"),children:[Object(n.jsx)(b.c,{className:Bm("settings-nav-item"),activeClassName:Bm("settings-nav-item-active"),to:"/".concat(u,"/").concat(h,"/settings"),exact:!0,children:"General"}),Object(n.jsx)(b.c,{className:Bm("settings-nav-item"),activeClassName:Bm("settings-nav-item-active"),to:"/".concat(u,"/").concat(h,"/settings/secrets"),exact:!0,children:"Secrets"}),Object(n.jsx)(b.c,{className:Bm("settings-nav-item"),activeClassName:Bm("settings-nav-item-active"),to:"/".concat(u,"/").concat(h,"/settings/cron"),exact:!0,children:"Cron Jobs"}),Object(n.jsx)(b.c,{className:Bm("settings-nav-item"),activeClassName:Bm("settings-nav-item-active"),to:"/".concat(u,"/").concat(h,"/settings/badges"),exact:!0,children:"Badges"})]})}),Object(n.jsxs)(p.d,{children:[Object(n.jsx)(p.b,{path:"/:namespace/:name/settings",component:function(e){return Object(n.jsx)(Cm,Object(i.a)(Object(i.a)({},e),{},{repo:s,user:c}))},exact:!0}),Object(n.jsx)(p.b,{path:"/:namespace/:name/settings/secrets",component:Im}),Object(n.jsx)(p.b,{path:"/:namespace/:name/settings/cron",component:jm}),Object(n.jsx)(p.b,{path:"/:namespace/:name/settings/badges",component:am})]})]}):Object(n.jsx)(Fm,{namespace:u,name:h,showActivationBtn:null!==(t=null===s||void 0===s||null===(a=s.permissions)||void 0===a?void 0:a.admin)&&void 0!==t&&t,activationHandler:_})})}var Vm=a(327),Wm=a.n(Vm),Tm=R.a.bind(Wm.a),Um=function(e){var t=e.user,a=Object(r.useMemo)((function(){return Object(n.jsx)("nav",{className:Tm("tabs"),children:[{to:"/settings/users",exact:!0,label:"Users"}].map((function(e){return Object(n.jsx)(b.c,{className:Tm("tab"),activeClassName:Tm("tab-active"),exact:e.exact,to:e.to,children:e.label},e.to)}))})}),[]);return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("header",{className:Tm("header"),children:Object(n.jsx)("div",{className:Tm("inner"),children:Object(n.jsx)("h1",{children:"System Administration"})})}),a,Object(n.jsxs)(p.d,{children:[Object(n.jsx)(p.b,{path:"/settings",component:function(){return Object(n.jsx)(p.a,{from:"/settings",to:"/settings/users",strict:!0,exact:!0})},exact:!0}),Object(n.jsx)(jb.Users,{path:"/settings/users",componentProps:{user:t},visibility:I,exact:!0})]})]})},Zm=a(328),Gm=a.n(Zm),qm=R.a.bind(Gm.a),Ym=function(e){var t=e.initialValues,a=e.handleSubmit,c=e.handleDelete,s=e.handleCancel,l=Object(r.useState)(t),u=Object(o.a)(l,2),d=u[0],m=u[1],b=function(e){return function(t){m((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.checked))}))}};return Object(n.jsxs)($s,{className:qm("new-user-form"),children:[Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Checkbox,{label:"Admin User",name:"admin",checked:d.admin,onChange:b("admin")})}),Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Checkbox,{label:"Machine User",name:"machine",checked:d.machine,disabled:!0,onChange:b("machine")})}),Object(n.jsxs)(Xs,{className:qm("new-user-form-controls"),children:[Object(n.jsx)(Oe,{className:qm("save"),theme:"primary",type:"button",onClick:function(e){a(d),s()},children:"Save"}),Object(n.jsx)(Oe,{className:qm("cancel"),theme:"primary",type:"button",onClick:s,children:"Cancel"}),Object(n.jsx)(Oe,{className:qm("delete"),theme:"primary",icon:Object(n.jsx)(ym,{}),onClick:function(){c(d.login),s()},children:"Delete"})]})]})},Km=function(e){var t=e.handleSubmit,a=e.handleCancel,c=Object(r.useState)({login:"",email:"",admin:!1,machine:!1}),s=Object(o.a)(c,2),l=s[0],u=s[1],d=function(e){return function(t){switch(e){case"admin":case"machine":u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.checked))}));break;default:u((function(a){return Object(i.a)(Object(i.a)({},a),{},Object(ye.a)({},e,t.target.value.trim()))}))}}};return Object(n.jsxs)($s,{className:qm("new-user-form"),children:[Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Input,{label:"Login",placeholder:"userlogin",value:l.login,name:"login",width:400,required:!0,onChange:d("login")})}),Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Input,{label:"Email",type:"email",placeholder:"example@mail.com",value:l.email,name:"email",width:400,required:!0,onChange:d("email")})}),Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Checkbox,{label:"Admin User",name:"admin",checked:l.admin,onChange:d("admin")})}),Object(n.jsx)(Xs,{className:qm("new-user-form-column"),children:Object(n.jsx)(el.Checkbox,{label:"Machine User",name:"machine",checked:l.machine,onChange:d("machine")})}),Object(n.jsxs)(Xs,{className:qm("new-user-form-controls"),children:[Object(n.jsx)(Oe,{className:qm("save"),theme:"primary",onClick:function(e){e.preventDefault(),t(l),a()},children:"Create"}),Object(n.jsx)(Oe,{className:qm("cancel"),theme:"primary",type:"button",onClick:a,children:"Cancel"})]})]})};function Jm(){return(Jm=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}var Xm=r.createElement("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),$m=r.createElement("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"});function eb(e,t){var a=e.title,n=e.titleId,c=Qm(e,["title","titleId"]);return r.createElement("svg",Jm({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":n},c),a?r.createElement("title",{id:n},a):null,Xm,$m)}var tb=r.forwardRef(eb),ab=(a.p,a(329)),nb=a.n(ab),rb=R.a.bind(nb.a);function cb(e){var t=e.data,a=e.isCurrentUser,r=e.handleEditClick;return Object(n.jsx)(n.Fragment,{children:Object(n.jsxs)("div",{className:rb("user-list-item"),children:[Object(n.jsx)("div",{children:Object(n.jsx)(be,{className:rb("avatar"),text:t.login,path:t.avatar,alt:t.login})}),Object(n.jsx)("div",{children:t.login}),Object(n.jsx)("div",{children:t.active?"Active":"Inactive"}),Object(n.jsx)("div",{children:t.machine?"Machine":"User"}),Object(n.jsx)("div",{children:t.admin?"Admin":"Member"}),Object(n.jsx)("div",{children:Object(no.a)(new Date(1e3*t.created),new Date,{addSuffix:!0})}),Object(n.jsx)("div",{children:0===t.last_login?"":Object(no.a)(new Date(1e3*t.last_login),new Date,{addSuffix:!0})}),Object(n.jsx)("div",{children:!a&&Object(n.jsx)(Oe,{onClick:r,children:Object(n.jsx)(tb,{})})})]})})}var sb=function(e){var t;return Object(n.jsxs)("div",{className:rb("user-list-wrapper"),children:[Object(n.jsxs)("div",{className:rb("user-list-header"),children:[Object(n.jsx)("div",{}),Object(n.jsx)("div",{children:"Username"}),Object(n.jsx)("div",{children:"Active"}),Object(n.jsx)("div",{children:"Type"}),Object(n.jsx)("div",{children:"Role"}),Object(n.jsx)("div",{children:"Created"}),Object(n.jsx)("div",{children:"Last Login"})]}),Object(n.jsx)("div",{className:rb("user-list"),children:null===e||void 0===e||null===(t=e.users)||void 0===t?void 0:t.map((function(t){return Object(n.jsx)(cb,{data:t,isCurrentUser:t.id===e.currentUser.id,handleEditClick:e.handleEditUserClick(t.id)},t.id)}))})]})},lb=a(330),ib=a.n(lb),ob=R.a.bind(ib.a);function ub(e){var t=e.user,a=Object(r.useState)(!1),c=Object(o.a)(a,2),s=c[0],l=c[1];ge("User Management");var u=Le(),b=u.showError,p=u.showSuccess,h=jt("/api/users"),j=h.data,f=h.isLoading,v=h.mutate,O=Pc(),g=Object(o.a)(O,2),x=g[0],_=g[1],w=Object(r.useState)("new"),y=Object(o.a)(w,2),N=y[0],k=y[1],E=Object(r.useMemo)((function(){var e;return function(e){return e.sort((function(e,t){return e.login-t.login}))}(null!==(e=null===j||void 0===j?void 0:j.slice(0,s?null===j||void 0===j?void 0:j.length:1e3))&&void 0!==e?e:[])}),[j,s]),C=Object(r.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,Ie("/api/users",{method:"POST",data:Object(i.a)({},t)});case 3:v(),p("New user has been created successfully"),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),b("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)}}(),[v,b,p]),S=Object(r.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,Ie("/api/users/".concat(n),{method:"PATCH",data:{admin:a}});case 4:v(),p("User settings have been updated"),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),b("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)}}(),[v,b,p]),L=Object(r.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,Ie("/api/users/".concat(t),{method:"DELETE"});case 5:k("new"),v((function(e){return e.filter((function(e){return e.login!==t}))}),!1),p("User has been deleted successfully"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),b("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)}}(),[v,b,p]);return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("section",{className:ob("wrapper"),children:Object(n.jsxs)("div",{className:ob("card"),children:[Object(n.jsx)("div",{className:ob("actions"),children:Object(n.jsx)(Oe,{theme:"primary",className:ob("btn","btn-user"),icon:Object(n.jsx)(Gd,{}),onClick:function(){k("new"),_()},children:"New User"})}),f?Object(n.jsx)("p",{children:"Loading..."}):Object(n.jsx)(sb,{users:E,currentUser:t,handleEditUserClick:function(e){return function(){k(e),_()}}}),!s&&(null===j||void 0===j?void 0:j.length)>1e3&&Object(n.jsx)(Oe,{className:ob("btn","btn-show-more"),onClick:function(){return l(!0)},children:"Show More \u2193"})]})}),Object(n.jsx)(Ic,{title:"new"===N?"Create a New User":"Edit user",isShowing:x,hide:_,children:"new"===N?Object(n.jsx)(Km,{handleSubmit:C,handleCancel:_}):Object(n.jsx)(Ym,{handleSubmit:S,handleDelete:L,handleCancel:_,initialValues:Re(E.find((function(e){return e.id===N})))(["machine","admin","login"])})})]})}var db=a(331),mb=a.n(db),bb=R.a.bind(mb.a);function pb(){var e,t,a,r=Object(p.h)(),c=r.pathname,s=r.search,l=null;switch(c){case"/logout":l=Object(n.jsx)("div",{className:bb("error"),children:"Your session has been successfully terminated."});break;case"/login/error":l=Object(n.jsx)("div",{className:bb("error"),children:null!==(e=null===(a=s,t=("?"===a[0]?a.substr(1):a).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(ye.a)({},decodeURIComponent(r),decodeURIComponent(c||"")))}),{}))||void 0===t?void 0:t.message)&&void 0!==e?e:"An error occured during login attempt, please, try again"})}return Object(n.jsxs)("section",{className:bb("wrapper"),children:[Object(n.jsxs)("div",{className:bb("login"),children:[Object(n.jsx)("div",{className:bb("kicker"),children:Object(n.jsx)(nu,{})}),Object(n.jsxs)("div",{className:bb("header"),children:[Object(n.jsxs)("h1",{className:bb("title"),children:["Hello,",Object(n.jsx)("br",{}),"Welcome to Drone."]}),l,Object(n.jsx)("p",{children:"You will be redirected to your source control management system to authenticate."})]}),Object(n.jsxs)("a",{href:"/login",target:"_self",className:bb("btn"),children:[Object(n.jsx)("span",{children:"Continue"}),Object(n.jsx)(zc,{className:bb("chevron-right")})]})]}),Object(n.jsx)("div",{className:bb("illustration"),children:Object(n.jsx)(Cd,{})})]})}function hb(e){var t=e.component,a=e.visibility,r=e.componentProps,c=e.children,s=Object(pe.a)(e,["component","visibility","componentProps","children"]),l=r.user,o=!!l,u=null===l||void 0===l?void 0:l.admin,d=Object(n.jsx)(p.b,Object(i.a)(Object(i.a)({},s),{},{render:function(e){return t?Object(n.jsx)(t,Object(i.a)(Object(i.a)({},e),r)):c}}));return[a===M,a===P&&o,a===I&&u].some((function(e){return!!e}))?d:a!==M&&!1===o?Object(n.jsx)(p.a,{to:"/welcome"}):Object(n.jsx)(is,{user:l})}hb.defaultProps={componentProps:{},children:null,visibility:0};var jb={Home:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Ko},e))},LoginForm:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Pd},e))},Login:function(e){return Object(n.jsx)("p",{children:"Redirecting to Github Auth..."})},Logout:function(e){return Object(n.jsx)(hb,Object(i.a)({component:pb},e))},LoginError:function(e){return Object(n.jsx)(hb,Object(i.a)({component:pb},e))},Register:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Hd},e))},Account:function(e){return Object(n.jsx)(hb,Object(i.a)({component:zt},e))},Admin:function(e){return Object(n.jsx)(hb,Object(i.a)({component:function(){return Object(n.jsx)("h1",{children:"Admin Settings"})}},e))},Branches:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Wa},e))},Deployments:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Co},e))},Settings:function(e){return Object(n.jsx)(hb,Object(i.a)({component:zm},e))},SettingsAdmin:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Um},e))},Builds:function(e){return Object(n.jsx)(hb,Object(i.a)({component:yo},e))},Build:function(e){return Object(n.jsx)(hb,Object(i.a)({component:ao},e))},NotFound:function(e){return Object(n.jsx)(hb,Object(i.a)({component:is},e))},Welcome:function(e){return Object(n.jsx)(p.b,Object(i.a)({component:pb},e))},Users:function(e){return Object(n.jsx)(hb,Object(i.a)({component:ub},e))},Repo:function(e){return Object(n.jsx)(hb,Object(i.a)({component:Qd},e))}},fb={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",Ie(t,{method:"GET"}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),shouldRetryOnError:!1,revalidateOnFocus:!1},vb=function(e){var t=e.render,a=yt(),n=a.data,c=a.isLoading,s=Object(r.useContext)(mt),l=Object(o.a)(s,2),u=l[0],d=l[1];return Object(r.useEffect)((function(){n&&null===u.isAccSyncing&&d(Object(i.a)(Object(i.a)({},u),{},{isAccSyncing:n.syncing}))}),[n,u,d]),Ot(),c?null:t({user:n})};function Ob(){return Object(n.jsx)(c.a.StrictMode,{children:Object(n.jsx)(j.a,{value:fb,children:Object(n.jsx)(b.a,{children:Object(n.jsx)(pt,{children:Object(n.jsx)(vb,{render:function(e){var t=e.user;return Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)(Ct,{children:[Object(n.jsxs)(p.d,{children:[Object(n.jsx)(p.b,{path:["/welcome","/login/form","/login/error","/logout","/register"],exact:!0}),Object(n.jsx)(p.b,{path:["/settings*"],exact:!0,children:Object(n.jsx)(at,{user:t})}),Object(n.jsxs)(p.b,{path:"/*",children:[Object(n.jsx)(at,{user:t}),Object(n.jsx)(dt,{})]})]}),Object(n.jsxs)(p.d,{children:[Object(n.jsx)(jb.Home,{path:"/",componentProps:{user:t},visibility:P,exact:!0}),Object(n.jsx)(jb.Welcome,{path:"/welcome",componentProps:{user:t},exact:!0}),Object(n.jsx)(jb.Register,{path:"/register",componentProps:{user:t},exact:!0}),Object(n.jsx)(jb.LoginForm,{path:"/login/form",exact:!0}),Object(n.jsx)(jb.LoginError,{path:"/login/error",exact:!0}),Object(n.jsx)(jb.Logout,{path:"/logout",exact:!0}),Object(n.jsx)(jb.Account,{path:"/account",componentProps:{user:t},visibility:P,exact:!0}),Object(n.jsx)(jb.SettingsAdmin,{path:"/settings*",componentProps:{user:t},visibility:I,exact:!0}),Object(n.jsx)(jb.Repo,{path:["/:namespace/:name","/:namespace/:name/deployments","/:namespace/:name/branches","/:namespace/:name/settings*","/:namespace/:name/:build","/:namespace/:name/:build/:stage?/:step?"],componentProps:{user:t},visibility:M,exact:!0}),Object(n.jsx)(jb.NotFound,{path:"*",componentProps:{user:t}})]})]}),Object(n.jsx)(h.a,{position:"top-center",limit:3,pauseOnHover:!0,hideProgressBar:!0})]})}})})})})})}a(595);l.a.render(Object(n.jsx)(c.a.StrictMode,{children:Object(n.jsx)(Ob,{})}),document.getElementById("root"))}},[[596,1,2]]]);`) // /static/js/runtime-main.546137e0.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 Date: Fri, 20 Aug 2021 14:26:42 +0100 Subject: [PATCH 2/2] add new line at end of changelog gen file --- .github_changelog_generator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github_changelog_generator b/.github_changelog_generator index 9eec3740..45679124 100644 --- a/.github_changelog_generator +++ b/.github_changelog_generator @@ -1 +1 @@ -since-tag=v2.0.0 \ No newline at end of file +since-tag=v2.0.0