abstra 3.23.3__py3-none-any.whl → 3.23.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/METADATA +1 -1
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/RECORD +187 -188
- abstra_internals/controllers/execution/consumer.py +27 -39
- abstra_internals/controllers/execution/execution.py +7 -4
- abstra_internals/controllers/execution/execution_client.py +2 -11
- abstra_internals/controllers/execution/execution_client_form.py +10 -11
- abstra_internals/controllers/execution/execution_client_hook.py +3 -9
- abstra_internals/controllers/execution/execution_stdio.py +3 -14
- abstra_internals/controllers/execution/execution_test.py +5 -9
- abstra_internals/controllers/execution/worker_process.py +8 -33
- abstra_internals/controllers/main.py +18 -26
- abstra_internals/entities/execution_context.py +1 -0
- abstra_internals/entities/execution_test.py +6 -3
- abstra_internals/interface/cli/editor.py +6 -3
- abstra_internals/interface/sdk/forms/deprecated/page_test.py +6 -8
- abstra_internals/interface/sdk/tables/api_test.py +1 -7
- abstra_internals/logs_watcher.py +13 -6
- abstra_internals/repositories/consumer.py +1 -3
- abstra_internals/repositories/factory.py +7 -6
- abstra_internals/repositories/producer.py +7 -41
- abstra_internals/repositories/project/project_test.py +1 -6
- abstra_internals/repositories/tasks.py +8 -4
- abstra_internals/server/blueprints/player.py +39 -24
- abstra_internals/server/guards/role_guard_test.py +1 -6
- abstra_internals/server/routes/forms.py +10 -3
- abstra_internals/server/routes/stdio.py +3 -3
- abstra_internals/stdio_patcher.py +4 -4
- abstra_internals/tasks_watcher.py +59 -0
- abstra_internals/utils/ai.py +4 -9
- abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.c714d609.js → AbstraButton.vue_vue_type_script_setup_true_lang.86a761e5.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.d02ffa6d.js +2 -0
- abstra_statics/dist/assets/ApiKeys.e132de0a.js +2 -0
- abstra_statics/dist/assets/App.9aa34c4e.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.9dc1f7e7.js +2 -0
- abstra_statics/dist/assets/BaseLayout.d41dae76.js +2 -0
- abstra_statics/dist/assets/Billing.04224d7b.js +2 -0
- abstra_statics/dist/assets/{Breadcrumb.1d42c80c.js → Breadcrumb.00a432b7.js} +2 -2
- abstra_statics/dist/assets/{Builds.4641dcf9.js → Builds.329c2faa.js} +2 -2
- abstra_statics/dist/assets/{Card.774e5d67.js → Card.d8993609.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.02fd7b7b.js → CircularLoading.e0819e0b.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.ae1e7621.js +2 -0
- abstra_statics/dist/assets/{ConnectorsView.746c7417.js → ConnectorsView.4c23ea88.js} +2 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.f2c53fd6.js +2 -0
- abstra_statics/dist/assets/{ContentLayout.4fc85c66.js → ContentLayout.9774740e.js} +2 -2
- abstra_statics/dist/assets/{CrudView.7f2cbde4.js → CrudView.01e6ed04.js} +2 -2
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js → DocsButton.vue_vue_type_script_setup_true_lang.3efd2188.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.45764526.js → EditorLogin.b9477432.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.e9452d34.js → EditorsView.ec2e0465.js} +2 -2
- abstra_statics/dist/assets/EnvVars.72e8a906.js +2 -0
- abstra_statics/dist/assets/Error.75789fcd.js +2 -0
- abstra_statics/dist/assets/ExclamationCircleOutlined.443f1727.js +2 -0
- abstra_statics/dist/assets/{Files.8bcd4d1f.js → Files.598e1924.js} +2 -2
- abstra_statics/dist/assets/Form.dcd328f9.js +2 -0
- abstra_statics/dist/assets/{FormRunner.f721431d.js → FormRunner.22c166b3.js} +2 -2
- abstra_statics/dist/assets/Home.29af870e.js +2 -0
- abstra_statics/dist/assets/Home.5a193adf.js +2 -0
- abstra_statics/dist/assets/{Live.2bbd1666.js → Live.47f1d55b.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.4d7a6e83.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.688afd1b.js +2 -0
- abstra_statics/dist/assets/Login.543da72d.js +2 -0
- abstra_statics/dist/assets/{Login.186f24a9.js → Login.d4ed4415.js} +2 -2
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.fab46c0c.js → Login.vue_vue_type_script_setup_true_lang.7a0b5cb9.js} +2 -2
- abstra_statics/dist/assets/Logo.a483cebb.js +2 -0
- abstra_statics/dist/assets/Logs.93696d9a.js +2 -0
- abstra_statics/dist/assets/LogsController.051e4c97.js +2 -0
- abstra_statics/dist/assets/Main.e6271958.js +2 -0
- abstra_statics/dist/assets/{MockForm.9b6a244c.js → MockForm.60f0a0c9.js} +2 -2
- abstra_statics/dist/assets/Navbar.6beb23a2.js +2 -0
- abstra_statics/dist/assets/{NewEditor.1d7ddf86.js → NewEditor.a3f0cf6f.js} +5 -5
- abstra_statics/dist/assets/OidcLoginCallback.5d621b1e.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.726fd77b.js +2 -0
- abstra_statics/dist/assets/{OmniChat.5e68be1c.js → OmniChat.65218812.js} +2 -2
- abstra_statics/dist/assets/{OnboardingView.8733d184.js → OnboardingView.7b28e3d9.js} +2 -2
- abstra_statics/dist/assets/{Organization.bcb76b94.js → Organization.4d764c53.js} +2 -2
- abstra_statics/dist/assets/{Organizations.3dbd99e1.js → Organizations.99154f7f.js} +2 -2
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.d273955f.js → PhArrowCounterClockwise.vue.731eb94b.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.0d20b8e9.js → PhArrowSquareOut.vue.da6ece6b.js} +2 -2
- abstra_statics/dist/assets/{PhBookBookmark.vue.8611e54f.js → PhBookBookmark.vue.129658c0.js} +2 -2
- abstra_statics/dist/assets/{PhChats.vue.3dd1c2d7.js → PhChats.vue.3eae87f1.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.853bd5ec.js → PhClockCounterClockwise.vue.83a88fd2.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.b1c2f21f.js → PhCopy.vue.889171d4.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.ffc7ec94.js → PhCopySimple.vue.fa1be768.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.b5e79047.js → PhCube.vue.c868f288.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.89b627bd.js → PhDotsThreeVertical.vue.82ed05fc.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.2c2eeb2c.js → PhDownloadSimple.vue.32b4f321.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.e199ba17.js → PhFolderPlus.vue.9b394b08.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.fbac4098.js → PhGear.vue.bd7172cf.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.1850e466.js → PhKey.vue.e1681937.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.c3c70f7d.js → PhPencil.vue.6abcb050.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.ee9d03fc.js → PhPencilSimple.vue.9dc4c516.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimpleLine.vue.6eedd1e6.js → PhPencilSimpleLine.vue.516b8dd0.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.56a9b767.js → PhRocket.vue.6310b8e2.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.ee548b4c.js → PhSignOut.vue.33352908.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.dc906cc7.js → PhSparkle.vue.aaea2035.js} +2 -2
- abstra_statics/dist/assets/{PhUserList.vue.6d0e7bc8.js → PhUserList.vue.66442c99.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.528ec19f.js → PhUsersThree.vue.dd3dd5e5.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.49b66d69.js → PhWebhooksLogo.vue.3159b8c2.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.ead35c7b.js → PlayerConfigProvider.608f994d.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.523eb145.js → PlayerNavbar.db2b0cc0.js} +2 -2
- abstra_statics/dist/assets/{Project.d667be48.js → Project.b5f0a540.js} +2 -2
- abstra_statics/dist/assets/ProjectLogin.ca80209f.js +2 -0
- abstra_statics/dist/assets/{ProjectSettings.78ebb6ae.js → ProjectSettings.c69dc60b.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.0a9b802f.js → ProjectsView.7ea6a476.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.7c95c711.js → SaveButton.45360af6.js} +2 -2
- abstra_statics/dist/assets/{Sidebar.88ff0297.js → Sidebar.5b02858f.js} +2 -2
- abstra_statics/dist/assets/Sql.f80e393a.js +5 -0
- abstra_statics/dist/assets/Steps.2a44bd5a.js +2 -0
- abstra_statics/dist/assets/{TableEditor.8166dbd3.js → TableEditor.9f5307b3.js} +2 -2
- abstra_statics/dist/assets/{Tables.0da330b6.js → Tables.c8410571.js} +2 -2
- abstra_statics/dist/assets/{TablesDiagram.67a07e98.js → TablesDiagram.174bf25c.js} +2 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.d32d5407.js +2 -0
- abstra_statics/dist/assets/{Tasks.d7e74b8f.js → Tasks.6bf6e3ab.js} +2 -2
- abstra_statics/dist/assets/{UploadOutlined.6515c426.js → UploadOutlined.17748ead.js} +2 -2
- abstra_statics/dist/assets/{View.2cf966b9.js → View.fc004ade.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.17304c45.js → View.vue_vue_type_script_setup_true_lang.b156d2b4.js} +2 -2
- abstra_statics/dist/assets/{Watermark.4b6da85c.js → Watermark.3f4c77a5.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.969d0862.js → WebEditor.1b4c1d6e.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.b3a57be6.js +2 -0
- abstra_statics/dist/assets/{ant-design.771baa34.js → ant-design.4dde64bb.js} +2 -2
- abstra_statics/dist/assets/apiKey.2481730b.js +2 -0
- abstra_statics/dist/assets/{asyncComputed.0f036eae.js → asyncComputed.24fa122c.js} +2 -2
- abstra_statics/dist/assets/{build.c819a477.js → build.5e49b52b.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.a41e45a3.js +2 -0
- abstra_statics/dist/assets/{console.072f10aa.js → console.d4555e1e.js} +2 -2
- abstra_statics/dist/assets/constants.4f491067.js +2 -0
- abstra_statics/dist/assets/{cssMode.b24669f0.js → cssMode.94fba5f4.js} +2 -2
- abstra_statics/dist/assets/datetime.215ab936.js +2 -0
- abstra_statics/dist/assets/dayjs.cad6407e.js +2 -0
- abstra_statics/dist/assets/editor.68f10cac.js +2 -0
- abstra_statics/dist/assets/editor.main.d5278805.js +2 -0
- abstra_statics/dist/assets/fetch.b229b6c0.js +2 -0
- abstra_statics/dist/assets/{files.ff551888.js → files.2d03f0a6.js} +2 -2
- abstra_statics/dist/assets/{folder.92a70293.js → folder.c0b92096.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.c3563cfb.js → freemarker2.a8ae0e5a.js} +2 -2
- abstra_statics/dist/assets/{handlebars.bedd8360.js → handlebars.3529fc9d.js} +3 -3
- abstra_statics/dist/assets/{html.3cfc37f8.js → html.193c548a.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.f9c29f9d.js → htmlMode.5669aea7.js} +2 -2
- abstra_statics/dist/assets/{index.138ad220.js → index.17c59820.js} +2 -2
- abstra_statics/dist/assets/{index.9028af84.js → index.17c9890b.js} +2 -2
- abstra_statics/dist/assets/{index.5429e60c.js → index.2f9d5f42.js} +2 -2
- abstra_statics/dist/assets/{index.dfc9f500.js → index.341d2d78.js} +2 -2
- abstra_statics/dist/assets/{index.e6b397aa.js → index.590aa576.js} +3 -3
- abstra_statics/dist/assets/{index.b69b3146.js → index.84a81069.js} +2 -2
- abstra_statics/dist/assets/index.9d0d77b2.js +2 -0
- abstra_statics/dist/assets/{index.dccc1696.js → index.c3ea2813.js} +2 -2
- abstra_statics/dist/assets/{index.26a34a52.js → index.ee7c5f13.js} +2 -2
- abstra_statics/dist/assets/{index.a9e83a57.js → index.fd173cc0.js} +2 -2
- abstra_statics/dist/assets/{javascript.a4a24e63.js → javascript.ff046b2c.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.4df0cb48.js → jsonMode.c051f145.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.b204fb7d.js → jwt-decode.esm.f18c394f.js} +7 -7
- abstra_statics/dist/assets/{linters.5b679742.js → linters.e4e7bac9.js} +2 -2
- abstra_statics/dist/assets/{liquid.6539d262.js → liquid.98fcb8a3.js} +3 -3
- abstra_statics/dist/assets/member.d0ead44d.js +2 -0
- abstra_statics/dist/assets/{metadata.e6e36ac2.js → metadata.218ef86b.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.0470e5b1.js → omniChatStore.405dd08d.js} +2 -2
- abstra_statics/dist/assets/{organization.04cff158.js → organization.c20116a5.js} +2 -2
- abstra_statics/dist/assets/player.30fb0733.js +2 -0
- abstra_statics/dist/assets/{plotly.min.e185d882.js → plotly.min.b26aecc2.js} +2 -2
- abstra_statics/dist/assets/polling.775bd07d.js +2 -0
- abstra_statics/dist/assets/{project.c198d794.js → project.d26f784f.js} +2 -2
- abstra_statics/dist/assets/{python.5c45007e.js → python.6f801519.js} +2 -2
- abstra_statics/dist/assets/{razor.dbd79c37.js → razor.80957baf.js} +2 -2
- abstra_statics/dist/assets/{record.316e025a.js → record.f0e74f25.js} +2 -2
- abstra_statics/dist/assets/redirect.47662fd9.js +2 -0
- abstra_statics/dist/assets/{repository.ae6e826f.js → repository.75210ebd.js} +2 -2
- abstra_statics/dist/assets/repository.d2158c5f.js +2 -0
- abstra_statics/dist/assets/{router.29d47df0.js → router.9924fce0.js} +3 -3
- abstra_statics/dist/assets/string.c4805024.js +2 -0
- abstra_statics/dist/assets/{tables.e80a0328.js → tables.4cd227ff.js} +2 -2
- abstra_statics/dist/assets/{tasksController.307be8dc.js → tasksController.f0830c77.js} +3 -3
- abstra_statics/dist/assets/{toggleHighContrast.4184537f.js → toggleHighContrast.d8b2c912.js} +7 -7
- abstra_statics/dist/assets/{tsMode.12c94eed.js → tsMode.7de6acfd.js} +2 -2
- abstra_statics/dist/assets/{typescript.e087b68e.js → typescript.78bce6b9.js} +2 -2
- abstra_statics/dist/assets/url.f54a173c.js +2 -0
- abstra_statics/dist/assets/userStore.1345e655.js +2 -0
- abstra_statics/dist/assets/uuid.2e8600ec.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.402b0a32.js → vue-flow-background.57038ee0.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.10d49c97.js → vue-quill.esm-bundler.130627ea.js} +2 -2
- abstra_statics/dist/assets/workspaceStore.29138ee5.js +2 -0
- abstra_statics/dist/assets/{xml.c4ef7130.js → xml.46fa5b06.js} +3 -3
- abstra_statics/dist/assets/{yaml.5eb27541.js → yaml.775c20d7.js} +2 -2
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +11 -11
- abstra_statics/dist/player.html +9 -9
- abstra_internals/utils/threading.py +0 -24
- abstra_internals/utils/websockets.py +0 -79
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js +0 -2
- abstra_statics/dist/assets/ApiKeys.94113392.js +0 -2
- abstra_statics/dist/assets/App.6c102d26.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.26121baf.js +0 -2
- abstra_statics/dist/assets/BaseLayout.670b8441.js +0 -2
- abstra_statics/dist/assets/Billing.80a50079.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.7ac8e1e8.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.b85f86d8.js +0 -2
- abstra_statics/dist/assets/EnvVars.ccc24231.js +0 -2
- abstra_statics/dist/assets/Error.1bf571a6.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.f71fa58b.js +0 -2
- abstra_statics/dist/assets/Form.288a7191.js +0 -2
- abstra_statics/dist/assets/Home.23f0cff8.js +0 -2
- abstra_statics/dist/assets/Home.5ce6aade.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.3ea9ec8d.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.11688830.js +0 -2
- abstra_statics/dist/assets/Login.2a4c7e48.js +0 -2
- abstra_statics/dist/assets/Logo.cc2d4a95.js +0 -2
- abstra_statics/dist/assets/Logs.f57284a4.js +0 -2
- abstra_statics/dist/assets/LogsController.353f0002.js +0 -2
- abstra_statics/dist/assets/Main.635e443c.js +0 -2
- abstra_statics/dist/assets/Navbar.dacca218.js +0 -2
- abstra_statics/dist/assets/OidcLoginCallback.0dff6320.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.1f077fbb.js +0 -2
- abstra_statics/dist/assets/ProjectLogin.ed25cb39.js +0 -2
- abstra_statics/dist/assets/Sql.cbcb65af.js +0 -5
- abstra_statics/dist/assets/Steps.4c7bc2b0.js +0 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.2d88acf3.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.6cc6a025.js +0 -2
- abstra_statics/dist/assets/apiKey.8e591cfc.js +0 -2
- abstra_statics/dist/assets/colorHelpers.c4e8851c.js +0 -2
- abstra_statics/dist/assets/constants.6f822a9d.js +0 -2
- abstra_statics/dist/assets/datetime.7d5f4744.js +0 -2
- abstra_statics/dist/assets/dayjs.19defe89.js +0 -2
- abstra_statics/dist/assets/editor.6fa2da52.js +0 -2
- abstra_statics/dist/assets/editor.main.91c25311.js +0 -2
- abstra_statics/dist/assets/fetch.41281c28.js +0 -2
- abstra_statics/dist/assets/index.e7bc0e19.js +0 -2
- abstra_statics/dist/assets/member.c5283d66.js +0 -2
- abstra_statics/dist/assets/player.c715ca22.js +0 -2
- abstra_statics/dist/assets/polling.5f85e241.js +0 -2
- abstra_statics/dist/assets/redirect.d1904049.js +0 -2
- abstra_statics/dist/assets/repository.babdc912.js +0 -2
- abstra_statics/dist/assets/string.4a80abd5.js +0 -2
- abstra_statics/dist/assets/url.371275cf.js +0 -2
- abstra_statics/dist/assets/userStore.26658284.js +0 -2
- abstra_statics/dist/assets/uuid.ffd92735.js +0 -2
- abstra_statics/dist/assets/workspaceStore.9caf566c.js +0 -2
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/WHEEL +0 -0
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/entry_points.txt +0 -0
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/top_level.txt +0 -0
abstra_statics/dist/assets/{vue-quill.esm-bundler.10d49c97.js → vue-quill.esm-bundler.130627ea.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e_ as tr,R as Tt,d as er,k as nr,aq as rr,r as Fn,w as Ln,H as ir,at as Un}from"./jwt-decode.esm.
|
|
1
|
+
import{e_ as tr,R as Tt,d as er,k as nr,aq as rr,r as Fn,w as Ln,H as ir,at as Un}from"./jwt-decode.esm.f18c394f.js";(function(){try{var R=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U=new Error().stack;U&&(R._sentryDebugIds=R._sentryDebugIds||{},R._sentryDebugIds[U]="437dac2f-85d1-40da-81f8-9b91cf46118e",R._sentryDebugIdIdentifier="sentry-dbid-437dac2f-85d1-40da-81f8-9b91cf46118e")}catch{}})();var Gn={exports:{}};/*!
|
|
2
2
|
* Quill Editor v1.3.7
|
|
3
3
|
* https://quilljs.com/
|
|
4
4
|
* Copyright (c) 2014, Jason Chen
|
|
@@ -52,4 +52,4 @@ import{e_ as tr,R as Tt,d as er,k as nr,aq as rr,r as Fn,w as Ln,H as ir,at as U
|
|
|
52
52
|
*/const $n={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},_r=er({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:R=>["delta","html","text"].includes(R)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:R=>["snow","bubble",""].includes(R)},toolbar:{type:[String,Array,Object],required:!1,validator:R=>typeof R=="string"&&R!==""?R.charAt(0)==="#"?!0:Object.keys($n).indexOf(R)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(R,U)=>{nr(()=>{E()}),rr(()=>{m=null});let m,p;const c=Fn(),E=()=>{var v;if(!!c.value){if(p=b(),R.modules)if(Array.isArray(R.modules))for(const O of R.modules)qn.register(`modules/${O.name}`,O.module);else qn.register(`modules/${R.modules.name}`,R.modules.module);m=new qn(c.value,p),f(R.content),m.on("text-change",o),m.on("selection-change",e),m.on("editor-change",s),R.theme!=="bubble"&&c.value.classList.remove("ql-bubble"),R.theme!=="snow"&&c.value.classList.remove("ql-snow"),(v=m.getModule("toolbar"))===null||v===void 0||v.container.addEventListener("mousedown",O=>{O.preventDefault()}),U.emit("ready",m)}},b=()=>{const v={};if(R.theme!==""&&(v.theme=R.theme),R.readOnly&&(v.readOnly=R.readOnly),R.placeholder&&(v.placeholder=R.placeholder),R.toolbar&&R.toolbar!==""&&(v.modules={toolbar:(()=>{if(typeof R.toolbar=="object")return R.toolbar;if(typeof R.toolbar=="string")return R.toolbar.charAt(0)==="#"?R.toolbar:$n[R.toolbar]})()}),R.modules){const O=(()=>{var k,L;const D={};if(Array.isArray(R.modules))for(const z of R.modules)D[z.name]=(k=z.options)!==null&&k!==void 0?k:{};else D[R.modules.name]=(L=R.modules.options)!==null&&L!==void 0?L:{};return D})();v.modules=Object.assign({},v.modules,O)}return Object.assign({},R.globalOptions,R.options,v)},_=v=>typeof v=="object"&&v?v.slice():v,y=v=>Object.values(v.ops).some(O=>!O.retain||Object.keys(O).length!==1);let g;const h=v=>{if(typeof g==typeof v){if(v===g)return!0;if(typeof v=="object"&&v&&typeof g=="object"&&g)return!y(g.diff(v))}return!1},o=(v,O,k)=>{g=_(i()),h(R.content)||U.emit("update:content",g),U.emit("textChange",{delta:v,oldContents:O,source:k})},t=Fn(),e=(v,O,k)=>{t.value=!!(m!=null&&m.hasFocus()),U.emit("selectionChange",{range:v,oldRange:O,source:k})};Ln(t,v=>{v?U.emit("focus",c):U.emit("blur",c)});const s=(...v)=>{v[0]==="text-change"&&U.emit("editorChange",{name:v[0],delta:v[1],oldContents:v[2],source:v[3]}),v[0]==="selection-change"&&U.emit("editorChange",{name:v[0],range:v[1],oldRange:v[2],source:v[3]})},l=()=>c.value,u=()=>{var v;return(v=m==null?void 0:m.getModule("toolbar"))===null||v===void 0?void 0:v.container},r=()=>{if(m)return m;throw`The quill editor hasn't been instantiated yet,
|
|
53
53
|
make sure to call this method when the editor ready
|
|
54
54
|
or use v-on:ready="onReady(quill)" event instead.`},i=(v,O)=>R.contentType==="html"?N():R.contentType==="text"?n(v,O):m==null?void 0:m.getContents(v,O),f=(v,O="api")=>{const k=v||(R.contentType==="delta"?new mr:"");R.contentType==="html"?w(k):R.contentType==="text"?d(k,O):m==null||m.setContents(k,O),g=_(k)},n=(v,O)=>{var k;return(k=m==null?void 0:m.getText(v,O))!==null&&k!==void 0?k:""},d=(v,O="api")=>{m==null||m.setText(v,O)},N=()=>{var v;return(v=m==null?void 0:m.root.innerHTML)!==null&&v!==void 0?v:""},w=v=>{m&&(m.root.innerHTML=v)},T=(v,O="api")=>{const k=m==null?void 0:m.clipboard.convert(v);k&&(m==null||m.setContents(k,O))},P=()=>{m==null||m.focus()},A=()=>{Un(()=>{var v;!U.slots.toolbar&&m&&((v=m.getModule("toolbar"))===null||v===void 0||v.container.remove()),E()})};return Ln(()=>R.content,v=>{if(!m||!v||h(v))return;const O=m.getSelection();O&&Un(()=>m==null?void 0:m.setSelection(O)),f(v)},{deep:!0}),Ln(()=>R.enable,v=>{m&&m.enable(v)}),{editor:c,getEditor:l,getToolbar:u,getQuill:r,getContents:i,setContents:f,getHTML:N,setHTML:w,pasteHTML:T,focus:P,getText:n,setText:d,reinit:A}},render(){var R,U;return[(U=(R=this.$slots).toolbar)===null||U===void 0?void 0:U.call(R),ir("div",{ref:"editor",...this.$attrs})]}});export{mr as Delta,qn as Quill,_r as QuillEditor};
|
|
55
|
-
//# sourceMappingURL=vue-quill.esm-bundler.
|
|
55
|
+
//# sourceMappingURL=vue-quill.esm-bundler.130627ea.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as A,t as O,v as r,x as F,q as v,r as U}from"./jwt-decode.esm.f18c394f.js";import{u as i}from"./userStore.1345e655.js";import{i as I}from"./url.f54a173c.js";import{i as R}from"./colorHelpers.a41e45a3.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]="ac037850-e5bb-4e7d-9a16-31108bc7a7ca",e._sentryDebugIdIdentifier="sentry-dbid-ac037850-e5bb-4e7d-9a16-31108bc7a7ca")}catch{}})();const $=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"daaaeea4b41126e89bb0cb8b38d8d7e78e903a5d"}catch(e){return console.error("Failed to fetch Abstra version:",e),"daaaeea4b41126e89bb0cb8b38d8d7e78e903a5d"}};function w(e,a,t){return I(a)?a:t==="player"?`/_assets/${e}`:`/_editor/api/assets/${a}`}const k="#414a58",D="#FFFFFF",N="#000000",L="DM Sans",P="Untitled Project",T={value:"en",label:"English"};function C(e){var a,t,s,n,o,l,c,u,m,_,p,d,f,h,b,g;return{id:e.id,path:e.path,theme:(a=e.workspace.theme)!=null?a:D,brandName:(t=e.workspace.brand_name)!=null?t:null,title:e.title,isInitial:e.is_initial,isLocal:(s=e.is_local)!=null?s:!1,startMessage:(n=e.start_message)!=null?n:null,endMessage:(o=e.end_message)!=null?o:null,errorMessage:(l=e.error_message)!=null?l:null,timeoutMessage:(c=e.timeout_message)!=null?c:null,startButtonText:(u=e.start_button_text)!=null?u:null,restartButtonText:(m=e.restart_button_text)!=null?m:null,logoUrl:e.workspace.logo_url,mainColor:(_=e.workspace.main_color)!=null?_:k,fontFamily:(p=e.workspace.font_family)!=null?p:L,autoStart:(d=e.auto_start)!=null?d:!1,allowRestart:e.allow_restart,welcomeTitle:(f=e.welcome_title)!=null?f:null,runtimeType:"form",language:(h=e.workspace.language)!=null?h:T.value,sidebar:(g=(b=e.workspace)==null?void 0:b.sidebar)!=null?g:[]}}function y(e){var t;const a=(t=e.theme)!=null?t:D;return{name:e.name||P,fontColor:e.font_color||N,sidebar:e.sidebar||[],brandName:e.brand_name||"",fontFamily:e.font_family||L,logoUrl:e.logo_url?w("logo",e.logo_url,"player"):null,mainColor:e.main_color||k,theme:R(a)?a:w("background",a,"player"),language:e.language||T.value}}async function B(e){const a=i(),t=await fetch(`/_pages/${e}`,{headers:a.authHeaders});if(t.status===404)return null;if(!t.ok)throw new Error(await t.text());const{form:s}=await t.json();return s?C(s):null}async function M(){const e=i(),a=await fetch("/_workspace",{headers:e.authHeaders});if(a.status!=200)return y({});const t=await a.json();return y(t)}async function H(e){const a=i();return(await fetch(`/_access-control/allow${e}`,{headers:a.authHeaders})).json()}const S=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>r(()=>import("./OidcLoginCallback.5d621b1e.js"),["assets/OidcLoginCallback.5d621b1e.js","assets/index.341d2d78.js","assets/jwt-decode.esm.f18c394f.js","assets/jwt-decode.9f7a5511.css"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>r(()=>import("./OidcLogoutCallback.726fd77b.js"),["assets/OidcLogoutCallback.726fd77b.js","assets/index.341d2d78.js","assets/jwt-decode.esm.f18c394f.js","assets/jwt-decode.9f7a5511.css"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>r(()=>import("./Login.543da72d.js"),["assets/Login.543da72d.js","assets/Login.vue_vue_type_script_setup_true_lang.7a0b5cb9.js","assets/jwt-decode.esm.f18c394f.js","assets/jwt-decode.9f7a5511.css","assets/index.341d2d78.js","assets/CircularLoading.e0819e0b.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.a483cebb.js","assets/Logo.b7d81119.css","assets/string.c4805024.js","assets/index.590aa576.js","assets/userStore.1345e655.js","assets/Login.75d13f6c.css","assets/url.f54a173c.js","assets/colorHelpers.a41e45a3.js","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>r(()=>import("./Main.e6271958.js"),["assets/Main.e6271958.js","assets/PlayerNavbar.db2b0cc0.js","assets/userStore.1345e655.js","assets/jwt-decode.esm.f18c394f.js","assets/jwt-decode.9f7a5511.css","assets/index.341d2d78.js","assets/metadata.218ef86b.js","assets/PhUserList.vue.66442c99.js","assets/PhWebhooksLogo.vue.3159b8c2.js","assets/LoadingOutlined.688afd1b.js","assets/PhSignOut.vue.33352908.js","assets/index.17c9890b.js","assets/PlayerNavbar.c456a4e0.css","assets/url.f54a173c.js","assets/colorHelpers.a41e45a3.js","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>r(()=>import("./Home.5a193adf.js"),["assets/Home.5a193adf.js","assets/metadata.218ef86b.js","assets/jwt-decode.esm.f18c394f.js","assets/jwt-decode.9f7a5511.css","assets/PhUserList.vue.66442c99.js","assets/PhWebhooksLogo.vue.3159b8c2.js","assets/Watermark.3f4c77a5.js","assets/index.341d2d78.js","assets/constants.4f491067.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.da6ece6b.js","assets/index.c3ea2813.js","assets/Card.d8993609.js","assets/LoadingOutlined.688afd1b.js","assets/userStore.1345e655.js","assets/url.f54a173c.js","assets/colorHelpers.a41e45a3.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>r(()=>import("./Error.75789fcd.js"),["assets/Error.75789fcd.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.d02ffa6d.js","assets/Logo.a483cebb.js","assets/jwt-decode.esm.f18c394f.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/constants.4f491067.js","assets/Card.d8993609.js","assets/userStore.1345e655.js","assets/url.f54a173c.js","assets/colorHelpers.a41e45a3.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>r(()=>import("./Form.dcd328f9.js"),["assets/Form.dcd328f9.js","assets/userStore.1345e655.js","assets/jwt-decode.esm.f18c394f.js","assets/jwt-decode.9f7a5511.css","assets/FormRunner.22c166b3.js","assets/Login.vue_vue_type_script_setup_true_lang.7a0b5cb9.js","assets/index.341d2d78.js","assets/CircularLoading.e0819e0b.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.a483cebb.js","assets/Logo.b7d81119.css","assets/string.c4805024.js","assets/index.590aa576.js","assets/Login.75d13f6c.css","assets/Steps.2a44bd5a.js","assets/index.17c59820.js","assets/Steps.2880920a.css","assets/Watermark.3f4c77a5.js","assets/constants.4f491067.js","assets/Watermark.b0916e90.css","assets/FormRunner.714ce2c1.css","assets/redirect.47662fd9.js","assets/url.f54a173c.js","assets/asyncComputed.24fa122c.js","assets/uuid.2e8600ec.js","assets/colorHelpers.a41e45a3.js","assets/Form.7493bc0a.css"]),meta:{hideLogin:!0}}]}],E=A({history:O("/"),routes:S,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),V=e=>async(a,t)=>{if(F(a,t),a.meta.allowUnauthenticated)return;const n=await H(a.path),{redirect:o,...l}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...l,redirect:o||a.path},params:a.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};E.beforeEach(V(E));const G=v("workspace",()=>{const e=U({workspace:null,loading:!1});return{state:e,actions:{async fetch(){e.value.loading=!0,e.value.workspace=await M(),e.value.loading=!1}}}});export{k as D,$ as a,E as b,L as c,T as d,D as e,B as f,V as g,w as m,S as r,G as u};
|
|
2
|
+
//# sourceMappingURL=workspaceStore.29138ee5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as d}from"./toggleHighContrast.
|
|
1
|
+
import{m as d}from"./toggleHighContrast.d8b2c912.js";import"./jwt-decode.esm.f18c394f.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]="a136e021-b78b-4be3-a5ff-e360b8d93f62",t._sentryDebugIdIdentifier="sentry-dbid-a136e021-b78b-4be3-a5ff-e360b8d93f62")}catch{}})();/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/var
|
|
7
|
-
//# sourceMappingURL=xml.
|
|
6
|
+
*-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,r=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of m(e))!s.call(t,a)&&a!==n&&l(t,a,{get:()=>e[a],enumerable:!(i=c(e,a))||i.enumerable});return t},p=(t,e,n)=>(r(t,e,"default"),n&&r(n,e,"default")),o={};p(o,d);var b={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:o.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:o.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{b as conf,g as language};
|
|
7
|
+
//# sourceMappingURL=xml.46fa5b06.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as i}from"./toggleHighContrast.
|
|
1
|
+
import{m as i}from"./toggleHighContrast.d8b2c912.js";import"./jwt-decode.esm.f18c394f.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="742f8c99-cc23-456a-aa29-2b14b28e87ce",n._sentryDebugIdIdentifier="sentry-dbid-742f8c99-cc23-456a-aa29-2b14b28e87ce")}catch{}})();/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/var c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,a=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of s(e))!d.call(n,r)&&r!==t&&c(n,r,{get:()=>e[r],enumerable:!(o=u(e,r))||o.enumerable});return n},m=(n,e,t)=>(a(n,e,"default"),t&&a(t,e,"default")),l={};m(l,i);var f={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:l.languages.IndentAction.Indent}}]},g={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/[^#]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{f as conf,g as language};
|
|
7
|
-
//# sourceMappingURL=yaml.
|
|
7
|
+
//# sourceMappingURL=yaml.775c20d7.js.map
|
abstra_statics/dist/console.html
CHANGED
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
name="description"
|
|
12
12
|
content="Log in to Abstra’s Cloud Console to deploy and manage your Python workflows and scripts, user access, logs and more."
|
|
13
13
|
/>
|
|
14
|
-
<script type="module" crossorigin src="/assets/console.
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/jwt-decode.esm.
|
|
16
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
18
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/router.
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/Breadcrumb.
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/Card.
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
26
|
-
<link rel="modulepreload" crossorigin href="/assets/dayjs.
|
|
27
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
28
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
14
|
+
<script type="module" crossorigin src="/assets/console.d4555e1e.js"></script>
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/jwt-decode.esm.f18c394f.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/index.590aa576.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/index.17c9890b.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="/assets/index.ee7c5f13.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/router.9924fce0.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/Breadcrumb.00a432b7.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/index.9d0d77b2.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/index.fd173cc0.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/Card.d8993609.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/index.c3ea2813.js">
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/assets/index.2f9d5f42.js">
|
|
26
|
+
<link rel="modulepreload" crossorigin href="/assets/dayjs.cad6407e.js">
|
|
27
|
+
<link rel="modulepreload" crossorigin href="/assets/index.84a81069.js">
|
|
28
|
+
<link rel="modulepreload" crossorigin href="/assets/index.17c59820.js">
|
|
29
29
|
<link rel="stylesheet" href="/assets/jwt-decode.9f7a5511.css">
|
|
30
30
|
<link rel="stylesheet" href="/assets/index.32bec70b.css">
|
|
31
31
|
</head>
|
abstra_statics/dist/editor.html
CHANGED
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
<!-- Primary Meta Tags -->
|
|
8
8
|
<title>Abstra Editor</title>
|
|
9
9
|
<meta name="title" content="Abstra Editor" />
|
|
10
|
-
<script type="module" crossorigin src="/assets/editor.
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/jwt-decode.esm.
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/userStore.
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/url.
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/colorHelpers.
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/workspaceStore.
|
|
16
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/asyncComputed.
|
|
18
|
-
<link rel="modulepreload" crossorigin href="/assets/linters.
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/constants.
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
10
|
+
<script type="module" crossorigin src="/assets/editor.68f10cac.js"></script>
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/jwt-decode.esm.f18c394f.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/userStore.1345e655.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/url.f54a173c.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/colorHelpers.a41e45a3.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/workspaceStore.29138ee5.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/index.341d2d78.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/asyncComputed.24fa122c.js">
|
|
18
|
+
<link rel="modulepreload" crossorigin href="/assets/linters.e4e7bac9.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/constants.4f491067.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/index.ee7c5f13.js">
|
|
21
21
|
<link rel="stylesheet" href="/assets/jwt-decode.9f7a5511.css">
|
|
22
22
|
<link rel="stylesheet" href="/assets/index.57042181.css">
|
|
23
23
|
</head>
|
abstra_statics/dist/player.html
CHANGED
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
},
|
|
15
15
|
};
|
|
16
16
|
</script>
|
|
17
|
-
<script type="module" crossorigin src="/assets/player.
|
|
18
|
-
<link rel="modulepreload" crossorigin href="/assets/jwt-decode.esm.
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/userStore.
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/url.
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/colorHelpers.
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/assets/workspaceStore.
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/index.
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/assets/PlayerConfigProvider.
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/assets/App.vue_vue_type_style_index_0_lang.
|
|
17
|
+
<script type="module" crossorigin src="/assets/player.30fb0733.js"></script>
|
|
18
|
+
<link rel="modulepreload" crossorigin href="/assets/jwt-decode.esm.f18c394f.js">
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/userStore.1345e655.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/url.f54a173c.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/colorHelpers.a41e45a3.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/workspaceStore.29138ee5.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/index.341d2d78.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/PlayerConfigProvider.608f994d.js">
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/assets/App.vue_vue_type_style_index_0_lang.9dc1f7e7.js">
|
|
26
26
|
<link rel="stylesheet" href="/assets/jwt-decode.9f7a5511.css">
|
|
27
27
|
<link rel="stylesheet" href="/assets/PlayerConfigProvider.1ce9d3b1.css">
|
|
28
28
|
<link rel="stylesheet" href="/assets/App.0c2736ee.css">
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import threading
|
|
2
|
-
import traceback
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class Thread(threading.Thread):
|
|
6
|
-
def __init__(self, *a, **kw):
|
|
7
|
-
super().__init__(*a, **kw)
|
|
8
|
-
self.creator_trace = traceback.format_stack()
|
|
9
|
-
self.exc = None
|
|
10
|
-
|
|
11
|
-
def run(self):
|
|
12
|
-
try:
|
|
13
|
-
super().run()
|
|
14
|
-
except Exception as e:
|
|
15
|
-
self.exc = e
|
|
16
|
-
|
|
17
|
-
def join(self, *a, **kw):
|
|
18
|
-
super().join(*a, **kw)
|
|
19
|
-
if self.exc:
|
|
20
|
-
creator_info = "".join(self.creator_trace)
|
|
21
|
-
new_exc = RuntimeError(
|
|
22
|
-
"Exception in thread (created here):\n" + creator_info
|
|
23
|
-
)
|
|
24
|
-
raise new_exc from self.exc
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
from collections import deque
|
|
2
|
-
from multiprocessing.connection import Connection
|
|
3
|
-
from time import sleep
|
|
4
|
-
from typing import Union
|
|
5
|
-
|
|
6
|
-
import flask_sock
|
|
7
|
-
import simplejson
|
|
8
|
-
|
|
9
|
-
from .ai import AiWs
|
|
10
|
-
from .threading import Thread
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class MockWS:
|
|
14
|
-
def __init__(self):
|
|
15
|
-
self.browser_messages = deque([])
|
|
16
|
-
self.python_messages = deque([])
|
|
17
|
-
|
|
18
|
-
def send(self, python_message):
|
|
19
|
-
self.python_messages.append(simplejson.loads(python_message))
|
|
20
|
-
|
|
21
|
-
def receive(self):
|
|
22
|
-
if len(self.browser_messages) == 0:
|
|
23
|
-
sleep(1)
|
|
24
|
-
if len(self.browser_messages) == 0:
|
|
25
|
-
raise ValueError("No messages to receive")
|
|
26
|
-
return simplejson.dumps(self.browser_messages.popleft())
|
|
27
|
-
|
|
28
|
-
def add_browser_message(self, message):
|
|
29
|
-
self.browser_messages.append(message)
|
|
30
|
-
|
|
31
|
-
def close(self):
|
|
32
|
-
self.browser_messages.clear()
|
|
33
|
-
self.python_messages.clear()
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
WsLike = Union[flask_sock.Server, MockWS, AiWs]
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def bind_ws_with_connection(ws: WsLike, conn: Connection, block: bool):
|
|
40
|
-
def server_loop():
|
|
41
|
-
while True:
|
|
42
|
-
try:
|
|
43
|
-
message = ws.receive()
|
|
44
|
-
|
|
45
|
-
if message is None:
|
|
46
|
-
conn.close()
|
|
47
|
-
ws.close()
|
|
48
|
-
break
|
|
49
|
-
except flask_sock.ConnectionClosed:
|
|
50
|
-
conn.close()
|
|
51
|
-
break
|
|
52
|
-
try:
|
|
53
|
-
conn.send(message)
|
|
54
|
-
except (EOFError, BrokenPipeError, ConnectionResetError):
|
|
55
|
-
ws.close()
|
|
56
|
-
break
|
|
57
|
-
|
|
58
|
-
def client_loop():
|
|
59
|
-
while True:
|
|
60
|
-
try:
|
|
61
|
-
message = conn.recv()
|
|
62
|
-
|
|
63
|
-
except (EOFError, BrokenPipeError, ConnectionResetError):
|
|
64
|
-
ws.close()
|
|
65
|
-
break
|
|
66
|
-
try:
|
|
67
|
-
ws.send(message)
|
|
68
|
-
except flask_sock.ConnectionClosed:
|
|
69
|
-
conn.close()
|
|
70
|
-
break
|
|
71
|
-
|
|
72
|
-
th1 = Thread(target=server_loop, daemon=True)
|
|
73
|
-
th1.start()
|
|
74
|
-
th2 = Thread(target=client_loop, daemon=True)
|
|
75
|
-
th2.start()
|
|
76
|
-
|
|
77
|
-
if block:
|
|
78
|
-
th1.join()
|
|
79
|
-
th2.join()
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L as a}from"./Logo.cc2d4a95.js";import{d,o as n,a as r,u as f}from"./jwt-decode.esm.b204fb7d.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]="fa41e7fe-de71-479d-bddf-55fce62f0ee3",e._sentryDebugIdIdentifier="sentry-dbid-fa41e7fe-de71-479d-bddf-55fce62f0ee3")}catch{}})();const i="/assets/logo.0faadfa2.svg",p=d({__name:"AbstraLogo",props:{hideText:{type:Boolean},size:{}},setup(e){return(s,t)=>{var o;return n(),r(a,{"image-url":f(i),"brand-name":"Abstra","hide-text":s.hideText,size:(o=s.size)!=null?o:"small"},null,8,["image-url","hide-text","size"])}}});export{p as _};
|
|
2
|
-
//# sourceMappingURL=AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as w}from"./CrudView.7f2cbde4.js";import{d as _,r as k,eb as x,c as v,a5 as C,f as l,u as i,b as d,aR as P,o as h,d9 as D,g as y,da as M,ed as j,M as N,ee as K,ep as T}from"./jwt-decode.esm.b204fb7d.js";import{a as V}from"./asyncComputed.0f036eae.js";import{A as c}from"./apiKey.8e591cfc.js";import"./router.29d47df0.js";import{M as B}from"./member.c5283d66.js";import{a as E}from"./project.c198d794.js";import"./tables.e80a0328.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js";import"./constants.6f822a9d.js";import"./url.371275cf.js";import"./PhDotsThreeVertical.vue.89b627bd.js";import"./index.e7bc0e19.js";import"./index.26a34a52.js";import"./record.316e025a.js";import"./string.4a80abd5.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="42a031f9-8b67-4489-83f8-3b7c76ab1879",n._sentryDebugIdIdentifier="sentry-dbid-42a031f9-8b67-4489-83f8-3b7c76ab1879")}catch{}})();const ee=_({__name:"ApiKeys",setup(n){const o=k(null),p=[{key:"name",label:"API key name"}],s=x().params.projectId,f=new B,{loading:g,result:b,refetch:u}=V(async()=>Promise.all([c.list(s),E.get(s).then(e=>f.list(e.organizationId))]).then(([e,t])=>e.map(a=>({apiKey:a,member:t.find(r=>r.authorId===a.ownerId)})))),I=async e=>{const t=await c.create({projectId:s,name:e.name});u(),o.value=t.value},A=v(()=>{var e,t;return{columns:[{title:"Name"},{title:"Creation date"},{title:"Owner"},{title:"",align:"right"}],rows:(t=(e=b.value)==null?void 0:e.map(({apiKey:a,member:r})=>{var m;return{key:a.id,cells:[{type:"text",text:a.name},{type:"text",text:K(a.createdAt)},{type:"text",text:(m=r==null?void 0:r.email)!=null?m:"Unknown"},{type:"actions",actions:[{label:"Delete",icon:T,dangerous:!0,onClick:async()=>{await c.delete(s,a.id),u()}}]}]}}))!=null?t:[]}});return(e,t)=>(h(),C(P,null,[l(w,{"entity-name":"API key","create-button-text":"Create API Key",loading:i(g),title:"API Keys",description:"API Keys are used to deploy your project from the local editor.","empty-title":"No API keys here yet",table:A.value,fields:p,create:I},null,8,["loading","table"]),l(i(N),{open:!!o.value,title:"Api key generated",onCancel:t[0]||(t[0]=a=>o.value=null)},{footer:d(()=>[]),default:d(()=>[l(i(D),null,{default:d(()=>[y("Your API key was successfully generated. Use this code to login on your local development environment or deploy using CI")]),_:1}),l(i(M),{code:"",copyable:""},{default:d(()=>[y(j(o.value),1)]),_:1})]),_:1},8,["open"])],64))}});export{ee as default};
|
|
2
|
-
//# sourceMappingURL=ApiKeys.94113392.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./App.vue_vue_type_style_index_0_lang.26121baf.js";import{_ as u}from"./App.vue_vue_type_style_index_0_lang.26121baf.js";import"./userStore.26658284.js";import"./jwt-decode.esm.b204fb7d.js";import"./PlayerConfigProvider.ead35c7b.js";import"./colorHelpers.c4e8851c.js";import"./workspaceStore.9caf566c.js";import"./url.371275cf.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]="850e5829-3f1e-429c-8a84-8d3f8b2772f5",e._sentryDebugIdIdentifier="sentry-dbid-850e5829-3f1e-429c-8a84-8d3f8b2772f5")}catch{}})();export{u as default};
|
|
2
|
-
//# sourceMappingURL=App.6c102d26.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as r}from"./userStore.26658284.js";import{W as n}from"./PlayerConfigProvider.ead35c7b.js";import{u as c}from"./workspaceStore.9caf566c.js";import{d,w as f,m as i,u as o,a as p,b as u,h as l,o as m,f as _}from"./jwt-decode.esm.b204fb7d.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]="62d4c11b-a7f3-4dcd-8cb7-b4e3f2600a65",t._sentryDebugIdIdentifier="sentry-dbid-62d4c11b-a7f3-4dcd-8cb7-b4e3f2600a65")}catch{}})();const v=d({__name:"App",setup(t){const a=r(),e=c();return e.actions.fetch(),f(()=>a.jwt,e.actions.fetch),(w,b)=>{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.26121baf.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as c,o,a5 as n,a7 as s,e as d,h as a}from"./jwt-decode.esm.b204fb7d.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]="56197432-de14-44f7-8be5-53a66cd2a95d",e._sentryDebugIdIdentifier="sentry-dbid-56197432-de14-44f7-8be5-53a66cd2a95d")}catch{}})();const r={},i={class:"base-layout"},_={class:"base-middle"},l={class:"content"},u={class:"left"},f={key:0,class:"base-footer"},y={key:0};function b(e,t){return o(),n("div",i,[s(e.$slots,"sidebar",{},void 0,!0),d("section",_,[s(e.$slots,"navbar",{},void 0,!0),d("section",l,[d("section",u,[s(e.$slots,"content",{},void 0,!0),e.$slots.footer?(o(),n("section",f,[s(e.$slots,"footer",{},void 0,!0)])):a("",!0)]),e.$slots.chat?(o(),n("section",y,[s(e.$slots,"chat",{},void 0,!0)])):a("",!0)])])])}const g=c(r,[["render",b],["__scopeId","data-v-da85ecdc"]]);export{g as B};
|
|
2
|
-
//# sourceMappingURL=BaseLayout.670b8441.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as _}from"./asyncComputed.0f036eae.js";import{d as w,eb as b,k as h,u as e,a as d,a5 as k,f as o,b as t,h as I,o as n,A as f,g as l,ed as C,bR as x,de as c,e as N}from"./jwt-decode.esm.b204fb7d.js";import{l as g,c as v}from"./router.29d47df0.js";import{a as z}from"./organization.04cff158.js";import"./tables.e80a0328.js";import{L as B}from"./LoadingContainer.3ea9ec8d.js";import"./index.26a34a52.js";import"./record.316e025a.js";import"./string.4a80abd5.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="97c183d5-7063-4b3e-a984-4ef4c2ce602a",a._sentryDebugIdIdentifier="sentry-dbid-97c183d5-7063-4b3e-a984-4ef4c2ce602a")}catch{}})();const D={key:1},U=["src"],O=w({__name:"Billing",setup(a){const u=b().params.organizationId,{loading:m,result:r}=_(async()=>{const i=await z.get(u),p=await i.getUsageReportUrl();return{organization:i,reportUrl:p}});h(()=>{location.search.includes("upgrade")&&g.showNewMessage("I want to upgrade my plan")});const y=()=>g.showNewMessage("I want to upgrade my plan");return(i,p)=>e(m)?(n(),d(B,{key:0})):e(r)?(n(),k("div",D,[o(e(c),{justify:"space-between",align:"center"},{default:t(()=>[o(e(f),{level:3},{default:t(()=>[l("Current plan: "+C(e(r).organization.coalescedPlan),1)]),_:1}),o(e(x),{type:"primary",onClick:y},{default:t(()=>[l("Upgrade")]),_:1})]),_:1}),o(e(v),{style:{"margin-top":"0"}}),e(r).organization.hasUsageReport?(n(),d(e(c),{key:0,align:"center",justify:"center"},{default:t(()=>[N("iframe",{src:e(r).reportUrl,frameborder:"0",style:{width:"1000px",height:"1700px"}},null,8,U)]),_:1})):(n(),d(e(c),{key:1,align:"center",justify:"center"},{default:t(()=>[o(e(f),{level:4},{default:t(()=>[l("No usage report available")]),_:1})]),_:1}))])):I("",!0)}});export{O as default};
|
|
2
|
-
//# sourceMappingURL=Billing.80a50079.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as o,e7 as b,eY as u}from"./jwt-decode.esm.b204fb7d.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]="70fbb191-bfba-46b6-824f-8e45b3bdcdf6",e._sentryDebugIdIdentifier="sentry-dbid-70fbb191-bfba-46b6-824f-8e45b3bdcdf6")}catch{}})();function l(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(f){return Object.getOwnPropertyDescriptor(r,f).enumerable}))),n.forEach(function(f){a(e,f,r[f])})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=function(t,r){var n=l({},t,r.attrs);return o(b,l({},n,{icon:u}),null)};i.displayName="CloseCircleOutlined";i.inheritAttrs=!1;const d=i;export{d as C};
|
|
2
|
-
//# sourceMappingURL=CloseCircleOutlined.7ac8e1e8.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as c}from"./OmniChat.5e68be1c.js";import{u as s}from"./omniChatStore.0470e5b1.js";import{d as a,eb as i,u as t,o as d,a as f,h as l}from"./jwt-decode.esm.b204fb7d.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]="30fcdf0c-d13c-4fb3-95fc-6dd536bf398c",e._sentryDebugIdIdentifier="sentry-dbid-30fcdf0c-d13c-4fb3-95fc-6dd536bf398c")}catch{}})();const b=a({__name:"ConsoleOmniChat",setup(e){const n=i().params.projectId,o=s();return o.init("console",n),(u,p)=>t(o).controller&&t(o).repository?(d(),f(c,{key:0,"ai-chat-repository":t(o).repository,controller:t(o).controller,environment:{origin:"console",projectId:t(n)}},null,8,["ai-chat-repository","controller","environment"])):l("",!0)}});export{b as _};
|
|
2
|
-
//# sourceMappingURL=ConsoleOmniChat.vue_vue_type_script_setup_true_lang.b85f86d8.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as n,C as p}from"./View.vue_vue_type_script_setup_true_lang.17304c45.js";import{d as i,eb as s,a,u as c,o as m}from"./jwt-decode.esm.b204fb7d.js";import"./router.29d47df0.js";import"./index.26a34a52.js";import"./fetch.41281c28.js";import"./record.316e025a.js";import"./SaveButton.7c95c711.js";import"./ExclamationCircleOutlined.f71fa58b.js";import"./CrudView.7f2cbde4.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js";import"./constants.6f822a9d.js";import"./url.371275cf.js";import"./PhDotsThreeVertical.vue.89b627bd.js";import"./index.e7bc0e19.js";import"./asyncComputed.0f036eae.js";import"./polling.5f85e241.js";import"./omniChatStore.0470e5b1.js";import"./uuid.ffd92735.js";import"./PhCopySimple.vue.ffc7ec94.js";import"./PhPencil.vue.c3c70f7d.js";import"./index.e6b397aa.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]="870b891b-4cca-43c3-96dc-bb1c6e1099fa",o._sentryDebugIdIdentifier="sentry-dbid-870b891b-4cca-43c3-96dc-bb1c6e1099fa")}catch{}})();const z=i({__name:"EnvVars",setup(o){const e=s().params.projectId,t=new p(e);return(d,f)=>(m(),a(n,{"env-var-repository":c(t),mode:"console"},null,8,["env-var-repository"]))}});export{z as default};
|
|
2
|
-
//# sourceMappingURL=EnvVars.ccc24231.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js";import{A as v}from"./constants.6f822a9d.js";import{d as A,eb as x,e5 as I,c as w,a5 as T,f as d,b as a,u as e,a as f,h as p,o as i,g as s,ed as l,A as B,T as m,bR as C,e as E,d8 as N,eG as o,_ as D}from"./jwt-decode.esm.b204fb7d.js";import{u as R}from"./workspaceStore.9caf566c.js";import{C as S}from"./Card.774e5d67.js";import"./Logo.cc2d4a95.js";import"./userStore.26658284.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new L().stack;c&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[c]="f7e8282f-73c1-4048-a7ad-27e64f590d17",r._sentryDebugIdIdentifier="sentry-dbid-f7e8282f-73c1-4048-a7ad-27e64f590d17")}catch{}})();const V={class:"inner-content"},G={class:"card-content"},H=A({__name:"Error",setup(r){const c=x(),g=I(),u=R(),y=w(()=>{var t,_,h;return(h=(t=u.state.workspace)==null?void 0:t.name)!=null?h:(_=u.state.workspace)==null?void 0:_.brandName}),n=w(()=>{const{status:t}=c.params;switch(t){case"404":return{status:t,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:t,title:o.translate("i18n_access_denied"),message:o.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:o.translate("i18n_internal_error"),message:o.translate("i18n_internal_error_message"),showAd:!1}}}),b=()=>{g.push({name:"playerHome"})};return(t,_)=>(i(),T("div",V,[d(e(B),null,{default:a(()=>[s(l(n.value.title),1)]),_:1}),d(e(m),{class:"message"},{default:a(()=>[s(l(n.value.message),1)]),_:1}),n.value.action?(i(),f(e(C),{key:0,type:"link",onClick:b},{default:a(()=>[s(l(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(i(),f(e(S),{key:1,bordered:!1,class:"card"},{default:a(()=>[E("div",G,[d(k,{style:{"margin-bottom":"10px"}}),d(e(m),null,{default:a(()=>[s("This page is part of "+l(y.value?`the ${y.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(i(),f(e(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),d(e(N),{href:e(v).HOMEPAGE},{default:a(()=>[s("here")]),_:1},8,["href"]),s(".")]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}});const L=D(H,[["__scopeId","data-v-522ad0d4"]]);export{L as default};
|
|
2
|
-
//# sourceMappingURL=Error.1bf571a6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as c,e7 as f,eZ as o}from"./jwt-decode.esm.b204fb7d.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]="fee76233-5279-417b-98a1-eb0cf4857ef8",e._sentryDebugIdIdentifier="sentry-dbid-fee76233-5279-417b-98a1-eb0cf4857ef8")}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(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){u(e,i,n[i])})}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 a=function(t,n){var r=l({},t,n.attrs);return c(f,l({},r,{icon:o}),null)};a.displayName="ExclamationCircleOutlined";a.inheritAttrs=!1;const s=a;export{s as E};
|
|
2
|
-
//# sourceMappingURL=ExclamationCircleOutlined.f71fa58b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as D}from"./userStore.26658284.js";import{b as E,c as C,d as k}from"./FormRunner.f721431d.js";import{d as R,eb as S,e5 as F,ae as U,r as A,w as I,c as L,aK as W,k as V,j as x,u as o,a5 as K,f as B,a as M,h as N,o as y,_ as T}from"./jwt-decode.esm.b204fb7d.js";import{r as j}from"./redirect.d1904049.js";import{a as q}from"./asyncComputed.0f036eae.js";import{u as h}from"./uuid.ffd92735.js";import{L as G}from"./CircularLoading.02fd7b7b.js";import{f as P}from"./workspaceStore.9caf566c.js";import"./Login.vue_vue_type_script_setup_true_lang.fab46c0c.js";import"./index.dfc9f500.js";import"./Logo.cc2d4a95.js";import"./string.4a80abd5.js";import"./index.e6b397aa.js";import"./Steps.4c7bc2b0.js";import"./index.138ad220.js";import"./Watermark.4b6da85c.js";import"./constants.6f822a9d.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[a]="be1dff59-16f8-4ca3-8bec-d7f72d24c14b",i._sentryDebugIdIdentifier="sentry-dbid-be1dff59-16f8-4ca3-8bec-d7f72d24c14b")}catch{}})();const z={key:0,class:"loading"},H=R({__name:"Form",setup(i){const a=S(),c=F(),f=U({playerKey:h()}),g=D(),l=A(null);I(a,()=>{a.name==="form"&&w()});const{loading:d,result:t,error:p,refetch:w}=q(async()=>{f.playerKey=h();const r=a.path.slice(1),e=await P(r);if(!e){c.push({name:"error",params:{status:"404"}});return}const n=new C({formRunnerData:e,logService:null,connectionManager:new k(e.id,"player",a.query),onRedirect:_,onFormStart:()=>{},onFormEnd:()=>{},onStackTraceUpdate:null,onStateUpdate:u=>l.value=u}),s=n.getState();return l.value=s.formState,{runnerData:e,controller:n}}),b=L(()=>{const r=!d,e=!!p,n=!t||l.value===null;return r&&(e||n)});W(()=>{var r,e,n,s,u;b.value&&c.push({name:"error",params:{status:"500"}}),!!((r=t.value)!=null&&r.runnerData)&&(e=t.value)!=null&&e.runnerData&&(document.title=(u=(n=t.value)==null?void 0:n.runnerData.welcomeTitle)!=null?u:(s=t.value)==null?void 0:s.runnerData.title)});function _(r,e){window.removeEventListener("beforeunload",m),j("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,u,v;return o(d)?(y(),K("div",z,[B(G)])):o(t)&&o(t).runnerData&&l.value&&!o(p)&&!o(d)?(y(),M(E,{key:f.playerKey,"form-runner-data":o(t).runnerData,"form-state":l.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:(u=o(t))==null?void 0:u.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 me=T(H,[["__scopeId","data-v-972fe12c"]]);export{me as default};
|
|
2
|
-
//# sourceMappingURL=Form.288a7191.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as u,d as m,e5 as h,k as y,j as w,m as g,a as b,o as v,_ as I}from"./jwt-decode.esm.b204fb7d.js";import{l as d}from"./fetch.41281c28.js";import{u as k}from"./polling.5f85e241.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]="25d59a93-b3f6-48df-abc5-f1523147ca2c",t._sentryDebugIdIdentifier="sentry-dbid-25d59a93-b3f6-48df-abc5-f1523147ca2c")}catch{}})();const _=4,C=t=>{const n=t.router,a=u(""),r=u(Array(_).fill(!0));let s=0;const l=async()=>{try{const e=new AbortController,o=setTimeout(()=>e.abort(),1e3),p=await d("/_healthcheck",{method:"GET",signal:e.signal,headers:{"Content-Type":"application/json","Cache-Control":"no-cache"}});clearTimeout(o),r.value[s]=p.status===200}catch{r.value[s]=!1}if(s=(s+1)%_,r.value.every(e=>!e)&&a.value){const e=n.currentRoute.value.path,o=new URLSearchParams;o.set("redirect",e),window.location.href=a.value+"?"+o.toString()}},{startPolling:c,endPolling:f}=k({task:l,interval:2e3}),i=async()=>{const e=await d("/_editor/api/web-editor/",{method:"GET"});if(!e.ok){setTimeout(()=>{i()},1e3);return}const o=await e.json();o.waitingRoomUrl&&(a.value=o.waitingRoomUrl,c())};return{setup:i,cleanUp:f}},H=m({__name:"Home",setup(t){const n=h(),{setup:a,cleanUp:r}=C({router:n});return y(()=>{a()}),w(()=>{r()}),(s,l)=>{const c=g("RouterView");return v(),b(c,{class:"router"})}}});const U=I(H,[["__scopeId","data-v-3737a9c1"]]);export{U as default};
|
|
2
|
-
//# sourceMappingURL=Home.23f0cff8.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as h}from"./metadata.e6e36ac2.js";import{W as k}from"./Watermark.4b6da85c.js";import{F as b}from"./PhArrowSquareOut.vue.0d20b8e9.js";import{d as v,e5 as w,c as x,r as C,u as e,a5 as u,f as d,b as r,h as D,o as a,a as n,g as m,T as y,aR as I,ec as z,de as _,ef as T,ed as F,ea as B,_ as H}from"./jwt-decode.esm.b204fb7d.js";import{u as L}from"./workspaceStore.9caf566c.js";import"./index.dccc1696.js";import{L as N}from"./LoadingOutlined.11688830.js";import{C as S}from"./Card.774e5d67.js";import"./PhUserList.vue.6d0e7bc8.js";import"./PhWebhooksLogo.vue.49b66d69.js";import"./index.dfc9f500.js";import"./constants.6f822a9d.js";import"./userStore.26658284.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="ec042fcf-5255-44e9-857b-1af4dbfcf0b8",o._sentryDebugIdIdentifier="sentry-dbid-ec042fcf-5255-44e9-857b-1af4dbfcf0b8")}catch{}})();const V={key:0,class:"home-container"},W=v({__name:"Home",setup(o){const i=w(),l=L(),f=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(p=>p.id!=="home"))||[]}),c=C(null),g=async(s,p)=>{c.value=p,await i.push({path:`/${s}`}),c.value=null};return(s,p)=>e(l).state.workspace?(a(),u("div",V,[d(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[f.value.length===0?(a(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(a(!0),u(I,{key:1},z(f.value,t=>(a(),n(e(S),{key:t.id,class:B(["form-card",{loading:c.value===t.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(t.path,t.id)},{default:r(()=>[d(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(a(),n(T(e(h)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),d(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(t.name),1)]),_:2},1024),c.value!==t.id?(a(),n(e(b),{key:0,size:"20"})):(a(),n(e(N),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),d(k,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):D("",!0)}});const Z=H(W,[["__scopeId","data-v-060376d1"]]);export{Z as default};
|
|
2
|
-
//# sourceMappingURL=Home.5ce6aade.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as t,o,a5 as a,f as s,u as _,S as r,_ as c}from"./jwt-decode.esm.b204fb7d.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]="e3edd165-c960-42ee-a351-6f1d37113e1d",e._sentryDebugIdIdentifier="sentry-dbid-e3edd165-c960-42ee-a351-6f1d37113e1d")}catch{}})();const i={class:"centered"},f=t({__name:"LoadingContainer",setup(e){return(n,d)=>(o(),a("div",i,[s(_(r))]))}});const u=c(f,[["__scopeId","data-v-52e6209a"]]);export{u as L};
|
|
2
|
-
//# sourceMappingURL=LoadingContainer.3ea9ec8d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as o,e7 as u,eX as f}from"./jwt-decode.esm.b204fb7d.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]="f9017810-6e09-4830-a4db-4203e3400e4c",e._sentryDebugIdIdentifier="sentry-dbid-f9017810-6e09-4830-a4db-4203e3400e4c")}catch{}})();function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){l(e,i,n[i])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(t,n){var r=d({},t,n.attrs);return o(u,d({},r,{icon:f}),null)};a.displayName="LoadingOutlined";a.inheritAttrs=!1;const s=a;export{s as L};
|
|
2
|
-
//# sourceMappingURL=LoadingOutlined.11688830.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as l}from"./Login.vue_vue_type_script_setup_true_lang.fab46c0c.js";import{d as m,e5 as f,eb as b,a5 as g,f as y,u as a,o as w,_ as k}from"./jwt-decode.esm.b204fb7d.js";import{u as h}from"./workspaceStore.9caf566c.js";import"./index.dfc9f500.js";import"./CircularLoading.02fd7b7b.js";import"./Logo.cc2d4a95.js";import"./string.4a80abd5.js";import"./index.e6b397aa.js";import"./userStore.26658284.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.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]="ffc84199-935d-4159-9ddb-c3b1be1ed2b5",e._sentryDebugIdIdentifier="sentry-dbid-ffc84199-935d-4159-9ddb-c3b1be1ed2b5")}catch{}})();const v={class:"runner"},I=m({__name:"Login",setup(e){const o=f(),t=b(),r=h(),_=async()=>{const{redirect:s,...n}=t.query;if(s){await o.push({path:s,query:n,params:t.params});return}o.push({name:"playerHome",query:n})};return(s,n)=>{var c,d,p,u,i;return w(),g("div",v,[y(l,{"logo-url":(d=(c=a(r).state.workspace)==null?void 0:c.logoUrl)!=null?d:void 0,"brand-name":(p=a(r).state.workspace)==null?void 0:p.brandName,locale:(i=(u=a(r).state.workspace)==null?void 0:u.language)!=null?i:"en",onDone:_},null,8,["logo-url","brand-name","locale"])])}}});const U=k(I,[["__scopeId","data-v-12c690e1"]]);export{U as default};
|
|
2
|
-
//# sourceMappingURL=Login.2a4c7e48.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as i,ey as c,c as r,o,a5 as t,h as d,ea as _,ed as p,_ as u}from"./jwt-decode.esm.b204fb7d.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]="c5a9c840-5932-4de8-903f-a4224b414aeb",e._sentryDebugIdIdentifier="sentry-dbid-c5a9c840-5932-4de8-903f-a4224b414aeb")}catch{}})();const g={class:"logo"},f=["src","alt"],m=i({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const a=e;c(s=>({"4521d904":n.value}));const n=r(()=>a.size==="small"?"24px":a.size==="large"?"80px":"50px"),l=r(()=>`${a.brandName} Logo`);return(s,y)=>(o(),t("div",g,[s.imageUrl?(o(),t("img",{key:0,class:"logo-img",src:s.imageUrl,alt:l.value},null,8,f)):d("",!0),s.hideText?d("",!0):(o(),t("span",{key:1,class:_(s.size)},p(s.brandName),3))]))}});const h=u(m,[["__scopeId","data-v-8f34aac0"]]);export{h as L};
|
|
2
|
-
//# sourceMappingURL=Logo.cc2d4a95.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as U,am as S,c as D,o as n,a5 as c,a7 as O,h as T,e6 as V,e as A,eb as H,e5 as N,j as q,a as g,b as r,u as e,er as C,f as a,g as b,A as Q,cy as j,cz as m,bJ as G,aB as _,S as $,ec as J,d4 as I,ed as v,ei as K,de as W,aR as X,bO as Y,cx as ee,cH as te}from"./jwt-decode.esm.b204fb7d.js";import{a as ae,E as le,L as oe}from"./LogsController.353f0002.js";import{_ as re,R as se}from"./repository.ae6e826f.js";import{_ as ne}from"./AbstraButton.vue_vue_type_script_setup_true_lang.c714d609.js";import{g as ie}from"./datetime.7d5f4744.js";import{c as de}from"./string.4a80abd5.js";import{a as h,f as M,A as ue,C as pe}from"./router.29d47df0.js";import{R as B}from"./dayjs.19defe89.js";import{A as F}from"./index.e7bc0e19.js";import{b as fe}from"./build.c819a477.js";import"./tables.e80a0328.js";import"./ant-design.771baa34.js";import"./PhCopy.vue.b1c2f21f.js";import"./polling.5f85e241.js";import"./LoadingOutlined.11688830.js";import"./index.26a34a52.js";import"./record.316e025a.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[i]="e30475aa-e9f3-4e37-ad60-509ad9b5224c",p._sentryDebugIdIdentifier="sentry-dbid-e30475aa-e9f3-4e37-ad60-509ad9b5224c")}catch{}})();const ge=["width","height","fill","transform"],ce={key:0},ye=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),me=[ye],he={key:1},Ae=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),be=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=[Ae,be],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),_e=[xe],Ie={key:3},ke=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),Le=[ke],Re={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],Ce={key:5},Pe=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),ze=[Pe],Ee={name:"PhLink"},Ze=U({...Ee,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(p){const i=p,f=S("weight","regular"),k=S("size","1em"),L=S("color","currentColor"),P=S("mirrored",!1),y=D(()=>{var d;return(d=i.weight)!=null?d:f}),R=D(()=>{var d;return(d=i.size)!=null?d:k}),z=D(()=>{var d;return(d=i.color)!=null?d:L}),E=D(()=>i.mirrored!==void 0?i.mirrored?"scale(-1, 1)":void 0:P?"scale(-1, 1)":void 0);return(d,w)=>(n(),c("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:R.value,height:R.value,fill:z.value,transform:E.value},d.$attrs),[O(d.$slots,"default"),y.value==="bold"?(n(),c("g",ce,me)):y.value==="duotone"?(n(),c("g",he,ve)):y.value==="fill"?(n(),c("g",we,_e)):y.value==="light"?(n(),c("g",Ie,Le)):y.value==="regular"?(n(),c("g",Re,De)):y.value==="thin"?(n(),c("g",Ce,ze)):T("",!0)],16,ge))}}),Me={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},Ue={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},je=U({__name:"Logs",props:{executionRepository:{},buildRepository:{},showAllFilters:{type:Boolean}},setup(p){const i=p,f=H(),k=N(),L=f.params.projectId,P=f.query.executionId;function y(){const{stageId:u,buildId:l,status:t,startDate:s,endDate:x,runId:Z}=f.query;return s&&x?{stageId:u,buildId:l,status:t,dateRange:[C(s),C(x)]}:{stageId:u,buildId:l,status:t,search:Z}}function R(u){const l={};Object.entries(u).forEach(([t,s])=>{typeof s=="string"&&t==="search"&&s?l.runId=s:typeof s=="string"&&s?l[t]=s:t==="dateRange"&&s&&C.isDayjs(s[0])&&C.isDayjs(s[1])&&(l.startDate=s[0].toISOString(),l.endDate=s[1].toISOString())}),k.replace({query:l})}function z(){const{page:u,pageSize:l}=f.query;return{page:u?parseInt(u,10):1,pageSize:l?parseInt(l,10):10}}function E(u){const l=u.slice(0,6),t=`${window.location.origin}${window.location.pathname}?runId=${l}`;navigator.clipboard.writeText(t),te.success({content:"Copied to clipboard"})}function d(u,l){let t={...u};return t.sentTasks=l.sentTasks,delete t.mockExecution,l.triggerTask&&(t.triggerTask=l.triggerTask,delete t.taskId),t}const w=new ae(i.executionRepository,i.buildRepository,L,y(),z(),P,R),{state:o}=w;return w.init(),q(()=>w.teardown()),(u,l)=>(n(),g(e(F),{direction:"vertical",style:{width:"100%",padding:"0px 0px 20px 0px"}},{default:r(()=>[a(e(Q),null,{default:r(()=>[b("Logs")]),_:1}),u.showAllFilters?(n(),g(e(j),{key:0,layout:"vertical"},{default:r(()=>[a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:12},{default:r(()=>[a(e(m),{label:"Run ID"},{default:r(()=>[a(e(G),{value:e(o).filters.search,"onUpdate:value":l[0]||(l[0]=t=>e(o).filters.search=t),placeholder:"Search by Run ID",style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:12},{default:r(()=>[a(e(m),{label:"Stage"},{default:r(()=>[a(e(_),{value:e(o).filters.stageId,"onUpdate:value":l[1]||(l[1]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1}),a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:8},{default:r(()=>[a(e(m),{label:"Date"},{default:r(()=>[a(e(B),{value:e(o).filters.dateRange,"onUpdate:value":l[2]||(l[2]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:10},{default:r(()=>[a(e(m),{label:"Version"},{default:r(()=>[a(e(_),{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:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),a(e(h),{span:6},{default:r(()=>[a(e(m),{label:"Status"},{default:r(()=>[a(e(_),{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:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1})):(n(),g(e(j),{key:1,layout:"vertical"},{default:r(()=>[a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:8},{default:r(()=>[a(e(m),{label:"Date"},{default:r(()=>[a(e(B),{value:e(o).filters.dateRange,"onUpdate:value":l[5]||(l[5]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:10},{default:r(()=>[a(e(m),{label:"Script"},{default:r(()=>[a(e(_),{value:e(o).filters.stageId,"onUpdate:value":l[6]||(l[6]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),a(e(h),{span:6},{default:r(()=>[a(e(m),{label:"Status"},{default:r(()=>[a(e(_),{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:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1})),e(o).currentPage.loadingExecutions||e(o).currentPage.waitingDebounce?(n(),g(e($),{key:2,style:{width:"100%"}})):e(o).currentPage.executions&&e(o).currentPage.executions.length>0?(n(),g(e(F),{key:3,direction:"vertical",style:{width:"100%"}},{default:r(()=>[a(e(pe),{"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(()=>[(n(!0),c(X,null,J(e(o).currentPage.executions,t=>(n(),g(e(ue),{key:t.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:r(()=>[a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(v(e(ie)(t.createdAt)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Run ID: "+v(t.id.slice(0,8)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Version: "+v(t.buildId.slice(0,8)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Duration: "+v(t.duration_seconds),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>{var s,x;return[b(v((x=(s=e(o).filterOptions.stages.find(Z=>Z.value===t.stageId))==null?void 0:s.label)!=null?x:t.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:r(()=>[A("div",Me,[a(ne,{type:"text",size:"small",tooltip:"Copy URL",onClick:K(s=>E(t.id),["stop"])},{default:r(()=>[a(e(Ze))]),_:2},1032,["onClick"]),b(" "+v(e(de)(t.status))+" ",1),a(re,{status:t.status},null,8,["status"])])]),default:r(()=>[e(o).currentPage.executionData[t.id]?(n(),g(e(W),{key:1,vertical:"",gap:"middle"},{default:r(()=>[a(le,{data:d(t.context,e(o).currentPage.executionData[t.id].tasks),"show-fix-with-ai":!1},null,8,["data"]),a(oe,{logs:e(o).currentPage.executionData[t.id].logs},null,8,["logs"])]),_:2},1024)):(n(),c("div",Ue,[a(e($))]))]),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),a(e(Y),{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=>`Found ${t} runs`,"show-size-changer":""},null,8,["current","page-size","total","show-total"])]),_:1})):(n(),g(e(ee),{key:4}))]),_:1}))}}),tt=U({__name:"Logs",setup(p){const i=new se,f=new fe;return(k,L)=>(n(),g(je,{"execution-repository":e(i),"build-repository":e(f),"show-all-filters":""},null,8,["execution-repository","build-repository"]))}});export{tt as default};
|
|
2
|
-
//# sourceMappingURL=Logs.f57284a4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var O=Object.defineProperty;var j=(d,t,a)=>t in d?O(d,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[t]=a;var m=(d,t,a)=>(j(d,typeof t!="symbol"?t+"":t,a),a);import{d as C,am as H,c as v,o,a5 as h,a7 as B,h as y,e6 as F,e as g,a as x,b as p,aR as P,ec as E,a6 as L,ed as S,u as c,da as w,g as A,de as D,_ as T,f as u,aV as V,ea as $,d1 as z,cH as Z,ae as N,w as k,el as q}from"./jwt-decode.esm.b204fb7d.js";import{t as W}from"./ant-design.771baa34.js";import{c as M}from"./string.4a80abd5.js";import{I}from"./PhCopy.vue.b1c2f21f.js";import{A as J}from"./index.e7bc0e19.js";import{A as G,C as Q}from"./router.29d47df0.js";import{B as U}from"./build.c819a477.js";import"./tables.e80a0328.js";import{e as X}from"./repository.ae6e826f.js";import{u as Y}from"./polling.5f85e241.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[t]="f14ca3a4-c74e-4062-b258-173c2cb9c937",d._sentryDebugIdIdentifier="sentry-dbid-f14ca3a4-c74e-4062-b258-173c2cb9c937")}catch{}})();const K=["width","height","fill","transform"],tt={key:0},et=g("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),at=[et],st={key:1},it=g("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),ot=g("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"},null,-1),rt=[it,ot],nt={key:2},lt=g("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),ct=[lt],dt={key:3},ht=g("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),pt=[ht],ut={key:4},gt=g("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),ft=[gt],mt={key:5},yt=g("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"},null,-1),xt=[yt],bt={name:"PhRobot"},_t=C({...bt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const t=d,a=H("weight","regular"),s=H("size","1em"),i=H("color","currentColor"),r=H("mirrored",!1),n=v(()=>{var l;return(l=t.weight)!=null?l:a}),f=v(()=>{var l;return(l=t.size)!=null?l:s}),e=v(()=>{var l;return(l=t.color)!=null?l:i}),b=v(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(l,_)=>(o(),h("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:f.value,height:f.value,fill:e.value,transform:b.value},l.$attrs),[B(l.$slots,"default"),n.value==="bold"?(o(),h("g",tt,at)):n.value==="duotone"?(o(),h("g",st,rt)):n.value==="fill"?(o(),h("g",nt,ct)):n.value==="light"?(o(),h("g",dt,pt)):n.value==="regular"?(o(),h("g",ut,ft)):n.value==="thin"?(o(),h("g",mt,xt)):y("",!0)],16,K))}}),At={key:0,class:"cli"},Ht={key:0},vt=C({__name:"LogContainer",props:{logs:{}},setup(d){return(t,a)=>(o(),x(c(D),{vertical:"",gap:"small"},{default:p(()=>[t.logs.entries.length?(o(),h("div",At,[(o(!0),h(P,null,E(t.logs.entries,s=>(o(),h("p",{key:s.createdAt,style:L({margin:0,"white-space":"pre-wrap",color:s.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},[s.payload.text?(o(),h("span",Ht,S(s.payload.text.trim()),1)):y("",!0)],4))),128))])):(o(),x(c(w),{key:1,type:"secondary"},{default:p(()=>[A("Empty")]),_:1}))]),_:1}))}});const Bt=T(vt,[["__scopeId","data-v-b7f04a41"]]),Zt={key:0},wt=["onClick"],Vt=["onClick"],kt=C({__name:"ExecutionContext",props:{data:{},showFixWithAi:{type:Boolean},isSmartChatIdle:{type:Boolean}},emits:["ask-ai"],setup(d,{emit:t}){const a=d,s=e=>{if(e==="legacyThreadData")return"Thread data";const b=M(e);return b.replace(/([A-Z])/g," $1").trim(),b},i=e=>e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1,r=e=>{typeof e=="object"&&e!==null&&"payload"in e?(navigator.clipboard.writeText(JSON.stringify(e.payload)),Z.success({content:"Copied to clipboard"})):(navigator.clipboard.writeText(""),Z.error({content:"No payload to copy"}))},n=e=>{e.stopPropagation(),a.isSmartChatIdle!==!1&&t("ask-ai")},f=e=>{typeof e=="object"?(navigator.clipboard.writeText(JSON.stringify(e)),Z.success({content:"Copied to clipboard"})):(navigator.clipboard.writeText(""),Z.error({content:"Failed to copy request"}))};return(e,b)=>(o(),x(c(Q),{bordered:!1,style:{"background-color":"transparent",width:"100%"}},{default:p(()=>[u(c(G),{key:"execution-context"},{header:p(()=>[u(c(D),{justify:"space-between"},{default:p(()=>[u(c(w),null,{default:p(()=>[A("Execution context")]),_:1}),u(c(V),{title:e.isSmartChatIdle?"":"Wait or stop the response first",placement:"left"},{default:p(()=>[e.showFixWithAi?(o(),h("div",{key:0,class:$(["ask-to-ai",{disabled:!e.isSmartChatIdle}]),onClick:n},[A(" Fix with AI "),u(c(_t),{size:16})],2)):y("",!0)]),_:1},8,["title"])]),_:1})]),default:p(()=>[u(c(J),{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(e.data).length?(o(!0),h(P,{key:1},E(Object.entries(e.data),([l,_])=>(o(),h("div",{key:l,class:"tree"},[l!=="legacyThreadData"||!i(_)?(o(),h("div",Zt,[u(c(w),{strong:""},{default:p(()=>[A(S(s(l)),1)]),_:2},1024),l==="request"?(o(),x(c(V),{key:0,title:"Copy Request Data"},{default:p(()=>[g("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:R=>f(_)},[u(c(I))],8,wt)]),_:2},1024)):y("",!0),l==="triggerTask"?(o(),x(c(V),{key:1,title:"Copy Payload Data"},{default:p(()=>[g("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:R=>r(_)},[u(c(I))],8,Vt)]),_:2},1024)):y("",!0),u(c(z),{"tree-data":c(W)(_),selectable:!1},null,8,["tree-data"])])):y("",!0)]))),128)):(o(),x(c(w),{key:0,type:"secondary"},{default:p(()=>[A("Empty")]),_:1}))]),_:1})]),_:1})]),_:1}))}});const Ft=T(kt,[["__scopeId","data-v-cdd3162a"]]);class Lt{constructor(t,a,s,i,r,n,f){m(this,"state");m(this,"polling",Y({task:()=>this.refetch(),interval:1e4}));m(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch(),this.onFilterChange&&this.onFilterChange(this.state.filters)});m(this,"debouncedPageRefetch",q.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));m(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async t=>{this.state.currentPage.executionData[t]||await this.fetchExecutionDetails(t)})});this.executionRepository=t,this.buildRepository=a,this.projectId=s,this.onFilterChange=f,this.state=N({currentPage:{openedExecutionIds:n?[n]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],executionData:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...r},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...i},filterOptions:{builds:[],stages:[],statuses:X.map(e=>({label:M(e),value:e}))}}),k(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),k(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),k(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.polling.startPolling()}teardown(){this.polling.endPolling()}async getNewestExecutionId(t){let a=this.state.currentPage.executions;return t&&(a=a.filter(i=>i.stageId===t)),a.length===0?null:a.reduce((i,r)=>i.createdAt>r.createdAt?i:r).id}async fetchPage(){var s,i,r,n;this.state.currentPage.loadingExecutions=!0;const{executions:t,totalCount:a}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(i=(s=this.state.filters.dateRange)==null?void 0:s[0])==null?void 0:i.toISOString(),endDate:(n=(r=this.state.filters.dateRange)==null?void 0:r[1])==null?void 0:n.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=t,this.state.pagination.totalCount=a}async fetchBuildOptions(){if(!this.buildRepository)return;const a=(await this.buildRepository.list(this.projectId)).map(s=>({label:`[${s.id.slice(0,8)}] ${s.createdAt.toLocaleString()} ${s.latest?"(Latest)":""}`,value:s.id}));this.state.filterOptions.builds=a}async fetchStageOptions(){var s;if(!this.buildRepository){const r=(await this.executionRepository.fetchStages()).map(n=>({label:n.title,value:n.id}));this.state.filterOptions.stages=r!=null?r:[];return}const t=await U.get((s=this.state.filters.buildId)!=null?s:this.state.filterOptions.builds[0].value),a=t==null?void 0:t.runtimes.map(i=>({label:i.title,value:i.id}));this.state.filterOptions.stages=a!=null?a:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchExecutionDetails(t){const[a,s,i]=await Promise.all([this.executionRepository.fetchLogs(this.projectId,t),this.executionRepository.fetchThreadData(this.projectId,t),this.executionRepository.getExecutionTasks(this.projectId,t)]);this.state.currentPage.executionData[t]={logs:a,threadData:s,tasks:{triggerTask:i.triggerTask?{type:i.triggerTask.type,payload:i.triggerTask.payload}:null,sentTasks:i.sentTasks.map(r=>({type:r.type,payload:r.payload}))}}}async refetch(){this.state.currentPage.openedExecutionIds.map(t=>this.fetchExecutionDetails(t))}}export{Ft as E,Bt as L,Lt as a};
|
|
2
|
-
//# sourceMappingURL=LogsController.353f0002.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P as f}from"./PlayerNavbar.523eb145.js";import{d as g,e5 as h,eb as c,r as y,c as b,m as k,a5 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.b204fb7d.js";import{u as V}from"./workspaceStore.9caf566c.js";import"./userStore.26658284.js";import"./index.dfc9f500.js";import"./metadata.e6e36ac2.js";import"./PhUserList.vue.6d0e7bc8.js";import"./PhWebhooksLogo.vue.49b66d69.js";import"./LoadingOutlined.11688830.js";import"./PhSignOut.vue.ee548b4c.js";import"./index.9028af84.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="28d94014-07b8-4a98-a5ad-209c8ae0cd4b",o._sentryDebugIdIdentifier="sentry-dbid-28d94014-07b8-4a98-a5ad-209c8ae0cd4b")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(o){const e=h(),t=V(),d=c().path,a=y(null),u=async({path:r,id:s})=>{a.value=s,await e.push({path:`/${r}`}),a.value=null},p=()=>{e.push({name:"playerLogin"})},l=()=>{e.push({name:"playerLogin"})},_=b(()=>!!c().meta.hideLogin);return(r,s)=>{const m=k("RouterView");return i(),v("div",x,[n(t).state.workspace?(i(),w(f,{key:0,"current-path":n(d),"hide-login":_.value,"runner-data":n(t).state.workspace,loading:a.value,onNavigate:u,onLoginClick:l,onLogoutClick:p},null,8,["current-path","hide-login","runner-data","loading"])):L("",!0),C("section",B,[I(m)])])}}});const H=N(D,[["__scopeId","data-v-f095bece"]]);export{H as default};
|
|
2
|
-
//# sourceMappingURL=Main.635e443c.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as m}from"./AbstraButton.vue_vue_type_script_setup_true_lang.c714d609.js";import{A as C}from"./constants.6f822a9d.js";import{d as x,e5 as S,m as B,u as e,o,a as p,S as w,a5 as A,f as a,b as t,g as s,e as f,da as N,ed as _,bR as b,cN as R,el as I,ec as L,e$ as D,aR as $,h as k,_ as G}from"./jwt-decode.esm.b204fb7d.js";import{a as T}from"./asyncComputed.0f036eae.js";import{G as V}from"./PhChats.vue.3dd1c2d7.js";import{F as z}from"./PhSignOut.vue.ee548b4c.js";import{j as h,l as j}from"./router.29d47df0.js";import{A as E}from"./index.e7bc0e19.js";import{A as F}from"./index.9028af84.js";import{u as O}from"./omniChatStore.0470e5b1.js";import{G as P}from"./PhBookBookmark.vue.8611e54f.js";import{G as U}from"./PhSparkle.vue.dc906cc7.js";import{A as q}from"./index.a9e83a57.js";import{B as H,A as M}from"./Breadcrumb.1d42c80c.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[n]="4a33f63c-9a1d-484a-b636-7184be075fa5",r._sentryDebugIdIdentifier="sentry-dbid-4a33f63c-9a1d-484a-b636-7184be075fa5")}catch{}})();const J={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},K={style:{display:"flex","flex-direction":"column",gap:"10px"}},Q={style:{display:"flex",gap:"5px"}},W=x({__name:"LoginBlock",setup(r){function n(y){const g=y.split("@")[0];return I.exports.kebabCase(g).toUpperCase().split("-").slice(0,2).map(c=>c[0]).join("")}const i=S(),{result:l,loading:d,refetch:u}=T(async()=>h.getAuthor());async function v(){await h.logout(),j.shutdown(),u(),i.push({name:"login"})}return(y,g)=>{const c=B("RouterLink");return e(d)?(o(),p(e(w),{key:0})):e(l)?(o(),A("div",J,[a(m,{class:"intercom-launcher",target:"_blank",type:"link",size:"small"},{default:t(()=>[a(e(V)),s(" Support ")]),_:1}),a(e(R),{placement:"bottomRight"},{content:t(()=>[f("div",K,[a(e(N),{size:"small",type:"secondary"},{default:t(()=>[s(_(e(l).claims.email),1)]),_:1}),a(e(b),{type:"text",onClick:v},{default:t(()=>[f("div",Q,[a(e(z),{size:"20"}),s(" Logout ")])]),_:1})])]),default:t(()=>[a(e(E),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(F),{shape:"square"},{default:t(()=>[s(_(n(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(o(),p(e(b),{key:2},{default:t(()=>[a(c,{to:"/login"},{default:t(()=>[s("Login")]),_:1})]),_:1}))}}}),X={class:"extra"},Y=x({__name:"Navbar",props:{breadcrumb:{},showAiSparkles:{type:Boolean}},setup(r){const n=O();return(i,l)=>(o(),p(e(q),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[i.breadcrumb?(o(),p(e(H),{key:0},{default:t(()=>[(o(!0),A($,null,L(i.breadcrumb,(d,u)=>(o(),p(e(M),{key:u},{default:t(()=>[a(e(D),{to:d.path},{default:t(()=>[s(_(d.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):k("",!0)]),extra:t(()=>[f("div",X,[i.showAiSparkles?(o(),p(m,{key:0,type:"link",onClick:l[0]||(l[0]=d=>e(n).toggle())},{default:t(()=>[a(e(U)),s(" AI Assistant ")]),_:1})):k("",!0),a(m,{href:e(C).DOCS,target:"_blank",type:"link"},{default:t(()=>[a(e(P)),s(" Docs ")]),_:1},8,["href"]),a(W)])]),_:1}))}});const me=G(Y,[["__scopeId","data-v-9083334a"]]);export{me as N};
|
|
2
|
-
//# sourceMappingURL=Navbar.dacca218.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as r}from"./index.dfc9f500.js";import{d as l,k as i,a5 as c,f as a,b as n,u as d,o as u,g as o,A as f,da as _}from"./jwt-decode.esm.b204fb7d.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]="148e73c8-2a1d-4979-96fd-f77ccd6d830f",e._sentryDebugIdIdentifier="sentry-dbid-148e73c8-2a1d-4979-96fd-f77ccd6d830f")}catch{}})();const b=l({__name:"OidcLoginCallback",setup(e){return i(async()=>{await new r().loginCallback()}),(t,s)=>(u(),c("div",null,[a(d(f),null,{default:n(()=>[o("You're authenticated")]),_:1}),a(d(_),null,{default:n(()=>[o(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{b as default};
|
|
2
|
-
//# sourceMappingURL=OidcLoginCallback.0dff6320.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as r}from"./index.dfc9f500.js";import{d as l,k as c,a5 as u,f as a,b as d,u as n,o as i,g as o,A as f,da as _}from"./jwt-decode.esm.b204fb7d.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]="cf685c9d-7b42-44d0-9406-fd0cd2e356f9",e._sentryDebugIdIdentifier="sentry-dbid-cf685c9d-7b42-44d0-9406-fd0cd2e356f9")}catch{}})();const p=l({__name:"OidcLogoutCallback",setup(e){return c(async()=>{await new r().logoutCallback()}),(t,s)=>(i(),u("div",null,[a(n(f),null,{default:d(()=>[o("You're authenticated")]),_:1}),a(n(_),null,{default:d(()=>[o(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{p as default};
|
|
2
|
-
//# sourceMappingURL=OidcLogoutCallback.1f077fbb.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js";import{B as m}from"./BaseLayout.670b8441.js";import{d as l,ae as y,c1 as b,_ as u,aZ as v,a_ as g,o as _,a5 as h,e as r,a6 as n,eb as w,e5 as S,k,a as L,b as s,f as i,u as x}from"./jwt-decode.esm.b204fb7d.js";import{u as B}from"./editor.6fa2da52.js";import{A as I}from"./index.a9e83a57.js";import"./Logo.cc2d4a95.js";import"./workspaceStore.9caf566c.js";import"./userStore.26658284.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";import"./index.dfc9f500.js";import"./linters.5b679742.js";import"./asyncComputed.0f036eae.js";import"./constants.6f822a9d.js";import"./index.26a34a52.js";import"./Breadcrumb.1d42c80c.js";import"./index.9028af84.js";import"./index.e7bc0e19.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]="2cb575a1-69b7-4d73-a964-5ae5f72b5478",e._sentryDebugIdIdentifier="sentry-dbid-2cb575a1-69b7-4d73-a964-5ae5f72b5478")}catch{}})();const $=l({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const o=y({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(o)}}});const P={class:"v-spinner"};function D(e,o,a,d,c,p){return v((_(),h("div",P,[r("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:n(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const R=u($,[["render",D],["__scopeId","data-v-06538001"]]),j={class:"content"},z=l({__name:"ProjectLogin",setup(e){const o=w(),a=S(),d=B();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function p(){const t=o.query["api-key"];if(typeof t=="string")return t}return k(async()=>{const t=p();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(c),a.push({name:"editor"})}),(t,A)=>(_(),L(m,null,{navbar:s(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:s(()=>[i(f)]),_:1})]),content:s(()=>[r("div",j,[i(R)])]),_:1}))}});const Y=u(z,[["__scopeId","data-v-d2a19803"]]);export{Y as default};
|
|
2
|
-
//# sourceMappingURL=ProjectLogin.ed25cb39.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{f as o,e7 as q,d as E,eb as D,O as L,L as _,r as p,k as N,a5 as $,b as g,u,aR as B,o as P,e as V,bR as x,g as S,de as h,cX as z,cL as O,_ as A}from"./jwt-decode.esm.b204fb7d.js";import{G as F}from"./PhDownloadSimple.vue.2c2eeb2c.js";import{e as M}from"./toggleHighContrast.4184537f.js";import"./router.29d47df0.js";import{a as T}from"./project.c198d794.js";import"./tables.e80a0328.js";import{_ as G}from"./TablesTabs.vue_vue_type_script_setup_true_lang.2d88acf3.js";import"./index.26a34a52.js";import"./record.316e025a.js";import"./string.4a80abd5.js";import"./Card.774e5d67.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]="b2104dbc-7cf9-4cf8-871c-86ab218966b0",e._sentryDebugIdIdentifier="sentry-dbid-b2104dbc-7cf9-4cf8-871c-86ab218966b0")}catch{}})();var H={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const J=H;function C(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(d){return Object.getOwnPropertyDescriptor(t,d).enumerable}))),r.forEach(function(d){U(e,d,t[d])})}return e}function U(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var w=function(n,t){var r=C({},n,t.attrs);return o(q,C({},r,{icon:J}),null)};w.displayName="CaretRightOutlined";w.inheritAttrs=!1;const X=w,I=e=>{if(e==null)return"";const n=String(e);return n.includes(";")||n.includes(`
|
|
2
|
-
`)||n.includes('"')?`"${n.replace(/"/g,'""')}"`:n},W=e=>{let n=e.columns.map(I).join(";")+`
|
|
3
|
-
`;e.rows.forEach(r=>{n+=r.map(I).join(";")+`
|
|
4
|
-
`});const t=document.createElement("a");t.href="data:text/csv;charset=utf-8,"+encodeURIComponent(n),t.target="_blank",t.download=`${e.fileName}.csv`,t.click()};function Y(e){const n={};for(const t in e)if(e.hasOwnProperty(t)){if(typeof e[t]=="object"&&e[t]!==null){n[t]=JSON.stringify(e[t]);continue}n[t]=String(e[t])}return n}const Z=E({__name:"Sql",setup(e){const t=D().params.projectId,r=new L(_.array(_.object({projectId:_.string(),lastQuery:_.string()})),"lastQueries"),d=p(null),f=p(""),v=p([]),y=p([]),Q=p([]),b=p(!1),j=async()=>{b.value=!0;const l=await T.executeQuery(t,f.value,[]);b.value=!1;const s=r.get();if(!s)r.set([{projectId:t,lastQuery:f.value}]);else{const a=s.findIndex(c=>c.projectId===t);a===-1?s.push({projectId:t,lastQuery:f.value}):s[a].lastQuery=f.value,r.set(s)}if(!l)return;const{returns:m,errors:i}=l;Q.value=i;for(const a of i)O.error({message:"SQL Execution Failed",description:a});i.length||O.success({message:"SQL Execution Succeeded"}),y.value=m.fields.map(a=>({title:a.name,key:a.name,dataIndex:a.name})),v.value=m.result.map((a,c)=>Y({key:`${c+1}`,...a}))},k=()=>{const l=y.value.map(c=>c.dataIndex),s=y.value.map(c=>c.title),m=v.value.map(c=>l.map(R=>c[R])),a=`data-${new Date().toISOString()}`;W({fileName:a,columns:s,rows:m})};return N(()=>{var m;const l=M.create(d.value,{language:"sql",value:f.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});l.onDidChangeModelContent(()=>{f.value=l.getValue()});const s=r.get();if(s){const i=(m=s.find(a=>a.projectId===t))==null?void 0:m.lastQuery;i&&(f.value=i,l.setValue(i))}}),(l,s)=>(P(),$(B,null,[o(G),o(u(h),{gap:"large",class:"sql-container",align:"center"},{default:g(()=>[V("div",{ref_key:"sqlEditor",ref:d,class:"sql-editor"},null,512),o(u(x),{type:"primary",loading:b.value,onClick:j},{icon:g(()=>[o(u(X))]),default:g(()=>[S(" Run ")]),_:1},8,["loading"])]),_:1}),o(u(h),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:g(()=>[o(u(x),{disabled:!v.value.length,onClick:k},{default:g(()=>[o(u(h),{align:"center",gap:"small"},{default:g(()=>[S(" Export to CSV "),o(u(F))]),_:1})]),_:1},8,["disabled"])]),_:1}),o(u(z),{style:{width:"100%"},scroll:{x:100},"data-source":v.value,columns:y.value},null,8,["data-source","columns"])],64))}});const ue=A(Z,[["__scopeId","data-v-71ca01e9"]]);export{ue as default};
|
|
5
|
-
//# sourceMappingURL=Sql.cbcb65af.js.map
|