abstra 3.24.1__py3-none-any.whl → 3.24.2__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.
Potentially problematic release.
This version of abstra might be problematic. Click here for more details.
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/METADATA +1 -1
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/RECORD +200 -204
- abstra_internals/contracts_generated.py +1016 -758
- abstra_internals/controllers/git.py +4 -2
- abstra_internals/controllers/main.py +1 -1
- abstra_internals/repositories/git/git_test.py +5 -2
- abstra_internals/repositories/git/native.py +11 -5
- abstra_internals/repositories/git/types.py +1 -1
- abstra_internals/server/routes/git.py +11 -2
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js +2 -0
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js +2 -0
- abstra_statics/dist/assets/ApiKeys.dafa1dc2.js +2 -0
- abstra_statics/dist/assets/App.45396b70.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.db5596a1.js +2 -0
- abstra_statics/dist/assets/{BaseLayout.72a6c8f2.js → BaseLayout.135a51d9.js} +2 -2
- abstra_statics/dist/assets/Billing.622c9155.js +2 -0
- abstra_statics/dist/assets/{Breadcrumb.5c786c09.js → Breadcrumb.8a82fa01.js} +3 -3
- abstra_statics/dist/assets/Builds.38c0f966.css +1 -0
- abstra_statics/dist/assets/Builds.c3fd9633.js +2 -0
- abstra_statics/dist/assets/{Card.fc77085c.js → Card.38a860a4.js} +5 -5
- abstra_statics/dist/assets/{CircularLoading.998b223a.js → CircularLoading.217756fb.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.4c4707d8.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.121898a9.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.b594798e.css +1 -0
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.502d779a.js +2 -0
- abstra_statics/dist/assets/ContentLayout.b1c94c2b.js +2 -0
- abstra_statics/dist/assets/CrudView.75a430a4.js +2 -0
- abstra_statics/dist/assets/CrudView.8abe5bc2.css +1 -0
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js +2 -0
- abstra_statics/dist/assets/EditorLogin.fba78ce9.js +2 -0
- abstra_statics/dist/assets/EditorsView.1a9ccb13.js +2 -0
- abstra_statics/dist/assets/EnvVars.d77957ea.js +2 -0
- abstra_statics/dist/assets/Error.5bd293cc.js +2 -0
- abstra_statics/dist/assets/ExclamationCircleOutlined.5d5c3f30.js +2 -0
- abstra_statics/dist/assets/Files.39b07d88.css +1 -0
- abstra_statics/dist/assets/Files.c4ce443f.js +2 -0
- abstra_statics/dist/assets/Form.a4787001.js +2 -0
- abstra_statics/dist/assets/{FormRunner.46f6426d.css → FormRunner.1e6e7d2a.css} +1 -1
- abstra_statics/dist/assets/FormRunner.73650f9e.js +2 -0
- abstra_statics/dist/assets/Home.19a2303b.js +2 -0
- abstra_statics/dist/assets/Home.4eff6ce9.js +2 -0
- abstra_statics/dist/assets/Home.e8bf9440.css +1 -0
- abstra_statics/dist/assets/LoadingContainer.97fa8f2e.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.e309ab16.js +2 -0
- abstra_statics/dist/assets/Login.632cada3.js +2 -0
- abstra_statics/dist/assets/{Login.75d13f6c.css → Login.ac75228f.css} +1 -1
- abstra_statics/dist/assets/Login.ecec1ff2.js +2 -0
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js +2 -0
- abstra_statics/dist/assets/Logo.d77d5637.js +2 -0
- abstra_statics/dist/assets/Logs.c1f01b05.js +2 -0
- abstra_statics/dist/assets/LogsController.0ff97ed4.css +1 -0
- abstra_statics/dist/assets/LogsController.2dceb3d3.js +2 -0
- abstra_statics/dist/assets/Main.44b7640e.js +2 -0
- abstra_statics/dist/assets/{MockForm.0b819a52.js → MockForm.9b7a0df3.js} +2 -2
- abstra_statics/dist/assets/Navbar.0951ed6d.js +2 -0
- abstra_statics/dist/assets/Navbar.61d3e0a6.css +1 -0
- abstra_statics/dist/assets/NewEditor.d65a400f.js +8 -0
- abstra_statics/dist/assets/NewEditor.e3cfeb2c.css +1 -0
- abstra_statics/dist/assets/OidcLoginCallback.66b0f38a.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.48d8429a.js +2 -0
- abstra_statics/dist/assets/OmniChat.60ee26c8.css +1 -0
- abstra_statics/dist/assets/OmniChat.c3de8733.js +6 -0
- abstra_statics/dist/assets/OnboardingView.6cda1bc5.js +2 -0
- abstra_statics/dist/assets/OnboardingView.e871e6d8.css +1 -0
- abstra_statics/dist/assets/Organization.c36206b7.js +2 -0
- abstra_statics/dist/assets/Organizations.2b1c6c65.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.78877a50.js → PhArrowCounterClockwise.vue.9e570570.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.2ddfc219.js → PhArrowSquareOut.vue.bcbdb6e7.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.854c3cb5.js → PhClockCounterClockwise.vue.4bd682d8.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.d116ddfb.js → PhCopy.vue.29934bc2.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.5d0f839d.js → PhCopySimple.vue.0241af8c.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.abf4a034.js → PhCube.vue.0fe2c514.js} +2 -2
- abstra_statics/dist/assets/PhDatabase.vue.fdfb515c.js +2 -0
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.5e8ae2a9.js → PhDotsThreeVertical.vue.7a0e0638.js} +2 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.f1245c40.js +2 -0
- abstra_statics/dist/assets/PhFileArrowUp.vue.c292afe1.js +2 -0
- abstra_statics/dist/assets/PhFilePlus.vue.c39ff1a9.js +2 -0
- abstra_statics/dist/assets/{PhFolderPlus.vue.21d377a3.js → PhFolderPlus.vue.bc40161e.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.363dd83c.js → PhGear.vue.0feed515.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.23f3a465.js → PhKey.vue.15a9e64e.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.feb383e2.js → PhPencil.vue.a7219766.js} +2 -2
- abstra_statics/dist/assets/PhPencilSimple.vue.15a2b403.js +2 -0
- abstra_statics/dist/assets/PhRocket.vue.7155b91f.js +2 -0
- abstra_statics/dist/assets/{PhSignOut.vue.d1d6498f.js → PhSignOut.vue.2af17bd7.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.b6712d34.js → PhSparkle.vue.c7f06cac.js} +2 -2
- abstra_statics/dist/assets/PhTranslate.vue.2ce651a6.js +2 -0
- abstra_statics/dist/assets/{PhUsersThree.vue.8889f957.js → PhUsersThree.vue.2942df75.js} +2 -2
- abstra_statics/dist/assets/{PhWarningCircle.vue.2087be7d.js → PhWarningCircle.vue.05a40bc4.js} +2 -2
- abstra_statics/dist/assets/PhWebhooksLogo.vue.e4752384.js +2 -0
- abstra_statics/dist/assets/PlayerConfigProvider.00af5968.js +2 -0
- abstra_statics/dist/assets/PlayerNavbar.117f184b.js +2 -0
- abstra_statics/dist/assets/{PlayerNavbar.77209eae.css → PlayerNavbar.4dc29a45.css} +1 -1
- abstra_statics/dist/assets/Project.66111161.js +2 -0
- abstra_statics/dist/assets/Project.9c418d2e.css +1 -0
- abstra_statics/dist/assets/ProjectLogin.d9bb1f86.js +2 -0
- abstra_statics/dist/assets/ProjectSettings.f8c6f60a.js +2 -0
- abstra_statics/dist/assets/ProjectsView.32f6ccff.js +2 -0
- abstra_statics/dist/assets/ProjectsView.e26ddfd5.css +1 -0
- abstra_statics/dist/assets/SaveButton.363ea20f.css +1 -0
- abstra_statics/dist/assets/SaveButton.c3f2a4bb.js +2 -0
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.cb5567cd.js +2 -0
- abstra_statics/dist/assets/{Sidebar.29baeab0.css → Sidebar.161522da.css} +1 -1
- abstra_statics/dist/assets/Sidebar.1c4e35be.js +2 -0
- abstra_statics/dist/assets/Sql.6d9a778c.css +1 -0
- abstra_statics/dist/assets/Sql.8d31ec23.js +5 -0
- abstra_statics/dist/assets/Steps.687763a5.js +2 -0
- abstra_statics/dist/assets/TableCard.8c99a870.js +2 -0
- abstra_statics/dist/assets/{TableEditor.5853a363.css → TableEditor.20fecc75.css} +1 -1
- abstra_statics/dist/assets/TableEditor.ba7a8b6a.js +2 -0
- abstra_statics/dist/assets/Tables.113960f2.js +39 -0
- abstra_statics/dist/assets/TablesDiagram.8e6d1e89.js +15 -0
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.5cc96b0d.js +2 -0
- abstra_statics/dist/assets/Tasks.90846020.js +2 -0
- abstra_statics/dist/assets/{UploadOutlined.9aa845de.js → UploadOutlined.518baf9a.js} +2 -2
- abstra_statics/dist/assets/View.ded6b355.js +2 -0
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.285b5e2c.js +2 -0
- abstra_statics/dist/assets/Watermark.5071a4b2.js +2 -0
- abstra_statics/dist/assets/WebEditor.18ece735.js +2 -0
- abstra_statics/dist/assets/WebEditor.b886e4d1.css +1 -0
- abstra_statics/dist/assets/WidgetPreview.88a4f27f.js +2 -0
- abstra_statics/dist/assets/WorkflowViewer.3b6aee8e.css +1 -0
- abstra_statics/dist/assets/WorkflowViewer.778c401d.js +2 -0
- abstra_statics/dist/assets/{ant-design.42419021.js → ant-design.4efc9ccd.js} +2 -2
- abstra_statics/dist/assets/{apiKey.403049eb.js → apiKey.bd946d8c.js} +2 -2
- abstra_statics/dist/assets/asyncComputed.7bc1692e.js +2 -0
- abstra_statics/dist/assets/{build.45b511b6.js → build.a8637e29.js} +2 -2
- abstra_statics/dist/assets/{colorHelpers.50ced1e9.js → colorHelpers.8ba18214.js} +2 -2
- abstra_statics/dist/assets/{console.f0f09e6f.js → console.2a5ed51a.js} +4 -4
- abstra_statics/dist/assets/constants.534f67bc.js +2 -0
- abstra_statics/dist/assets/contracts.generated.8ad36e63.js +2 -0
- abstra_statics/dist/assets/{cssMode.23271d4a.js → cssMode.6c4ccf50.js} +2 -2
- abstra_statics/dist/assets/datetime.89495471.js +2 -0
- abstra_statics/dist/assets/dayjs.304f38f8.js +2 -0
- abstra_statics/dist/assets/editor.c1a1bd33.js +2 -0
- abstra_statics/dist/assets/editor.main.84e237cf.js +2 -0
- abstra_statics/dist/assets/fetch.452c58e5.js +2 -0
- abstra_statics/dist/assets/{files.8b58ee7e.js → files.8999afd5.js} +2 -2
- abstra_statics/dist/assets/{folder.13d3acac.js → folder.81ef8619.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.f79b510b.js → freemarker2.559f77f2.js} +2 -2
- abstra_statics/dist/assets/{handlebars.07d5febe.js → handlebars.8d101b7c.js} +2 -2
- abstra_statics/dist/assets/{html.7d6a59b4.js → html.b3e7d3ab.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.7779ff94.js → htmlMode.2305b1bb.js} +2 -2
- abstra_statics/dist/assets/{index.d31da2c3.js → index.71eb83f3.js} +2 -2
- abstra_statics/dist/assets/index.90acf038.js +2 -0
- abstra_statics/dist/assets/index.b74c262c.js +4 -0
- abstra_statics/dist/assets/index.bc97991a.js +2 -0
- abstra_statics/dist/assets/index.d809956c.js +2 -0
- abstra_statics/dist/assets/{index.57042181.css → index.da037bc0.css} +1 -1
- abstra_statics/dist/assets/index.da4f9d54.js +2 -0
- abstra_statics/dist/assets/{index.c8a56795.js → index.e5cb42a1.js} +2 -2
- abstra_statics/dist/assets/{index.482df04a.js → index.f2beb20d.js} +2 -2
- abstra_statics/dist/assets/{index.e71a5f84.js → index.f6171691.js} +3 -3
- abstra_statics/dist/assets/{javascript.4c528c2c.js → javascript.3000fc25.js} +2 -2
- abstra_statics/dist/assets/{jsonMode.d6441e9d.js → jsonMode.7bbb508d.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.9f7a5511.css → jwt-decode.c5760184.css} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.54a1ea22.js → jwt-decode.esm.c9c37cdc.js} +197 -197
- abstra_statics/dist/assets/{linters.a0f2aa84.js → linters.7fec18d9.js} +2 -2
- abstra_statics/dist/assets/{liquid.0c441ad2.js → liquid.b4ac9aaf.js} +3 -3
- abstra_statics/dist/assets/member.3c12efee.js +2 -0
- abstra_statics/dist/assets/metadata.e627ddda.js +2 -0
- abstra_statics/dist/assets/omniChatStore.508e8ece.js +9 -0
- abstra_statics/dist/assets/omniChatStore.b58e3bed.css +1 -0
- abstra_statics/dist/assets/{organization.668d1b58.js → organization.cd03f9a8.js} +2 -2
- abstra_statics/dist/assets/os.f08724fb.js +2 -0
- abstra_statics/dist/assets/player.7362caf4.js +2 -0
- abstra_statics/dist/assets/{plotly.min.2a87d7e2.js → plotly.min.50ebb925.js} +2 -2
- abstra_statics/dist/assets/polling.4db5ee9a.js +2 -0
- abstra_statics/dist/assets/{project.1b8374f4.js → project.9a068e8d.js} +2 -2
- abstra_statics/dist/assets/{python.7ac27a56.js → python.51a7c648.js} +3 -3
- abstra_statics/dist/assets/{razor.860a0279.js → razor.99323f5f.js} +2 -2
- abstra_statics/dist/assets/{record.e83a2eb2.js → record.a33d29b1.js} +2 -2
- abstra_statics/dist/assets/{redirect.586749f4.js → redirect.42bf4f0a.js} +2 -2
- abstra_statics/dist/assets/{repository.66c7567c.js → repository.5190b94f.js} +2 -2
- abstra_statics/dist/assets/repository.94fb77c7.js +2 -0
- abstra_statics/dist/assets/{repository.3a331f0f.js → repository.c0d70cb2.js} +2 -2
- abstra_statics/dist/assets/router.4168cc71.js +2 -0
- abstra_statics/dist/assets/{router.4dfadf5d.js → router.a8616541.js} +5 -5
- abstra_statics/dist/assets/string.8fab6b53.js +2 -0
- abstra_statics/dist/assets/{tables.1bcb1140.js → tables.2e1c934b.js} +2 -2
- abstra_statics/dist/assets/tasksController.1feffcfe.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.9535bf54.js → toggleHighContrast.6544a728.js} +7 -7
- abstra_statics/dist/assets/{tsMode.c0f9fe1a.js → tsMode.922e04bb.js} +2 -2
- abstra_statics/dist/assets/{typescript.310eae6d.js → typescript.1b4f8286.js} +3 -3
- abstra_statics/dist/assets/url.9e033350.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.276cc8f0.js → useCodebaseEvents.ffe057d1.js} +2 -2
- abstra_statics/dist/assets/useTables.5fffa3f1.js +2 -0
- abstra_statics/dist/assets/userStore.d962fba4.js +2 -0
- abstra_statics/dist/assets/uuid.8581bc03.js +2 -0
- abstra_statics/dist/assets/vue-flow-background.3e9183ec.js +2 -0
- abstra_statics/dist/assets/{vue-flow-core.6cb99d32.js → vue-flow-core.41c647da.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.e3d34d0e.js → vue-quill.esm-bundler.36e79a95.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.fac1e9a9.js → workspaceStore.5a435520.js} +2 -2
- abstra_statics/dist/assets/{xml.04864db4.js → xml.c1692f52.js} +3 -3
- abstra_statics/dist/assets/{yaml.f30375fe.js → yaml.244444c1.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +15 -15
- abstra_statics/dist/player.html +10 -10
- abstra/connectors/banking/__init__.py +0 -0
- abstra/connectors/banking/brazil.py +0 -5
- abstra_internals/services/banking/__init__.py +0 -3
- abstra_internals/services/banking/banking_service.py +0 -104
- abstra_internals/services/banking/client_factory.py +0 -70
- abstra_internals/services/banking/sdk/__init__.py +0 -0
- abstra_internals/services/banking/sdk/generate_totalbank_api.py +0 -383
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js +0 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js +0 -2
- abstra_statics/dist/assets/ApiKeys.3c1e70dc.js +0 -2
- abstra_statics/dist/assets/App.9d8bd2aa.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.a64c7cee.js +0 -2
- abstra_statics/dist/assets/Billing.6b07f282.js +0 -2
- abstra_statics/dist/assets/Builds.ace9e3da.css +0 -1
- abstra_statics/dist/assets/Builds.d8c5c61b.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.9ff269cc.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.33c5380f.css +0 -1
- abstra_statics/dist/assets/ConnectorsView.e670738b.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.3ca66327.js +0 -2
- abstra_statics/dist/assets/ContentLayout.0db8d7fb.js +0 -2
- abstra_statics/dist/assets/CrudView.cc6aeaf0.js +0 -2
- abstra_statics/dist/assets/CrudView.e24590ae.css +0 -1
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js +0 -2
- abstra_statics/dist/assets/EditorLogin.691452b4.js +0 -2
- abstra_statics/dist/assets/EditorsView.fcdf0186.js +0 -2
- abstra_statics/dist/assets/EnvVars.5519b4ce.js +0 -2
- abstra_statics/dist/assets/Error.11fd1f21.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.d0aa47da.js +0 -2
- abstra_statics/dist/assets/Files.6ea18d46.js +0 -2
- abstra_statics/dist/assets/Files.d0e8d2ff.css +0 -1
- abstra_statics/dist/assets/Form.09de384c.js +0 -2
- abstra_statics/dist/assets/FormRunner.15be6fa0.js +0 -2
- abstra_statics/dist/assets/Home.3794e8b4.css +0 -1
- abstra_statics/dist/assets/Home.782c5702.js +0 -2
- abstra_statics/dist/assets/Home.7c495aa9.js +0 -2
- abstra_statics/dist/assets/Live.37415b2d.css +0 -1
- abstra_statics/dist/assets/Live.48c10605.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.82ac3d44.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.66639b08.js +0 -2
- abstra_statics/dist/assets/Login.4a05f5c5.js +0 -2
- abstra_statics/dist/assets/Login.4e852955.js +0 -2
- abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.5161f328.js +0 -2
- abstra_statics/dist/assets/Logo.65e0b37c.js +0 -2
- abstra_statics/dist/assets/Logs.7d1acf32.js +0 -2
- abstra_statics/dist/assets/LogsController.0eb2eb30.js +0 -2
- abstra_statics/dist/assets/LogsController.fb0d96c2.css +0 -1
- abstra_statics/dist/assets/Main.0313f4fc.js +0 -2
- abstra_statics/dist/assets/Navbar.2dc6d02c.css +0 -1
- abstra_statics/dist/assets/Navbar.ef64aa09.js +0 -2
- abstra_statics/dist/assets/NewEditor.b9c410fe.css +0 -1
- abstra_statics/dist/assets/NewEditor.c928dbe9.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.42a7c4f9.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.35931a68.js +0 -2
- abstra_statics/dist/assets/OmniChat.73d9f6bb.js +0 -6
- abstra_statics/dist/assets/OmniChat.a21fec40.css +0 -1
- abstra_statics/dist/assets/OnboardingView.25042384.js +0 -2
- abstra_statics/dist/assets/OnboardingView.3996b08d.css +0 -1
- abstra_statics/dist/assets/Organization.66f64939.js +0 -2
- abstra_statics/dist/assets/Organizations.47868beb.js +0 -2
- abstra_statics/dist/assets/PhBookBookmark.vue.41108214.js +0 -2
- abstra_statics/dist/assets/PhChats.vue.71e5cb89.js +0 -2
- abstra_statics/dist/assets/PhDatabase.vue.a94d95f6.js +0 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.e88f64f1.js +0 -2
- abstra_statics/dist/assets/PhPencilSimple.vue.ec0eebb4.js +0 -2
- abstra_statics/dist/assets/PhRocket.vue.261a42b2.js +0 -2
- abstra_statics/dist/assets/PhUserList.vue.e0b8c21b.js +0 -2
- abstra_statics/dist/assets/PhWebhooksLogo.vue.d164db1e.js +0 -2
- abstra_statics/dist/assets/PlayerConfigProvider.28e29025.js +0 -2
- abstra_statics/dist/assets/PlayerNavbar.aaad1dfd.js +0 -2
- abstra_statics/dist/assets/Project.2de506d7.js +0 -2
- abstra_statics/dist/assets/Project.9c75c141.css +0 -1
- abstra_statics/dist/assets/ProjectLogin.22c8b093.js +0 -2
- abstra_statics/dist/assets/ProjectSettings.d065c292.js +0 -2
- abstra_statics/dist/assets/ProjectsView.16d8ecf6.css +0 -1
- abstra_statics/dist/assets/ProjectsView.cbd118ac.js +0 -2
- abstra_statics/dist/assets/SaveButton.428227de.js +0 -2
- abstra_statics/dist/assets/SaveButton.932ac6b8.css +0 -1
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.6d724b05.js +0 -2
- abstra_statics/dist/assets/Sidebar.41173d8e.js +0 -2
- abstra_statics/dist/assets/Sql.90e6e2ba.css +0 -1
- abstra_statics/dist/assets/Sql.c070dd2c.js +0 -5
- abstra_statics/dist/assets/Steps.dd51a108.js +0 -2
- abstra_statics/dist/assets/TableCard.c9a1cf41.js +0 -2
- abstra_statics/dist/assets/TableEditor.1bc47a95.js +0 -2
- abstra_statics/dist/assets/Tables.eff119eb.js +0 -2
- abstra_statics/dist/assets/TablesDiagram.d633acaf.js +0 -15
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js +0 -2
- abstra_statics/dist/assets/Tasks.c311b05f.js +0 -2
- abstra_statics/dist/assets/View.dd7ba25a.js +0 -2
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.e6563207.js +0 -2
- abstra_statics/dist/assets/Watermark.9c9358e3.js +0 -2
- abstra_statics/dist/assets/WebEditor.83f2a960.js +0 -2
- abstra_statics/dist/assets/WebEditor.c2e271d1.css +0 -1
- abstra_statics/dist/assets/WidgetPreview.7c6a231c.js +0 -2
- abstra_statics/dist/assets/asyncComputed.47aec2b5.js +0 -2
- abstra_statics/dist/assets/constants.d569f33d.js +0 -2
- abstra_statics/dist/assets/contracts.generated.aefe8d0a.js +0 -2
- abstra_statics/dist/assets/datetime.82608dfb.js +0 -2
- abstra_statics/dist/assets/dayjs.7f71c60a.js +0 -2
- abstra_statics/dist/assets/editor.02184ced.js +0 -2
- abstra_statics/dist/assets/editor.main.0f931e87.js +0 -2
- abstra_statics/dist/assets/fetch.1b3d01a0.js +0 -2
- abstra_statics/dist/assets/index.581e2edd.js +0 -2
- abstra_statics/dist/assets/index.966ac1b9.js +0 -2
- abstra_statics/dist/assets/index.c7a996a6.js +0 -2
- abstra_statics/dist/assets/index.d53182ed.js +0 -4
- abstra_statics/dist/assets/member.2260c37e.js +0 -2
- abstra_statics/dist/assets/metadata.0098e20c.js +0 -2
- abstra_statics/dist/assets/omniChatStore.dd7a1c46.js +0 -8
- abstra_statics/dist/assets/omniChatStore.ec95fb81.css +0 -1
- abstra_statics/dist/assets/player.4ab4aed5.js +0 -2
- abstra_statics/dist/assets/polling.b5a32c22.js +0 -2
- abstra_statics/dist/assets/router.06ee2b9d.js +0 -2
- abstra_statics/dist/assets/string.61e11a30.js +0 -2
- abstra_statics/dist/assets/tasksController.f3adf725.js +0 -4
- abstra_statics/dist/assets/url.f5664225.js +0 -2
- abstra_statics/dist/assets/useTables.18fc3efd.js +0 -2
- abstra_statics/dist/assets/userStore.6ab1e5ac.js +0 -2
- abstra_statics/dist/assets/uuid.5b8ba8af.js +0 -2
- abstra_statics/dist/assets/vue-flow-background.af096866.js +0 -2
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/WHEEL +0 -0
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/entry_points.txt +0 -0
- {abstra-3.24.1.dist-info → abstra-3.24.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{_ as mn}from"./vue-flow-background.3e9183ec.js";import{u as De,d as gn,h as pn,_ as vn,i as mt,a as yn,g as pe,e as wn}from"./vue-flow-core.41c647da.js";import{d as qt,eR as _n,eW as Pe,r as Qt,ab as kn,bG as Jt,c as Y,aR as bn,o as G,a as wt,b as zt,ac as ct,u as q,t as xn,h as Mn,aY as Xe,ej as $n,ad as Fe,eh as It,e as Dt,at as Nn,eG as Cn,ed as He,el as En,f as lt,ei as Sn,j as zn,_ as Rn}from"./jwt-decode.esm.c9c37cdc.js";import{d as ve}from"./index.d809956c.js";import{T as Tn}from"./TableCard.8c99a870.js";import{_ as An}from"./TablesTabs.vue_vue_type_script_setup_true_lang.5cc96b0d.js";import{u as Bn}from"./useTables.5fffa3f1.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import"./PhKey.vue.15a9e64e.js";import"./PhPencil.vue.a7219766.js";import"./Card.38a860a4.js";import"./router.a8616541.js";import"./index.da4f9d54.js";import"./tables.2e1c934b.js";import"./record.a33d29b1.js";import"./string.8fab6b53.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]="981cc990-5587-41cf-aade-087274080a3a",t._sentryDebugIdIdentifier="sentry-dbid-981cc990-5587-41cf-aade-087274080a3a")}catch{}})();var In={value:()=>{}};function ue(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Rt(n)}function Rt(t){this._=t}function Dn(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Rt.prototype=ue.prototype={constructor:Rt,on:function(t,e){var n=this._,r=Dn(t+"",n),i,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((i=(t=r[s]).type)&&(i=Pn(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=r[s]).type)n[i]=ye(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ye(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Rt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function Pn(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ye(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=In,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var jt="http://www.w3.org/1999/xhtml";const we={svg:"http://www.w3.org/2000/svg",xhtml:jt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Lt(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),we.hasOwnProperty(e)?{space:we[e],local:t}:t}function Xn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===jt&&e.documentElement.namespaceURI===jt?e.createElement(t):e.createElementNS(n,t)}}function Fn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ye(t){var e=Lt(t);return(e.local?Fn:Xn)(e)}function Hn(){}function le(t){return t==null?Hn:function(){return this.querySelector(t)}}function Yn(t){typeof t!="function"&&(t=le(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=new Array(o),u,l,h=0;h<o;++h)(u=s[h])&&(l=t.call(u,u.__data__,h,s))&&("__data__"in u&&(l.__data__=u.__data__),a[h]=l);return new L(r,this._parents)}function Vn(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function qn(){return[]}function Ve(t){return t==null?qn:function(){return this.querySelectorAll(t)}}function Ln(t){return function(){return Vn(t.apply(this,arguments))}}function On(t){typeof t=="function"?t=Ln(t):t=Ve(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var o=e[s],a=o.length,u,l=0;l<a;++l)(u=o[l])&&(r.push(t.call(u,u.__data__,l,o)),i.push(u));return new L(r,i)}function qe(t){return function(){return this.matches(t)}}function Le(t){return function(e){return e.matches(t)}}var Gn=Array.prototype.find;function Kn(t){return function(){return Gn.call(this.children,t)}}function Wn(){return this.firstElementChild}function Un(t){return this.select(t==null?Wn:Kn(typeof t=="function"?t:Le(t)))}var Zn=Array.prototype.filter;function Qn(){return Array.from(this.children)}function Jn(t){return function(){return Zn.call(this.children,t)}}function jn(t){return this.selectAll(t==null?Qn:Jn(typeof t=="function"?t:Le(t)))}function tr(t){typeof t!="function"&&(t=qe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],u,l=0;l<o;++l)(u=s[l])&&t.call(u,u.__data__,l,s)&&a.push(u);return new L(r,this._parents)}function Oe(t){return new Array(t.length)}function er(){return new L(this._enter||this._groups.map(Oe),this._parents)}function Pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Pt.prototype={constructor:Pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function nr(t){return function(){return t}}function rr(t,e,n,r,i,s){for(var o=0,a,u=e.length,l=s.length;o<l;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):n[o]=new Pt(t,s[o]);for(;o<u;++o)(a=e[o])&&(i[o]=a)}function ir(t,e,n,r,i,s,o){var a,u,l=new Map,h=e.length,f=s.length,p=new Array(h),y;for(a=0;a<h;++a)(u=e[a])&&(p[a]=y=o.call(u,u.__data__,a,e)+"",l.has(y)?i[a]=u:l.set(y,u));for(a=0;a<f;++a)y=o.call(t,s[a],a,s)+"",(u=l.get(y))?(r[a]=u,u.__data__=s[a],l.delete(y)):n[a]=new Pt(t,s[a]);for(a=0;a<h;++a)(u=e[a])&&l.get(p[a])===u&&(i[a]=u)}function or(t){return t.__data__}function sr(t,e){if(!arguments.length)return Array.from(this,or);var n=e?ir:rr,r=this._parents,i=this._groups;typeof t!="function"&&(t=nr(t));for(var s=i.length,o=new Array(s),a=new Array(s),u=new Array(s),l=0;l<s;++l){var h=r[l],f=i[l],p=f.length,y=ar(t.call(h,h&&h.__data__,l,r)),C=y.length,E=a[l]=new Array(C),R=o[l]=new Array(C),k=u[l]=new Array(p);n(h,f,E,R,k,y,e);for(var D=0,z=0,T,M;D<C;++D)if(T=E[D]){for(D>=z&&(z=D+1);!(M=R[z])&&++z<C;);T._next=M||null}}return o=new L(o,r),o._enter=a,o._exit=u,o}function ar(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ur(){return new L(this._exit||this._groups.map(Oe),this._parents)}function lr(t,e,n){var r=this.enter(),i=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function cr(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,o=Math.min(i,s),a=new Array(i),u=0;u<o;++u)for(var l=n[u],h=r[u],f=l.length,p=a[u]=new Array(f),y,C=0;C<f;++C)(y=l[C]||h[C])&&(p[C]=y);for(;u<i;++u)a[u]=n[u];return new L(a,this._parents)}function hr(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,s=r[i],o;--i>=0;)(o=r[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function fr(t){t||(t=dr);function e(f,p){return f&&p?t(f.__data__,p.__data__):!f-!p}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o=n[s],a=o.length,u=i[s]=new Array(a),l,h=0;h<a;++h)(l=o[h])&&(u[h]=l);u.sort(e)}return new L(i,this._parents).order()}function dr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function mr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function gr(){return Array.from(this)}function pr(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null}function vr(){let t=0;for(const e of this)++t;return t}function yr(){return!this.node()}function wr(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],s=0,o=i.length,a;s<o;++s)(a=i[s])&&t.call(a,a.__data__,s,i);return this}function _r(t){return function(){this.removeAttribute(t)}}function kr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function br(t,e){return function(){this.setAttribute(t,e)}}function xr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Mr(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function $r(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Nr(t,e){var n=Lt(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?kr:_r:typeof e=="function"?n.local?$r:Mr:n.local?xr:br)(n,e))}function Ge(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Cr(t){return function(){this.style.removeProperty(t)}}function Er(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Sr(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function zr(t,e,n){return arguments.length>1?this.each((e==null?Cr:typeof e=="function"?Sr:Er)(t,e,n==null?"":n)):ft(this.node(),t)}function ft(t,e){return t.style.getPropertyValue(e)||Ge(t).getComputedStyle(t,null).getPropertyValue(e)}function Rr(t){return function(){delete this[t]}}function Tr(t,e){return function(){this[t]=e}}function Ar(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Br(t,e){return arguments.length>1?this.each((e==null?Rr:typeof e=="function"?Ar:Tr)(t,e)):this.node()[t]}function Ke(t){return t.trim().split(/^|\s+/)}function ce(t){return t.classList||new We(t)}function We(t){this._node=t,this._names=Ke(t.getAttribute("class")||"")}We.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ue(t,e){for(var n=ce(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Ze(t,e){for(var n=ce(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Ir(t){return function(){Ue(this,t)}}function Dr(t){return function(){Ze(this,t)}}function Pr(t,e){return function(){(e.apply(this,arguments)?Ue:Ze)(this,t)}}function Xr(t,e){var n=Ke(t+"");if(arguments.length<2){for(var r=ce(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Pr:e?Ir:Dr)(n,e))}function Fr(){this.textContent=""}function Hr(t){return function(){this.textContent=t}}function Yr(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Vr(t){return arguments.length?this.each(t==null?Fr:(typeof t=="function"?Yr:Hr)(t)):this.node().textContent}function qr(){this.innerHTML=""}function Lr(t){return function(){this.innerHTML=t}}function Or(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Gr(t){return arguments.length?this.each(t==null?qr:(typeof t=="function"?Or:Lr)(t)):this.node().innerHTML}function Kr(){this.nextSibling&&this.parentNode.appendChild(this)}function Wr(){return this.each(Kr)}function Ur(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zr(){return this.each(Ur)}function Qr(t){var e=typeof t=="function"?t:Ye(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Jr(){return null}function jr(t,e){var n=typeof t=="function"?t:Ye(t),r=e==null?Jr:typeof e=="function"?e:le(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ti(){var t=this.parentNode;t&&t.removeChild(this)}function ei(){return this.each(ti)}function ni(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ri(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ii(t){return this.select(t?ri:ni)}function oi(t){return arguments.length?this.property("__data__",t):this.node().__data__}function si(t){return function(e){t.call(this,e,this.__data__)}}function ai(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ui(t){return function(){var e=this.__on;if(!!e){for(var n=0,r=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function li(t,e,n){return function(){var r=this.__on,i,s=si(e);if(r){for(var o=0,a=r.length;o<a;++o)if((i=r[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function ci(t,e,n){var r=ai(t+""),i,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var u=0,l=a.length,h;u<l;++u)for(i=0,h=a[u];i<s;++i)if((o=r[i]).type===h.type&&o.name===h.name)return h.value}return}for(a=e?li:ui,i=0;i<s;++i)this.each(a(r[i],e,n));return this}function Qe(t,e,n){var r=Ge(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function hi(t,e){return function(){return Qe(this,t,e)}}function fi(t,e){return function(){return Qe(this,t,e.apply(this,arguments))}}function di(t,e){return this.each((typeof e=="function"?fi:hi)(t,e))}function*mi(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length,o;i<s;++i)(o=r[i])&&(yield o)}var Je=[null];function L(t,e){this._groups=t,this._parents=e}function Mt(){return new L([[document.documentElement]],Je)}function gi(){return this}L.prototype=Mt.prototype={constructor:L,select:Yn,selectAll:On,selectChild:Un,selectChildren:jn,filter:tr,data:sr,enter:er,exit:ur,join:lr,merge:cr,selection:gi,order:hr,sort:fr,call:mr,nodes:gr,node:pr,size:vr,empty:yr,each:wr,attr:Nr,style:zr,property:Br,classed:Xr,text:Vr,html:Gr,raise:Wr,lower:Zr,append:Qr,insert:jr,remove:ei,clone:ii,datum:oi,on:ci,dispatch:di,[Symbol.iterator]:mi};function ot(t){return typeof t=="string"?new L([[document.querySelector(t)]],[document.documentElement]):new L([[t]],Je)}function pi(t){let e;for(;e=t.sourceEvent;)t=e;return t}function rt(t,e){if(t=pi(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}const te={capture:!0,passive:!1};function ee(t){t.preventDefault(),t.stopImmediatePropagation()}function vi(t){var e=t.document.documentElement,n=ot(t).on("dragstart.drag",ee,te);"onselectstart"in e?n.on("selectstart.drag",ee,te):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function yi(t,e){var n=t.document.documentElement,r=ot(t).on("dragstart.drag",null);e&&(r.on("click.drag",ee,te),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function he(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function je(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function $t(){}var _t=.7,Xt=1/_t,ht="\\s*([+-]?\\d+)\\s*",kt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wi=/^#([0-9a-f]{3,8})$/,_i=new RegExp(`^rgb\\(${ht},${ht},${ht}\\)$`),ki=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),bi=new RegExp(`^rgba\\(${ht},${ht},${ht},${kt}\\)$`),xi=new RegExp(`^rgba\\(${U},${U},${U},${kt}\\)$`),Mi=new RegExp(`^hsl\\(${kt},${U},${U}\\)$`),$i=new RegExp(`^hsla\\(${kt},${U},${U},${kt}\\)$`),_e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};he($t,bt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ke,formatHex:ke,formatHex8:Ni,formatHsl:Ci,formatRgb:be,toString:be});function ke(){return this.rgb().formatHex()}function Ni(){return this.rgb().formatHex8()}function Ci(){return tn(this).formatHsl()}function be(){return this.rgb().formatRgb()}function bt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=wi.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?xe(e):n===3?new V(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Nt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Nt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=_i.exec(t))?new V(e[1],e[2],e[3],1):(e=ki.exec(t))?new V(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=bi.exec(t))?Nt(e[1],e[2],e[3],e[4]):(e=xi.exec(t))?Nt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Mi.exec(t))?Ne(e[1],e[2]/100,e[3]/100,1):(e=$i.exec(t))?Ne(e[1],e[2]/100,e[3]/100,e[4]):_e.hasOwnProperty(t)?xe(_e[t]):t==="transparent"?new V(NaN,NaN,NaN,0):null}function xe(t){return new V(t>>16&255,t>>8&255,t&255,1)}function Nt(t,e,n,r){return r<=0&&(t=e=n=NaN),new V(t,e,n,r)}function Ei(t){return t instanceof $t||(t=bt(t)),t?(t=t.rgb(),new V(t.r,t.g,t.b,t.opacity)):new V}function ne(t,e,n,r){return arguments.length===1?Ei(t):new V(t,e,n,r==null?1:r)}function V(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}he(V,ne,je($t,{brighter(t){return t=t==null?Xt:Math.pow(Xt,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?_t:Math.pow(_t,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new V(at(this.r),at(this.g),at(this.b),Ft(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Me,formatHex:Me,formatHex8:Si,formatRgb:$e,toString:$e}));function Me(){return`#${st(this.r)}${st(this.g)}${st(this.b)}`}function Si(){return`#${st(this.r)}${st(this.g)}${st(this.b)}${st((isNaN(this.opacity)?1:this.opacity)*255)}`}function $e(){const t=Ft(this.opacity);return`${t===1?"rgb(":"rgba("}${at(this.r)}, ${at(this.g)}, ${at(this.b)}${t===1?")":`, ${t})`}`}function Ft(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function at(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function st(t){return t=at(t),(t<16?"0":"")+t.toString(16)}function Ne(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new K(t,e,n,r)}function tn(t){if(t instanceof K)return new K(t.h,t.s,t.l,t.opacity);if(t instanceof $t||(t=bt(t)),!t)return new K;if(t instanceof K)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,u=(s+i)/2;return a?(e===s?o=(n-r)/a+(n<r)*6:n===s?o=(r-e)/a+2:o=(e-n)/a+4,a/=u<.5?s+i:2-s-i,o*=60):a=u>0&&u<1?0:o,new K(o,a,u,t.opacity)}function zi(t,e,n,r){return arguments.length===1?tn(t):new K(t,e,n,r==null?1:r)}function K(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}he(K,zi,je($t,{brighter(t){return t=t==null?Xt:Math.pow(Xt,t),new K(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?_t:Math.pow(_t,t),new K(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new V(Wt(t>=240?t-240:t+120,i,r),Wt(t,i,r),Wt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new K(Ce(this.h),Ct(this.s),Ct(this.l),Ft(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ft(this.opacity);return`${t===1?"hsl(":"hsla("}${Ce(this.h)}, ${Ct(this.s)*100}%, ${Ct(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ce(t){return t=(t||0)%360,t<0?t+360:t}function Ct(t){return Math.max(0,Math.min(1,t||0))}function Wt(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const en=t=>()=>t;function Ri(t,e){return function(n){return t+n*e}}function Ti(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Ai(t){return(t=+t)==1?nn:function(e,n){return n-e?Ti(e,n,t):en(isNaN(e)?n:e)}}function nn(t,e){var n=e-t;return n?Ri(t,n):en(isNaN(t)?e:t)}const Ee=function t(e){var n=Ai(e);function r(i,s){var o=n((i=ne(i)).r,(s=ne(s)).r),a=n(i.g,s.g),u=n(i.b,s.b),l=nn(i.opacity,s.opacity);return function(h){return i.r=o(h),i.g=a(h),i.b=u(h),i.opacity=l(h),i+""}}return r.gamma=t,r}(1);function it(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var re=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ut=new RegExp(re.source,"g");function Bi(t){return function(){return t}}function Ii(t){return function(e){return t(e)+""}}function Di(t,e){var n=re.lastIndex=Ut.lastIndex=0,r,i,s,o=-1,a=[],u=[];for(t=t+"",e=e+"";(r=re.exec(t))&&(i=Ut.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,u.push({i:o,x:it(r,i)})),n=Ut.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?u[0]?Ii(u[0].x):Bi(e):(e=u.length,function(l){for(var h=0,f;h<e;++h)a[(f=u[h]).i]=f.x(l);return a.join("")})}var Se=180/Math.PI,ie={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function rn(t,e,n,r,i,s){var o,a,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*Se,skewX:Math.atan(u)*Se,scaleX:o,scaleY:a}}var Et;function Pi(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ie:rn(e.a,e.b,e.c,e.d,e.e,e.f)}function Xi(t){return t==null||(Et||(Et=document.createElementNS("http://www.w3.org/2000/svg","g")),Et.setAttribute("transform",t),!(t=Et.transform.baseVal.consolidate()))?ie:(t=t.matrix,rn(t.a,t.b,t.c,t.d,t.e,t.f))}function on(t,e,n,r){function i(l){return l.length?l.pop()+" ":""}function s(l,h,f,p,y,C){if(l!==f||h!==p){var E=y.push("translate(",null,e,null,n);C.push({i:E-4,x:it(l,f)},{i:E-2,x:it(h,p)})}else(f||p)&&y.push("translate("+f+e+p+n)}function o(l,h,f,p){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),p.push({i:f.push(i(f)+"rotate(",null,r)-2,x:it(l,h)})):h&&f.push(i(f)+"rotate("+h+r)}function a(l,h,f,p){l!==h?p.push({i:f.push(i(f)+"skewX(",null,r)-2,x:it(l,h)}):h&&f.push(i(f)+"skewX("+h+r)}function u(l,h,f,p,y,C){if(l!==f||h!==p){var E=y.push(i(y)+"scale(",null,",",null,")");C.push({i:E-4,x:it(l,f)},{i:E-2,x:it(h,p)})}else(f!==1||p!==1)&&y.push(i(y)+"scale("+f+","+p+")")}return function(l,h){var f=[],p=[];return l=t(l),h=t(h),s(l.translateX,l.translateY,h.translateX,h.translateY,f,p),o(l.rotate,h.rotate,f,p),a(l.skewX,h.skewX,f,p),u(l.scaleX,l.scaleY,h.scaleX,h.scaleY,f,p),l=h=null,function(y){for(var C=-1,E=p.length,R;++C<E;)f[(R=p[C]).i]=R.x(y);return f.join("")}}}var Fi=on(Pi,"px, ","px)","deg)"),Hi=on(Xi,", ",")",")"),Yi=1e-12;function ze(t){return((t=Math.exp(t))+1/t)/2}function Vi(t){return((t=Math.exp(t))-1/t)/2}function qi(t){return((t=Math.exp(2*t))-1)/(t+1)}const Li=function t(e,n,r){function i(s,o){var a=s[0],u=s[1],l=s[2],h=o[0],f=o[1],p=o[2],y=h-a,C=f-u,E=y*y+C*C,R,k;if(E<Yi)k=Math.log(p/l)/e,R=function(x){return[a+x*y,u+x*C,l*Math.exp(e*x*k)]};else{var D=Math.sqrt(E),z=(p*p-l*l+r*E)/(2*l*n*D),T=(p*p-l*l-r*E)/(2*p*n*D),M=Math.log(Math.sqrt(z*z+1)-z),$=Math.log(Math.sqrt(T*T+1)-T);k=($-M)/e,R=function(x){var b=x*k,A=ze(M),S=l/(n*D)*(A*qi(e*b+M)-Vi(M));return[a+S*y,u+S*C,l*A/ze(e*b+M)]}}return R.duration=k*1e3*e/Math.SQRT2,R}return i.rho=function(s){var o=Math.max(.001,+s),a=o*o,u=a*a;return t(o,a,u)},i}(Math.SQRT2,2,4);var dt=0,vt=0,gt=0,sn=1e3,Ht,yt,Yt=0,ut=0,Ot=0,xt=typeof performance=="object"&&performance.now?performance:Date,an=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fe(){return ut||(an(Oi),ut=xt.now()+Ot)}function Oi(){ut=0}function Vt(){this._call=this._time=this._next=null}Vt.prototype=un.prototype={constructor:Vt,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?fe():+n)+(e==null?0:+e),!this._next&&yt!==this&&(yt?yt._next=this:Ht=this,yt=this),this._call=t,this._time=n,oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,oe())}};function un(t,e,n){var r=new Vt;return r.restart(t,e,n),r}function Gi(){fe(),++dt;for(var t=Ht,e;t;)(e=ut-t._time)>=0&&t._call.call(void 0,e),t=t._next;--dt}function Re(){ut=(Yt=xt.now())+Ot,dt=vt=0;try{Gi()}finally{dt=0,Wi(),ut=0}}function Ki(){var t=xt.now(),e=t-Yt;e>sn&&(Ot-=e,Yt=t)}function Wi(){for(var t,e=Ht,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ht=n);yt=t,oe(r)}function oe(t){if(!dt){vt&&(vt=clearTimeout(vt));var e=t-ut;e>24?(t<1/0&&(vt=setTimeout(Re,t-xt.now()-Ot)),gt&&(gt=clearInterval(gt))):(gt||(Yt=xt.now(),gt=setInterval(Ki,sn)),dt=1,an(Re))}}function Te(t,e,n){var r=new Vt;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Ui=ue("start","end","cancel","interrupt"),Zi=[],ln=0,Ae=1,se=2,Tt=3,Be=4,ae=5,At=6;function Gt(t,e,n,r,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Qi(t,n,{name:e,index:r,group:i,on:Ui,tween:Zi,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:ln})}function de(t,e){var n=W(t,e);if(n.state>ln)throw new Error("too late; already scheduled");return n}function Z(t,e){var n=W(t,e);if(n.state>Tt)throw new Error("too late; already running");return n}function W(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Qi(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=un(s,0,n.time);function s(l){n.state=Ae,n.timer.restart(o,n.delay,n.time),n.delay<=l&&o(l-n.delay)}function o(l){var h,f,p,y;if(n.state!==Ae)return u();for(h in r)if(y=r[h],y.name===n.name){if(y.state===Tt)return Te(o);y.state===Be?(y.state=At,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete r[h]):+h<e&&(y.state=At,y.timer.stop(),y.on.call("cancel",t,t.__data__,y.index,y.group),delete r[h])}if(Te(function(){n.state===Tt&&(n.state=Be,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=se,n.on.call("start",t,t.__data__,n.index,n.group),n.state===se){for(n.state=Tt,i=new Array(p=n.tween.length),h=0,f=-1;h<p;++h)(y=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++f]=y);i.length=f+1}}function a(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=ae,1),f=-1,p=i.length;++f<p;)i[f].call(t,h);n.state===ae&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=At,n.timer.stop(),delete r[e];for(var l in r)return;delete t.__transition}}function Bt(t,e){var n=t.__transition,r,i,s=!0,o;if(!!n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){s=!1;continue}i=r.state>se&&r.state<ae,r.state=At,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}s&&delete t.__transition}}function Ji(t){return this.each(function(){Bt(this,t)})}function ji(t,e){var n,r;return function(){var i=Z(this,t),s=i.tween;if(s!==n){r=n=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function to(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Z(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=a;break}u===l&&i.push(a)}s.tween=i}}function eo(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=W(this.node(),n).tween,i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?ji:to)(n,t,e))}function me(t,e,n){var r=t._id;return t.each(function(){var i=Z(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return W(i,r).value[e]}}function cn(t,e){var n;return(typeof e=="number"?it:e instanceof bt?Ee:(n=bt(e))?(e=n,Ee):Di)(t,e)}function no(t){return function(){this.removeAttribute(t)}}function ro(t){return function(){this.removeAttributeNS(t.space,t.local)}}function io(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===r?s:s=e(r=o,n)}}function oo(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?s:s=e(r=o,n)}}function so(t,e,n){var r,i,s;return function(){var o,a=n(this),u;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),u=a+"",o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a)))}}function ao(t,e,n){var r,i,s;return function(){var o,a=n(this),u;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),u=a+"",o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a)))}}function uo(t,e){var n=Lt(t),r=n==="transform"?Hi:cn;return this.attrTween(t,typeof e=="function"?(n.local?ao:so)(n,r,me(this,"attr."+t,e)):e==null?(n.local?ro:no)(n):(n.local?oo:io)(n,r,e))}function lo(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function co(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function ho(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&co(t,s)),n}return i._value=e,i}function fo(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&lo(t,s)),n}return i._value=e,i}function mo(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Lt(t);return this.tween(n,(r.local?ho:fo)(r,e))}function go(t,e){return function(){de(this,t).delay=+e.apply(this,arguments)}}function po(t,e){return e=+e,function(){de(this,t).delay=e}}function vo(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?go:po)(e,t)):W(this.node(),e).delay}function yo(t,e){return function(){Z(this,t).duration=+e.apply(this,arguments)}}function wo(t,e){return e=+e,function(){Z(this,t).duration=e}}function _o(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yo:wo)(e,t)):W(this.node(),e).duration}function ko(t,e){if(typeof e!="function")throw new Error;return function(){Z(this,t).ease=e}}function bo(t){var e=this._id;return arguments.length?this.each(ko(e,t)):W(this.node(),e).ease}function xo(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Z(this,t).ease=n}}function Mo(t){if(typeof t!="function")throw new Error;return this.each(xo(this._id,t))}function $o(t){typeof t!="function"&&(t=qe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],u,l=0;l<o;++l)(u=s[l])&&t.call(u,u.__data__,l,s)&&a.push(u);return new nt(r,this._parents,this._name,this._id)}function No(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=new Array(r),a=0;a<s;++a)for(var u=e[a],l=n[a],h=u.length,f=o[a]=new Array(h),p,y=0;y<h;++y)(p=u[y]||l[y])&&(f[y]=p);for(;a<r;++a)o[a]=e[a];return new nt(o,this._parents,this._name,this._id)}function Co(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Eo(t,e,n){var r,i,s=Co(e)?de:Z;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}function So(t,e){var n=this._id;return arguments.length<2?W(this.node(),n).on.on(t):this.each(Eo(n,t,e))}function zo(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Ro(){return this.on("end.remove",zo(this._id))}function To(t){var e=this._name,n=this._id;typeof t!="function"&&(t=le(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a=r[o],u=a.length,l=s[o]=new Array(u),h,f,p=0;p<u;++p)(h=a[p])&&(f=t.call(h,h.__data__,p,a))&&("__data__"in h&&(f.__data__=h.__data__),l[p]=f,Gt(l[p],e,n,p,l,W(h,n)));return new nt(s,this._parents,e,n)}function Ao(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ve(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var u=r[a],l=u.length,h,f=0;f<l;++f)if(h=u[f]){for(var p=t.call(h,h.__data__,f,u),y,C=W(h,n),E=0,R=p.length;E<R;++E)(y=p[E])&&Gt(y,e,n,E,p,C);s.push(p),o.push(h)}return new nt(s,o,e,n)}var Bo=Mt.prototype.constructor;function Io(){return new Bo(this._groups,this._parents)}function Do(t,e){var n,r,i;return function(){var s=ft(this,t),o=(this.style.removeProperty(t),ft(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}function hn(t){return function(){this.style.removeProperty(t)}}function Po(t,e,n){var r,i=n+"",s;return function(){var o=ft(this,t);return o===i?null:o===r?s:s=e(r=o,n)}}function Xo(t,e,n){var r,i,s;return function(){var o=ft(this,t),a=n(this),u=a+"";return a==null&&(u=a=(this.style.removeProperty(t),ft(this,t))),o===u?null:o===r&&u===i?s:(i=u,s=e(r=o,a))}}function Fo(t,e){var n,r,i,s="style."+e,o="end."+s,a;return function(){var u=Z(this,t),l=u.on,h=u.value[s]==null?a||(a=hn(e)):void 0;(l!==n||i!==h)&&(r=(n=l).copy()).on(o,i=h),u.on=r}}function Ho(t,e,n){var r=(t+="")=="transform"?Fi:cn;return e==null?this.styleTween(t,Do(t,r)).on("end.style."+t,hn(t)):typeof e=="function"?this.styleTween(t,Xo(t,r,me(this,"style."+t,e))).each(Fo(this._id,t)):this.styleTween(t,Po(t,r,e),n).on("end.style."+t,null)}function Yo(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Vo(t,e,n){var r,i;function s(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Yo(t,o,n)),r}return s._value=e,s}function qo(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Vo(t,e,n==null?"":n))}function Lo(t){return function(){this.textContent=t}}function Oo(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Go(t){return this.tween("text",typeof t=="function"?Oo(me(this,"text",t)):Lo(t==null?"":t+""))}function Ko(t){return function(e){this.textContent=t.call(this,e)}}function Wo(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Ko(i)),e}return r._value=t,r}function Uo(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Wo(t))}function Zo(){for(var t=this._name,e=this._id,n=fn(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,u,l=0;l<a;++l)if(u=o[l]){var h=W(u,e);Gt(u,t,n,l,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new nt(r,this._parents,t,n)}function Qo(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},u={value:function(){--i===0&&s()}};n.each(function(){var l=Z(this,r),h=l.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(u)),l.on=e}),i===0&&s()})}var Jo=0;function nt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function fn(){return++Jo}var tt=Mt.prototype;nt.prototype={constructor:nt,select:To,selectAll:Ao,selectChild:tt.selectChild,selectChildren:tt.selectChildren,filter:$o,merge:No,selection:Io,transition:Zo,call:tt.call,nodes:tt.nodes,node:tt.node,size:tt.size,empty:tt.empty,each:tt.each,on:So,attr:uo,attrTween:mo,style:Ho,styleTween:qo,text:Go,textTween:Uo,remove:Ro,tween:eo,delay:vo,duration:_o,ease:bo,easeVarying:Mo,end:Qo,[Symbol.iterator]:tt[Symbol.iterator]};function jo(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ts={time:null,delay:0,duration:250,ease:jo};function es(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function ns(t){var e,n;t instanceof nt?(e=t._id,t=t._name):(e=fn(),(n=ts).time=fe(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,u,l=0;l<a;++l)(u=o[l])&&Gt(u,t,e,l,o,n||es(u,e));return new nt(r,this._parents,t,e)}Mt.prototype.interrupt=Ji;Mt.prototype.transition=ns;const St=t=>()=>t;function rs(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function et(t,e,n){this.k=t,this.x=e,this.y=n}et.prototype={constructor:et,scale:function(t){return t===1?this:new et(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new et(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ge=new et(1,0,0);et.prototype;function Zt(t){t.stopImmediatePropagation()}function pt(t){t.preventDefault(),t.stopImmediatePropagation()}function is(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function os(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Ie(){return this.__zoom||ge}function ss(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function as(){return navigator.maxTouchPoints||"ontouchstart"in this}function us(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function ls(){var t=is,e=os,n=us,r=ss,i=as,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],a=250,u=Li,l=ue("start","zoom","end"),h,f,p,y=500,C=150,E=0,R=10;function k(c){c.property("__zoom",Ie).on("wheel.zoom",b,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",S).filter(i).on("touchstart.zoom",Q).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(c,w,d,_){var g=c.selection?c.selection():c;g.property("__zoom",Ie),c!==g?M(c,w,d,_):g.interrupt().each(function(){$(this,arguments).event(_).start().zoom(null,typeof w=="function"?w.apply(this,arguments):w).end()})},k.scaleBy=function(c,w,d,_){k.scaleTo(c,function(){var g=this.__zoom.k,v=typeof w=="function"?w.apply(this,arguments):w;return g*v},d,_)},k.scaleTo=function(c,w,d,_){k.transform(c,function(){var g=e.apply(this,arguments),v=this.__zoom,m=d==null?T(g):typeof d=="function"?d.apply(this,arguments):d,N=v.invert(m),B=typeof w=="function"?w.apply(this,arguments):w;return n(z(D(v,B),m,N),g,o)},d,_)},k.translateBy=function(c,w,d,_){k.transform(c,function(){return n(this.__zoom.translate(typeof w=="function"?w.apply(this,arguments):w,typeof d=="function"?d.apply(this,arguments):d),e.apply(this,arguments),o)},null,_)},k.translateTo=function(c,w,d,_,g){k.transform(c,function(){var v=e.apply(this,arguments),m=this.__zoom,N=_==null?T(v):typeof _=="function"?_.apply(this,arguments):_;return n(ge.translate(N[0],N[1]).scale(m.k).translate(typeof w=="function"?-w.apply(this,arguments):-w,typeof d=="function"?-d.apply(this,arguments):-d),v,o)},_,g)};function D(c,w){return w=Math.max(s[0],Math.min(s[1],w)),w===c.k?c:new et(w,c.x,c.y)}function z(c,w,d){var _=w[0]-d[0]*c.k,g=w[1]-d[1]*c.k;return _===c.x&&g===c.y?c:new et(c.k,_,g)}function T(c){return[(+c[0][0]+ +c[1][0])/2,(+c[0][1]+ +c[1][1])/2]}function M(c,w,d,_){c.on("start.zoom",function(){$(this,arguments).event(_).start()}).on("interrupt.zoom end.zoom",function(){$(this,arguments).event(_).end()}).tween("zoom",function(){var g=this,v=arguments,m=$(g,v).event(_),N=e.apply(g,v),B=d==null?T(N):typeof d=="function"?d.apply(g,v):d,P=Math.max(N[1][0]-N[0][0],N[1][1]-N[0][1]),I=g.__zoom,X=typeof w=="function"?w.apply(g,v):w,H=u(I.invert(B).concat(P/I.k),X.invert(B).concat(P/X.k));return function(F){if(F===1)F=X;else{var O=H(F),Kt=P/O[2];F=new et(Kt,B[0]-O[0]*Kt,B[1]-O[1]*Kt)}m.zoom(null,F)}})}function $(c,w,d){return!d&&c.__zooming||new x(c,w)}function x(c,w){this.that=c,this.args=w,this.active=0,this.sourceEvent=null,this.extent=e.apply(c,w),this.taps=0}x.prototype={event:function(c){return c&&(this.sourceEvent=c),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(c,w){return this.mouse&&c!=="mouse"&&(this.mouse[1]=w.invert(this.mouse[0])),this.touch0&&c!=="touch"&&(this.touch0[1]=w.invert(this.touch0[0])),this.touch1&&c!=="touch"&&(this.touch1[1]=w.invert(this.touch1[0])),this.that.__zoom=w,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(c){var w=ot(this.that).datum();l.call(c,this.that,new rs(c,{sourceEvent:this.sourceEvent,target:k,type:c,transform:this.that.__zoom,dispatch:l}),w)}};function b(c,...w){if(!t.apply(this,arguments))return;var d=$(this,w).event(c),_=this.__zoom,g=Math.max(s[0],Math.min(s[1],_.k*Math.pow(2,r.apply(this,arguments)))),v=rt(c);if(d.wheel)(d.mouse[0][0]!==v[0]||d.mouse[0][1]!==v[1])&&(d.mouse[1]=_.invert(d.mouse[0]=v)),clearTimeout(d.wheel);else{if(_.k===g)return;d.mouse=[v,_.invert(v)],Bt(this),d.start()}pt(c),d.wheel=setTimeout(m,C),d.zoom("mouse",n(z(D(_,g),d.mouse[0],d.mouse[1]),d.extent,o));function m(){d.wheel=null,d.end()}}function A(c,...w){if(p||!t.apply(this,arguments))return;var d=c.currentTarget,_=$(this,w,!0).event(c),g=ot(c.view).on("mousemove.zoom",B,!0).on("mouseup.zoom",P,!0),v=rt(c,d),m=c.clientX,N=c.clientY;vi(c.view),Zt(c),_.mouse=[v,this.__zoom.invert(v)],Bt(this),_.start();function B(I){if(pt(I),!_.moved){var X=I.clientX-m,H=I.clientY-N;_.moved=X*X+H*H>E}_.event(I).zoom("mouse",n(z(_.that.__zoom,_.mouse[0]=rt(I,d),_.mouse[1]),_.extent,o))}function P(I){g.on("mousemove.zoom mouseup.zoom",null),yi(I.view,_.moved),pt(I),_.event(I).end()}}function S(c,...w){if(!!t.apply(this,arguments)){var d=this.__zoom,_=rt(c.changedTouches?c.changedTouches[0]:c,this),g=d.invert(_),v=d.k*(c.shiftKey?.5:2),m=n(z(D(d,v),_,g),e.apply(this,w),o);pt(c),a>0?ot(this).transition().duration(a).call(M,m,_,c):ot(this).call(k.transform,m,_,c)}}function Q(c,...w){if(!!t.apply(this,arguments)){var d=c.touches,_=d.length,g=$(this,w,c.changedTouches.length===_).event(c),v,m,N,B;for(Zt(c),m=0;m<_;++m)N=d[m],B=rt(N,this),B=[B,this.__zoom.invert(B),N.identifier],g.touch0?!g.touch1&&g.touch0[2]!==B[2]&&(g.touch1=B,g.taps=0):(g.touch0=B,v=!0,g.taps=1+!!h);h&&(h=clearTimeout(h)),v&&(g.taps<2&&(f=B[0],h=setTimeout(function(){h=null},y)),Bt(this),g.start())}}function J(c,...w){if(!!this.__zooming){var d=$(this,w).event(c),_=c.changedTouches,g=_.length,v,m,N,B;for(pt(c),v=0;v<g;++v)m=_[v],N=rt(m,this),d.touch0&&d.touch0[2]===m.identifier?d.touch0[0]=N:d.touch1&&d.touch1[2]===m.identifier&&(d.touch1[0]=N);if(m=d.that.__zoom,d.touch1){var P=d.touch0[0],I=d.touch0[1],X=d.touch1[0],H=d.touch1[1],F=(F=X[0]-P[0])*F+(F=X[1]-P[1])*F,O=(O=H[0]-I[0])*O+(O=H[1]-I[1])*O;m=D(m,Math.sqrt(F/O)),N=[(P[0]+X[0])/2,(P[1]+X[1])/2],B=[(I[0]+H[0])/2,(I[1]+H[1])/2]}else if(d.touch0)N=d.touch0[0],B=d.touch0[1];else return;d.zoom("touch",n(z(m,N,B),d.extent,o))}}function j(c,...w){if(!!this.__zooming){var d=$(this,w).event(c),_=c.changedTouches,g=_.length,v,m;for(Zt(c),p&&clearTimeout(p),p=setTimeout(function(){p=null},y),v=0;v<g;++v)m=_[v],d.touch0&&d.touch0[2]===m.identifier?delete d.touch0:d.touch1&&d.touch1[2]===m.identifier&&delete d.touch1;if(d.touch1&&!d.touch0&&(d.touch0=d.touch1,delete d.touch1),d.touch0)d.touch0[1]=this.__zoom.invert(d.touch0[0]);else if(d.end(),d.taps===2&&(m=rt(m,this),Math.hypot(f[0]-m[0],f[1]-m[1])<R)){var N=ot(this).on("dblclick.zoom");N&&N.apply(this,arguments)}}}return k.wheelDelta=function(c){return arguments.length?(r=typeof c=="function"?c:St(+c),k):r},k.filter=function(c){return arguments.length?(t=typeof c=="function"?c:St(!!c),k):t},k.touchable=function(c){return arguments.length?(i=typeof c=="function"?c:St(!!c),k):i},k.extent=function(c){return arguments.length?(e=typeof c=="function"?c:St([[+c[0][0],+c[0][1]],[+c[1][0],+c[1][1]]]),k):e},k.scaleExtent=function(c){return arguments.length?(s[0]=+c[0],s[1]=+c[1],k):[s[0],s[1]]},k.translateExtent=function(c){return arguments.length?(o[0][0]=+c[0][0],o[1][0]=+c[1][0],o[0][1]=+c[0][1],o[1][1]=+c[1][1],k):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},k.constrain=function(c){return arguments.length?(n=c,k):n},k.duration=function(c){return arguments.length?(a=+c,k):a},k.interpolate=function(c){return arguments.length?(u=c,k):u},k.on=function(){var c=l.on.apply(l,arguments);return c===l?k:c},k.clickDistance=function(c){return arguments.length?(E=(c=+c)*c,k):Math.sqrt(E)},k.tapDistance=function(c){return arguments.length?(R=+c,k):R},k}const dn=Symbol("MiniMapSlots"),cs=["id","x","y","rx","ry","width","height","fill","stroke","stroke-width","shape-rendering"],hs={name:"MiniMapNode",compatConfig:{MODE:3}},fs=qt({...hs,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{}},emits:["click","dblclick","mouseenter","mousemove","mouseleave"],setup(t,{emit:e}){const n=t,r=Nn(dn),i=Pe(),s=Jt(()=>{var f;return(f=i.style)!=null?f:{}});function o(f){e("click",f)}function a(f){e("dblclick",f)}function u(f){e("mouseenter",f)}function l(f){e("mousemove",f)}function h(f){e("mouseleave",f)}return(f,p)=>q(r)[`node-${n.type}`]?(G(),wt(En(q(r)[`node-${n.type}`]),Cn(He({key:0},n)),null,16)):(G(),ct("rect",{key:1,id:f.id,class:It(["vue-flow__minimap-node",{selected:f.selected,dragging:f.dragging}]),x:f.position.x,y:f.position.y,rx:f.borderRadius,ry:f.borderRadius,width:f.dimensions.width,height:f.dimensions.height,fill:f.color||s.value.background||s.value.backgroundColor,stroke:f.strokeColor,"stroke-width":f.strokeWidth,"shape-rendering":f.shapeRendering,onClick:o,onDblclick:a,onMouseenter:u,onMousemove:l,onMouseleave:h},null,42,cs))}}),ds=["width","height","viewBox","aria-labelledby"],ms=["id"],gs=["d","fill","stroke","stroke-width"],ps={name:"MiniMap",compatConfig:{MODE:3}},vs=qt({...ps,props:{nodeColor:{type:[String,Function],default:"#e2e2e2"},nodeStrokeColor:{type:[String,Function],default:"transparent"},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:"rgb(240, 240, 240, 0.6)"},maskStrokeColor:{default:"none"},maskStrokeWidth:{default:1},position:{default:"bottom-right"},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:"Vue Flow mini map"},inversePan:{type:Boolean,default:!1},zoomStep:{default:10},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:["click","nodeClick","nodeDblclick","nodeMouseenter","nodeMousemove","nodeMouseleave"],setup(t,{emit:e}){const n=_n(),r=Pe(),i=200,s=150,{id:o,edges:a,viewport:u,translateExtent:l,dimensions:h,emits:f,d3Selection:p,d3Zoom:y,getNodesInitialized:C}=De(),E=Qt();kn(dn,n);const R=Jt(()=>{var v,m;var g;return(m=(v=t.width)!=null?v:(g=r.style)==null?void 0:g.width)!=null?m:i}),k=Jt(()=>{var v,m;var g;return(m=(v=t.height)!=null?v:(g=r.style)==null?void 0:g.height)!=null?m:s}),D=typeof window>"u"||!!window.chrome?"crispEdges":"geometricPrecision",z=Y(()=>typeof t.nodeColor=="string"?()=>t.nodeColor:t.nodeColor),T=Y(()=>typeof t.nodeStrokeColor=="string"?()=>t.nodeStrokeColor:t.nodeStrokeColor),M=Y(()=>typeof t.nodeClassName=="string"?()=>t.nodeClassName:typeof t.nodeClassName=="function"?t.nodeClassName:()=>""),$=Y(()=>gn(C.value)),x=Y(()=>({x:-u.value.x/u.value.zoom,y:-u.value.y/u.value.zoom,width:h.value.width/u.value.zoom,height:h.value.height/u.value.zoom})),b=Y(()=>C.value&&C.value.length?pn($.value,x.value):x.value),A=Y(()=>{const g=b.value.width/R.value,v=b.value.height/k.value;return Math.max(g,v)}),S=Y(()=>{const g=A.value*R.value,v=A.value*k.value,m=t.offsetScale*A.value;return{offset:m,x:b.value.x-(g-b.value.width)/2-m,y:b.value.y-(v-b.value.height)/2-m,width:g+m*2,height:v+m*2}}),Q=Y(()=>!S.value.x||!S.value.y?"":`
|
|
2
|
+
M${S.value.x-S.value.offset},${S.value.y-S.value.offset}
|
|
3
|
+
h${S.value.width+S.value.offset*2}
|
|
4
|
+
v${S.value.height+S.value.offset*2}
|
|
5
|
+
h${-S.value.width-S.value.offset*2}z
|
|
6
|
+
M${x.value.x+t.maskBorderRadius},${x.value.y}
|
|
7
|
+
h${x.value.width-2*t.maskBorderRadius}
|
|
8
|
+
a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 ${t.maskBorderRadius},${t.maskBorderRadius}
|
|
9
|
+
v${x.value.height-2*t.maskBorderRadius}
|
|
10
|
+
a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 -${t.maskBorderRadius},${t.maskBorderRadius}
|
|
11
|
+
h${-(x.value.width-2*t.maskBorderRadius)}
|
|
12
|
+
a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 -${t.maskBorderRadius},-${t.maskBorderRadius}
|
|
13
|
+
v${-(x.value.height-2*t.maskBorderRadius)}
|
|
14
|
+
a${t.maskBorderRadius},${t.maskBorderRadius} 0 0 1 ${t.maskBorderRadius},-${t.maskBorderRadius}z`);bn(g=>{if(E.value){const v=ot(E.value),m=P=>{if(P.sourceEvent.type!=="wheel"||!p.value||!y.value)return;const I=-P.sourceEvent.deltaY*(P.sourceEvent.deltaMode===1?.05:P.sourceEvent.deltaMode?1:.002)*t.zoomStep,X=u.value.zoom*2**I;y.value.scaleTo(p.value,X)},N=P=>{if(P.sourceEvent.type!=="mousemove"||!p.value||!y.value)return;const I=A.value*Math.max(1,u.value.zoom)*(t.inversePan?-1:1),X={x:u.value.x-P.sourceEvent.movementX*I,y:u.value.y-P.sourceEvent.movementY*I},H=[[0,0],[h.value.width,h.value.height]],F=ge.translate(X.x,X.y).scale(u.value.zoom),O=y.value.constrain()(F,H,l.value);y.value.transform(p.value,O)},B=ls().on("zoom",t.pannable?N:()=>{}).on("zoom.wheel",t.zoomable?m:()=>{});v.call(B),g(()=>{v.on("zoom",null)})}},{flush:"post"});function J(g){const[v,m]=rt(g);e("click",{event:g,position:{x:v,y:m}})}function j(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeClick(m),e("nodeClick",m)}function c(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeDoubleClick(m),e("nodeDblclick",m)}function w(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseEnter(m),e("nodeMouseenter",m)}function d(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseMove(m),e("nodeMousemove",m)}function _(g,v){const m={event:g,node:v,connectedEdges:mt([v],a.value)};f.miniMapNodeMouseLeave(m),e("nodeMouseleave",m)}return(g,v)=>(G(),wt(q(vn),{position:g.position,class:It(["vue-flow__minimap",{pannable:g.pannable,zoomable:g.zoomable}])},{default:zt(()=>[(G(),ct("svg",{ref_key:"el",ref:E,width:R.value,height:k.value,viewBox:[S.value.x,S.value.y,S.value.width,S.value.height].join(" "),role:"img","aria-labelledby":`vue-flow__minimap-${q(o)}`,onClick:J},[g.ariaLabel?(G(),ct("title",{key:0,id:`vue-flow__minimap-${q(o)}`},xn(g.ariaLabel),9,ms)):Mn("",!0),(G(!0),ct(Xe,null,$n(q(C),m=>(G(),wt(fs,{id:m.id,key:m.id,position:m.computedPosition,dimensions:m.dimensions,selected:m.selected,dragging:m.dragging,style:Fe(m.style),class:It(M.value(m)),color:z.value(m),"border-radius":g.nodeBorderRadius,"stroke-color":T.value(m),"stroke-width":g.nodeStrokeWidth,"shape-rendering":q(D),type:m.type,onClick:N=>j(N,m),onDblclick:N=>c(N,m),onMouseenter:N=>w(N,m),onMousemove:N=>d(N,m),onMouseleave:N=>_(N,m)},null,8,["id","position","dimensions","selected","dragging","style","class","color","border-radius","stroke-color","stroke-width","shape-rendering","type","onClick","onDblclick","onMouseenter","onMousemove","onMouseleave"]))),128)),Dt("path",{class:"vue-flow__minimap-mask",d:Q.value,fill:g.maskColor,stroke:g.maskStrokeColor,"stroke-width":g.maskStrokeWidth,"fill-rule":"evenodd"},null,8,gs)],8,ds))]),_:1},8,["position","class"]))}}),ys=["d"],ws=qt({__name:"TableEdge",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:{},isHovered:{type:Boolean}},emits:["mouseenter","mouseleave","click"],setup(t,{emit:e}){const n=t,r=Y(()=>({type:"arrowclosed",width:20,height:20,color:n.isHovered?"#1890ff":"#b1b1b7"})),i=Y(()=>({stroke:n.isHovered?"#1890ff":"#b1b1b7",strokeWidth:n.isHovered?3:2,transition:"all 0.2s ease"}));function s(a,u,l,h,f,p,y,C){const E=a+l/2,R=u+h/2,k=f+y/2,D=p+C/2,z=k-E,T=D-R;let M=E,$=R;Math.abs(z)>Math.abs(T)?z>0?(M=a+l,$=R+T/z*(l/2)):(M=a,$=R+T/z*(-l/2)):T>0?($=u+h,M=E+z/T*(h/2)):($=u,M=E+z/T*(-h/2));let x=k,b=D;return Math.abs(z)>Math.abs(T)?z>0?(x=f,b=D-T/z*(y/2)):(x=f+y,b=D-T/z*(-y/2)):T>0?(b=p,x=k-z/T*(C/2)):(b=p+C,x=k-z/T*(-C/2)),{sourceX:M,sourceY:$,targetX:x,targetY:b}}const o=Y(()=>{const a=n.sourceNode,u=n.targetNode;if(!a||!u)return pe({sourceX:0,sourceY:0,targetX:0,targetY:0});const l=s(a.computedPosition.x,a.computedPosition.y,a.dimensions.width,a.dimensions.height,u.computedPosition.x,u.computedPosition.y,u.dimensions.width,u.dimensions.height);return pe(l)});return(a,u)=>(G(),ct("g",{style:{cursor:"pointer"},onMouseenter:u[0]||(u[0]=l=>e("mouseenter")),onMouseleave:u[1]||(u[1]=l=>e("mouseleave")),onClick:u[2]||(u[2]=l=>e("click"))},[lt(q(yn),{path:o.value[0],"marker-end":r.value,style:Fe(i.value)},null,8,["path","marker-end","style"]),Dt("path",{d:o.value[0],fill:"none",stroke:"transparent","stroke-width":"20",class:"hover-target"},null,8,ys)],32))}}),_s={class:"flow-container",style:{height:"calc(100vh - 160px)",width:"100%"}},ks={class:"diagram-table-card"},bs=qt({__name:"TablesDiagram",setup(t){const e=(M,$)=>{const x=new ve.graphlib.Graph;return x.setGraph({rankdir:"TD",ranksep:150,nodesep:100,edgesep:30,ranker:"network-simplex",align:void 0}),x.setDefaultEdgeLabel(()=>({})),M.forEach(b=>{x.setNode(b.id,{width:300,height:320})}),$.forEach(b=>{x.setEdge(b.source,b.target)}),ve.layout(x),M.map(b=>({...b,position:{x:x.node(b.id).x,y:x.node(b.id).y}}))},r=Sn().params.projectId,{tables:i,loading:s}=Bn(r),o=Y(()=>{var M,$;return($=(M=i.value)==null?void 0:M.flatMap(x=>x.getColumns().filter(b=>b.foreignKey).map(b=>{const A=i.value.find(S=>S.getColumn(b.foreignKey.columnId));return{id:`${x.id}:${b.id}:${b.foreignKey.columnId}`,source:x.id,target:A.id,data:{sourceColumnId:b.id,targetColumnId:b.foreignKey.columnId}}})))!=null?$:[]}),a=Y(()=>s.value?[]:e(i.value.map(M=>({id:M.id,type:"table",data:M,position:{x:0,y:0}})),o.value)),u=Qt(null),l=M=>{u.value=M},h=M=>{var b,A;if(!u.value)return[];const $=o.value.find(S=>S.id===u.value);if(!$)return[];const x=[];return $.source===M&&((b=$.data)==null?void 0:b.sourceColumnId)&&x.push($.data.sourceColumnId),$.target===M&&((A=$.data)==null?void 0:A.targetColumnId)&&x.push($.data.targetColumnId),x},f=M=>{if(!u.value)return!1;const $=o.value.find(x=>x.id===u.value);return $?$.source===M||$.target===M:!1},p=M=>{var Q,J,j,c;const x=z.value.find(w=>w.id===M);if(!x)return;const b=(J=(Q=x.computedPosition)==null?void 0:Q.x)!=null?J:x.position.x,A=(c=(j=x.computedPosition)==null?void 0:j.y)!=null?c:x.position.y,S=200;D({x:b-S,y:A-S,width:400+S*2,height:420+S*2},{duration:800,padding:.1})},y=M=>{var v,m,N,B,P,I,X,H;const $=o.value.find(F=>F.id===M);if(!$)return;const x=z.value,b=x.find(F=>F.id===$.source),A=x.find(F=>F.id===$.target);if(!b||!A)return;const S=(m=(v=b.computedPosition)==null?void 0:v.x)!=null?m:b.position.x,Q=(B=(N=b.computedPosition)==null?void 0:N.y)!=null?B:b.position.y,J=(I=(P=A.computedPosition)==null?void 0:P.x)!=null?I:A.position.x,j=(H=(X=A.computedPosition)==null?void 0:X.y)!=null?H:A.position.y,c=Math.min(S,J),w=Math.min(Q,j),d=Math.max(S+300,J+300),_=Math.max(Q+320,j+320),g=50;D({x:c-g,y:w-g,width:d-c+g*2,height:_-w+g*2},{duration:800,padding:.1})},{onInit:C,onNodeDragStop:E,onConnect:R,addEdges:k,fitBounds:D,getNodes:z}=De(),T=Qt(!1);return C(M=>{M.fitView()}),E(({event:M,nodes:$,node:x})=>{console.log("Node Drag Stop",{event:M,nodes:$,node:x})}),R(M=>{k(M)}),(M,$)=>{const x=zn("AntSpin");return G(),ct(Xe,null,[lt(An),Dt("div",_s,[q(s)?(G(),wt(x,{key:0,style:{width:"100%"}})):(G(),wt(q(wn),{key:1,nodes:a.value,edges:o.value,class:It([{dark:T.value},"basic-flow"]),"default-viewport":{zoom:1.5},"fit-view-on-init":"","min-zoom":.01,"max-zoom":4,"pan-on-scroll":""},{"node-table":zt(b=>[Dt("div",ks,[lt(Tn,{table:b.data,"project-id":q(r),"show-handles":!1,"highlighted-columns":h(b.data.id),"is-highlighted":f(b.data.id),onDblclick:A=>p(b.data.id)},null,8,["table","project-id","highlighted-columns","is-highlighted","onDblclick"])])]),"edge-default":zt(b=>[lt(ws,He(b,{"is-hovered":u.value===b.id,onMouseenter:A=>l(b.id),onMouseleave:$[0]||($[0]=A=>l(null)),onClick:A=>y(b.id)}),null,16,["is-hovered","onMouseenter","onClick"])]),default:zt(()=>[lt(q(mn),{"pattern-color":"#aaa",gap:16}),lt(q(vs),{pannable:""})]),_:1},8,["nodes","edges","class"]))])],64)}}});const Fs=Rn(bs,[["__scopeId","data-v-4b7d90f2"]]);export{Fs as default};
|
|
15
|
+
//# sourceMappingURL=TablesDiagram.8e6d1e89.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as _,ec as f,ei as m,i as n,o as d,a as p,b as i,ac as g,ej as y,f as v,e as k,t as w,u as r,aY as I}from"./jwt-decode.esm.c9c37cdc.js";import{A as T,T as D}from"./Card.38a860a4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f8d42259-8282-46a5-ab18-9e67efd248bd",e._sentryDebugIdIdentifier="sentry-dbid-f8d42259-8282-46a5-ab18-9e67efd248bd")}catch{}})();const x=_({__name:"TablesTabs",setup(e){const a=f(),t=m(),u=String(t.name),b=t.params.projectId,l=[{label:n.translate("i18n_tablestabs_tables_list"),value:"tables"},{label:n.translate("i18n_tablestabs_diagram_view"),value:"tables-diagram"},{label:n.translate("i18n_tablestabs_run_sql"),value:"sql"}],c=o=>{a.push({name:String(o),params:{projectId:b}})};return(o,h)=>(d(),p(r(D),{"active-key":r(u),options:l,"onUpdate:activeKey":c},{default:i(()=>[(d(),g(I,null,y(l,s=>v(r(T),{key:s.value,name:s.value},{tab:i(()=>[k("span",null,w(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{x as _};
|
|
2
|
+
//# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.5cc96b0d.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{f as s,ee as J,d as L,c as N,U as H,R as Y,ac as U,b as n,u as t,aY as E,o as p,cE as C,i as c,aI as P,cD as G,a as g,df as D,g as y,t as f,d9 as $,h as j,dj as k,el as Q,dd as W,d6 as X,eq as Z,S as K,d0 as tt,cM as et,ei as at,A as nt}from"./jwt-decode.esm.c9c37cdc.js";import{_ as lt}from"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import{I as st}from"./PhCopy.vue.29934bc2.js";import{T as rt}from"./tasksController.1feffcfe.js";import{s as ot}from"./metadata.e627ddda.js";import{t as it}from"./ant-design.4efc9ccd.js";import{R as ut}from"./dayjs.304f38f8.js";import{g as R,a as A}from"./router.a8616541.js";import{R as dt}from"./repository.94fb77c7.js";import{a as ct,B as pt}from"./build.a8637e29.js";import{a as gt}from"./project.9a068e8d.js";import"./tables.2e1c934b.js";import{a as ft}from"./asyncComputed.7bc1692e.js";import"./contracts.generated.8ad36e63.js";import"./record.a33d29b1.js";import"./linters.7fec18d9.js";import"./polling.4db5ee9a.js";import"./PhWebhooksLogo.vue.e4752384.js";import"./index.da4f9d54.js";import"./string.8fab6b53.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[i]="6663e451-e936-4136-a137-d26e35fcdb94",d._sentryDebugIdIdentifier="sentry-dbid-6663e451-e936-4136-a137-d26e35fcdb94")}catch{}})();var mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const _t=mt;function B(d){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?Object(arguments[i]):{},b=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(o).filter(function(v){return Object.getOwnPropertyDescriptor(o,v).enumerable}))),b.forEach(function(v){yt(d,v,o[v])})}return d}function yt(d,i,o){return i in d?Object.defineProperty(d,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):d[i]=o,d}var z=function(i,o){var b=B({},i,o.attrs);return s(J,B({},b,{icon:_t}),null)};z.displayName="SyncOutlined";z.inheritAttrs=!1;const bt=z,vt=L({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean},stageId:{},status:{}},setup(d,{expose:i}){const o=d,{setup:b,tearDown:v,state:u,getColumns:T,fetchTasks:I,clearAllTasks:w}=rt({api:o.api,poll:!0,stages:o.stages,stageId:o.stageId,status:o.status}),S=e=>{var a,m;if(!((a=e.completed)!=null&&a.at)||!((m=e.created)!=null&&m.at))return null;const l=new Date(e.created.at).getTime(),r=new Date(e.completed.at).getTime();return Math.round((r-l)/1e3)},h=e=>{var a;if(!((a=e.created)!=null&&a.at))return null;const l=new Date(e.created.at).getTime(),r=Date.now();return Math.round((r-l)/1e3)},x=e=>{if(e<60)return`${e}s`;const l=Math.floor(e/60);if(l<60){const _=e%60;return _>0?`${l}m ${_}s`:`${l}m`}const r=Math.floor(l/60);if(r<24){const _=l%60;return _>0?`${r}h ${_}m`:`${r}h`}const a=Math.floor(r/24),m=r%24;return m>0?`${a}d ${m}h`:`${a}d`},O=N(()=>o.stages?u.tasks.map(e=>{var r,a,m;const l=(r=o.stages)==null?void 0:r.find(_=>_.id===e.targetStageId);return l?{...e,targetStageTitle:l.stageTitle,targetStageType:l.stageType,completedAt:(m=e.completed)!=null&&m.at?new Date(e.completed.at).toLocaleString():"Not completed",createdAt:new Date(e.created.at).toLocaleString(),deleted:!1,duration:S(e),pendingDuration:h(e)}:{...e,targetStageTitle:null,targetStageType:null,completedAt:(a=e.completed)!=null&&a.at?new Date(e.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(e.created.at).toLocaleString(),deleted:!0,duration:S(e),pendingDuration:h(e)}}):u.tasks.map(e=>{var l;return{...e,deleted:!1,completedAt:(l=e.completed)!=null&&l.at?new Date(e.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(e.created.at).toLocaleString(),duration:S(e),pendingDuration:h(e)}})),F=(e,l,r)=>{var _,M;const a=(_=e.current)!=null?_:1,m=(M=e.pageSize)!=null?M:10;u.pagination.currentIndex=a-1,u.pagination.pageSize=m,I()},V=(e,l)=>`/_editor/${e}/${l}`,q=e=>{typeof e=="object"?navigator.clipboard.writeText(JSON.stringify(e)):navigator.clipboard.writeText(String(e)),et.success({content:c.translate("i18n_tasksview_copied_to_clipboard")})};return i({clearAllTasks:w}),H(()=>b()),Y(()=>v()),(e,l)=>(p(),U(E,null,[s(t(G),{layout:"vertical"},{default:n(()=>[s(t(R),{gutter:10},{default:n(()=>[s(t(A),{span:10},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_stage_label")},{default:n(()=>[s(t(P),{value:t(u).filters.stage,"onUpdate:value":l[0]||(l[0]=r=>t(u).filters.stage=r),options:t(u).filterOptions.stages,placeholder:t(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(t(A),{span:6},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_status_label")},{default:n(()=>[s(t(P),{value:t(u).filters.status,"onUpdate:value":l[1]||(l[1]=r=>t(u).filters.status=r),options:t(u).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:t(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(t(A),{span:8},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_created_at_date_label")},{default:n(()=>[s(t(ut),{value:t(u).filters.dateRange,"onUpdate:value":l[2]||(l[2]=r=>t(u).filters.dateRange=r),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),s(t(tt),{columns:t(T)(),"data-source":O.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:t(u).pagination.currentIndex+1,pageSize:t(u).pagination.pageSize,total:t(u).pagination.totalCount},onChange:F},{bodyCell:n(({column:r,record:a})=>[r.key==="timeInfo"?(p(),g(t(k),{key:0,vertical:"",gap:4},{default:n(()=>[s(t(D),null,{default:n(()=>[y(f(a.createdAt),1)]),_:2},1024),a.status==="pending"&&a.pendingDuration?(p(),g(t($),{key:0,color:"orange"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_pending_for"))+" "+f(x(a.pendingDuration)),1)]),_:2},1024)):a.status==="started"?(p(),g(t($),{key:1,color:"blue"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_status_running"))+" ",1),s(t(bt),{spin:!0,style:{"margin-left":"4px"}})]),_:1})):a.duration?(p(),g(t($),{key:2,color:"green"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_completed_in"))+" "+f(x(a.duration)),1)]),_:2},1024)):j("",!0)]),_:2},1024)):r.key==="stageInfo"?(p(),g(t(k),{key:1,vertical:"",gap:4},{default:n(()=>[a.deleted?(p(),g(t(D),{key:0},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_not_found")),1)]),_:1})):(p(),g(t(k),{key:1,gap:8,align:"center"},{default:n(()=>[(p(),g(Q(t(ot)(a.targetStageType)),{size:20})),s(t(k),{vertical:"",gap:0},{default:n(()=>[e.editor?(p(),g(t(W),{key:0,href:V(a.targetStageType,a.targetStageId)},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1032,["href"])):(p(),g(t(D),{key:1},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1024)),s(t(D),{type:"secondary",style:{fontSize:"12px"}},{default:n(()=>[y(f(a.type),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))]),_:2},1024)):r.key==="payloadInfo"?(p(),g(t(k),{key:2,gap:8,align:"start",justify:"space-between"},{default:n(()=>[s(t(X),{"tree-data":t(it)(a.payload),selectable:!1,style:{flex:"1"}},null,8,["tree-data"]),s(lt,{type:"text",size:"small",tooltip:t(c).translate("i18n_tasksview_copy_payload_tooltip"),onClick:Z(m=>q(a.payload),["stop"])},{default:n(()=>[s(t(st))]),_:2},1032,["tooltip","onClick"])]),_:2},1024)):j("",!0)]),footer:n(()=>[s(t(R),{justify:"end",gutter:10},{default:n(()=>[s(t(A),null,{default:n(()=>[s(t(K),{size:"small"})]),_:1}),s(t(A),null,{default:n(()=>[s(t(D),null,{default:n(()=>[y(f(t(c).translate("i18n_tasksview_auto_updating")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),Ut=L({__name:"Tasks",setup(d){const i=at(),o=i.params.projectId,b=i.query.stage,v=i.query.status,u=new dt(o),{result:T}=ft(async()=>{const S=(await ct.list(o)).find(O=>O.latest);if(!S)return null;const[h,x]=await Promise.all([pt.get(S.id),gt.get(o)]);return{buildSpec:h,project:x}}),I=N(()=>!T.value||!T.value.buildSpec?null:T.value.buildSpec.runtimes.map(w=>({id:w.id,stageTitle:w.title,stageType:w.type})));return(w,S)=>(p(),U(E,null,[s(t(nt),null,{default:n(()=>[y(f(t(c).translate("i18n_tasksview_title")),1)]),_:1}),I.value?(p(),g(vt,{key:0,class:"tasks",api:t(u),stages:I.value,"stage-id":t(b),status:t(v)},null,8,["api","stages","stage-id","status"])):j("",!0)],64))}});export{Ut as default};
|
|
2
|
+
//# sourceMappingURL=Tasks.90846020.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{f as
|
|
2
|
-
//# sourceMappingURL=UploadOutlined.
|
|
1
|
+
import{f as c,ee as l}from"./jwt-decode.esm.c9c37cdc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6a95640e-b612-46f7-8655-539b3d6d151c",e._sentryDebugIdIdentifier="sentry-dbid-6a95640e-b612-46f7-8655-539b3d6d151c")}catch{}})();var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const u=i;function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){f(e,a,n[a])})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(t,n){var r=o({},t,n.attrs);return c(l,o({},r,{icon:u}),null)};d.displayName="UploadOutlined";d.inheritAttrs=!1;const p=d;export{p as U};
|
|
2
|
+
//# sourceMappingURL=UploadOutlined.518baf9a.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var fe=Object.defineProperty;var ge=(i,t,l)=>t in i?fe(i,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[t]=l;var R=(i,t,l)=>(ge(i,typeof t!="symbol"?t+"":t,l),l);import{a as z}from"./asyncComputed.7bc1692e.js";import{d as k,r as O,a as g,b as s,u as e,o as m,f as o,cU as J,g as h,t as v,i as n,aI as Y,cW as he,bY as w,dj as ve,al as S,cE as C,bQ as V,cD as N,c as W,ac as H,ej as be,d9 as we,aY as X,er as ee,cJ as te,ei as Ce,U as ke,h as T,A as Pe,de as Ue}from"./jwt-decode.esm.c9c37cdc.js";import{A as $}from"./index.bc97991a.js";import{_ as xe}from"./DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js";import{d as L,k as I,p as U}from"./router.a8616541.js";import{C as le}from"./CrudView.75a430a4.js";import{G as ae}from"./PhPencil.vue.a7219766.js";import{C as Re}from"./repository.5190b94f.js";import{E as ne}from"./record.a33d29b1.js";import{a as K}from"./ant-design.4efc9ccd.js";import{A as M,T as Ie}from"./Card.38a860a4.js";import"./constants.534f67bc.js";import"./index.da4f9d54.js";import"./url.9e033350.js";import"./PhDotsThreeVertical.vue.7a0e0638.js";import"./fetch.452c58e5.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[t]="6104dfea-5d0e-4731-8e8e-fc8324d3e555",i._sentryDebugIdIdentifier="sentry-dbid-6104dfea-5d0e-4731-8e8e-fc8324d3e555")}catch{}})();const $e=k({__name:"View",props:{signupPolicy:{}},emits:["updated","save"],setup(i,{emit:t}){const l=i,a=O(l.signupPolicy.strategy),r=O(l.signupPolicy.strategy==="patternOnly"?l.signupPolicy.emailPatterns:[]),c=O(l.signupPolicy.strategy==="patternOnly"?l.signupPolicy.emailPatterns.map(u=>({label:u})):[]),y=u=>{const P=u;if(r.value=P,P.length===0){a.value="inviteOnly",f("inviteOnly");return}c.value=P.map(x=>({label:x})),l.signupPolicy.emailPatterns=u,t("updated",l.signupPolicy)},_=()=>{t("save")},f=u=>{a.value=u,u!=="patternOnly"&&(u==="inviteOnly"&&l.signupPolicy.allowOnlyInvited(),t("updated",l.signupPolicy))};return(u,P)=>(m(),g(e(ve),{style:{"padding-top":"8px",width:"100%"},justify:"space-between",align:"flex-end"},{default:s(()=>[o(e(he),{value:a.value,"onUpdate:value":f},{default:s(()=>[o(e($),{direction:"vertical"},{default:s(()=>[o(e(J),{value:"inviteOnly"},{default:s(()=>[h(v(e(n).translate("i18n_signup_policy_invite_only",null)),1)]),_:1}),o(e($),null,{default:s(()=>[o(e(J),{value:"patternOnly"},{default:s(()=>[h(v(e(n).translate("i18n_signup_policy_pattern_only",null)),1)]),_:1}),o(e(Y),{mode:"tags",value:u.signupPolicy.emailPatterns,style:{"min-width":"300px"},placeholder:e(n).translate("i18n_signup_policy_domain_placeholder",null),disabled:a.value!=="patternOnly",options:c.value,"dropdown-match-select-width":"",open:!1,"onUpdate:value":y},null,8,["value","placeholder","disabled","options"])]),_:1})]),_:1})]),_:1},8,["value"]),o(e(w),{disabled:!u.signupPolicy.hasChanges,type:"primary",onClick:_},{default:s(()=>[h(v(e(n).translate("i18n_signup_policy_save_changes",null)),1)]),_:1},8,["disabled"])]),_:1}))}}),Oe=k({__name:"NewUser",props:{roleOptions:{}},emits:["created","cancel"],setup(i,{emit:t}){const a=i.roleOptions.map(_=>({label:_.name,value:_.name})),r=S({email:"",roles:[]});function c(){t("cancel")}function y(){!r.email||t("created",r)}return(_,f)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_user_editor_new_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:c},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:c},{default:s(()=>[h(v(e(n).translate("i18n_user_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:y},{default:s(()=>[h(v(e(n).translate("i18n_user_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:r,layout:"vertical"},{default:s(()=>[o(e(C),{key:"email",label:e(n).translate("i18n_user_editor_email_label",null),required:!0},{default:s(()=>[o(e(V),{value:r.email,"onUpdate:value":f[0]||(f[0]=u=>r.email=u)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_user_editor_role_label",null)},{default:s(()=>[o(e(Y),{value:r.roles,"onUpdate:value":f[1]||(f[1]=u=>r.roles=u),mode:"multiple",options:e(a)},null,8,["value","options"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),je=k({__name:"UpdateUser",props:{roleOptions:{},email:{},roles:{}},emits:["updated","cancel"],setup(i,{emit:t}){const l=i,a=l.roleOptions.map(_=>({label:_.name,value:_.name})),r=S({email:l.email,roles:l.roles});function c(){t("cancel")}function y(){t("updated",r)}return(_,f)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_user_editor_update_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:c},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:c},{default:s(()=>[h(v(e(n).translate("i18n_user_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:y},{default:s(()=>[h(v(e(n).translate("i18n_user_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:r,layout:"vertical"},{default:s(()=>[o(e(C),{key:"email",label:e(n).translate("i18n_user_editor_email_label",null)},{default:s(()=>[o(e(V),{value:r.email,"onUpdate:value":f[0]||(f[0]=u=>r.email=u)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_user_editor_role_label",null)},{default:s(()=>[o(e(Y),{value:r.roles,"onUpdate:value":f[1]||(f[1]=u=>r.roles=u),mode:"multiple",options:e(a)},null,8,["value","options"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),Ae=k({__name:"View",props:{loading:{type:Boolean},users:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(i){const t=i,l=W(()=>{var a;return{columns:[{title:n.translate("i18n_user_editor_email_label",null)},{title:n.translate("i18n_user_editor_roles_column",null)},{title:"",align:"right"}],rows:(a=t.users.map(r=>({key:r.email,cells:[{type:"text",text:r.email},{type:"slot",key:"roles",payload:{roles:r.roles}},{type:"actions",actions:[{icon:ae,label:n.translate("i18n_user_editor_edit",null),onClick:()=>t.onEdit(r)},{icon:ee,label:n.translate("i18n_user_editor_delete",null),onClick:()=>t.onDelete(r)}]}]})))!=null?a:[]}});return(a,r)=>(m(),g(le,{"entity-name":"users",title:"",loading:a.loading,description:e(n).translate("i18n_user_editor_view_description",null),"empty-title":e(n).translate("i18n_user_editor_empty_title",null),table:l.value,"create-button-text":e(n).translate("i18n_user_editor_add_button",null),create:a.onCreate},{roles:s(({payload:c})=>[(m(!0),H(X,null,be(c.roles,y=>(m(),g(e(we),{key:y,bordered:""},{default:s(()=>[h(v(y),1)]),_:2},1024))),128))]),_:1},8,["loading","description","empty-title","table","create-button-text","create"]))}}),Ee=k({__name:"NewRole",emits:["created","cancel"],setup(i,{emit:t}){const l=S({name:"",description:""});function a(){t("cancel")}function r(){!l.name||t("created",l)}return(c,y)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_role_editor_new_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:a},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:a},{default:s(()=>[h(v(e(n).translate("i18n_role_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:r},{default:s(()=>[h(v(e(n).translate("i18n_role_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:l,layout:"vertical"},{default:s(()=>[o(e(C),{key:"name",label:e(n).translate("i18n_role_editor_name_label",null),required:!0},{default:s(()=>[o(e(V),{value:l.name,"onUpdate:value":y[0]||(y[0]=_=>l.name=_)},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"description",label:e(n).translate("i18n_role_editor_description_label",null)},{default:s(()=>[o(e(te),{value:l.description,"onUpdate:value":y[1]||(y[1]=_=>l.description=_),placeholder:e(n).translate("i18n_role_editor_description_placeholder",null),rows:3},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),De=k({__name:"UpdateRole",props:{name:{},description:{}},emits:["updated","cancel"],setup(i,{emit:t}){const l=i,a=S({description:l.description});function r(){t("cancel")}function c(){t("updated",a)}return(y,_)=>(m(),g(e(L),{open:"",title:e(n).translate("i18n_role_editor_update_title",null),width:720,"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:r},{extra:s(()=>[o(e($),null,{default:s(()=>[o(e(w),{onClick:r},{default:s(()=>[h(v(e(n).translate("i18n_role_editor_cancel",null)),1)]),_:1}),o(e(w),{type:"primary",onClick:c},{default:s(()=>[h(v(e(n).translate("i18n_role_editor_submit",null)),1)]),_:1})]),_:1})]),default:s(()=>[o(e(N),{model:a,layout:"vertical"},{default:s(()=>[o(e(C),{key:"name",label:e(n).translate("i18n_role_editor_name_label",null)},{default:s(()=>[o(e(V),{value:l.name,disabled:""},null,8,["value"])]),_:1},8,["label"]),o(e(C),{key:"role",label:e(n).translate("i18n_role_editor_description_label",null)},{default:s(()=>[o(e(te),{value:a.description,"onUpdate:value":_[0]||(_[0]=f=>a.description=f),placeholder:e(n).translate("i18n_role_editor_description_placeholder",null),rows:3},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"]))}}),Te=k({__name:"View",props:{loading:{type:Boolean},roles:{},onCreate:{type:Function},onEdit:{type:Function},onDelete:{type:Function}},setup(i){const t=i,l=W(()=>{var a;return{columns:[{title:n.translate("i18n_role_editor_name_label",null)},{title:n.translate("i18n_role_editor_description_label",null)},{title:"",align:"right"}],rows:(a=t.roles.map(r=>({key:r.id,cells:[{type:"text",text:r.name},{type:"text",text:r.description},{type:"actions",actions:[{icon:ae,label:n.translate("i18n_role_editor_edit",null),onClick:()=>t.onEdit(r)},{icon:ee,label:n.translate("i18n_role_editor_delete",null),onClick:()=>t.onDelete(r)}]}]})))!=null?a:[]}});return(a,r)=>(m(),g(le,{"entity-name":"roles",loading:a.loading,title:"",description:e(n).translate("i18n_role_editor_view_description",null),"empty-title":e(n).translate("i18n_role_editor_empty_title",null),table:l.value,"create-button-text":e(n).translate("i18n_role_editor_add_button",null),create:a.onCreate},null,8,["loading","description","empty-title","table","create-button-text","create"]))}}),B=class{constructor(t){R(this,"record");this.dto=t,this.record=ne.from(t)}static from(t){return new B(t)}toDTO(){return this.record.toDTO()}get id(){return this.record.get("id")}get projectId(){return this.record.get("projectId")}get emailPatterns(){return this.record.get("emailPatterns")}set emailPatterns(t){this.record.set("emailPatterns",t)}get hasChanges(){return this.record.hasChangesDeep("emailPatterns")}get strategy(){return this.dto.emailPatterns.length===0?"inviteOnly":"patternOnly"}get changes(){return this.record.changes}allowOnlyInvited(){this.record.set("emailPatterns",[])}static validate(t){return B.pattern.test(t)}};let j=B;R(j,"pattern",new RegExp("^@?(?!-)[A-Za-z0-9-]{1,}(?<!-)(\\.[A-Za-z]{2,})+$"));class Fe{constructor(){R(this,"urlPath","signup-policy")}async update(t,l){return I.patch(`projects/${t}/${this.urlPath}`,l)}async get(t){return I.get(`projects/${t}/${this.urlPath}`)}}const Q=new Fe;class Be{constructor(t){this.projectId=t}async update(t){const{emailPatterns:l}=t.changes;if(!l)return t;const a=await Q.update(this.projectId,{emailPatterns:l});return j.from(a)}async get(){const t=await Q.get(this.projectId);return j.from(t)}}class Z{constructor(t){R(this,"record");this.dto=t,this.record=ne.from(t)}static from(t){return new Z(t)}toDTO(){return this.record.toDTO()}get changes(){return this.record.changes}get id(){return this.record.get("id")}get email(){return this.record.get("email")}set email(t){this.record.set("email",t)}get projectId(){return this.record.get("projectId")}get roles(){return this.record.get("roles")}set roles(t){this.record.set("roles",t)}update(t){this.record.update(t)}resetChanges(){this.record.resetChanges()}}class Se{constructor(){R(this,"urlPath","users")}async create(t,l){return I.post(`projects/${t}/${this.urlPath}`,l)}async delete(t,l){await I.delete(`projects/${t}/${this.urlPath}/${l}`)}async list(t,{limit:l,offset:a}){const r={};l&&(r.limit=l.toString()),a&&(r.offset=a.toString());const c=new URLSearchParams(r);return I.get(`projects/${t}/${this.urlPath}?${c.toString()}`)}async update(t,l,a){return I.patch(`projects/${t}/${this.urlPath}/${l}`,a)}}const F=new Se;class Ve{constructor(t){this.projectId=t}async create(t){await F.create(this.projectId,t)}async update(t,l){await F.update(this.projectId,t,l)}async delete(t){await F.delete(this.projectId,t)}async list(t,l){return(await F.list(this.projectId,{limit:t,offset:l})).map(Z.from)}}const at=k({__name:"View",setup(i){const l=Ce().params.projectId,a=O({type:"initial"}),r=O("users");ke(()=>{const p=new URLSearchParams(location.search).get("selected-panel")||"users",b=["roles","users"].includes(p)?p:"users";p&&(r.value=b)});const c=()=>{a.value.type="initial"},y=()=>{a.value.type="creatingUser"},_=d=>{a.value={type:"editingUser",payload:d}},f=()=>{a.value.type="creatingRole"},u=d=>{a.value={type:"editingRole",payload:d}},P=new Be(l),{result:x,refetch:re}=z(()=>P.get()),oe=async()=>{if(!!x.value)try{await P.update(x.value),re()}catch(d){d instanceof Error&&U(n.translate("i18n_access_control_update_error",null),d.message)}},A=new Ve(l),{loading:se,result:ie,refetch:E}=z(()=>A.list(100,0)),D=new Re(l),{loading:ce,result:q,refetch:G}=z(()=>D.list(100,0)),ue=async d=>{try{if(a.value.type!=="creatingUser")return;await A.create(d),c(),E()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_create_error",null),p.message)}},de=async d=>{try{if(a.value.type!=="editingUser")return;await A.update(a.value.payload.id,d),c(),E()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_update_error",null),p.message)}},pe=async d=>{if(!!await K(n.translate("i18n_access_control_delete_user_confirm",null)))try{await A.delete(d.id),E()}catch(b){b instanceof Error&&U(n.translate("i18n_access_control_delete_error",null),b.message)}},_e=async d=>{try{if(a.value.type!=="creatingRole")return;await D.create(d),c(),G()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_create_error",null),p.message)}},me=async d=>{try{if(a.value.type!=="editingRole")return;await D.update(a.value.payload.id,d),c(),G()}catch(p){p instanceof Error&&U(n.translate("i18n_access_control_update_error",null),p.message)}},ye=async d=>{if(!!await K(n.translate("i18n_access_control_delete_role_confirm",null)))try{await D.delete(d.id),G(),E()}catch(b){b instanceof Error&&U(n.translate("i18n_access_control_delete_error",null),b.message)}};return(d,p)=>(m(),H(X,null,[o(e(Pe),null,{default:s(()=>[h(v(e(n).translate("i18n_access_control_title",null)),1)]),_:1}),o(e(Ue),null,{default:s(()=>[h(v(e(n).translate("i18n_access_control_description",null))+" ",1),o(xe,{path:"tools/access-control"})]),_:1}),o(e(Ie),{"active-key":r.value,"onUpdate:activeKey":p[0]||(p[0]=b=>r.value=b)},{default:s(()=>[o(e(M),{key:"users",tab:e(n).translate("i18n_access_control_users_tab",null)},null,8,["tab"]),o(e(M),{key:"roles",tab:e(n).translate("i18n_access_control_roles_tab",null)},null,8,["tab"])]),_:1},8,["active-key"]),r.value==="users"&&e(x)?(m(),g($e,{key:0,"signup-policy":e(x),onSave:oe},null,8,["signup-policy"])):T("",!0),r.value==="users"?(m(),g(Ae,{key:1,loading:e(se),users:e(ie)||[],onCreate:y,onEdit:_,onDelete:pe},null,8,["loading","users"])):T("",!0),r.value==="roles"?(m(),g(Te,{key:2,loading:e(ce),roles:e(q)||[],onCreate:f,onEdit:u,onDelete:ye},null,8,["loading","roles"])):T("",!0),a.value.type==="creatingUser"?(m(),g(Oe,{key:3,"role-options":e(q)||[],onCancel:c,onCreated:ue},null,8,["role-options"])):a.value.type==="editingUser"?(m(),g(je,{key:4,email:a.value.payload.email,roles:a.value.payload.roles||[],"role-options":e(q)||[],onUpdated:de,onCancel:c},null,8,["email","roles","role-options"])):a.value.type==="creatingRole"?(m(),g(Ee,{key:5,onCancel:c,onCreated:_e})):a.value.type==="editingRole"?(m(),g(De,{key:6,name:a.value.payload.name,description:a.value.payload.description,onUpdated:me,onCancel:c},null,8,["name","description"])):T("",!0)],64))}});export{at as default};
|
|
2
|
+
//# sourceMappingURL=View.ded6b355.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var T=Object.defineProperty;var j=(i,e,t)=>e in i?T(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>(j(i,typeof e!="symbol"?e+"":e,t),t);import{k as C}from"./router.a8616541.js";import{l as I}from"./fetch.452c58e5.js";import{E as U}from"./record.a33d29b1.js";import{$ as R,r as S,er as $,d as F,w as O,U as P,ax as B,ac as L,u as a,a as v,eo as M,b as o,h as p,aY as G,o as u,g as y,t as f,f as g,i as c,cD as N,df as W,cJ as z,cE as J,M as Z}from"./jwt-decode.esm.c9c37cdc.js";import{S as x}from"./SaveButton.c3f2a4bb.js";import{C as H}from"./CrudView.75a430a4.js";import{a as K}from"./asyncComputed.7bc1692e.js";import{o as w}from"./omniChatStore.508e8ece.js";import{G as Y}from"./PhPencil.vue.a7219766.js";import{u as q}from"./useCodebaseEvents.ffe057d1.js";import{A as Q}from"./index.b74c262c.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]="153a36cc-1e32-4528-a4ed-f042697bb1cb",i._sentryDebugIdIdentifier="sentry-dbid-153a36cc-1e32-4528-a4ed-f042697bb1cb")}catch{}})();class b{constructor(e){s(this,"data");s(this,"deleted");s(this,"wasDeleted",e=>this.deleted.value.includes(e));s(this,"wasUpdated",e=>this.data.hasChangesDeep(e));s(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});s(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});s(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});s(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});s(this,"commit",()=>{this.data=U.from(this.values()),this.deleted.value=[]});this.data=U.from(e),this.deleted=R([])}static from(e){const t=e.reduce((n,{name:d,value:m})=>(n[d]=m,n),{});return new b(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class X{constructor(){s(this,"urlPath","env-vars")}async list(e){return await C.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await C.patch(`projects/${e}/${this.urlPath}`,t)}}const A=new X;class he{constructor(e){this.projectId=e}async get(){const e=await A.list(this.projectId);return b.from(e.map(t=>({...t,value:""})))}async update(e){await A.update(this.projectId,e)}}class ve{constructor(e=I){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return b.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class _{constructor(e,t,n){s(this,"envVarRepo");s(this,"envVars");s(this,"state",S({type:"idle"}));s(this,"mode");s(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:n,value:d}=e;if(d.trim()!==d)throw new Error("Environment variable values cannot have leading or trailing whitespace.");if(!t.test(n))throw new Error(`Invalid key: \u2018${n}\u2019. A key must begin with a letter or an underscore, and may only include letters, numbers, and underscores.`)});s(this,"create",e=>{this.validate(e),this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});s(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});s(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});s(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});s(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});s(this,"refetch",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});s(this,"columns",()=>[{title:"Key"},{title:"Value"},{title:""}]);s(this,"rows",()=>Object.entries(this.envVars.values()).map(([e])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:$,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:Y,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));s(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});s(this,"hasChanges",()=>this.envVars.changes.length>0);s(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n}static async create(e,t){const n=await e.get();return new _(e,n,t)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const pe=F({__name:"View",props:{envVarRepository:{},mode:{},hideTitle:{type:Boolean}},setup(i){const e=i,{result:t,loading:n,refetch:d}=K(async()=>await _.create(e.envVarRepository,e.mode)),m=q();O(m.lastEvent,async l=>{var r;l&&l.filepath&&l.filepath.endsWith(".env")&&await((r=t.value)==null?void 0:r.refetch())});const D={columns:[],rows:[]};return P(()=>{const l=w.subscribe("envVarCreated",()=>{d()}),r=w.subscribe("envVarEdited",()=>{d()});B(()=>{w.unsubscribe(l),w.unsubscribe(r)})}),(l,r)=>{var V,k;return u(),L(G,null,[a(t)?(u(),v(H,{key:0,"entity-name":a(c).translate("i18n_envvarsview_entity_name"),loading:a(n),title:e.hideTitle?"":a(c).translate("i18n_envvarsview_title"),description:e.hideTitle?"":a(c).translate("i18n_envvarsview_description"),"empty-title":a(c).translate("i18n_envvarsview_empty_title"),table:a(t).table()||D,"create-button-text":a(c).translate("i18n_envvarsview_create_button"),create:a(t).create,fields:a(t).creationFields||[],live:a(t).isLocalEditor},M({_:2},[(V=a(t))!=null&&V.isLocalEditor?{name:"secondary",fn:o(()=>[l.mode=="editor"?(u(),v(x,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[y(f(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"0"}:void 0,(k=a(t))!=null&&k.isLocalEditor?{name:"extra",fn:o(()=>[g(a(Q),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[y(f(a(c).translate("i18n_envvarsview_local_helper_message")),1)]),_:1})]),key:"1"}:void 0,a(t)?{name:"more",fn:o(()=>[l.mode=="console"?(u(),v(x,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[y(f(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"2"}:void 0]),1032,["entity-name","loading","title","description","empty-title","table","create-button-text","create","fields","live"])):p("",!0),a(t)?(u(),v(a(Z),{key:1,open:a(t).isUpdating,title:a(c).translate("i18n_envvarsview_update_modal_title"),onCancel:r[1]||(r[1]=h=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:r[2]||(r[2]=()=>{var h;return(h=a(t))==null?void 0:h.confirmUpdate()})},{default:o(()=>[a(t).state.value.type==="updating"?(u(),v(a(N),{key:0,layout:"vertical"},{default:o(()=>[g(a(J),null,{default:o(()=>[g(a(W),null,{default:o(()=>[y(f(a(t).state.value.name),1)]),_:1}),g(a(z),{value:a(t).state.value.value,"onUpdate:value":r[0]||(r[0]=h=>a(t).state.value.value=h)},null,8,["value"])]),_:1})]),_:1})):p("",!0)]),_:1},8,["open","title"])):p("",!0)],64)}}});export{he as C,ve as E,pe as _};
|
|
2
|
+
//# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.285b5e2c.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{S as d}from"./workspaceStore.5a435520.js";import{A as p}from"./constants.534f67bc.js";import{d as l,u as t,ac as _,g as f,t as c,h as C,eJ as u,o as h,i as m,_ as g}from"./jwt-decode.esm.c9c37cdc.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="be8b48d3-adac-48e8-aa57-63e9ad2ab302",a._sentryDebugIdIdentifier="sentry-dbid-be8b48d3-adac-48e8-aa57-63e9ad2ab302")}catch{}})();const v=["href"],b=u('<svg width="44" height="32" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e084ae6f><g clip-path="url(#clip0_405_116214)" data-v-e084ae6f><path d="M188.697 133.808L172.68 148.263C172.68 148.263 216.044 185.966 217.997 187.72C219.951 189.475 234.405 174.566 232.843 173.266C231.28 171.966 188.697 133.808 188.697 133.808Z" fill="#E36C7C" data-v-e084ae6f></path><path d="M188.697 133.808L172.68 148.263C172.68 148.263 216.044 185.966 217.997 187.72C219.951 189.475 234.405 174.566 232.843 173.266C231.28 171.966 188.697 133.808 188.697 133.808Z" fill="url(#paint0_linear_405_116214)" data-v-e084ae6f></path><path d="M218.387 91.2249L176.195 127.557L173.851 129.51C151.192 149.849 149.853 152.309 141.642 152.584L141.584 152.586C139.612 152.652 135.357 152.795 131.875 149.849C126.797 145.552 120.155 140.083 117.03 137.348C115.34 135.869 112.465 133.039 109.998 131.097C107.902 129.448 106.482 127.581 104.919 127.581C103.357 127.581 100.622 129.925 96.3246 133.832C92.0272 137.739 82.6511 146.333 82.6511 146.333L65.0712 161.569C65.0712 161.569 42.5857 180.688 36.7256 185.376C30.8656 190.064 16.5797 175.69 21.4895 171.703C21.9628 171.23 26.2429 167.755 29.7179 164.915C32.2165 162.84 34.2084 161.179 34.2084 161.179C34.9897 160.397 66.2433 133.051 66.2433 133.051L87.723 114.573C87.723 114.573 95.9339 106.094 105.701 106.094C108.826 106.094 112.83 106.485 126.015 118.205C129.531 121.33 131.485 122.542 135.782 126.409C137.345 127.816 139.852 130.316 140.861 130.316C141.882 130.316 143.986 128.363 145.549 127.023C145.549 127.023 195.897 84.4149 202.37 77.9421C207.839 72.4726 223.075 86.9273 218.387 91.2249Z" fill="url(#paint1_linear_405_116214)" data-v-e084ae6f></path><path d="M33.238 67.1372C31.2846 68.6564 23.9305 75.1737 22.2992 76.9039C19.3366 80.0417 21.3638 81.3905 25.6611 84.9065C29.9585 88.4225 57.8962 112.712 64.8542 118.963L79.9642 105.221L41.288 71.2331C36.5999 67.1372 35.1913 65.6179 33.238 67.1372Z" fill="url(#paint2_linear_405_116214)" data-v-e084ae6f></path></g><defs data-v-e084ae6f><linearGradient id="paint0_linear_405_116214" x1="172.68" y1="133.808" x2="183.059" y2="196.169" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop offset="0.114583" stop-color="#FF98A6" data-v-e084ae6f></stop><stop offset="1" stop-color="#E36C7C" data-v-e084ae6f></stop></linearGradient><linearGradient id="paint1_linear_405_116214" x1="219.271" y1="186.305" x2="206.115" y2="57.7298" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop stop-color="#E36C7C" data-v-e084ae6f></stop><stop offset="0.859375" stop-color="#FF98A6" data-v-e084ae6f></stop></linearGradient><linearGradient id="paint2_linear_405_116214" x1="20.8984" y1="66.56" x2="30.8589" y2="127.049" gradientUnits="userSpaceOnUse" data-v-e084ae6f><stop stop-color="#E36C7C" data-v-e084ae6f></stop><stop offset="0.859375" stop-color="#FF98A6" data-v-e084ae6f></stop></linearGradient><clipPath id="clip0_405_116214" data-v-e084ae6f><rect width="256" height="256" fill="white" data-v-e084ae6f></rect></clipPath></defs></svg><b data-v-e084ae6f>Abstra</b>',2),w=l({__name:"Watermark",props:{pageId:{},locale:{}},setup(a){var s;const e=a,r=window.location.hostname.split(".")[0],o=(s=d.instance)==null?void 0:s.showWatermark,n=new URLSearchParams({utm_source:"abstra_pages",utm_medium:"badge",utm_campaign:e.pageId,origin_subdomain:r});return(i,y)=>t(o)?(h(),_("a",{key:0,href:`${t(p).HOMEPAGE}?${t(n).toString()}`,target:"_blank",class:"watermark"},[f(c(t(m).translate("i18n_watermark_text",i.locale))+" ",1),b],8,v)):C("",!0)}});const S=g(w,[["__scopeId","data-v-e084ae6f"]]);export{S as W};
|
|
2
|
+
//# sourceMappingURL=Watermark.5071a4b2.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var v=Object.defineProperty;var y=(e,t,i)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var r=(e,t,i)=>(y(e,typeof t!="symbol"?t+"":t,i),i);import{d as m,U as w,R as I,a as c,b as s,o as d,f as o,u as n,dj as f,cT as P,A as b,g as p,t as h,i as u,df as g,_ as x,r as j,ei as A}from"./jwt-decode.esm.c9c37cdc.js";import{_ as E}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js";import{B as R}from"./BaseLayout.135a51d9.js";import{l as _}from"./fetch.452c58e5.js";import"./router.a8616541.js";import{a as T}from"./project.9a068e8d.js";import"./tables.2e1c934b.js";import"./Logo.d77d5637.js";import"./index.da4f9d54.js";import"./record.a33d29b1.js";import"./string.8fab6b53.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8128f716-4a0d-4325-a216-a33039d96771",e._sentryDebugIdIdentifier="sentry-dbid-8128f716-4a0d-4325-a216-a33039d96771")}catch{}})();const W=m({__name:"View",props:{controller:{}},setup(e){const t=e,i=t.controller.loadingPercentage();return w(()=>{t.controller.start()}),I(()=>{t.controller.cleanUp()}),(a,l)=>(d(),c(R,null,{content:s(()=>[o(n(f),{align:"center",justify:"center",style:{width:"100vw",height:"100dvh"}},{default:s(()=>[o(n(f),{gap:"large",align:"center",justify:"space-evenly",vertical:"",style:{width:"45%","min-width":"600px",height:"100%"}},{default:s(()=>[o(E,{size:"large"}),o(n(P),{size:[10,10],"show-info":!1,percent:n(i),"stroke-color":"#EA576A"},null,8,["percent"]),o(n(b),{level:3},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_preparing_environment")),1)]),_:1}),n(i)<100?(d(),c(n(g),{key:0},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_setting_up")),1)]),_:1})):(d(),c(n(g),{key:1},{default:s(()=>[p(h(n(u).translate("i18n_webeditorview_redirecting_soon")),1)]),_:1}))]),_:1})]),_:1})]),_:1}))}});const k=x(W,[["__scopeId","data-v-5fd653ca"]]);function U(e,t){if(!e)return"";const i=t.toString();if(!i)return e;const l=e.includes("?")?"&":"?";return`${e}${l}${i}`}class D{constructor(t,i,a=_){r(this,"projectId");r(this,"loading");r(this,"fetch",_);r(this,"interval",null);r(this,"urls",null);r(this,"totalWaitTime");r(this,"poolingInterval");r(this,"pingResponded",!1);r(this,"redirectPath");this.projectId=t,this.loading=j(0),this.fetch=a,this.totalWaitTime=6e4,this.poolingInterval=2500,this.redirectPath=i}increment(){this.loading.value+=100/(this.totalWaitTime/this.poolingInterval)}speedUp(){this.totalWaitTime=5e3,this.poolingInterval=500,this.interval&&clearInterval(this.interval),this.interval=setInterval(async()=>{this.increment(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}navigate(){if(this.urls){const t=new URLSearchParams;this.redirectPath&&t.set("redirect",this.redirectPath);const i=U(this.urls.redirect,t);window.location.replace(i)}this.cleanUp()}async ping(){if(!this.urls)return!1;if(this.pingResponded)return!0;const t=await this.fetch(this.urls.ping,{signal:AbortSignal.timeout(500)});return this.pingResponded=t.status===200,this.pingResponded}async start(){const t=await T.startWebEditor(this.projectId);this.urls=t,this.interval=setInterval(async()=>{this.increment(),this.pingResponded||await this.ping()&&this.speedUp(),this.loading.value>=100&&this.navigate()},this.poolingInterval)}cleanUp(){this.interval&&clearInterval(this.interval)}loadingPercentage(){return this.loading}}const J=m({__name:"WebEditor",setup(e){const t=A(),i=t.params.projectId,a=t.query.redirect,l=new D(i,a);return(S,V)=>(d(),c(k,{controller:n(l)},null,8,["controller"]))}});export{J as default};
|
|
2
|
+
//# sourceMappingURL=WebEditor.18ece735.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.video-container[data-v-5fd653ca]{position:relative;width:100%;overflow:hidden;padding-top:56.25%}.responsive-iframe[data-v-5fd653ca]{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as k,r as B,U as A,o as n,a as u,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.c9c37cdc.js";import{S as $}from"./Steps.687763a5.js";import{W as F}from"./PlayerConfigProvider.00af5968.js";import"./index.71eb83f3.js";import"./colorHelpers.8ba18214.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]="b2ab1d3b-152c-4f76-8976-8dc4a98a741e",o._sentryDebugIdIdentifier="sentry-dbid-b2ab1d3b-152c-4f76-8976-8dc4a98a741e")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return A(()=>{l.value&&d.action.setElement(l.value)}),(r,i)=>(n(),u(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(),d=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(),u(F,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u($,{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(),u(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",j,[(n(!0),c(w,null,v(_(),a=>(n(),u(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.88a4f27f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://cdn.jsdelivr.net/npm/@vue-flow/core@1.41.7/dist/style.css";@import"https://cdn.jsdelivr.net/npm/@vue-flow/core@1.41.7/dist/theme-default.css";.edge-label[data-v-8f1859d4]{position:absolute;padding:0 6px;border-radius:4px;background-color:#f9fafb;display:flex;align-items:center;justify-content:center;pointer-events:all}.stage-node[data-v-25457a9a]{padding:12px;min-width:150px;max-width:280px;display:flex;flex-direction:column;align-items:flex-start}.stage-content[data-v-25457a9a]{display:flex;align-items:center;gap:8px;width:100%}.stage-icon[data-v-25457a9a]{flex-shrink:0}.stage-title[data-v-25457a9a]{font-weight:500;font-size:14px;word-break:break-word;text-align:left;flex:1}.actions-menu[data-v-25457a9a]{flex-shrink:0;margin-left:auto}.action-item[data-v-25457a9a]{display:flex;align-items:center;gap:8px}.action-item.disabled[data-v-25457a9a]{opacity:.5;cursor:not-allowed}.action-warning[data-v-25457a9a]{max-width:250px}.flow-container[data-v-7b40ff03]{width:100%;height:100%;box-sizing:border-box;position:relative}[data-v-7b40ff03] .vue-flow__node{border:1px solid #ccc;border-radius:10px;background-color:#fff;max-width:280px;outline:none}[data-v-7b40ff03] .vue-flow__node:hover{box-shadow:0 0 5px #0003}.edit-button[data-v-7b40ff03]{position:absolute;right:24px;bottom:24px;width:56px;height:56px;box-shadow:0 2px 8px #00000026;z-index:1000;border-radius:28px;transition:all .3s ease;animation:pulse-7b40ff03 2s infinite;display:flex;align-items:center;justify-content:center;overflow:hidden}.edit-button.expanded[data-v-7b40ff03]{width:200px;padding:0 24px;border-radius:28px;animation:none}.edit-button-text[data-v-7b40ff03]{margin-left:12px;white-space:nowrap;animation:fadeIn-7b40ff03 .3s ease;font-weight:600;font-size:16px}@keyframes pulse-7b40ff03{0%,to{box-shadow:0 2px 8px #7c3aed66}50%{box-shadow:0 2px 16px #7c3aedcc}}@keyframes fadeIn-7b40ff03{0%{opacity:0}to{opacity:1}}.empty-state-card[data-v-7b40ff03]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:800px;width:90%;box-shadow:0 4px 12px #0000001a}.option-card[data-v-7b40ff03]{min-width:280px;max-width:350px;flex:1}.option-card[data-v-7b40ff03]:hover{box-shadow:0 4px 12px #00000026;transition:box-shadow .3s ease}.code-container[data-v-7b40ff03]{display:flex;align-items:center;gap:8px;background-color:#f5f5f5;padding:8px 12px;border-radius:4px}.install-code[data-v-7b40ff03]{font-family:Courier New,monospace;font-size:13px;color:#262626;flex:1;background:transparent;padding:0}
|
|
@@ -0,0 +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.778c401d.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=ant-design.
|
|
1
|
+
import{en as n,M as b}from"./jwt-decode.esm.c9c37cdc.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]="a8319ef1-bbfb-48f1-ba53-8ef46f657ddb",e._sentryDebugIdIdentifier="sentry-dbid-a8319ef1-bbfb-48f1-ba53-8ef46f657ddb")}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 s=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const f=o(e);return[{title:s,key:[...r,f].join("/"),children:e.flatMap((i,l)=>c(i,[...r,f,`${l}`]))}]}else if(n.exports.isObject(e)){const f=o(e);return[{title:s,key:[...r,f].join("/"),children:Object.entries(e).flatMap(([i,l])=>c(l,[...r,f,i],i))}]}else return[{title:s,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{b.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.4efc9ccd.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
//# sourceMappingURL=apiKey.
|
|
1
|
+
var d=Object.defineProperty;var o=(a,t,e)=>t in a?d(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(o(a,typeof t!="symbol"?t+"":t,e),e);import{k as s}from"./router.a8616541.js";import"./jwt-decode.esm.c9c37cdc.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="f85b3c14-16ac-4eab-9869-afafa065b5f6",a._sentryDebugIdIdentifier="sentry-dbid-f85b3c14-16ac-4eab-9869-afafa065b5f6")}catch{}})();class u{constructor(){i(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return s.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await s.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return s.get(`projects/${t}/${this.urlPath}`)}}const r=new u;class n{constructor(t){this.dto=t}static async list(t){return(await r.list(t)).map(c=>new n(c))}static async create(t){const e=await r.create(t);return new n(e)}static async delete(t,e){await r.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.bd946d8c.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$ as c,c as l}from"./jwt-decode.esm.c9c37cdc.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]="2cb8eb20-8f25-4ca7-8d3b-401aa008d6dc",r._sentryDebugIdIdentifier="sentry-dbid-2cb8eb20-8f25-4ca7-8d3b-401aa008d6dc")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),a=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(a));o();const s=l(()=>e.value.loading),u=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:s,result:u,error:d,refetch:o}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=asyncComputed.7bc1692e.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{k as n}from"./router.
|
|
2
|
-
//# sourceMappingURL=build.
|
|
1
|
+
import{k as n}from"./router.a8616541.js";import"./jwt-decode.esm.c9c37cdc.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]="8ce8f4d2-0044-4b98-a8e3-841addc17f0f",i._sentryDebugIdIdentifier="sentry-dbid-8ce8f4d2-0044-4b98-a8e3-841addc17f0f")}catch{}})();class g{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 g;class c{constructor(e){this.dto=e}static async list(e){return(await d.list(e)).map(a=>new c(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,c as a,g as b};
|
|
2
|
+
//# sourceMappingURL=build.a8637e29.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./jwt-decode.esm.
|
|
2
|
-
//# sourceMappingURL=colorHelpers.
|
|
1
|
+
import"./jwt-decode.esm.c9c37cdc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e28d21be-0419-438c-b46d-b3f13ae09f69",e._sentryDebugIdIdentifier="sentry-dbid-e28d21be-0419-438c-b46d-b3f13ae09f69")}catch{}})();function p(e,t){const{r:n,g:r,b:o,usePound:s}=g(e);return w(c(n,-t),c(r,-t),c(o,-t),s)}function c(e,t){const n=e*(100+t*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}const v=(e,t)=>y(p(y(e),t)),P=e=>k(e)?v(e,.1):p(e,.1);function k(e){const{r:t,g:n,b:r}=g(e);return t*.299+n*.587+r*.114<186}function g(e){let t=!1;e[0]=="#"&&(e=e.slice(1),t=!0);const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:t}}function y(e){const{r:t,g:n,b:r,usePound:o}=g(e);return w(255-t,255-n,255-r,o)}const w=(e,t,n,r=!0)=>(r?"#":"")+(n|t<<8|e<<16).toString(16).padStart(6,"0");function _(e){return new Promise((t,n)=>{const r=document.createElement("img");r.src=e,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 t(!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),t(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
|
|
2
|
+
//# sourceMappingURL=colorHelpers.8ba18214.js.map
|