abstra 3.24.3__py3-none-any.whl → 3.24.5__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.3.dist-info → abstra-3.24.5.dist-info}/METADATA +2 -1
- {abstra-3.24.3.dist-info → abstra-3.24.5.dist-info}/RECORD +195 -192
- abstra_internals/contracts_generated.py +3737 -2560
- abstra_internals/controllers/workflows.py +42 -0
- abstra_internals/interface/sdk/ai.py +69 -0
- abstra_internals/repositories/execution.py +3 -6
- abstra_internals/repositories/git/native.py +90 -3
- 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 +62 -17
- abstra_internals/repositories/project/project_test.py +279 -0
- abstra_internals/repositories/tasks.py +2 -2
- abstra_internals/services/fs.py +311 -32
- abstra_internals/services/fs_test.py +28 -5
- abstra_internals/services/sql_storage.py +236 -0
- abstra_internals/services/sql_storage_test.py +112 -0
- 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.13670ae7.js → AbstraButton.vue_vue_type_script_setup_true_lang.6c541630.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.e1cfa824.js +2 -0
- abstra_statics/dist/assets/{ApiKeys.9b0b18b5.js → ApiKeys.96f96fe2.js} +2 -2
- abstra_statics/dist/assets/App.6b1b6a94.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.08210ecb.js +2 -0
- abstra_statics/dist/assets/BaseLayout.2a82be24.js +2 -0
- abstra_statics/dist/assets/{Billing.f9062d88.js → Billing.24199f3a.js} +2 -2
- abstra_statics/dist/assets/{Breadcrumb.e54636d6.js → Breadcrumb.c8da3019.js} +2 -2
- abstra_statics/dist/assets/{Builds.c7363e1b.js → Builds.366d6ceb.js} +2 -2
- abstra_statics/dist/assets/{Card.4a8a30bb.js → Card.0d56c597.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.d81a4cac.js → CircularLoading.daf759d9.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.2be0ee6c.js +2 -0
- abstra_statics/dist/assets/{ConnectorsView.d4b67e2e.js → ConnectorsView.904ff1c0.js} +2 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.17fc3e62.js +2 -0
- abstra_statics/dist/assets/ContentLayout.c133929b.js +2 -0
- abstra_statics/dist/assets/{CrudView.57e8b29a.js → CrudView.789b533f.js} +2 -2
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.108b18e1.js → DocsButton.vue_vue_type_script_setup_true_lang.a2b3eeb7.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.2f00deb7.js → EditorLogin.cac0ed52.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.eb87a2d8.js → EditorsView.4b74b13b.js} +2 -2
- abstra_statics/dist/assets/EnvVars.0dfba770.js +2 -0
- abstra_statics/dist/assets/{Error.98b8036c.js → Error.c7f25d1b.js} +2 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.ad66211a.js +2 -0
- abstra_statics/dist/assets/ExecutionContext.91c0e0db.js +2 -0
- abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.31b499a5.js +2 -0
- abstra_statics/dist/assets/{Files.9fc8199a.js → Files.4ec90b9a.js} +2 -2
- abstra_statics/dist/assets/Form.5a5cac5f.js +2 -0
- abstra_statics/dist/assets/Form.7d1b0423.css +1 -0
- abstra_statics/dist/assets/FormRunner.4a5270dc.js +2 -0
- abstra_statics/dist/assets/{Home.191a6dce.js → Home.1271fb51.js} +2 -2
- abstra_statics/dist/assets/Home.f82c1587.js +2 -0
- abstra_statics/dist/assets/LoadingContainer.4430af86.js +2 -0
- abstra_statics/dist/assets/{LoadingOutlined.4c40acc4.js → LoadingOutlined.2d29f0e1.js} +2 -2
- abstra_statics/dist/assets/{Login.edfbdaea.js → Login.180d7b1c.js} +2 -2
- abstra_statics/dist/assets/Login.8e13b15d.js +2 -0
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.02acef81.js → Login.vue_vue_type_script_setup_true_lang.ab4402e7.js} +2 -2
- abstra_statics/dist/assets/Logo.e86b6b23.js +2 -0
- abstra_statics/dist/assets/Logs.03931b09.js +2 -0
- abstra_statics/dist/assets/Main.3afc4ba4.js +2 -0
- abstra_statics/dist/assets/MockForm.025d99f9.css +1 -0
- abstra_statics/dist/assets/{MockForm.091aa4ce.js → MockForm.1fa371d2.js} +2 -2
- abstra_statics/dist/assets/{Navbar.24019fd6.js → Navbar.2d7490c1.js} +2 -2
- abstra_statics/dist/assets/{NewEditor.f2d1c0c3.css → NewEditor.d2ee5048.css} +1 -1
- abstra_statics/dist/assets/NewEditor.dc0e868f.js +8 -0
- abstra_statics/dist/assets/OidcLoginCallback.8216e341.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.f471ecec.js +2 -0
- abstra_statics/dist/assets/{OmniChat.c78c1e51.js → OmniChat.be2d3d92.js} +2 -2
- abstra_statics/dist/assets/{OnboardingView.687780ed.js → OnboardingView.4957b5f8.js} +2 -2
- abstra_statics/dist/assets/{Organization.0ac1bf79.js → Organization.27e529a7.js} +2 -2
- abstra_statics/dist/assets/{Organizations.fc123489.js → Organizations.88897e55.js} +2 -2
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.6ab1b899.js → PhArrowCounterClockwise.vue.9ad742bf.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.1cebb708.js → PhArrowSquareOut.vue.2a07a9b3.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.dae2e135.js → PhClockCounterClockwise.vue.b4dc22ed.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.71703533.js → PhCopy.vue.17ec4184.js} +2 -2
- abstra_statics/dist/assets/PhCopySimple.vue.d9213ca9.js +2 -0
- abstra_statics/dist/assets/{PhCube.vue.f8549a9b.js → PhCube.vue.027246a6.js} +2 -2
- abstra_statics/dist/assets/PhDatabase.vue.a188015f.js +2 -0
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.9d76c4de.js → PhDotsThreeVertical.vue.e9c6f787.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.21156b6d.js → PhDownloadSimple.vue.9ba8ac6f.js} +2 -2
- abstra_statics/dist/assets/{PhFileArrowUp.vue.406b22e3.js → PhFileArrowUp.vue.cd3d3139.js} +2 -2
- abstra_statics/dist/assets/{PhFilePlus.vue.b180df90.js → PhFilePlus.vue.2464bbea.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.b18fd061.js → PhFolderPlus.vue.696aab26.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.bed38929.js → PhGear.vue.c247e86d.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.6ef5fdd3.js → PhKey.vue.1a84e5d0.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.0fc0fcc0.js → PhPencil.vue.3586175f.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.0707effd.js → PhPencilSimple.vue.e88b8fd0.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.761192f5.js → PhRocket.vue.8b8080c3.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.8d8dfd96.js → PhSignOut.vue.9eb21b1c.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.18ed0427.js → PhSparkle.vue.70bce97e.js} +2 -2
- abstra_statics/dist/assets/{PhTranslate.vue.00a17a08.js → PhTranslate.vue.e579c286.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.d69f0723.js → PhUsersThree.vue.65e9b349.js} +2 -2
- abstra_statics/dist/assets/{PhWarningCircle.vue.20bfeba7.js → PhWarningCircle.vue.3134c1fb.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.58a98824.js → PhWebhooksLogo.vue.e7321653.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.ad360920.js → PlayerConfigProvider.f0eaf9f3.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.97e8dee9.js → PlayerNavbar.7c0453f2.js} +2 -2
- abstra_statics/dist/assets/Project.fad3c835.js +2 -0
- abstra_statics/dist/assets/{ProjectLogin.f92a038d.js → ProjectLogin.83ae9c4c.js} +2 -2
- abstra_statics/dist/assets/{ProjectSettings.582746dc.js → ProjectSettings.f4e91391.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.a6b3674b.js → ProjectsView.c4e3053a.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.c3ad6e9b.js → SaveButton.986667ef.js} +2 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.077a2088.js +2 -0
- abstra_statics/dist/assets/{Sidebar.69f9369e.js → Sidebar.b1e6ca23.js} +2 -2
- abstra_statics/dist/assets/{Sql.cdefe5b9.js → Sql.24116fa0.js} +4 -4
- abstra_statics/dist/assets/Steps.95771774.js +2 -0
- abstra_statics/dist/assets/TableCard.981d88c4.js +2 -0
- abstra_statics/dist/assets/{TableEditor.fcfa13de.js → TableEditor.a74fc9f4.js} +2 -2
- abstra_statics/dist/assets/{Tables.4ee84a7c.js → Tables.870957e7.js} +2 -2
- abstra_statics/dist/assets/{TablesDiagram.b1d1579e.js → TablesDiagram.6a217e62.js} +3 -3
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.983777c7.js +2 -0
- abstra_statics/dist/assets/{Tasks.fd2605bd.js → Tasks.8fbc0cc0.js} +2 -2
- abstra_statics/dist/assets/{UploadOutlined.64837788.js → UploadOutlined.e2352877.js} +2 -2
- abstra_statics/dist/assets/{View.b144c5e3.js → View.fd9cb47e.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.c79117ce.js → View.vue_vue_type_script_setup_true_lang.69e51c6f.js} +2 -2
- abstra_statics/dist/assets/{Watermark.c0756030.js → Watermark.b1fed4a7.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.774989ad.js → WebEditor.75ce5bd6.js} +2 -2
- abstra_statics/dist/assets/{WidgetPreview.4fd6afc0.js → WidgetPreview.5b0abaab.js} +2 -2
- abstra_statics/dist/assets/WorkflowViewer.0a209003.css +1 -0
- abstra_statics/dist/assets/WorkflowViewer.6f38d23f.js +2 -0
- abstra_statics/dist/assets/ant-design.5bd7ec4d.js +2 -0
- abstra_statics/dist/assets/{apiKey.ee792d72.js → apiKey.7cf16e08.js} +2 -2
- abstra_statics/dist/assets/asyncComputed.febe2b11.js +2 -0
- abstra_statics/dist/assets/{build.6e7d77b3.js → build.db7d8668.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.939427f5.js +2 -0
- abstra_statics/dist/assets/{console.38bda98e.js → console.f402574a.js} +3 -3
- abstra_statics/dist/assets/{constants.be8ad36c.js → constants.bbfdfb21.js} +2 -2
- abstra_statics/dist/assets/contracts.generated.3f22c968.js +2 -0
- abstra_statics/dist/assets/{cssMode.408206bf.js → cssMode.d0c8e26e.js} +2 -2
- abstra_statics/dist/assets/{datetime.a6d58ce1.js → datetime.d5fe62ba.js} +2 -2
- abstra_statics/dist/assets/{dayjs.703ebc20.js → dayjs.8c9480e7.js} +2 -2
- abstra_statics/dist/assets/editor.11a4f0cf.js +2 -0
- abstra_statics/dist/assets/editor.main.2f21f781.js +2 -0
- abstra_statics/dist/assets/fetch.e0dfa394.js +2 -0
- abstra_statics/dist/assets/{files.1c1692f5.js → files.59b464cc.js} +2 -2
- abstra_statics/dist/assets/{folder.1b74b12c.js → folder.5b0f3179.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.e62e067c.js → freemarker2.03629ab6.js} +2 -2
- abstra_statics/dist/assets/{handlebars.604fc901.js → handlebars.1163d9ba.js} +2 -2
- abstra_statics/dist/assets/{html.c02f177e.js → html.ef74c7bd.js} +2 -2
- abstra_statics/dist/assets/{htmlMode.64078e03.js → htmlMode.8829acd3.js} +2 -2
- abstra_statics/dist/assets/{index.2ec95eae.js → index.07e9309d.js} +2 -2
- abstra_statics/dist/assets/{index.5197afb2.js → index.12e6cfe2.js} +2 -2
- abstra_statics/dist/assets/{index.a12eba98.js → index.2aa34d4f.js} +5 -5
- abstra_statics/dist/assets/{index.82590a75.js → index.5eeedb69.js} +2 -2
- abstra_statics/dist/assets/{index.b91afb03.js → index.63e70668.js} +2 -2
- abstra_statics/dist/assets/index.75a16b09.js +2 -0
- abstra_statics/dist/assets/{index.bec0ecd0.js → index.76cbd30f.js} +2 -2
- abstra_statics/dist/assets/{index.015caad7.js → index.8995a499.js} +2 -2
- abstra_statics/dist/assets/{index.82842143.js → index.d408b03e.js} +2 -2
- abstra_statics/dist/assets/{javascript.57026f87.js → javascript.0dfeb7bb.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.9b45b375.js → jsonMode.179b6695.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.c5760184.css → jwt-decode.cfe2994b.css} +1 -1
- abstra_statics/dist/assets/{jwt-decode.esm.3348bca5.js → jwt-decode.esm.47f59010.js} +88 -54
- abstra_statics/dist/assets/linters.9f818fd6.js +2 -0
- abstra_statics/dist/assets/{liquid.233d5164.js → liquid.0627704b.js} +3 -3
- abstra_statics/dist/assets/{member.d878cf3f.js → member.689a99e8.js} +2 -2
- abstra_statics/dist/assets/{metadata.9f7495db.js → metadata.69e468d6.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.40ad0b1b.js → omniChatStore.07f62bd5.js} +2 -2
- abstra_statics/dist/assets/{organization.8f08e075.js → organization.298987a0.js} +2 -2
- abstra_statics/dist/assets/{os.8ffdbf05.js → os.faa277a9.js} +2 -2
- abstra_statics/dist/assets/player.ebf3133f.js +2 -0
- abstra_statics/dist/assets/{plotly.min.da87d61b.js → plotly.min.16914e67.js} +2 -2
- abstra_statics/dist/assets/polling.96dd15ee.js +2 -0
- abstra_statics/dist/assets/{project.2483de10.js → project.8a5a3632.js} +2 -2
- abstra_statics/dist/assets/{python.1bdbd404.js → python.3bf17d7f.js} +3 -3
- abstra_statics/dist/assets/{razor.be821b87.js → razor.ea162aec.js} +3 -3
- abstra_statics/dist/assets/{record.a108da5a.js → record.30ff6eef.js} +2 -2
- abstra_statics/dist/assets/{redirect.eedb2bf6.js → redirect.d0ca2136.js} +2 -2
- abstra_statics/dist/assets/{repository.48119e01.js → repository.5c0cd878.js} +2 -2
- abstra_statics/dist/assets/repository.b1c27c35.js +2 -0
- abstra_statics/dist/assets/router.ae5c14de.js +2 -0
- abstra_statics/dist/assets/{router.c6e27700.js → router.cfb03f89.js} +5 -5
- abstra_statics/dist/assets/{string.998fa621.js → string.39c8a903.js} +2 -2
- abstra_statics/dist/assets/{tables.9701f90c.js → tables.34208b7c.js} +2 -2
- abstra_statics/dist/assets/tasksController.04461f1a.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.23d5a1ab.js → toggleHighContrast.fa77fdf8.js} +7 -7
- abstra_statics/dist/assets/{tsMode.4558d65a.js → tsMode.a5869619.js} +2 -2
- abstra_statics/dist/assets/{typescript.4445d2fa.js → typescript.f2aa2c4b.js} +3 -3
- abstra_statics/dist/assets/url.4ba49005.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.6ebbc5a2.js → useCodebaseEvents.3542d20f.js} +2 -2
- abstra_statics/dist/assets/useTables.3e387cf0.js +2 -0
- abstra_statics/dist/assets/userStore.e8304ebc.js +2 -0
- abstra_statics/dist/assets/uuid.2075c158.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.f1022925.js → vue-flow-background.32950d16.js} +2 -2
- abstra_statics/dist/assets/{vue-flow-core.0de753a6.js → vue-flow-core.d96b7b33.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.8f4ad2b3.js → vue-quill.esm-bundler.42450ff3.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.5d3f2aec.js → workspaceStore.9693f43b.js} +2 -2
- abstra_statics/dist/assets/{xml.8a25758b.js → xml.a1244cf9.js} +3 -3
- abstra_statics/dist/assets/{yaml.e466330b.js → yaml.759fa896.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_internals/services/fs_storage.py +0 -76
- abstra_internals/services/fs_storage_test.py +0 -71
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.1035457c.js +0 -2
- abstra_statics/dist/assets/App.9ab9cabb.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.6713c9c9.js +0 -2
- abstra_statics/dist/assets/BaseLayout.28c01b5b.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.39b5ab06.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.5360224e.js +0 -2
- abstra_statics/dist/assets/ContentLayout.10f24838.js +0 -2
- abstra_statics/dist/assets/EnvVars.883a4a57.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.2441b96e.js +0 -2
- abstra_statics/dist/assets/Form.5d562f15.js +0 -2
- abstra_statics/dist/assets/Form.7493bc0a.css +0 -1
- abstra_statics/dist/assets/FormRunner.2b1b3c45.js +0 -2
- abstra_statics/dist/assets/Home.8502aa41.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.ac03ea28.js +0 -2
- abstra_statics/dist/assets/Login.8bd6a07a.js +0 -2
- abstra_statics/dist/assets/Logo.fc8ace6c.js +0 -2
- abstra_statics/dist/assets/Logs.4c6c0b3a.js +0 -2
- abstra_statics/dist/assets/LogsController.a58ca42a.js +0 -2
- abstra_statics/dist/assets/Main.e6b2d2d5.js +0 -2
- abstra_statics/dist/assets/MockForm.e410c2c1.css +0 -1
- abstra_statics/dist/assets/NewEditor.2b6f4ed3.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.987cebba.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.6c00d878.js +0 -2
- abstra_statics/dist/assets/PhCopySimple.vue.369eb629.js +0 -2
- abstra_statics/dist/assets/PhDatabase.vue.0d3246d7.js +0 -2
- abstra_statics/dist/assets/Project.6c4642b5.js +0 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.62178939.js +0 -2
- abstra_statics/dist/assets/Steps.82252fc0.js +0 -2
- abstra_statics/dist/assets/TableCard.5462c89d.js +0 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.3e5206e0.js +0 -2
- abstra_statics/dist/assets/WorkflowViewer.2666936e.js +0 -2
- abstra_statics/dist/assets/WorkflowViewer.3b6aee8e.css +0 -1
- abstra_statics/dist/assets/ant-design.b3eefa58.js +0 -2
- abstra_statics/dist/assets/asyncComputed.c73d027a.js +0 -2
- abstra_statics/dist/assets/colorHelpers.5ee17d14.js +0 -2
- abstra_statics/dist/assets/contracts.generated.f01de5a3.js +0 -2
- abstra_statics/dist/assets/editor.a77b56bd.js +0 -2
- abstra_statics/dist/assets/editor.main.a1ebf0ab.js +0 -2
- abstra_statics/dist/assets/fetch.cd29ef4c.js +0 -2
- abstra_statics/dist/assets/index.b72cb2b3.js +0 -2
- abstra_statics/dist/assets/linters.903f3240.js +0 -2
- abstra_statics/dist/assets/player.7112583e.js +0 -2
- abstra_statics/dist/assets/polling.f547718c.js +0 -2
- abstra_statics/dist/assets/repository.353e892d.js +0 -2
- abstra_statics/dist/assets/repository.677ca13c.js +0 -2
- abstra_statics/dist/assets/router.c7abfb0c.js +0 -2
- abstra_statics/dist/assets/tasksController.5db769f7.js +0 -4
- abstra_statics/dist/assets/url.5d02a63f.js +0 -2
- abstra_statics/dist/assets/useTables.4d5edd80.js +0 -2
- abstra_statics/dist/assets/userStore.34b8f1eb.js +0 -2
- abstra_statics/dist/assets/uuid.6980e2bb.js +0 -2
- {abstra-3.24.3.dist-info → abstra-3.24.5.dist-info}/WHEEL +0 -0
- {abstra-3.24.3.dist-info → abstra-3.24.5.dist-info}/entry_points.txt +0 -0
- {abstra-3.24.3.dist-info → abstra-3.24.5.dist-info}/top_level.txt +0 -0
- /abstra_statics/dist/assets/{LogsController.61f8e22d.css → ExecutionContext.61f8e22d.css} +0 -0
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
from pathlib import Path
|
|
3
|
-
from typing import Generic, List, Optional, Type, TypeVar
|
|
4
|
-
|
|
5
|
-
from abstra_internals.logger import AbstraLogger
|
|
6
|
-
from abstra_internals.repositories.multiprocessing import MPContext
|
|
7
|
-
from abstra_internals.services.fs import FileSystemService
|
|
8
|
-
from abstra_internals.settings import Settings
|
|
9
|
-
from abstra_internals.utils.serializable import Serializable
|
|
10
|
-
|
|
11
|
-
T = TypeVar("T", bound=Serializable)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class FileSystemStorage(Generic[T]):
|
|
15
|
-
def __init__(self, mp_context: MPContext, directory: str, model: Type[T]):
|
|
16
|
-
self.lock = mp_context.RLock()
|
|
17
|
-
self.directory = directory
|
|
18
|
-
self.model = model
|
|
19
|
-
|
|
20
|
-
@property
|
|
21
|
-
def directory_path(self) -> Path:
|
|
22
|
-
return Settings.root_path / self.directory
|
|
23
|
-
|
|
24
|
-
def save(self, id: str, data: T) -> None:
|
|
25
|
-
with self.lock:
|
|
26
|
-
file_path = self._get_file_path(id)
|
|
27
|
-
|
|
28
|
-
with file_path.open("w", encoding="utf-8") as f:
|
|
29
|
-
f.write(data.dump_json())
|
|
30
|
-
|
|
31
|
-
def load_all(self) -> List[T]:
|
|
32
|
-
with self.lock:
|
|
33
|
-
data = [
|
|
34
|
-
self._load(file_path.stem)
|
|
35
|
-
for file_path in FileSystemService.list_files(
|
|
36
|
-
self.directory_path,
|
|
37
|
-
allowed_suffixes=[".json"],
|
|
38
|
-
)
|
|
39
|
-
]
|
|
40
|
-
|
|
41
|
-
return [d for d in data if d is not None]
|
|
42
|
-
|
|
43
|
-
def load(self, id: str) -> Optional[T]:
|
|
44
|
-
with self.lock:
|
|
45
|
-
return self._load(id)
|
|
46
|
-
|
|
47
|
-
def delete(self, id: str) -> None:
|
|
48
|
-
with self.lock:
|
|
49
|
-
file_path = self._get_file_path(id)
|
|
50
|
-
if file_path.exists():
|
|
51
|
-
file_path.unlink()
|
|
52
|
-
|
|
53
|
-
def clear(self) -> None:
|
|
54
|
-
with self.lock:
|
|
55
|
-
for file_path in FileSystemService.list_files(
|
|
56
|
-
self.directory_path,
|
|
57
|
-
allowed_suffixes=[".json"],
|
|
58
|
-
):
|
|
59
|
-
file_path.unlink()
|
|
60
|
-
|
|
61
|
-
def _get_file_path(self, id: str) -> Path:
|
|
62
|
-
self.directory_path.mkdir(parents=True, exist_ok=True)
|
|
63
|
-
return self.directory_path / f"{id}.json"
|
|
64
|
-
|
|
65
|
-
def _load(self, id: str) -> Optional[T]:
|
|
66
|
-
file_path = self._get_file_path(id)
|
|
67
|
-
if file_path.exists():
|
|
68
|
-
try:
|
|
69
|
-
with file_path.open("r", encoding="utf-8") as f:
|
|
70
|
-
dto = json.load(f)
|
|
71
|
-
return self.model(**dto)
|
|
72
|
-
except Exception as e:
|
|
73
|
-
AbstraLogger.capture_exception(e)
|
|
74
|
-
self.delete(id)
|
|
75
|
-
|
|
76
|
-
return None
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import json
|
|
2
|
-
|
|
3
|
-
from abstra_internals.services.fs_storage import FileSystemStorage
|
|
4
|
-
from abstra_internals.utils.serializable import Serializable
|
|
5
|
-
from tests.fixtures import BaseTest
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class MockModel(Serializable):
|
|
9
|
-
name: str
|
|
10
|
-
age: int
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class TestFileManager(BaseTest):
|
|
14
|
-
def setUp(self) -> None:
|
|
15
|
-
super().setUp()
|
|
16
|
-
mp_context = self.repositories.mp_context.get_context()
|
|
17
|
-
self.manager = FileSystemStorage[MockModel](
|
|
18
|
-
mp_context, directory="test", model=MockModel
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
def test_save_and_load(self):
|
|
22
|
-
test_data = MockModel(name="John", age=30)
|
|
23
|
-
self.manager.save("test_id", test_data)
|
|
24
|
-
|
|
25
|
-
loaded_data = self.manager.load("test_id")
|
|
26
|
-
assert loaded_data is not None
|
|
27
|
-
assert loaded_data.name == "John"
|
|
28
|
-
assert loaded_data.age == 30
|
|
29
|
-
|
|
30
|
-
def test_load_all(self):
|
|
31
|
-
test_data1 = MockModel(name="John", age=30)
|
|
32
|
-
test_data2 = MockModel(name="Jane", age=25)
|
|
33
|
-
|
|
34
|
-
self.manager.save("test_id_1", test_data1)
|
|
35
|
-
self.manager.save("test_id_2", test_data2)
|
|
36
|
-
|
|
37
|
-
loaded_data = self.manager.load_all()
|
|
38
|
-
assert len(loaded_data) == 2
|
|
39
|
-
|
|
40
|
-
def test_delete(self):
|
|
41
|
-
test_data = MockModel(name="John", age=30)
|
|
42
|
-
self.manager.save("test_id", test_data)
|
|
43
|
-
|
|
44
|
-
self.manager.delete("test_id")
|
|
45
|
-
loaded_data = self.manager.load("test_id")
|
|
46
|
-
assert loaded_data is None
|
|
47
|
-
|
|
48
|
-
def test_clear(self):
|
|
49
|
-
test_data1 = MockModel(name="John", age=30)
|
|
50
|
-
test_data2 = MockModel(name="Jane", age=25)
|
|
51
|
-
|
|
52
|
-
self.manager.save("test_id_1", test_data1)
|
|
53
|
-
self.manager.save("test_id_2", test_data2)
|
|
54
|
-
|
|
55
|
-
self.manager.clear()
|
|
56
|
-
loaded_data = self.manager.load_all()
|
|
57
|
-
assert len(loaded_data) == 0
|
|
58
|
-
|
|
59
|
-
def test_load_nonexistent(self):
|
|
60
|
-
loaded_data = self.manager.load("nonexistent_id")
|
|
61
|
-
assert loaded_data is None
|
|
62
|
-
|
|
63
|
-
def test_save_invalid_data(self):
|
|
64
|
-
invalid_data = {"name": "John", "age": "thirty"}
|
|
65
|
-
|
|
66
|
-
file_path = self.manager._get_file_path("test_id")
|
|
67
|
-
with file_path.open("w", encoding="utf-8") as f:
|
|
68
|
-
json.dump(invalid_data, f, indent=4)
|
|
69
|
-
|
|
70
|
-
loaded_data = self.manager.load("test_id")
|
|
71
|
-
assert loaded_data is None
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L as t}from"./Logo.fc8ace6c.js";import{d as n,o as r,a as d,u as i}from"./jwt-decode.esm.3348bca5.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]="2a853cca-a7f6-40b7-8a81-98857ce306a2",e._sentryDebugIdIdentifier="sentry-dbid-2a853cca-a7f6-40b7-8a81-98857ce306a2")}catch{}})();const f="/assets/logo.0faadfa2.svg",u=n({__name:"AbstraLogo",props:{hideText:{type:Boolean},size:{}},setup(e){return(a,o)=>{var s;return r(),d(t,{"image-url":i(f),"brand-name":"Abstra","hide-text":a.hideText,size:(s=a.size)!=null?s:"small"},null,8,["image-url","hide-text","size"])}}});export{u as _};
|
|
2
|
-
//# sourceMappingURL=AbstraLogo.vue_vue_type_script_setup_true_lang.1035457c.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./App.vue_vue_type_style_index_0_lang.6713c9c9.js";import{_ as u}from"./App.vue_vue_type_style_index_0_lang.6713c9c9.js";import"./userStore.34b8f1eb.js";import"./jwt-decode.esm.3348bca5.js";import"./PlayerConfigProvider.ad360920.js";import"./colorHelpers.5ee17d14.js";import"./workspaceStore.5d3f2aec.js";import"./url.5d02a63f.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]="a9d108a2-a0cb-431b-943e-d956ee0e3354",e._sentryDebugIdIdentifier="sentry-dbid-a9d108a2-a0cb-431b-943e-d956ee0e3354")}catch{}})();export{u as default};
|
|
2
|
-
//# sourceMappingURL=App.9ab9cabb.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as r}from"./userStore.34b8f1eb.js";import{W as n}from"./PlayerConfigProvider.ad360920.js";import{u as c}from"./workspaceStore.5d3f2aec.js";import{d,w as f,j as i,u as o,a as p,b as u,h as l,o as m,f as _}from"./jwt-decode.esm.3348bca5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="e6cadc13-d242-4f41-84df-59cabb0dd923",t._sentryDebugIdIdentifier="sentry-dbid-e6cadc13-d242-4f41-84df-59cabb0dd923")}catch{}})();const v=d({__name:"App",setup(t){const a=r(),e=c();return e.actions.fetch(),f(()=>a.jwt,e.actions.fetch),(w,y)=>{const s=i("RouterView");return o(e).state.workspace?(m(),p(n,{key:0,"main-color":o(e).state.workspace.mainColor,background:o(e).state.workspace.theme,"font-family":o(e).state.workspace.fontFamily,locale:o(e).state.workspace.language},{default:u(()=>[_(s,{style:{height:"100vh",width:"100%"}})]),_:1},8,["main-color","background","font-family","locale"])):l("",!0)}}});export{v as _};
|
|
2
|
-
//# sourceMappingURL=App.vue_vue_type_style_index_0_lang.6713c9c9.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as c,o,ac as n,ae as s,e as a,h as d}from"./jwt-decode.esm.3348bca5.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]="14792ee0-f7e9-4eeb-a47c-36f8417aa057",e._sentryDebugIdIdentifier="sentry-dbid-14792ee0-f7e9-4eeb-a47c-36f8417aa057")}catch{}})();const r={},i={class:"base-layout"},_={class:"base-middle"},f={class:"content"},l={class:"left"},u={key:0,class:"base-footer"},y={key:0};function b(e,t){return o(),n("div",i,[s(e.$slots,"sidebar",{},void 0,!0),a("section",_,[s(e.$slots,"navbar",{},void 0,!0),a("section",f,[a("section",l,[s(e.$slots,"content",{},void 0,!0),e.$slots.footer?(o(),n("section",u,[s(e.$slots,"footer",{},void 0,!0)])):d("",!0)]),e.$slots.chat?(o(),n("section",y,[s(e.$slots,"chat",{},void 0,!0)])):d("",!0)])])])}const g=c(r,[["render",b],["__scopeId","data-v-da85ecdc"]]);export{g as B};
|
|
2
|
-
//# sourceMappingURL=BaseLayout.28c01b5b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as a,ee as c,f3 as u}from"./jwt-decode.esm.3348bca5.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]="23bd0343-74c8-4938-bd20-50a0c34a5274",e._sentryDebugIdIdentifier="sentry-dbid-23bd0343-74c8-4938-bd20-50a0c34a5274")}catch{}})();function o(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){d(e,i,r[i])})}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=function(t,r){var n=o({},t,r.attrs);return a(c,o({},n,{icon:u}),null)};l.displayName="CloseCircleOutlined";l.inheritAttrs=!1;const s=l;export{s as C};
|
|
2
|
-
//# sourceMappingURL=CloseCircleOutlined.39b5ab06.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as s}from"./OmniChat.c78c1e51.js";import{u as a}from"./omniChatStore.40ad0b1b.js";import{d as i,ei as c,u as t,o as d,a as u,h as f}from"./jwt-decode.esm.3348bca5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="de81ba99-934b-45b0-b443-ff4f0d784762",e._sentryDebugIdIdentifier="sentry-dbid-de81ba99-934b-45b0-b443-ff4f0d784762")}catch{}})();const _=i({__name:"ConsoleOmniChat",setup(e){const n=c().params.projectId,o=a();return o.init("console",n),(l,p)=>t(o).controller&&t(o).repository?(d(),u(s,{key:0,"ai-chat-repository":t(o).repository,controller:t(o).controller,environment:{origin:"console",projectId:t(n)},"show-console-suggestions":!0},null,8,["ai-chat-repository","controller","environment"])):f("",!0)}});export{_};
|
|
2
|
-
//# sourceMappingURL=ConsoleOmniChat.vue_vue_type_script_setup_true_lang.5360224e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as a,o as d,ac as s,e as l,ae as r,eh as n,_ as f}from"./jwt-decode.esm.3348bca5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="193c9a64-26bf-46f8-a7e2-9a25de3d5ee1",t._sentryDebugIdIdentifier="sentry-dbid-193c9a64-26bf-46f8-a7e2-9a25de3d5ee1")}catch{}})();const i=a({__name:"ContentLayout",props:{fullWidth:{type:Boolean},noPadding:{type:Boolean}},setup(t){return(e,o)=>(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.10f24838.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as i,C as n}from"./View.vue_vue_type_script_setup_true_lang.c79117ce.js";import{d as p,ei as s,a,u as m,o as d}from"./jwt-decode.esm.3348bca5.js";import"./router.c6e27700.js";import"./index.015caad7.js";import"./fetch.cd29ef4c.js";import"./record.a108da5a.js";import"./SaveButton.c3ad6e9b.js";import"./ExclamationCircleOutlined.2441b96e.js";import"./CrudView.57e8b29a.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.108b18e1.js";import"./constants.be8ad36c.js";import"./url.5d02a63f.js";import"./PhDotsThreeVertical.vue.9d76c4de.js";import"./index.5197afb2.js";import"./asyncComputed.c73d027a.js";import"./omniChatStore.40ad0b1b.js";import"./uuid.6980e2bb.js";import"./PhCopySimple.vue.369eb629.js";import"./PhPencil.vue.0fc0fcc0.js";import"./useCodebaseEvents.6ebbc5a2.js";import"./contracts.generated.f01de5a3.js";import"./index.bec0ecd0.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]="2f01b6a8-1efd-416d-abc1-5098ff554c8b",o._sentryDebugIdIdentifier="sentry-dbid-2f01b6a8-1efd-416d-abc1-5098ff554c8b")}catch{}})();const A=p({__name:"EnvVars",setup(o){const t=s().params.projectId,e=new n(t);return(f,c)=>(d(),a(i,{"env-var-repository":m(e),mode:"console"},null,8,["env-var-repository"]))}});export{A as default};
|
|
2
|
-
//# sourceMappingURL=EnvVars.883a4a57.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as c,ee as f,f4 as o}from"./jwt-decode.esm.3348bca5.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]="8570a20e-0001-443c-a4aa-0bff45d9eab4",e._sentryDebugIdIdentifier="sentry-dbid-8570a20e-0001-443c-a4aa-0bff45d9eab4")}catch{}})();function l(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){u(e,a,n[a])})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=function(t,n){var r=l({},t,n.attrs);return c(f,l({},r,{icon:o}),null)};i.displayName="ExclamationCircleOutlined";i.inheritAttrs=!1;const s=i;export{s as E};
|
|
2
|
-
//# sourceMappingURL=ExclamationCircleOutlined.2441b96e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as E}from"./userStore.34b8f1eb.js";import{b as C,c as R,d as b}from"./FormRunner.2b1b3c45.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.3348bca5.js";import{r as q}from"./redirect.eedb2bf6.js";import{a as G}from"./asyncComputed.c73d027a.js";import{u as h}from"./uuid.6980e2bb.js";import{L as P}from"./CircularLoading.d81a4cac.js";import{f as j}from"./workspaceStore.5d3f2aec.js";import"./Login.vue_vue_type_script_setup_true_lang.02acef81.js";import"./Logo.fc8ace6c.js";import"./string.998fa621.js";import"./index.bec0ecd0.js";import"./Steps.82252fc0.js";import"./index.82842143.js";import"./Watermark.c0756030.js";import"./constants.be8ad36c.js";import"./url.5d02a63f.js";import"./colorHelpers.5ee17d14.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[a]="a237f6f9-e977-4415-9d29-f9980a449e15",u._sentryDebugIdIdentifier="sentry-dbid-a237f6f9-e977-4415-9d29-f9980a449e15")}catch{}})();const z={key:0,class:"loading"},H=k({__name:"Form",setup(u){const a=S(),c=U(),f=F({playerKey:h()}),g=E(),i=A(null);I(a,()=>{a.name==="form"&&w()});const{loading:d,result:t,error:p,refetch:w}=G(async()=>{f.playerKey=h();const r=a.path.slice(1),e=await j(r);if(!e){c.push({name:"error",params:{status:"404"}});return}const n=new R({formRunnerData:e,logService:null,connectionManager:new b(e.id,"player",a.query),onRedirect:_,onFormStart:()=>{},onFormEnd:()=>{},onStackTraceUpdate:null,onStateUpdate:l=>i.value=l}),s=n.getState();return i.value=s.formState,{runnerData:e,controller:n}}),D=L(()=>{const r=!d,e=!!p,n=!t||i.value===null;return r&&(e||n)});W(()=>{var r,e,n,s,l;D.value&&c.push({name:"error",params:{status:"500"}}),!!((r=t.value)!=null&&r.runnerData)&&(e=t.value)!=null&&e.runnerData&&(document.title=(l=(n=t.value)==null?void 0:n.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 n,s,l,v;return o(d)?(y(),B("div",z,[K(P)])):o(t)&&o(t).runnerData&&i.value&&!o(p)&&!o(d)?(y(),M(C,{key:f.playerKey,"form-runner-data":o(t).runnerData,"form-state":i.value,"is-preview":!1,"user-email":o(g).email,onRedirect:_,onActionClicked:(n=o(t))==null?void 0:n.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.5d562f15.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
|
-
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.34b8f1eb.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.3348bca5.js";import{_ as _sfc_main$3}from"./Login.vue_vue_type_script_setup_true_lang.02acef81.js";import{u as useWorkspaceStore}from"./workspaceStore.5d3f2aec.js";import{L as LoadingIndicator}from"./CircularLoading.d81a4cac.js";import{S as Steps}from"./Steps.82252fc0.js";import{W as Watermark}from"./Watermark.c0756030.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]="d7160bae-5e9d-4796-b8d3-be3223c99198",a._sentryDebugIdIdentifier="sentry-dbid-d7160bae-5e9d-4796-b8d3-be3223c99198")}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.2b1b3c45.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as u,d as m,ec as h,U as b,R as y,j as w,a as g,o as v,_ as I}from"./jwt-decode.esm.3348bca5.js";import{l as d}from"./fetch.cd29ef4c.js";import{u as R}from"./polling.f547718c.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]="56343d2e-fb2a-4cee-833b-7bd0776b324b",t._sentryDebugIdIdentifier="sentry-dbid-56343d2e-fb2a-4cee-833b-7bd0776b324b")}catch{}})();const _=4,C=t=>{const n=t.router,r=u(""),s=u(Array(_).fill(!0));let a=0;const l=async()=>{try{const e=new AbortController,o=setTimeout(()=>e.abort(),1e3),f=await d("/_healthcheck",{method:"GET",signal:e.signal,headers:{"Content-Type":"application/json","Cache-Control":"no-cache"}});clearTimeout(o),s.value[a]=f.status===200}catch{s.value[a]=!1}if(a=(a+1)%_,s.value.every(e=>!e)&&r.value){const e=n.currentRoute.value.path,o=new URLSearchParams;o.set("redirect",e),window.location.href=r.value+"?"+o.toString()}},{startPolling:c,endPolling:p}=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&&(r.value=o.waitingRoomUrl,c())};return{setup:i,cleanUp:p}},H=m({__name:"Home",setup(t){const n=h(),{setup:r,cleanUp:s}=C({router:n});return b(()=>{r()}),y(()=>{s()}),(a,l)=>{const c=w("RouterView");return v(),g(c,{class:"router"})}}});const E=I(H,[["__scopeId","data-v-3737a9c1"]]);export{E as default};
|
|
2
|
-
//# sourceMappingURL=Home.8502aa41.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as o,o as a,ac as s,f as d,u as _,S as r,_ as c}from"./jwt-decode.esm.3348bca5.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]="8b8bb924-239a-4163-99e2-2e44579d6b89",e._sentryDebugIdIdentifier="sentry-dbid-8b8bb924-239a-4163-99e2-2e44579d6b89")}catch{}})();const i={class:"centered"},f=o({__name:"LoadingContainer",setup(e){return(n,t)=>(a(),s("div",i,[d(_(r))]))}});const p=c(f,[["__scopeId","data-v-52e6209a"]]);export{p as L};
|
|
2
|
-
//# sourceMappingURL=LoadingContainer.ac03ea28.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as l}from"./Login.vue_vue_type_script_setup_true_lang.02acef81.js";import{d as m,ec as f,ei as g,ac as y,f as b,u as n,o as w,_ as k}from"./jwt-decode.esm.3348bca5.js";import{u as h}from"./workspaceStore.5d3f2aec.js";import"./CircularLoading.d81a4cac.js";import"./Logo.fc8ace6c.js";import"./string.998fa621.js";import"./index.bec0ecd0.js";import"./userStore.34b8f1eb.js";import"./url.5d02a63f.js";import"./colorHelpers.5ee17d14.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]="6fcac4a5-00d3-43a0-9ac4-3254eac36ad2",e._sentryDebugIdIdentifier="sentry-dbid-6fcac4a5-00d3-43a0-9ac4-3254eac36ad2")}catch{}})();const v={class:"runner"},I=m({__name:"Login",setup(e){const o=f(),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.8bd6a07a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as c,eF as i,c as r,o,ac as t,h as d,eh as _,t as p,_ as u}from"./jwt-decode.esm.3348bca5.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]="7d4af39d-5a64-41a7-bc60-48b3c96e4eb4",e._sentryDebugIdIdentifier="sentry-dbid-7d4af39d-5a64-41a7-bc60-48b3c96e4eb4")}catch{}})();const g={class:"logo"},f=["src","alt"],m=c({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const s=e;i(a=>({"4521d904":n.value}));const n=r(()=>s.size==="small"?"24px":s.size==="large"?"80px":"50px"),l=r(()=>`${s.brandName} Logo`);return(a,b)=>(o(),t("div",g,[a.imageUrl?(o(),t("img",{key:0,class:"logo-img",src:a.imageUrl,alt:l.value},null,8,f)):d("",!0),a.hideText?d("",!0):(o(),t("span",{key:1,class:_(a.size)},p(a.brandName),3))]))}});const h=u(m,[["__scopeId","data-v-8f34aac0"]]);export{h as L};
|
|
2
|
-
//# sourceMappingURL=Logo.fc8ace6c.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as j,at as S,c as D,o as i,ac as _,ae as T,h as V,ed as q,e as A,ei as N,ec as H,R as Q,a as c,b as r,u as e,eB as P,f as a,g as v,t as y,i as s,A as G,cD as B,cE as b,bQ as K,aI as I,S as F,ej as W,d9 as k,eq as Y,dj as J,aY as X,bV as ee,cC as te,cM as ae}from"./jwt-decode.esm.3348bca5.js";import{a as le,E as oe,L as re}from"./LogsController.a58ca42a.js";import{_ as se,R as ne}from"./repository.353e892d.js";import{_ as ie}from"./AbstraButton.vue_vue_type_script_setup_true_lang.13670ae7.js";import{g as de}from"./datetime.a6d58ce1.js";import{c as ue}from"./string.998fa621.js";import{a as m,g as U,A as pe,C as ge}from"./router.c6e27700.js";import{R as $}from"./dayjs.703ebc20.js";import{A as O}from"./index.5197afb2.js";import{b as fe}from"./build.6e7d77b3.js";import"./tables.9701f90c.js";import"./ant-design.b3eefa58.js";import"./PhCopy.vue.71703533.js";import"./polling.f547718c.js";import"./LoadingOutlined.4c40acc4.js";import"./index.015caad7.js";import"./record.a108da5a.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[d]="94f7c459-ed6e-42e9-998e-19d7f886b9a3",g._sentryDebugIdIdentifier="sentry-dbid-94f7c459-ed6e-42e9-998e-19d7f886b9a3")}catch{}})();const ce=["width","height","fill","transform"],_e={key:0},he=A("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"},null,-1),ye=[he],be={key:1},me=A("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"},null,-1),Ae=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),ve=[me,Ae],we={key:2},xe=A("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"},null,-1),Ie=[xe],ke={key:3},Le=A("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"},null,-1),Re=[Le],Ce={key:4},Se=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),De=[Se],Pe={key:5},Ee=A("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"},null,-1),Me=[Ee],ze={name:"PhLink"},Ze=j({...ze,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(g){const d=g,f=S("weight","regular"),L=S("size","1em"),R=S("color","currentColor"),E=S("mirrored",!1),h=D(()=>{var u;return(u=d.weight)!=null?u:f}),C=D(()=>{var u;return(u=d.size)!=null?u:L}),M=D(()=>{var u;return(u=d.color)!=null?u:R}),z=D(()=>d.mirrored!==void 0?d.mirrored?"scale(-1, 1)":void 0:E?"scale(-1, 1)":void 0);return(u,w)=>(i(),_("svg",q({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:C.value,height:C.value,fill:M.value,transform:z.value},u.$attrs),[T(u.$slots,"default"),h.value==="bold"?(i(),_("g",_e,ye)):h.value==="duotone"?(i(),_("g",be,ve)):h.value==="fill"?(i(),_("g",we,Ie)):h.value==="light"?(i(),_("g",ke,Re)):h.value==="regular"?(i(),_("g",Ce,De)):h.value==="thin"?(i(),_("g",Pe,Me)):V("",!0)],16,ce))}}),Ue={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},je={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},Be=j({__name:"Logs",props:{executionRepository:{},buildRepository:{},showAllFilters:{type:Boolean}},setup(g){const d=g,f=N(),L=H(),R=f.params.projectId,E=f.query.executionId;function h(){const{stageId:p,buildId:l,status:t,startDate:n,endDate:x,runId:Z}=f.query;return n&&x?{stageId:p,buildId:l,status:t,dateRange:[P(n),P(x)]}:{stageId:p,buildId:l,status:t,search:Z}}function C(p){const l={};Object.entries(p).forEach(([t,n])=>{typeof n=="string"&&t==="search"&&n?l.runId=n:typeof n=="string"&&n?l[t]=n:t==="dateRange"&&n&&P.isDayjs(n[0])&&P.isDayjs(n[1])&&(l.startDate=n[0].toISOString(),l.endDate=n[1].toISOString())}),L.replace({query:l})}function M(){const{page:p,pageSize:l}=f.query;return{currentIndex:p?parseInt(p,10):1,pageSize:l?parseInt(l,10):10}}function z(p){const l=p.slice(0,6),t=`${window.location.origin}${window.location.pathname}?runId=${l}`;navigator.clipboard.writeText(t),ae.success({content:s.translate("i18n_logs_copied_to_clipboard")})}function u(p,l){let t={...p};return t.sentTasks=l.sentTasks,delete t.mockExecution,l.triggerTask&&(t.triggerTask=l.triggerTask,delete t.taskId),t}const w=new le({executionRepository:d.executionRepository,buildRepository:d.buildRepository,projectId:R,filters:h(),pagination:M(),pool:!0,openedExecutionId:E,onFilterChange:C}),{state:o}=w;return w.init(),Q(()=>w.teardown()),(p,l)=>(i(),c(e(O),{direction:"vertical",style:{width:"100%",padding:"0px 0px 20px 0px"}},{default:r(()=>[a(e(G),null,{default:r(()=>[v(y(e(s).translate("i18n_logs_title")),1)]),_:1}),p.showAllFilters?(i(),c(e(B),{key:0,layout:"vertical"},{default:r(()=>[a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:12},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_run_id_label")},{default:r(()=>[a(e(K),{value:e(o).filters.search,"onUpdate:value":l[0]||(l[0]=t=>e(o).filters.search=t),placeholder:e(s).translate("i18n_logs_search_by_run_id_placeholder"),style:{width:"100%"}},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:12},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_stage_label")},{default:r(()=>[a(e(I),{value:e(o).filters.stageId,"onUpdate:value":l[1]||(l[1]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1}),a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:8},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_date_label")},{default:r(()=>[a(e($),{value:e(o).filters.dateRange,"onUpdate:value":l[2]||(l[2]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:10},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_version_label")},{default:r(()=>[a(e(I),{value:e(o).filters.buildId,"onUpdate:value":l[3]||(l[3]=t=>e(o).filters.buildId=t),options:e(o).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:6},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_status_label")},{default:r(()=>[a(e(I),{value:e(o).filters.status,"onUpdate:value":l[4]||(l[4]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})):(i(),c(e(B),{key:1,layout:"vertical"},{default:r(()=>[a(e(U),{gutter:10},{default:r(()=>[a(e(m),{span:8},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_date_label")},{default:r(()=>[a(e($),{value:e(o).filters.dateRange,"onUpdate:value":l[5]||(l[5]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:10},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_script_label")},{default:r(()=>[a(e(I),{value:e(o).filters.stageId,"onUpdate:value":l[6]||(l[6]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),a(e(m),{span:6},{default:r(()=>[a(e(b),{label:e(s).translate("i18n_logs_status_label")},{default:r(()=>[a(e(I),{value:e(o).filters.status,"onUpdate:value":l[7]||(l[7]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:e(s).translate("i18n_logs_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})),e(o).currentPage.loadingExecutions||e(o).currentPage.waitingDebounce?(i(),c(e(F),{key:2,style:{width:"100%"}})):e(o).currentPage.executions&&e(o).currentPage.executions.length>0?(i(),c(e(O),{key:3,direction:"vertical",style:{width:"100%"}},{default:r(()=>[a(e(ge),{"active-key":e(o).currentPage.openedExecutionIds,"onUpdate:activeKey":l[8]||(l[8]=t=>e(o).currentPage.openedExecutionIds=t),bordered:!1,style:{"background-color":"transparent"},onChange:e(w).fetchEmptyLogs},{default:r(()=>[(i(!0),_(X,null,W(e(o).currentPage.executions,t=>(i(),c(e(pe),{key:t.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:r(()=>[a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(y(e(de)(t.createdAt)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(" Run ID: "+y(t.id.slice(0,8)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(" Version: "+y(t.buildId.slice(0,8)),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[v(y(e(s).translate("i18n_logs_duration_prefix"))+" "+y(t.duration_seconds),1)]),_:2},1024),a(e(k),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>{var n,x;return[v(y((x=(n=e(o).filterOptions.stages.find(Z=>Z.value===t.stageId))==null?void 0:n.label)!=null?x:t.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:r(()=>[A("div",Ue,[a(ie,{type:"text",size:"small",tooltip:e(s).translate("i18n_logs_copy_url_tooltip"),onClick:Y(n=>z(t.id),["stop"])},{default:r(()=>[a(e(Ze))]),_:2},1032,["tooltip","onClick"]),v(" "+y(e(ue)(t.status))+" ",1),a(se,{status:t.status},null,8,["status"])])]),default:r(()=>[e(o).currentPage.executionData[t.id]?(i(),c(e(J),{key:1,vertical:"",gap:"middle"},{default:r(()=>[a(oe,{data:u(t.context,e(o).currentPage.executionData[t.id].tasks),"show-fix-with-ai":!1},null,8,["data"]),a(re,{logs:e(o).currentPage.executionData[t.id].logs},null,8,["logs"])]),_:2},1024)):(i(),_("div",je,[a(e(F))]))]),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),a(e(ee),{current:e(o).pagination.currentIndex,"onUpdate:current":l[9]||(l[9]=t=>e(o).pagination.currentIndex=t),"page-size":e(o).pagination.pageSize,"onUpdate:pageSize":l[10]||(l[10]=t=>e(o).pagination.pageSize=t),total:e(o).pagination.totalCount,"show-total":t=>e(s).translate("i18n_logs_found_runs",null,t),"show-size-changer":""},null,8,["current","page-size","total","show-total"])]),_:1})):(i(),c(e(te),{key:4}))]),_:1}))}}),at=j({__name:"Logs",setup(g){const d=new ne,f=new fe;return(L,R)=>(i(),c(Be,{"execution-repository":e(d),"build-repository":e(f),"show-all-filters":""},null,8,["execution-repository","build-repository"]))}});export{at as default};
|
|
2
|
-
//# sourceMappingURL=Logs.4c6c0b3a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var B=Object.defineProperty;var L=(c,t,e)=>t in c?B(c,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[t]=e;var h=(c,t,e)=>(L(c,typeof t!="symbol"?t+"":t,e),e);import{d as E,at as Z,c as k,o as n,ac as u,ae as F,h as b,ed as $,e as m,a as A,b as p,aY as T,ej as M,ad as z,t as v,u as s,df as C,g as H,dj as D,_ as R,r as N,f,i as g,b0 as I,eh as q,d6 as W,cM as V,al as J,w as P,en as G}from"./jwt-decode.esm.3348bca5.js";import{t as Y}from"./ant-design.b3eefa58.js";import{c as j}from"./string.998fa621.js";import{I as S}from"./PhCopy.vue.71703533.js";import{A as Q}from"./index.5197afb2.js";import{A as U,C as X}from"./router.c6e27700.js";import{B as K}from"./build.6e7d77b3.js";import"./tables.9701f90c.js";import{e as tt}from"./repository.353e892d.js";import{u as et}from"./polling.f547718c.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]="1efc929c-752e-4b41-bca7-fb421ebfa8a3",c._sentryDebugIdIdentifier="sentry-dbid-1efc929c-752e-4b41-bca7-fb421ebfa8a3")}catch{}})();const at=["width","height","fill","transform"],it={key:0},st=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),ot=[st],nt={key:1},rt=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),lt=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),ct=[rt,lt],dt={key:2},ut=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),pt=[ut],ht={key:3},gt=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),ft=[gt],mt={key:4},yt=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),_t=[yt],xt={key:5},bt=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),At=[bt],vt={name:"PhRobot"},Ht=E({...vt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(c){const t=c,e=Z("weight","regular"),i=Z("size","1em"),o=Z("color","currentColor"),r=Z("mirrored",!1),d=k(()=>{var l;return(l=t.weight)!=null?l:e}),y=k(()=>{var l;return(l=t.size)!=null?l:i}),_=k(()=>{var l;return(l=t.color)!=null?l:o}),a=k(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(l,x)=>(n(),u("svg",$({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:y.value,height:y.value,fill:_.value,transform:a.value},l.$attrs),[F(l.$slots,"default"),d.value==="bold"?(n(),u("g",it,ot)):d.value==="duotone"?(n(),u("g",nt,ct)):d.value==="fill"?(n(),u("g",dt,pt)):d.value==="light"?(n(),u("g",ht,ft)):d.value==="regular"?(n(),u("g",mt,_t)):d.value==="thin"?(n(),u("g",xt,At)):b("",!0)],16,at))}}),wt={key:0,class:"cli"},Zt={key:0},kt=E({__name:"LogContainer",props:{logs:{}},setup(c){return(t,e)=>(n(),A(s(D),{vertical:"",gap:"small"},{default:p(()=>[t.logs.entries.length?(n(),u("div",wt,[(n(!0),u(T,null,M(t.logs.entries,i=>(n(),u("p",{key:i.createdAt,style:z({margin:0,"white-space":"pre-wrap",color:i.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},[i.payload.text?(n(),u("span",Zt,v(i.payload.text.trim()),1)):b("",!0)],4))),128))])):(n(),A(s(C),{key:1,type:"secondary"},{default:p(()=>[H("Empty")]),_:1}))]),_:1}))}});const $t=R(kt,[["__scopeId","data-v-b7f04a41"]]),Vt={key:0},Ct=["onClick"],It=["onClick"],Pt=E({__name:"ExecutionContext",props:{data:{},showFixWithAi:{type:Boolean},isSmartChatIdle:{type:Boolean}},emits:["ask-ai"],setup(c,{emit:t}){const e=c,i=N(!1),o=a=>{if(a==="legacyThreadData")return g.translate("i18n_executioncontext_thread_data");const l=j(a);return l.replace(/([A-Z])/g," $1").trim(),l},r=a=>a==null?!0:Array.isArray(a)?a.length===0:typeof a=="object"?Object.keys(a).length===0:!1,d=a=>{typeof a=="object"&&a!==null&&"payload"in a?(navigator.clipboard.writeText(JSON.stringify(a.payload)),V.success({content:g.translate("i18n_executioncontext_copied_to_clipboard")})):(navigator.clipboard.writeText(""),V.error({content:g.translate("i18n_executioncontext_no_payload")}))},y=a=>{i.value=!0,a.stopPropagation(),e.isSmartChatIdle!==!1&&(t("ask-ai"),setTimeout(()=>{i.value=!1},1e3))},_=a=>{typeof a=="object"?(navigator.clipboard.writeText(JSON.stringify(a)),V.success({content:g.translate("i18n_executioncontext_copied_to_clipboard")})):(navigator.clipboard.writeText(""),V.error({content:g.translate("i18n_executioncontext_failed_copy_request")}))};return(a,l)=>(n(),A(s(X),{bordered:!1,style:{"background-color":"transparent",width:"100%"}},{default:p(()=>[f(s(U),{key:"execution-context"},{header:p(()=>[f(s(D),{justify:"space-between"},{default:p(()=>[f(s(C),null,{default:p(()=>[H(v(s(g).translate("i18n_executioncontext_header")),1)]),_:1}),f(s(I),{title:a.isSmartChatIdle?"":s(g).translate("i18n_executioncontext_wait_or_stop"),placement:"left"},{default:p(()=>[a.showFixWithAi?(n(),u("div",{key:0,class:q(["ask-to-ai",{disabled:!a.isSmartChatIdle||i.value}]),onClick:y},[H(v(s(g).translate("i18n_executioncontext_fix_with_ai"))+" ",1),f(s(Ht),{size:16})],2)):b("",!0)]),_:1},8,["title"])]),_:1})]),default:p(()=>[f(s(Q),{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:p(()=>[Object.keys(a.data).length?(n(!0),u(T,{key:1},M(Object.entries(a.data),([x,w])=>(n(),u("div",{key:x,class:"tree"},[x!=="legacyThreadData"||!r(w)?(n(),u("div",Vt,[f(s(C),{strong:""},{default:p(()=>[H(v(o(x)),1)]),_:2},1024),x==="request"?(n(),A(s(I),{key:0,title:s(g).translate("i18n_executioncontext_copy_request_tooltip")},{default:p(()=>[m("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:O=>_(w)},[f(s(S))],8,Ct)]),_:2},1032,["title"])):b("",!0),x==="triggerTask"?(n(),A(s(I),{key:1,title:s(g).translate("i18n_executioncontext_copy_payload_tooltip")},{default:p(()=>[m("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:O=>d(w)},[f(s(S))],8,It)]),_:2},1032,["title"])):b("",!0),f(s(W),{"tree-data":s(Y)(w),selectable:!1},null,8,["tree-data"])])):b("",!0)]))),128)):(n(),A(s(C),{key:0,type:"secondary"},{default:p(()=>[H(v(s(g).translate("i18n_executioncontext_empty")),1)]),_:1}))]),_:1})]),_:1})]),_:1}))}});const zt=R(Pt,[["__scopeId","data-v-f7630ec7"]]);class Nt{constructor(t){h(this,"state");h(this,"polling",et({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",G.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:e,buildRepository:i,projectId:o,filters:r={},pagination:d={},pool:y=!1,openedExecutionId:_,onFilterChange:a}=t;this.executionRepository=e,this.buildRepository=i,this.projectId=o,this.pool=y,this.onFilterChange=a,this.state=J({currentPage:{openedExecutionIds:_?[_]:[],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,...r},filterOptions:{builds:[],stages:[],statuses:tt.map(l=>({label:j(l),value:l}))}}),P(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),P(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),P(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 e=this.state.currentPage.executions;return t&&(e=e.filter(o=>o.stageId===t)),e.length===0?null:e.reduce((o,r)=>o.createdAt>r.createdAt?o:r).id}async fetchPage(){var i,o,r,d;this.state.currentPage.loadingExecutions=!0;const{executions:t,totalCount:e}=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=(r=this.state.filters.dateRange)==null?void 0:r[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=e}async fetchBuildOptions(){if(!this.buildRepository)return;const e=(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=e}async fetchStageOptions(){var i;if(!this.buildRepository){const r=(await this.executionRepository.fetchStages()).map(d=>({label:d.title,value:d.id}));this.state.filterOptions.stages=r!=null?r:[];return}const t=await K.get((i=this.state.filters.buildId)!=null?i:this.state.filterOptions.builds[0].value),e=t==null?void 0:t.runtimes.map(o=>({label:o.title,value:o.id}));this.state.filterOptions.stages=e!=null?e:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchExecutionDetails(t){const[e,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:e,threadData:i,tasks:{triggerTask:o.triggerTask?{type:o.triggerTask.type,payload:o.triggerTask.payload}:null,sentTasks:o.sentTasks.map(r=>({type:r.type,payload:r.payload}))}}}async refetch(){this.state.currentPage.openedExecutionIds.map(t=>this.fetchExecutionDetails(t))}}export{zt as E,$t as L,Nt as a};
|
|
2
|
-
//# sourceMappingURL=LogsController.a58ca42a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P as f}from"./PlayerNavbar.97e8dee9.js";import{d as g,ec as h,ei as c,r as b,c as y,j as k,ac as v,u as n,a as w,h as L,e as C,f as I,o as i,_ as N}from"./jwt-decode.esm.3348bca5.js";import{u as V}from"./workspaceStore.5d3f2aec.js";import"./userStore.34b8f1eb.js";import"./metadata.9f7495db.js";import"./PhWebhooksLogo.vue.58a98824.js";import"./LoadingOutlined.4c40acc4.js";import"./PhSignOut.vue.8d8dfd96.js";import"./index.b91afb03.js";import"./url.5d02a63f.js";import"./colorHelpers.5ee17d14.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]="a244370a-dfb2-4c6c-87b3-acdab9889d5a",a._sentryDebugIdIdentifier="sentry-dbid-a244370a-dfb2-4c6c-87b3-acdab9889d5a")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(a){const e=h(),o=V(),d=c().path,t=b(null),u=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"})},_=y(()=>!!c().meta.hideLogin);return(s,r)=>{const m=k("RouterView");return i(),v("div",x,[n(o).state.workspace?(i(),w(f,{key:0,"current-path":n(d),"hide-login":_.value,"runner-data":n(o).state.workspace,loading:t.value,onNavigate:u,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.e6b2d2d5.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}
|