abstra 3.23.8__py3-none-any.whl → 3.23.10__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.8.dist-info → abstra-3.23.10.dist-info}/METADATA +1 -1
- {abstra-3.23.8.dist-info → abstra-3.23.10.dist-info}/RECORD +172 -169
- abstra_internals/contracts_generated.py +551 -663
- abstra_internals/entities/forms/template.py +84 -5
- abstra_internals/modules_test.py +2 -2
- abstra_internals/services/file_watcher.py +17 -14
- abstra_internals/utils/file.py +62 -0
- abstra_internals/utils/platform.py +5 -0
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.ab120641.js +2 -0
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.23cf85ee.js +2 -0
- abstra_statics/dist/assets/ApiKeys.f5b7fcec.js +2 -0
- abstra_statics/dist/assets/App.46bd8dd6.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.2264189c.js +2 -0
- abstra_statics/dist/assets/BaseLayout.77f1c4c9.js +2 -0
- abstra_statics/dist/assets/{Billing.b9f77b65.js → Billing.44a9d31b.js} +2 -2
- abstra_statics/dist/assets/{Breadcrumb.d0cc2c91.js → Breadcrumb.ef8bd191.js} +2 -2
- abstra_statics/dist/assets/{Builds.18e4ba1a.js → Builds.4efe7d0f.js} +2 -2
- abstra_statics/dist/assets/{Card.957a87b2.js → Card.897ad69d.js} +5 -5
- abstra_statics/dist/assets/{CircularLoading.3e4ddd6d.js → CircularLoading.ea5d27d2.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.3d4e81d4.js +2 -0
- abstra_statics/dist/assets/{ConnectorsView.17764dde.css → ConnectorsView.aeb00ce8.css} +1 -1
- abstra_statics/dist/assets/ConnectorsView.b274568b.js +2 -0
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.99b3af8f.js +2 -0
- abstra_statics/dist/assets/ContentLayout.866d5dde.js +2 -0
- abstra_statics/dist/assets/{CrudView.8fb84eac.js → CrudView.d06da8d4.js} +2 -2
- abstra_statics/dist/assets/CrudView.e24590ae.css +1 -0
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.a3f96825.js +2 -0
- abstra_statics/dist/assets/{EditorLogin.02eb6050.js → EditorLogin.22bca314.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.f0ea00fc.js → EditorsView.367f6a9a.js} +2 -2
- abstra_statics/dist/assets/EnvVars.afb25010.js +2 -0
- abstra_statics/dist/assets/{Error.a81122c4.js → Error.c2ad341a.js} +2 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.5510023c.js +2 -0
- abstra_statics/dist/assets/{Files.f23b9c53.js → Files.aba4c92b.js} +2 -2
- abstra_statics/dist/assets/{Form.bfea5673.js → Form.ab1706e4.js} +2 -2
- abstra_statics/dist/assets/{FormRunner.8bbe841e.js → FormRunner.ce5ad4fd.js} +2 -2
- abstra_statics/dist/assets/Home.a001fbb0.js +2 -0
- abstra_statics/dist/assets/Home.ee572768.js +2 -0
- abstra_statics/dist/assets/{Live.5dc821b6.js → Live.c14662db.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.c883bb34.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.f4b4629a.js +2 -0
- abstra_statics/dist/assets/{Login.c702642b.js → Login.2ef78ae0.js} +2 -2
- abstra_statics/dist/assets/Login.efd0eb05.js +2 -0
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.a92a80d0.js → Login.vue_vue_type_script_setup_true_lang.b006d8d3.js} +2 -2
- abstra_statics/dist/assets/Logo.648566b5.js +2 -0
- abstra_statics/dist/assets/{Logs.eebc0504.js → Logs.072f55c6.js} +2 -2
- abstra_statics/dist/assets/{LogsController.eb1b811d.js → LogsController.395d93f5.js} +2 -2
- abstra_statics/dist/assets/Main.e6027f81.js +2 -0
- abstra_statics/dist/assets/{MockForm.c3318be9.js → MockForm.fdc58df0.js} +2 -2
- abstra_statics/dist/assets/Navbar.7add3eb0.js +2 -0
- abstra_statics/dist/assets/NewEditor.6771ba53.js +8 -0
- abstra_statics/dist/assets/{NewEditor.0044878f.css → NewEditor.6dd8f03b.css} +1 -1
- abstra_statics/dist/assets/OidcLoginCallback.f56f78fc.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.437c4101.js +2 -0
- abstra_statics/dist/assets/{OmniChat.8a35a659.css → OmniChat.078af315.css} +1 -1
- abstra_statics/dist/assets/OmniChat.de7b834a.js +6 -0
- abstra_statics/dist/assets/{OnboardingView.1c034f0d.js → OnboardingView.51adcf60.js} +2 -2
- abstra_statics/dist/assets/{Organization.855f95a9.js → Organization.e9e92d40.js} +2 -2
- abstra_statics/dist/assets/Organizations.a6fb836d.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.76c9e146.js → PhArrowCounterClockwise.vue.a4f3391b.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.ecfa9cb2.js → PhArrowSquareOut.vue.6554aa1c.js} +2 -2
- abstra_statics/dist/assets/{PhBookBookmark.vue.f8f803d9.js → PhBookBookmark.vue.c37eb773.js} +2 -2
- abstra_statics/dist/assets/{PhChats.vue.dfda946c.js → PhChats.vue.1d971c96.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.cd77fd26.js → PhClockCounterClockwise.vue.f3d7a5f0.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.a63b48dd.js → PhCopy.vue.e433af1d.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.ecffb042.js → PhCopySimple.vue.b8cedde5.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.b5b96a33.js → PhCube.vue.8321d975.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.2db678ef.js → PhDotsThreeVertical.vue.377e8248.js} +2 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.4c39fa52.js +2 -0
- abstra_statics/dist/assets/{PhFolderPlus.vue.dfb9b117.js → PhFolderPlus.vue.26f4fc08.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.6e1aeed0.js → PhGear.vue.bde6cc31.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.50d82bb5.js → PhKey.vue.6aba158a.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.ae2943da.js → PhPencil.vue.55f0d005.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.9042e169.js → PhPencilSimple.vue.82f128f3.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimpleLine.vue.f840cf0d.js → PhPencilSimpleLine.vue.64631777.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.3b5927aa.js → PhRocket.vue.ff778122.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.d00d3657.js → PhSignOut.vue.8f5bfa41.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.8a94f3a0.js → PhSparkle.vue.2d12a12f.js} +2 -2
- abstra_statics/dist/assets/{PhUserList.vue.3791cb59.js → PhUserList.vue.5cfe135b.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.ef0376b6.js → PhUsersThree.vue.ddb0f571.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.fe81fb65.js → PhWebhooksLogo.vue.f667599c.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.2acd3a77.js → PlayerConfigProvider.ef1e8f48.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.13876ce7.js → PlayerNavbar.ca2f19cb.js} +2 -2
- abstra_statics/dist/assets/{Project.0277535f.js → Project.4e2f44e3.js} +2 -2
- abstra_statics/dist/assets/ProjectLogin.2d8bb827.js +2 -0
- abstra_statics/dist/assets/{ProjectSettings.652a838b.js → ProjectSettings.952cec7a.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.c5ec993b.js → ProjectsView.67e79ccf.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.ac38b361.js → SaveButton.d14631e9.js} +2 -2
- abstra_statics/dist/assets/{ScrollArea.vue_vue_type_script_setup_true_lang.a58564d3.js → ScrollArea.vue_vue_type_script_setup_true_lang.49642b53.js} +2 -2
- abstra_statics/dist/assets/{Sidebar.56e51ab5.js → Sidebar.964fcb1c.js} +2 -2
- abstra_statics/dist/assets/Sql.afd70c7f.js +5 -0
- abstra_statics/dist/assets/Steps.4482ff19.js +2 -0
- abstra_statics/dist/assets/{TableEditor.df6a4852.js → TableEditor.9584d010.js} +2 -2
- abstra_statics/dist/assets/Tables.ea01768b.js +2 -0
- abstra_statics/dist/assets/{TablesDiagram.811d464d.js → TablesDiagram.e6ce884d.js} +2 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.1a057f69.js +2 -0
- abstra_statics/dist/assets/Tasks.f57e239d.js +2 -0
- abstra_statics/dist/assets/{UploadOutlined.b601a592.js → UploadOutlined.68e6d0cf.js} +2 -2
- abstra_statics/dist/assets/{View.7a2ccc33.js → View.f549262c.js} +2 -2
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.8e0a328b.js +2 -0
- abstra_statics/dist/assets/{Watermark.40c8c47e.js → Watermark.37fe047e.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.82a3accf.js → WebEditor.8ff1601b.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.bc7a6646.js +2 -0
- abstra_statics/dist/assets/{ant-design.544de4a0.js → ant-design.876f2f8d.js} +2 -2
- abstra_statics/dist/assets/apiKey.1d723817.js +2 -0
- abstra_statics/dist/assets/asyncComputed.7b34952b.js +2 -0
- abstra_statics/dist/assets/{build.997fec15.js → build.71b8e04b.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.5dd0cb4f.js +2 -0
- abstra_statics/dist/assets/{console.54ab975c.js → console.6a1ae26d.js} +4 -4
- abstra_statics/dist/assets/constants.60cb557d.js +2 -0
- abstra_statics/dist/assets/contracts.generated.6e0d1816.js +2 -0
- abstra_statics/dist/assets/{cssMode.c1aa21d7.js → cssMode.6a4a4184.js} +2 -2
- abstra_statics/dist/assets/datetime.2d5b6900.js +2 -0
- abstra_statics/dist/assets/dayjs.0eae9c2d.js +2 -0
- abstra_statics/dist/assets/editor.776db77c.js +2 -0
- abstra_statics/dist/assets/editor.main.7f316986.js +2 -0
- abstra_statics/dist/assets/fetch.cbf466d2.js +2 -0
- abstra_statics/dist/assets/{folder.41d37eb7.js → folder.f5b64034.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.40778f3f.js → freemarker2.b87986e8.js} +2 -2
- abstra_statics/dist/assets/{handlebars.92d4ff2a.js → handlebars.cc213cd7.js} +2 -2
- abstra_statics/dist/assets/{html.b3c0c53a.js → html.77746bba.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.1212da49.js → htmlMode.db862c25.js} +2 -2
- abstra_statics/dist/assets/{index.5e22e010.js → index.00fb5b89.js} +2 -2
- abstra_statics/dist/assets/{index.36d8b30a.js → index.045179c5.js} +5 -5
- abstra_statics/dist/assets/{index.3ff1c0be.js → index.09f330ad.js} +3 -3
- abstra_statics/dist/assets/index.3404e7dd.js +2 -0
- abstra_statics/dist/assets/{index.9e0166fe.js → index.34fb5fc2.js} +2 -2
- abstra_statics/dist/assets/{index.d181a22c.js → index.d928bc3c.js} +2 -2
- abstra_statics/dist/assets/{index.a7b8e25e.js → index.ddb85c9b.js} +2 -2
- abstra_statics/dist/assets/{index.37c46161.js → index.e6c377d2.js} +2 -2
- abstra_statics/dist/assets/index.f04176ea.js +2 -0
- abstra_statics/dist/assets/{javascript.f9710043.js → javascript.54e5f980.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.16d00c0d.js → jsonMode.fc4496f7.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.992666e9.js → jwt-decode.esm.7fb8faf4.js} +8 -8
- abstra_statics/dist/assets/linters.910a9028.js +2 -0
- abstra_statics/dist/assets/{liquid.9a777e1a.js → liquid.2595976e.js} +3 -3
- abstra_statics/dist/assets/{member.6b2b3438.js → member.4e942dca.js} +2 -2
- abstra_statics/dist/assets/{metadata.cfad5458.js → metadata.bd2832f8.js} +2 -2
- abstra_statics/dist/assets/omniChatStore.83648f7c.js +8 -0
- abstra_statics/dist/assets/{organization.53636095.js → organization.0e5f192f.js} +2 -2
- abstra_statics/dist/assets/player.5f97b741.js +2 -0
- abstra_statics/dist/assets/{plotly.min.9b8bef5c.js → plotly.min.8ee43c36.js} +2 -2
- abstra_statics/dist/assets/polling.41905ad0.js +2 -0
- abstra_statics/dist/assets/{project.76f0af14.js → project.47800fcd.js} +2 -2
- abstra_statics/dist/assets/{python.ae8270c8.js → python.adb76dee.js} +2 -2
- abstra_statics/dist/assets/{razor.4f24e19e.js → razor.8c0f414a.js} +3 -3
- abstra_statics/dist/assets/{record.87ef3b68.js → record.5fbe6782.js} +2 -2
- abstra_statics/dist/assets/redirect.0e6a5558.js +2 -0
- abstra_statics/dist/assets/{repository.9d5310b6.js → repository.22769dca.js} +2 -2
- abstra_statics/dist/assets/{repository.af418855.js → repository.f466c79e.js} +2 -2
- abstra_statics/dist/assets/{router.1324a1a9.js → router.643f183e.js} +3 -3
- abstra_statics/dist/assets/router.71aa46ba.js +2 -0
- abstra_statics/dist/assets/string.d8337a2b.js +2 -0
- abstra_statics/dist/assets/{tables.c26107a1.js → tables.736ccb3d.js} +2 -2
- abstra_statics/dist/assets/tasksController.4a937a41.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.fc60753d.js → toggleHighContrast.15446005.js} +49 -49
- abstra_statics/dist/assets/{tsMode.a4b9b524.js → tsMode.6e8249dd.js} +2 -2
- abstra_statics/dist/assets/{typescript.ab90fd1d.js → typescript.2c2237b9.js} +3 -3
- abstra_statics/dist/assets/url.4e737b7f.js +2 -0
- abstra_statics/dist/assets/useCodebaseEvents.28978c2b.js +2 -0
- abstra_statics/dist/assets/userStore.f3109854.js +2 -0
- abstra_statics/dist/assets/uuid.0f9d5a19.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.8e4c22c3.js → vue-flow-background.b301f87f.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.64c5837f.js → vue-quill.esm-bundler.b4fd1194.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.4f0c433f.js → workspaceStore.de299d82.js} +2 -2
- abstra_statics/dist/assets/{xml.3541c340.js → xml.685038e1.js} +3 -3
- abstra_statics/dist/assets/{yaml.314312d8.js → yaml.1a2cf10b.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +13 -11
- abstra_statics/dist/player.html +9 -9
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.205eb76e.js +0 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js +0 -2
- abstra_statics/dist/assets/ApiKeys.7fefafb4.js +0 -2
- abstra_statics/dist/assets/App.c29df54f.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.efd9d3fa.js +0 -2
- abstra_statics/dist/assets/BaseLayout.b60c33b8.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.4e05b917.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.562a5007.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.1d09cfdd.js +0 -2
- abstra_statics/dist/assets/ContentLayout.7d5c9f09.js +0 -2
- abstra_statics/dist/assets/CrudView.c883bb05.css +0 -1
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.0555d923.js +0 -2
- abstra_statics/dist/assets/EnvVars.063644bb.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.d410fb9a.js +0 -2
- abstra_statics/dist/assets/Home.3bf2f131.js +0 -2
- abstra_statics/dist/assets/Home.42964d5b.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.6e72d482.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.ee72932a.js +0 -2
- abstra_statics/dist/assets/Login.0b618d09.js +0 -2
- abstra_statics/dist/assets/Logo.83b476a4.js +0 -2
- abstra_statics/dist/assets/Main.88719eb3.js +0 -2
- abstra_statics/dist/assets/Navbar.abf206e9.js +0 -2
- abstra_statics/dist/assets/NewEditor.5650f697.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.df2bdeb0.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.2ba5316d.js +0 -2
- abstra_statics/dist/assets/OmniChat.de828c54.js +0 -6
- abstra_statics/dist/assets/Organizations.3db82ab2.js +0 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.cbca4f9b.js +0 -2
- abstra_statics/dist/assets/ProjectLogin.46d5036b.js +0 -2
- abstra_statics/dist/assets/Sql.6961306b.js +0 -5
- abstra_statics/dist/assets/Steps.f820fb18.js +0 -2
- abstra_statics/dist/assets/Tables.198b84c5.js +0 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js +0 -2
- abstra_statics/dist/assets/Tasks.df69d20e.js +0 -2
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.424410a2.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.0f938200.js +0 -2
- abstra_statics/dist/assets/apiKey.95126643.js +0 -2
- abstra_statics/dist/assets/asyncComputed.1b787534.js +0 -2
- abstra_statics/dist/assets/colorHelpers.d4f3f275.js +0 -2
- abstra_statics/dist/assets/constants.36bf7d70.js +0 -2
- abstra_statics/dist/assets/datetime.adc0acc4.js +0 -2
- abstra_statics/dist/assets/dayjs.a6bd0ee0.js +0 -2
- abstra_statics/dist/assets/editor.0ce52658.js +0 -2
- abstra_statics/dist/assets/editor.main.353e9a8f.js +0 -2
- abstra_statics/dist/assets/fetch.83d89bdc.js +0 -2
- abstra_statics/dist/assets/index.3d2a7b6d.js +0 -2
- abstra_statics/dist/assets/index.3e7471f4.js +0 -2
- abstra_statics/dist/assets/linters.3c5f0c83.js +0 -2
- abstra_statics/dist/assets/omniChatStore.2b85c342.js +0 -8
- abstra_statics/dist/assets/player.5b7eaa25.js +0 -2
- abstra_statics/dist/assets/polling.88a266b3.js +0 -2
- abstra_statics/dist/assets/redirect.2fa4f8cf.js +0 -2
- abstra_statics/dist/assets/router.55c0ff56.js +0 -2
- abstra_statics/dist/assets/string.f6a7565f.js +0 -2
- abstra_statics/dist/assets/tasksController.22584849.js +0 -4
- abstra_statics/dist/assets/url.f490879d.js +0 -2
- abstra_statics/dist/assets/userStore.9e7a540a.js +0 -2
- abstra_statics/dist/assets/uuid.9161765c.js +0 -2
- {abstra-3.23.8.dist-info → abstra-3.23.10.dist-info}/WHEEL +0 -0
- {abstra-3.23.8.dist-info → abstra-3.23.10.dist-info}/entry_points.txt +0 -0
- {abstra-3.23.8.dist-info → abstra-3.23.10.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as s}from"./workspaceStore.4f0c433f.js";import{d as i,k as l,a5 as f,f as a,b as n,u as o,o as u,g as d,A as c,da as b}from"./jwt-decode.esm.992666e9.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.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]="bf1bfb61-a85e-4f66-824d-3b3f7becedda",e._sentryDebugIdIdentifier="sentry-dbid-bf1bfb61-a85e-4f66-824d-3b3f7becedda")}catch{}})();const g=i({__name:"OidcLoginCallback",setup(e){return l(async()=>{await new s().loginCallback()}),(t,r)=>(u(),f("div",null,[a(o(c),null,{default:n(()=>[d("You're authenticated")]),_:1}),a(o(b),null,{default:n(()=>[d(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{g as default};
|
|
2
|
-
//# sourceMappingURL=OidcLoginCallback.df2bdeb0.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as s}from"./workspaceStore.4f0c433f.js";import{d as l,k as c,a5 as i,f as o,b as a,u as d,o as f,g as n,A as u,da as p}from"./jwt-decode.esm.992666e9.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.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]="f2e2f734-b4d4-4558-9c4f-37fcddfc6d7c",e._sentryDebugIdIdentifier="sentry-dbid-f2e2f734-b4d4-4558-9c4f-37fcddfc6d7c")}catch{}})();const g=l({__name:"OidcLogoutCallback",setup(e){return c(async()=>{await new s().logoutCallback()}),(t,r)=>(f(),i("div",null,[o(d(u),null,{default:a(()=>[n("You're authenticated")]),_:1}),o(d(p),null,{default:a(()=>[n(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{g as default};
|
|
2
|
-
//# sourceMappingURL=OidcLogoutCallback.2ba5316d.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{d as x,am as h,c as p,o as a,a5 as s,a7 as P,h as A,e6 as D,e as r,r as I,k as l1,aq as n1,a as _,b as i,f as u,u as t,aV as F,bR as B,H as G,bP as i1,bx as u1,ec as W,bw as Q,da as O,g as M,ed as z,ep as J,ej as d1,aR as j,cI as c1,de as S,_ as q,eF as p1,cE as v1,eG as N,ef as g1,at as U,w as f1,j as m1,m as h1,T as R,d1 as y1,S as A1,ea as X,aY as w1}from"./jwt-decode.esm.992666e9.js";import{_ as $1}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js";import{t as _1}from"./ant-design.544de4a0.js";import{G as k1}from"./PhClockCounterClockwise.vue.cd77fd26.js";import{u as K}from"./omniChatStore.2b85c342.js";import{L as t1}from"./LoadingOutlined.ee72932a.js";import{A as Z1}from"./index.9e0166fe.js";import{C as H1}from"./Card.957a87b2.js";import{C as M1,A as C1}from"./router.1324a1a9.js";import{A as L1}from"./index.3ff1c0be.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[o]="64ab00eb-96a5-4d63-a5f7-dd45a7f145f8",f._sentryDebugIdIdentifier="sentry-dbid-64ab00eb-96a5-4d63-a5f7-dd45a7f145f8")}catch{}})();const b1=["width","height","fill","transform"],S1={key:0},V1=r("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"},null,-1),I1=[V1],x1={key:1},z1=r("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"},null,-1),B1=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),E1=[z1,B1],T1={key:2},P1=r("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"},null,-1),D1=[P1],O1={key:3},j1=r("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"},null,-1),N1=[j1],R1={key:4},F1=r("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"},null,-1),W1=[F1],q1={key:5},G1=r("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"},null,-1),U1=[G1],K1={name:"PhBroom"},Y1=x({...K1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,n=h("weight","regular"),w=h("size","1em"),y=h("color","currentColor"),g=h("mirrored",!1),l=p(()=>{var e;return(e=o.weight)!=null?e:n}),c=p(()=>{var e;return(e=o.size)!=null?e:w}),$=p(()=>{var e;return(e=o.color)!=null?e:y}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[P(e.$slots,"default"),l.value==="bold"?(a(),s("g",S1,I1)):l.value==="duotone"?(a(),s("g",x1,E1)):l.value==="fill"?(a(),s("g",T1,D1)):l.value==="light"?(a(),s("g",O1,N1)):l.value==="regular"?(a(),s("g",R1,W1)):l.value==="thin"?(a(),s("g",q1,U1)):A("",!0)],16,b1))}}),Q1=["width","height","fill","transform"],J1={key:0},X1=r("path",{d:"M140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM100,72a16,16,0,1,0,16,16A16,16,0,0,0,100,72Zm120,72a91.84,91.84,0,0,1-2.34,20.64L236.81,173a12,12,0,0,1-9.62,22l-18-7.85a92,92,0,0,1-162.46,0l-18,7.85a12,12,0,1,1-9.62-22l19.15-8.36A91.84,91.84,0,0,1,36,144v-4H16a12,12,0,0,1,0-24H36v-4a91.84,91.84,0,0,1,2.34-20.64L19.19,83a12,12,0,0,1,9.62-22l18,7.85a92,92,0,0,1,162.46,0l18-7.85a12,12,0,1,1,9.62,22l-19.15,8.36A91.84,91.84,0,0,1,220,112v4h20a12,12,0,0,1,0,24H220ZM60,116H196v-4a68,68,0,0,0-136,0Zm56,94.92V140H60v4A68.1,68.1,0,0,0,116,210.92ZM196,144v-4H140v70.92A68.1,68.1,0,0,0,196,144Z"},null,-1),e0=[X1],a0={key:1},l0=r("path",{d:"M208,128v16a80,80,0,0,1-160,0V128Z",opacity:"0.2"},null,-1),t0=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),o0=[l0,t0],s0={key:2},r0=r("path",{d:"M168,92a12,12,0,1,1-12-12A12,12,0,0,1,168,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216Zm-80,0a8,8,0,0,0-16,0v64a8,8,0,0,0,16,0Zm64-32a72,72,0,0,0-144,0v8H200Z"},null,-1),n0=[r0],i0={key:3},u0=r("path",{d:"M146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM100,82a10,10,0,1,0,10,10A10,10,0,0,0,100,82Zm146,46a6,6,0,0,1-6,6H214v10a85.88,85.88,0,0,1-3.45,24.08L234.4,178.5a6,6,0,0,1-4.8,11l-23.23-10.15a86,86,0,0,1-156.74,0L26.4,189.5a6,6,0,1,1-4.8-11l23.85-10.42A85.88,85.88,0,0,1,42,144V134H16a6,6,0,0,1,0-12H42V112a85.88,85.88,0,0,1,3.45-24.08L21.6,77.5a6,6,0,0,1,4.8-11L49.63,76.65a86,86,0,0,1,156.74,0L229.6,66.5a6,6,0,1,1,4.8,11L210.55,87.92A85.88,85.88,0,0,1,214,112v10h26A6,6,0,0,1,246,128ZM54,122H202V112a74,74,0,0,0-148,0Zm68,95.74V134H54v10A74.09,74.09,0,0,0,122,217.74ZM202,134H134v83.74A74.09,74.09,0,0,0,202,144Z"},null,-1),d0=[u0],c0={key:4},p0=r("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"},null,-1),v0=[p0],g0={key:5},f0=r("path",{d:"M148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92Zm-48-8a8,8,0,1,0,8,8A8,8,0,0,0,100,84Zm144,44a4,4,0,0,1-4,4H212v12a83.64,83.64,0,0,1-3.87,25.2l25.47,11.13A4,4,0,0,1,232,188a4.09,4.09,0,0,1-1.6-.33l-25-10.95a84,84,0,0,1-154.72,0l-25,10.95A4.09,4.09,0,0,1,24,188a4,4,0,0,1-1.6-7.67L47.87,169.2A83.64,83.64,0,0,1,44,144V132H16a4,4,0,0,1,0-8H44V112a83.64,83.64,0,0,1,3.87-25.2L22.4,75.67a4,4,0,0,1,3.2-7.34l25,11a84,84,0,0,1,154.72,0l25-11a4,4,0,1,1,3.2,7.34L208.13,86.8A83.64,83.64,0,0,1,212,112v12h28A4,4,0,0,1,244,128ZM52,124H204V112a76,76,0,0,0-152,0Zm72,95.89V132H52v12A76.09,76.09,0,0,0,124,219.89ZM204,132H132v87.89A76.09,76.09,0,0,0,204,144Z"},null,-1),m0=[f0],h0={name:"PhBug"},y0=x({...h0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,n=h("weight","regular"),w=h("size","1em"),y=h("color","currentColor"),g=h("mirrored",!1),l=p(()=>{var e;return(e=o.weight)!=null?e:n}),c=p(()=>{var e;return(e=o.size)!=null?e:w}),$=p(()=>{var e;return(e=o.color)!=null?e:y}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[P(e.$slots,"default"),l.value==="bold"?(a(),s("g",J1,e0)):l.value==="duotone"?(a(),s("g",a0,o0)):l.value==="fill"?(a(),s("g",s0,n0)):l.value==="light"?(a(),s("g",i0,d0)):l.value==="regular"?(a(),s("g",c0,v0)):l.value==="thin"?(a(),s("g",g0,m0)):A("",!0)],16,Q1))}}),A0=["width","height","fill","transform"],w0={key:0},$0=r("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"},null,-1),_0=[$0],k0={key:1},Z0=r("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"},null,-1),H0=r("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"},null,-1),M0=[Z0,H0],C0={key:2},L0=r("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"},null,-1),b0=[L0],S0={key:3},V0=r("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"},null,-1),I0=[V0],x0={key:4},z0=r("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"},null,-1),B0=[z0],E0={key:5},T0=r("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"},null,-1),P0=[T0],D0={name:"PhCaretDown"},O0=x({...D0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,n=h("weight","regular"),w=h("size","1em"),y=h("color","currentColor"),g=h("mirrored",!1),l=p(()=>{var e;return(e=o.weight)!=null?e:n}),c=p(()=>{var e;return(e=o.size)!=null?e:w}),$=p(()=>{var e;return(e=o.color)!=null?e:y}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[P(e.$slots,"default"),l.value==="bold"?(a(),s("g",w0,_0)):l.value==="duotone"?(a(),s("g",k0,M0)):l.value==="fill"?(a(),s("g",C0,b0)):l.value==="light"?(a(),s("g",S0,I0)):l.value==="regular"?(a(),s("g",x0,B0)):l.value==="thin"?(a(),s("g",E0,P0)):A("",!0)],16,A0))}}),j0=["width","height","fill","transform"],N0={key:0},R0=r("path",{d:"M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z"},null,-1),F0=[R0],W0={key:1},q0=r("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),G0=r("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),U0=[q0,G0],K0={key:2},Y0=r("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"},null,-1),Q0=[Y0],J0={key:3},X0=r("path",{d:"M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),ee=[X0],ae={key:4},le=r("path",{d:"M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),te=[le],oe={key:5},se=r("path",{d:"M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),re=[se],ne={name:"PhQuestion"},e1=x({...ne,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,n=h("weight","regular"),w=h("size","1em"),y=h("color","currentColor"),g=h("mirrored",!1),l=p(()=>{var e;return(e=o.weight)!=null?e:n}),c=p(()=>{var e;return(e=o.size)!=null?e:w}),$=p(()=>{var e;return(e=o.color)!=null?e:y}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[P(e.$slots,"default"),l.value==="bold"?(a(),s("g",N0,F0)):l.value==="duotone"?(a(),s("g",W0,U0)):l.value==="fill"?(a(),s("g",K0,Q0)):l.value==="light"?(a(),s("g",J0,ee)):l.value==="regular"?(a(),s("g",ae,te)):l.value==="thin"?(a(),s("g",oe,re)):A("",!0)],16,j0))}}),ie=["width","height","fill","transform"],ue={key:0},de=r("path",{d:"M200,36H56A20,20,0,0,0,36,56V200a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,160H60V60H196Z"},null,-1),ce=[de],pe={key:1},ve=r("path",{d:"M208,56V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z",opacity:"0.2"},null,-1),ge=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),fe=[ve,ge],me={key:2},he=r("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z"},null,-1),ye=[he],Ae={key:3},we=r("path",{d:"M200,42H56A14,14,0,0,0,42,56V200a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,158a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H200a2,2,0,0,1,2,2Z"},null,-1),$e=[we],_e={key:4},ke=r("path",{d:"M200,40H56A16,16,0,0,0,40,56V200a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,160H56V56H200V200Z"},null,-1),Ze=[ke],He={key:5},Me=r("path",{d:"M200,44H56A12,12,0,0,0,44,56V200a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,156a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4Z"},null,-1),Ce=[Me],Le={name:"PhStop"},be=x({...Le,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,n=h("weight","regular"),w=h("size","1em"),y=h("color","currentColor"),g=h("mirrored",!1),l=p(()=>{var e;return(e=o.weight)!=null?e:n}),c=p(()=>{var e;return(e=o.size)!=null?e:w}),$=p(()=>{var e;return(e=o.color)!=null?e:y}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[P(e.$slots,"default"),l.value==="bold"?(a(),s("g",ue,ce)):l.value==="duotone"?(a(),s("g",pe,fe)):l.value==="fill"?(a(),s("g",me,ye)):l.value==="light"?(a(),s("g",Ae,$e)):l.value==="regular"?(a(),s("g",_e,Ze)):l.value==="thin"?(a(),s("g",He,Ce)):A("",!0)],16,ie))}}),Se=["width","height","fill","transform"],Ve={key:0},Ie=r("path",{d:"M244,56v64a12,12,0,0,1-24,0V85l-75.51,75.52a12,12,0,0,1-17,0L96,129,32.49,192.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0L136,135l67-67H168a12,12,0,0,1,0-24h64A12,12,0,0,1,244,56Z"},null,-1),xe=[Ie],ze={key:1},Be=r("path",{d:"M232,56v64L168,56Z",opacity:"0.2"},null,-1),Ee=r("path",{d:"M232,48H168a8,8,0,0,0-5.66,13.66L188.69,88,136,140.69l-34.34-34.35a8,8,0,0,0-11.32,0l-72,72a8,8,0,0,0,11.32,11.32L96,123.31l34.34,34.35a8,8,0,0,0,11.32,0L200,99.31l26.34,26.35A8,8,0,0,0,240,120V56A8,8,0,0,0,232,48Zm-8,52.69L187.31,64H224Z"},null,-1),Te=[Be,Ee],Pe={key:2},De=r("path",{d:"M240,56v64a8,8,0,0,1-13.66,5.66L200,99.31l-58.34,58.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,188.69,88,162.34,61.66A8,8,0,0,1,168,48h64A8,8,0,0,1,240,56Z"},null,-1),Oe=[De],je={key:3},Ne=r("path",{d:"M238,56v64a6,6,0,0,1-12,0V70.48l-85.76,85.76a6,6,0,0,1-8.48,0L96,120.49,28.24,188.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0L136,143.51,217.52,62H168a6,6,0,0,1,0-12h64A6,6,0,0,1,238,56Z"},null,-1),Re=[Ne],Fe={key:4},We=r("path",{d:"M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"},null,-1),qe=[We],Ge={key:5},Ue=r("path",{d:"M236,56v64a4,4,0,0,1-8,0V65.66l-89.17,89.17a4,4,0,0,1-5.66,0L96,117.66,26.83,186.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0L136,146.34,222.34,60H168a4,4,0,0,1,0-8h64A4,4,0,0,1,236,56Z"},null,-1),Ke=[Ue],Ye={name:"PhTrendUp"},Qe=x({...Ye,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(f){const o=f,n=h("weight","regular"),w=h("size","1em"),y=h("color","currentColor"),g=h("mirrored",!1),l=p(()=>{var e;return(e=o.weight)!=null?e:n}),c=p(()=>{var e;return(e=o.size)!=null?e:w}),$=p(()=>{var e;return(e=o.color)!=null?e:y}),v=p(()=>o.mirrored!==void 0?o.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(e,k)=>(a(),s("svg",D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:c.value,height:c.value,fill:$.value,transform:v.value},e.$attrs),[P(e.$slots,"default"),l.value==="bold"?(a(),s("g",Ve,xe)):l.value==="duotone"?(a(),s("g",ze,Te)):l.value==="fill"?(a(),s("g",Pe,Oe)):l.value==="light"?(a(),s("g",je,Re)):l.value==="regular"?(a(),s("g",Fe,qe)):l.value==="thin"?(a(),s("g",Ge,Ke)):A("",!0)],16,Se))}}),Je=x({__name:"OmniChatHeader",props:{controller:{},hideClose:{type:Boolean}},setup(f){const o=f,n=K(),w=p(()=>o.controller.isLoadingHistory()),y=p(()=>o.controller.shouldRenderLoadMoreHistory()),g=I(!1),l=I(null),c=C=>{o.controller.moveThreadFromHistoryToRecents(C),g.value=!1},$=C=>{o.controller.deleteThread(C),g.value=!1},v=async C=>{C.stopPropagation(),await o.controller.loadMoreHistory(),g.value=!0},e=async()=>{await o.controller.abort(),await o.controller.setupThread(),o.controller.clearLogService()},k=()=>{n.isOpen=!1},E=C=>{g.value&&l.value&&!l.value.contains(C.target)&&(g.value=!1)};return l1(()=>{document.addEventListener("click",E)}),n1(()=>{document.removeEventListener("click",E)}),(C,L)=>(a(),_(t(S),{class:"upper",justify:"space-between",gap:"small",align:"center"},{default:i(()=>[u(t(S),{gap:"2",align:"center"},{default:i(()=>[u(t(F),{placement:"bottom",title:"Clear messages"},{default:i(()=>[u(t(B),{type:"text",icon:G(t(Y1)),onClick:e},null,8,["icon"])]),_:1}),r("div",{ref_key:"historyDropdownRef",ref:l},[u(t(i1),{open:g.value},{overlay:i(()=>[u(t(u1),{style:{"max-height":"500px",overflow:"scroll","scrollbar-width":"none","-ms-overflow-style":"none"}},{default:i(()=>[(a(!0),s(j,null,W(C.controller.pastThreads,m=>(a(),_(t(Q),{key:m.threadId,onClick:b=>c(m.threadId)},{default:i(()=>[u(t(O),null,{default:i(()=>[M(z(m.title),1)]),_:2},1024),u(t(J),{size:"16",class:"close-icon",onClick:d1(b=>$(m.threadId),["stop"])},null,8,["onClick"])]),_:2},1032,["onClick"]))),128)),y.value?(a(),_(t(c1),{key:0})):A("",!0),y.value?(a(),_(t(Q),{key:1,onClick:L[1]||(L[1]=m=>v(m))},{default:i(()=>[u(t(S),{gap:"small"},{default:i(()=>[M(" Load more "),w.value?(a(),_(t(t1),{key:0,size:"16"})):A("",!0)]),_:1})]),_:1})):A("",!0)]),_:1})]),default:i(()=>[u(t(F),{placement:"bottom",title:"History"},{default:i(()=>[u(t(B),{type:"text",icon:G(t(k1)),onClick:L[0]||(L[0]=m=>g.value=!0)},null,8,["icon"])]),_:1})]),_:1},8,["open"])],512),C.hideClose?A("",!0):(a(),_(t(B),{key:0,type:"text",icon:G(t(J)),onClick:k},null,8,["icon"]))]),_:1})]),_:1}))}});const Xe=q(Je,[["__scopeId","data-v-eb7f2204"]]),e2=x({__name:"OmniChatInput",props:{controller:{}},emits:["send-message","stop"],setup(f,{expose:o,emit:n}){const w=f,y=K(),g=I(null),l=I(""),c=p(()=>w.controller.isAnswering()),$=p(()=>w.controller.isProcessing()),v=p(()=>!$.value&&!c.value),e=p(()=>c.value?"Answering...":$.value?"Thinking...":""),k=async L=>{L&&(L.preventDefault(),L.stopPropagation()),l.value.trim()&&(!v.value||(n("send-message",l.value),l.value=""))},E=()=>{g.value&&(y.focusInput(),g.value.focus())},C=L=>{if(L.preventDefault(),L.shiftKey){document.execCommand("insertLineBreak");return}!v.value||k(L)};return o({focusInput:E}),(L,m)=>(a(),_(t(S),{class:"lower",vertical:"",justify:"space-between"},{default:i(()=>[u(t(v1),{ref_key:"inputRef",ref:g,value:l.value,"onUpdate:value":m[0]||(m[0]=b=>l.value=b),"auto-size":{minRows:2,maxRows:6},bordered:!1,placeholder:"Ask a question",onKeydown:m[1]||(m[1]=p1(b=>C(b),["enter"])),onFocus:m[2]||(m[2]=b=>t(y).focusInput()),onBlur:m[3]||(m[3]=b=>t(y).blurInput())},null,8,["value"]),u(t(S),{justify:"space-between",class:"bottom-lower",gap:"small",align:"center"},{default:i(()=>[u(t(S),{gap:"small"},{default:i(()=>[u(t(O),{type:"secondary",class:"info"},{default:i(()=>[v.value?A("",!0):(a(),_(t(t1),{key:0,size:"16"})),M(" "+z(e.value),1)]),_:1})]),_:1}),u(t(S),{gap:"small",align:"center"},{default:i(()=>[A("",!0),v.value?A("",!0):(a(),_(t(B),{key:1,size:"small",loading:w.controller.loadingAbort.value,style:{display:"flex"},onClick:m[4]||(m[4]=b=>n("stop"))},{default:i(()=>[u(t(S),{gap:"4",align:"center"},{default:i(()=>[M(" Stop "),u(t(be),{size:12})]),_:1})]),_:1},8,["loading"])),u(t(B),{size:"small",type:"primary",disabled:!v.value,onClick:m[5]||(m[5]=b=>k())},{default:i(()=>[M("Send")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1}))}});const a2=q(e2,[["__scopeId","data-v-b4b97b0d"]]),l2=["onClick"],t2={class:"icon"},o2={class:"title"},s2=x({__name:"SmartSuggestions",props:{showFirstMessageSuggestions:{type:Boolean},showErrorFixSuggestions:{type:Boolean},showWorkflowSuggestions:{type:Boolean}},emits:["send-suggested-message"],setup(f,{emit:o}){const n=f,w=[{title:N.translate("i18n_auto_suggest_fix_chat_message"),icon:y0}],y=[{title:N.translate("i18n_explain_code_chat_message"),icon:e1},{title:N.translate("i18n_improve_code_chat_message"),icon:Qe}],g=[{title:N.translate("i18n_explain_workflow_chat_message"),icon:e1}],l=p(()=>{const c=[];return n.showErrorFixSuggestions&&c.push(...w),n.showFirstMessageSuggestions&&c.push(...y),n.showWorkflowSuggestions&&c.push(...g),c});return(c,$)=>(a(),_(t(S),{class:"suggestions-container",gap:"middle",justify:"center",vertical:""},{default:i(()=>[(a(!0),s(j,null,W(l.value,v=>(a(),s("div",{key:v.title,class:"suggestion",onClick:e=>o("send-suggested-message",v.title)},[r("div",t2,[(a(),_(g1(v.icon),{size:24}))]),r("div",o2,z(v.title),1)],8,l2))),128))]),_:1}))}});const r2=q(s2,[["__scopeId","data-v-08b28b34"]]),n2={key:0,class:"entry"},i2={class:"entry-owner"},u2={key:1,class:"entry"},d2={key:0,class:"entry-owner"},c2={key:2,class:"entry"},p2={class:"entry tool-response",style:{"margin-top":"12px"}},v2="Smart Chat",a1="You",g2=.98,f2=x({__name:"OmniChat",props:{aiChatRepository:{},environment:{},controller:{},stageEditorInfo:{},panesInfo:{},hideClose:{type:Boolean}},emits:["answer"],setup(f,{emit:o}){const n=f,w=K(),y=p(()=>w.isOpen),g=I(null),l=I(null),c=I(!0),$=I(!1),v=I({});function e(){const d={};for(const Z of n.controller.logService.logs)Z.type==="ai-tool-call-response"&&Z.toolCallId&&(d[Z.toolCallId]=Z.response);v.value=d}const k=()=>{c.value=!0,l.value&&(l.value.scrollTop=l.value.scrollHeight)},E=()=>{if(!l.value)return;const{scrollTop:d,scrollHeight:Z,clientHeight:V}=l.value;d+V>=Z*g2?(c.value=!0,$.value=!1):(c.value=!1,$.value=!0)},C=(d,Z)=>{d.disabled=!0,n.controller.send(n.panesInfo,Z),o("answer",Z)},L=()=>{!n.controller||(b(`My last execution failed. Here are the details:
|
|
2
|
-
+ ${JSON.stringify(n.controller.hasError,null,2)}
|
|
3
|
-
|
|
4
|
-
Please help me fix this error.`),n.controller.setError(null))},m=I(!1);n.controller.logService.listen(async d=>{(d.type==="ai-output"||d.type==="ai-input")&&(m.value=!1),(d.type==="ai-input"||c.value)&&(await U(),k()),d.type==="ai-tool-call-response"&&d.toolCallId&&(v.value[d.toolCallId]=d.response)}),f1(()=>n.stageEditorInfo,d=>{var Z;!d||(Z=n.stageEditorInfo)!=null&&Z.logService&&n.stageEditorInfo.logService.listen(async V=>{n.controller.logService.log(V),V.type==="stderr"&&(m.value=!0,await U(),k())})},{immediate:!0});const b=async d=>{if(!!n.controller){if(n.controller.setInput(d),!n.stageEditorInfo){await n.controller.send(n.panesInfo),k();return}await n.controller.send(n.panesInfo),k()}},o1=()=>{!n.controller||n.controller.abort()};l1(()=>{n.controller.init(),l.value&&l.value.addEventListener("scroll",E),U(k),e()}),m1(()=>{l.value&&l.value.removeEventListener("scroll",E)});const s1=d=>{if(d===0)return!1;const Z=n.controller.logService.logs[d],V=n.controller.logService.logs[d-1];return Z.type==="ai-output"?V.type==="ai-output"||V.type==="ai-tool-approval"||V.type==="ai-tool-call-response":!1};return(d,Z)=>{const V=h1("Markdown");return a(),s("div",{class:X(["container",{visible:y.value,console:d.environment.origin==="console"}]),justify:"center",align:"center"},[u(Xe,{controller:d.controller,"hide-close":d.hideClose},null,8,["controller","hide-close"]),u(t(S),{class:X(["content",{console:d.environment.origin==="console"}])},{default:i(()=>[r("div",{ref_key:"entriesContainer",ref:l,class:"scroll"},[(a(!0),s(j,null,W(d.controller.logService.logs,(H,Y)=>(a(),s(j,{key:Y},[H.type==="ai-input"?(a(),s("div",n2,[r("div",i2,[u(t(Z1),{size:20,shape:"square",class:"avatar"},{default:i(()=>{var T;return[M(z((T=a1[0])!=null?T:"Y"),1)]}),_:1}),u(t(O),{strong:""},{default:i(()=>[M(z(a1))]),_:1})]),(a(!0),s(j,null,W(H.log.split(`
|
|
5
|
-
`),(T,r1)=>(a(),_(t(R),{key:r1},{default:i(()=>[M(z(T),1)]),_:2},1024))),128))])):A("",!0),H.type==="ai-output"?(a(),s("div",u2,[s1(Y)?A("",!0):(a(),s("div",d2,[u($1,{size:"small","hide-text":""}),u(t(O),{strong:""},{default:i(()=>[M(z(v2))]),_:1})])),u(V,{source:H.log},null,8,["source"])])):A("",!0),H.type==="ai-tool-approval"?(a(),s("div",c2,[u(t(H1),{style:{padding:"0"},"body-style":{padding:"12px"}},{default:i(()=>[u(t(O),{strong:""},{default:i(()=>[M(z(H.description),1)]),_:2},1024),Object.keys(H.args).length?(a(),_(t(y1),{key:0,"tree-data":t(_1)(H.args),selectable:!1},null,8,["tree-data"])):A("",!0),H.needsApproval?(a(),_(t(S),{key:1,gap:"small",justify:"end",style:{"margin-top":"6px"}},{default:i(()=>[u(t(B),{size:"small",disabled:H.disabled,onClick:T=>C(H,"reject")},{default:i(()=>[M(" Reject ")]),_:2},1032,["disabled","onClick"]),u(t(B),{size:"small",type:"primary",disabled:H.disabled,onClick:T=>C(H,"approve")},{default:i(()=>[M(" Approve ")]),_:2},1032,["disabled","onClick"])]),_:2},1024)):A("",!0)]),_:2},1024),r("div",p2,[u(t(M1),{bordered:!1,style:{"background-color":"transparent",width:"100%"}},{default:i(()=>[u(t(C1),{key:"execution-context"},{header:i(()=>[u(t(S),{justify:"space-between"},{default:i(()=>[u(t(R),{style:{"font-size":"12px","margin-top":"-6px"}},{default:i(()=>[M("AI Answer")]),_:1})]),_:1})]),default:i(()=>[H.toolCallId&&v.value[H.toolCallId]?(a(),_(t(R),{key:0,style:{"font-size":"12px"}},{default:i(()=>[M(z(v.value[H.toolCallId]),1)]),_:2},1024)):(a(),_(t(S),{key:1,gap:"small"},{default:i(()=>[u(t(A1),{size:"small"}),u(t(R),{style:{"font-size":"12px",color:"#888"}},{default:i(()=>[M(" Waiting for tool response... ")]),_:1})]),_:1}))]),_:2},1024)]),_:2},1024)])])):A("",!0)],64))),128))],512)]),_:1},8,["class"]),d.controller.logService.hasAiLogs()?A("",!0):(a(),_(r2,{key:0,"show-first-message-suggestions":!!d.stageEditorInfo,"show-error-fix-suggestions":!!d.stageEditorInfo&&m.value,"show-workflow-suggestions":!d.stageEditorInfo&&d.environment.origin==="editor",onSendSuggestedMessage:b},null,8,["show-first-message-suggestions","show-error-fix-suggestions","show-workflow-suggestions"])),$.value?(a(),_(t(F),{key:1,placement:"left",title:"Scroll to bottom"},{default:i(()=>[u(t(B),{class:"scroll-to-bottom",onClick:k},{default:i(()=>[u(t(O0),{size:"18"})]),_:1})]),_:1})):A("",!0),u(w1,null,{default:i(()=>[d.controller.hasError?(a(),_(t(L1),{key:0,"show-icon":"",closable:"",type:"error",align:"start",style:{width:"calc(100% - 32px)"},onClose:Z[0]||(Z[0]=H=>d.controller.setError(null))},{message:i(()=>[M("An error happened")]),action:i(()=>[u(t(F),{title:d.controller.isIdle()?"":"Wait or stop the response first"},{default:i(()=>[u(t(B),{type:"primary",size:"small",disabled:!d.controller.isIdle(),onClick:L},{default:i(()=>[M(" Fix with AI ")]),_:1},8,["disabled"])]),_:1},8,["title"])]),_:1})):A("",!0)]),_:1}),u(a2,{ref_key:"omniChatInput",ref:g,controller:d.controller,onSendMessage:b,onStop:o1},null,8,["controller"])],2)}}});const M2=q(f2,[["__scopeId","data-v-c78dd21f"]]);export{y0 as G,be as I,M2 as O};
|
|
6
|
-
//# sourceMappingURL=OmniChat.de828c54.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N as k}from"./Navbar.abf206e9.js";import{B as N}from"./BaseLayout.b60c33b8.js";import{C as I}from"./ContentLayout.7d5c9f09.js";import{C as _}from"./CrudView.8fb84eac.js";import{a as O}from"./asyncComputed.1b787534.js";import{F as x}from"./PhArrowSquareOut.vue.ecfa9cb2.js";import{G as R}from"./PhPencil.vue.ae2943da.js";import{d as M,e5 as h,r as B,c as D,a5 as F,f as o,b as i,u as s,aR as V,o as f,a as $,cz as j,bJ as A,cy as E,h as G,M as L}from"./jwt-decode.esm.992666e9.js";import"./router.1324a1a9.js";import{a as m}from"./organization.53636095.js";import"./tables.c26107a1.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.205eb76e.js";import"./constants.36bf7d70.js";import"./PhChats.vue.dfda946c.js";import"./PhSignOut.vue.d00d3657.js";import"./index.3d2a7b6d.js";import"./index.9e0166fe.js";import"./omniChatStore.2b85c342.js";import"./record.87ef3b68.js";import"./uuid.9161765c.js";import"./PhCopySimple.vue.ecffb042.js";import"./PhBookBookmark.vue.f8f803d9.js";import"./PhSparkle.vue.8a94f3a0.js";import"./index.5e22e010.js";import"./Breadcrumb.d0cc2c91.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.0555d923.js";import"./url.f490879d.js";import"./PhDotsThreeVertical.vue.2db678ef.js";import"./index.d181a22c.js";import"./string.f6a7565f.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[l]="3cc6d830-310d-495b-afc4-12763fc90b93",r._sentryDebugIdIdentifier="sentry-dbid-3cc6d830-310d-495b-afc4-12763fc90b93")}catch{}})();const bt=M({__name:"Organizations",setup(r){const l=[{label:"My organizations",path:"/organizations"}],u=[{key:"name",label:"Organization Name"}],g=h(),{loading:y,result:b,refetch:v}=O(()=>m.list()),p=({key:e})=>{g.push({name:"organization",params:{organizationId:e}})},n=B({state:"idle"});function z(e){n.value={state:"renaming",organizationId:e.id,newName:e.name}}async function c(e){if(n.value.state==="renaming"&&e){const{organizationId:t,newName:a}=n.value;await m.rename(t,a),v()}n.value={state:"idle"}}const w=async e=>{const t=await m.create(e.name);p({key:t.id})},C=D(()=>{var e,t;return{columns:[{title:"Organization Name",align:"left"},{title:"Path"},{title:"",align:"right"}],rows:(t=(e=b.value)==null?void 0:e.map(a=>{var d;return{key:a.id,cells:[{type:"link",text:a.name,to:`/organizations/${encodeURIComponent(a.id)}`},{type:"text",text:(d=a.id)!=null?d:null},{type:"actions",actions:[{icon:x,label:"Go to projects",onClick:p},{icon:R,label:"Rename",onClick:()=>z(a)}]}]}}))!=null?t:[]}});return(e,t)=>(f(),F(V,null,[o(N,null,{navbar:i(()=>[o(k,{breadcrumb:l})]),content:i(()=>[o(I,null,{default:i(()=>[o(_,{"entity-name":"organization",loading:s(y),title:"My organizations",description:"An organization is your company\u2019s account. Manage editors, projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:C.value,fields:u,create:w},null,8,["loading","table"])]),_:1})]),_:1}),o(s(L),{open:n.value.state==="renaming",title:"Rename organization",onCancel:t[1]||(t[1]=a=>c(!1)),onOk:t[2]||(t[2]=a=>c(!0))},{default:i(()=>[n.value.state==="renaming"?(f(),$(s(E),{key:0,layout:"vertical"},{default:i(()=>[o(s(j),{label:"New name"},{default:i(()=>[o(s(A),{value:n.value.newName,"onUpdate:value":t[0]||(t[0]=a=>n.value.newName=a)},null,8,["value"])]),_:1})]),_:1})):G("",!0)]),_:1},8,["open"])],64))}});export{bt as default};
|
|
2
|
-
//# sourceMappingURL=Organizations.3db82ab2.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as V,am as n,c as i,o as l,a5 as t,a7 as f,h,e6 as y,e as o}from"./jwt-decode.esm.992666e9.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="bd58ac6c-4613-4c5b-8edd-6f67ad14b3fb",r._sentryDebugIdIdentifier="sentry-dbid-bd58ac6c-4613-4c5b-8edd-6f67ad14b3fb")}catch{}})();const b=["width","height","fill","transform"],w={key:0},H=o("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"},null,-1),Z=[H],L={key:1},k=o("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),M=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),B=[k,M],D={key:2},S=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"},null,-1),I=[S],_={key:3},x=o("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"},null,-1),z=[x],A={key:4},C=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),N=[C],E={key:5},P=o("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"},null,-1),$=[P],j={name:"PhDownloadSimple"},W=V({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,s=n("weight","regular"),v=n("size","1em"),c=n("color","currentColor"),g=n("mirrored",!1),d=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:v}),p=i(()=>{var a;return(a=e.color)!=null?a:c}),m=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:m.value},a.$attrs),[f(a.$slots,"default"),d.value==="bold"?(l(),t("g",w,Z)):d.value==="duotone"?(l(),t("g",L,B)):d.value==="fill"?(l(),t("g",D,I)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",A,N)):d.value==="thin"?(l(),t("g",E,$)):h("",!0)],16,b))}});export{W as G};
|
|
2
|
-
//# sourceMappingURL=PhDownloadSimple.vue.cbca4f9b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js";import{B as m}from"./BaseLayout.b60c33b8.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.992666e9.js";import{u as B}from"./editor.0ce52658.js";import{A as I}from"./index.5e22e010.js";import"./Logo.83b476a4.js";import"./router.55c0ff56.js";import"./workspaceStore.4f0c433f.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.js";import"./linters.3c5f0c83.js";import"./asyncComputed.1b787534.js";import"./constants.36bf7d70.js";import"./index.d181a22c.js";import"./Breadcrumb.d0cc2c91.js";import"./index.9e0166fe.js";import"./index.3d2a7b6d.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]="c33206b5-00a6-4f68-9b04-75c33ed5b0a4",e._sentryDebugIdIdentifier="sentry-dbid-c33206b5-00a6-4f68-9b04-75c33ed5b0a4")}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.46d5036b.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{f as c,e7 as L,d as D,eb as N,O as $,L as _,r as f,em as B,k as P,a5 as V,b as m,u as i,aR as z,o as A,e as F,bR as S,g as O,de as h,cX as M,cL as C,_ as T}from"./jwt-decode.esm.992666e9.js";import{G}from"./PhDownloadSimple.vue.cbca4f9b.js";import{e as H}from"./toggleHighContrast.fc60753d.js";import"./router.1324a1a9.js";import{a as J}from"./project.76f0af14.js";import"./tables.c26107a1.js";import{_ as U}from"./TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js";import"./index.d181a22c.js";import"./record.87ef3b68.js";import"./string.f6a7565f.js";import"./Card.957a87b2.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]="3a4280b6-0c9b-4346-a3df-2edb18998e70",e._sentryDebugIdIdentifier="sentry-dbid-3a4280b6-0c9b-4346-a3df-2edb18998e70")}catch{}})();var X={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 W=X;function I(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(u){return Object.getOwnPropertyDescriptor(t,u).enumerable}))),r.forEach(function(u){Y(e,u,t[u])})}return e}function Y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var x=function(n,t){var r=I({},n,t.attrs);return c(L,I({},r,{icon:W}),null)};x.displayName="CaretRightOutlined";x.inheritAttrs=!1;const Z=x,Q=e=>{if(e==null)return"";const n=String(e);return n.includes(";")||n.includes(`
|
|
2
|
-
`)||n.includes('"')?`"${n.replace(/"/g,'""')}"`:n},K=e=>{let n=e.columns.map(Q).join(";")+`
|
|
3
|
-
`;e.rows.forEach(r=>{n+=r.map(Q).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 ee(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 te=D({__name:"Sql",setup(e){const t=N().params.projectId,r=new $(_.array(_.object({projectId:_.string(),lastQuery:_.string()})),"lastQueries"),u=f(null),d=f(""),v=f([]),y=f([]),j=f([]),b=f(!1),w=()=>{const a=r.get();if(!a)r.set([{projectId:t,lastQuery:d.value}]);else{const o=a.findIndex(l=>l.projectId===t);o===-1?a.push({projectId:t,lastQuery:d.value}):a[o].lastQuery=d.value,r.set(a)}},k=async()=>{b.value=!0;const a=await J.executeQuery(t,d.value,[]);if(w(),b.value=!1,!a)return;const{returns:o,errors:l}=a;j.value=l;for(const s of l)C.error({message:"SQL Execution Failed",description:s});l.length||C.success({message:"SQL Execution Succeeded"}),y.value=o.fields.map(s=>({title:s.name,key:s.name,dataIndex:s.name})),v.value=o.result.map((s,p)=>ee({key:`${p+1}`,...s}))},R=()=>{const a=y.value.map(g=>g.dataIndex),o=y.value.map(g=>g.title),l=v.value.map(g=>a.map(E=>g[E])),p=`data-${new Date().toISOString()}`;K({fileName:p,columns:o,rows:l})},q=B.exports.debounce(w,1e3);return P(()=>{var l;const a=H.create(u.value,{language:"sql",value:d.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});a.onDidChangeModelContent(()=>{d.value=a.getValue(),q()});const o=r.get();if(o){const s=(l=o.find(p=>p.projectId===t))==null?void 0:l.lastQuery;s&&(d.value=s,a.setValue(s))}}),(a,o)=>(A(),V(z,null,[c(U),c(i(h),{gap:"large",class:"sql-container",align:"center"},{default:m(()=>[F("div",{ref_key:"sqlEditor",ref:u,class:"sql-editor"},null,512),c(i(S),{type:"primary",loading:b.value,onClick:k},{icon:m(()=>[c(i(Z))]),default:m(()=>[O(" Run ")]),_:1},8,["loading"])]),_:1}),c(i(h),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:m(()=>[c(i(S),{disabled:!v.value.length,onClick:R},{default:m(()=>[c(i(h),{align:"center",gap:"small"},{default:m(()=>[O(" Export to CSV "),c(i(G))]),_:1})]),_:1},8,["disabled"])]),_:1}),c(i(M),{style:{width:"100%"},scroll:{x:100},"data-source":v.value,columns:y.value},null,8,["data-source","columns"])],64))}});const me=T(te,[["__scopeId","data-v-3629dc62"]]);export{me as default};
|
|
5
|
-
//# sourceMappingURL=Sql.6961306b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A as o}from"./index.a7b8e25e.js";import{d as a,c as r,a5 as p,f as d,u as f,ea as c,h as l,o as i,_ as u}from"./jwt-decode.esm.992666e9.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]="57a4d26c-a2f6-477e-8473-e413102e018e",e._sentryDebugIdIdentifier="sentry-dbid-57a4d26c-a2f6-477e-8473-e413102e018e")}catch{}})();const _=a({__name:"Steps",props:{stepsInfo:{},isPreview:{type:Boolean}},setup(e){const s=e,n=r(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(t,m)=>t.stepsInfo?(i(),p("nav",{key:0,class:c(["p-steps",{"full-screen":!t.isPreview}])},[d(f(o),{current:t.stepsInfo.current-1,items:n.value,responsive:!1},null,8,["current","items"])],2)):l("",!0)}});const v=u(_,[["__scopeId","data-v-58fdd395"]]);export{v as S};
|
|
2
|
-
//# sourceMappingURL=Steps.f820fb18.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as _}from"./CrudView.8fb84eac.js";import{o as l}from"./omniChatStore.2b85c342.js";import{a as k}from"./ant-design.544de4a0.js";import{a as C}from"./asyncComputed.1b787534.js";import{a as m}from"./string.f6a7565f.js";import{G as T}from"./PhPencil.vue.ae2943da.js";import{d as h,e5 as w,eb as I,c as x,k as E,aq as D,a5 as N,f as d,u as S,aR as v,o as A,eq as B}from"./jwt-decode.esm.992666e9.js";import"./router.1324a1a9.js";import{T as c}from"./tables.c26107a1.js";import{_ as R}from"./TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.0555d923.js";import"./constants.36bf7d70.js";import"./url.f490879d.js";import"./PhDotsThreeVertical.vue.2db678ef.js";import"./index.3d2a7b6d.js";import"./record.87ef3b68.js";import"./uuid.9161765c.js";import"./PhCopySimple.vue.ecffb042.js";import"./index.d181a22c.js";import"./Card.957a87b2.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="d68dbaa0-6551-4b4e-8ec1-7bf8f0d5d4c3",a._sentryDebugIdIdentifier="sentry-dbid-d68dbaa0-6551-4b4e-8ec1-7bf8f0d5d4c3")}catch{}})();const ae=h({__name:"Tables",setup(a){const o=w(),t=I().params.projectId,{loading:b,result:p,refetch:s}=C(()=>c.list(t)),f=async e=>{const r=await c.create(t,e.name);o.push({name:"tableEditor",params:{tableId:r.id,projectId:t}})},y=x(()=>{var e,r;return{columns:[{title:"Table Name"},{title:"",align:"right"}],rows:(r=(e=p.value)==null?void 0:e.map(n=>({key:n.id,cells:[{type:"link",text:n.name,to:{name:"tableEditor",params:{tableId:n.id,projectId:t}}},{type:"actions",actions:[{icon:T,label:"Edit Table",onClick({key:i}){o.push({name:"tableEditor",params:{tableId:i,projectId:t}})}},{icon:B,label:"Delete",dangerous:!0,async onClick(){!await k("Are you sure you want to delete this table and all its data?")||(await n.delete(t,n.id),s())}}]}]})))!=null?r:[]}}),g=[{key:"name",label:"Table name",type:"text",format:e=>m(e,!0),blur:e=>m(e,!1)}];return E(()=>{const e=l.subscribe("tableCreated",()=>{s()});D(()=>{l.unsubscribe(e)})}),(e,r)=>(A(),N(v,null,[d(R),d(_,{"entity-name":"table",loading:S(b),"docs-path":"tools/tables",title:"Tables",description:"Create and manage your database tables here.","empty-title":"No tables here yet",table:y.value,fields:g,"create-button-text":"Create Table",create:f},null,8,["loading","table"])],64))}});export{ae as default};
|
|
2
|
-
//# sourceMappingURL=Tables.198b84c5.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as b,e5 as f,eb as m,o as c,a as p,b as l,a5 as _,ec as g,f as y,e as v,ed as k,u as n,aR as w}from"./jwt-decode.esm.992666e9.js";import{A as I,T}from"./Card.957a87b2.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]="a69f690c-26e8-425b-9efb-8cfc012ec976",e._sentryDebugIdIdentifier="sentry-dbid-a69f690c-26e8-425b-9efb-8cfc012ec976")}catch{}})();const R=b({__name:"TablesTabs",setup(e){const a=f(),t=m(),u=String(t.name),d=t.params.projectId,r=[{label:"Tables list",value:"tables"},{label:"Diagram view",value:"tables-diagram"},{label:"Run SQL",value:"sql"}],i=o=>{a.push({name:String(o),params:{projectId:d}})};return(o,D)=>(c(),p(n(T),{"active-key":n(u),options:r,"onUpdate:activeKey":i},{default:l(()=>[(c(),_(w,null,g(r,s=>y(n(I),{key:s.value,name:s.value},{tab:l(()=>[v("span",null,k(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{R as _};
|
|
2
|
-
//# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as l,e7 as M,d as L,c as N,k as U,j as V,a5 as T,b as a,u as e,aR as I,o as u,cz as k,aB as z,cy as J,a as f,d1 as H,g as b,da as C,ef as X,d8 as q,ed as x,de as P,d4 as G,h as O,ej as Q,S as W,cX as Y,cH as Z,eb as K,A as ee}from"./jwt-decode.esm.992666e9.js";import{_ as te}from"./AbstraButton.vue_vue_type_script_setup_true_lang.205eb76e.js";import{I as ae}from"./PhCopy.vue.a63b48dd.js";import{T as le,R as ne}from"./tasksController.22584849.js";import{s as se}from"./metadata.cfad5458.js";import{t as re}from"./ant-design.544de4a0.js";import{c as oe}from"./string.f6a7565f.js";import{R as ie}from"./dayjs.a6bd0ee0.js";import{f as R,a as v}from"./router.1324a1a9.js";import{a as de,B as ue}from"./build.997fec15.js";import{a as ce}from"./project.76f0af14.js";import"./tables.c26107a1.js";import{a as pe}from"./asyncComputed.1b787534.js";import"./linters.3c5f0c83.js";import"./record.87ef3b68.js";import"./polling.88a266b3.js";import"./PhUserList.vue.3791cb59.js";import"./PhWebhooksLogo.vue.fe81fb65.js";import"./index.d181a22c.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="4ca883af-9b0b-4b22-ace8-052a7eb055f3",r._sentryDebugIdIdentifier="sentry-dbid-4ca883af-9b0b-4b22-ace8-052a7eb055f3")}catch{}})();var fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const ge=fe;function B(r){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},g=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(g=g.concat(Object.getOwnPropertySymbols(n).filter(function(p){return Object.getOwnPropertyDescriptor(n,p).enumerable}))),g.forEach(function(p){me(r,p,n[p])})}return r}function me(r,o,n){return o in r?Object.defineProperty(r,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[o]=n,r}var D=function(o,n){var g=B({},o,n.attrs);return l(M,B({},g,{icon:ge}),null)};D.displayName="SyncOutlined";D.inheritAttrs=!1;const ye=D,be={key:4,style:{"min-width":"100px"}},Se=L({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean}},setup(r,{expose:o}){const n=r,{setup:g,tearDown:p,state:s,getColumns:m,fetchTasks:S,clearAllTasks:w}=le({api:n.api,poll:!0,stages:n.stages}),A=t=>t.dataIndex===void 0&&"children"in t&&Array.isArray(t.children)&&t.children.length===0,h=N(()=>n.stages?s.tasks.map(t=>{var d,y,c;const i=(d=n.stages)==null?void 0:d.find(_=>_.id===t.targetStageId);return i?{...t,targetStageTitle:i.stageTitle,targetStageType:i.stageType,completedAt:(c=t.completed)!=null&&c.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!1}:{...t,targetStageTitle:null,targetStageType:null,completedAt:(y=t.completed)!=null&&y.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!0}}):s.tasks.map(t=>{var i;return{...t,deleted:!1,completedAt:(i=t.completed)!=null&&i.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString()}})),$=(t,i,d)=>{var _,j;const y=(_=t.current)!=null?_:1,c=(j=t.pageSize)!=null?j:10;s.pagination.currentIndex=y-1,s.pagination.pageSize=c,S()},F=(t,i)=>`/_editor/${t}/${i}`,E=t=>{typeof t=="object"?navigator.clipboard.writeText(JSON.stringify(t)):navigator.clipboard.writeText(String(t)),Z.success({content:"Copied to clipboard"})};return o({clearAllTasks:w}),U(()=>g()),V(()=>p()),(t,i)=>(u(),T(I,null,[l(e(J),{layout:"vertical"},{default:a(()=>[l(e(R),{gutter:10},{default:a(()=>[l(e(v),{span:10},{default:a(()=>[l(e(k),{label:"Stage"},{default:a(()=>[l(e(z),{value:e(s).filters.stage,"onUpdate:value":i[0]||(i[0]=d=>e(s).filters.stage=d),options:e(s).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),l(e(v),{span:6},{default:a(()=>[l(e(k),{label:"Status"},{default:a(()=>[l(e(z),{value:e(s).filters.status,"onUpdate:value":i[1]||(i[1]=d=>e(s).filters.status=d),options:e(s).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),l(e(v),{span:8},{default:a(()=>[l(e(k),{label:"Created at date"},{default:a(()=>[l(e(ie),{value:e(s).filters.dateRange,"onUpdate:value":i[2]||(i[2]=d=>e(s).filters.dateRange=d),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1}),l(e(Y),{columns:e(m)(),"data-source":h.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:e(s).pagination.currentIndex+1,pageSize:e(s).pagination.pageSize,total:e(s).pagination.totalCount},onChange:$},{bodyCell:a(({column:d,text:y,record:c})=>[d.key==="payload"?(u(),f(e(H),{key:0,"tree-data":e(re)(c.payload),selectable:!1},null,8,["tree-data"])):d.key==="targetStageTitle"?(u(),T(I,{key:1},[c.deleted?(u(),f(e(C),{key:0},{default:a(()=>[b("Not found")]),_:1})):(u(),f(e(P),{key:1,gap:"small",justify:"center"},{default:a(()=>[(u(),f(X(e(se)(c.targetStageType)),{size:"20"})),t.editor?(u(),f(e(q),{key:0,href:F(c.targetStageType,c.targetStageId)},{default:a(()=>[b(x(c.targetStageTitle),1)]),_:2},1032,["href"])):(u(),f(e(C),{key:1},{default:a(()=>[b(x(c.targetStageTitle),1)]),_:2},1024))]),_:2},1024))],64)):d.dataIndex==="status"?(u(),f(e(P),{key:2,gap:"small",justify:"center"},{default:a(()=>[l(e(G),null,{default:a(()=>[b(x(e(oe)(String(y)))+" ",1),y==="started"?(u(),f(e(ye),{key:0,spin:!0,style:{"margin-left":"4px"}})):O("",!0)]),_:2},1024)]),_:2},1024)):d.dataIndex==="actions"?(u(),f(te,{key:3,type:"text",size:"small",tooltip:"Copy Payload Data",onClick:Q(_=>E(c.payload),["stop"])},{default:a(()=>[l(e(ae))]),_:2},1032,["onClick"])):A(d)?(u(),T("div",be)):O("",!0)]),footer:a(()=>[l(e(R),{justify:"end",gutter:10},{default:a(()=>[l(e(v),null,{default:a(()=>[l(e(W),{size:"small"})]),_:1}),l(e(v),null,{default:a(()=>[l(e(C),null,{default:a(()=>[b(" auto updating ")]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),$e=L({__name:"Tasks",setup(r){const n=K().params.projectId,g=new ne(n),{result:p}=pe(async()=>{const S=(await de.list(n)).find(h=>h.latest);if(!S)return null;const[w,A]=await Promise.all([ue.get(S.id),ce.get(n)]);return{buildSpec:w,project:A}}),s=N(()=>!p.value||!p.value.buildSpec?null:p.value.buildSpec.runtimes.map(m=>({id:m.id,stageTitle:m.title,stageType:m.type})));return(m,S)=>(u(),T(I,null,[l(e(ee),null,{default:a(()=>[b("Tasks")]),_:1}),s.value?(u(),f(Se,{key:0,class:"tasks",api:e(g),stages:s.value},null,8,["api","stages"])):O("",!0)],64))}});export{$e as default};
|
|
2
|
-
//# sourceMappingURL=Tasks.df69d20e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var _=Object.defineProperty;var D=(i,e,t)=>e in i?_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>(D(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.1324a1a9.js";import{l as I}from"./fetch.83d89bdc.js";import{E as U}from"./record.87ef3b68.js";import{N as R,r as S,eq as F,d as P,k as $,aq as O,a5 as B,u as a,a as h,eg as L,b as r,h as p,aR as M,o as u,g as y,ed as b,f as m,cy as N,da as G,cE as z,cz as q,M as W}from"./jwt-decode.esm.992666e9.js";import{S as A}from"./SaveButton.ac38b361.js";import{C as Z}from"./CrudView.8fb84eac.js";import{a as H}from"./asyncComputed.1b787534.js";import{u as J}from"./polling.88a266b3.js";import{o as g}from"./omniChatStore.2b85c342.js";import{G as K}from"./PhPencil.vue.ae2943da.js";import{A as Q}from"./index.3ff1c0be.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="038c4ef5-dbf9-48f7-80d1-2e14681521c4",i._sentryDebugIdIdentifier="sentry-dbid-038c4ef5-dbf9-48f7-80d1-2e14681521c4")}catch{}})();class f{constructor(e){s(this,"data");s(this,"deleted");s(this,"wasDeleted",e=>this.deleted.value.includes(e));s(this,"wasUpdated",e=>this.data.hasChangesDeep(e));s(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});s(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});s(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});s(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});s(this,"commit",()=>{this.data=U.from(this.values()),this.deleted.value=[]});this.data=U.from(e),this.deleted=R([])}static from(e){const t=e.reduce((n,{name:d,value:v})=>(n[d]=v,n),{});return new f(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class X{constructor(){s(this,"urlPath","env-vars")}async list(e){return await C.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await C.patch(`projects/${e}/${this.urlPath}`,t)}}const T=new X;class ce{constructor(e){this.projectId=e}async get(){const e=await T.list(this.projectId);return f.from(e.map(t=>({...t,value:""})))}async update(e){await T.update(this.projectId,e)}}class he{constructor(e=I){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return f.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class w{constructor(e,t,n){s(this,"envVarRepo");s(this,"envVars");s(this,"state",S({type:"idle"}));s(this,"mode");s(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:n,value:d}=e;if(d.trim()!==d)throw new Error("Environment variable values cannot have leading or trailing whitespace.");if(!t.test(n))throw new Error(`Invalid key: \u2018${n}\u2019. A key must begin with a letter or an underscore, and may only include letters, numbers, and underscores.`)});s(this,"create",e=>{this.validate(e),this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});s(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});s(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});s(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});s(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});s(this,"pollingFunction",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});s(this,"columns",()=>[{title:"Key"},{title:"Value"},{title:""}]);s(this,"rows",()=>Object.entries(this.envVars.values()).map(([e])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:F,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:K,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));s(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});s(this,"hasChanges",()=>this.envVars.changes.length>0);s(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n}static async create(e,t){const n=await e.get();return new w(e,n,t)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const pe=P({__name:"View",props:{envVarRepository:{},mode:{},hideTitle:{type:Boolean}},setup(i){const e=i,{result:t,loading:n,refetch:d}=H(async()=>{const o=await w.create(e.envVarRepository,e.mode);return v(),o}),{startPolling:v,endPolling:j}=J({task:()=>{var o;return(o=t.value)==null?void 0:o.pollingFunction()},interval:2e3}),x={columns:[],rows:[]};return $(()=>{const o=g.subscribe("envVarCreated",()=>{d()}),l=g.subscribe("envVarEdited",()=>{d()});O(()=>{j(),g.unsubscribe(o),g.unsubscribe(l)})}),(o,l)=>{var V,k;return u(),B(M,null,[a(t)?(u(),h(Z,{key:0,"entity-name":"Env var",loading:a(n),title:e.hideTitle?"":"Environment Variables",description:e.hideTitle?"":"Set environment variables for your project.","empty-title":"No environment variables set",table:a(t).table()||x,"create-button-text":"Add Environment Variable",create:a(t).create,fields:a(t).creationFields||[],live:a(t).isLocalEditor},L({_:2},[(V=a(t))!=null&&V.isLocalEditor?{name:"secondary",fn:r(()=>[o.mode=="editor"?(u(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":r(()=>[y(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"0"}:void 0,(k=a(t))!=null&&k.isLocalEditor?{name:"extra",fn:r(()=>[m(a(Q),{"show-icon":"",style:{"margin-top":"20px"}},{message:r(()=>[y(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,a(t)?{name:"more",fn:r(()=>[o.mode=="console"?(u(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":r(()=>[y(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"2"}:void 0]),1032,["loading","title","description","table","create","fields","live"])):p("",!0),a(t)?(u(),h(a(W),{key:1,open:a(t).isUpdating,title:"Update value",onCancel:l[1]||(l[1]=c=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:l[2]||(l[2]=()=>{var c;return(c=a(t))==null?void 0:c.confirmUpdate()})},{default:r(()=>[a(t).state.value.type==="updating"?(u(),h(a(N),{key:0,layout:"vertical"},{default:r(()=>[m(a(q),null,{default:r(()=>[m(a(G),null,{default:r(()=>[y(b(a(t).state.value.name),1)]),_:1}),m(a(z),{value:a(t).state.value.value,"onUpdate:value":l[0]||(l[0]=c=>a(t).state.value.value=c)},null,8,["value"])]),_:1})]),_:1})):p("",!0)]),_:1},8,["open"])):p("",!0)],64)}}});export{ce as C,he as E,pe as _};
|
|
2
|
-
//# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.424410a2.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as k,r as B,k as I,o as n,a as u,b as f,f as A,g as P,ed as S,ea as C,eF as D,u as y,bR as N,eW as V,_ as W,eb as q,h as g,e as b,a5 as c,ec as v,ef as x,aR as w,I as E,J as F}from"./jwt-decode.esm.992666e9.js";import{S as L}from"./Steps.f820fb18.js";import{W as $}from"./PlayerConfigProvider.2acd3a77.js";import"./index.a7b8e25e.js";import"./colorHelpers.d4f3f275.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="ae83687a-6e53-46f3-832f-8de0b9e4fde8",o._sentryDebugIdIdentifier="sentry-dbid-ae83687a-6e53-46f3-832f-8de0b9e4fde8")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return I(()=>{l.value&&d.action.setElement(l.value)}),(r,i)=>(n(),u(y(V),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",r.disabled?"disabled":""]),loading:r.loading,disabled:r.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[P(S(r.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const R=W(K,[["__scopeId","data-v-aea27bb7"]]),J={class:"form"},M={class:"form-wrapper"},O={key:0,class:"buttons"},z=k({__name:"WidgetPreview",setup(o){const t=q(),d=B([]);function l(e){return E[e]||F[e]||null}function r(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(r).filter(Boolean):[r(e)]}function p(){return t.query.steps==="true"}function _(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const m=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),u($,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u(L,{key:0,class:"steps","steps-info":{current:1,total:3},"is-preview":""})):g("",!0),b("div",J,[b("div",M,[(n(!0),c(w,null,v(i(),(a,h)=>(n(),c("div",{key:h,class:"widget"},[(n(),u(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",O,[(n(!0),c(w,null,v(_(),a=>(n(),u(R,{key:a,"display-name":m(a).name,action:m(a)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const U=W(z,[["__scopeId","data-v-d3d01da6"]]);export{U as default};
|
|
2
|
-
//# sourceMappingURL=WidgetPreview.0f938200.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var o=(s,t,e)=>t in s?i(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var c=(s,t,e)=>(o(s,typeof t!="symbol"?t+"":t,e),e);import{h as r}from"./router.1324a1a9.js";import"./jwt-decode.esm.992666e9.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="e730cb3f-71f2-41bc-b24b-4ce1fd29453e",s._sentryDebugIdIdentifier="sentry-dbid-e730cb3f-71f2-41bc-b24b-4ce1fd29453e")}catch{}})();class u{constructor(){c(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return r.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await r.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return r.get(`projects/${t}/${this.urlPath}`)}}const a=new u;class n{constructor(t){this.dto=t}static async list(t){return(await a.list(t)).map(d=>new n(d))}static async create(t){const e=await a.create(t);return new n(e)}static async delete(t,e){await a.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A};
|
|
2
|
-
//# sourceMappingURL=apiKey.95126643.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N as c,c as l}from"./jwt-decode.esm.992666e9.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="73b270a0-e67a-447c-83a8-9f460f2a31a2",r._sentryDebugIdIdentifier="sentry-dbid-73b270a0-e67a-447c-83a8-9f460f2a31a2")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),o=t=>{e.value={loading:!1,result:null,error:t}},a=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(o));a();const s=l(()=>e.value.loading),u=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:s,result:u,error:d,refetch:a}};export{i as a};
|
|
2
|
-
//# sourceMappingURL=asyncComputed.1b787534.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.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]="cb73a42a-3bb3-4068-8445-7507b9c4df2e",t._sentryDebugIdIdentifier="sentry-dbid-cb73a42a-3bb3-4068-8445-7507b9c4df2e")}catch{}})();function p(t,e){const{r:n,g:r,b:o,usePound:s}=g(t);return w(u(n,-e),u(r,-e),u(o,-e),s)}function u(t,e){const n=t*(100+e*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(t){return t.startsWith("#")||t.match(/^(rgb|hsl)/)}const v=(t,e)=>y(p(y(t),e)),P=t=>k(t)?v(t,.1):p(t,.1);function k(t){const{r:e,g:n,b:r}=g(t);return e*.299+n*.587+r*.114<186}function g(t){let e=!1;t[0]=="#"&&(t=t.slice(1),e=!0);const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:e}}function y(t){const{r:e,g:n,b:r,usePound:o}=g(t);return w(255-e,255-n,255-r,o)}const w=(t,e,n,r=!0)=>(r?"#":"")+(n|e<<8|t<<16).toString(16).padStart(6,"0");function _(t){return new Promise((e,n)=>{const r=document.createElement("img");r.src=t,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:l}=r,a=document.createElement("canvas");a.width=s,a.height=l;const c=a.getContext("2d");if(!c)return e(!1);c.drawImage(r,0,0);const I=c.getImageData(0,0,a.width,a.height),{data:d}=I;let f,b,h,m;for(let i=0,x=d.length;i<x;i+=4)f=d[i],b=d[i+1],h=d[i+2],m=Math.floor((f+b+h)/3),o+=m;const D=Math.floor(o/(s*l));document.body.removeChild(r),e(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
|
|
2
|
-
//# sourceMappingURL=colorHelpers.d4f3f275.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.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]="0741c2be-7703-41d8-8dc5-9dc50f04e650",t._sentryDebugIdIdentifier="sentry-dbid-0741c2be-7703-41d8-8dc5-9dc50f04e650")}catch{}})();const s={HOMEPAGE:{}.VITE_HOMEPAGE_URL||"https://abstra.io",DOCS:{}.VITE_DOCS_URL||"https://abstra.io/docs",CLOUD:{}.VITE_CONSOLE_URL||"https://cloud.abstra.io",GITHUB:{}.VITE_GITHUB_URL||"https://github.com/abstra-app/abstra-lib"},n=t=>{if(!t)return s.DOCS;const e=t.startsWith("/")?t.slice(1):t;return`${s.DOCS}/${e}`};export{s as A,n as b};
|
|
2
|
-
//# sourceMappingURL=constants.36bf7d70.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.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]="2b6cad9a-b193-46f6-943b-048c7c1a6203",e._sentryDebugIdIdentifier="sentry-dbid-2b6cad9a-b193-46f6-943b-048c7c1a6203")}catch{}})();function n(e,t){return e.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...t})}export{n as g};
|
|
2
|
-
//# sourceMappingURL=datetime.adc0acc4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{X as c,dJ as i,dK as d}from"./jwt-decode.esm.992666e9.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]="5aef6a02-2823-4533-97e6-3c9078a1a512",e._sentryDebugIdIdentifier="sentry-dbid-5aef6a02-2823-4533-97e6-3c9078a1a512")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:a,YearPicker:f,TimePicker:m,QuarterPicker:r,RangePicker:o}=i(d),y=c(n,{WeekPicker:t,MonthPicker:a,YearPicker:f,RangePicker:o,TimePicker:m,QuarterPicker:r,install:e=>(e.component(n.name,n),e.component(o.name,o),e.component(a.name,a),e.component(t.name,t),e.component(r.name,r),e)});export{y as D,a as M,r as Q,o as R,t as W};
|
|
2
|
-
//# sourceMappingURL=dayjs.a6bd0ee0.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var x=Object.defineProperty;var W=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var i=(o,e,t)=>(W(o,typeof e!="symbol"?e+"":e,t),t);import{d as V,c as k,r as l,w as E,o as I,a as R,b,e as N,f as T,u as _,S as $,g as A,A as B,T as H,h as K,M as F,_ as J,i as S,j as z,k as Y,l as v,m as G,n as q,p as U,q as Q,s as X,t as Z,v as y,x as ee,y as te,z as oe,B as se,C as ne,P as ae,D as re,E as ie,F as ce,G as C,H as le,I as de,J as ue,K as pe}from"./jwt-decode.esm.992666e9.js";import{r as he,g as _e,a as me}from"./router.55c0ff56.js";import{u as fe,s as ge}from"./workspaceStore.4f0c433f.js";import{A as ve}from"./linters.3c5f0c83.js";import{A as ye}from"./constants.36bf7d70.js";import{d as P}from"./index.d181a22c.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.js";import"./asyncComputed.1b787534.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]="07de0cd0-227d-4764-87dd-95a00fd639fa",o._sentryDebugIdIdentifier="sentry-dbid-07de0cd0-227d-4764-87dd-95a00fd639fa")}catch{}})();const be={style:{"text-align":"center",padding:"20px"}},we=V({__name:"ConnectionModal",props:{open:{type:Boolean},port:{}},emits:["update:open"],setup(o,{emit:e}){const t=o,s=k({get:()=>t.open,set:a=>e("update:open",a)}),n=l(!1);return E(()=>t.open,a=>{if(a){n.value=!1;const r=setTimeout(()=>{n.value=!0},1e4);return()=>clearTimeout(r)}else n.value=!1}),(a,r)=>(I(),R(_(F),{open:s.value,"onUpdate:open":r[0]||(r[0]=d=>s.value=d),closable:!1,"mask-closable":!1,keyboard:!1,footer:null,width:400,centered:""},{default:b(()=>[N("div",be,[T(_($),{size:"large"}),T(_(B),{level:4},{default:b(()=>[A(" Connecting to server... ")]),_:1}),n.value?(I(),R(_(H),{key:0},{default:b(()=>[A(" Are you sure Abstra is running? ")]),_:1})):K("",!0)])]),_:1},8,["open"]))}});const Ee=J(we,[["__scopeId","data-v-36743132"]]),p=class{constructor(){i(this,"ws",null);i(this,"reconnectTimer");i(this,"keepaliveInterval");i(this,"messageHandlers",new Set);i(this,"KEEPALIVE_INTERVAL",3e4);i(this,"RECONNECT_DELAY",1e3);this.connect()}static getInstance(){return p.instance||(p.instance=new p),p.instance}get url(){return"/_editor/api/codebase/events"}handleMessage(e){try{const t=JSON.parse(e.data),s=ve.parse(t);this.messageHandlers.forEach(n=>{try{n(s)}catch(a){S(a)}})}catch(t){S(t)}}handleClose(){this.clearTimers(),this.scheduleReconnect()}handleError(){this.clearTimers(),this.scheduleReconnect()}clearTimers(){this.keepaliveInterval&&(clearInterval(this.keepaliveInterval),this.keepaliveInterval=void 0),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0)}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.connect()},this.RECONNECT_DELAY))}startKeepalive(){this.keepaliveInterval=setInterval(()=>{this.sendKeepalive()},this.KEEPALIVE_INTERVAL)}sendKeepalive(){if(!this.ws||this.ws.readyState!==WebSocket.OPEN){this.handleError();return}try{this.ws.send(JSON.stringify({type:"keepalive"}))}catch(e){console.error("CodebaseEventsService: Failed to send keepalive:",e),this.handleError()}}async connect(){var e;if(((e=this.ws)==null?void 0:e.readyState)!==WebSocket.OPEN)try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>this.startKeepalive(),this.ws.onclose=()=>this.handleClose(),this.ws.onerror=()=>this.handleError(),this.ws.onmessage=t=>this.handleMessage(t)}catch(t){console.error("CodebaseEventsService: Failed to create WebSocket:",t),this.scheduleReconnect()}}subscribe(e){return this.messageHandlers.add(e),()=>this.messageHandlers.delete(e)}isConnected(){var e;return((e=this.ws)==null?void 0:e.readyState)===WebSocket.OPEN}};let w=p;i(w,"instance",null);function Te(){const o=l(!1),e=l(null),t=l(null),s=w.getInstance(),n=g=>{e.value=g},a=()=>{o.value=s.isConnected()};let r;const d=setInterval(a,1e3);return z(()=>{r(),clearInterval(d)}),Y(()=>{r=s.subscribe(n),a()}),{isConnected:v(o),lastEvent:v(e),error:v(t),service:v(s)}}const Le={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},Ce=V({__name:"App",setup(o){const e=Te(),t=l(!1);E(e.isConnected,async n=>{t.value=!n},{immediate:!0});const s={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}};return(n,a)=>{const r=G("RouterView");return I(),R(_(q),{theme:s,"page-header":{ghost:!1}},{default:b(()=>[N("div",Le,[T(r)]),T(Ee,{open:t.value,"onUpdate:open":a[0]||(a[0]=d=>t.value=d)},null,8,["open"])]),_:1})}}});class O{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async deleteLogin(){await fetch("/_editor/api/login",{method:"DELETE"})}async getCloudProject(){return(await fetch("/_editor/api/login/info")).json()}async getPublicUrl(){try{return(await(await fetch("/_editor/api/login/public-url")).json()).public_url}catch{return null}}static getLoginUrl(e){return ye.CLOUD+"/api-key?"+new URLSearchParams(e)}}const j="h97k86ks",f=class{static boot(e,t){f.booted||(P.Intercom({app_id:j}),P.boot({api_base:"https://api-iam.intercom.io",app_id:j,name:e,email:e,user_hash:t,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),f.booted=!0)}static shutdown(){P.shutdown(),f.booted=!1}};let m=f;i(m,"booted",!1);const Pe={"console-url":"https://cloud.abstra.io"},ke=o=>{const e="VITE_"+U.toUpper(U.snakeCase(o)),t={VITE_SENTRY_RELEASE:"078cc30f42162e0b57cd92c259a90bf299f25aec",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||Pe[o]},h={consoleUrl:ke("console-url")},Ie=Q("cloud-project",()=>{const o=new O,e=l(null),t=l(null),s=k(()=>{var c,u;return(u=(c=e.value)==null?void 0:c.logged)!=null?u:!1}),n=l(null),a=k(()=>t.value?{project:`${h.consoleUrl}/projects/${t.value.id}`,users:`${h.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=users`,roles:`${h.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=roles`,builds:`${h.consoleUrl}/projects/${t.value.id}/builds`,login:`${h.consoleUrl}/api-key`}:null),r=async()=>{!s.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},d=async c=>{const u=await o.createLogin(c);e.value=u,u.logged&&await g()},g=async()=>t.value=await o.getCloudProject();(async()=>{n.value=await o.getPublicUrl()})();const D=async()=>e.value?e.value:(e.value=await o.getLogin(),e.value.logged);return E(()=>e.value,g),E(()=>e.value,async c=>{if(c&&"info"in c){const{email:u,intercomHash:M}=c.info;m.boot(u,M)}else m.shutdown()}),{loadLogin:D,createLogin:d,deleteLogin:r,publicUrl:n,loginInfo:e,cloudProject:t,isLogged:s,links:a}}),Re=he.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),L=X({history:Z("/"),routes:[{path:"/_editor/",name:"app",component:()=>y(()=>import("./Home.3bf2f131.js"),["assets/Home.3bf2f131.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/fetch.83d89bdc.js","assets/polling.88a266b3.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>y(()=>import("./NewEditor.5650f697.js"),["assets/NewEditor.5650f697.js","assets/asyncComputed.1b787534.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/linters.3c5f0c83.js","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/record.87ef3b68.js","assets/PhPencilSimpleLine.vue.f840cf0d.js","assets/Card.957a87b2.js","assets/router.1324a1a9.js","assets/index.d181a22c.js","assets/metadata.cfad5458.js","assets/PhUserList.vue.3791cb59.js","assets/PhWebhooksLogo.vue.fe81fb65.js","assets/LogsController.eb1b811d.js","assets/ant-design.544de4a0.js","assets/string.f6a7565f.js","assets/PhCopy.vue.a63b48dd.js","assets/index.3d2a7b6d.js","assets/build.997fec15.js","assets/tables.c26107a1.js","assets/repository.9d5310b6.js","assets/LoadingOutlined.ee72932a.js","assets/polling.88a266b3.js","assets/LogsController.fb0d96c2.css","assets/omniChatStore.2b85c342.js","assets/uuid.9161765c.js","assets/PhCopySimple.vue.ecffb042.js","assets/omniChatStore.ec95fb81.css","assets/datetime.adc0acc4.js","assets/OmniChat.de828c54.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js","assets/Logo.83b476a4.js","assets/Logo.b7d81119.css","assets/PhClockCounterClockwise.vue.cd77fd26.js","assets/index.9e0166fe.js","assets/index.3ff1c0be.js","assets/OmniChat.8a35a659.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.205eb76e.js","assets/constants.36bf7d70.js","assets/PhBookBookmark.vue.f8f803d9.js","assets/PhChats.vue.dfda946c.js","assets/PhArrowSquareOut.vue.ecfa9cb2.js","assets/PhRocket.vue.3b5927aa.js","assets/PhSignOut.vue.d00d3657.js","assets/CloseCircleOutlined.4e05b917.js","assets/ScrollArea.vue_vue_type_script_setup_true_lang.a58564d3.js","assets/PhFolderPlus.vue.dfb9b117.js","assets/tasksController.22584849.js","assets/vue-flow-background.8e4c22c3.js","assets/SaveButton.ac38b361.js","assets/ExclamationCircleOutlined.d410fb9a.js","assets/SaveButton.932ac6b8.css","assets/ContentLayout.7d5c9f09.js","assets/ContentLayout.cdae7d24.css","assets/fetch.83d89bdc.js","assets/repository.af418855.js","assets/View.vue_vue_type_script_setup_true_lang.424410a2.js","assets/CrudView.8fb84eac.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.0555d923.js","assets/PhDotsThreeVertical.vue.2db678ef.js","assets/CrudView.c883bb05.css","assets/PhPencil.vue.ae2943da.js","assets/PlayerNavbar.13876ce7.js","assets/PlayerNavbar.77209eae.css","assets/PlayerConfigProvider.2acd3a77.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.6e72d482.js","assets/LoadingContainer.56fa997a.css","assets/PhGear.vue.6e1aeed0.js","assets/PhPencilSimple.vue.9042e169.js","assets/toggleHighContrast.fc60753d.js","assets/toggleHighContrast.30d77c87.css","assets/PhArrowCounterClockwise.vue.76c9e146.js","assets/FormRunner.8bbe841e.js","assets/Login.vue_vue_type_script_setup_true_lang.a92a80d0.js","assets/CircularLoading.3e4ddd6d.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.75d13f6c.css","assets/Steps.f820fb18.js","assets/index.a7b8e25e.js","assets/Steps.2880920a.css","assets/Watermark.40c8c47e.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.2fa4f8cf.js","assets/router.55c0ff56.js","assets/NewEditor.0044878f.css"])},{path:"project-login",name:"projectLogin",component:()=>y(()=>import("./ProjectLogin.46d5036b.js"),["assets/ProjectLogin.46d5036b.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js","assets/Logo.83b476a4.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/BaseLayout.b60c33b8.js","assets/BaseLayout.e1744dcc.css","assets/index.5e22e010.js","assets/Breadcrumb.d0cc2c91.js","assets/index.9e0166fe.js","assets/index.3d2a7b6d.js","assets/router.55c0ff56.js","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/linters.3c5f0c83.js","assets/asyncComputed.1b787534.js","assets/constants.36bf7d70.js","assets/index.d181a22c.js","assets/ProjectLogin.21a71354.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:":pathMatch(.*)*",name:"editorFallback",redirect:"/_editor/"}]},{path:"/:path(.*)*",name:"form",component:()=>y(()=>import("./App.c29df54f.js"),["assets/App.c29df54f.js","assets/App.vue_vue_type_style_index_0_lang.efd9d3fa.js","assets/userStore.9e7a540a.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/PlayerConfigProvider.2acd3a77.js","assets/colorHelpers.d4f3f275.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.4f0c433f.js","assets/url.f490879d.js","assets/App.0c2736ee.css"]),children:Re}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),Ae=_e(L);L.beforeEach(async(o,e)=>{if(await fe().actions.fetch(),o.meta.playerRoute)return Ae(o,e);ee(o,e);const t=Ie();if(!o.meta.allowUnauthenticated&&!t.isLogged&&!await t.loadLogin()){const s={redirect:location.origin+"/_editor/project-login"};window.open(O.getLoginUrl(s),"_self")}});(async()=>{await ge();const o=await me(),e=te(),t=oe({render:()=>le(Ce)});se.init(),ne(t,L,o),t.use(L),t.use(ae),t.use(e),t.mount("#app"),t.component("VSelect",re),t.component("Markdown",ie),t.component("Message",ce),C(t,de),C(t,ue),C(t,pe)})();export{h as E,Te as a,Ie as u};
|
|
2
|
-
//# sourceMappingURL=editor.0ce52658.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as r,E as t,K as i,a as f,M as b,c,P as l,R as y,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.fc60753d.js";import"./jwt-decode.esm.992666e9.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]="09b4ef5c-4dd4-435f-a5a1-d8656e36bd35",e._sentryDebugIdIdentifier="sentry-dbid-09b4ef5c-4dd4-435f-a5a1-d8656e36bd35")}catch{}})();export{r as CancellationTokenSource,t as Emitter,i as KeyCode,f as KeyMod,b as MarkerSeverity,c as MarkerTag,l as Position,y as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages};
|
|
2
|
-
//# sourceMappingURL=editor.main.353e9a8f.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="62e3c3ca-ed50-4c11-8fdd-15c3c76e040e",e._sentryDebugIdIdentifier="sentry-dbid-62e3c3ca-ed50-4c11-8fdd-15c3c76e040e")}catch{}})();const t=(...e)=>window.fetch(...e);export{t as l};
|
|
2
|
-
//# sourceMappingURL=fetch.83d89bdc.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as P,ag as T,e0 as L,e1 as Q,c as o,r as O,w as W,aQ as X,f,X as m,aR as q,aj as j,cV as h,av as G,bt as B,aM as H,ah as J}from"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="ab71228a-17c8-4d76-aaf8-1287bbb2d728",e._sentryDebugIdIdentifier="sentry-dbid-ab71228a-17c8-4d76-aaf8-1287bbb2d728")}catch{}})();const K={small:8,middle:16,large:24},U=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:G.oneOf(B("horizontal","vertical")).def("horizontal"),align:G.oneOf(B("start","end","center","baseline")),wrap:H()});function Y(e){return typeof e=="string"?K[e]:e||0}const r=P({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:U(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:y,direction:w}=T("space",e),[E,F]=L(n),x=Q(),s=o(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=y==null?void 0:y.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();W(s,()=>{[b.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(a=>Y(a))},{immediate:!0});const z=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),R=o(()=>J(n.value,F.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:w.value==="rtl",[`${n.value}-align-${z.value}`]:z.value})),V=o(()=>w.value==="rtl"?"marginLeft":"marginRight"),k=o(()=>{const a={};return x.value&&(a.columnGap=`${b.value}px`,a.rowGap=`${u.value}px`),m(m({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction:M="horizontal"}=e,_=(a=l.default)===null||a===void 0?void 0:a.call(l),C=X(_),I=C.length;if(I===0)return null;const d=(t=l.split)===null||t===void 0?void 0:t.call(l),A=`${n.value}-item`,D=b.value,S=I-1;return f("div",j(j({},g),{},{class:[R.value,g.class],style:[k.value,g.style]}),[C.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let p={};return x.value||(M==="vertical"?v<S&&(p={marginBottom:`${D/(d?2:1)}px`}):p=m(m({},v<S&&{[V.value]:`${D/(d?2:1)}px`}),i&&{paddingBottom:`${u.value}px`})),E(f(q,{key:$},[f("div",{class:A,style:p},[N]),v<S&&d&&f("span",{class:`${A}-split`,style:p},[d])]))})])}}});r.Compact=h;r.install=function(e){return e.component(r.name,r),e.component(h.name,h),e};const ee=r;export{ee as A};
|
|
2
|
-
//# sourceMappingURL=index.3d2a7b6d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as o}from"./Card.957a87b2.js";import{d as g,ag as b,bT as i,f as r,bD as d,c as y}from"./jwt-decode.esm.992666e9.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]="9908880c-c365-4da1-ad0f-8902003260e0",e._sentryDebugIdIdentifier="sentry-dbid-9908880c-c365-4da1-ad0f-8902003260e0")}catch{}})();const _=()=>({prefixCls:String,title:d(),description:d(),avatar:d()}),c=g({compatConfig:{MODE:3},name:"ACardMeta",props:_(),slots:Object,setup(e,n){let{slots:a}=n;const{prefixCls:t}=b("card",e);return()=>{const l={[`${t.value}-meta`]:!0},s=i(a,e,"avatar"),v=i(a,e,"title"),f=i(a,e,"description"),C=s?r("div",{class:`${t.value}-meta-avatar`},[s]):null,m=v?r("div",{class:`${t.value}-meta-title`},[v]):null,p=f?r("div",{class:`${t.value}-meta-description`},[f]):null,D=m||p?r("div",{class:`${t.value}-meta-detail`},[m,p]):null;return r("div",{class:l},[C,D])}}}),M=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),u=g({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:M(),setup(e,n){let{slots:a}=n;const{prefixCls:t}=b("card",e),l=y(()=>({[`${t.value}-grid`]:!0,[`${t.value}-grid-hoverable`]:e.hoverable}));return()=>{var s;return r("div",{class:l.value},[(s=a.default)===null||s===void 0?void 0:s.call(a)])}}});o.Meta=c;o.Grid=u;o.install=function(e){return e.component(o.name,o),e.component(c.name,c),e.component(u.name,u),e};export{u as G,c as M};
|
|
2
|
-
//# sourceMappingURL=index.3e7471f4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var F=Object.defineProperty;var E=(n,t,e)=>t in n?F(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var s=(n,t,e)=>(E(n,typeof t!="symbol"?t+"":t,e),e);import{L as o}from"./jwt-decode.esm.992666e9.js";import{a as k}from"./asyncComputed.1b787534.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="e41381a9-da56-4c49-b65f-3d2f4e0aae21",n._sentryDebugIdIdentifier="sentry-dbid-e41381a9-da56-4c49-b65f-3d2f4e0aae21")}catch{}})();const L=o.string(),j=o.array(L),G=o.number(),P=o.string().datetime({local:!0}),N=o.enum(["file","directory"]),_=o.string(),W=o.array(_),w=o.array(W).default([]),g=o.object({pathParts:j,size:G,lastModified:P,type:N,children:w.optional()}),M=o.boolean(),x=o.boolean(),O=o.boolean(),H=o.boolean(),v=o.boolean(),q=o.boolean();o.object({PROJECT_LIVE:M.optional(),ALLOW_RELEASE:x.optional(),CONNECTORS_CONSOLE:O.optional(),DUPLICATE_PROJECTS:H.optional(),WEB_EDITOR:v.optional(),LANGCHAIN_SMART_CHAT:q.optional()});const U=o.string(),B=o.string(),z=o.string(),$=o.string(),K=o.string();o.object({plan:U.optional(),expires:B.optional(),message:z.optional(),messageLink:$.optional(),messageCTA:K.optional()});const Q=o.string(),h=o.string(),A=o.string(),X=o.string(),Y=o.string(),Z=o.object({id:Q,name:h,description:A.optional(),projectId:X,createdAt:Y}),oo=o.string(),to=o.string(),eo=o.string(),no=o.string(),so=o.string(),ao=o.enum(["true","false"]),io=o.enum(["true","false"]),mo=o.enum(["true","false"]),co=o.string().regex(new RegExp("^[0-9]+m$")),ro=o.string().regex(new RegExp("^[0-9]+m$")),lo=o.string().regex(new RegExp("^[0-9]+Mi$")),So=o.string().regex(new RegExp("^[0-9]+Mi$")),Ao=o.string().regex(new RegExp("^[0-9]+$")),bo=o.number(),Co=o.string().regex(new RegExp("^[0-9]+$")),go=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),ho=o.enum(["3.9","3.10","3.11","3.12"]),uo=o.string(),po=o.string(),Vo=o.object({watermarkEnabled:ao.optional(),seleniumInstanceEnabled:io.optional(),notificationsEnabled:mo.optional(),requestsCPU:co.optional(),limitsCPU:ro.optional(),requestsMemory:lo.optional(),limitsMemory:So.optional(),minReplicas:Ao.optional(),computeUnits:bo.optional(),timeoutSeconds:Co.optional(),workerType:go.optional(),pythonVersion:ho.optional(),workerNumber:uo.optional(),baseDockerfile:po.optional()});o.object({id:oo,folderId:to,name:eo,subdomain:no,organizationId:so,deploymentResources:Vo.optional()});const fo=o.string(),Jo=o.string(),Do=o.string();o.object({name:fo,connectionType:Jo,projectId:Do});const Ro=o.string(),Io=o.string(),u=o.array(Io),p=o.string(),yo=o.string();o.object({id:Ro,emailPatterns:u,projectId:p,createdAt:yo});const To=o.string(),Fo=o.string(),Eo=o.string(),ko=o.string(),Lo=o.object({key:To,label:Fo,description:Eo,logoUrl:ko}),jo=o.literal("tokens"),Go=o.string(),Po=o.string(),No=o.string(),_o=o.string(),Wo=o.enum(["small-string","large-text","file"]),wo=o.number(),Mo=o.number(),xo=o.object({type:Wo,maxSize:wo.optional(),minSize:Mo.optional()}),Oo=o.object({key:Go,label:Po,description:No,instructions:_o.optional(),input:xo}),b=o.array(Oo),Ho=b,vo=o.object({type:jo,tokens:Ho}),qo=o.literal("oauth2"),Uo=o.string(),Bo=o.string(),zo=o.string(),$o=o.object({key:Uo,label:Bo,description:zo}),Ko=o.array($o),Qo=b,Xo=o.object({type:qo,scopes:Ko,params:Qo}),Yo=o.literal("manual"),Zo=o.object({type:Yo}),ot=o.literal("ecdsa"),tt=b,et=o.object({type:ot,params:tt}),nt=o.union([vo,Xo,Zo,et]),st=o.string(),at=o.string(),it=o.string(),mt=o.record(o.any()),ct=o.record(o.any()),rt=o.object({key:st,label:at,description:it,payloadSchema:mt,returnSchema:ct}),lt=o.array(rt),St=o.string(),At=o.string(),bt=o.record(o.any()),Ct=o.object({name:St,description:At,payloadSchema:bt.optional()}),gt=o.array(Ct);o.object({metadata:Lo,auth:nt,actions:lt,triggers:gt});const ht=o.enum(["bigint","int8","bigserial","serial8","bit","bit varying","varbit","boolean","bool","box","bytea","character","char","character varying","varchar","cidr","circle","date","double precision","float8","inet","integer","int","int4","interval","json","jsonb","line","lseg","macaddr","money","numeric","decimal","path","pg_lsn","point","polygon","real","float4","smallint","int2","smallserial","serial2","serial","serial4","text","time","time with time zone","timetz","timestamp","timestamp with time zone","timestamptz","tsquery","tsvector","txid_snapshot","uuid","xml"]),ut=o.string(),m=o.string().email(),pt=o.string(),C=o.array(pt),dt=o.string(),Vt=o.string(),ft=o.object({id:ut,email:m,roles:C,projectId:dt,createdAt:Vt}),Jt=o.string().uuid(),Dt=o.string(),Rt=o.string().uuid(),It=o.boolean(),yt=o.string(),Tt=ht,Ft=o.boolean(),Et=o.boolean(),kt=o.string(),Lt=o.string(),jt=o.object({columnId:Lt}),Gt=o.object({id:Rt,primaryKey:It,name:yt,type:Tt,unique:Ft.optional(),nullable:Et.optional(),default:kt.optional(),foreignKey:jt.optional()}),Pt=o.array(Gt),Nt=o.record(o.any()),_t=o.array(Nt),Wt=o.object({id:Jt,name:Dt,columns:Pt,data:_t}),wt=o.array(Wt);o.object({tables:wt});const d=o.string(),V=o.string(),Mt=o.boolean(),xt=o.boolean(),Ot=o.boolean(),Ht=o.boolean(),vt=o.boolean(),qt=o.boolean(),f=o.object({PROJECT_LIVE:Mt,ALLOW_RELEASE:xt,CONNECTORS_CONSOLE:Ot,DUPLICATE_PROJECTS:Ht,WEB_EDITOR:vt.optional(),LANGCHAIN_SMART_CHAT:qt.optional()}),Ut=o.string(),Bt=o.string(),zt=o.string(),$t=o.string(),Kt=o.string(),J=o.object({plan:Ut.optional(),expires:Bt.optional(),message:zt.optional(),messageLink:$t.optional(),messageCTA:Kt.optional()}),Qt=o.enum(["true","false"]),Xt=o.enum(["true","false"]),Yt=o.enum(["true","false"]),Zt=o.string().regex(new RegExp("^[0-9]+m$")),oe=o.string().regex(new RegExp("^[0-9]+m$")),te=o.string().regex(new RegExp("^[0-9]+Mi$")),ee=o.string().regex(new RegExp("^[0-9]+Mi$")),ne=o.string().regex(new RegExp("^[0-9]+$")),se=o.number(),ae=o.string().regex(new RegExp("^[0-9]+$")),ie=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),me=o.enum(["3.9","3.10","3.11","3.12"]),ce=o.string(),re=o.string(),le=o.object({watermarkEnabled:Qt.optional(),nativeTempDir:Xt.optional(),notificationsEnabled:Yt.optional(),requestsCPU:Zt.optional(),limitsCPU:oe.optional(),requestsMemory:te.optional(),limitsMemory:ee.optional(),minReplicas:ne.optional(),computeUnits:se.optional(),timeoutSeconds:ae.optional(),workerType:ie.optional(),pythonVersion:me.optional(),workerNumber:ce.optional(),baseDockerfile:re.optional()}),Se=o.string(),Ae=o.array(Se),be=o.object({whitelistPatterns:Ae.optional()});o.object({id:d,name:V,featureFlags:f,billingMetadata:J,deploymentResources:le.optional(),membershipsMetadata:be.optional()});const Ce=o.string(),ge=o.array(Ce);o.object({whitelistPatterns:ge.optional()});const he=o.string(),ue=o.string(),pe=o.string(),de=o.null(),Ve=o.union([pe,de]),fe=o.string(),Je=o.null(),De=o.union([fe,Je]),Re=o.string(),Ie=o.null(),ye=o.union([Re,Ie]),Te=o.string(),Fe=o.null(),Ee=o.union([Te,Fe]),ke=o.string(),Le=o.null(),je=o.union([ke,Le]),Ge=o.string(),Pe=o.null(),Ne=o.union([Ge,Pe]),_e=o.string(),We=o.null(),we=o.union([_e,We]),Me=o.object({name:he,language:ue,theme:Ve,logo_url:De,favicon_url:ye,brand_name:Ee,main_color:je,font_family:Ne,font_color:we}),xe=o.boolean(),Oe=o.string(),He=o.array(Oe),ve=o.object({is_public:xe,required_roles:He}),qe=o.object({access_control:ve}),Ue=o.string(),Be=o.number(),ze=o.array(Be),$e=o.string(),Ke=o.string(),Qe=o.string(),Xe=o.string(),Ye=o.string(),Ze=o.null(),on=o.union([Ye,Ze]),c=o.object({id:$e,target_id:Ke,target_type:Qe,type:Xe,task_type:on.optional()}),tn=c,en=o.array(tn),nn=o.string(),sn=o.string(),an=o.string(),mn=o.object({file:Ue,workflow_position:ze,transitions:en,id:nn,title:sn,schedule:an}),cn=mn,rn=o.array(cn),ln=o.string(),Sn=o.number(),An=o.array(Sn),bn=c,Cn=o.array(bn),gn=o.string(),hn=o.string(),un=o.string(),pn=o.boolean(),dn=o.boolean(),Vn=o.object({file:ln,workflow_position:An,transitions:Cn,id:gn,title:hn,path:un,is_initial:pn,enabled:dn}),fn=Vn,Jn=o.array(fn),Dn=o.string(),Rn=o.number(),In=o.array(Rn),yn=c,Tn=o.array(yn),Fn=o.string(),En=o.string(),kn=o.boolean(),Ln=o.boolean(),jn=o.string(),Gn=o.null(),Pn=o.union([jn,Gn]),Nn=o.boolean(),_n=o.string(),Wn=o.array(_n),wn=o.object({is_public:Nn,required_roles:Wn}),Mn=o.string(),xn=o.null(),On=o.union([Mn,xn]),Hn=o.string(),vn=o.null(),qn=o.union([Hn,vn]),Un=o.string(),Bn=o.boolean(),zn=o.object({variable_name:Un,enabled:Bn}),$n=o.string(),Kn=o.null(),Qn=o.union([$n,Kn]),Xn=o.boolean(),Yn=o.string(),Zn=o.string(),os=o.null(),ts=o.union([Zn,os]),es=o.string(),ns=o.null(),ss=o.union([es,ns]),as=o.string(),is=o.null(),ms=o.union([as,is]),cs=o.object({file:Dn,workflow_position:In,transitions:Tn,id:Fn,title:En,allow_restart:kn,is_initial:Ln,start_button_text:Pn,access_control:wn,welcome_title:On,restart_button_text:qn,notification_trigger:zn,timeout_message:Qn,auto_start:Xn,path:Yn,error_message:ts,start_message:ss,end_message:ms}),rs=cs,ls=o.array(rs),Ss=o.string(),As=o.number(),bs=o.array(As),Cs=c,gs=o.array(Cs),hs=o.string(),us=o.string(),ps=o.boolean(),ds=o.object({file:Ss,workflow_position:bs,transitions:gs,id:hs,title:us,is_initial:ps}),Vs=ds,fs=o.array(Vs),Js=o.literal("15.0");o.object({workspace:Me,home:qe,jobs:rn,hooks:Jn,forms:ls,scripts:fs,version:Js});const Ds=o.string(),Rs=o.string(),Is=o.string(),ys=o.null(),Ts=o.union([Is,ys]),Fs=o.string(),Es=o.null(),ks=o.union([Fs,Es]),Ls=o.string(),js=o.null(),Gs=o.union([Ls,js]),Ps=o.string(),Ns=o.null(),_s=o.union([Ps,Ns]),Ws=o.string(),ws=o.null(),Ms=o.union([Ws,ws]),xs=o.string(),Os=o.null(),Hs=o.union([xs,Os]),vs=o.string(),qs=o.null(),Us=o.union([vs,qs]),Bs=o.object({name:Ds,language:Rs,theme:Ts,logo_url:ks,favicon_url:Gs,brand_name:_s,main_color:Ms,font_family:Hs,font_color:Us}),zs=o.boolean(),$s=o.string(),Ks=o.array($s),Qs=o.object({is_public:zs,required_roles:Ks}),Xs=o.object({access_control:Qs}),Ys=o.string(),Zs=o.number(),oa=o.array(Zs),ta=o.string(),ea=o.string(),na=o.string(),sa=o.literal("task"),aa=o.string(),ia=o.null(),ma=o.union([aa,ia]),r=o.object({id:ta,target_id:ea,target_type:na,type:sa,task_type:ma.optional()}),ca=r,ra=o.array(ca),la=o.string(),Sa=o.string(),Aa=o.string(),ba=o.object({file:Ys,workflow_position:oa,transitions:ra,id:la,title:Sa,schedule:Aa}),Ca=ba,ga=o.array(Ca),ha=o.string(),ua=o.number(),pa=o.array(ua),da=r,Va=o.array(da),fa=o.string(),Ja=o.string(),Da=o.string(),Ra=o.boolean(),Ia=o.boolean(),ya=o.object({file:ha,workflow_position:pa,transitions:Va,id:fa,title:Ja,path:Da,is_initial:Ra,enabled:Ia}),Ta=ya,Fa=o.array(Ta),Ea=o.string(),ka=o.number(),La=o.array(ka),ja=r,Ga=o.array(ja),Pa=o.string(),Na=o.string(),_a=o.boolean(),Wa=o.boolean(),wa=o.string(),Ma=o.null(),xa=o.union([wa,Ma]),Oa=o.boolean(),Ha=o.string(),va=o.array(Ha),qa=o.object({is_public:Oa,required_roles:va}),Ua=o.string(),Ba=o.null(),za=o.union([Ua,Ba]),$a=o.string(),Ka=o.null(),Qa=o.union([$a,Ka]),Xa=o.string(),Ya=o.boolean(),Za=o.object({variable_name:Xa,enabled:Ya}),oi=o.string(),ti=o.null(),ei=o.union([oi,ti]),ni=o.boolean(),si=o.string(),ai=o.string(),ii=o.null(),mi=o.union([ai,ii]),ci=o.string(),ri=o.null(),li=o.union([ci,ri]),Si=o.string(),Ai=o.null(),bi=o.union([Si,Ai]),Ci=o.object({file:Ea,workflow_position:La,transitions:Ga,id:Pa,title:Na,allow_restart:_a,is_initial:Wa,start_button_text:xa,access_control:qa,welcome_title:za,restart_button_text:Qa,notification_trigger:Za,timeout_message:ei,auto_start:ni,path:si,error_message:mi,start_message:li,end_message:bi}),gi=Ci,hi=o.array(gi),ui=o.string(),pi=o.number(),di=o.array(pi),Vi=r,fi=o.array(Vi),Ji=o.string(),Di=o.string(),Ri=o.boolean(),Ii=o.object({file:ui,workflow_position:di,transitions:fi,id:Ji,title:Di,is_initial:Ri}),yi=Ii,Ti=o.array(yi),Fi=o.literal("14.0");o.object({workspace:Bs,home:Xs,jobs:ga,hooks:Fa,forms:hi,scripts:Ti,version:Fi});const Ei=o.string(),ki=o.string(),Li=o.string(),ji=o.null(),Gi=o.union([Li,ji]),Pi=o.string(),Ni=o.null(),_i=o.union([Pi,Ni]),Wi=o.string(),wi=o.null(),Mi=o.union([Wi,wi]),xi=o.string(),Oi=o.null(),Hi=o.union([xi,Oi]),vi=o.string(),qi=o.null(),Ui=o.union([vi,qi]),Bi=o.string(),zi=o.null(),$i=o.union([Bi,zi]),Ki=o.string(),Qi=o.null(),Xi=o.union([Ki,Qi]),Yi=o.object({name:Ei,language:ki,theme:Gi,logo_url:_i,favicon_url:Mi,brand_name:Hi,main_color:Ui,font_family:$i,font_color:Xi}),Zi=o.boolean(),om=o.string(),tm=o.array(om),em=o.object({is_public:Zi,required_roles:tm}),nm=o.object({access_control:em}),sm=o.string(),am=o.number(),im=o.array(am),mm=o.string(),cm=o.string(),rm=o.string(),lm=o.string(),Sm=o.string(),Am=o.null(),bm=o.union([Sm,Am]),i=o.object({id:mm,target_id:cm,target_type:rm,type:lm,task_type:bm.optional()}),Cm=i,gm=o.array(Cm),hm=o.string(),um=o.string(),pm=o.string(),dm=o.object({file:sm,workflow_position:im,transitions:gm,id:hm,title:um,schedule:pm}),Vm=dm,fm=o.array(Vm),Jm=o.string(),Dm=o.number(),Rm=o.array(Dm),Im=i,ym=o.array(Im),Tm=o.string(),Fm=o.string(),Em=o.string(),km=o.boolean(),Lm=o.boolean(),jm=o.object({file:Jm,workflow_position:Rm,transitions:ym,id:Tm,title:Fm,path:Em,is_initial:km,enabled:Lm}),Gm=jm,Pm=o.array(Gm),Nm=o.string(),_m=o.number(),Wm=o.array(_m),wm=i,Mm=o.array(wm),xm=o.string(),Om=o.string(),Hm=o.boolean(),vm=o.boolean(),qm=o.string(),Um=o.null(),Bm=o.union([qm,Um]),zm=o.boolean(),$m=o.string(),Km=o.array($m),Qm=o.object({is_public:zm,required_roles:Km}),Xm=o.string(),Ym=o.null(),Zm=o.union([Xm,Ym]),oc=o.string(),tc=o.null(),ec=o.union([oc,tc]),nc=o.string(),sc=o.boolean(),ac=o.object({variable_name:nc,enabled:sc}),ic=o.string(),mc=o.null(),cc=o.union([ic,mc]),rc=o.boolean(),lc=o.string(),Sc=o.string(),Ac=o.null(),bc=o.union([Sc,Ac]),Cc=o.string(),gc=o.null(),hc=o.union([Cc,gc]),uc=o.string(),pc=o.null(),dc=o.union([uc,pc]),Vc=o.object({file:Nm,workflow_position:Wm,transitions:Mm,id:xm,title:Om,allow_restart:Hm,is_initial:vm,start_button_text:Bm,access_control:Qm,welcome_title:Zm,restart_button_text:ec,notification_trigger:ac,timeout_message:cc,auto_start:rc,path:lc,error_message:bc,start_message:hc,end_message:dc}),fc=Vc,Jc=o.array(fc),Dc=o.string(),Rc=o.number(),Ic=o.array(Rc),yc=i,Tc=o.array(yc),Fc=o.string(),Ec=o.string(),kc=o.boolean(),Lc=o.object({file:Dc,workflow_position:Ic,transitions:Tc,id:Fc,title:Ec,is_initial:kc}),jc=Lc,Gc=o.array(jc),Pc=o.string(),Nc=o.string(),_c=o.string().uuid(),Wc=o.null(),wc=o.union([_c,Wc]),Mc=o.number(),xc=o.array(Mc),Oc=i,Hc=o.array(Oc),vc=o.string().uuid(),qc=o.null(),Uc=o.union([vc,qc]),Bc=o.object({id:Pc,title:Nc,project_id:wc,workflow_position:xc,transitions:Hc,client_stage_id:Uc}),zc=o.array(Bc),$c=o.string(),Kc=o.string(),Qc=o.number(),Xc=o.array(Qc),Yc=i,Zc=o.array(Yc),or=o.object({id:$c,title:Kc,workflow_position:Xc,transitions:Zc}),tr=o.array(or),er=o.literal("13.0");o.object({workspace:Yi,home:nm,jobs:fm,hooks:Pm,forms:Jc,scripts:Gc,agents:zc,clients:tr,version:er});const nr=o.string(),sr=o.string(),ar=o.string(),ir=o.null(),mr=o.union([ar,ir]),cr=o.string(),rr=o.null(),lr=o.union([cr,rr]),Sr=o.string(),Ar=o.null(),br=o.union([Sr,Ar]),Cr=o.string(),gr=o.null(),hr=o.union([Cr,gr]),ur=o.string(),pr=o.null(),dr=o.union([ur,pr]),Vr=o.string(),fr=o.null(),Jr=o.union([Vr,fr]),Dr=o.string(),Rr=o.null(),Ir=o.union([Dr,Rr]),yr=o.object({name:nr,language:sr,theme:mr,logo_url:lr,favicon_url:br,brand_name:hr,main_color:dr,font_family:Jr,font_color:Ir}),Tr=o.boolean(),Fr=o.string(),Er=o.array(Fr),kr=o.object({is_public:Tr,required_roles:Er}),Lr=o.object({access_control:kr}),jr=o.string(),Gr=o.number(),Pr=o.array(Gr),Nr=o.string(),_r=o.string(),Wr=o.string(),wr=o.string(),Mr=o.string(),xr=o.null(),Or=o.union([Mr,xr]),l=o.object({id:Nr,target_id:_r,target_type:Wr,type:wr,task_type:Or.optional()}),Hr=l,vr=o.array(Hr),qr=o.string(),Ur=o.string(),Br=o.string(),zr=o.object({file:jr,workflow_position:Pr,transitions:vr,id:qr,title:Ur,schedule:Br}),$r=zr,Kr=o.array($r),Qr=o.string(),Xr=o.number(),Yr=o.array(Xr),Zr=l,ol=o.array(Zr),tl=o.string(),el=o.string(),nl=o.string(),sl=o.boolean(),al=o.boolean(),il=o.object({file:Qr,workflow_position:Yr,transitions:ol,id:tl,title:el,path:nl,is_initial:sl,enabled:al}),ml=il,cl=o.array(ml),rl=o.string(),ll=o.number(),Sl=o.array(ll),Al=l,bl=o.array(Al),Cl=o.string(),gl=o.string(),hl=o.boolean(),ul=o.boolean(),pl=o.string(),dl=o.null(),Vl=o.union([pl,dl]),fl=o.boolean(),Jl=o.string(),Dl=o.array(Jl),Rl=o.object({is_public:fl,required_roles:Dl}),Il=o.string(),yl=o.null(),Tl=o.union([Il,yl]),Fl=o.string(),El=o.null(),kl=o.union([Fl,El]),Ll=o.string(),jl=o.boolean(),Gl=o.object({variable_name:Ll,enabled:jl}),Pl=o.string(),Nl=o.null(),_l=o.union([Pl,Nl]),Wl=o.boolean(),wl=o.string(),Ml=o.string(),xl=o.null(),Ol=o.union([Ml,xl]),Hl=o.string(),vl=o.null(),ql=o.union([Hl,vl]),Ul=o.string(),Bl=o.null(),zl=o.union([Ul,Bl]),$l=o.object({file:rl,workflow_position:Sl,transitions:bl,id:Cl,title:gl,allow_restart:hl,is_initial:ul,start_button_text:Vl,access_control:Rl,welcome_title:Tl,restart_button_text:kl,notification_trigger:Gl,timeout_message:_l,auto_start:Wl,path:wl,error_message:Ol,start_message:ql,end_message:zl}),Kl=$l,Ql=o.array(Kl),Xl=o.string(),Yl=o.number(),Zl=o.array(Yl),oS=l,tS=o.array(oS),eS=o.string(),nS=o.string(),sS=o.boolean(),aS=o.object({file:Xl,workflow_position:Zl,transitions:tS,id:eS,title:nS,is_initial:sS}),iS=aS,mS=o.array(iS),cS=o.literal("12.0");o.object({workspace:yr,home:Lr,jobs:Kr,hooks:cl,forms:Ql,scripts:mS,version:cS});const rS=o.enum(["true","false"]),lS=o.enum(["true","false"]),SS=o.enum(["true","false"]),AS=o.string().regex(new RegExp("^[0-9]+m$")),bS=o.string().regex(new RegExp("^[0-9]+m$")),CS=o.string().regex(new RegExp("^[0-9]+Mi$")),gS=o.string().regex(new RegExp("^[0-9]+Mi$")),hS=o.string().regex(new RegExp("^[0-9]+$")),uS=o.number(),pS=o.string().regex(new RegExp("^[0-9]+$")),dS=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),VS=o.enum(["3.9","3.10","3.11","3.12"]),fS=o.string(),JS=o.string();o.object({watermarkEnabled:rS.optional(),nativeTempDir:lS.optional(),notificationsEnabled:SS.optional(),requestsCPU:AS.optional(),limitsCPU:bS.optional(),requestsMemory:CS.optional(),limitsMemory:gS.optional(),minReplicas:hS.optional(),computeUnits:uS.optional(),timeoutSeconds:pS.optional(),workerType:dS.optional(),pythonVersion:VS.optional(),workerNumber:fS.optional(),baseDockerfile:JS.optional()});const DS=o.enum(["true","false"]),RS=o.enum(["true","false"]),IS=o.enum(["true","false"]),yS=o.string().regex(new RegExp("^[0-9]+m$")),TS=o.string().regex(new RegExp("^[0-9]+m$")),FS=o.string().regex(new RegExp("^[0-9]+Mi$")),ES=o.string().regex(new RegExp("^[0-9]+Mi$")),kS=o.string().regex(new RegExp("^[0-9]+$")),LS=o.number(),jS=o.string().regex(new RegExp("^[0-9]+$")),GS=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),PS=o.enum(["3.9","3.10","3.11","3.12"]),NS=o.string(),_S=o.string();o.object({watermarkEnabled:DS.optional(),seleniumInstanceEnabled:RS.optional(),notificationsEnabled:IS.optional(),requestsCPU:yS.optional(),limitsCPU:TS.optional(),requestsMemory:FS.optional(),limitsMemory:ES.optional(),minReplicas:kS.optional(),computeUnits:LS.optional(),timeoutSeconds:jS.optional(),workerType:GS.optional(),pythonVersion:PS.optional(),workerNumber:NS.optional(),baseDockerfile:_S.optional()});const WS=o.enum(["file","directory"]),wS=o.string(),MS=o.string(),xS=o.string().datetime({local:!0}),OS=o.number(),HS=o.string(),vS=o.number(),qS=o.object({type:WS,path:wS,name:MS,date:xS,sizeBytes:OS.optional(),sizeHuman:HS.optional(),itemCount:vS.optional()}),US=o.literal("replace-code"),BS=o.string(),zS=o.string(),$S=o.literal("replace-code"),KS=o.object({action:US,actionLabel:BS,newCode:zS,type:$S.optional()}),QS=KS,XS=o.literal("edit-stage-name"),YS=o.string(),ZS=o.string(),oA=o.literal("edit-stage-name"),tA=o.object({action:XS,actionLabel:YS,newName:ZS,type:oA.optional()}),eA=tA,nA=o.literal("add-notifiable-email"),sA=o.string(),aA=o.string(),iA=o.object({action:nA,actionLabel:sA,email:aA}),mA=iA,cA=o.literal("edit-stage-filename"),rA=o.string(),lA=o.string(),SA=o.literal("edit-stage-filename"),AA=o.object({action:cA,actionLabel:rA,newFilename:lA,type:SA.optional()}),bA=AA,CA=o.union([QS,eA,mA,bA]),gA=o.array(CA);o.object({actions:gA});const hA=o.literal("create-table"),uA=o.string(),pA=o.string().uuid(),dA=o.string(),VA=o.object({action:hA,actionLabel:uA,tableId:pA,tableName:dA}),fA=VA,JA=o.literal("create-column"),DA=o.string(),RA=o.string().uuid(),IA=o.string(),yA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),TA=o.boolean(),FA=o.string(),EA=o.boolean(),kA=o.object({action:JA,actionLabel:DA,tableId:RA,columnName:IA,columnType:yA,nullable:TA,default:FA,unique:EA}),LA=kA,jA=o.literal("insert-rows"),GA=o.string(),PA=o.string().uuid(),NA=o.record(o.any()),_A=o.array(NA),WA=o.object({action:jA,actionLabel:GA,tableId:PA,rows:_A}),wA=WA,MA=o.literal("edit-table"),xA=o.string(),OA=o.string().uuid(),HA=o.string(),vA=o.object({action:MA,actionLabel:xA,tableId:OA,newTableName:HA}),qA=vA,UA=o.literal("edit-column"),BA=o.string(),zA=o.string().uuid(),$A=o.string().uuid(),KA=o.string(),QA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),XA=o.boolean(),YA=o.string(),ZA=o.boolean(),ob=o.string().uuid(),tb=o.object({columnId:ob}),eb=o.object({columnName:KA.optional(),columnType:QA.optional(),nullable:XA.optional(),default:YA.optional(),unique:ZA.optional(),foreignKey:tb.optional()}),nb=o.object({action:UA,actionLabel:BA,columnId:zA,tableId:$A,changes:eb}),sb=nb,ab=o.literal("edit-env-var"),ib=o.string(),mb=o.string(),cb=o.string(),rb=o.object({action:ab,actionLabel:ib,key:mb,newValue:cb}),lb=rb,Sb=o.literal("set-env-var"),Ab=o.string(),bb=o.string(),Cb=o.string(),gb=o.object({action:Sb,actionLabel:Ab,key:bb,value:Cb}),hb=gb,ub=o.literal("install-package"),pb=o.string(),db=o.string(),Vb=o.object({action:ub,actionLabel:pb,packageName:db}),fb=Vb,Jb=o.literal("create-stage"),Db=o.string(),Rb=o.string().uuid(),Ib=o.enum(["form","job","hook","tasklet"]),yb=o.string(),Tb=o.string(),Fb=o.string(),Eb=o.number(),kb=o.number(),Lb=o.object({x:Eb,y:kb}),jb=o.literal("create-stage"),Gb=o.object({action:Jb,actionLabel:Db,id:Rb,stageType:Ib,stageName:yb,code:Tb,filename:Fb,position:Lb,type:jb.optional()}),Pb=Gb,Nb=o.literal("add-transition"),_b=o.string(),Wb=o.string().uuid(),wb=o.string().uuid(),Mb=o.object({action:Nb,actionLabel:_b,sourceStageId:Wb,targetStageId:wb}),xb=Mb,Ob=o.literal("edit-stage"),Hb=o.string(),vb=o.string().uuid(),qb=o.enum(["form","job","hook","tasklet"]),Ub=o.string(),Bb=o.object({action:Ob,actionLabel:Hb,stageId:vb,stageType:qb,stageNewTitle:Ub}),zb=Bb,$b=o.union([fA,LA,wA,qA,sb,lb,hb,fb,Pb,xb,zb]),Kb=o.array($b);o.object({actions:Kb});const Qb=o.literal("replace-code"),Xb=o.string(),Yb=o.number(),Zb=o.number(),oC=o.object({start:Yb,end:Zb}),tC=o.string(),eC=o.object({action:Qb,actionLabel:Xb,lines:oC,newCode:tC}),nC=eC,sC=o.literal("edit-stage-name"),aC=o.string(),iC=o.string(),mC=o.object({action:sC,actionLabel:aC,newName:iC}),cC=mC,rC=o.literal("add-notifiable-email"),lC=o.string(),SC=o.string(),AC=o.object({action:rC,actionLabel:lC,email:SC}),bC=AC,CC=o.union([nC,cC,bC]),gC=o.array(CC);o.object({actions:gC});const hC=o.literal("create-table"),uC=o.string(),pC=o.string().uuid(),dC=o.string(),VC=o.object({action:hC,actionLabel:uC,tableId:pC,tableName:dC}),fC=VC,JC=o.literal("create-column"),DC=o.string(),RC=o.string().uuid(),IC=o.string(),yC=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),TC=o.object({action:JC,actionLabel:DC,tableId:RC,columnName:IC,columnType:yC}),FC=TC,EC=o.literal("set-env-var"),kC=o.string(),LC=o.string(),jC=o.string(),GC=o.object({action:EC,actionLabel:kC,key:LC,value:jC}),PC=GC,NC=o.literal("create-stage"),_C=o.string(),WC=o.string().uuid(),wC=o.enum(["form","job","hook","tasklet"]),MC=o.string(),xC=o.string(),OC=o.string(),HC=o.number(),vC=o.number(),qC=o.object({x:HC,y:vC}),UC=o.object({action:NC,actionLabel:_C,id:WC,stageType:wC,stageName:MC,code:xC,filename:OC,position:qC}),BC=UC,zC=o.literal("add-transition"),$C=o.string(),KC=o.string().uuid(),QC=o.string().uuid(),XC=o.object({action:zC,actionLabel:$C,sourceStageId:KC,targetStageId:QC}),YC=XC,ZC=o.union([fC,FC,PC,BC,YC]),og=o.array(ZC);o.object({actions:og});const tg=d,eg=V,ng=f,sg=J;o.object({id:tg,name:eg,featureFlags:ng,billingMetadata:sg});const ag=A;o.object({description:ag});const ig=o.number(),mg=o.number();o.object({offset:ig.optional(),limit:mg.optional()});const cg=Z;o.array(cg);const rg=h,lg=A;o.object({name:rg,description:lg.optional()});const Sg=qS,Ag=o.array(Sg),bg=o.number();o.object({items:Ag,totalCount:bg});const Cg=m,gg=C;o.object({email:Cg.optional(),roles:gg.optional()});const hg=o.number(),ug=o.number();o.object({offset:hg.optional(),limit:ug.optional()});const pg=ft;o.array(pg);const dg=m,Vg=C;o.object({email:dg,roles:Vg});const fg=u;o.object({emailPatterns:fg});const Jg=p;o.object({projectId:Jg});const Dg=o.literal("tokens"),Rg=o.record(o.string());o.object({type:Dg,tokens:Rg});const Ig=o.string(),yg=o.string();o.object({redirect:Ig,ping:yg});const Tg=o.string(),Fg=o.record(o.any()),Eg=o.string(),kg=o.object({key:Tg,value:Fg,type:Eg}),Lg=kg,jg=o.array(Lg),Gg=o.string(),Pg=o.string(),Ng=o.record(o.any()),D=o.enum(["waiting","running","processing","finished","failed","abandoned"]),_g=o.string(),Wg=o.string(),wg=o.string(),Mg=o.string();o.object({id:Gg,stage:Pg,data:Ng,status:D,created_at:_g,updated_at:Wg,parent_id:wg.optional(),execution_id:Mg.optional()});const xg=o.string(),Og=o.string(),Hg=o.string(),vg=o.string(),qg=D,Ug=jg,Bg=o.string(),zg=o.object({id:xg,created_at:Og,updated_at:Hg.optional(),assignee:vg.optional(),status:qg,content:Ug,stage:Bg.optional()}),$g=zg,R=o.array($g),Kg=o.string(),Qg=o.enum(["form","hook","job","script"]),Xg=o.string(),Yg=o.string(),Zg=o.boolean(),I=o.object({id:Kg,type:Qg,title:Xg,path:Yg.optional(),can_be_started:Zg}),oh=I,th=R,eh=o.number(),nh=o.boolean(),sh=o.object({selected_stage:oh,stage_run_cards:th,total_count:eh,loading:nh.optional()}),ah=sh,ih=o.array(ah),mh=ih;o.object({columns:mh});const ch=R,rh=o.string(),lh=o.array(rh),Sh=o.number();o.object({stage_run_cards:ch,not_found_stages:lh,total_count:Sh});const Ah=I;o.array(Ah);const bh=o.string(),Ch=bh,gh=o.literal("text"),hh=o.string(),uh=o.object({type:gh,text:hh}),ph=o.literal("file"),dh=o.string(),Vh=o.string(),fh=o.object({type:ph,fileName:dh,fileContent:Vh}),Jh=o.union([uh,fh]),Dh=o.array(Jh),Rh=Dh,Ih=o.record(o.any()),yh=o.string();o.object({conversationId:Ch,content:Rh,context:Ih,humanApproval:yh.optional()});const Th=o.string(),Fh=o.enum(["changed","created","deleted","moved"]),Eh=o.string(),_p=o.object({filepath:Th,event:Fh,content:Eh.optional()}),kh=o.string(),Lh=o.string(),jh=o.literal("bug"),Gh=o.string(),Ph=o.string(),Nh=o.string(),_h=o.object({name:Ph,label:Nh}),Wh=_h,wh=o.array(Wh),Mh=o.object({label:Gh,fixes:wh}),xh=Mh,Oh=o.array(xh),Hh=o.object({name:kh,label:Lh,type:jh,issues:Oh}),vh=o.string();o.object({waitingRoomUrl:vh});const qh=o.string(),Uh=o.string(),Bh=o.object({name:qh,value:Uh}),zh=o.string(),Wp=o.object({separator:zh}),$h=o.boolean(),wp=o.object({ok:$h.optional()}),Kh=g,Qh=o.enum(["form","hook","job","script"]),Xh=o.string(),Yh=o.object({type:Qh,id:Xh}),Zh=o.array(Yh),ou=o.object({file:Kh,stages:Zh}),Mp=o.array(ou),tu=o.boolean(),xp=o.object({ok:tu.optional()}),eu=o.string(),nu=o.array(eu),su=o.string(),au=o.array(su),Op=o.object({pathParts:nu,newPathParts:au}),iu=o.boolean(),Hp=o.object({ok:iu.optional()}),mu=o.string(),cu=o.number(),ru=o.enum(["delete","insert"]),lu=o.string(),Su=o.number(),Au=o.object({siteId:mu,pos:cu,type:ru,value:lu.optional(),length:Su.optional()});o.array(Au);const bu=o.boolean(),vp=o.object({ok:bu.optional()}),qp=g,Cu=o.boolean();o.object({success:Cu});const gu=Hh;o.array(gu);const hu=Bh;o.array(hu);const uu=o.string();o.object({message:uu});const pu=o.boolean(),du=o.string();o.object({success:pu,message:du});const Vu=o.string();o.object({commitHash:Vu});const fu=o.boolean(),Ju=o.string();o.object({success:fu,message:Ju});const Du=o.boolean(),Ru=o.string();o.object({success:Du,message:Ru});const Iu=o.boolean(),yu=o.string();o.object({success:Iu,message:yu});const Tu=o.record(o.string()),Fu=o.boolean();o.object({remotes:Tu,hasAbstraRemote:Fu});const Eu=o.string(),ku=o.string();o.object({branch:Eu.optional(),commitHash:ku.optional()});const Lu=o.boolean(),ju=o.string();o.object({success:Lu,message:ju});const Gu=o.boolean(),Pu=o.string(),Nu=o.string(),_u=o.array(Nu),Wu=o.string(),wu=o.string(),Mu=o.string(),xu=o.string(),Ou=o.object({hash:Wu,message:wu,author:Mu,date:xu}).nullable(),Hu=o.boolean(),vu=o.string(),qu=o.array(vu),Uu=o.string(),Bu=o.string(),zu=o.string(),$u=o.object({path:Uu,status:Bu,statusCode:zu}),Ku=o.array($u),Qu=o.boolean(),Xu=o.string().nullable(),Yu=o.boolean(),Zu=o.boolean(),op=o.string().nullable(),tp=o.string(),ep=o.array(tp),np=o.number(),sp=o.number(),ap=o.object({ahead:np,behind:sp}).nullable(),ip=o.object({success:Qu,remoteCommit:Xu,hasRemoteChanges:Yu,hasConflicts:Zu,message:op,availableBranches:ep,aheadBehind:ap}).nullable();o.object({available:Gu,branch:Pu,branches:_u,lastCommit:Ou,hasChanges:Hu,changedFiles:qu,changedFilesWithStatus:Ku,remoteStatus:ip});const mp=o.string(),cp=o.string(),rp=o.string(),lp=o.string(),Sp=o.object({hash:mp,message:cp,author:rp,date:lp}),Ap=o.array(Sp),bp=o.boolean();o.object({commits:Ap,hasMore:bp});const Cp=o.boolean(),gp=o.string();o.object({success:Cp,message:gp});const hp=m;o.object({email:hp});const up=o.enum(["ALLOWED","UNAUTHORIZED","FORBIDEN","NOT_FOUND"]);o.object({status:up});const pp=o.string(),dp=o.string().datetime({local:!0}),Vp=o.enum(["user","assistant"]),fp=o.string(),Jp=o.string().datetime({local:!0}),Dp=o.string(),Rp=o.string(),Ip=o.object({role:Vp,content:fp,createdAt:Jp,toolTitle:Dp.optional(),toolCallId:Rp.optional()}),yp=o.array(Ip),Tp=o.object({id:pp,createdAt:dp,messages:yp}),Fp=Tp;o.array(Fp);class Ep{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(t,e){const a=await fetch(`/_editor/api/linters/fix/${t}/${e}`,{method:"POST"});if(!a.ok)throw new Error("Failed to fix");return S.refetch(),a.json()}}const y=new Ep,S=k(async()=>(await y.check()).map(t=>new jp(t)));class kp{constructor(t,e){s(this,"name");s(this,"label");s(this,"ruleName");this.name=t.name,this.label=t.label,this.ruleName=e}async fix(){await y.fix(this.ruleName,this.name)}}class Lp{constructor(t,e){s(this,"label");s(this,"fixes");this.ruleName=e,this.label=t.label,this.fixes=t.fixes.map(a=>new kp(a,e))}}class jp{constructor(t){s(this,"name");s(this,"label");s(this,"type");s(this,"issues");this.name=t.name,this.label=t.label,this.type=t.type,this.issues=t.issues.map(e=>new Lp(e,this.name))}static get asyncComputed(){return S}static fromName(t){var a;const e=(a=S.result.value)==null?void 0:a.find(T=>T.name===t);if(!e)throw new Error(`Rule ${t} not found`);return e}}export{_p as A,jp as L,Mp as a,qp as b,wp as c,vp as d,Op as e,Hp as f,xp as g,Wp as h};
|
|
2
|
-
//# sourceMappingURL=linters.3c5f0c83.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var Z=Object.defineProperty;var D=(i,e,t)=>e in i?Z(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var o=(i,e,t)=>(D(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.1324a1a9.js";import{d as O,am as I,c as w,o as p,a5 as _,a7 as R,h as U,e6 as j,e as v,r as d,a as T,b as F,g as q,ed as J,u as x,aV as V,_ as z,f as G,eH as W,i as Q,ae as X,q as Y,N as $}from"./jwt-decode.esm.992666e9.js";import{P as K}from"./record.87ef3b68.js";import{u as b}from"./uuid.9161765c.js";import{I as ee}from"./PhCopySimple.vue.ecffb042.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="44a93bf0-b84e-496e-998e-088b36f72b4d",i._sentryDebugIdIdentifier="sentry-dbid-44a93bf0-b84e-496e-998e-088b36f72b4d")}catch{}})();const te=["width","height","fill","transform"],se={key:0},oe=v("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),re=[oe],ie={key:1},ae=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ne=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),le=[ae,ne],ce={key:2},he=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),de=[he],ue={key:3},ge=v("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),fe=[ge],pe={key:4},ye=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),ve=[ye],_e={key:5},we=v("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),me=[we],be={name:"PhCheckCircle"},Se=O({...be,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=I("weight","regular"),s=I("size","1em"),r=I("color","currentColor"),c=I("mirrored",!1),l=w(()=>{var n;return(n=e.weight)!=null?n:t}),u=w(()=>{var n;return(n=e.size)!=null?n:s}),h=w(()=>{var n;return(n=e.color)!=null?n:r}),g=w(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,f)=>(p(),_("svg",j({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:h.value,transform:g.value},n.$attrs),[R(n.$slots,"default"),l.value==="bold"?(p(),_("g",se,re)):l.value==="duotone"?(p(),_("g",ie,le)):l.value==="fill"?(p(),_("g",ce,de)):l.value==="light"?(p(),_("g",ue,fe)):l.value==="regular"?(p(),_("g",pe,ve)):l.value==="thin"?(p(),_("g",_e,me)):U("",!0)],16,te))}});class B{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class Ce extends B{constructor(){super("___JSON_MODE___",[])}reduceChar(e){try{this.staging+=e;const t=JSON.parse(this.staging);return this.acc.push(t),this.staging="",t}catch{return}}reduce(e){const t=[];for(const s of e){const r=this.reduceChar(s);r!==void 0&&t.push(r)}return t}}class Ie extends B{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class N{constructor(){o(this,"mode");o(this,"modes",[new Ie,new Ce]);o(this,"staging","");o(this,"chunkOnBuffer","");o(this,"flagMap");o(this,"flagPrefixes");this.mode=this.modes[0],this.flagMap=new Map,this.flagPrefixes=new Set;for(const e of this.modes){this.flagMap.set(e.flag,e);for(let t=1;t<e.flag.length;t++)this.flagPrefixes.add(e.flag.slice(0,t))}}*reduce(e){for(const t of e){if(this.staging+=t,this.flagMap.has(this.staging)){this.mode=this.flagMap.get(this.staging),this.staging="";continue}if(!this.flagPrefixes.has(this.staging))for(;this.staging.length>0;){const s=this.staging[0];this.staging=this.staging.slice(1);const r=this.mode.reduce(s);if(r!==void 0&&(Array.isArray(r)?yield*r:yield r),this.flagPrefixes.has(this.staging))break}}}*reduceInChunks(e,t){let s="";for(const r of this.reduce(t))if(typeof r=="string")for(s+=r;s.length>=e;)yield s.slice(0,e),s=s.slice(e);else s.length>0&&(yield s,s=""),yield r;s.length>0&&(yield s)}}const P=300;class Ae{constructor(){o(this,"_baseUrl","/_editor/api/ai");o(this,"_headers",{"Content-Type":"application/json"})}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},u=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!u.ok)throw new Error("Failed to send message");const h=(n=u.body)==null?void 0:n.getReader();if(!h)throw new Error("No response body");const g=new N;for(;!r();){const f=await h.read();if(f.done)break;for(const y of g.reduceInChunks(P,new TextDecoder().decode(f.value)))yield y}}async deleteThread(e){if(!(await fetch(`${this._baseUrl}/thread/${e}`,{method:"DELETE",headers:this._headers})).ok)throw new Error("Failed to delete thread")}async abortStreaming(e){if(!(await fetch(`${this._baseUrl}/abort`,{method:"POST",headers:this._headers,body:JSON.stringify({langGraphThreadId:e})})).ok)throw new Error("Failed to abort streaming")}async getHistory(e,t){const s=await fetch(`${this._baseUrl}/history?limit=${e}&offset=${t}`,{method:"GET"});if(!s.ok)throw new Error("Failed to fetch history");return await s.json()}async vote(e,t,s,r){const c={vote:e,question:t,answer:s,context:r};await fetch(`${this._baseUrl}/vote`,{method:"POST",headers:this._headers,body:JSON.stringify(c)})}startConversation(){return new Promise((e,t)=>{fetch(`${this._baseUrl}/start-conversation`,{method:"POST",headers:this._headers}).then(s=>{if(!s.ok)throw new Error("Failed to start conversation");return s.json()}).then(s=>e(s)).catch(s=>t(s))})}}class Te{constructor(e){o(this,"projectId");o(this,"baseUrl");this.projectId=e,this.baseUrl=`projects/${e}`}startConversation(){throw new Error("Method not implemented.")}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},h=(n=(await C.postRaw(`${this.baseUrl}/messages`,l)).body)==null?void 0:n.getReader();if(!h)throw new Error("No response body");const g=new N;for(;!r();){const f=await h.read();if(f.done)break;for(const y of g.reduceInChunks(P,new TextDecoder().decode(f.value)))yield y}}async abortStreaming(e){await C.post(`${this.baseUrl}/abort`,{langGraphThreadId:e})}async getHistory(e,t){const s={limit:`${e}`,offset:`${t}`};return await C.get(`${this.baseUrl}/history`,s)}async deleteThread(e){await C.delete(`${this.baseUrl}/threads/${e}`)}async vote(e,t,s,r){throw new Error("Method not implemented.")}}const xe=O({__name:"CopyButton",props:{textToCopy:{}},setup(i){const e=i,t=d(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},r=w(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(p(),T(x(V),null,{title:F(()=>[q(J(r.value),1)]),default:F(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(p(),T(x(Se),{key:1,color:"#fff",size:"22"})):(p(),T(x(ee),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const Ee=z(xe,[["__scopeId","data-v-9f87bac2"]]);class L{constructor(e,t){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_hasError",d(null));o(this,"_isLoadingHistory",d(!1));o(this,"_history",d([]));o(this,"_threadHistoryFetchInfo",d({limit:10,offset:0,done:!1}));o(this,"_recentlyAccessedThreads",d([]));o(this,"loadingAbort",d(!1));o(this,"codeForApproval",d(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${b()}`,this._recentlyAccessedThreads.value.unshift({id:this.conversationId.value,messages:[],createdAt:new Date().toISOString()})});o(this,"fetchHistory",async()=>{this._isLoadingHistory.value=!0;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);this._history.value=e,this._isLoadingHistory.value=!1});o(this,"loadMoreHistory",async()=>{this._isLoadingHistory.value=!0,this._threadHistoryFetchInfo.value.offset+=this._threadHistoryFetchInfo.value.limit;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);e.length<this._threadHistoryFetchInfo.value.limit&&(this._threadHistoryFetchInfo.value.done=!0);const t=[...this._history.value,...e];this._history.value=t,this._isLoadingHistory.value=!1});o(this,"setError",e=>{this._hasError.value=e});o(this,"_fillChat",e=>{this._logService.clear();for(const t of e)t.toolTitle?(this._logService.log({type:"ai-tool-approval",toolCallId:t.toolCallId,description:t.toolTitle,args:{},disabled:!1,needsApproval:!1,loading:!1}),this._logService.log({type:"ai-tool-call-response",toolCallId:t.toolCallId,response:t.content})):this._logService.log({type:t.role==="user"?"ai-input":"ai-output",log:t.content});this.renderCopyButtons()});o(this,"moveThreadFromHistoryToRecents",e=>{this.conversationId.value=e;const t=this._history.value.find(r=>r.id===e);if(!t)throw new Error(`Thread ${e} not found`);const s=this._recentlyAccessedThreads.value.findIndex(r=>r.id===e);s!==-1&&this._recentlyAccessedThreads.value.splice(s,1),this._recentlyAccessedThreads.value.unshift(t),this._fillChat(t.messages)});o(this,"deleteThread",e=>{this._repository.deleteThread(e),this.removeFromRecentlyAccessedThreads(e);const t=this._history.value.findIndex(s=>s.id===e);t!==-1&&this._history.value.splice(t,1)});o(this,"setCurrentThreadFromRecents",e=>{this.conversationId.value=e;const t=this._recentlyAccessedThreads.value.findIndex(r=>r.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);const[s]=this._recentlyAccessedThreads.value.splice(t,1);this._recentlyAccessedThreads.value.unshift(s),this._fillChat(s.messages)});o(this,"removeFromRecentlyAccessedThreads",e=>{const t=this._recentlyAccessedThreads.value.findIndex(s=>s.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);if(this._recentlyAccessedThreads.value.splice(t,1),this._logService.clear(),this._recentlyAccessedThreads.value.length===0)this.conversationId.value=null;else{const s=this._recentlyAccessedThreads.value[0];this.conversationId.value=s.id,this._fillChat(s.messages)}});o(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const s=G(Ee,{textToCopy:t.textContent});W(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t,s=0)=>{var r,c,l,u;this.conversationId.value||await this.setupThread(),s===0&&this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const h=b(),g=this.conversationId.value;if(!g)throw new Error("Conversation ID is not set");const n=[{type:"text",text:this._input.value}],f={currentEditorUrl:window.location.href,panesInfo:e||{}},y=this._repository.sendMessage(g,n,f,this.isIdle.bind(this),t);let k="",M=h,A="";for await(const m of y){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=m;if(typeof a=="string")k+=a,A+=a,this._logService.log({type:"ai-output",log:A},M);else if(a instanceof Object)if(a.type==="ai-tool-approval")if(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!0,loading:!1}),((r=a.args)==null?void 0:r.file)&&((c=a.args)==null?void 0:c.replacements)){let S=a.args.replacements;typeof S=="string"&&(S=JSON.parse(S)),this.codeForApproval.value={file:a.args.file,replacements:S.map(H=>({oldContext:H.old_context,newContext:H.new_context}))}}else((l=a.args)==null?void 0:l.file)&&((u=a.args)==null?void 0:u.content)&&(this.codeForApproval.value={file:a.args.file,code:a.args.content});else a.type==="ai-tool-call"?(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!1,loading:!1}),M=b(),A=""):a.type==="ai-tool-call-response"&&this._logService.log({type:"ai-tool-call-response",toolCallId:a.toolCallId,response:a.response})}this._recentlyAccessedThreads.value=this._recentlyAccessedThreads.value.map(m=>(m.id===this.conversationId.value&&m.messages.unshift({role:"assistant",content:k,createdAt:new Date().toISOString()}),m)),this._input.value="",this._smartChatState.value="idle",this.renderCopyButtons()}catch(h){console.error(h),Q(h),s>3?(this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),this._input.value="",this._smartChatState.value="idle",this.renderCopyButtons()):(await this.abort(),this._input.value="There was an unexpected error, please try again. You must continue from where you stopped as if nothing happened.",this.send(e,t,s+1))}});o(this,"abort",async()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this.loadingAbort.value=!0,await this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle",this.loadingAbort.value=!1});o(this,"isLoadingHistory",()=>this._isLoadingHistory.value);o(this,"isProcessing",()=>this._smartChatState.value==="processing");o(this,"isAnswering",()=>this._smartChatState.value==="answering");o(this,"isIdle",()=>this._smartChatState.value==="idle");o(this,"setSeen",()=>{this._badgeState.value={type:"seen"}});o(this,"setUnseen",e=>{this._badgeState.value={type:"unseen",count:this._badgeState.value.type==="unseen"?this._badgeState.value.count+1:1,severity:e.type==="stderr"?"error":"info"}});o(this,"setInput",e=>{e=e==null?void 0:e.trimEnd(),this._input.value=e||""});o(this,"regenerateLast",async()=>{for(let e=this._logService.logs.length-1;e>=0;e--){const t=this._logService.logs[e];if(t.type==="ai-input"){this.setInput(t.log);break}}await this.send()});o(this,"fixJson",async(e,t)=>{this._logService.clear(),this._logService.log({type:"ai-input",log:`here is my json code:
|
|
2
|
-
${e}
|
|
3
|
-
And I got this error:`}),this._logService.log({type:"stderr",log:t}),this.setSeen(),this.setInput("Can you fix this JSON?"),await this.send()});o(this,"askAboutError",async(e,t)=>{this._logService.clear(),this.setInput(["Fix the following error based on my logs:",...e.entries.map(s=>s.payload.text),`My current code is: ${t||"No code provided"}`].join(`
|
|
4
|
-
`)),await this.send()});o(this,"fixIssueWithAI",async(e,t)=>{this._logService.clear(),this.setInput(["Fix the following issue in my code:",e.label,t.label].join(`
|
|
5
|
-
`)),await this.send()});o(this,"vote",async(e,t)=>{const s=this._logService.logs[e],r=this._logService.logs[e-1],c=this._logService.logs.slice(0,e-1);await this._repository.vote(t,r,s,c)});this._repository=e,this._logService=t,this.conversationId=d(null),this._input=d(""),this._badgeState=d({type:"seen"}),this._smartChatState=d("idle")}init(){this.setupThread(),this.renderCopyButtons(),this.fetchHistory()}get hasError(){var e;return((e=this._hasError.value)==null?void 0:e.payload)||null}get logService(){return this._logService}shouldRenderLoadMoreHistory(){return!this._threadHistoryFetchInfo.value.done}get pastThreads(){return this._history.value.map(e=>e.messages.length===0?{threadId:e.id,title:"New thread"}:{threadId:e.id,title:e.messages[0].content.slice(0,20)+"..."})}get recentlyAccessedThreads(){return this._recentlyAccessedThreads.value.map(e=>({threadId:e.id,title:e.messages.length>0?e.messages[0].content.slice(0,20)+"...":"New thread"}))}get badgeState(){return this._badgeState.value}get input(){return this._input.value}}class E{constructor(){o(this,"logState",X({log:[]}));o(this,"_listeners",{});o(this,"getLastExecutionLogs",e=>{let t="";for(let s=this.logs.length-1;s>=0;s--){const r=this.logs[s];if(r.type!==e&&t.length>0)break;r.type===e&&(t=`${r.log}
|
|
6
|
-
${t}`)}return t})}static create(){return new E}get logs(){return this.logState.log}hasAiLogs(){return this.logs.some(e=>e.type==="ai-input"||e.type==="ai-output")}log(e,t){if(e.type!=="restart"&&e.type!=="ai-tool-approval"&&e.type!=="ai-tool-call-response"&&"log"in e&&e.log.trim()==="")return;const s=t?this.logs.find(r=>r.id===t):null;return s?(s.type==="stderr"&&e.type==="stderr"&&(e.log=s.log+`
|
|
7
|
-
`+e.log),Object.assign(s,e)):this.logs.push({...e,id:t||b()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=b();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Oe=new K,Be=Y("omniChat",()=>{const i=d(!0),e=d(!1),t=E.create(),s=$(),r=$(),c=(f,y)=>{if(!r.value)if(f==="console"){if(!y)throw new Error("Project ID is required for console chat");s.value=new Te(y),r.value=new L(s.value,t)}else s.value=new Ae,r.value=new L(s.value,t)},l=()=>{e.value=!0},u=()=>{e.value=!1},h=()=>{i.value=!0,l()},g=()=>{i.value=!1,u()};return{isOpen:i,isInputFocused:e,focusInput:l,blurInput:u,open:h,close:g,toggle:()=>{i.value?g():h()},controller:w(()=>r.value),repository:s,init:c}});export{Se as H,Ae as L,L as S,E as a,Oe as o,Be as u};
|
|
8
|
-
//# sourceMappingURL=omniChatStore.2b85c342.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{y as n,z as r,B as o,C as c,P as d,D as p,E as m,F as u,G as s,H as f,I as b,J as g,K as y}from"./jwt-decode.esm.992666e9.js";import{a as l,b as i}from"./router.55c0ff56.js";import{s as w}from"./workspaceStore.4f0c433f.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.efd9d3fa.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.js";import"./PlayerConfigProvider.2acd3a77.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]="b4aaa133-663c-4b5c-82a8-285e4278d0a8",t._sentryDebugIdIdentifier="sentry-dbid-b4aaa133-663c-4b5c-82a8-285e4278d0a8")}catch{}})();class I{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await l(),a=n(),e=r({render:()=>f(h)});o.init(),c(e,i,t),I.init(),e.use(i),e.use(a),e.use(d),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",m),e.component("Message",u),s(e,b),s(e,g),s(e,y)})();
|
|
2
|
-
//# sourceMappingURL=player.5b7eaa25.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.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]="36d928a6-2db5-4d4d-976f-24d00cf8f58f",e._sentryDebugIdIdentifier="sentry-dbid-36d928a6-2db5-4d4d-976f-24d00cf8f58f")}catch{}})();const l=1e3,s=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var d;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(d=e.interval)!=null?d:l)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{s as u};
|
|
2
|
-
//# sourceMappingURL=polling.88a266b3.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as s}from"./url.f490879d.js";import"./jwt-decode.esm.992666e9.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]="d6fae0a7-e0ba-4c32-8412-af39d14c2c19",e._sentryDebugIdIdentifier="sentry-dbid-d6fae0a7-e0ba-4c32-8412-af39d14c2c19")}catch{}})();function c(e){return e.startsWith("/")?e.slice(1):e}function f(e,r,n={}){if(s(r)){const a=new URL(r),t=new URLSearchParams(n),i=new URLSearchParams(a.search),o=new URLSearchParams([...i,...t]);return a.search=o.toString(),{action:"REPLACE_LOCAL_HREF",newHref:a.toString()}}else{const a=r.replace(/\/$/,"");if(e==="player")return{action:"GOTO_FORM_PLAYER",path:c(a),queryParams:n};if(e==="editor")return{action:"GOTO_FORM_EDITOR",path:c(a),queryParams:n};if(e==="preview")return{action:"GOTO_FORM_PLAYER",path:c(a),queryParams:n};throw new Error(`Invalid routing ${e}`)}}async function w(e,r,n,a={}){const t=f(e,n,a);switch(t.action){case"REPLACE_LOCAL_HREF":window.location.href=t.newHref;break;case"GOTO_FORM_EDITOR":await r.push({name:"formEditor",params:{formPath:t.path},query:t.queryParams});break;case"GOTO_FORM_PLAYER":await r.push({name:e==="preview"?"formPreview":"formPlayer",params:{formPath:t.path},query:t.queryParams});break;default:throw new Error("Invalid routing")}}export{w as r};
|
|
2
|
-
//# sourceMappingURL=redirect.2fa4f8cf.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s,t as d,v as t,x as m}from"./jwt-decode.esm.992666e9.js";import{a as u}from"./workspaceStore.4f0c433f.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]="92959372-c055-4bdf-8a9a-5f2c9d38d807",e._sentryDebugIdIdentifier="sentry-dbid-92959372-c055-4bdf-8a9a-5f2c9d38d807")}catch{}})();const b=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"078cc30f42162e0b57cd92c259a90bf299f25aec"}catch(e){return console.error("Failed to fetch Abstra version:",e),"078cc30f42162e0b57cd92c259a90bf299f25aec"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback.df2bdeb0.js"),["assets/OidcLoginCallback.df2bdeb0.js","assets/workspaceStore.4f0c433f.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback.2ba5316d.js"),["assets/OidcLogoutCallback.2ba5316d.js","assets/workspaceStore.4f0c433f.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login.0b618d09.js"),["assets/Login.0b618d09.js","assets/Login.vue_vue_type_script_setup_true_lang.a92a80d0.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/CircularLoading.3e4ddd6d.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.83b476a4.js","assets/Logo.b7d81119.css","assets/string.f6a7565f.js","assets/index.3ff1c0be.js","assets/Login.75d13f6c.css","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main.88719eb3.js"),["assets/Main.88719eb3.js","assets/PlayerNavbar.13876ce7.js","assets/userStore.9e7a540a.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.4f0c433f.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/metadata.cfad5458.js","assets/PhUserList.vue.3791cb59.js","assets/PhWebhooksLogo.vue.fe81fb65.js","assets/LoadingOutlined.ee72932a.js","assets/PhSignOut.vue.d00d3657.js","assets/index.9e0166fe.js","assets/PlayerNavbar.77209eae.css","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home.42964d5b.js"),["assets/Home.42964d5b.js","assets/metadata.cfad5458.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/PhUserList.vue.3791cb59.js","assets/PhWebhooksLogo.vue.fe81fb65.js","assets/Watermark.40c8c47e.js","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/constants.36bf7d70.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.ecfa9cb2.js","assets/index.3e7471f4.js","assets/Card.957a87b2.js","assets/LoadingOutlined.ee72932a.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error.a81122c4.js"),["assets/Error.a81122c4.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js","assets/Logo.83b476a4.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/constants.36bf7d70.js","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/Card.957a87b2.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form.bfea5673.js"),["assets/Form.bfea5673.js","assets/userStore.9e7a540a.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/FormRunner.8bbe841e.js","assets/Login.vue_vue_type_script_setup_true_lang.a92a80d0.js","assets/workspaceStore.4f0c433f.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/CircularLoading.3e4ddd6d.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.83b476a4.js","assets/Logo.b7d81119.css","assets/string.f6a7565f.js","assets/index.3ff1c0be.js","assets/Login.75d13f6c.css","assets/Steps.f820fb18.js","assets/index.a7b8e25e.js","assets/Steps.2880920a.css","assets/Watermark.40c8c47e.js","assets/constants.36bf7d70.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.2fa4f8cf.js","assets/asyncComputed.1b787534.js","assets/uuid.9161765c.js","assets/Form.7493bc0a.css"]),meta:{hideLogin:!0}}]}],o=s({history:d("/"),routes:p,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),l=e=>async(a,r)=>{if(m(a,r),a.meta.allowUnauthenticated)return;const n=await u(a.path),{redirect:c,...i}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...i,redirect:c||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"}})}};o.beforeEach(l(o));export{b as a,o as b,l as g,p as r};
|
|
2
|
-
//# sourceMappingURL=router.55c0ff56.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L as d}from"./jwt-decode.esm.992666e9.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]="ae9516eb-89b3-4a03-9f8a-62f2c2ac8497",e._sentryDebugIdIdentifier="sentry-dbid-ae9516eb-89b3-4a03-9f8a-62f2c2ac8497")}catch{}})();function p(e){return d.string().email().safeParse(e).success}function w(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e,r,n=!1,a=!0,s=!1,t=!0){const o=(a?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),f=`a-zA-Z0-9${s?"/":""}${t?"-":""}`,c=new RegExp(`[^${f}]`,"g"),l=o.replace(c,"_"),u=n?l:l.replace(/_+/g,"_");return r?u:u.replace(/_$/,"")}function b(e){var t;const n=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=/[a-z0-9]+/g,s=n.match(a);return(t=s==null?void 0:s.join("-"))!=null?t:""}function m(e,r){if(e.length===0||r.length===0)return!1;const n=e.toLowerCase(),a=r.toLowerCase();return n.split("").reduce((t,i)=>{var f;if(t===!1)return!1;const o=(f=t[t.length-1])!=null?f:null;if(o===null){const c=a.indexOf(i);return c===-1?!1:[c]}else{const l=a.slice(o+1).indexOf(i);return l===-1?!1:[...t,o+1+l]}},[])}export{h as a,w as c,m as f,p as i,b as n};
|
|
2
|
-
//# sourceMappingURL=string.f6a7565f.js.map
|