abstra 3.24.2__py3-none-any.whl → 3.24.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {abstra-3.24.2.dist-info → abstra-3.24.3.dist-info}/METADATA +1 -1
- {abstra-3.24.2.dist-info → abstra-3.24.3.dist-info}/RECORD +175 -175
- abstra_internals/controllers/main.py +62 -0
- abstra_internals/repositories/git/native.py +2 -2
- abstra_internals/repositories/project/project.py +1 -1
- abstra_internals/server/routes/mcp.py +1 -0
- abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js → AbstraButton.vue_vue_type_script_setup_true_lang.13670ae7.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.1035457c.js +2 -0
- abstra_statics/dist/assets/{ApiKeys.dafa1dc2.js → ApiKeys.9b0b18b5.js} +2 -2
- abstra_statics/dist/assets/App.9ab9cabb.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.6713c9c9.js +2 -0
- abstra_statics/dist/assets/BaseLayout.28c01b5b.js +2 -0
- abstra_statics/dist/assets/{Billing.622c9155.js → Billing.f9062d88.js} +2 -2
- abstra_statics/dist/assets/{Breadcrumb.8a82fa01.js → Breadcrumb.e54636d6.js} +2 -2
- abstra_statics/dist/assets/{Builds.c3fd9633.js → Builds.c7363e1b.js} +2 -2
- abstra_statics/dist/assets/{Card.38a860a4.js → Card.4a8a30bb.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.217756fb.js → CircularLoading.d81a4cac.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.39b5ab06.js +2 -0
- abstra_statics/dist/assets/{ConnectorsView.121898a9.js → ConnectorsView.d4b67e2e.js} +2 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.5360224e.js +2 -0
- abstra_statics/dist/assets/ContentLayout.10f24838.js +2 -0
- abstra_statics/dist/assets/{CrudView.75a430a4.js → CrudView.57e8b29a.js} +2 -2
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js → DocsButton.vue_vue_type_script_setup_true_lang.108b18e1.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.fba78ce9.js → EditorLogin.2f00deb7.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.1a9ccb13.js → EditorsView.eb87a2d8.js} +2 -2
- abstra_statics/dist/assets/EnvVars.883a4a57.js +2 -0
- abstra_statics/dist/assets/{Error.5bd293cc.js → Error.98b8036c.js} +2 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.2441b96e.js +2 -0
- abstra_statics/dist/assets/{Files.c4ce443f.js → Files.9fc8199a.js} +2 -2
- abstra_statics/dist/assets/Form.5d562f15.js +2 -0
- abstra_statics/dist/assets/{FormRunner.73650f9e.js → FormRunner.2b1b3c45.js} +2 -2
- abstra_statics/dist/assets/Home.191a6dce.js +2 -0
- abstra_statics/dist/assets/Home.8502aa41.js +2 -0
- abstra_statics/dist/assets/LoadingContainer.ac03ea28.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.4c40acc4.js +2 -0
- abstra_statics/dist/assets/Login.8bd6a07a.js +2 -0
- abstra_statics/dist/assets/{Login.ecec1ff2.js → Login.edfbdaea.js} +2 -2
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js → Login.vue_vue_type_script_setup_true_lang.02acef81.js} +2 -2
- abstra_statics/dist/assets/Logo.fc8ace6c.js +2 -0
- abstra_statics/dist/assets/{Logs.c1f01b05.js → Logs.4c6c0b3a.js} +2 -2
- abstra_statics/dist/assets/LogsController.61f8e22d.css +1 -0
- abstra_statics/dist/assets/LogsController.a58ca42a.js +2 -0
- abstra_statics/dist/assets/Main.e6b2d2d5.js +2 -0
- abstra_statics/dist/assets/{MockForm.9b7a0df3.js → MockForm.091aa4ce.js} +2 -2
- abstra_statics/dist/assets/Navbar.24019fd6.js +2 -0
- abstra_statics/dist/assets/NewEditor.2b6f4ed3.js +8 -0
- abstra_statics/dist/assets/{NewEditor.e3cfeb2c.css → NewEditor.f2d1c0c3.css} +1 -1
- abstra_statics/dist/assets/OidcLoginCallback.987cebba.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.6c00d878.js +2 -0
- abstra_statics/dist/assets/{OmniChat.c3de8733.js → OmniChat.c78c1e51.js} +2 -2
- abstra_statics/dist/assets/{OnboardingView.6cda1bc5.js → OnboardingView.687780ed.js} +2 -2
- abstra_statics/dist/assets/{Organization.c36206b7.js → Organization.0ac1bf79.js} +2 -2
- abstra_statics/dist/assets/Organizations.fc123489.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.9e570570.js → PhArrowCounterClockwise.vue.6ab1b899.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.bcbdb6e7.js → PhArrowSquareOut.vue.1cebb708.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.4bd682d8.js → PhClockCounterClockwise.vue.dae2e135.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.29934bc2.js → PhCopy.vue.71703533.js} +2 -2
- abstra_statics/dist/assets/PhCopySimple.vue.369eb629.js +2 -0
- abstra_statics/dist/assets/{PhCube.vue.0fe2c514.js → PhCube.vue.f8549a9b.js} +2 -2
- abstra_statics/dist/assets/PhDatabase.vue.0d3246d7.js +2 -0
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.7a0e0638.js → PhDotsThreeVertical.vue.9d76c4de.js} +2 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.21156b6d.js +2 -0
- abstra_statics/dist/assets/{PhFileArrowUp.vue.c292afe1.js → PhFileArrowUp.vue.406b22e3.js} +2 -2
- abstra_statics/dist/assets/{PhFilePlus.vue.c39ff1a9.js → PhFilePlus.vue.b180df90.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.bc40161e.js → PhFolderPlus.vue.b18fd061.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.0feed515.js → PhGear.vue.bed38929.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.15a9e64e.js → PhKey.vue.6ef5fdd3.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.a7219766.js → PhPencil.vue.0fc0fcc0.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.15a2b403.js → PhPencilSimple.vue.0707effd.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.7155b91f.js → PhRocket.vue.761192f5.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.2af17bd7.js → PhSignOut.vue.8d8dfd96.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.c7f06cac.js → PhSparkle.vue.18ed0427.js} +2 -2
- abstra_statics/dist/assets/{PhTranslate.vue.2ce651a6.js → PhTranslate.vue.00a17a08.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.2942df75.js → PhUsersThree.vue.d69f0723.js} +2 -2
- abstra_statics/dist/assets/{PhWarningCircle.vue.05a40bc4.js → PhWarningCircle.vue.20bfeba7.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.e4752384.js → PhWebhooksLogo.vue.58a98824.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.00af5968.js → PlayerConfigProvider.ad360920.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.117f184b.js → PlayerNavbar.97e8dee9.js} +2 -2
- abstra_statics/dist/assets/{Project.66111161.js → Project.6c4642b5.js} +2 -2
- abstra_statics/dist/assets/{ProjectLogin.d9bb1f86.js → ProjectLogin.f92a038d.js} +2 -2
- abstra_statics/dist/assets/ProjectSettings.582746dc.js +2 -0
- abstra_statics/dist/assets/ProjectsView.a6b3674b.js +2 -0
- abstra_statics/dist/assets/{SaveButton.c3f2a4bb.js → SaveButton.c3ad6e9b.js} +2 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.62178939.js +2 -0
- abstra_statics/dist/assets/{Sidebar.1c4e35be.js → Sidebar.69f9369e.js} +2 -2
- abstra_statics/dist/assets/Sql.cdefe5b9.js +5 -0
- abstra_statics/dist/assets/Steps.82252fc0.js +2 -0
- abstra_statics/dist/assets/{TableCard.8c99a870.js → TableCard.5462c89d.js} +2 -2
- abstra_statics/dist/assets/{TableEditor.ba7a8b6a.js → TableEditor.fcfa13de.js} +2 -2
- abstra_statics/dist/assets/{Tables.113960f2.js → Tables.4ee84a7c.js} +2 -2
- abstra_statics/dist/assets/{TablesDiagram.8e6d1e89.js → TablesDiagram.b1d1579e.js} +2 -2
- abstra_statics/dist/assets/{TablesTabs.vue_vue_type_script_setup_true_lang.5cc96b0d.js → TablesTabs.vue_vue_type_script_setup_true_lang.3e5206e0.js} +2 -2
- abstra_statics/dist/assets/{Tasks.90846020.js → Tasks.fd2605bd.js} +2 -2
- abstra_statics/dist/assets/{UploadOutlined.518baf9a.js → UploadOutlined.64837788.js} +2 -2
- abstra_statics/dist/assets/{View.ded6b355.js → View.b144c5e3.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.285b5e2c.js → View.vue_vue_type_script_setup_true_lang.c79117ce.js} +2 -2
- abstra_statics/dist/assets/{Watermark.5071a4b2.js → Watermark.c0756030.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.18ece735.js → WebEditor.774989ad.js} +2 -2
- abstra_statics/dist/assets/{WidgetPreview.88a4f27f.js → WidgetPreview.4fd6afc0.js} +2 -2
- abstra_statics/dist/assets/{WorkflowViewer.778c401d.js → WorkflowViewer.2666936e.js} +2 -2
- abstra_statics/dist/assets/ant-design.b3eefa58.js +2 -0
- abstra_statics/dist/assets/apiKey.ee792d72.js +2 -0
- abstra_statics/dist/assets/asyncComputed.c73d027a.js +2 -0
- abstra_statics/dist/assets/{build.a8637e29.js → build.6e7d77b3.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.5ee17d14.js +2 -0
- abstra_statics/dist/assets/{console.2a5ed51a.js → console.38bda98e.js} +2 -2
- abstra_statics/dist/assets/constants.be8ad36c.js +2 -0
- abstra_statics/dist/assets/{contracts.generated.8ad36e63.js → contracts.generated.f01de5a3.js} +2 -2
- abstra_statics/dist/assets/{cssMode.6c4ccf50.js → cssMode.408206bf.js} +2 -2
- abstra_statics/dist/assets/datetime.a6d58ce1.js +2 -0
- abstra_statics/dist/assets/dayjs.703ebc20.js +2 -0
- abstra_statics/dist/assets/editor.a77b56bd.js +2 -0
- abstra_statics/dist/assets/editor.main.a1ebf0ab.js +2 -0
- abstra_statics/dist/assets/fetch.cd29ef4c.js +2 -0
- abstra_statics/dist/assets/{files.8999afd5.js → files.1c1692f5.js} +2 -2
- abstra_statics/dist/assets/{folder.81ef8619.js → folder.1b74b12c.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.559f77f2.js → freemarker2.e62e067c.js} +2 -2
- abstra_statics/dist/assets/{handlebars.8d101b7c.js → handlebars.604fc901.js} +2 -2
- abstra_statics/dist/assets/{html.b3e7d3ab.js → html.c02f177e.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.2305b1bb.js → htmlMode.64078e03.js} +2 -2
- abstra_statics/dist/assets/{index.da4f9d54.js → index.015caad7.js} +2 -2
- abstra_statics/dist/assets/{index.d809956c.js → index.2ec95eae.js} +2 -2
- abstra_statics/dist/assets/index.5197afb2.js +2 -0
- abstra_statics/dist/assets/{index.f2beb20d.js → index.82590a75.js} +2 -2
- abstra_statics/dist/assets/{index.71eb83f3.js → index.82842143.js} +2 -2
- abstra_statics/dist/assets/{index.f6171691.js → index.a12eba98.js} +2 -2
- abstra_statics/dist/assets/{index.90acf038.js → index.b72cb2b3.js} +2 -2
- abstra_statics/dist/assets/{index.e5cb42a1.js → index.b91afb03.js} +2 -2
- abstra_statics/dist/assets/{index.b74c262c.js → index.bec0ecd0.js} +2 -2
- abstra_statics/dist/assets/{javascript.3000fc25.js → javascript.57026f87.js} +2 -2
- abstra_statics/dist/assets/{jsonMode.7bbb508d.js → jsonMode.9b45b375.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.c9c37cdc.js → jwt-decode.esm.3348bca5.js} +93 -93
- abstra_statics/dist/assets/{linters.7fec18d9.js → linters.903f3240.js} +2 -2
- abstra_statics/dist/assets/{liquid.b4ac9aaf.js → liquid.233d5164.js} +3 -3
- abstra_statics/dist/assets/member.d878cf3f.js +2 -0
- abstra_statics/dist/assets/{metadata.e627ddda.js → metadata.9f7495db.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.508e8ece.js → omniChatStore.40ad0b1b.js} +2 -2
- abstra_statics/dist/assets/{organization.cd03f9a8.js → organization.8f08e075.js} +2 -2
- abstra_statics/dist/assets/{os.f08724fb.js → os.8ffdbf05.js} +2 -2
- abstra_statics/dist/assets/player.7112583e.js +2 -0
- abstra_statics/dist/assets/{plotly.min.50ebb925.js → plotly.min.da87d61b.js} +2 -2
- abstra_statics/dist/assets/polling.f547718c.js +2 -0
- abstra_statics/dist/assets/{project.9a068e8d.js → project.2483de10.js} +2 -2
- abstra_statics/dist/assets/{python.51a7c648.js → python.1bdbd404.js} +2 -2
- abstra_statics/dist/assets/{razor.99323f5f.js → razor.be821b87.js} +3 -3
- abstra_statics/dist/assets/{record.a33d29b1.js → record.a108da5a.js} +2 -2
- abstra_statics/dist/assets/redirect.eedb2bf6.js +2 -0
- abstra_statics/dist/assets/{repository.c0d70cb2.js → repository.353e892d.js} +2 -2
- abstra_statics/dist/assets/{repository.94fb77c7.js → repository.48119e01.js} +2 -2
- abstra_statics/dist/assets/{repository.5190b94f.js → repository.677ca13c.js} +2 -2
- abstra_statics/dist/assets/{router.a8616541.js → router.c6e27700.js} +5 -5
- abstra_statics/dist/assets/router.c7abfb0c.js +2 -0
- abstra_statics/dist/assets/string.998fa621.js +2 -0
- abstra_statics/dist/assets/{tables.2e1c934b.js → tables.9701f90c.js} +2 -2
- abstra_statics/dist/assets/{tasksController.1feffcfe.js → tasksController.5db769f7.js} +2 -2
- abstra_statics/dist/assets/{toggleHighContrast.6544a728.js → toggleHighContrast.23d5a1ab.js} +7 -7
- abstra_statics/dist/assets/{tsMode.922e04bb.js → tsMode.4558d65a.js} +2 -2
- abstra_statics/dist/assets/{typescript.1b4f8286.js → typescript.4445d2fa.js} +3 -3
- abstra_statics/dist/assets/url.5d02a63f.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.ffe057d1.js → useCodebaseEvents.6ebbc5a2.js} +2 -2
- abstra_statics/dist/assets/useTables.4d5edd80.js +2 -0
- abstra_statics/dist/assets/userStore.34b8f1eb.js +2 -0
- abstra_statics/dist/assets/uuid.6980e2bb.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.3e9183ec.js → vue-flow-background.f1022925.js} +2 -2
- abstra_statics/dist/assets/{vue-flow-core.41c647da.js → vue-flow-core.0de753a6.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.36e79a95.js → vue-quill.esm-bundler.8f4ad2b3.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.5a435520.js → workspaceStore.5d3f2aec.js} +2 -2
- abstra_statics/dist/assets/{xml.c1692f52.js → xml.8a25758b.js} +3 -3
- abstra_statics/dist/assets/{yaml.244444c1.js → yaml.e466330b.js} +3 -3
- abstra_statics/dist/console.html +14 -14
- abstra_statics/dist/editor.html +13 -13
- abstra_statics/dist/player.html +9 -9
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js +0 -2
- abstra_statics/dist/assets/App.45396b70.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.db5596a1.js +0 -2
- abstra_statics/dist/assets/BaseLayout.135a51d9.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.4c4707d8.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.502d779a.js +0 -2
- abstra_statics/dist/assets/ContentLayout.b1c94c2b.js +0 -2
- abstra_statics/dist/assets/EnvVars.d77957ea.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.5d5c3f30.js +0 -2
- abstra_statics/dist/assets/Form.a4787001.js +0 -2
- abstra_statics/dist/assets/Home.19a2303b.js +0 -2
- abstra_statics/dist/assets/Home.4eff6ce9.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.97fa8f2e.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.e309ab16.js +0 -2
- abstra_statics/dist/assets/Login.632cada3.js +0 -2
- abstra_statics/dist/assets/Logo.d77d5637.js +0 -2
- abstra_statics/dist/assets/LogsController.0ff97ed4.css +0 -1
- abstra_statics/dist/assets/LogsController.2dceb3d3.js +0 -2
- abstra_statics/dist/assets/Main.44b7640e.js +0 -2
- abstra_statics/dist/assets/Navbar.0951ed6d.js +0 -2
- abstra_statics/dist/assets/NewEditor.d65a400f.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.66b0f38a.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.48d8429a.js +0 -2
- abstra_statics/dist/assets/Organizations.2b1c6c65.js +0 -2
- abstra_statics/dist/assets/PhCopySimple.vue.0241af8c.js +0 -2
- abstra_statics/dist/assets/PhDatabase.vue.fdfb515c.js +0 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.f1245c40.js +0 -2
- abstra_statics/dist/assets/ProjectSettings.f8c6f60a.js +0 -2
- abstra_statics/dist/assets/ProjectsView.32f6ccff.js +0 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.cb5567cd.js +0 -2
- abstra_statics/dist/assets/Sql.8d31ec23.js +0 -5
- abstra_statics/dist/assets/Steps.687763a5.js +0 -2
- abstra_statics/dist/assets/ant-design.4efc9ccd.js +0 -2
- abstra_statics/dist/assets/apiKey.bd946d8c.js +0 -2
- abstra_statics/dist/assets/asyncComputed.7bc1692e.js +0 -2
- abstra_statics/dist/assets/colorHelpers.8ba18214.js +0 -2
- abstra_statics/dist/assets/constants.534f67bc.js +0 -2
- abstra_statics/dist/assets/datetime.89495471.js +0 -2
- abstra_statics/dist/assets/dayjs.304f38f8.js +0 -2
- abstra_statics/dist/assets/editor.c1a1bd33.js +0 -2
- abstra_statics/dist/assets/editor.main.84e237cf.js +0 -2
- abstra_statics/dist/assets/fetch.452c58e5.js +0 -2
- abstra_statics/dist/assets/index.bc97991a.js +0 -2
- abstra_statics/dist/assets/member.3c12efee.js +0 -2
- abstra_statics/dist/assets/player.7362caf4.js +0 -2
- abstra_statics/dist/assets/polling.4db5ee9a.js +0 -2
- abstra_statics/dist/assets/redirect.42bf4f0a.js +0 -2
- abstra_statics/dist/assets/router.4168cc71.js +0 -2
- abstra_statics/dist/assets/string.8fab6b53.js +0 -2
- abstra_statics/dist/assets/url.9e033350.js +0 -2
- abstra_statics/dist/assets/useTables.5fffa3f1.js +0 -2
- abstra_statics/dist/assets/userStore.d962fba4.js +0 -2
- abstra_statics/dist/assets/uuid.8581bc03.js +0 -2
- {abstra-3.24.2.dist-info → abstra-3.24.3.dist-info}/WHEEL +0 -0
- {abstra-3.24.2.dist-info → abstra-3.24.3.dist-info}/entry_points.txt +0 -0
- {abstra-3.24.2.dist-info → abstra-3.24.3.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as k,r as B,U as A,o as n,a as
|
|
2
|
-
//# sourceMappingURL=WidgetPreview.
|
|
1
|
+
import{d as k,r as B,U as A,o as n,a as d,b as f,f as I,g as N,t as P,eh as S,eM as C,u as y,bY as D,f0 as V,_ as h,ei as q,h as g,e as b,ac as c,ej as v,el as x,aY as w,L as E,N as L}from"./jwt-decode.esm.3348bca5.js";import{S as $}from"./Steps.82252fc0.js";import{W as F}from"./PlayerConfigProvider.ad360920.js";import"./index.82842143.js";import"./colorHelpers.5ee17d14.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="4e6c217f-2183-4b8b-9e2d-13c90ddb4f65",o._sentryDebugIdIdentifier="sentry-dbid-4e6c217f-2183-4b8b-9e2d-13c90ddb4f65")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const u=o,l=B(null);return A(()=>{l.value&&u.action.setElement(l.value)}),(r,i)=>(n(),d(y(V),null,{default:f(()=>[I(y(D),{ref_key:"element",ref:l,class:S(["next-button",r.disabled?"disabled":""]),loading:r.loading,disabled:r.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=C(p=>t("click"),["enter"]))},{default:f(()=>[N(P(r.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const M=h(K,[["__scopeId","data-v-aea27bb7"]]),O={class:"form"},Y={class:"form-wrapper"},j={key:0,class:"buttons"},z=k({__name:"WidgetPreview",setup(o){const t=q(),u=B([]);function l(e){return E[e]||L[e]||null}function r(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(r).filter(Boolean):[r(e)]}function p(){return t.query.steps==="true"}function _(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const m=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),d(F,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),d($,{key:0,class:"steps","steps-info":{current:1,total:3},"is-preview":""})):g("",!0),b("div",O,[b("div",Y,[(n(!0),c(w,null,v(i(),(a,W)=>(n(),c("div",{key:W,class:"widget"},[(n(),d(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:u.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",j,[(n(!0),c(w,null,v(_(),a=>(n(),d(M,{key:a,"display-name":m(a).name,action:m(a)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const Q=h(z,[["__scopeId","data-v-d3d01da6"]]);export{Q as default};
|
|
2
|
+
//# sourceMappingURL=WidgetPreview.4fd6afc0.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var ye=Object.defineProperty;var ve=(u,t,d)=>t in u?ye(u,t,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[t]=d;var ie=(u,t,d)=>(ve(u,typeof t!="symbol"?t+"":t,d),d);import{_ as G}from"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import{d as X,at as O,c as b,o as c,ac as A,ae as he,h as H,ed as ke,e as m,f as s,u as e,a as $,b as o,g as C,t as g,df as F,ad as be,aY as pe,_ as le,dj as Z,ej as Se,f6 as de,de as q,i as k,cS as fe,cT as Me,ei as ge,ec as _e,el as R,bE as $e,bD as K,eh as me,bW as Le,cM as xe,eD as Ie,fa as Ce,r as V,w as Ae,ax as ze,U as Be,S as Ze,A as Q,dd as Pe,eG as je,eH as Te,es as Ne,et as Ve}from"./jwt-decode.esm.c9c37cdc.js";import{F as Ee}from"./PhArrowSquareOut.vue.bcbdb6e7.js";import{I as ce}from"./PhCopy.vue.29934bc2.js";import{F as He,I as We,O as De}from"./os.f08724fb.js";import{G as Fe}from"./PhPencilSimple.vue.15a2b403.js";import{_ as Ye}from"./vue-flow-background.3e9183ec.js";import{a as Xe,b as Ge,g as ee,u as Oe,e as qe,M as Je}from"./vue-flow-core.41c647da.js";import{k as te}from"./router.a8616541.js";import{a as re,B as Ue,b as Re}from"./build.a8637e29.js";import"./tables.2e1c934b.js";import{G as Ke}from"./PhArrowCounterClockwise.vue.9e570570.js";import{I as Qe}from"./PhCopySimple.vue.0241af8c.js";import{G as et}from"./PhDotsThreeVertical.vue.7a0e0638.js";import{F as tt,G as at,I as st,a as ot}from"./PhWebhooksLogo.vue.e4752384.js";import{a as ae}from"./asyncComputed.7bc1692e.js";import{a as nt}from"./project.9a068e8d.js";import{g as rt}from"./datetime.89495471.js";import{_ as lt,R as it}from"./repository.c0d70cb2.js";import{R as dt}from"./repository.94fb77c7.js";import{u as ct}from"./polling.4db5ee9a.js";import{C as se}from"./Card.38a860a4.js";import"./index.da4f9d54.js";import"./record.a33d29b1.js";import"./string.8fab6b53.js";import"./LoadingOutlined.e309ab16.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[t]="c3a80644-08e8-492a-9677-15a79d3d36c4",u._sentryDebugIdIdentifier="sentry-dbid-c3a80644-08e8-492a-9677-15a79d3d36c4")}catch{}})();const ut=["width","height","fill","transform"],pt={key:0},ft=m("path",{d:"M227.85,46.89a20,20,0,0,0-18.74-18.74c-13.13-.77-46.65.42-74.48,28.24L131,60H74.36a19.83,19.83,0,0,0-14.14,5.86L25.87,100.19a20,20,0,0,0,11.35,33.95l37.14,5.18,42.32,42.32,5.19,37.18A19.88,19.88,0,0,0,135.34,235a20.13,20.13,0,0,0,6.37,1,19.9,19.9,0,0,0,14.1-5.87l34.34-34.35A19.85,19.85,0,0,0,196,181.64V125l3.6-3.59C227.43,93.54,228.62,60,227.85,46.89ZM76,84h31L75.75,115.28l-27.23-3.8ZM151.6,73.37A72.27,72.27,0,0,1,204,52a72.17,72.17,0,0,1-21.38,52.41L128,159,97,128ZM172,180l-27.49,27.49-3.8-27.23L172,149Zm-72,22c-8.71,11.85-26.19,26-60,26a12,12,0,0,1-12-12c0-33.84,14.12-51.32,26-60A12,12,0,1,1,68.18,175.3C62.3,179.63,55.51,187.8,53,203c15.21-2.51,23.37-9.3,27.7-15.18A12,12,0,1,1,100,202Z"},null,-1),gt=[ft],_t={key:1},mt=m("path",{d:"M184,120v61.65a8,8,0,0,1-2.34,5.65l-34.35,34.35a8,8,0,0,1-13.57-4.53L128,176ZM136,72H74.35a8,8,0,0,0-5.65,2.34L34.35,108.69a8,8,0,0,0,4.53,13.57L80,128ZM40,216c37.65,0,50.69-19.69,54.56-28.18L68.18,161.44C59.69,165.31,40,178.35,40,216Z",opacity:"0.2"},null,-1),wt=m("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),yt=[mt,wt],vt={key:2},ht=m("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"},null,-1),kt=[ht],bt={key:3},St=m("path",{d:"M221.86,47.24a14,14,0,0,0-13.11-13.1c-12.31-.73-43.77.39-69.88,26.5L133.52,66H74.35a13.9,13.9,0,0,0-9.89,4.1L30.11,104.44a14,14,0,0,0,7.94,23.76l39.13,5.46,45.16,45.16L127.8,218a14,14,0,0,0,23.76,7.92l34.35-34.35a13.91,13.91,0,0,0,4.1-9.89V122.48l5.35-5.35h0C221.46,91,222.59,59.56,221.86,47.24ZM38.11,115a2,2,0,0,1,.49-2L72.94,78.58A2,2,0,0,1,74.35,78h47.17L77.87,121.64l-38.14-5.32A1.93,1.93,0,0,1,38.11,115ZM178,181.65a2,2,0,0,1-.59,1.41L143.08,217.4a2,2,0,0,1-3.4-1.11l-5.32-38.16L178,134.48Zm8.87-73h0L128,167.51,88.49,128l58.87-58.88a78.47,78.47,0,0,1,60.69-23A2,2,0,0,1,209.88,48,78.47,78.47,0,0,1,186.88,108.64ZM100,190.31C95.68,199.84,81.13,222,40,222a6,6,0,0,1-6-6c0-41.13,22.16-55.68,31.69-60a6,6,0,1,1,5,10.92c-7,3.17-22.53,13.52-24.47,42.91,29.39-1.94,39.74-17.52,42.91-24.47a6,6,0,1,1,10.92,5Z"},null,-1),Mt=[St],$t={key:4},Lt=m("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),xt=[Lt],It={key:5},Ct=m("path",{d:"M219.86,47.36a12,12,0,0,0-11.22-11.22c-12-.71-42.82.38-68.35,25.91L134.35,68h-60a11.9,11.9,0,0,0-8.48,3.52L31.52,105.85a12,12,0,0,0,6.81,20.37l39.79,5.55,46.11,46.11,5.55,39.81a12,12,0,0,0,20.37,6.79l34.34-34.35a11.9,11.9,0,0,0,3.52-8.48v-60l5.94-5.94C219.48,90.18,220.57,59.41,219.86,47.36ZM36.21,115.6a3.94,3.94,0,0,1,1-4.09L71.53,77.17A4,4,0,0,1,74.35,76h52L78.58,123.76,39.44,118.3A3.94,3.94,0,0,1,36.21,115.6ZM180,181.65a4,4,0,0,1-1.17,2.83l-34.35,34.34a4,4,0,0,1-6.79-2.25l-5.46-39.15L180,129.65Zm-52-11.31L85.66,128l60.28-60.29c23.24-23.24,51.25-24.23,62.22-23.58a3.93,3.93,0,0,1,3.71,3.71c.65,11-.35,39-23.58,62.22ZM98.21,189.48C94,198.66,80,220,40,220a4,4,0,0,1-4-4c0-40,21.34-54,30.52-58.21a4,4,0,0,1,3.32,7.28c-7.46,3.41-24.43,14.66-25.76,46.85,32.19-1.33,43.44-18.3,46.85-25.76a4,4,0,1,1,7.28,3.32Z"},null,-1),At=[Ct],zt={name:"PhRocketLaunch"},Bt=X({...zt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const t=u,d=O("weight","regular"),L=O("size","1em"),w=O("color","currentColor"),r=O("mirrored",!1),a=b(()=>{var i;return(i=t.weight)!=null?i:d}),p=b(()=>{var i;return(i=t.size)!=null?i:L}),l=b(()=>{var i;return(i=t.color)!=null?i:w}),x=b(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(i,y)=>(c(),A("svg",ke({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:l.value,transform:x.value},i.$attrs),[he(i.$slots,"default"),a.value==="bold"?(c(),A("g",pt,gt)):a.value==="duotone"?(c(),A("g",_t,yt)):a.value==="fill"?(c(),A("g",vt,kt)):a.value==="light"?(c(),A("g",bt,Mt)):a.value==="regular"?(c(),A("g",$t,xt)):a.value==="thin"?(c(),A("g",It,At)):H("",!0)],16,ut))}}),Zt=X({__name:"WorkflowEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(u){const t=u;function d(r,a,p=0){const l=a.center.x-r.center.x,x=a.center.y-r.center.y,i=Math.sqrt(l*l+x*x);if(i===0)return{sourceX:r.center.x,sourceY:r.center.y,targetX:a.center.x,targetY:a.center.y};const y=l/i,S=x/i,f=r.width/2,M=r.height/2;let P=r.center.x,j=r.center.y;Math.abs(y)*M>Math.abs(S)*f?(P=r.center.x+(y>0?f:-f),j=r.center.y+S*f/Math.abs(y)):(P=r.center.x+y*M/Math.abs(S),j=r.center.y+(S>0?M:-M));const z=a.width/2,T=a.height/2;let E=a.center.x,_=a.center.y;return Math.abs(y)*T>Math.abs(S)*z?(E=a.center.x-(y>0?z:-z),_=a.center.y-S*z/Math.abs(y)):(E=a.center.x-y*T/Math.abs(S),_=a.center.y-(S>0?T:-T)),P+=y*p,j+=S*p,E-=y*p,_-=S*p,{sourceX:P,sourceY:j,targetX:E,targetY:_}}function L(r,a){const l={center:{x:r.computedPosition.x+r.dimensions.width/2,y:r.computedPosition.y+r.dimensions.height/2},width:r.dimensions.width,height:r.dimensions.height},i={center:{x:a.computedPosition.x+a.dimensions.width/2,y:a.computedPosition.y+a.dimensions.height/2},width:a.dimensions.width,height:a.dimensions.height};return d(l,i,10)}const w=b(()=>{if(!t.sourceNode||!t.targetNode)return ee({sourceX:0,sourceY:0,targetX:0,targetY:0});if(!t.sourceNode.dimensions.width||!t.targetNode.dimensions.width||!t.sourceNode.dimensions.height||!t.targetNode.dimensions.height)return ee({sourceX:0,sourceY:0,targetX:0,targetY:0});const r=L(t.sourceNode,t.targetNode);return ee(r)});return(r,a)=>{var p,l;return c(),A(pe,null,[s(e(Xe),{path:w.value[0],"marker-end":t.markerEnd},null,8,["path","marker-end"]),(l=(p=t.data)==null?void 0:p.props)!=null&&l.taskType?(c(),$(e(Ge),{key:0},{default:o(()=>[m("div",{style:be({transform:`translate(-50%, -50%) translate(${w.value[1]}px,${w.value[2]}px)`}),class:"nodrag nopan edge-label"},[s(e(F),null,{default:o(()=>[C(g(t.data.props.taskType),1)]),_:1})],4)]),_:1})):H("",!0)],64)}}});const Pt=le(Zt,[["__scopeId","data-v-8f1859d4"]]);class jt{async list(t){return te.get(`projects/${t}/disabled-stages`)}async disableStage({projectId:t,stageId:d}){return te.patch(`projects/${t}/disabled-stages/${d}`,{enable:!1})}async enableStage({projectId:t,stageId:d}){return te.patch(`projects/${t}/disabled-stages/${d}`,{enable:!0})}}const oe=new jt;class Y{constructor(t){ie(this,"id");this.dto=t,this.id=t}static async list(t){return(await oe.list(t)).map(L=>new Y(L))}static async disableStage({projectId:t,stageId:d}){return oe.disableStage({projectId:t,stageId:d})}static async enableStage({projectId:t,stageId:d}){return oe.enableStage({projectId:t,stageId:d})}}const Tt=X({__name:"WorkflowStageExecutions",props:{stageId:{},projectId:{},executions:{},taskStats:{},loading:{type:Boolean}},setup(u){const t=u,d=b(()=>t.taskStats?Math.round(t.taskStats.completed/t.taskStats.total*100):0),L=b(()=>{const a=d.value;return a===100?"#52c41a":a>=50?"#1890ff":"#faad14"}),w=a=>rt(a,{weekday:void 0}),r=a=>{if(a<60)return`${Math.round(a)}s`;const p=Math.floor(a/60);if(p<60)return`${p}m`;const l=Math.floor(p/60);return l<24?`${l}h`:`${Math.floor(l/24)}d`};return(a,p)=>(c(),$(e(Z),{vertical:"",size:4,style:{width:"100%"}},{default:o(()=>[a.executions&&a.executions.length>0?(c(),$(e(Z),{key:0,size:4,gap:4},{default:o(()=>[(c(!0),A(pe,null,Se(a.executions,l=>(c(),$(e(de),{key:l.id,to:{name:"logs",params:{projectId:a.projectId},query:{executionId:l.id}}},{default:o(()=>[s(e(fe),{title:w(l.createdAt)},{content:o(()=>[s(e(Z),{vertical:"",size:4},{default:o(()=>[s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_status"))+": "+g(l.status),1)]),_:2},1024),s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_duration"))+": "+g(l.duration_seconds)+"s",1)]),_:2},1024),s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_version"))+": "+g(l.buildId.slice(0,6)),1)]),_:2},1024)]),_:2},1024)]),default:o(()=>[s(lt,{status:l.status},null,8,["status"])]),_:2},1032,["title"])]),_:2},1032,["to"]))),128))]),_:1})):H("",!0),a.taskStats&&a.taskStats.total>0?(c(),$(e(de),{key:1,to:{name:"tasks",params:{projectId:a.projectId},query:{stage:a.stageId,status:"pending"}}},{default:o(()=>[s(e(Z),{vertical:"",size:2},{default:o(()=>[s(e(Me),{"show-info":!1,percent:d.value,"stroke-color":L.value,size:"small"},null,8,["percent","stroke-color"]),s(e(Z),{vertical:"",size:0},{default:o(()=>[a.taskStats.pending&&a.taskStats.averageCompletionSeconds?(c(),$(e(q),{key:0,type:"secondary",style:{fontSize:"11px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_pending_tasks").replace("{count}",a.taskStats.pending.toString()))+" ("+g(r(a.taskStats.averageCompletionSeconds))+" "+g(e(k).translate("i18n_workflowviewer_average"))+") ",1)]),_:1})):H("",!0)]),_:1})]),_:1})]),_:1},8,["to"])):H("",!0)]),_:1}))}}),Nt={class:"stage-node"},Vt={class:"stage-content"},Et={class:"stage-title"},Ht={class:"action-item"},Wt={class:"action-item"},Dt={class:"action-warning"},Ft={key:1,class:"action-item"},ue="3.18.0",Yt=X({__name:"WorkflowStageNode",props:{stage:{}},setup(u){const t=u,d=ge(),L=_e(),w=d.params.projectId,r=b(()=>({forms:tt,hooks:at,scripts:st,jobs:ot})[t.stage.type]),{result:a}=ae(async()=>await nt.get(w)),{result:p}=ae(async()=>{const I=(await re.list(w)).find(n=>n.latest);return I?await Ue.get(I.id):null}),{result:l,refetch:x}=ae(async()=>(await Y.list(w)).filter(I=>I)),i=()=>{L.push({name:"logs",params:{projectId:w},query:{stageId:t.stage.id}})},y=b(()=>t.stage.type==="forms"||t.stage.type==="hooks"),S=()=>{var n;if(!t.stage.path)return;const _=t.stage.type==="forms"?`/${t.stage.path}`:`/_hooks/${t.stage.path}`,I=(n=a.value)==null?void 0:n.getUrl(_);!I||(navigator.clipboard.writeText(I),xe.success(k.translate("i18n_workflowviewer_copied_url")))},f=b(()=>{var _;return(_=l.value)==null?void 0:_.map(I=>I.id).includes(t.stage.id)}),M=(_,I)=>{const[n,v,h]=_.split(".").map(Number),[D,B,W]=I.split(".").map(Number);return n>D?!0:n<D?!1:v>B?!0:v<B?!1:h>=W},P=b(()=>f.value?Ie:Ce),j=b(()=>f.value?k.translate("i18n_workflowviewer_enable_stage"):k.translate("i18n_workflowviewer_disable_stage")),z=b(()=>{var _;return!M(((_=p.value)==null?void 0:_.abstraVersion)||"0.0.0",ue)}),T=b(()=>z.value?k.translate("i18n_workflowviewer_disable_stages_warning").replace("{version}",ue):""),E=async()=>{z.value||(f.value?await Y.enableStage({projectId:w,stageId:t.stage.id}):await Y.disableStage({projectId:w,stageId:t.stage.id}),await x())};return(_,I)=>(c(),A("div",Nt,[m("div",Vt,[(c(),$(R(r.value),{size:18,class:"stage-icon"})),m("div",Et,g(_.stage.title),1),s(e(Le),{trigger:["click"]},{overlay:o(()=>[s(e($e),null,{default:o(()=>[s(e(K),{onClick:i},{default:o(()=>[m("div",Ht,[s(e(Ke),{size:16}),m("span",null,g(e(k).translate("i18n_workflowviewer_view_logs")),1)])]),_:1}),y.value?(c(),$(e(K),{key:0,onClick:S},{default:o(()=>[m("div",Wt,[s(e(Qe),{size:16}),m("span",null,g(e(k).translate("i18n_workflowviewer_copy_url")),1)])]),_:1})):H("",!0),s(e(K),{onClick:E},{default:o(()=>[z.value?(c(),$(e(fe),{key:0,placement:"left"},{content:o(()=>[m("div",Dt,[s(e(F),null,{default:o(()=>[C(g(T.value),1)]),_:1})])]),default:o(()=>[m("div",{class:me(["action-item",{disabled:z.value}])},[(c(),$(R(P.value),{size:16})),m("span",null,g(j.value),1)],2)]),_:1})):(c(),A("div",Ft,[(c(),$(R(P.value),{size:16})),m("span",null,g(j.value),1)]))]),_:1})]),_:1})]),default:o(()=>[s(e(et),{style:{cursor:"pointer"},size:20,class:"actions-menu"})]),_:1})]),s(Tt,{"stage-id":_.stage.id,"project-id":e(w),executions:_.stage.executions,"task-stats":_.stage.taskStats,style:{"margin-top":"8px"}},null,8,["stage-id","project-id","executions","task-stats"])]))}});const J=le(Yt,[["__scopeId","data-v-25457a9a"]]);function Xt(u,t){const d=new it,L=new dt(u),w=V({}),r=V({}),a=V(!1);async function p(){const i=t.value;if(i.length===0){a.value=!1;return}a.value=!0;try{const[y,S]=await Promise.all([Promise.all(i.map(async f=>{try{const{executions:M}=await d.list({projectId:u,stageId:f,limit:6});return{stageId:f,executions:M}}catch(M){return console.error(`Failed to load executions for stage ${f}:`,M),{stageId:f,executions:[]}}})),L.getTasksStatistics()]);y.forEach(({stageId:f,executions:M})=>{w.value[f]=M}),S.forEach(f=>{r.value[f.stageId]={pending:f.pendingTasks,completed:f.completedTasks,total:f.totalTasks,averageCompletionSeconds:f.averageCompletionSeconds}})}catch(y){console.error("Failed to load workflow data:",y)}finally{a.value=!1}}const{startPolling:l,endPolling:x}=ct({task:p,interval:15e3});return Ae(t,i=>{i.length>0&&(p(),l())},{immediate:!0}),ze(()=>{x()}),{executionsByStage:w,taskStatsByStage:r,loading:a,refetch:p}}const we=u=>(Ne("data-v-7b40ff03"),u=u(),Ve(),u),Gt={class:"flow-container"},Ot={class:"code-container"},qt=we(()=>m("code",{class:"install-code"},"pip install abstra",-1)),Jt={class:"code-container"},Ut=we(()=>m("code",{class:"install-code"},"abstra editor .",-1)),Rt={key:0,class:"edit-button-text"},ne="#ea576a",Kt=X({__name:"WorkflowViewer",setup(u){const{onInit:t}=Oe(),d=new Re,L=ge(),w=_e(),r=L.params.projectId,a=L.query.buildId,p=V(!0),l=V(null),x=V(!0),i=V(!1),y=()=>{w.push({name:"web-editor",params:{projectId:r}})},S=async n=>{try{await navigator.clipboard.writeText(n)}catch(v){console.error("Failed to copy:",v)}};t(n=>{x.value&&(n.fitView(),x.value=!1)});const f=V([]),M=V([]),P=b(()=>f.value.map(n=>n.id)),{executionsByStage:j,taskStatsByStage:z}=Xt(r,P),T=b(()=>f.value.length>0),E=b(()=>f.value.map(n=>({id:n.id,type:n.type,data:{...n,executions:j.value[n.id]||[],taskStats:z.value[n.id]||null},position:{x:n.position.x,y:n.position.y*1.5}}))),_=b(()=>M.value.map(n=>({id:n.id,source:n.sourceStageId,target:n.targetStageId,type:"task",data:{id:n.id,props:{taskType:n.taskType}},markerEnd:{type:Je.Arrow,width:24,height:24}})));function I(n){const v=[],h=[],D=["jobs","hooks","forms","scripts"];for(const B of D){const W=n[B]||[];for(const N of W){v.push({id:N.id,type:B,title:N.title,position:{x:N.workflow_position[0],y:N.workflow_position[1]},file:N.file,path:N.path,schedule:N.schedule});for(const U of N.transitions||[])h.push({id:U.id,sourceStageId:N.id,targetStageId:U.target_id,taskType:U.task_type})}}f.value=v,M.value=h}return Be(async()=>{try{p.value=!0;let n;if(a){const B=(await re.list(r)).find(W=>W.id===a);if(!B){l.value="Build not found";return}n=B}else{const B=(await re.list(r)).find(W=>W.latest);if(!B){l.value="No builds found for this project";return}n=B}const v=await d.get(n.id);if(!v||!v.abstraJson){l.value="No workflow data available for this build";return}const h=JSON.parse(v.abstraJson);I(h)}catch(n){l.value=n instanceof Error?n.message:"Failed to load workflow",console.error(n)}finally{p.value=!1}}),(n,v)=>(c(),A("div",Gt,[p.value?(c(),$(e(Ze),{key:0,style:{width:"100%"}})):T.value?(c(),$(e(qe),{key:2,nodes:E.value,edges:_.value,"default-viewport":{zoom:1.5},"fit-view-on-init":"","min-zoom":.1,"max-zoom":1.25,"pan-on-scroll":e(De).isMac,"snap-to-grid":""},{"edge-task":o(h=>[s(Pt,je(Te(h)),null,16)]),"node-forms":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-hooks":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-scripts":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-jobs":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),default:o(()=>[s(e(Ye),{"pattern-color":"#aaa",gap:16})]),_:1},8,["nodes","edges","pan-on-scroll"])):(c(),$(e(se),{key:1,class:"empty-state-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:24,align:"center"},{default:o(()=>[s(e(Bt),{size:64,color:ne}),s(e(Z),{vertical:"",gap:8,align:"center"},{default:o(()=>[s(e(Q),{level:3},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_getting_started")),1)]),_:1}),s(e(F),{type:"secondary",style:{"text-align":"center"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_no_workflow_description")),1)]),_:1})]),_:1}),s(e(Z),{gap:16,wrap:"wrap",justify:"center"},{default:o(()=>[s(e(se),{class:"option-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:12},{default:o(()=>[s(e(He),{size:32,color:ne}),s(e(Q),{level:5},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_option_cli")),1)]),_:1}),s(e(F),{type:"secondary",style:{"font-size":"13px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_cli_description")),1)]),_:1}),s(e(Z),{vertical:"",gap:8},{default:o(()=>[m("div",Ot,[qt,s(G,{type:"text",size:"small",onClick:v[0]||(v[0]=h=>S("pip install abstra"))},{default:o(()=>[s(e(ce),{size:16})]),_:1})]),m("div",Jt,[Ut,s(G,{type:"text",size:"small",onClick:v[1]||(v[1]=h=>S("abstra editor ."))},{default:o(()=>[s(e(ce),{size:16})]),_:1})])]),_:1})]),_:1})]),_:1}),s(e(se),{class:"option-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:12},{default:o(()=>[s(e(We),{size:32,color:ne}),s(e(Q),{level:5},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_option_online")),1)]),_:1}),s(e(F),{type:"secondary",style:{"font-size":"13px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_online_description")),1)]),_:1}),s(G,{type:"primary",onClick:y},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_open_editor")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(e(Pe),{href:"https://www.abstra.io/docs",target:"_blank"},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_view_docs"))+" ",1),s(e(Ee),{size:14,style:{"margin-left":"4px"}})]),_:1})]),_:1})]),_:1})),!p.value&&T.value?(c(),$(G,{key:3,class:me(["edit-button",{expanded:i.value}]),type:"primary",size:"large",onClick:y,onMouseenter:v[2]||(v[2]=h=>i.value=!0),onMouseleave:v[3]||(v[3]=h=>i.value=!1)},{default:o(()=>[s(e(Fe),{size:24}),i.value?(c(),A("span",Rt,g(e(k).translate("i18n_workflowviewer_edit_online")),1)):H("",!0)]),_:1},8,["class"])):H("",!0)]))}});const La=le(Kt,[["__scopeId","data-v-7b40ff03"]]);export{La as default};
|
|
2
|
-
//# sourceMappingURL=WorkflowViewer.
|
|
1
|
+
var ye=Object.defineProperty;var ve=(u,t,d)=>t in u?ye(u,t,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[t]=d;var ie=(u,t,d)=>(ve(u,typeof t!="symbol"?t+"":t,d),d);import{_ as G}from"./AbstraButton.vue_vue_type_script_setup_true_lang.13670ae7.js";import{d as X,at as O,c as b,o as c,ac as A,ae as he,h as H,ed as ke,e as m,f as s,u as e,a as $,b as o,g as C,t as g,df as F,ad as be,aY as pe,_ as le,dj as Z,ej as Se,f6 as de,de as q,i as k,cS as fe,cT as Me,ei as ge,ec as _e,el as R,bE as $e,bD as K,eh as me,bW as Le,cM as xe,eD as Ie,fa as Ce,r as V,w as Ae,ax as ze,U as Be,S as Ze,A as Q,dd as Pe,eG as je,eH as Te,es as Ne,et as Ve}from"./jwt-decode.esm.3348bca5.js";import{F as Ee}from"./PhArrowSquareOut.vue.1cebb708.js";import{I as ce}from"./PhCopy.vue.71703533.js";import{F as He,I as We,O as De}from"./os.8ffdbf05.js";import{G as Fe}from"./PhPencilSimple.vue.0707effd.js";import{_ as Ye}from"./vue-flow-background.f1022925.js";import{a as Xe,b as Ge,g as ee,u as Oe,e as qe,M as Je}from"./vue-flow-core.0de753a6.js";import{k as te}from"./router.c6e27700.js";import{a as re,B as Ue,b as Re}from"./build.6e7d77b3.js";import"./tables.9701f90c.js";import{G as Ke}from"./PhArrowCounterClockwise.vue.6ab1b899.js";import{I as Qe}from"./PhCopySimple.vue.369eb629.js";import{G as et}from"./PhDotsThreeVertical.vue.9d76c4de.js";import{F as tt,G as at,I as st,a as ot}from"./PhWebhooksLogo.vue.58a98824.js";import{a as ae}from"./asyncComputed.c73d027a.js";import{a as nt}from"./project.2483de10.js";import{g as rt}from"./datetime.a6d58ce1.js";import{_ as lt,R as it}from"./repository.353e892d.js";import{R as dt}from"./repository.48119e01.js";import{u as ct}from"./polling.f547718c.js";import{C as se}from"./Card.4a8a30bb.js";import"./index.015caad7.js";import"./record.a108da5a.js";import"./string.998fa621.js";import"./LoadingOutlined.4c40acc4.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[t]="22d0d1b3-b615-48ba-9d4b-5b7c3e81743c",u._sentryDebugIdIdentifier="sentry-dbid-22d0d1b3-b615-48ba-9d4b-5b7c3e81743c")}catch{}})();const ut=["width","height","fill","transform"],pt={key:0},ft=m("path",{d:"M227.85,46.89a20,20,0,0,0-18.74-18.74c-13.13-.77-46.65.42-74.48,28.24L131,60H74.36a19.83,19.83,0,0,0-14.14,5.86L25.87,100.19a20,20,0,0,0,11.35,33.95l37.14,5.18,42.32,42.32,5.19,37.18A19.88,19.88,0,0,0,135.34,235a20.13,20.13,0,0,0,6.37,1,19.9,19.9,0,0,0,14.1-5.87l34.34-34.35A19.85,19.85,0,0,0,196,181.64V125l3.6-3.59C227.43,93.54,228.62,60,227.85,46.89ZM76,84h31L75.75,115.28l-27.23-3.8ZM151.6,73.37A72.27,72.27,0,0,1,204,52a72.17,72.17,0,0,1-21.38,52.41L128,159,97,128ZM172,180l-27.49,27.49-3.8-27.23L172,149Zm-72,22c-8.71,11.85-26.19,26-60,26a12,12,0,0,1-12-12c0-33.84,14.12-51.32,26-60A12,12,0,1,1,68.18,175.3C62.3,179.63,55.51,187.8,53,203c15.21-2.51,23.37-9.3,27.7-15.18A12,12,0,1,1,100,202Z"},null,-1),gt=[ft],_t={key:1},mt=m("path",{d:"M184,120v61.65a8,8,0,0,1-2.34,5.65l-34.35,34.35a8,8,0,0,1-13.57-4.53L128,176ZM136,72H74.35a8,8,0,0,0-5.65,2.34L34.35,108.69a8,8,0,0,0,4.53,13.57L80,128ZM40,216c37.65,0,50.69-19.69,54.56-28.18L68.18,161.44C59.69,165.31,40,178.35,40,216Z",opacity:"0.2"},null,-1),wt=m("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),yt=[mt,wt],vt={key:2},ht=m("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"},null,-1),kt=[ht],bt={key:3},St=m("path",{d:"M221.86,47.24a14,14,0,0,0-13.11-13.1c-12.31-.73-43.77.39-69.88,26.5L133.52,66H74.35a13.9,13.9,0,0,0-9.89,4.1L30.11,104.44a14,14,0,0,0,7.94,23.76l39.13,5.46,45.16,45.16L127.8,218a14,14,0,0,0,23.76,7.92l34.35-34.35a13.91,13.91,0,0,0,4.1-9.89V122.48l5.35-5.35h0C221.46,91,222.59,59.56,221.86,47.24ZM38.11,115a2,2,0,0,1,.49-2L72.94,78.58A2,2,0,0,1,74.35,78h47.17L77.87,121.64l-38.14-5.32A1.93,1.93,0,0,1,38.11,115ZM178,181.65a2,2,0,0,1-.59,1.41L143.08,217.4a2,2,0,0,1-3.4-1.11l-5.32-38.16L178,134.48Zm8.87-73h0L128,167.51,88.49,128l58.87-58.88a78.47,78.47,0,0,1,60.69-23A2,2,0,0,1,209.88,48,78.47,78.47,0,0,1,186.88,108.64ZM100,190.31C95.68,199.84,81.13,222,40,222a6,6,0,0,1-6-6c0-41.13,22.16-55.68,31.69-60a6,6,0,1,1,5,10.92c-7,3.17-22.53,13.52-24.47,42.91,29.39-1.94,39.74-17.52,42.91-24.47a6,6,0,1,1,10.92,5Z"},null,-1),Mt=[St],$t={key:4},Lt=m("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),xt=[Lt],It={key:5},Ct=m("path",{d:"M219.86,47.36a12,12,0,0,0-11.22-11.22c-12-.71-42.82.38-68.35,25.91L134.35,68h-60a11.9,11.9,0,0,0-8.48,3.52L31.52,105.85a12,12,0,0,0,6.81,20.37l39.79,5.55,46.11,46.11,5.55,39.81a12,12,0,0,0,20.37,6.79l34.34-34.35a11.9,11.9,0,0,0,3.52-8.48v-60l5.94-5.94C219.48,90.18,220.57,59.41,219.86,47.36ZM36.21,115.6a3.94,3.94,0,0,1,1-4.09L71.53,77.17A4,4,0,0,1,74.35,76h52L78.58,123.76,39.44,118.3A3.94,3.94,0,0,1,36.21,115.6ZM180,181.65a4,4,0,0,1-1.17,2.83l-34.35,34.34a4,4,0,0,1-6.79-2.25l-5.46-39.15L180,129.65Zm-52-11.31L85.66,128l60.28-60.29c23.24-23.24,51.25-24.23,62.22-23.58a3.93,3.93,0,0,1,3.71,3.71c.65,11-.35,39-23.58,62.22ZM98.21,189.48C94,198.66,80,220,40,220a4,4,0,0,1-4-4c0-40,21.34-54,30.52-58.21a4,4,0,0,1,3.32,7.28c-7.46,3.41-24.43,14.66-25.76,46.85,32.19-1.33,43.44-18.3,46.85-25.76a4,4,0,1,1,7.28,3.32Z"},null,-1),At=[Ct],zt={name:"PhRocketLaunch"},Bt=X({...zt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const t=u,d=O("weight","regular"),L=O("size","1em"),w=O("color","currentColor"),r=O("mirrored",!1),a=b(()=>{var i;return(i=t.weight)!=null?i:d}),p=b(()=>{var i;return(i=t.size)!=null?i:L}),l=b(()=>{var i;return(i=t.color)!=null?i:w}),x=b(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(i,y)=>(c(),A("svg",ke({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:l.value,transform:x.value},i.$attrs),[he(i.$slots,"default"),a.value==="bold"?(c(),A("g",pt,gt)):a.value==="duotone"?(c(),A("g",_t,yt)):a.value==="fill"?(c(),A("g",vt,kt)):a.value==="light"?(c(),A("g",bt,Mt)):a.value==="regular"?(c(),A("g",$t,xt)):a.value==="thin"?(c(),A("g",It,At)):H("",!0)],16,ut))}}),Zt=X({__name:"WorkflowEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(u){const t=u;function d(r,a,p=0){const l=a.center.x-r.center.x,x=a.center.y-r.center.y,i=Math.sqrt(l*l+x*x);if(i===0)return{sourceX:r.center.x,sourceY:r.center.y,targetX:a.center.x,targetY:a.center.y};const y=l/i,S=x/i,f=r.width/2,M=r.height/2;let P=r.center.x,j=r.center.y;Math.abs(y)*M>Math.abs(S)*f?(P=r.center.x+(y>0?f:-f),j=r.center.y+S*f/Math.abs(y)):(P=r.center.x+y*M/Math.abs(S),j=r.center.y+(S>0?M:-M));const z=a.width/2,T=a.height/2;let E=a.center.x,_=a.center.y;return Math.abs(y)*T>Math.abs(S)*z?(E=a.center.x-(y>0?z:-z),_=a.center.y-S*z/Math.abs(y)):(E=a.center.x-y*T/Math.abs(S),_=a.center.y-(S>0?T:-T)),P+=y*p,j+=S*p,E-=y*p,_-=S*p,{sourceX:P,sourceY:j,targetX:E,targetY:_}}function L(r,a){const l={center:{x:r.computedPosition.x+r.dimensions.width/2,y:r.computedPosition.y+r.dimensions.height/2},width:r.dimensions.width,height:r.dimensions.height},i={center:{x:a.computedPosition.x+a.dimensions.width/2,y:a.computedPosition.y+a.dimensions.height/2},width:a.dimensions.width,height:a.dimensions.height};return d(l,i,10)}const w=b(()=>{if(!t.sourceNode||!t.targetNode)return ee({sourceX:0,sourceY:0,targetX:0,targetY:0});if(!t.sourceNode.dimensions.width||!t.targetNode.dimensions.width||!t.sourceNode.dimensions.height||!t.targetNode.dimensions.height)return ee({sourceX:0,sourceY:0,targetX:0,targetY:0});const r=L(t.sourceNode,t.targetNode);return ee(r)});return(r,a)=>{var p,l;return c(),A(pe,null,[s(e(Xe),{path:w.value[0],"marker-end":t.markerEnd},null,8,["path","marker-end"]),(l=(p=t.data)==null?void 0:p.props)!=null&&l.taskType?(c(),$(e(Ge),{key:0},{default:o(()=>[m("div",{style:be({transform:`translate(-50%, -50%) translate(${w.value[1]}px,${w.value[2]}px)`}),class:"nodrag nopan edge-label"},[s(e(F),null,{default:o(()=>[C(g(t.data.props.taskType),1)]),_:1})],4)]),_:1})):H("",!0)],64)}}});const Pt=le(Zt,[["__scopeId","data-v-8f1859d4"]]);class jt{async list(t){return te.get(`projects/${t}/disabled-stages`)}async disableStage({projectId:t,stageId:d}){return te.patch(`projects/${t}/disabled-stages/${d}`,{enable:!1})}async enableStage({projectId:t,stageId:d}){return te.patch(`projects/${t}/disabled-stages/${d}`,{enable:!0})}}const oe=new jt;class Y{constructor(t){ie(this,"id");this.dto=t,this.id=t}static async list(t){return(await oe.list(t)).map(L=>new Y(L))}static async disableStage({projectId:t,stageId:d}){return oe.disableStage({projectId:t,stageId:d})}static async enableStage({projectId:t,stageId:d}){return oe.enableStage({projectId:t,stageId:d})}}const Tt=X({__name:"WorkflowStageExecutions",props:{stageId:{},projectId:{},executions:{},taskStats:{},loading:{type:Boolean}},setup(u){const t=u,d=b(()=>t.taskStats?Math.round(t.taskStats.completed/t.taskStats.total*100):0),L=b(()=>{const a=d.value;return a===100?"#52c41a":a>=50?"#1890ff":"#faad14"}),w=a=>rt(a,{weekday:void 0}),r=a=>{if(a<60)return`${Math.round(a)}s`;const p=Math.floor(a/60);if(p<60)return`${p}m`;const l=Math.floor(p/60);return l<24?`${l}h`:`${Math.floor(l/24)}d`};return(a,p)=>(c(),$(e(Z),{vertical:"",size:4,style:{width:"100%"}},{default:o(()=>[a.executions&&a.executions.length>0?(c(),$(e(Z),{key:0,size:4,gap:4},{default:o(()=>[(c(!0),A(pe,null,Se(a.executions,l=>(c(),$(e(de),{key:l.id,to:{name:"logs",params:{projectId:a.projectId},query:{executionId:l.id}}},{default:o(()=>[s(e(fe),{title:w(l.createdAt)},{content:o(()=>[s(e(Z),{vertical:"",size:4},{default:o(()=>[s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_status"))+": "+g(l.status),1)]),_:2},1024),s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_duration"))+": "+g(l.duration_seconds)+"s",1)]),_:2},1024),s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_version"))+": "+g(l.buildId.slice(0,6)),1)]),_:2},1024)]),_:2},1024)]),default:o(()=>[s(lt,{status:l.status},null,8,["status"])]),_:2},1032,["title"])]),_:2},1032,["to"]))),128))]),_:1})):H("",!0),a.taskStats&&a.taskStats.total>0?(c(),$(e(de),{key:1,to:{name:"tasks",params:{projectId:a.projectId},query:{stage:a.stageId,status:"pending"}}},{default:o(()=>[s(e(Z),{vertical:"",size:2},{default:o(()=>[s(e(Me),{"show-info":!1,percent:d.value,"stroke-color":L.value,size:"small"},null,8,["percent","stroke-color"]),s(e(Z),{vertical:"",size:0},{default:o(()=>[a.taskStats.pending&&a.taskStats.averageCompletionSeconds?(c(),$(e(q),{key:0,type:"secondary",style:{fontSize:"11px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_pending_tasks").replace("{count}",a.taskStats.pending.toString()))+" ("+g(r(a.taskStats.averageCompletionSeconds))+" "+g(e(k).translate("i18n_workflowviewer_average"))+") ",1)]),_:1})):H("",!0)]),_:1})]),_:1})]),_:1},8,["to"])):H("",!0)]),_:1}))}}),Nt={class:"stage-node"},Vt={class:"stage-content"},Et={class:"stage-title"},Ht={class:"action-item"},Wt={class:"action-item"},Dt={class:"action-warning"},Ft={key:1,class:"action-item"},ue="3.18.0",Yt=X({__name:"WorkflowStageNode",props:{stage:{}},setup(u){const t=u,d=ge(),L=_e(),w=d.params.projectId,r=b(()=>({forms:tt,hooks:at,scripts:st,jobs:ot})[t.stage.type]),{result:a}=ae(async()=>await nt.get(w)),{result:p}=ae(async()=>{const I=(await re.list(w)).find(n=>n.latest);return I?await Ue.get(I.id):null}),{result:l,refetch:x}=ae(async()=>(await Y.list(w)).filter(I=>I)),i=()=>{L.push({name:"logs",params:{projectId:w},query:{stageId:t.stage.id}})},y=b(()=>t.stage.type==="forms"||t.stage.type==="hooks"),S=()=>{var n;if(!t.stage.path)return;const _=t.stage.type==="forms"?`/${t.stage.path}`:`/_hooks/${t.stage.path}`,I=(n=a.value)==null?void 0:n.getUrl(_);!I||(navigator.clipboard.writeText(I),xe.success(k.translate("i18n_workflowviewer_copied_url")))},f=b(()=>{var _;return(_=l.value)==null?void 0:_.map(I=>I.id).includes(t.stage.id)}),M=(_,I)=>{const[n,v,h]=_.split(".").map(Number),[D,B,W]=I.split(".").map(Number);return n>D?!0:n<D?!1:v>B?!0:v<B?!1:h>=W},P=b(()=>f.value?Ie:Ce),j=b(()=>f.value?k.translate("i18n_workflowviewer_enable_stage"):k.translate("i18n_workflowviewer_disable_stage")),z=b(()=>{var _;return!M(((_=p.value)==null?void 0:_.abstraVersion)||"0.0.0",ue)}),T=b(()=>z.value?k.translate("i18n_workflowviewer_disable_stages_warning").replace("{version}",ue):""),E=async()=>{z.value||(f.value?await Y.enableStage({projectId:w,stageId:t.stage.id}):await Y.disableStage({projectId:w,stageId:t.stage.id}),await x())};return(_,I)=>(c(),A("div",Nt,[m("div",Vt,[(c(),$(R(r.value),{size:18,class:"stage-icon"})),m("div",Et,g(_.stage.title),1),s(e(Le),{trigger:["click"]},{overlay:o(()=>[s(e($e),null,{default:o(()=>[s(e(K),{onClick:i},{default:o(()=>[m("div",Ht,[s(e(Ke),{size:16}),m("span",null,g(e(k).translate("i18n_workflowviewer_view_logs")),1)])]),_:1}),y.value?(c(),$(e(K),{key:0,onClick:S},{default:o(()=>[m("div",Wt,[s(e(Qe),{size:16}),m("span",null,g(e(k).translate("i18n_workflowviewer_copy_url")),1)])]),_:1})):H("",!0),s(e(K),{onClick:E},{default:o(()=>[z.value?(c(),$(e(fe),{key:0,placement:"left"},{content:o(()=>[m("div",Dt,[s(e(F),null,{default:o(()=>[C(g(T.value),1)]),_:1})])]),default:o(()=>[m("div",{class:me(["action-item",{disabled:z.value}])},[(c(),$(R(P.value),{size:16})),m("span",null,g(j.value),1)],2)]),_:1})):(c(),A("div",Ft,[(c(),$(R(P.value),{size:16})),m("span",null,g(j.value),1)]))]),_:1})]),_:1})]),default:o(()=>[s(e(et),{style:{cursor:"pointer"},size:20,class:"actions-menu"})]),_:1})]),s(Tt,{"stage-id":_.stage.id,"project-id":e(w),executions:_.stage.executions,"task-stats":_.stage.taskStats,style:{"margin-top":"8px"}},null,8,["stage-id","project-id","executions","task-stats"])]))}});const J=le(Yt,[["__scopeId","data-v-25457a9a"]]);function Xt(u,t){const d=new it,L=new dt(u),w=V({}),r=V({}),a=V(!1);async function p(){const i=t.value;if(i.length===0){a.value=!1;return}a.value=!0;try{const[y,S]=await Promise.all([Promise.all(i.map(async f=>{try{const{executions:M}=await d.list({projectId:u,stageId:f,limit:6});return{stageId:f,executions:M}}catch(M){return console.error(`Failed to load executions for stage ${f}:`,M),{stageId:f,executions:[]}}})),L.getTasksStatistics()]);y.forEach(({stageId:f,executions:M})=>{w.value[f]=M}),S.forEach(f=>{r.value[f.stageId]={pending:f.pendingTasks,completed:f.completedTasks,total:f.totalTasks,averageCompletionSeconds:f.averageCompletionSeconds}})}catch(y){console.error("Failed to load workflow data:",y)}finally{a.value=!1}}const{startPolling:l,endPolling:x}=ct({task:p,interval:15e3});return Ae(t,i=>{i.length>0&&(p(),l())},{immediate:!0}),ze(()=>{x()}),{executionsByStage:w,taskStatsByStage:r,loading:a,refetch:p}}const we=u=>(Ne("data-v-7b40ff03"),u=u(),Ve(),u),Gt={class:"flow-container"},Ot={class:"code-container"},qt=we(()=>m("code",{class:"install-code"},"pip install abstra",-1)),Jt={class:"code-container"},Ut=we(()=>m("code",{class:"install-code"},"abstra editor .",-1)),Rt={key:0,class:"edit-button-text"},ne="#ea576a",Kt=X({__name:"WorkflowViewer",setup(u){const{onInit:t}=Oe(),d=new Re,L=ge(),w=_e(),r=L.params.projectId,a=L.query.buildId,p=V(!0),l=V(null),x=V(!0),i=V(!1),y=()=>{w.push({name:"web-editor",params:{projectId:r}})},S=async n=>{try{await navigator.clipboard.writeText(n)}catch(v){console.error("Failed to copy:",v)}};t(n=>{x.value&&(n.fitView(),x.value=!1)});const f=V([]),M=V([]),P=b(()=>f.value.map(n=>n.id)),{executionsByStage:j,taskStatsByStage:z}=Xt(r,P),T=b(()=>f.value.length>0),E=b(()=>f.value.map(n=>({id:n.id,type:n.type,data:{...n,executions:j.value[n.id]||[],taskStats:z.value[n.id]||null},position:{x:n.position.x,y:n.position.y*1.5}}))),_=b(()=>M.value.map(n=>({id:n.id,source:n.sourceStageId,target:n.targetStageId,type:"task",data:{id:n.id,props:{taskType:n.taskType}},markerEnd:{type:Je.Arrow,width:24,height:24}})));function I(n){const v=[],h=[],D=["jobs","hooks","forms","scripts"];for(const B of D){const W=n[B]||[];for(const N of W){v.push({id:N.id,type:B,title:N.title,position:{x:N.workflow_position[0],y:N.workflow_position[1]},file:N.file,path:N.path,schedule:N.schedule});for(const U of N.transitions||[])h.push({id:U.id,sourceStageId:N.id,targetStageId:U.target_id,taskType:U.task_type})}}f.value=v,M.value=h}return Be(async()=>{try{p.value=!0;let n;if(a){const B=(await re.list(r)).find(W=>W.id===a);if(!B){l.value="Build not found";return}n=B}else{const B=(await re.list(r)).find(W=>W.latest);if(!B){l.value="No builds found for this project";return}n=B}const v=await d.get(n.id);if(!v||!v.abstraJson){l.value="No workflow data available for this build";return}const h=JSON.parse(v.abstraJson);I(h)}catch(n){l.value=n instanceof Error?n.message:"Failed to load workflow",console.error(n)}finally{p.value=!1}}),(n,v)=>(c(),A("div",Gt,[p.value?(c(),$(e(Ze),{key:0,style:{width:"100%"}})):T.value?(c(),$(e(qe),{key:2,nodes:E.value,edges:_.value,"default-viewport":{zoom:1.5},"fit-view-on-init":"","min-zoom":.1,"max-zoom":1.25,"pan-on-scroll":e(De).isMac,"snap-to-grid":""},{"edge-task":o(h=>[s(Pt,je(Te(h)),null,16)]),"node-forms":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-hooks":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-scripts":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-jobs":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),default:o(()=>[s(e(Ye),{"pattern-color":"#aaa",gap:16})]),_:1},8,["nodes","edges","pan-on-scroll"])):(c(),$(e(se),{key:1,class:"empty-state-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:24,align:"center"},{default:o(()=>[s(e(Bt),{size:64,color:ne}),s(e(Z),{vertical:"",gap:8,align:"center"},{default:o(()=>[s(e(Q),{level:3},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_getting_started")),1)]),_:1}),s(e(F),{type:"secondary",style:{"text-align":"center"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_no_workflow_description")),1)]),_:1})]),_:1}),s(e(Z),{gap:16,wrap:"wrap",justify:"center"},{default:o(()=>[s(e(se),{class:"option-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:12},{default:o(()=>[s(e(He),{size:32,color:ne}),s(e(Q),{level:5},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_option_cli")),1)]),_:1}),s(e(F),{type:"secondary",style:{"font-size":"13px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_cli_description")),1)]),_:1}),s(e(Z),{vertical:"",gap:8},{default:o(()=>[m("div",Ot,[qt,s(G,{type:"text",size:"small",onClick:v[0]||(v[0]=h=>S("pip install abstra"))},{default:o(()=>[s(e(ce),{size:16})]),_:1})]),m("div",Jt,[Ut,s(G,{type:"text",size:"small",onClick:v[1]||(v[1]=h=>S("abstra editor ."))},{default:o(()=>[s(e(ce),{size:16})]),_:1})])]),_:1})]),_:1})]),_:1}),s(e(se),{class:"option-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:12},{default:o(()=>[s(e(We),{size:32,color:ne}),s(e(Q),{level:5},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_option_online")),1)]),_:1}),s(e(F),{type:"secondary",style:{"font-size":"13px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_online_description")),1)]),_:1}),s(G,{type:"primary",onClick:y},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_open_editor")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(e(Pe),{href:"https://www.abstra.io/docs",target:"_blank"},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_view_docs"))+" ",1),s(e(Ee),{size:14,style:{"margin-left":"4px"}})]),_:1})]),_:1})]),_:1})),!p.value&&T.value?(c(),$(G,{key:3,class:me(["edit-button",{expanded:i.value}]),type:"primary",size:"large",onClick:y,onMouseenter:v[2]||(v[2]=h=>i.value=!0),onMouseleave:v[3]||(v[3]=h=>i.value=!1)},{default:o(()=>[s(e(Fe),{size:24}),i.value?(c(),A("span",Rt,g(e(k).translate("i18n_workflowviewer_edit_online")),1)):H("",!0)]),_:1},8,["class"])):H("",!0)]))}});const La=le(Kt,[["__scopeId","data-v-7b40ff03"]]);export{La as default};
|
|
2
|
+
//# sourceMappingURL=WorkflowViewer.2666936e.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{en as n,M as y}from"./jwt-decode.esm.3348bca5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d44445e1-d04a-4b5e-8582-6533feafa124",e._sentryDebugIdIdentifier="sentry-dbid-d44445e1-d04a-4b5e-8582-6533feafa124")}catch{}})();function u(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function o(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function c(e,r=[],t){const l=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const i=o(e);return[{title:l,key:[...r,i].join("/"),children:e.flatMap((s,f)=>c(s,[...r,i,`${f}`]))}]}else if(n.exports.isObject(e)){const i=o(e);return[{title:l,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,f])=>c(f,[...r,i,s],s))}]}else return[{title:l,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{y.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{x as a,c as t};
|
|
2
|
+
//# sourceMappingURL=ant-design.b3eefa58.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var i=Object.defineProperty;var o=(s,t,e)=>t in s?i(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var c=(s,t,e)=>(o(s,typeof t!="symbol"?t+"":t,e),e);import{k as r}from"./router.c6e27700.js";import"./jwt-decode.esm.3348bca5.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="15c3dc2e-6309-46eb-956c-69b9c9b93dfa",s._sentryDebugIdIdentifier="sentry-dbid-15c3dc2e-6309-46eb-956c-69b9c9b93dfa")}catch{}})();class u{constructor(){c(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return r.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await r.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return r.get(`projects/${t}/${this.urlPath}`)}}const a=new u;class n{constructor(t){this.dto=t}static async list(t){return(await a.list(t)).map(d=>new n(d))}static async create(t){const e=await a.create(t);return new n(e)}static async delete(t,e){await a.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A};
|
|
2
|
+
//# sourceMappingURL=apiKey.ee792d72.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$ as d,c as l}from"./jwt-decode.esm.3348bca5.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="42ef5497-75e4-415c-ac62-40ae03831441",r._sentryDebugIdIdentifier="sentry-dbid-42ef5497-75e4-415c-ac62-40ae03831441")}catch{}})();const i=r=>{const e=d({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),s=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(s));o();const u=l(()=>e.value.loading),a=l(()=>e.value.result),c=l(()=>e.value.error);return{loading:u,result:a,error:c,refetch:o}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=asyncComputed.c73d027a.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{k as n}from"./router.
|
|
2
|
-
//# sourceMappingURL=build.
|
|
1
|
+
import{k as n}from"./router.c6e27700.js";import"./jwt-decode.esm.3348bca5.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="4821baa4-2574-426a-b4b6-2da4be1d5132",i._sentryDebugIdIdentifier="sentry-dbid-4821baa4-2574-426a-b4b6-2da4be1d5132")}catch{}})();class c{async list(e){return n.get(`projects/${e}/builds`)}async get(e){return n.get(`builds/${e}`)}async download(e){return n.get(`builds/${e}/download`)}}const d=new c;class g{constructor(e){this.dto=e}static async list(e){return(await d.list(e)).map(a=>new g(a))}get id(){return this.dto.id}get projectId(){return this.dto.projectId}get createdAt(){return new Date(this.dto.createdAt)}get status(){return this.dto.status}get log(){return this.dto.log}get latest(){return this.dto.latest}get abstraVersion(){return this.dto.abstraVersion}async download(){const e=await d.download(this.id);if(!e)throw new Error("Download failed");window.open(e.url,"_blank")}}class l{constructor(e,s,a,r){this.projectId=e,this.buildId=s,this.abstraVersion=a,this.project=r}static fromV0(e,s,a,r){const o={hooks:r.hooks.map(t=>({id:t.path,logQuery:{buildId:s,stageId:t.path,stageTitle:t.title},...t})),forms:r.forms.map(t=>({id:t.path,logQuery:{buildId:s,stageId:t.path,stageTitle:t.title},...t})),jobs:r.jobs.map(t=>({id:t.identifier,logQuery:{buildId:s,stageId:t.identifier,stageTitle:t.title},...t})),scripts:[]};return new l(e,s,a,o)}static fromDTO(e,s,a,r){const o={hooks:r.hooks.map(t=>({logQuery:{buildId:s,stageId:t.id,stageTitle:t.title},...t})),forms:r.forms.map(t=>({logQuery:{buildId:s,stageId:t.id,stageTitle:t.title},...t})),jobs:r.jobs.map(t=>({logQuery:{buildId:s,stageId:t.id,stageTitle:t.title},...t})),scripts:r.scripts.map(t=>({logQuery:{buildId:s,stageId:t.id,stageTitle:t.title},...t}))};return new l(e,s,a,o)}static async get(e){const s=await d.get(e);if(!s)throw new Error("Build not found");const{projectId:a,abstraJson:r,abstraVersion:o}=s;if(!r||!o)return null;const t=JSON.parse(r);if(!t.version)throw new Error("Version is invalid");return t.version==="0.1"?this.fromV0(a,e,o,t):this.fromDTO(a,e,o,t)}get runtimes(){return[...this.project.forms.map(e=>({...e,type:"form"})),...this.project.hooks.map(e=>({...e,type:"hook"})),...this.project.jobs.map(e=>({...e,type:"job"})),...this.project.scripts.map(e=>({...e,type:"script"}))]}}export{l as B,g as a,c as b};
|
|
2
|
+
//# sourceMappingURL=build.6e7d77b3.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./jwt-decode.esm.3348bca5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f26c9b9f-14d9-4324-b9b4-038ad34760a9",t._sentryDebugIdIdentifier="sentry-dbid-f26c9b9f-14d9-4324-b9b4-038ad34760a9")}catch{}})();function p(t,e){const{r:n,g:r,b:o,usePound:s}=g(t);return w(c(n,-e),c(r,-e),c(o,-e),s)}function c(t,e){const n=t*(100+e*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(t){return t.startsWith("#")||t.match(/^(rgb|hsl)/)}const v=(t,e)=>y(p(y(t),e)),P=t=>k(t)?v(t,.1):p(t,.1);function k(t){const{r:e,g:n,b:r}=g(t);return e*.299+n*.587+r*.114<186}function g(t){let e=!1;t[0]=="#"&&(t=t.slice(1),e=!0);const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:e}}function y(t){const{r:e,g:n,b:r,usePound:o}=g(t);return w(255-e,255-n,255-r,o)}const w=(t,e,n,r=!0)=>(r?"#":"")+(n|e<<8|t<<16).toString(16).padStart(6,"0");function _(t){return new Promise((e,n)=>{const r=document.createElement("img");r.src=t,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:f}=r,a=document.createElement("canvas");a.width=s,a.height=f;const u=a.getContext("2d");if(!u)return e(!1);u.drawImage(r,0,0);const I=u.getImageData(0,0,a.width,a.height),{data:d}=I;let l,b,h,m;for(let i=0,x=d.length;i<x;i+=4)l=d[i],b=d[i+1],h=d[i+2],m=Math.floor((l+b+h)/3),o+=m;const D=Math.floor(o/(s*f));document.body.removeChild(r),e(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
|
|
2
|
+
//# sourceMappingURL=colorHelpers.5ee17d14.js.map
|