abstra 3.24.2__py3-none-any.whl → 3.24.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- abstra/ai.py +2 -0
- {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/METADATA +1 -1
- {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/RECORD +193 -190
- abstra_internals/contracts_generated.py +3737 -2560
- abstra_internals/controllers/main.py +62 -0
- abstra_internals/controllers/workflows.py +42 -0
- abstra_internals/interface/sdk/ai.py +69 -0
- abstra_internals/repositories/git/native.py +92 -5
- abstra_internals/repositories/git/types.py +10 -0
- abstra_internals/repositories/linter/rules/env_in_bundle.py +2 -0
- abstra_internals/repositories/project/json_migrations/__init__.py +2 -0
- abstra_internals/repositories/project/json_migrations/migration_016.py +17 -0
- abstra_internals/repositories/project/json_migrations/migration_016_test.py +141 -0
- abstra_internals/repositories/project/project.py +63 -18
- abstra_internals/repositories/project/project_test.py +279 -0
- abstra_internals/server/routes/mcp.py +1 -0
- abstra_internals/services/fs.py +311 -32
- abstra_internals/services/fs_test.py +28 -5
- abstra_internals/utils/file.py +7 -3
- abstra_internals/utils/fs_cache.py +173 -0
- abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js → AbstraButton.vue_vue_type_script_setup_true_lang.779f608b.js} +2 -2
- abstra_statics/dist/assets/{AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js → AbstraLogo.vue_vue_type_script_setup_true_lang.9c4020b5.js} +2 -2
- abstra_statics/dist/assets/{ApiKeys.dafa1dc2.js → ApiKeys.fbd3ff63.js} +2 -2
- abstra_statics/dist/assets/App.cdc99dd8.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.c5b57972.js +2 -0
- abstra_statics/dist/assets/BaseLayout.c2cb2f91.js +2 -0
- abstra_statics/dist/assets/Billing.f53186a3.js +2 -0
- abstra_statics/dist/assets/{Breadcrumb.8a82fa01.js → Breadcrumb.1a138bb1.js} +2 -2
- abstra_statics/dist/assets/{Builds.c3fd9633.js → Builds.f3c7442c.js} +2 -2
- abstra_statics/dist/assets/{Card.38a860a4.js → Card.0899e9af.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.217756fb.js → CircularLoading.9f9e733d.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.36d9f25b.js +2 -0
- abstra_statics/dist/assets/{ConnectorsView.121898a9.js → ConnectorsView.9d99a93b.js} +2 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.7061772f.js +2 -0
- abstra_statics/dist/assets/ContentLayout.da1fff81.js +2 -0
- abstra_statics/dist/assets/CrudView.5b250a71.js +2 -0
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js → DocsButton.vue_vue_type_script_setup_true_lang.88300c0e.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.fba78ce9.js → EditorLogin.440d3dc5.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.1a9ccb13.js → EditorsView.c81d5c0a.js} +2 -2
- abstra_statics/dist/assets/EnvVars.688f662d.js +2 -0
- abstra_statics/dist/assets/{Error.5bd293cc.js → Error.8fd45945.js} +2 -2
- abstra_statics/dist/assets/{ExclamationCircleOutlined.5d5c3f30.js → ExclamationCircleOutlined.ea15dcd1.js} +2 -2
- abstra_statics/dist/assets/{Files.c4ce443f.js → Files.2ef1fd75.js} +2 -2
- abstra_statics/dist/assets/Form.4047a0fe.js +2 -0
- abstra_statics/dist/assets/Form.7d1b0423.css +1 -0
- abstra_statics/dist/assets/FormRunner.8d0c448a.js +2 -0
- abstra_statics/dist/assets/Home.586b0b6c.js +2 -0
- abstra_statics/dist/assets/{Home.4eff6ce9.js → Home.c4610516.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.12120ff7.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.3c83d190.js +2 -0
- abstra_statics/dist/assets/{Login.ecec1ff2.js → Login.2d19f80c.js} +2 -2
- abstra_statics/dist/assets/Login.de9c56a5.js +2 -0
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js → Login.vue_vue_type_script_setup_true_lang.8d4054f1.js} +2 -2
- abstra_statics/dist/assets/Logo.3f68eae2.js +2 -0
- abstra_statics/dist/assets/{Logs.c1f01b05.js → Logs.1f1770c9.js} +2 -2
- abstra_statics/dist/assets/LogsController.61f8e22d.css +1 -0
- abstra_statics/dist/assets/LogsController.e88bddfb.js +2 -0
- abstra_statics/dist/assets/Main.a79ded11.js +2 -0
- abstra_statics/dist/assets/MockForm.025d99f9.css +1 -0
- abstra_statics/dist/assets/{MockForm.9b7a0df3.js → MockForm.aa5ad3bb.js} +2 -2
- abstra_statics/dist/assets/Navbar.2529c5ae.js +2 -0
- abstra_statics/dist/assets/NewEditor.2603174c.js +8 -0
- abstra_statics/dist/assets/{NewEditor.e3cfeb2c.css → NewEditor.5ebf7c09.css} +1 -1
- abstra_statics/dist/assets/OidcLoginCallback.7ed0c484.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.7303c2ab.js +2 -0
- abstra_statics/dist/assets/{OmniChat.c3de8733.js → OmniChat.3d03d97a.js} +2 -2
- abstra_statics/dist/assets/{OnboardingView.6cda1bc5.js → OnboardingView.4b747af0.js} +2 -2
- abstra_statics/dist/assets/{Organization.c36206b7.js → Organization.aab680aa.js} +2 -2
- abstra_statics/dist/assets/Organizations.2340795a.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.9e570570.js → PhArrowCounterClockwise.vue.d9dd0137.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.bcbdb6e7.js → PhArrowSquareOut.vue.93df49c1.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.4bd682d8.js → PhClockCounterClockwise.vue.f1f419a1.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.29934bc2.js → PhCopy.vue.e59eaa52.js} +2 -2
- abstra_statics/dist/assets/PhCopySimple.vue.11467aaf.js +2 -0
- abstra_statics/dist/assets/{PhCube.vue.0fe2c514.js → PhCube.vue.e29a6bae.js} +2 -2
- abstra_statics/dist/assets/{PhDatabase.vue.fdfb515c.js → PhDatabase.vue.e22926ed.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.7a0e0638.js → PhDotsThreeVertical.vue.fff5caa8.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.f1245c40.js → PhDownloadSimple.vue.e11671c2.js} +2 -2
- abstra_statics/dist/assets/{PhFileArrowUp.vue.c292afe1.js → PhFileArrowUp.vue.9f743e50.js} +2 -2
- abstra_statics/dist/assets/{PhFilePlus.vue.c39ff1a9.js → PhFilePlus.vue.b2e51e09.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.bc40161e.js → PhFolderPlus.vue.8742ea4d.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.0feed515.js → PhGear.vue.1c3eb148.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.15a9e64e.js → PhKey.vue.8702106e.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.a7219766.js → PhPencil.vue.74eafe52.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.15a2b403.js → PhPencilSimple.vue.87355169.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.7155b91f.js → PhRocket.vue.d4a6ad6a.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.2af17bd7.js → PhSignOut.vue.83e5f761.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.c7f06cac.js → PhSparkle.vue.d2009d46.js} +2 -2
- abstra_statics/dist/assets/{PhTranslate.vue.2ce651a6.js → PhTranslate.vue.bec980b1.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.2942df75.js → PhUsersThree.vue.dd23f9fb.js} +2 -2
- abstra_statics/dist/assets/{PhWarningCircle.vue.05a40bc4.js → PhWarningCircle.vue.27414f28.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.e4752384.js → PhWebhooksLogo.vue.ff084558.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.00af5968.js → PlayerConfigProvider.ca40f824.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.117f184b.js → PlayerNavbar.393e1a48.js} +2 -2
- abstra_statics/dist/assets/{Project.66111161.js → Project.72b53439.js} +2 -2
- abstra_statics/dist/assets/{ProjectLogin.d9bb1f86.js → ProjectLogin.26c92806.js} +2 -2
- abstra_statics/dist/assets/ProjectSettings.70e7668b.js +2 -0
- abstra_statics/dist/assets/ProjectsView.83667357.js +2 -0
- abstra_statics/dist/assets/{SaveButton.c3f2a4bb.js → SaveButton.56d96f71.js} +2 -2
- abstra_statics/dist/assets/{ScrollArea.vue_vue_type_script_setup_true_lang.cb5567cd.js → ScrollArea.vue_vue_type_script_setup_true_lang.a29d9bc5.js} +2 -2
- abstra_statics/dist/assets/{Sidebar.1c4e35be.js → Sidebar.fd8a9f17.js} +2 -2
- abstra_statics/dist/assets/{Sql.8d31ec23.js → Sql.92e57cd8.js} +3 -3
- abstra_statics/dist/assets/Steps.8d0493a8.js +2 -0
- abstra_statics/dist/assets/TableCard.75d256c8.js +2 -0
- abstra_statics/dist/assets/{TableEditor.ba7a8b6a.js → TableEditor.de62b5ae.js} +2 -2
- abstra_statics/dist/assets/{Tables.113960f2.js → Tables.f33c00ab.js} +2 -2
- abstra_statics/dist/assets/{TablesDiagram.8e6d1e89.js → TablesDiagram.621aac9c.js} +3 -3
- abstra_statics/dist/assets/{TablesTabs.vue_vue_type_script_setup_true_lang.5cc96b0d.js → TablesTabs.vue_vue_type_script_setup_true_lang.db87820d.js} +2 -2
- abstra_statics/dist/assets/{Tasks.90846020.js → Tasks.e7e8affd.js} +2 -2
- abstra_statics/dist/assets/{UploadOutlined.518baf9a.js → UploadOutlined.76665096.js} +2 -2
- abstra_statics/dist/assets/{View.ded6b355.js → View.2d181255.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.285b5e2c.js → View.vue_vue_type_script_setup_true_lang.c02bf815.js} +2 -2
- abstra_statics/dist/assets/{Watermark.5071a4b2.js → Watermark.34db0ee5.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.18ece735.js → WebEditor.615c5ed3.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.d7362a8d.js +2 -0
- abstra_statics/dist/assets/WorkflowViewer.0a209003.css +1 -0
- abstra_statics/dist/assets/WorkflowViewer.e89c0824.js +2 -0
- abstra_statics/dist/assets/ant-design.24becb3a.js +2 -0
- abstra_statics/dist/assets/apiKey.846016a7.js +2 -0
- abstra_statics/dist/assets/asyncComputed.78dd1715.js +2 -0
- abstra_statics/dist/assets/{build.a8637e29.js → build.8774fc90.js} +2 -2
- abstra_statics/dist/assets/{colorHelpers.8ba18214.js → colorHelpers.d8c19ea3.js} +2 -2
- abstra_statics/dist/assets/{console.2a5ed51a.js → console.984bbe98.js} +2 -2
- abstra_statics/dist/assets/constants.3b7395d7.js +2 -0
- abstra_statics/dist/assets/contracts.generated.31740563.js +2 -0
- abstra_statics/dist/assets/{cssMode.6c4ccf50.js → cssMode.f4a00eca.js} +2 -2
- abstra_statics/dist/assets/{datetime.89495471.js → datetime.01b86df2.js} +2 -2
- abstra_statics/dist/assets/dayjs.26942e0e.js +2 -0
- abstra_statics/dist/assets/editor.a6369f16.js +2 -0
- abstra_statics/dist/assets/editor.main.a0763b31.js +2 -0
- abstra_statics/dist/assets/fetch.33e85d9b.js +2 -0
- abstra_statics/dist/assets/{files.8999afd5.js → files.c547743b.js} +2 -2
- abstra_statics/dist/assets/{folder.81ef8619.js → folder.57131245.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.559f77f2.js → freemarker2.7a4cfae0.js} +2 -2
- abstra_statics/dist/assets/{handlebars.8d101b7c.js → handlebars.db4a27de.js} +2 -2
- abstra_statics/dist/assets/{html.b3e7d3ab.js → html.f4b3970c.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.2305b1bb.js → htmlMode.631923d5.js} +2 -2
- abstra_statics/dist/assets/{index.bc97991a.js → index.0a1e5d8b.js} +2 -2
- abstra_statics/dist/assets/{index.da4f9d54.js → index.12c03275.js} +2 -2
- abstra_statics/dist/assets/{index.e5cb42a1.js → index.2141f0e8.js} +2 -2
- abstra_statics/dist/assets/{index.f2beb20d.js → index.2f74579e.js} +2 -2
- abstra_statics/dist/assets/{index.b74c262c.js → index.30fbc3f5.js} +2 -2
- abstra_statics/dist/assets/{index.f6171691.js → index.6f45b384.js} +5 -5
- abstra_statics/dist/assets/{index.d809956c.js → index.7f04c017.js} +2 -2
- abstra_statics/dist/assets/{index.71eb83f3.js → index.8e10d0e4.js} +2 -2
- abstra_statics/dist/assets/{index.90acf038.js → index.fb17f22c.js} +2 -2
- abstra_statics/dist/assets/{javascript.3000fc25.js → javascript.b2197abc.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.7bbb508d.js → jsonMode.8f2810a6.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.c5760184.css → jwt-decode.cfe2994b.css} +1 -1
- abstra_statics/dist/assets/{jwt-decode.esm.c9c37cdc.js → jwt-decode.esm.5ee65524.js} +133 -99
- abstra_statics/dist/assets/{linters.7fec18d9.js → linters.7d520e27.js} +2 -2
- abstra_statics/dist/assets/{liquid.b4ac9aaf.js → liquid.d3e68b2e.js} +3 -3
- abstra_statics/dist/assets/member.0ebe904c.js +2 -0
- abstra_statics/dist/assets/{metadata.e627ddda.js → metadata.db332d21.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.508e8ece.js → omniChatStore.cf2158f0.js} +2 -2
- abstra_statics/dist/assets/{organization.cd03f9a8.js → organization.23b0aa74.js} +2 -2
- abstra_statics/dist/assets/{os.f08724fb.js → os.e0510e90.js} +2 -2
- abstra_statics/dist/assets/player.78bcc85c.js +2 -0
- abstra_statics/dist/assets/{plotly.min.50ebb925.js → plotly.min.f771780a.js} +2 -2
- abstra_statics/dist/assets/polling.5339a00f.js +2 -0
- abstra_statics/dist/assets/{project.9a068e8d.js → project.afe4bf99.js} +2 -2
- abstra_statics/dist/assets/{python.51a7c648.js → python.d8c220ed.js} +3 -3
- abstra_statics/dist/assets/{razor.99323f5f.js → razor.97fa5198.js} +2 -2
- abstra_statics/dist/assets/{record.a33d29b1.js → record.dd367e66.js} +2 -2
- abstra_statics/dist/assets/{redirect.42bf4f0a.js → redirect.970a0b6b.js} +2 -2
- abstra_statics/dist/assets/{repository.94fb77c7.js → repository.214607cb.js} +2 -2
- abstra_statics/dist/assets/{repository.c0d70cb2.js → repository.c874615c.js} +2 -2
- abstra_statics/dist/assets/{repository.5190b94f.js → repository.d889eafa.js} +2 -2
- abstra_statics/dist/assets/{router.a8616541.js → router.9781de48.js} +3 -3
- abstra_statics/dist/assets/router.e3b4de3c.js +2 -0
- abstra_statics/dist/assets/{string.8fab6b53.js → string.0d721ad6.js} +2 -2
- abstra_statics/dist/assets/{tables.2e1c934b.js → tables.45712b3f.js} +2 -2
- abstra_statics/dist/assets/tasksController.538cacf5.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.6544a728.js → toggleHighContrast.daf44fef.js} +7 -7
- abstra_statics/dist/assets/{tsMode.922e04bb.js → tsMode.b785363f.js} +2 -2
- abstra_statics/dist/assets/{typescript.1b4f8286.js → typescript.8bb42736.js} +2 -2
- abstra_statics/dist/assets/url.804625c6.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.ffe057d1.js → useCodebaseEvents.e9e5d343.js} +2 -2
- abstra_statics/dist/assets/useTables.2441f2b4.js +2 -0
- abstra_statics/dist/assets/userStore.9eb65729.js +2 -0
- abstra_statics/dist/assets/uuid.bc394306.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.3e9183ec.js → vue-flow-background.a4e5e1cd.js} +2 -2
- abstra_statics/dist/assets/{vue-flow-core.41c647da.js → vue-flow-core.bc9175da.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.36e79a95.js → vue-quill.esm-bundler.12c58800.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.5a435520.js → workspaceStore.18d1ed9a.js} +2 -2
- abstra_statics/dist/assets/{xml.c1692f52.js → xml.1dacd023.js} +3 -3
- abstra_statics/dist/assets/{yaml.244444c1.js → yaml.e841ac1c.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +14 -14
- abstra_statics/dist/player.html +10 -10
- abstra_statics/dist/assets/App.45396b70.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.db5596a1.js +0 -2
- abstra_statics/dist/assets/BaseLayout.135a51d9.js +0 -2
- abstra_statics/dist/assets/Billing.622c9155.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.4c4707d8.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.502d779a.js +0 -2
- abstra_statics/dist/assets/ContentLayout.b1c94c2b.js +0 -2
- abstra_statics/dist/assets/CrudView.75a430a4.js +0 -2
- abstra_statics/dist/assets/EnvVars.d77957ea.js +0 -2
- abstra_statics/dist/assets/Form.7493bc0a.css +0 -1
- abstra_statics/dist/assets/Form.a4787001.js +0 -2
- abstra_statics/dist/assets/FormRunner.73650f9e.js +0 -2
- abstra_statics/dist/assets/Home.19a2303b.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.97fa8f2e.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.e309ab16.js +0 -2
- abstra_statics/dist/assets/Login.632cada3.js +0 -2
- abstra_statics/dist/assets/Logo.d77d5637.js +0 -2
- abstra_statics/dist/assets/LogsController.0ff97ed4.css +0 -1
- abstra_statics/dist/assets/LogsController.2dceb3d3.js +0 -2
- abstra_statics/dist/assets/Main.44b7640e.js +0 -2
- abstra_statics/dist/assets/MockForm.e410c2c1.css +0 -1
- abstra_statics/dist/assets/Navbar.0951ed6d.js +0 -2
- abstra_statics/dist/assets/NewEditor.d65a400f.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.66b0f38a.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.48d8429a.js +0 -2
- abstra_statics/dist/assets/Organizations.2b1c6c65.js +0 -2
- abstra_statics/dist/assets/PhCopySimple.vue.0241af8c.js +0 -2
- abstra_statics/dist/assets/ProjectSettings.f8c6f60a.js +0 -2
- abstra_statics/dist/assets/ProjectsView.32f6ccff.js +0 -2
- abstra_statics/dist/assets/Steps.687763a5.js +0 -2
- abstra_statics/dist/assets/TableCard.8c99a870.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.88a4f27f.js +0 -2
- abstra_statics/dist/assets/WorkflowViewer.3b6aee8e.css +0 -1
- abstra_statics/dist/assets/WorkflowViewer.778c401d.js +0 -2
- abstra_statics/dist/assets/ant-design.4efc9ccd.js +0 -2
- abstra_statics/dist/assets/apiKey.bd946d8c.js +0 -2
- abstra_statics/dist/assets/asyncComputed.7bc1692e.js +0 -2
- abstra_statics/dist/assets/constants.534f67bc.js +0 -2
- abstra_statics/dist/assets/contracts.generated.8ad36e63.js +0 -2
- abstra_statics/dist/assets/dayjs.304f38f8.js +0 -2
- abstra_statics/dist/assets/editor.c1a1bd33.js +0 -2
- abstra_statics/dist/assets/editor.main.84e237cf.js +0 -2
- abstra_statics/dist/assets/fetch.452c58e5.js +0 -2
- abstra_statics/dist/assets/member.3c12efee.js +0 -2
- abstra_statics/dist/assets/player.7362caf4.js +0 -2
- abstra_statics/dist/assets/polling.4db5ee9a.js +0 -2
- abstra_statics/dist/assets/router.4168cc71.js +0 -2
- abstra_statics/dist/assets/tasksController.1feffcfe.js +0 -4
- abstra_statics/dist/assets/url.9e033350.js +0 -2
- abstra_statics/dist/assets/useTables.5fffa3f1.js +0 -2
- abstra_statics/dist/assets/userStore.d962fba4.js +0 -2
- abstra_statics/dist/assets/uuid.8581bc03.js +0 -2
- {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/WHEEL +0 -0
- {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/entry_points.txt +0 -0
- {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as o,o as d,ac as s,e as l,ae as r,eh as n,_ as f}from"./jwt-decode.esm.c9c37cdc.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]="31d882e4-d872-46ea-9eb0-597a53adafb3",t._sentryDebugIdIdentifier="sentry-dbid-31d882e4-d872-46ea-9eb0-597a53adafb3")}catch{}})();const i=o({__name:"ContentLayout",props:{fullWidth:{type:Boolean},noPadding:{type:Boolean}},setup(t){return(e,a)=>(d(),s("div",{class:n(["content-layout",{"no-padding":e.noPadding}])},[l("div",{class:n(["centered-layout",{"full-width":e.fullWidth}])},[r(e.$slots,"default",{},void 0,!0)],2)],2))}});const _=f(i,[["__scopeId","data-v-fb4d67f9"]]);export{_ as C};
|
|
2
|
-
//# sourceMappingURL=ContentLayout.b1c94c2b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{B as O,a as M,g as L,r as Y}from"./router.a8616541.js";import{_ as Q}from"./DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js";import{i as G}from"./url.9e033350.js";import{G as J}from"./PhDotsThreeVertical.vue.7a0e0638.js";import{d as z,i as D,al as W,r as N,a as r,b as a,u as n,cQ as q,o as s,f as d,ac as A,ej as T,cE as H,bQ as X,cJ as Z,aI as K,aY as B,cY as ee,g as y,t as f,h as _,cD as te,M as le,c as ae,j as ne,dj as U,A as se,ae as x,de as F,bY as oe,d0 as ue,ad as re,df as C,d9 as j,bW as ie,bE as pe,bD as ce,cS as E,e as de,el as P,S as ye,_ as fe}from"./jwt-decode.esm.c9c37cdc.js";import{A as R}from"./index.bc97991a.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[m]="023f9df8-f909-4240-ad4f-3574c3c831d9",g._sentryDebugIdIdentifier="sentry-dbid-023f9df8-f909-4240-ad4f-3574c3c831d9")}catch{}})();const me=z({__name:"CreationModal",props:{entityName:{},fields:{},create:{type:Function}},setup(g,{expose:m}){const b=g,I=D.translate("i18n_creationmodal_title",null,{entityName:b.entityName}),c=W({inputValue:{}}),w=N(!1),k=()=>w.value=!0,V=()=>{w.value=!1,c.inputValue={}},S=async()=>{try{await b.create(c.inputValue),V()}catch(p){p instanceof Error&&q.error({message:D.translate("i18n_creationmodal_failed_to_create"),description:p.message})}},t=(p,u)=>{const e=p.target.value,l=b.fields.find(o=>o.key===u);l!=null&&l.format?c.inputValue[u]=l.format(e):c.inputValue[u]=e},v=(p,u)=>{const e=p.target.value,l=b.fields.find(o=>o.key===u);l!=null&&l.blur?c.inputValue[u]=l.blur(e):c.inputValue[u]=e};return m({open:k,close:V}),(p,u)=>(s(),r(n(le),{open:w.value,title:n(I),onCancel:V,onOk:S},{default:a(()=>[d(n(te),{layout:"vertical"},{default:a(()=>[(s(!0),A(B,null,T(p.fields,e=>{var l;return s(),r(n(H),{key:e.key,label:e.label,help:(l=e.hint)==null?void 0:l.call(e,c.inputValue[e.key]),tooltip:e.tooltip},{default:a(()=>{var o,h,$;return[!e.type||e.type==="text"||e.type==="password"?(s(),r(n(X),{key:0,value:c.inputValue[e.key],"onUpdate:value":i=>c.inputValue[e.key]=i,placeholder:(o=e.placeholder)!=null?o:"",type:(h=e.type)!=null?h:"text",onInput:i=>t(i,e.key),onBlur:i=>v(i,e.key)},null,8,["value","onUpdate:value","placeholder","type","onInput","onBlur"])):e.type==="multiline-text"?(s(),r(n(Z),{key:1,value:c.inputValue[e.key],"onUpdate:value":i=>c.inputValue[e.key]=i,placeholder:($=e.placeholder)!=null?$:"",onInput:i=>t(i,e.key),onBlur:i=>v(i,e.key)},null,8,["value","onUpdate:value","placeholder","onInput","onBlur"])):e.type==="select"?(s(),r(n(K),{key:2,value:c.inputValue[e.key],"onUpdate:value":i=>c.inputValue[e.key]=i,mode:e.mode},{default:a(()=>[(s(!0),A(B,null,T(e.options,i=>(s(),r(n(ee),{key:typeof i=="string"?i:i.value,value:typeof i=="string"?i:i.value},{default:a(()=>[y(f(typeof i=="string"?i:i.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","mode"])):_("",!0)]}),_:2},1032,["label","help","tooltip"])}),128))]),_:1})]),_:1},8,["open","title"]))}}),ve={class:"action-warning"},_e=z({__name:"CrudView",props:{table:{},loading:{type:Boolean},title:{},emptyTitle:{},entityName:{},description:{},create:{type:Function},createButtonText:{},docsPath:{},live:{type:Boolean},fields:{}},setup(g){const m=g,b=N(null),I=(t,v)=>{var u;const p=(u=m.table.rows[0])==null?void 0:u.cells[v].type;if(!(p==="actions"||p==="slot"))return(e,l)=>c(e,l,v)},c=(t,v,p)=>{const u=t.cells[p],e=v.cells[p];return u.type==="text"&&e.type==="text"||u.type==="tag"&&e.type==="tag"?u.text.localeCompare(e.text):u.type==="tags"&&e.type==="tags"?u.tags[0].text.localeCompare(e.tags[0].text):u.type==="secret"&&e.type==="secret"||u.type==="link"&&e.type==="link"?u.text.localeCompare(e.text):(u.type==="actions"&&e.type==="actions",0)},w=async()=>{var t;m.fields?(t=b.value)==null||t.open():m.create&&await m.create({})},k=N(!1);async function V(t,v){if(!k.value){k.value=!0;try{"onClick"in t?await t.onClick({key:v.key}):"link"in t&&(typeof t.link=="string"&&G(t.link)?open(t.link,"_blank"):Y.push(t.link))}finally{k.value=!1}}}const S=ae(()=>({"--columnCount":`${m.table.columns.length}`}));return(t,v)=>{const p=ne("RouterLink");return s(),A(B,null,[d(n(R),{direction:"vertical",class:"crud-view"},{default:a(()=>{var u;return[d(n(U),{align:"center",justify:"space-between"},{default:a(()=>[t.title?(s(),r(n(se),{key:0},{default:a(()=>[y(f(t.title),1)]),_:1})):_("",!0),x(t.$slots,"more",{},void 0,!0)]),_:3}),t.description?(s(),r(n(F),{key:0},{default:a(()=>[y(f(t.description)+" ",1),x(t.$slots,"description",{},void 0,!0),t.docsPath?(s(),r(Q,{key:0,path:t.docsPath},null,8,["path"])):_("",!0)]),_:3})):_("",!0),d(n(U),{gap:"middle"},{default:a(()=>[t.createButtonText?(s(),r(n(oe),{key:0,type:"primary",onClick:w},{default:a(()=>[y(f(t.createButtonText),1)]),_:1})):_("",!0),x(t.$slots,"secondary",{},void 0,!0)]),_:3}),x(t.$slots,"extra",{},void 0,!0),d(n(ue),{"filter-dropdown":!0,size:"small",style:re(S.value),"data-source":t.table.rows,loading:k.value||t.loading&&!t.live,height:400,columns:(u=t.table.columns)==null?void 0:u.map((e,l)=>{var o;return{...e,key:l,filtered:!0,align:(o=e.align)!=null?o:"center",sorter:I(e,l)}})},{emptyText:a(()=>[y(f(t.emptyTitle),1)]),headerCell:a(e=>[y(f(e.title),1)]),bodyCell:a(({column:{key:e},record:l})=>[l.cells[e].type==="slot"?x(t.$slots,l.cells[e].key,{key:0,payload:l.cells[e].payload},void 0,!0):(s(),r(n(E),{key:1,open:l.cells[e].hover?void 0:!1},{content:a(()=>[d(n(F),{style:{width:"300px",overflow:"auto","font-family":"monospace"},copyable:"",content:l.cells[e].hover},null,8,["content"])]),default:a(()=>[l.cells[e].type==="text"?(s(),r(n(C),{key:0,secondary:l.cells[e].secondary,code:l.cells[e].code},{default:a(()=>[d(n(O),{dot:l.cells[e].contentType==="warning",color:"#faad14"},{default:a(()=>[y(f(l.cells[e].text),1)]),_:2},1032,["dot"])]),_:2},1032,["secondary","code"])):l.cells[e].type==="secret"?(s(),r(n(C),{key:1,copyable:{text:l.cells[e].text}},{default:a(()=>[y(" ******** ")]),_:2},1032,["copyable"])):l.cells[e].type==="tag"?(s(),r(n(j),{key:2,color:l.cells[e].tagColor},{default:a(()=>[y(f(l.cells[e].text),1)]),_:2},1032,["color"])):l.cells[e].type==="tags"?(s(),r(n(R),{key:3},{default:a(()=>[(s(!0),A(B,null,T(l.cells[e].tags,(o,h)=>(s(),r(n(j),{key:h,color:o.color},{default:a(()=>[y(f(o.text),1)]),_:2},1032,["color"]))),128))]),_:2},1024)):l.cells[e].type==="link"?(s(),r(p,{key:4,to:l.cells[e].to},{default:a(()=>[y(f(l.cells[e].text),1)]),_:2},1032,["to"])):l.cells[e].type==="actions"?(s(),r(n(ie),{key:5},{overlay:a(()=>[d(n(pe),{disabled:k.value},{default:a(()=>[(s(!0),A(B,null,T(l.cells[e].actions.filter(o=>!o.hide),(o,h)=>(s(),r(n(ce),{key:h,danger:o.dangerous,onClick:$=>V(o,l)},{default:a(()=>[o.popoverMessage?(s(),r(n(E),{key:0,placement:"left"},{content:a(()=>[de("div",ve,[d(n(C),null,{default:a(()=>[y(f(o.popoverMessage),1)]),_:2},1024)])]),default:a(()=>[d(n(C),{disabled:o.disabled,class:"action-item"},{default:a(()=>[o.icon?(s(),r(P(o.icon),{key:0})):_("",!0),y(" "+f(o.label),1)]),_:2},1032,["disabled"])]),_:2},1024)):(s(),r(n(C),{key:1,disabled:o.disabled,class:"action-item"},{default:a(()=>[o.icon?(s(),r(P(o.icon),{key:0})):_("",!0),y(" "+f(o.label),1)]),_:2},1032,["disabled"]))]),_:2},1032,["danger","onClick"]))),128))]),_:2},1032,["disabled"])]),default:a(()=>[d(n(J),{style:{cursor:"pointer"},size:"25px"})]),_:2},1024)):_("",!0)]),_:2},1032,["open"]))]),footer:a(()=>[t.live?(s(),r(n(L),{key:0,justify:"end",gutter:10},{default:a(()=>[d(n(M),{style:{display:"flex","align-items":"center"}},{default:a(()=>[d(n(ye),{size:"small",style:{display:"flex","align-items":"center"}})]),_:1}),d(n(M),null,{default:a(()=>[d(n(C),null,{default:a(()=>[y(f(n(D).translate("i18n_crudview_auto_updating")),1)]),_:1})]),_:1})]),_:1})):_("",!0)]),_:3},8,["style","data-source","loading","columns"])]}),_:3}),t.fields&&t.create?(s(),r(me,{key:0,ref_key:"modalRef",ref:b,fields:t.fields,"entity-name":t.entityName,create:t.create},null,8,["fields","entity-name","create"])):_("",!0)],64)}}});const Ve=fe(_e,[["__scopeId","data-v-21fb039e"]]);export{Ve as C};
|
|
2
|
-
//# sourceMappingURL=CrudView.75a430a4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as i,C as n}from"./View.vue_vue_type_script_setup_true_lang.285b5e2c.js";import{d as p,ei as a,a as s,u as m,o as f}from"./jwt-decode.esm.c9c37cdc.js";import"./router.a8616541.js";import"./index.da4f9d54.js";import"./fetch.452c58e5.js";import"./record.a33d29b1.js";import"./SaveButton.c3f2a4bb.js";import"./ExclamationCircleOutlined.5d5c3f30.js";import"./CrudView.75a430a4.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js";import"./constants.534f67bc.js";import"./url.9e033350.js";import"./PhDotsThreeVertical.vue.7a0e0638.js";import"./index.bc97991a.js";import"./asyncComputed.7bc1692e.js";import"./omniChatStore.508e8ece.js";import"./uuid.8581bc03.js";import"./PhCopySimple.vue.0241af8c.js";import"./PhPencil.vue.a7219766.js";import"./useCodebaseEvents.ffe057d1.js";import"./contracts.generated.8ad36e63.js";import"./index.b74c262c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="5a9bfa91-f0a5-408e-917b-fa2abcb87298",o._sentryDebugIdIdentifier="sentry-dbid-5a9bfa91-f0a5-408e-917b-fa2abcb87298")}catch{}})();const A=p({__name:"EnvVars",setup(o){const t=a().params.projectId,e=new n(t);return(c,d)=>(f(),s(i,{"env-var-repository":m(e),mode:"console"},null,8,["env-var-repository"]))}});export{A as default};
|
|
2
|
-
//# sourceMappingURL=EnvVars.d77957ea.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-972fe12c]:root{--abstra-main-color-dark: #343b46}.loading[data-v-972fe12c]{position:absolute;top:0;left:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as D}from"./userStore.d962fba4.js";import{b as E,c as C,d as R}from"./FormRunner.73650f9e.js";import{d as k,ei as S,ec as U,al as F,r as A,w as I,c as L,aR as W,U as V,R as x,u as o,ac as B,f as K,a as M,h as N,o as y,_ as T}from"./jwt-decode.esm.c9c37cdc.js";import{r as q}from"./redirect.42bf4f0a.js";import{a as G}from"./asyncComputed.7bc1692e.js";import{u as h}from"./uuid.8581bc03.js";import{L as P}from"./CircularLoading.217756fb.js";import{f as j}from"./workspaceStore.5a435520.js";import"./Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js";import"./Logo.d77d5637.js";import"./string.8fab6b53.js";import"./index.b74c262c.js";import"./Steps.687763a5.js";import"./index.71eb83f3.js";import"./Watermark.5071a4b2.js";import"./constants.534f67bc.js";import"./url.9e033350.js";import"./colorHelpers.8ba18214.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[n]="f8a59b5a-962a-4232-b8e0-5e68a76819a2",u._sentryDebugIdIdentifier="sentry-dbid-f8a59b5a-962a-4232-b8e0-5e68a76819a2")}catch{}})();const z={key:0,class:"loading"},H=k({__name:"Form",setup(u){const n=S(),c=U(),p=F({playerKey:h()}),g=D(),i=A(null);I(n,()=>{n.name==="form"&&w()});const{loading:d,result:t,error:f,refetch:w}=G(async()=>{p.playerKey=h();const r=n.path.slice(1),e=await j(r);if(!e){c.push({name:"error",params:{status:"404"}});return}const a=new C({formRunnerData:e,logService:null,connectionManager:new R(e.id,"player",n.query),onRedirect:_,onFormStart:()=>{},onFormEnd:()=>{},onStackTraceUpdate:null,onStateUpdate:l=>i.value=l}),s=a.getState();return i.value=s.formState,{runnerData:e,controller:a}}),b=L(()=>{const r=!d,e=!!f,a=!t||i.value===null;return r&&(e||a)});W(()=>{var r,e,a,s,l;b.value&&c.push({name:"error",params:{status:"500"}}),!!((r=t.value)!=null&&r.runnerData)&&(e=t.value)!=null&&e.runnerData&&(document.title=(l=(a=t.value)==null?void 0:a.runnerData.welcomeTitle)!=null?l:(s=t.value)==null?void 0:s.runnerData.title)});function _(r,e){window.removeEventListener("beforeunload",m),q("player",c,r,e)}V(async()=>{window.addEventListener("beforeunload",m)}),x(()=>{window.removeEventListener("beforeunload",m)});const m=r=>{var e;if((e=t.value)!=null&&e.controller.handleCloseAttempt())return r.preventDefault(),""};return(r,e)=>{var a,s,l,v;return o(d)?(y(),B("div",z,[K(P)])):o(t)&&o(t).runnerData&&i.value&&!o(f)&&!o(d)?(y(),M(E,{key:p.playerKey,"form-runner-data":o(t).runnerData,"form-state":i.value,"is-preview":!1,"user-email":o(g).email,onRedirect:_,onActionClicked:(a=o(t))==null?void 0:a.controller.handleActionClick,onUpdateWidgetErrors:(s=o(t))==null?void 0:s.controller.updateWidgetFrontendErrors,onUpdateWidgetValue:(l=o(t))==null?void 0:l.controller.updateWidgetValue,onAuthComplete:(v=o(t))==null?void 0:v.controller.handleAuthComplete},null,8,["form-runner-data","form-state","user-email","onActionClicked","onUpdateWidgetErrors","onUpdateWidgetValue","onAuthComplete"])):N("",!0)}}});const de=T(H,[["__scopeId","data-v-972fe12c"]]);export{de as default};
|
|
2
|
-
//# sourceMappingURL=Form.a4787001.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var se=Object.defineProperty;var ie=(a,e,t)=>e in a?se(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var r=(a,e,t)=>(ie(a,typeof e!="symbol"?e+"":e,t),t);import{u as useUserStore}from"./userStore.d962fba4.js";import{d as defineComponent,at as inject,c as computed,o as openBlock,ac as createElementBlock,ae as renderSlot,h as createCommentVNode,ed as mergeProps,e as createBaseVNode,en as lodash,i as i18nProvider,a as createBlock,el as resolveDynamicComponent,_ as _export_sfc,b as withCtx,u as unref,g as createTextVNode,t as toDisplayString,r as ref,w as watch,f as createVNode,eh as normalizeClass,eZ as StartWidget,e_ as EndWidget,e$ as ErrorWidget,aY as Fragment,ej as renderList,f0 as StyleProvider,eM as withKeys,bY as Button}from"./jwt-decode.esm.c9c37cdc.js";import{_ as _sfc_main$3}from"./Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js";import{u as useWorkspaceStore}from"./workspaceStore.5a435520.js";import{L as LoadingIndicator}from"./CircularLoading.217756fb.js";import{S as Steps}from"./Steps.687763a5.js";import{W as Watermark}from"./Watermark.5071a4b2.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]="53633b7e-1227-454f-8bca-f164800fd67e",a._sentryDebugIdIdentifier="sentry-dbid-53633b7e-1227-454f-8bca-f164800fd67e")}catch{}})();const Z=["width","height","fill","transform"],g={key:0},m=createBaseVNode("path",{d:"M112,36a12,12,0,0,0-12,12V60H24A20,20,0,0,0,4,80v96a20,20,0,0,0,20,20h76v12a12,12,0,0,0,24,0V48A12,12,0,0,0,112,36ZM28,172V84h72v88ZM252,80v96a20,20,0,0,1-20,20H152a12,12,0,0,1,0-24h76V84H152a12,12,0,0,1,0-24h80A20,20,0,0,1,252,80ZM88,112a12,12,0,0,1-12,12v20a12,12,0,0,1-24,0V124a12,12,0,0,1,0-24H76A12,12,0,0,1,88,112Z"},null,-1),y=[m],f={key:1},w=createBaseVNode("path",{d:"M240,80v96a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H232A8,8,0,0,1,240,80Z",opacity:"0.2"},null,-1),k=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),x=[w,k],S={key:2},z=createBaseVNode("path",{d:"M248,80v96a16,16,0,0,1-16,16H140a4,4,0,0,1-4-4V68a4,4,0,0,1,4-4h92A16,16,0,0,1,248,80ZM120,48V208a8,8,0,0,1-16,0V192H24A16,16,0,0,1,8,176V80A16,16,0,0,1,24,64h80V48a8,8,0,0,1,16,0ZM88,112a8,8,0,0,0-8-8H48a8,8,0,0,0,0,16h8v24a8,8,0,0,0,16,0V120h8A8,8,0,0,0,88,112Z"},null,-1),C=[z],B={key:3},b=createBaseVNode("path",{d:"M112,42a6,6,0,0,0-6,6V66H24A14,14,0,0,0,10,80v96a14,14,0,0,0,14,14h82v18a6,6,0,0,0,12,0V48A6,6,0,0,0,112,42ZM24,178a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h82V178ZM246,80v96a14,14,0,0,1-14,14H144a6,6,0,0,1,0-12h88a2,2,0,0,0,2-2V80a2,2,0,0,0-2-2H144a6,6,0,0,1,0-12h88A14,14,0,0,1,246,80ZM86,112a6,6,0,0,1-6,6H70v26a6,6,0,0,1-12,0V118H48a6,6,0,0,1,0-12H80A6,6,0,0,1,86,112Z"},null,-1),N=[b],E={key:4},P=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),W=[P],$={key:5},j=createBaseVNode("path",{d:"M112,44a4,4,0,0,0-4,4V68H24A12,12,0,0,0,12,80v96a12,12,0,0,0,12,12h84v20a4,4,0,0,0,8,0V48A4,4,0,0,0,112,44ZM24,180a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h84V180ZM244,80v96a12,12,0,0,1-12,12H144a4,4,0,0,1,0-8h88a4,4,0,0,0,4-4V80a4,4,0,0,0-4-4H144a4,4,0,0,1,0-8h88A12,12,0,0,1,244,80ZM84,112a4,4,0,0,1-4,4H68v28a4,4,0,0,1-8,0V116H48a4,4,0,0,1,0-8H80A4,4,0,0,1,84,112Z"},null,-1),T=[j],q={name:"PhTextbox"},G=defineComponent({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,t=inject("weight","regular"),n=inject("size","1em"),s=inject("color","currentColor"),i=inject("mirrored",!1),u=computed(()=>{var d;return(d=e.weight)!=null?d:t}),v=computed(()=>{var d;return(d=e.size)!=null?d:n}),_=computed(()=>{var d;return(d=e.color)!=null?d:s}),p=computed(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(d,F)=>(openBlock(),createElementBlock("svg",mergeProps({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:_.value,transform:p.value},d.$attrs),[renderSlot(d.$slots,"default"),u.value==="bold"?(openBlock(),createElementBlock("g",g,y)):u.value==="duotone"?(openBlock(),createElementBlock("g",f,x)):u.value==="fill"?(openBlock(),createElementBlock("g",S,C)):u.value==="light"?(openBlock(),createElementBlock("g",B,N)):u.value==="regular"?(openBlock(),createElementBlock("g",E,W)):u.value==="thin"?(openBlock(),createElementBlock("g",$,T)):createCommentVNode("",!0)],16,Z))}}),WS_CLOSING_STATES=[WebSocket.CLOSING,WebSocket.CLOSED],WS_CUSTOM_CLOSING_REASONS={FRONTEND_FORM_RESTART:4e3};class FormConnectionManager{constructor(e,t,n){r(this,"ws",null);r(this,"heartbeatInterval");r(this,"onOpen",null);r(this,"onMessage",null);r(this,"onClose",null);this.formId=e,this.environment=t,this.userQueryParams=n}get url(){const e=location.protocol==="https:"?"wss:":"ws:",t=this.environment=="editor"?"_editor/api/forms/socket":"_socket",n=new URLSearchParams({id:this.formId,...this.userQueryParams});return`${e}//${location.host}/${t}?${n}`}handleOpen(e){if(!this.onOpen)throw new Error("onOpen is not set");this.onOpen(),e()}handleClose(e){(e.code===1006||!e.wasClean)&&clearInterval(this.heartbeatInterval),this.onClose&&this.onClose(e)}handleMessage(e){if(!this.onMessage)throw new Error("onMessage is not set");const t=JSON.parse(e.data);this.onMessage(t)}sendHeartbeat(){!this.ws||this.ws.readyState!==this.ws.OPEN||this.send({type:"execution:heartbeat"})}async waitForConnection(e=5e3){const t=Date.now();for(;;){if(Date.now()-t>e)throw new Error("WebSocket connection timeout");if(!this.ws)throw new Error("WebSocket connection lost");if(this.ws.readyState===WebSocket.OPEN)return;if(this.ws.readyState===WebSocket.CLOSED||this.ws.readyState===WebSocket.CLOSING)throw new Error("WebSocket connection failed");await new Promise(n=>setTimeout(n,100))}}async send(e){if(!this.ws)throw new Error(`[FormRunnerController] failed sending msg ${e.type}: websocket is not connected`);if(WS_CLOSING_STATES.includes(this.ws.readyState)&&await this.newConnection(),this.ws.readyState===WebSocket.CONNECTING&&await this.waitForConnection(),this.ws&&this.ws.readyState===WebSocket.OPEN)this.ws.send(JSON.stringify(e));else throw new Error(`[FormRunnerController] failed sending msg ${e.type}: websocket is not in open state`)}async close(e){this.ws&&this.ws.close(WS_CUSTOM_CLOSING_REASONS[e],e)}async newConnection(e=3,t){if(e!=0)return new Promise(n=>{clearInterval(this.heartbeatInterval),this.ws=new WebSocket(this.url,t),this.ws.onopen=()=>this.handleOpen(n),this.ws.onclose=s=>this.handleClose(s),this.ws.onmessage=s=>this.handleMessage(s),this.heartbeatInterval=setInterval(()=>this.sendHeartbeat(),2e3)}).catch(()=>{this.newConnection(e-1)})}isEditorConnection(){return this.environment==="editor"}}function isInputWidget(a){return"key"in a&&"value"in a&&"errors"in a}const executeCode=($context,code)=>{let evaluatedCode;try{evaluatedCode=eval(code)}catch(a){throw console.error(`[Error: execute_js]: ${a.message}, context: ${$context}`),a}return isSerializable(evaluatedCode)?evaluatedCode:null};async function executeJs(a){return{type:"execute-js:response",value:await executeCode(a.context,a.code)}}const isSerializable=a=>{try{return JSON.stringify(a),!0}catch{return!1}},FORM_END_STATES=["default-end","page-end","error"],FORM_RUNNING_STATES=["authenticating","page","loading"];class FormRunnerController{constructor({formRunnerData:e,logService:t,connectionManager:n,onFormStart:s,onFormEnd:i,onRedirect:u,onStateUpdate:v,onStackTraceUpdate:_}){r(this,"connectionManager");r(this,"logService");r(this,"formRunnerData");r(this,"formState");r(this,"touchedWidgets",{});r(this,"messageSeq",0);r(this,"executionId",null);r(this,"onFormStart");r(this,"onFormEnd");r(this,"onRedirect");r(this,"onStackTraceUpdate");r(this,"onStateUpdate");r(this,"userStore");r(this,"responseHistory",[]);r(this,"lastResponseHistory",[]);r(this,"handlers",{"execution:started":[e=>this.handleExecutionStartedMessage(e)],"execution:ended":[e=>this.handleExecutionEndedMessage(e)],"form:render":[e=>this.handleRenderMessage(e)],"form:mount-page":[e=>this.handleMountPageMessage(e)],"form:update-page":[e=>this.handleUpdatePageMessage(e)],"auth:require-info":[e=>this.handleAuthRequireInfoMessage(e)],"auth:invalid-jwt":[e=>this.handleAuthInvalidJWTMessage(e)],"auth:valid-jwt":[e=>this.handleAuthValidTokenMessage(e)],"redirect:request":[e=>this.handleRedirectRequestMessage(e)],"execute-js:request":[e=>this.handleExecuteJSRequestMessage(e)]});r(this,"start",async()=>{this.setFormState({type:"loading"}),await this.connectionManager.newConnection(3,this.userStore.wsAuthHeaders)});r(this,"resetForm",async()=>{var e;(e=this.logService)==null||e.log({type:"stdout",log:"[Form reloaded]"}),await this.connectionManager.close("FRONTEND_FORM_RESTART"),this.resetState()});r(this,"reconnect",async()=>{this.resetState(),await this.start()});r(this,"resetState",()=>{this.messageSeq=0,this.setFormState({type:"waiting",actions:[this.getStartAction()]})});r(this,"debouncedFinishPageLoading",lodash.exports.debounce(()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!1}))})},500));r(this,"getStartAction",()=>this.actionFromMessage({key:"start",label:this.formRunnerData.startButtonText||i18nProvider.translateIfFound("i18n_start_action",this.formRunnerData.language)}));r(this,"getEndStateActions",()=>{const e=this.formRunnerData.restartButtonText||i18nProvider.translateIfFound("i18n_restart_action",this.formRunnerData.language);return this.formRunnerData.allowRestart?[this.actionFromMessage({key:"i18n_restart_action",label:e})]:[]});r(this,"getState",()=>({formState:this.formState}));r(this,"handleConnectionOpen",()=>{this.connectionManager.send({type:"execution:start"})});r(this,"widgetFromMessage",(e,t)=>{if(isInputWidget(e)){"value"in e&&e.value&&(this.touchedWidgets[e.key]=!0);const n=e.errors.map(s=>i18nProvider.translateIfFound(s,this.formRunnerData.language,e));return{...e,input:!0,_pythonErrors:n,errors:n}}return{...e,input:!1,_pythonErrors:[],errors:[],key:e.type+t}});r(this,"actionFromMessage",({key:e,label:t})=>({key:e,label:i18nProvider.translateIfFound(t,this.formRunnerData.language,this.formRunnerData),disabled:!1,loading:!1}));r(this,"getAutofillVisibilty",e=>this.lastResponseHistory.length===0?!1:this.lastResponseHistory[0].some(t=>e.find(n=>n.key===t.key&&n.type===t.type&&"value"in n)));r(this,"handleAutofillClick",()=>{!this.lastResponseHistory[0]||this.formState.type==="page"&&(this.lastResponseHistory[0].forEach(t=>{!("widgets"in this.formState&&this.formState.widgets.find(s=>s.key===t.key&&s.type===t.type))||"value"in t&&this.updateWidgetValue(t.key,t.value)}),this.setFormState({...this.formState,showAutofill:!1}))});r(this,"handleAuthComplete",e=>{e&&this.formState.type==="authenticating"&&this.sendAuthSavedJWT(e)});r(this,"handleMessageReceived",e=>{const t=this.handlers[e.type];if(!t)throw new Error(`No handler for message type ${e.type}`);if(t.forEach(n=>n(e)),e.debug&&this.onStackTraceUpdate){const n=e.type==="execution:ended";this.onStackTraceUpdate(e.debug.stack,n)}});r(this,"handleActionClick",async e=>{if(this.formState.type==="waiting")return this.start();if(this.formState.type==="page"){const t=e.key==="i18n_back_action";return this.hasErrors()&&!t?void 0:(this.setFormState({...this.formState,actions:this.formState.actions.map(n=>n.label===e.label?{...n,loading:!0}:n)}),this.lastResponseHistory.shift(),this.responseHistory.push(this.formState.widgets),this.sendFormNavigation(this.getWidgetValues(),e))}if(this.formState.type==="default-end"||this.formState.type==="page-end"){await this.resetForm(),await this.start();return}});r(this,"updateWidgetValue",(e,t)=>{if(this.formState.type!=="page")return;const n=this.formState.widgets.find(i=>"key"in i&&i.key===e);if(!n||!isInputWidget(n))return;this.touchedWidgets[e]=!0;const s=this.formState.widgets.map(i=>i.key===e?{...i,value:t}:i);this.setFormState({...this.formState,widgets:s}),this.sendInput(this.getWidgetValues(),this.getSecrets())});r(this,"updateWidgetFrontendErrors",(e,t)=>{if(this.formState.type!=="page"||!this.formState.widgets.find(i=>i.key===e))return;const s=this.formState.widgets.map(i=>i.key===e?{...i,errors:i._pythonErrors.concat(t.map(u=>i18nProvider.translateIfFound(u,this.formRunnerData.language,i)))}:i);this.setFormState({...this.formState,widgets:s})});if(this.formRunnerData=e,this.logService=t,this.connectionManager=n,this.onFormStart=s,this.onFormEnd=i,this.onRedirect=u,this.onStateUpdate=v,this.onStackTraceUpdate=_,this.userStore=useUserStore(),this.connectionManager.onOpen=()=>this.handleConnectionOpen(),this.connectionManager.onMessage=p=>this.handleMessageReceived(p),this.connectionManager.onClose=p=>this.handleConnectionClose(p),this.formRunnerData.autoStart&&!this.connectionManager.isEditorConnection()){this.formState={type:"loading"},this.start();return}this.formState={type:"waiting",actions:[this.getStartAction()]}}get publicLogService(){return this.logService}fullWidthFromMessage(e){return e.some(t=>"fullWidth"in t&&t.fullWidth)}async handleExecutionStartedMessage(e){this.executionId=e.executionId,this.onFormStart()}handleRenderMessage(e){if(e.seq!==this.messageSeq)return;const t=e.widgets.map(this.widgetFromMessage);if(e.endPage){this.setFormState({...this.formState,type:"page-end",actions:this.getEndStateActions(),widgets:t,fullWidth:this.fullWidthFromMessage(e.widgets),stepsInfo:e.stepsInfo,refreshKey:e.stepsInfo.current.toString(),showAutofill:this.getAutofillVisibilty(t)});return}let n=[{key:"back",label:"i18n_back_action"},{key:"next",label:"i18n_next_action"}];e.actions&&(n=e.actions),this.setFormState({type:"page",widgets:t,actions:n.map(this.actionFromMessage),fullWidth:this.fullWidthFromMessage(e.widgets),stepsInfo:e.stepsInfo,refreshKey:e.stepsInfo.current.toString(),showAutofill:this.getAutofillVisibilty(t)})}async handleExecuteJSRequestMessage(e){const t=await executeJs(e);this.connectionManager.send(t)}async handleAuthRequireInfoMessage(e){const{jwt:t,isJWTValid:n}=this.userStore;if(t&&n()&&!e.refresh){this.sendAuthSavedJWT(t);return}this.setFormState({type:"authenticating"})}async handleAuthInvalidJWTMessage(e){this.setFormState({type:"authenticating"})}async handleAuthValidTokenMessage(e){}async handleRedirectRequestMessage(e){this.onRedirect(e.url,e.queryParams)}handleMountPageMessage(e){var n,s;const t=e.widgets.map(this.widgetFromMessage);if(e.endProgram){this.setFormState({type:"page-end",actions:this.getEndStateActions(),widgets:t,fullWidth:this.fullWidthFromMessage(e.widgets),stepsInfo:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t),legacy:!0});return}this.setFormState({type:"page",widgets:t,actions:(s=(n=e.actions)==null?void 0:n.map(i=>this.actionFromMessage({key:i,label:i})))!=null?s:[],fullWidth:this.fullWidthFromMessage(e.widgets),stepsInfo:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t),legacy:!0})}async handleUpdatePageMessage(e){if(e.seq===this.messageSeq){if(this.formState.type!=="page")throw new Error("Received form:update-page message while not in render-page state");this.setFormState({...this.formState,error:{message:e.validation.message,status:e.validation.status},widgets:e.widgets.map(this.widgetFromMessage),actions:this.formState.actions.map(t=>({...t,disabled:this.shouldDisableAction(t,e)}))}),this.debouncedFinishPageLoading()}}shouldDisableAction(e,t){if(e.key==="i18n_back_action"||this.formState.type!=="page")return!1;const s=t.widgets.map(this.widgetFromMessage).some(u=>u.errors.length>0),i=t.validation.status===!1||Boolean(t.validation.message);return s||i}async handleExecutionEndedMessage(e){var t;this.lastResponseHistory=[...this.responseHistory],this.responseHistory=[],!FORM_END_STATES.includes(this.formState.type)&&(e.exitStatus==="SUCCESS"&&(this.setFormState({type:"default-end",actions:this.getEndStateActions()}),(t=this.logService)==null||t.log({type:"stdout",log:"[Form run finished]"})),e.exitStatus==="EXCEPTION"&&this.setFormState({type:"error",message:e.exception,executionId:this.executionId}),this.onFormEnd())}sendFormNavigation(e,t,n){this.connectionManager.send({type:"form:navigation",payload:e,secrets:n,action:t==null?void 0:t.key,seq:++this.messageSeq})}sendInput(e,t){this.connectionManager.send({type:"form:input",payload:e,secrets:t,seq:++this.messageSeq})}sendAuthSavedJWT(e){this.connectionManager.send({type:"auth:saved-jwt",jwt:e})}handleCloseAttempt(){return FORM_END_STATES.includes(this.formState.type)||this.formState.type==="waiting"?!1:(this.connectionManager.send({type:"debug:close-attempt"}),!0)}handleConnectionClose(e){e.code!==WS_CUSTOM_CLOSING_REASONS.FRONTEND_FORM_RESTART&&FORM_RUNNING_STATES.includes(this.formState.type)&&this.reconnect()}setFormState(e){this.formState=Object.freeze(e),this.onStateUpdate(e)}getSecrets(){return this.formState.type!=="page"?[]:this.formState.widgets.filter(e=>"secret"in e).reduce((e,t)=>"key"in t&&"secret"in t?[...e,{key:t.key,secret:t.secret}]:e,[])}setWidgetValidationFunction(e,t){if(this.formState.type!=="page")return;const n=this.formState.widgets.find(s=>"key"in s&&s.key===e);!n||!isInputWidget(n)||(n.validationFunction=t)}hasErrors(){var e;return this.formState.type!=="page"?!1:((e=this.formState.error)==null?void 0:e.status)===!1||this.formState.widgets.some(t=>t.errors.length>0)}getWidgetValue(e){if(this.formState.type!=="page")return null;const t=this.formState.widgets.find(n=>"key"in n&&n.key===e);if(!t||!isInputWidget(t))return null}getWidgetValues(){return this.formState.type!=="page"?{}:this.formState.widgets.reduce((e,t)=>("value"in t&&(this.touchedWidgets[t.key]||this.formState.legacy)&&(e[t.key]=t.value),e),{})}}const _hoisted_1$1={class:"outline-button"},_sfc_main$2=defineComponent({__name:"OutlineButton",props:{icon:{},noShadow:{type:Boolean},status:{}},setup(a){return(e,t)=>(openBlock(),createElementBlock("button",_hoisted_1$1,[e.icon?(openBlock(),createBlock(resolveDynamicComponent(e.icon),{key:0,class:"icon",color:"#fff"})):createCommentVNode("",!0),renderSlot(e.$slots,"default",{},void 0,!0)]))}}),OutlineButton_vue_vue_type_style_index_0_scoped_2d3b9e41_lang="",OutlineButton=_export_sfc(_sfc_main$2,[["__scopeId","data-v-2d3b9e41"]]),_sfc_main$1=defineComponent({__name:"FormAutoFill",emits:["click"],setup(a,{emit:e}){return(t,n)=>(openBlock(),createBlock(OutlineButton,{icon:unref(G),class:"form-auto-fill-btn",onClick:n[0]||(n[0]=s=>e("click"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(i18nProvider).translate("i18n_form_auto_fill_repeat_last_answer")),1)]),_:1},8,["icon"]))}}),FormAutoFill_vue_vue_type_style_index_0_scoped_8885e98e_lang="",FormAutoFill=_export_sfc(_sfc_main$1,[["__scopeId","data-v-8885e98e"]]),_hoisted_1={class:"center"},_hoisted_2={key:0,class:"loading-wrapper"},_hoisted_3={class:"form-wrapper"},_hoisted_4=["id"],_hoisted_5={key:4,class:"span-error"},_hoisted_6={key:0,class:"buttons"},_sfc_main=defineComponent({__name:"FormRunner",props:{formRunnerData:{},formState:{},isPreview:{type:Boolean},disabled:{type:Boolean}},emits:["action-clicked","auto-fill-clicked","update-widget-value","update-widget-errors","auth-complete"],setup(a,{emit:e}){const t=a,n=useWorkspaceStore(),s=computed(()=>{var o;return((o=n.state.workspace)==null?void 0:o.logoUrl)||""}),i=ref(null),u=ref({}),v=computed(()=>!t.formState||t.formState.type==="loading"),_=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="authenticating"}),p=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="waiting"}),d=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="default-end"}),F=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="error"}),V=computed(()=>{var o;return t.isPreview&&((o=t.formState)==null?void 0:o.type)==="page"&&t.formState.showAutofill}),D=computed(()=>{var o,l;return((o=t.formState)==null?void 0:o.type)==="page"&&"stepsInfo"in t.formState&&!((l=t.formState.stepsInfo)!=null&&l.disabled)}),H=computed(()=>{var o;if(((o=t.formState)==null?void 0:o.type)==="page"&&"stepsInfo"in t.formState)return t.formState.stepsInfo}),O=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="error"&&"executionId"in t.formState?t.formState.executionId:null}),A=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="page"&&t.formState.error&&t.formState.error.status===!1}),U=computed(()=>!t.formState||!("widgets"in t.formState)?[]:t.formState.widgets),L=computed(()=>!t.formState||!("actions"in t.formState)?[]:t.formState.actions),K=computed(()=>t.formState&&"actions"in t.formState),J=computed(()=>!A.value||!("error"in t.formState)||!t.formState.error?"":t.formState.error.message||i18nProvider.translateIfFound("i18n_generic_validation_error",t.formRunnerData.language)),Q=computed(()=>({"full-width":X()})),Y=()=>{!i.value||(i.value.scrollTop=0)},X=()=>{var o,l;return((o=t.formState)==null?void 0:o.type)==="page"?t.formState.fullWidth:((l=t.formState)==null?void 0:l.type)==="page-end"?t.formState.fullWidth&&t.formState.widgets.length>0:!1},ee=(o,l)=>"key"in o?o.key:o.type+l,te=o=>{const l="refreshKey"in t.formState?t.formState.refreshKey:0;return"key"in o?o.key+"_"+l:o.type+"_"+l},oe=o=>isInputWidget(o)&&o.value,ne=(o,l)=>{"key"in o&&(u.value[o.key]=l)},re=o=>({"next-button__disabled":o.disabled||o.loading}),ae=o=>o.disabled||o.loading;return watch(()=>t.formState,(o,l)=>{o.type==="page"&&(l==null?void 0:l.type)==="page"&&o.refreshKey!==l.refreshKey&&Y()}),(o,l)=>{var R,I;return openBlock(),createElementBlock("div",_hoisted_1,[V.value?(openBlock(),createBlock(FormAutoFill,{key:0,class:"auto-fill-btn",form:o.formRunnerData,style:{"z-index":1},onClick:l[0]||(l[0]=c=>e("auto-fill-clicked"))},null,8,["form"])):createCommentVNode("",!0),D.value?(openBlock(),createBlock(Steps,{key:1,"steps-info":H.value,"is-preview":o.isPreview},null,8,["steps-info","is-preview"])):createCommentVNode("",!0),createBaseVNode("main",{ref_key:"scrollableContainer",ref:i,class:normalizeClass([{disabled:o.disabled}]),style:{padding:"50px 0px","box-sizing":"border-box"}},[v.value?(openBlock(),createElementBlock("div",_hoisted_2,[createVNode(LoadingIndicator)])):_.value?(openBlock(),createBlock(_sfc_main$3,{key:1,locale:o.formRunnerData.language,"logo-url":(R=s.value)!=null?R:void 0,"brand-name":(I=o.formRunnerData.brandName)!=null?I:void 0,onDone:l[1]||(l[1]=c=>e("auth-complete",c))},null,8,["locale","logo-url","brand-name"])):(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["form",Q.value])},[createBaseVNode("div",_hoisted_3,[p.value?(openBlock(),createBlock(StartWidget,{key:0,form:o.formRunnerData},null,8,["form"])):d.value?(openBlock(),createBlock(EndWidget,{key:1,"end-message":o.formRunnerData.endMessage,locale:o.formRunnerData.language},null,8,["end-message","locale"])):F.value?(openBlock(),createBlock(ErrorWidget,{key:2,"error-message":o.formRunnerData.errorMessage,"execution-id":O.value,locale:o.formRunnerData.language},null,8,["error-message","execution-id","locale"])):(openBlock(!0),createElementBlock(Fragment,{key:3},renderList(U.value,(c,M)=>(openBlock(),createElementBlock("div",{id:c.type+M,key:ee(c,M),class:"widget"},[(openBlock(),createBlock(resolveDynamicComponent(c.type),{ref_for:!0,ref:h=>ne(c,h),key:te(c),value:oe(c),errors:c.errors,"user-props":c,legacy:o.formState.legacy,locale:o.formRunnerData.language,"onUpdate:value":h=>e("update-widget-value",c.key,h),"onUpdate:errors":h=>e("update-widget-errors",c.key,h)},null,40,["value","errors","user-props","legacy","locale","onUpdate:value","onUpdate:errors"])),(openBlock(!0),createElementBlock(Fragment,null,renderList(c.errors,h=>(openBlock(),createElementBlock("span",{key:h,class:"span-error"},toDisplayString(h),1))),128))],8,_hoisted_4))),128)),A.value?(openBlock(),createElementBlock("span",_hoisted_5,toDisplayString(J.value),1)):createCommentVNode("",!0)]),K.value?(openBlock(),createElementBlock("div",_hoisted_6,[createVNode(unref(StyleProvider),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(L.value,c=>(openBlock(),createBlock(unref(Button),{key:c.key,class:normalizeClass(["next-button",re(c)]),loading:c.loading,disabled:ae(c),onClick:M=>e("action-clicked",c),onKeydown:withKeys(M=>e("action-clicked",c),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(c.label),1)]),_:2},1032,["class","loading","disabled","onClick","onKeydown"]))),128))]),_:1})])):createCommentVNode("",!0)],2))],2),createVNode(Watermark,{"page-id":o.formRunnerData.id,locale:o.formRunnerData.language},null,8,["page-id","locale"])])}}}),FormRunner_vue_vue_type_style_index_0_scoped_4266401f_lang="",FormRunner=_export_sfc(_sfc_main,[["__scopeId","data-v-4266401f"]]);export{FORM_END_STATES as F,FORM_RUNNING_STATES as a,FormRunner as b,FormRunnerController as c,FormConnectionManager as d};
|
|
2
|
-
//# sourceMappingURL=FormRunner.73650f9e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as u,d as m,ec as h,U as y,R as w,j as g,a as b,o as v,_ as I}from"./jwt-decode.esm.c9c37cdc.js";import{l as d}from"./fetch.452c58e5.js";import{u as R}from"./polling.4db5ee9a.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="2ce3d8be-031a-4f7a-bf5d-45cd1a56fa73",t._sentryDebugIdIdentifier="sentry-dbid-2ce3d8be-031a-4f7a-bf5d-45cd1a56fa73")}catch{}})();const _=4,C=t=>{const n=t.router,a=u(""),r=u(Array(_).fill(!0));let s=0;const l=async()=>{try{const e=new AbortController,o=setTimeout(()=>e.abort(),1e3),p=await d("/_healthcheck",{method:"GET",signal:e.signal,headers:{"Content-Type":"application/json","Cache-Control":"no-cache"}});clearTimeout(o),r.value[s]=p.status===200}catch{r.value[s]=!1}if(s=(s+1)%_,r.value.every(e=>!e)&&a.value){const e=n.currentRoute.value.path,o=new URLSearchParams;o.set("redirect",e),window.location.href=a.value+"?"+o.toString()}},{startPolling:c,endPolling:f}=R({task:l,interval:2e3}),i=async()=>{const e=await d("/_editor/api/web-editor/",{method:"GET"});if(!e.ok){setTimeout(()=>{i()},1e3);return}const o=await e.json();o.waitingRoomUrl&&(a.value=o.waitingRoomUrl,c())};return{setup:i,cleanUp:f}},H=m({__name:"Home",setup(t){const n=h(),{setup:a,cleanUp:r}=C({router:n});return y(()=>{a()}),w(()=>{r()}),(s,l)=>{const c=g("RouterView");return v(),b(c,{class:"router"})}}});const E=I(H,[["__scopeId","data-v-3737a9c1"]]);export{E as default};
|
|
2
|
-
//# sourceMappingURL=Home.19a2303b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as t,o as d,ac as o,f as s,u as c,S as _,_ as r}from"./jwt-decode.esm.c9c37cdc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="58c8c4e4-60d2-4afd-b135-74cd10a1f31a",e._sentryDebugIdIdentifier="sentry-dbid-58c8c4e4-60d2-4afd-b135-74cd10a1f31a")}catch{}})();const i={class:"centered"},f=t({__name:"LoadingContainer",setup(e){return(n,a)=>(d(),o("div",i,[s(c(_))]))}});const u=r(f,[["__scopeId","data-v-52e6209a"]]);export{u as L};
|
|
2
|
-
//# sourceMappingURL=LoadingContainer.97fa8f2e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as o,ee as f,f1 as u}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]="56d2225d-949e-4b95-a737-7fc53887be4b",e._sentryDebugIdIdentifier="sentry-dbid-56d2225d-949e-4b95-a737-7fc53887be4b")}catch{}})();function d(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(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){l(e,i,n[i])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(t,n){var r=d({},t,n.attrs);return o(f,d({},r,{icon:u}),null)};a.displayName="LoadingOutlined";a.inheritAttrs=!1;const b=a;export{b as L};
|
|
2
|
-
//# sourceMappingURL=LoadingOutlined.e309ab16.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as l}from"./Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js";import{d as f,ec as m,ei as g,ac as y,f as b,u as n,o as w,_ as k}from"./jwt-decode.esm.c9c37cdc.js";import{u as h}from"./workspaceStore.5a435520.js";import"./CircularLoading.217756fb.js";import"./Logo.d77d5637.js";import"./string.8fab6b53.js";import"./index.b74c262c.js";import"./userStore.d962fba4.js";import"./url.9e033350.js";import"./colorHelpers.8ba18214.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ad6a99ad-62ea-4751-be8f-5574e0687fd7",e._sentryDebugIdIdentifier="sentry-dbid-ad6a99ad-62ea-4751-be8f-5574e0687fd7")}catch{}})();const v={class:"runner"},I=f({__name:"Login",setup(e){const o=m(),a=g(),t=h(),_=async()=>{const{redirect:r,...s}=a.query;if(r){await o.push({path:r,query:s,params:a.params});return}o.push({name:"playerHome",query:s})};return(r,s)=>{var c,d,p,u,i;return w(),y("div",v,[b(l,{"logo-url":(d=(c=n(t).state.workspace)==null?void 0:c.logoUrl)!=null?d:void 0,"brand-name":(p=n(t).state.workspace)==null?void 0:p.brandName,locale:(i=(u=n(t).state.workspace)==null?void 0:u.language)!=null?i:"en",onDone:_},null,8,["logo-url","brand-name","locale"])])}}});const H=k(I,[["__scopeId","data-v-12c690e1"]]);export{H as default};
|
|
2
|
-
//# sourceMappingURL=Login.632cada3.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as i,eF as c,c as r,o as a,ac as t,h as d,eh as _,t as p,_ as u}from"./jwt-decode.esm.c9c37cdc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f111c317-b0eb-476e-b95d-0899186fe595",e._sentryDebugIdIdentifier="sentry-dbid-f111c317-b0eb-476e-b95d-0899186fe595")}catch{}})();const f={class:"logo"},g=["src","alt"],m=i({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const s=e;c(o=>({"4521d904":n.value}));const n=r(()=>s.size==="small"?"24px":s.size==="large"?"80px":"50px"),l=r(()=>`${s.brandName} Logo`);return(o,b)=>(a(),t("div",f,[o.imageUrl?(a(),t("img",{key:0,class:"logo-img",src:o.imageUrl,alt:l.value},null,8,g)):d("",!0),o.hideText?d("",!0):(a(),t("span",{key:1,class:_(o.size)},p(o.brandName),3))]))}});const h=u(m,[["__scopeId","data-v-8f34aac0"]]);export{h as L};
|
|
2
|
-
//# sourceMappingURL=Logo.d77d5637.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.cli[data-v-b7f04a41]{background-color:#555;border-radius:5px;padding:10px;color:#fff;font-family:monospace}[data-v-b529583a]:root{--abstra-main-color-dark: #343b46}.tree[data-v-b529583a] .ant-tree-node-content-wrapper{user-select:auto}.ask-to-ai[data-v-b529583a]{display:flex;gap:6px;align-items:center;cursor:pointer;color:#d14056}.ask-to-ai.disabled[data-v-b529583a]{cursor:not-allowed;opacity:.5}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var O=Object.defineProperty;var B=(c,t,a)=>t in c?O(c,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[t]=a;var h=(c,t,a)=>(B(c,typeof t!="symbol"?t+"":t,a),a);import{d as P,at as w,c as Z,o as n,ac as p,ae as F,h as x,ed as L,e as m,a as b,b as u,aY as S,ej as M,ad as $,t as v,u as s,df as V,g as H,dj as D,_ as R,f,i as g,b0 as C,eh as z,d6 as N,cM as k,al as q,w as I,en as W}from"./jwt-decode.esm.c9c37cdc.js";import{t as J}from"./ant-design.4efc9ccd.js";import{c as T}from"./string.8fab6b53.js";import{I as E}from"./PhCopy.vue.29934bc2.js";import{A as G}from"./index.bc97991a.js";import{A as Y,C as Q}from"./router.a8616541.js";import{B as U}from"./build.a8637e29.js";import"./tables.2e1c934b.js";import{e as X}from"./repository.c0d70cb2.js";import{u as K}from"./polling.4db5ee9a.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[t]="a059d038-74ba-48c3-950f-3f19d39f67f5",c._sentryDebugIdIdentifier="sentry-dbid-a059d038-74ba-48c3-950f-3f19d39f67f5")}catch{}})();const tt=["width","height","fill","transform"],et={key:0},at=m("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"},null,-1),it=[at],st={key:1},ot=m("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"},null,-1),nt=m("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"},null,-1),rt=[ot,nt],lt={key:2},ct=m("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"},null,-1),dt=[ct],pt={key:3},ut=m("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"},null,-1),ht=[ut],gt={key:4},ft=m("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"},null,-1),mt=[ft],yt={key:5},_t=m("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"},null,-1),xt=[_t],bt={name:"PhRobot"},At=P({...bt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(c){const t=c,a=w("weight","regular"),i=w("size","1em"),o=w("color","currentColor"),l=w("mirrored",!1),d=Z(()=>{var r;return(r=t.weight)!=null?r:a}),_=Z(()=>{var r;return(r=t.size)!=null?r:i}),e=Z(()=>{var r;return(r=t.color)!=null?r:o}),y=Z(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:l?"scale(-1, 1)":void 0);return(r,A)=>(n(),p("svg",L({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:_.value,height:_.value,fill:e.value,transform:y.value},r.$attrs),[F(r.$slots,"default"),d.value==="bold"?(n(),p("g",et,it)):d.value==="duotone"?(n(),p("g",st,rt)):d.value==="fill"?(n(),p("g",lt,dt)):d.value==="light"?(n(),p("g",pt,ht)):d.value==="regular"?(n(),p("g",gt,mt)):d.value==="thin"?(n(),p("g",yt,xt)):x("",!0)],16,tt))}}),vt={key:0,class:"cli"},Ht={key:0},wt=P({__name:"LogContainer",props:{logs:{}},setup(c){return(t,a)=>(n(),b(s(D),{vertical:"",gap:"small"},{default:u(()=>[t.logs.entries.length?(n(),p("div",vt,[(n(!0),p(S,null,M(t.logs.entries,i=>(n(),p("p",{key:i.createdAt,style:$({margin:0,"white-space":"pre-wrap",color:i.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},[i.payload.text?(n(),p("span",Ht,v(i.payload.text.trim()),1)):x("",!0)],4))),128))])):(n(),b(s(V),{key:1,type:"secondary"},{default:u(()=>[H("Empty")]),_:1}))]),_:1}))}});const Ft=R(wt,[["__scopeId","data-v-b7f04a41"]]),Zt={key:0},kt=["onClick"],Vt=["onClick"],Ct=P({__name:"ExecutionContext",props:{data:{},showFixWithAi:{type:Boolean},isSmartChatIdle:{type:Boolean}},emits:["ask-ai"],setup(c,{emit:t}){const a=c,i=e=>{if(e==="legacyThreadData")return g.translate("i18n_executioncontext_thread_data");const y=T(e);return y.replace(/([A-Z])/g," $1").trim(),y},o=e=>e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1,l=e=>{typeof e=="object"&&e!==null&&"payload"in e?(navigator.clipboard.writeText(JSON.stringify(e.payload)),k.success({content:g.translate("i18n_executioncontext_copied_to_clipboard")})):(navigator.clipboard.writeText(""),k.error({content:g.translate("i18n_executioncontext_no_payload")}))},d=e=>{e.stopPropagation(),a.isSmartChatIdle!==!1&&t("ask-ai")},_=e=>{typeof e=="object"?(navigator.clipboard.writeText(JSON.stringify(e)),k.success({content:g.translate("i18n_executioncontext_copied_to_clipboard")})):(navigator.clipboard.writeText(""),k.error({content:g.translate("i18n_executioncontext_failed_copy_request")}))};return(e,y)=>(n(),b(s(Q),{bordered:!1,style:{"background-color":"transparent",width:"100%"}},{default:u(()=>[f(s(Y),{key:"execution-context"},{header:u(()=>[f(s(D),{justify:"space-between"},{default:u(()=>[f(s(V),null,{default:u(()=>[H(v(s(g).translate("i18n_executioncontext_header")),1)]),_:1}),f(s(C),{title:e.isSmartChatIdle?"":s(g).translate("i18n_executioncontext_wait_or_stop"),placement:"left"},{default:u(()=>[e.showFixWithAi?(n(),p("div",{key:0,class:z(["ask-to-ai",{disabled:!e.isSmartChatIdle}]),onClick:d},[H(v(s(g).translate("i18n_executioncontext_fix_with_ai"))+" ",1),f(s(At),{size:16})],2)):x("",!0)]),_:1},8,["title"])]),_:1})]),default:u(()=>[f(s(G),{direction:"vertical",style:{"border-radius":"5px",padding:"10px",color:"#fff",width:"100%","font-family":"monospace","max-height":"600px",overflow:"auto",border:"1px solid #e8e8e8"}},{default:u(()=>[Object.keys(e.data).length?(n(!0),p(S,{key:1},M(Object.entries(e.data),([r,A])=>(n(),p("div",{key:r,class:"tree"},[r!=="legacyThreadData"||!o(A)?(n(),p("div",Zt,[f(s(V),{strong:""},{default:u(()=>[H(v(i(r)),1)]),_:2},1024),r==="request"?(n(),b(s(C),{key:0,title:s(g).translate("i18n_executioncontext_copy_request_tooltip")},{default:u(()=>[m("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:j=>_(A)},[f(s(E))],8,kt)]),_:2},1032,["title"])):x("",!0),r==="triggerTask"?(n(),b(s(C),{key:1,title:s(g).translate("i18n_executioncontext_copy_payload_tooltip")},{default:u(()=>[m("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:j=>l(A)},[f(s(E))],8,Vt)]),_:2},1032,["title"])):x("",!0),f(s(N),{"tree-data":s(J)(A),selectable:!1},null,8,["tree-data"])])):x("",!0)]))),128)):(n(),b(s(V),{key:0,type:"secondary"},{default:u(()=>[H(v(s(g).translate("i18n_executioncontext_empty")),1)]),_:1}))]),_:1})]),_:1})]),_:1}))}});const Lt=R(Ct,[["__scopeId","data-v-b529583a"]]);class $t{constructor(t){h(this,"state");h(this,"polling",K({task:()=>this.refetch(),interval:1e4}));h(this,"executionRepository");h(this,"buildRepository");h(this,"projectId");h(this,"pool");h(this,"onFilterChange");h(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch(),this.onFilterChange&&this.onFilterChange(this.state.filters)});h(this,"debouncedPageRefetch",W.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));h(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async t=>{this.state.currentPage.executionData[t]||await this.fetchExecutionDetails(t)})});const{executionRepository:a,buildRepository:i,projectId:o,filters:l={},pagination:d={},pool:_=!1,openedExecutionId:e,onFilterChange:y}=t;this.executionRepository=a,this.buildRepository=i,this.projectId=o,this.pool=_,this.onFilterChange=y,this.state=q({currentPage:{openedExecutionIds:e?[e]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],executionData:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...d},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...l},filterOptions:{builds:[],stages:[],statuses:X.map(r=>({label:T(r),value:r}))}}),I(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),I(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),I(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.pool&&this.polling.startPolling()}teardown(){this.polling.endPolling()}async getNewestExecutionId(t){let a=this.state.currentPage.executions;return t&&(a=a.filter(o=>o.stageId===t)),a.length===0?null:a.reduce((o,l)=>o.createdAt>l.createdAt?o:l).id}async fetchPage(){var i,o,l,d;this.state.currentPage.loadingExecutions=!0;const{executions:t,totalCount:a}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(o=(i=this.state.filters.dateRange)==null?void 0:i[0])==null?void 0:o.toISOString(),endDate:(d=(l=this.state.filters.dateRange)==null?void 0:l[1])==null?void 0:d.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=t,this.state.pagination.totalCount=a}async fetchBuildOptions(){if(!this.buildRepository)return;const a=(await this.buildRepository.list(this.projectId)).map(i=>({label:`[${i.id.slice(0,8)}] ${i.createdAt.toLocaleString()} ${i.latest?"(Latest)":""}`,value:i.id}));this.state.filterOptions.builds=a}async fetchStageOptions(){var i;if(!this.buildRepository){const l=(await this.executionRepository.fetchStages()).map(d=>({label:d.title,value:d.id}));this.state.filterOptions.stages=l!=null?l:[];return}const t=await U.get((i=this.state.filters.buildId)!=null?i:this.state.filterOptions.builds[0].value),a=t==null?void 0:t.runtimes.map(o=>({label:o.title,value:o.id}));this.state.filterOptions.stages=a!=null?a:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchExecutionDetails(t){const[a,i,o]=await Promise.all([this.executionRepository.fetchLogs(this.projectId,t),this.executionRepository.fetchThreadData(this.projectId,t),this.executionRepository.getExecutionTasks(this.projectId,t)]);this.state.currentPage.executionData[t]={logs:a,threadData:i,tasks:{triggerTask:o.triggerTask?{type:o.triggerTask.type,payload:o.triggerTask.payload}:null,sentTasks:o.sentTasks.map(l=>({type:l.type,payload:l.payload}))}}}async refetch(){this.state.currentPage.openedExecutionIds.map(t=>this.fetchExecutionDetails(t))}}export{Lt as E,Ft as L,$t as a};
|
|
2
|
-
//# sourceMappingURL=LogsController.2dceb3d3.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P as f}from"./PlayerNavbar.117f184b.js";import{d as g,ec as h,ei as c,r as y,c as k,j as v,ac as w,u as n,a as b,h as L,e as C,f as I,o as i,_ as N}from"./jwt-decode.esm.c9c37cdc.js";import{u as V}from"./workspaceStore.5a435520.js";import"./userStore.d962fba4.js";import"./metadata.e627ddda.js";import"./PhWebhooksLogo.vue.e4752384.js";import"./LoadingOutlined.e309ab16.js";import"./PhSignOut.vue.2af17bd7.js";import"./index.e5cb42a1.js";import"./url.9e033350.js";import"./colorHelpers.8ba18214.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]="367a9556-a683-4a65-acfe-67de53134a73",a._sentryDebugIdIdentifier="sentry-dbid-367a9556-a683-4a65-acfe-67de53134a73")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(a){const e=h(),o=V(),u=c().path,t=y(null),d=async({path:s,id:r})=>{t.value=r,await e.push({path:`/${s}`}),t.value=null},l=()=>{e.push({name:"playerLogin"})},p=()=>{e.push({name:"playerLogin"})},_=k(()=>!!c().meta.hideLogin);return(s,r)=>{const m=v("RouterView");return i(),w("div",x,[n(o).state.workspace?(i(),b(f,{key:0,"current-path":n(u),"hide-login":_.value,"runner-data":n(o).state.workspace,loading:t.value,onNavigate:d,onLoginClick:p,onLogoutClick:l},null,8,["current-path","hide-login","runner-data","loading"])):L("",!0),C("section",B,[I(m)])])}}});const F=N(D,[["__scopeId","data-v-f095bece"]]);export{F as default};
|
|
2
|
-
//# sourceMappingURL=Main.44b7640e.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-e6d0b794]:root{--abstra-main-color-dark: #343b46}.loading[data-v-e6d0b794]{position:absolute;top:0;left:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as b}from"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import{A as D}from"./constants.534f67bc.js";import{d as C,ec as N,j as L,u as e,o as n,a as r,S as R,ac as k,f as a,b as t,g as o,t as s,i as c,e as f,df as $,bW as z,bE as F,aY as S,ej as w,bD as G,eu as T,bY as y,cS as V,en as j,f6 as E,h as v,_ as M}from"./jwt-decode.esm.c9c37cdc.js";import{a as P}from"./asyncComputed.7bc1692e.js";import{G as O,F as U,a as Y}from"./PhTranslate.vue.2ce651a6.js";import{F as q}from"./PhSignOut.vue.2af17bd7.js";import{l as A,o as H}from"./router.a8616541.js";import{A as W}from"./index.bc97991a.js";import{A as J}from"./index.e5cb42a1.js";import{u as K}from"./omniChatStore.508e8ece.js";import{G as Q}from"./PhSparkle.vue.c7f06cac.js";import{A as X}from"./index.f2beb20d.js";import{B as Z,A as ee}from"./Breadcrumb.8a82fa01.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="21a0aa34-322d-4058-b5d3-4e84f7e3f77b",l._sentryDebugIdIdentifier="sentry-dbid-21a0aa34-322d-4058-b5d3-4e84f7e3f77b")}catch{}})();const te={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},ae={style:{display:"flex","flex-direction":"column",gap:"10px"}},oe={style:{display:"flex",gap:"5px"}},se={style:{display:"flex",gap:"5px"}},ne=C({__name:"LoginBlock",setup(l){function i(p){const h=p.split("@")[0];return j.exports.kebabCase(h).toUpperCase().split("-").slice(0,2).map(g=>g[0]).join("")}const d=N(),{result:u,loading:_,refetch:m}=P(async()=>A.getAuthor());async function B(){await A.logout(),H.shutdown(),m(),d.push({name:"login"})}function I(p){localStorage.setItem("locale",String(p.key)),window.location.reload()}return(p,h)=>{const g=L("RouterLink");return e(_)?(n(),r(e(R),{key:0})):e(u)?(n(),k("div",te,[a(b,{class:"intercom-launcher",target:"_blank",type:"link",size:"small"},{default:t(()=>[a(e(O)),o(" "+s(e(c).translate("i18n_loginblock_support")),1)]),_:1}),a(e(V),{placement:"bottomRight"},{content:t(()=>[f("div",ae,[a(e($),{size:"small",type:"secondary"},{default:t(()=>[o(s(e(u).claims.email),1)]),_:1}),a(e(z),{trigger:["click"]},{overlay:t(()=>[a(e(F),{onClick:I},{default:t(()=>[(n(!0),k(S,null,w(e(T),x=>(n(),r(e(G),{key:x.key},{default:t(()=>[o(s(x.value),1)]),_:2},1024))),128))]),_:1})]),default:t(()=>[a(e(y),{type:"text"},{default:t(()=>[f("div",oe,[a(e(U),{size:"20"}),o(" "+s(e(c).translate("i18n_loginblock_language")),1)])]),_:1})]),_:1}),a(e(y),{type:"text",onClick:B},{default:t(()=>[f("div",se,[a(e(q),{size:"20"}),o(" "+s(e(c).translate("i18n_loginblock_logout")),1)])]),_:1})])]),default:t(()=>[a(e(W),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(J),{shape:"square"},{default:t(()=>[o(s(i(e(u).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(n(),r(e(y),{key:2},{default:t(()=>[a(g,{to:"/login"},{default:t(()=>[o(s(e(c).translate("i18n_loginblock_login")),1)]),_:1})]),_:1}))}}}),re={class:"extra"},le=C({__name:"Navbar",props:{breadcrumb:{},showAiSparkles:{type:Boolean}},setup(l){const i=K();return(d,u)=>(n(),r(e(X),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[d.breadcrumb?(n(),r(e(Z),{key:0},{default:t(()=>[(n(!0),k(S,null,w(d.breadcrumb,(_,m)=>(n(),r(e(ee),{key:m},{default:t(()=>[a(e(E),{to:_.path},{default:t(()=>[o(s(_.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):v("",!0)]),extra:t(()=>[f("div",re,[d.showAiSparkles?(n(),r(b,{key:0,type:"link",onClick:u[0]||(u[0]=_=>e(i).toggle())},{default:t(()=>[a(e(Q)),o(" "+s(e(c).translate("i18n_consolenavbar_ai_assistant")),1)]),_:1})):v("",!0),a(b,{href:e(D).DOCS,target:"_blank",type:"link"},{default:t(()=>[a(e(Y)),o(" "+s(e(c).translate("i18n_consolenavbar_docs")),1)]),_:1},8,["href"]),a(ne)])]),_:1}))}});const xe=M(le,[["__scopeId","data-v-a3489e41"]]);export{xe as N};
|
|
2
|
-
//# sourceMappingURL=Navbar.0951ed6d.js.map
|