abstra 3.23.7__py3-none-any.whl → 3.23.9__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.7.dist-info → abstra-3.23.9.dist-info}/METADATA +1 -1
- {abstra-3.23.7.dist-info → abstra-3.23.9.dist-info}/RECORD +196 -191
- abstra_internals/consts/filepaths.py +1 -1
- abstra_internals/controllers/codebase.py +9 -18
- abstra_internals/controllers/codebase_events.py +6 -4
- abstra_internals/controllers/main.py +56 -67
- abstra_internals/entities/forms/template.py +84 -5
- abstra_internals/interface/cli/deploy.py +1 -3
- abstra_internals/modules_test.py +2 -2
- abstra_internals/repositories/linter/repository.py +9 -40
- abstra_internals/repositories/linter/rules/__init__.py +2 -0
- abstra_internals/repositories/linter/rules/big_py_files.py +40 -0
- abstra_internals/repositories/linter/rules/big_py_files_test.py +93 -0
- abstra_internals/repositories/linter/rules/duplicate_package_in_requirements.py +16 -4
- abstra_internals/repositories/linter/rules/duplicate_package_in_requirements_test.py +24 -3
- abstra_internals/repositories/linter/rules/env_in_bundle.py +3 -6
- abstra_internals/repositories/linter/rules/env_in_bundle_test.py +4 -3
- abstra_internals/repositories/linter/rules/missing_packages_in_requirements.py +12 -1
- abstra_internals/repositories/linter/rules/syntax_errors.py +2 -19
- abstra_internals/repositories/linter/rules/venv_in_bundle.py +3 -2
- abstra_internals/server/routes/requirements.py +7 -3
- abstra_internals/server/routes/workspace.py +0 -10
- abstra_internals/services/file_watcher.py +17 -14
- abstra_internals/services/fs.py +144 -99
- abstra_internals/services/fs_test.py +303 -8
- abstra_internals/services/requirements.py +271 -81
- abstra_internals/services/requirements_test.py +528 -164
- abstra_internals/templates/__init__.py +3 -1
- 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.9812dba9.js → AbstraButton.vue_vue_type_script_setup_true_lang.e74c1d9b.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.f9d9018b.js +2 -0
- abstra_statics/dist/assets/{ApiKeys.902caf82.js → ApiKeys.1d2b9051.js} +2 -2
- abstra_statics/dist/assets/App.24328bec.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.13b52476.js +2 -0
- abstra_statics/dist/assets/BaseLayout.e2546be2.js +2 -0
- abstra_statics/dist/assets/{Billing.877a4614.js → Billing.ed96ff6d.js} +2 -2
- abstra_statics/dist/assets/{Breadcrumb.f312111a.js → Breadcrumb.21c760be.js} +2 -2
- abstra_statics/dist/assets/{Builds.a2c45c39.js → Builds.e0882931.js} +2 -2
- abstra_statics/dist/assets/{Card.5f504e7b.js → Card.714646f7.js} +5 -5
- abstra_statics/dist/assets/{CircularLoading.6f511e29.js → CircularLoading.5ac43298.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.04918c3d.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.78da900d.js +2 -0
- abstra_statics/dist/assets/{ConnectorsView.17764dde.css → ConnectorsView.aeb00ce8.css} +1 -1
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.d7b17e09.js +2 -0
- abstra_statics/dist/assets/ContentLayout.3a69fd49.js +2 -0
- abstra_statics/dist/assets/{CrudView.5a642b48.js → CrudView.77b58a5a.js} +2 -2
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.836e8f5e.js +2 -0
- abstra_statics/dist/assets/{EditorLogin.d2224782.js → EditorLogin.4d61e44f.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.5e769180.js → EditorsView.08a5cd3a.js} +2 -2
- abstra_statics/dist/assets/EnvVars.2f33a113.js +2 -0
- abstra_statics/dist/assets/{Error.dd899e38.js → Error.8a6cfa01.js} +2 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.93703670.js +2 -0
- abstra_statics/dist/assets/Files.6d07f9be.js +2 -0
- abstra_statics/dist/assets/Form.c1a08fa6.js +2 -0
- abstra_statics/dist/assets/{FormRunner.1c6a88dd.js → FormRunner.a00b296a.js} +2 -2
- abstra_statics/dist/assets/Home.332f8b44.js +2 -0
- abstra_statics/dist/assets/Home.964d824d.js +2 -0
- abstra_statics/dist/assets/{Live.a691b0eb.js → Live.ee0e73dd.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.cbb8e068.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.644899c2.js +2 -0
- abstra_statics/dist/assets/{Login.f96858b0.js → Login.0182140b.js} +2 -2
- abstra_statics/dist/assets/Login.ebf77147.js +2 -0
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.7d56cca3.js → Login.vue_vue_type_script_setup_true_lang.721bd893.js} +2 -2
- abstra_statics/dist/assets/Logo.c74119c7.js +2 -0
- abstra_statics/dist/assets/{Logs.8426d360.js → Logs.7a458aba.js} +2 -2
- abstra_statics/dist/assets/{LogsController.318117fd.js → LogsController.e7ad74db.js} +2 -2
- abstra_statics/dist/assets/Main.a2c84f7b.js +2 -0
- abstra_statics/dist/assets/{MockForm.f8600bec.js → MockForm.50f237ad.js} +2 -2
- abstra_statics/dist/assets/Navbar.0cf9e650.js +2 -0
- abstra_statics/dist/assets/{NewEditor.d3300cf0.css → NewEditor.0044878f.css} +1 -1
- abstra_statics/dist/assets/NewEditor.4519d8ac.js +8 -0
- abstra_statics/dist/assets/OidcLoginCallback.073de6bd.js +2 -0
- abstra_statics/dist/assets/{OidcLogoutCallback.485fb0b9.js → OidcLogoutCallback.e474320b.js} +2 -2
- abstra_statics/dist/assets/{OmniChat.097bec71.js → OmniChat.1a6ad90c.js} +4 -4
- abstra_statics/dist/assets/{OmniChat.7660057c.css → OmniChat.8a35a659.css} +1 -1
- abstra_statics/dist/assets/{OnboardingView.c9a3343e.js → OnboardingView.c4e859f1.js} +2 -2
- abstra_statics/dist/assets/{Organization.0833b7fe.js → Organization.432776d6.js} +2 -2
- abstra_statics/dist/assets/Organizations.cd6f9f61.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.aaa06bc0.js → PhArrowCounterClockwise.vue.72ed46a0.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.ee4af292.js → PhArrowSquareOut.vue.ddb450f1.js} +2 -2
- abstra_statics/dist/assets/{PhBookBookmark.vue.681c5036.js → PhBookBookmark.vue.4a6ba053.js} +2 -2
- abstra_statics/dist/assets/{PhChats.vue.d61c3615.js → PhChats.vue.870bbba9.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.0457e9b2.js → PhClockCounterClockwise.vue.123f0e9b.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.391b0ef7.js → PhCopy.vue.70df4792.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.e887b43c.js → PhCopySimple.vue.f5246c24.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.d070a184.js → PhCube.vue.8900248a.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.f4b60771.js → PhDotsThreeVertical.vue.14516e2e.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.3444d06b.js → PhDownloadSimple.vue.f8dc6a01.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.d5788203.js → PhFolderPlus.vue.65855487.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.e2b120bb.js → PhGear.vue.172823d3.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.cf1e08ca.js → PhKey.vue.9d78ceda.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.20f1b3c4.js → PhPencil.vue.f326c6d0.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.ec2125f5.js → PhPencilSimple.vue.31afd9b3.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimpleLine.vue.22e75a5a.js → PhPencilSimpleLine.vue.394969fe.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.27c6f935.js → PhRocket.vue.b69be43b.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.61b63ec0.js → PhSignOut.vue.6be07f90.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.fd6a9ad7.js → PhSparkle.vue.ca8d1014.js} +2 -2
- abstra_statics/dist/assets/{PhUserList.vue.abdd6da1.js → PhUserList.vue.43e7a38a.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.85d1a1f0.js → PhUsersThree.vue.fb26521a.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.00b65b2c.js → PhWebhooksLogo.vue.ea667ed2.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.10f46997.js → PlayerConfigProvider.5aec8c16.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.f2f66852.js → PlayerNavbar.21883569.js} +2 -2
- abstra_statics/dist/assets/Project.a987ec46.js +2 -0
- abstra_statics/dist/assets/ProjectLogin.583ce83f.js +2 -0
- abstra_statics/dist/assets/{ProjectSettings.50027450.js → ProjectSettings.b949f40f.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.107f5e34.js → ProjectsView.7de28b8a.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.cd025dae.js → SaveButton.f6870993.js} +2 -2
- abstra_statics/dist/assets/{files.f66880c3.js → ScrollArea.vue_vue_type_script_setup_true_lang.21ea9f38.js} +2 -2
- abstra_statics/dist/assets/{Sidebar.c3d5d187.js → Sidebar.1250b960.js} +2 -2
- abstra_statics/dist/assets/Sql.3cdc910a.css +1 -0
- abstra_statics/dist/assets/Sql.a8abfb57.js +5 -0
- abstra_statics/dist/assets/Steps.2f177a1f.js +2 -0
- abstra_statics/dist/assets/{TableEditor.7b07ece4.js → TableEditor.25046840.js} +2 -2
- abstra_statics/dist/assets/Tables.f0ea43f5.js +2 -0
- abstra_statics/dist/assets/{TablesDiagram.6736c045.js → TablesDiagram.eb43ee41.js} +3 -3
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.a35b4471.js +2 -0
- abstra_statics/dist/assets/Tasks.5fde94ea.js +2 -0
- abstra_statics/dist/assets/{UploadOutlined.732440a5.js → UploadOutlined.3828d031.js} +2 -2
- abstra_statics/dist/assets/{View.283e52c1.js → View.f0be1038.js} +2 -2
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.bddece9c.js +2 -0
- abstra_statics/dist/assets/{Watermark.6076ef47.js → Watermark.1655dad8.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.6a012d5b.js → WebEditor.f6ba39c6.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.70e3ecb3.js +2 -0
- abstra_statics/dist/assets/{ant-design.4302db30.js → ant-design.1cc60cde.js} +2 -2
- abstra_statics/dist/assets/{apiKey.1c96dd66.js → apiKey.49b8decf.js} +2 -2
- abstra_statics/dist/assets/asyncComputed.92146382.js +2 -0
- abstra_statics/dist/assets/{build.656c5601.js → build.261de82e.js} +2 -2
- abstra_statics/dist/assets/{colorHelpers.2a607581.js → colorHelpers.59e5ee56.js} +2 -2
- abstra_statics/dist/assets/{console.9b13e1da.js → console.0548c6a0.js} +2 -2
- abstra_statics/dist/assets/constants.f352d89b.js +2 -0
- abstra_statics/dist/assets/contracts.generated.ac0bb8ea.js +2 -0
- abstra_statics/dist/assets/{cssMode.6d17ca95.js → cssMode.c55f29d9.js} +2 -2
- abstra_statics/dist/assets/datetime.780c5d6b.js +2 -0
- abstra_statics/dist/assets/dayjs.b139fc88.js +2 -0
- abstra_statics/dist/assets/editor.f7e5ca32.js +2 -0
- abstra_statics/dist/assets/editor.main.eea24677.js +2 -0
- abstra_statics/dist/assets/fetch.e3c8dd68.js +2 -0
- abstra_statics/dist/assets/{folder.9092348a.js → folder.934b13ce.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.82f2cb8c.js → freemarker2.72aea997.js} +2 -2
- abstra_statics/dist/assets/{handlebars.36ec2a3c.js → handlebars.607ed329.js} +2 -2
- abstra_statics/dist/assets/{html.845da565.js → html.1cebc021.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.980f76b4.js → htmlMode.b3ab207b.js} +2 -2
- abstra_statics/dist/assets/{index.0f357aec.js → index.2efe5ae2.js} +2 -2
- abstra_statics/dist/assets/{index.55d10b71.js → index.424d5056.js} +2 -2
- abstra_statics/dist/assets/{index.1e12c884.js → index.61710ff9.js} +2 -2
- abstra_statics/dist/assets/{index.a2b9d34b.js → index.8ea8b90b.js} +2 -2
- abstra_statics/dist/assets/{index.1551abd6.js → index.a5ddebc4.js} +3 -3
- abstra_statics/dist/assets/{index.5dbe93c3.js → index.cef986ac.js} +3 -3
- abstra_statics/dist/assets/{index.81a2ae08.js → index.d73f307c.js} +2 -2
- abstra_statics/dist/assets/{index.b3b62f71.js → index.ded0f9ab.js} +2 -2
- abstra_statics/dist/assets/{index.4ecba4f7.js → index.e189c6ed.js} +2 -2
- abstra_statics/dist/assets/{javascript.b0154182.js → javascript.595850d9.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.f86e9042.js → jsonMode.e3ed1113.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.d86c27e0.js → jwt-decode.esm.1b301f74.js} +8 -8
- abstra_statics/dist/assets/linters.0018d44c.js +2 -0
- abstra_statics/dist/assets/{liquid.029287f8.js → liquid.3ef83be8.js} +3 -3
- abstra_statics/dist/assets/member.3c3a769a.js +2 -0
- abstra_statics/dist/assets/{metadata.18d0a278.js → metadata.e6e62729.js} +2 -2
- abstra_statics/dist/assets/omniChatStore.8902e4de.js +8 -0
- abstra_statics/dist/assets/{organization.8b2c1c53.js → organization.c92a9190.js} +2 -2
- abstra_statics/dist/assets/player.82dc9e2f.js +2 -0
- abstra_statics/dist/assets/{plotly.min.10467de2.js → plotly.min.ac699f04.js} +2 -2
- abstra_statics/dist/assets/polling.a3bae209.js +2 -0
- abstra_statics/dist/assets/{project.33809d47.js → project.48a235c1.js} +2 -2
- abstra_statics/dist/assets/{python.ee23fd86.js → python.b69cfb2a.js} +2 -2
- abstra_statics/dist/assets/{razor.4ae6d2a2.js → razor.0f42fef9.js} +2 -2
- abstra_statics/dist/assets/{record.d087b37e.js → record.b96b0275.js} +2 -2
- abstra_statics/dist/assets/{redirect.c06a7828.js → redirect.ebab71ed.js} +2 -2
- abstra_statics/dist/assets/repository.4920fb3b.js +2 -0
- abstra_statics/dist/assets/{repository.6fa74dff.js → repository.c0dc4e22.js} +2 -2
- abstra_statics/dist/assets/router.8882099a.js +2 -0
- abstra_statics/dist/assets/{router.7936fd78.js → router.99a53337.js} +3 -3
- abstra_statics/dist/assets/string.4796d44a.js +2 -0
- abstra_statics/dist/assets/{tables.d580be9d.js → tables.13d62f0c.js} +2 -2
- abstra_statics/dist/assets/tasksController.3255c760.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.510bdb1d.js → toggleHighContrast.cb5e834a.js} +7 -7
- abstra_statics/dist/assets/{tsMode.5c0f732d.js → tsMode.95528ab9.js} +2 -2
- abstra_statics/dist/assets/{typescript.0643a053.js → typescript.b90bd43d.js} +3 -3
- abstra_statics/dist/assets/url.84e62ca8.js +2 -0
- abstra_statics/dist/assets/useCodebaseEvents.c47ad36d.js +2 -0
- abstra_statics/dist/assets/userStore.843da693.js +2 -0
- abstra_statics/dist/assets/uuid.58d26ff2.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.011d27ef.js → vue-flow-background.6b5566a8.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.487756a5.js → vue-quill.esm-bundler.3c4b0230.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.87f8dbc6.js → workspaceStore.6a20c00d.js} +2 -2
- abstra_statics/dist/assets/{xml.c3c548ab.js → xml.070d3630.js} +3 -3
- abstra_statics/dist/assets/{yaml.0d909e29.js → yaml.2a862691.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +13 -11
- abstra_statics/dist/player.html +9 -9
- tests/e2e/test_crud_files.py +0 -1
- tests/e2e/test_requirements.py +41 -4
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js +0 -2
- abstra_statics/dist/assets/App.f0468c7f.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.864018b5.js +0 -2
- abstra_statics/dist/assets/BaseLayout.8bd18c5f.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.2815d641.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.4e22242f.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.17b546d4.js +0 -2
- abstra_statics/dist/assets/ContentLayout.c7733a0e.js +0 -2
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js +0 -2
- abstra_statics/dist/assets/EnvVars.74e357b2.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.9b25ffda.js +0 -2
- abstra_statics/dist/assets/Files.d9621f31.js +0 -2
- abstra_statics/dist/assets/Form.9eebd960.js +0 -2
- abstra_statics/dist/assets/Home.9531e545.js +0 -2
- abstra_statics/dist/assets/Home.b12bb81a.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.c40ae513.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.b607eff2.js +0 -2
- abstra_statics/dist/assets/Login.5f104bb1.js +0 -2
- abstra_statics/dist/assets/Logo.a34929e1.js +0 -2
- abstra_statics/dist/assets/Main.7030ea1d.js +0 -2
- abstra_statics/dist/assets/Navbar.a1055174.js +0 -2
- abstra_statics/dist/assets/NewEditor.6b2cb8e6.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.445dd392.js +0 -2
- abstra_statics/dist/assets/Organizations.1c35b6b8.js +0 -2
- abstra_statics/dist/assets/Project.2fdca57c.js +0 -2
- abstra_statics/dist/assets/ProjectLogin.7660cd84.js +0 -2
- abstra_statics/dist/assets/Sql.1afe0bac.css +0 -1
- abstra_statics/dist/assets/Sql.7d92acbb.js +0 -5
- abstra_statics/dist/assets/Steps.b12e16c6.js +0 -2
- abstra_statics/dist/assets/Tables.aa6b418c.js +0 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.95ea10aa.js +0 -2
- abstra_statics/dist/assets/Tasks.6660de00.js +0 -2
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.483e52f9.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.b01eed73.js +0 -2
- abstra_statics/dist/assets/asyncComputed.59410422.js +0 -2
- abstra_statics/dist/assets/constants.733c6549.js +0 -2
- abstra_statics/dist/assets/datetime.adbf692e.js +0 -2
- abstra_statics/dist/assets/dayjs.9e279491.js +0 -2
- abstra_statics/dist/assets/editor.7e30500a.js +0 -2
- abstra_statics/dist/assets/editor.main.4675b13a.js +0 -2
- abstra_statics/dist/assets/fetch.13b54f0f.js +0 -2
- abstra_statics/dist/assets/linters.9ba6d5f8.js +0 -2
- abstra_statics/dist/assets/member.3aca30ee.js +0 -2
- abstra_statics/dist/assets/omniChatStore.16b8f156.js +0 -10
- abstra_statics/dist/assets/player.7f570660.js +0 -2
- abstra_statics/dist/assets/polling.0b08b681.js +0 -2
- abstra_statics/dist/assets/repository.02efcdbd.js +0 -2
- abstra_statics/dist/assets/router.7071f838.js +0 -2
- abstra_statics/dist/assets/string.360236ba.js +0 -2
- abstra_statics/dist/assets/tasksController.b66c85ee.js +0 -4
- abstra_statics/dist/assets/url.b31d406a.js +0 -2
- abstra_statics/dist/assets/userStore.f2537ff3.js +0 -2
- abstra_statics/dist/assets/uuid.d6d43ef5.js +0 -2
- {abstra-3.23.7.dist-info → abstra-3.23.9.dist-info}/WHEEL +0 -0
- {abstra-3.23.7.dist-info → abstra-3.23.9.dist-info}/entry_points.txt +0 -0
- {abstra-3.23.7.dist-info → abstra-3.23.9.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as d}from"./workspaceStore.87f8dbc6.js";import{d as c,k as i,a5 as l,f as a,b as n,u as o,o as u,g as r,A as f,da as p}from"./jwt-decode.esm.d86c27e0.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.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]="6c443e1a-34c5-4ee0-8740-0cac835dc49a",e._sentryDebugIdIdentifier="sentry-dbid-6c443e1a-34c5-4ee0-8740-0cac835dc49a")}catch{}})();const g=c({__name:"OidcLoginCallback",setup(e){return i(async()=>{await new d().loginCallback()}),(t,s)=>(u(),l("div",null,[a(o(f),null,{default:n(()=>[r("You're authenticated")]),_:1}),a(o(p),null,{default:n(()=>[r(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{g as default};
|
|
2
|
-
//# sourceMappingURL=OidcLoginCallback.445dd392.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N as k}from"./Navbar.a1055174.js";import{B as N}from"./BaseLayout.8bd18c5f.js";import{C as I}from"./ContentLayout.c7733a0e.js";import{C as _}from"./CrudView.5a642b48.js";import{a as O}from"./asyncComputed.59410422.js";import{F as x}from"./PhArrowSquareOut.vue.ee4af292.js";import{G as R}from"./PhPencil.vue.20f1b3c4.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 g,a as $,cz as j,bJ as A,cy as E,h as G,M as L}from"./jwt-decode.esm.d86c27e0.js";import"./router.7936fd78.js";import{a as m}from"./organization.8b2c1c53.js";import"./tables.d580be9d.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js";import"./constants.733c6549.js";import"./PhChats.vue.d61c3615.js";import"./PhSignOut.vue.61b63ec0.js";import"./index.4ecba4f7.js";import"./index.0f357aec.js";import"./omniChatStore.16b8f156.js";import"./record.d087b37e.js";import"./uuid.d6d43ef5.js";import"./PhCopySimple.vue.e887b43c.js";import"./PhBookBookmark.vue.681c5036.js";import"./PhSparkle.vue.fd6a9ad7.js";import"./index.b3b62f71.js";import"./Breadcrumb.f312111a.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js";import"./url.b31d406a.js";import"./PhDotsThreeVertical.vue.f4b60771.js";import"./index.a2b9d34b.js";import"./string.360236ba.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]="84a44813-2090-486f-bd64-84e0e8c4ebbb",r._sentryDebugIdIdentifier="sentry-dbid-84a44813-2090-486f-bd64-84e0e8c4ebbb")}catch{}})();const yt=M({__name:"Organizations",setup(r){const l=[{label:"My organizations",path:"/organizations"}],u=[{key:"name",label:"Organization Name"}],f=h(),{loading:b,result:y,refetch:v}=O(()=>m.list()),p=({key:e})=>{f.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 d(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=y.value)==null?void 0:e.map(a=>{var c;return{key:a.id,cells:[{type:"link",text:a.name,to:`/organizations/${encodeURIComponent(a.id)}`},{type:"text",text:(c=a.id)!=null?c:null},{type:"actions",actions:[{icon:x,label:"Go to projects",onClick:p},{icon:R,label:"Rename",onClick:()=>z(a)}]}]}}))!=null?t:[]}});return(e,t)=>(g(),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(b),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=>d(!1)),onOk:t[2]||(t[2]=a=>d(!0))},{default:i(()=>[n.value.state==="renaming"?(g(),$(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{yt as default};
|
|
2
|
-
//# sourceMappingURL=Organizations.1c35b6b8.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N as w}from"./Navbar.a1055174.js";import{B as C}from"./BaseLayout.8bd18c5f.js";import{a as b}from"./asyncComputed.59410422.js";import{d as A,am as c,c as n,o as e,a5 as t,a7 as V,h as L,e6 as f,e as o,eb as k,m as _,a as M,b as $,f as Z,_ as z}from"./jwt-decode.esm.d86c27e0.js";import"./router.7936fd78.js";import{a as S}from"./organization.8b2c1c53.js";import{a as B}from"./project.33809d47.js";import"./tables.d580be9d.js";import{_ as x,S as P}from"./Sidebar.c3d5d187.js";import{C as I}from"./ContentLayout.c7733a0e.js";import{G as j}from"./PhArrowCounterClockwise.vue.aaa06bc0.js";import{a as N,D as F,F as E,I as D,G}from"./PhRocket.vue.27c6f935.js";import{F as q}from"./PhKey.vue.cf1e08ca.js";import{F as W}from"./folder.9092348a.js";import{_ as R}from"./ConsoleOmniChat.vue_vue_type_script_setup_true_lang.17b546d4.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js";import"./constants.733c6549.js";import"./PhChats.vue.d61c3615.js";import"./PhSignOut.vue.61b63ec0.js";import"./index.4ecba4f7.js";import"./index.0f357aec.js";import"./omniChatStore.16b8f156.js";import"./record.d087b37e.js";import"./uuid.d6d43ef5.js";import"./PhCopySimple.vue.e887b43c.js";import"./PhBookBookmark.vue.681c5036.js";import"./PhSparkle.vue.fd6a9ad7.js";import"./index.b3b62f71.js";import"./Breadcrumb.f312111a.js";import"./index.a2b9d34b.js";import"./string.360236ba.js";import"./index.1551abd6.js";import"./AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js";import"./Logo.a34929e1.js";import"./OmniChat.097bec71.js";import"./ant-design.4302db30.js";import"./PhClockCounterClockwise.vue.0457e9b2.js";import"./LoadingOutlined.b607eff2.js";import"./Card.5f504e7b.js";(function(){try{var m=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[r]="d0f58f82-f679-4719-b210-2dfe5316dbde",m._sentryDebugIdIdentifier="sentry-dbid-d0f58f82-f679-4719-b210-2dfe5316dbde")}catch{}})();const T=["width","height","fill","transform"],O={key:0},K=o("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"},null,-1),J=[K],Q={key:1},U=o("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"},null,-1),X=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),Y=[U,X],a1={key:2},l1=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),e1=[l1],t1={key:3},o1=o("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"},null,-1),r1=[o1],i1={key:4},n1=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),s1=[n1],c1={key:5},u1=o("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"},null,-1),d1=[u1],m1={name:"PhDatabase"},h1=A({...m1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",O,J)):l.value==="duotone"?(e(),t("g",Q,Y)):l.value==="fill"?(e(),t("g",a1,e1)):l.value==="light"?(e(),t("g",t1,r1)):l.value==="regular"?(e(),t("g",i1,s1)):l.value==="thin"?(e(),t("g",c1,d1)):L("",!0)],16,T))}}),p1=["width","height","fill","transform"],v1={key:0},g1=o("path",{d:"M228,56H160L133.33,36a20.12,20.12,0,0,0-12-4H76A20,20,0,0,0,56,52V72H36A20,20,0,0,0,16,92V204a20,20,0,0,0,20,20H188.89A19.13,19.13,0,0,0,208,204.89V184h20.89A19.13,19.13,0,0,0,248,164.89V76A20,20,0,0,0,228,56ZM184,200H40V96H80l28.8,21.6A12,12,0,0,0,116,120h68Zm40-40H208V116a20,20,0,0,0-20-20H120L93.33,76a20.12,20.12,0,0,0-12-4H80V56h40l28.8,21.6A12,12,0,0,0,156,80h68Z"},null,-1),A1=[g1],L1={key:1},H1=o("path",{d:"M232,80v88.89a7.11,7.11,0,0,1-7.11,7.11H200V112a8,8,0,0,0-8-8H120L90.13,81.6a8,8,0,0,0-4.8-1.6H64V56a8,8,0,0,1,8-8h45.33a8,8,0,0,1,4.8,1.6L152,72h72A8,8,0,0,1,232,80Z",opacity:"0.2"},null,-1),$1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),Z1=[H1,$1],V1={key:2},f1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64Zm0,104H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),M1=[f1],y1={key:3},w1=o("path",{d:"M224,66H154L125.73,44.8a14,14,0,0,0-8.4-2.8H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H192.89A13.12,13.12,0,0,0,206,200.89V182h18.89A13.12,13.12,0,0,0,238,168.89V80A14,14,0,0,0,224,66ZM194,200.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H85.33a2,2,0,0,1,1.2.4l29.87,22.4A6,6,0,0,0,120,110h72a2,2,0,0,1,2,2Zm32-32a1.11,1.11,0,0,1-1.11,1.11H206V112a14,14,0,0,0-14-14H122L93.73,76.8a14,14,0,0,0-8.4-2.8H70V56a2,2,0,0,1,2-2h45.33a2,2,0,0,1,1.2.4L148.4,76.8A6,6,0,0,0,152,78h72a2,2,0,0,1,2,2Z"},null,-1),C1=[w1],b1={key:4},k1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),_1=[k1],z1={key:5},S1=o("path",{d:"M224,68H153.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H192.89A11.12,11.12,0,0,0,204,200.89V180h20.89A11.12,11.12,0,0,0,236,168.89V80A12,12,0,0,0,224,68ZM196,200.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H85.33a4,4,0,0,1,2.4.8l29.87,22.4a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Zm32-32a3.12,3.12,0,0,1-3.11,3.11H204V112a12,12,0,0,0-12-12H121.33L92.53,78.4a12.05,12.05,0,0,0-7.2-2.4H68V56a4,4,0,0,1,4-4h45.33a4,4,0,0,1,2.4.8L149.6,75.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Z"},null,-1),B1=[S1],x1={name:"PhFolders"},P1=A({...x1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",v1,A1)):l.value==="duotone"?(e(),t("g",L1,Z1)):l.value==="fill"?(e(),t("g",V1,M1)):l.value==="light"?(e(),t("g",y1,C1)):l.value==="regular"?(e(),t("g",b1,_1)):l.value==="thin"?(e(),t("g",z1,B1)):L("",!0)],16,p1))}}),I1=["width","height","fill","transform"],j1={key:0},N1=o("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"},null,-1),F1=[N1],E1={key:1},D1=o("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),G1=o("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),q1=[D1,G1],W1={key:2},R1=o("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),T1=[R1],O1={key:3},K1=o("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"},null,-1),J1=[K1],Q1={key:4},U1=o("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),X1=[U1],Y1={key:5},a0=o("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"},null,-1),l0=[a0],e0={name:"PhGearSix"},t0=A({...e0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",j1,F1)):l.value==="duotone"?(e(),t("g",E1,q1)):l.value==="fill"?(e(),t("g",W1,T1)):l.value==="light"?(e(),t("g",O1,J1)):l.value==="regular"?(e(),t("g",Q1,X1)):l.value==="thin"?(e(),t("g",Y1,l0)):L("",!0)],16,I1))}}),o0=["width","height","fill","transform"],r0={key:0},i0=o("path",{d:"M232,156h-4V72a28,28,0,0,0-28-28H56A28,28,0,0,0,28,72v84H24a12,12,0,0,0-12,12v24a28,28,0,0,0,28,28H216a28,28,0,0,0,28-28V168A12,12,0,0,0,232,156ZM52,72a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4v84H52ZM220,192a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H220ZM156,96a12,12,0,0,1-12,12H112a12,12,0,0,1,0-24h32A12,12,0,0,1,156,96Z"},null,-1),n0=[i0],s0={key:1},c0=o("path",{d:"M216,72V176H40V72A16,16,0,0,1,56,56H200A16,16,0,0,1,216,72Z",opacity:"0.2"},null,-1),u0=o("path",{d:"M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM48,72a8,8,0,0,1,8-8H200a8,8,0,0,1,8,8v96H48ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224ZM152,88a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,88Z"},null,-1),d0=[c0,u0],m0={key:2},h0=o("path",{d:"M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM112,72h32a8,8,0,0,1,0,16H112a8,8,0,0,1,0-16ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224Z"},null,-1),p0=[h0],v0={key:3},g0=o("path",{d:"M232,170H222V72a22,22,0,0,0-22-22H56A22,22,0,0,0,34,72v98H24a6,6,0,0,0-6,6v16a22,22,0,0,0,22,22H216a22,22,0,0,0,22-22V176A6,6,0,0,0,232,170ZM46,72A10,10,0,0,1,56,62H200a10,10,0,0,1,10,10v98H46ZM226,192a10,10,0,0,1-10,10H40a10,10,0,0,1-10-10V182H226ZM150,88a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h32A6,6,0,0,1,150,88Z"},null,-1),A0=[g0],L0={key:4},H0=o("path",{d:"M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM48,72a8,8,0,0,1,8-8H200a8,8,0,0,1,8,8v96H48ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224ZM152,88a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,88Z"},null,-1),$0=[H0],Z0={key:5},V0=o("path",{d:"M232,172H220V72a20,20,0,0,0-20-20H56A20,20,0,0,0,36,72V172H24a4,4,0,0,0-4,4v16a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V176A4,4,0,0,0,232,172ZM44,72A12,12,0,0,1,56,60H200a12,12,0,0,1,12,12V172H44ZM228,192a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V180H228ZM148,88a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h32A4,4,0,0,1,148,88Z"},null,-1),f0=[V0],M0={name:"PhLaptop"},y0=A({...M0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",r0,n0)):l.value==="duotone"?(e(),t("g",s0,d0)):l.value==="fill"?(e(),t("g",m0,p0)):l.value==="light"?(e(),t("g",v0,A0)):l.value==="regular"?(e(),t("g",L0,$0)):l.value==="thin"?(e(),t("g",Z0,f0)):L("",!0)],16,o0))}}),w0=["width","height","fill","transform"],C0={key:0},b0=o("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"},null,-1),k0=[b0],_0={key:1},z0=o("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"},null,-1),S0=o("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),B0=[z0,S0],x0={key:2},P0=o("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"},null,-1),I0=[P0],j0={key:3},N0=o("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"},null,-1),F0=[N0],E0={key:4},D0=o("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),G0=[D0],q0={key:5},W0=o("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"},null,-1),R0=[W0],T0={name:"PhPlug"},O0=A({...T0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",C0,k0)):l.value==="duotone"?(e(),t("g",_0,B0)):l.value==="fill"?(e(),t("g",x0,I0)):l.value==="light"?(e(),t("g",j0,F0)):l.value==="regular"?(e(),t("g",E0,G0)):l.value==="thin"?(e(),t("g",q0,R0)):L("",!0)],16,w0))}}),K0=A({__name:"Project",setup(m){const h=k().params.projectId,{result:s}=b(()=>B.get(h).then(async i=>{const d=await S.get(i.organizationId),H=(await new W().list(d.id)).find(y=>y.id===i.folderId);if(!H)throw new Error("Folder not found");return{project:i,organization:d,folder:H}})),v=n(()=>{var i,d,a,g,H;return((i=s.value)==null?void 0:i.organization)&&s.value.project?[{label:"My organizations",path:"/organizations"},{label:(a=(d=s.value)==null?void 0:d.organization)==null?void 0:a.name,path:`/organizations/${(g=s.value)==null?void 0:g.organization.id}`},{label:s.value.folder.name,path:`/organizations/${(H=s.value)==null?void 0:H.organization.id}#${s.value.folder.id}`},{label:s.value.project.name,path:`/projects/${s.value.project.id}`}]:void 0}),p=n(()=>{var i;return(i=s.value)==null?void 0:i.organization.billingMetadata}),l=n(()=>{var i;return(i=s.value)==null?void 0:i.organization.id}),u=n(()=>{var i;return(i=s.value)!=null&&i.project?[{name:"Monitoring",items:[{name:"Stages",path:"live",icon:N},{name:"Version History",path:"builds",icon:F},{name:"Logs",icon:j,path:"logs"},{name:"Tasks",path:"tasks",icon:E}]},{name:"Resources",items:[{name:"Tables",path:"tables",icon:h1},{name:"Files",path:"files",icon:P1},{name:"Connectors",path:"connectors",icon:O0},{name:"Web Editor",path:"web-editor",icon:y0,unavailable:!s.value.organization.featureFlags.WEB_EDITOR}]},{name:"Configuration",items:[{name:"API Keys",path:"api-keys",icon:q},{name:"Env Vars",path:"env-vars",icon:D},{name:"Subdomain",icon:t0,path:"settings"},{name:"Access Control",icon:G,path:"access-control"}]}]:[]});return(i,d)=>{const a=_("RouterView");return e(),M(C,null,{content:$(()=>[Z(I,null,{default:$(()=>[p.value&&l.value?(e(),M(x,{key:0,"billing-metadata":p.value,"organization-id":l.value},null,8,["billing-metadata","organization-id"])):L("",!0),Z(a)]),_:1})]),navbar:$(()=>[Z(w,{class:"nav",breadcrumb:v.value,"show-ai-sparkles":""},null,8,["breadcrumb"])]),sidebar:$(()=>[Z(P,{class:"sidebar",sections:u.value},null,8,["sections"])]),chat:$(()=>[Z(R)]),_:1})}}});const x2=z(K0,[["__scopeId","data-v-a7df3978"]]);export{x2 as default};
|
|
2
|
-
//# sourceMappingURL=Project.2fdca57c.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js";import{B as m}from"./BaseLayout.8bd18c5f.js";import{d as l,ae as y,c1 as v,_ as u,aZ as g,a_ as b,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.d86c27e0.js";import{u as B}from"./editor.7e30500a.js";import{A as I}from"./index.b3b62f71.js";import"./Logo.a34929e1.js";import"./router.7071f838.js";import"./workspaceStore.87f8dbc6.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.js";import"./linters.9ba6d5f8.js";import"./asyncComputed.59410422.js";import"./constants.733c6549.js";import"./index.a2b9d34b.js";import"./Breadcrumb.f312111a.js";import"./index.0f357aec.js";import"./index.4ecba4f7.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]="cfdd3d84-e00a-4cd9-a091-41c68728d9a1",e._sentryDebugIdIdentifier="sentry-dbid-cfdd3d84-e00a-4cd9-a091-41c68728d9a1")}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{...v(o)}}});const P={class:"v-spinner"};function D(e,o,a,d,c,p){return g((_(),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)),[[b,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.7660cd84.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.sql-container[data-v-71ca01e9]{padding:12px;background-color:#fff;border-radius:8px;margin-bottom:20px;box-shadow:0 0 10px #0000001a;height:fit-content}.sql-editor[data-v-71ca01e9]{width:100%;height:180px;border-radius:6px}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{f as o,e7 as q,d as E,eb as D,O as L,L as _,r as p,k as N,a5 as $,b as g,u,aR as B,o as P,e as V,bR as x,g as S,de as h,cX as z,cL as O,_ as A}from"./jwt-decode.esm.d86c27e0.js";import{G as F}from"./PhDownloadSimple.vue.3444d06b.js";import{e as M}from"./toggleHighContrast.510bdb1d.js";import"./router.7936fd78.js";import{a as T}from"./project.33809d47.js";import"./tables.d580be9d.js";import{_ as G}from"./TablesTabs.vue_vue_type_script_setup_true_lang.95ea10aa.js";import"./index.a2b9d34b.js";import"./record.d087b37e.js";import"./string.360236ba.js";import"./Card.5f504e7b.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]="d1f708b6-ee30-476f-97ba-8ac1e9b018ab",e._sentryDebugIdIdentifier="sentry-dbid-d1f708b6-ee30-476f-97ba-8ac1e9b018ab")}catch{}})();var H={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const J=H;function C(e){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?Object(arguments[a]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(d){return Object.getOwnPropertyDescriptor(t,d).enumerable}))),r.forEach(function(d){U(e,d,t[d])})}return e}function U(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var w=function(a,t){var r=C({},a,t.attrs);return o(q,C({},r,{icon:J}),null)};w.displayName="CaretRightOutlined";w.inheritAttrs=!1;const X=w,I=e=>{if(e==null)return"";const a=String(e);return a.includes(";")||a.includes(`
|
|
2
|
-
`)||a.includes('"')?`"${a.replace(/"/g,'""')}"`:a},W=e=>{let a=e.columns.map(I).join(";")+`
|
|
3
|
-
`;e.rows.forEach(r=>{a+=r.map(I).join(";")+`
|
|
4
|
-
`});const t=document.createElement("a");t.href="data:text/csv;charset=utf-8,"+encodeURIComponent(a),t.target="_blank",t.download=`${e.fileName}.csv`,t.click()};function Y(e){const a={};for(const t in e)if(e.hasOwnProperty(t)){if(typeof e[t]=="object"&&e[t]!==null){a[t]=JSON.stringify(e[t]);continue}a[t]=String(e[t])}return a}const Z=E({__name:"Sql",setup(e){const t=D().params.projectId,r=new L(_.array(_.object({projectId:_.string(),lastQuery:_.string()})),"lastQueries"),d=p(null),f=p(""),v=p([]),y=p([]),Q=p([]),b=p(!1),j=async()=>{b.value=!0;const l=await T.executeQuery(t,f.value,[]);b.value=!1;const s=r.get();if(!s)r.set([{projectId:t,lastQuery:f.value}]);else{const n=s.findIndex(i=>i.projectId===t);n===-1?s.push({projectId:t,lastQuery:f.value}):s[n].lastQuery=f.value,r.set(s)}if(!l)return;const{returns:m,errors:c}=l;Q.value=c;for(const n of c)O.error({message:"SQL Execution Failed",description:n});c.length||O.success({message:"SQL Execution Succeeded"}),y.value=m.fields.map(n=>({title:n.name,key:n.name,dataIndex:n.name})),v.value=m.result.map((n,i)=>Y({key:`${i+1}`,...n}))},k=()=>{const l=y.value.map(i=>i.dataIndex),s=y.value.map(i=>i.title),m=v.value.map(i=>l.map(R=>i[R])),n=`data-${new Date().toISOString()}`;W({fileName:n,columns:s,rows:m})};return N(()=>{var m;const l=M.create(d.value,{language:"sql",value:f.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});l.onDidChangeModelContent(()=>{f.value=l.getValue()});const s=r.get();if(s){const c=(m=s.find(n=>n.projectId===t))==null?void 0:m.lastQuery;c&&(f.value=c,l.setValue(c))}}),(l,s)=>(P(),$(B,null,[o(G),o(u(h),{gap:"large",class:"sql-container",align:"center"},{default:g(()=>[V("div",{ref_key:"sqlEditor",ref:d,class:"sql-editor"},null,512),o(u(x),{type:"primary",loading:b.value,onClick:j},{icon:g(()=>[o(u(X))]),default:g(()=>[S(" Run ")]),_:1},8,["loading"])]),_:1}),o(u(h),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:g(()=>[o(u(x),{disabled:!v.value.length,onClick:k},{default:g(()=>[o(u(h),{align:"center",gap:"small"},{default:g(()=>[S(" Export to CSV "),o(u(F))]),_:1})]),_:1},8,["disabled"])]),_:1}),o(u(z),{style:{width:"100%"},scroll:{x:100},"data-source":v.value,columns:y.value},null,8,["data-source","columns"])],64))}});const ue=A(Z,[["__scopeId","data-v-71ca01e9"]]);export{ue as default};
|
|
5
|
-
//# sourceMappingURL=Sql.7d92acbb.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A as o}from"./index.1e12c884.js";import{d as r,c as a,a5 as f,f as p,u as d,ea as c,h as l,o as i,_ as u}from"./jwt-decode.esm.d86c27e0.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]="fe68d051-3240-4b8e-b64f-ff02213c3cb2",e._sentryDebugIdIdentifier="sentry-dbid-fe68d051-3240-4b8e-b64f-ff02213c3cb2")}catch{}})();const _=r({__name:"Steps",props:{stepsInfo:{},isPreview:{type:Boolean}},setup(e){const s=e,n=a(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(t,m)=>t.stepsInfo?(i(),f("nav",{key:0,class:c(["p-steps",{"full-screen":!t.isPreview}])},[p(d(o),{current:t.stepsInfo.current-1,items:n.value,responsive:!1},null,8,["current","items"])],2)):l("",!0)}});const I=u(_,[["__scopeId","data-v-58fdd395"]]);export{I as S};
|
|
2
|
-
//# sourceMappingURL=Steps.b12e16c6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as _}from"./CrudView.5a642b48.js";import{o as l}from"./omniChatStore.16b8f156.js";import{a as k}from"./ant-design.4302db30.js";import{a as C}from"./asyncComputed.59410422.js";import{a as m}from"./string.360236ba.js";import{G as T}from"./PhPencil.vue.20f1b3c4.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,ep as B}from"./jwt-decode.esm.d86c27e0.js";import"./router.7936fd78.js";import{T as c}from"./tables.d580be9d.js";import{_ as R}from"./TablesTabs.vue_vue_type_script_setup_true_lang.95ea10aa.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js";import"./constants.733c6549.js";import"./url.b31d406a.js";import"./PhDotsThreeVertical.vue.f4b60771.js";import"./index.4ecba4f7.js";import"./record.d087b37e.js";import"./uuid.d6d43ef5.js";import"./PhCopySimple.vue.e887b43c.js";import"./index.a2b9d34b.js";import"./Card.5f504e7b.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]="b1d55c8a-4932-4e97-9af4-ae403e981b64",a._sentryDebugIdIdentifier="sentry-dbid-b1d55c8a-4932-4e97-9af4-ae403e981b64")}catch{}})();const ae=h({__name:"Tables",setup(a){const o=w(),t=I().params.projectId,{loading:p,result:b,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=b.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(p),"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.aa6b418c.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as b,e5 as f,eb as m,o as l,a as p,b as d,a5 as _,ec as g,f as y,e as v,ed as k,u as n,aR as w}from"./jwt-decode.esm.d86c27e0.js";import{A as I,T}from"./Card.5f504e7b.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]="e0e65ae7-4574-493d-852b-814f4b0fd4c9",e._sentryDebugIdIdentifier="sentry-dbid-e0e65ae7-4574-493d-852b-814f4b0fd4c9")}catch{}})();const R=b({__name:"TablesTabs",setup(e){const a=f(),t=m(),u=String(t.name),c=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:c}})};return(o,D)=>(l(),p(n(T),{"active-key":n(u),options:r,"onUpdate:activeKey":i},{default:d(()=>[(l(),_(w,null,g(r,s=>y(n(I),{key:s.value,name:s.value},{tab:d(()=>[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.95ea10aa.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 S,da as C,ef as X,d8 as q,ed as x,de as P,d4 as G,h as O,ei as Q,S as W,cX as Y,cH as Z,eb as K,A as ee}from"./jwt-decode.esm.d86c27e0.js";import{_ as te}from"./AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js";import{I as ae}from"./PhCopy.vue.391b0ef7.js";import{T as le,R as ne}from"./tasksController.b66c85ee.js";import{s as se}from"./metadata.18d0a278.js";import{t as re}from"./ant-design.4302db30.js";import{c as oe}from"./string.360236ba.js";import{R as ie}from"./dayjs.9e279491.js";import{f as R,a as v}from"./router.7936fd78.js";import{a as de,B as ue}from"./build.656c5601.js";import{a as ce}from"./project.33809d47.js";import"./tables.d580be9d.js";import{a as pe}from"./asyncComputed.59410422.js";import"./linters.9ba6d5f8.js";import"./record.d087b37e.js";import"./polling.0b08b681.js";import"./PhUserList.vue.abdd6da1.js";import"./PhWebhooksLogo.vue.00b65b2c.js";import"./index.a2b9d34b.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]="a00ba4c0-bfd7-46d6-9d3a-68bd94932516",r._sentryDebugIdIdentifier="sentry-dbid-a00ba4c0-bfd7-46d6-9d3a-68bd94932516")}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,Se={key:4,style:{"min-width":"100px"}},be=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:b,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,b()},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(()=>[S("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(()=>[S(x(c.targetStageTitle),1)]),_:2},1032,["href"])):(u(),f(e(C),{key:1},{default:a(()=>[S(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(()=>[S(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",Se)):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(()=>[S(" 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 b=(await de.list(n)).find(h=>h.latest);if(!b)return null;const[w,A]=await Promise.all([ue.get(b.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,b)=>(u(),T(I,null,[l(e(ee),null,{default:a(()=>[S("Tasks")]),_:1}),s.value?(u(),f(be,{key:0,class:"tasks",api:e(g),stages:s.value},null,8,["api","stages"])):O("",!0)],64))}});export{$e as default};
|
|
2
|
-
//# sourceMappingURL=Tasks.6660de00.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var x=Object.defineProperty;var O=(i,e,t)=>e in i?x(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>(O(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.7936fd78.js";import{l as D}from"./fetch.13b54f0f.js";import{E as U}from"./record.d087b37e.js";import{N as F,r as R,ep as I,d as S,k as P,aq as $,a5 as B,u as a,a as h,eg as L,b as o,h as p,aR as M,o as c,f as v,g as y,bR as N,ed as b,cy as G,da as z,cE as W,cz as Z,M as q}from"./jwt-decode.esm.d86c27e0.js";import{S as A}from"./SaveButton.cd025dae.js";import{C as H}from"./CrudView.5a642b48.js";import{a as J}from"./asyncComputed.59410422.js";import{u as K}from"./polling.0b08b681.js";import{o as f}from"./omniChatStore.16b8f156.js";import{G as Q}from"./PhPencil.vue.20f1b3c4.js";import{A as X}from"./index.1551abd6.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]="11fba180-2d82-45c5-af4b-ea5b8552a736",i._sentryDebugIdIdentifier="sentry-dbid-11fba180-2d82-45c5-af4b-ea5b8552a736")}catch{}})();class g{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=F([])}static from(e){const t=e.reduce((n,{name:r,value:m})=>(n[r]=m,n),{});return new g(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 Y{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 Y;class he{constructor(e){this.projectId=e}async get(){const e=await T.list(this.projectId);return g.from(e.map(t=>({...t,value:""})))}async update(e){await T.update(this.projectId,e)}}class pe{constructor(e=D){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 g.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,r){s(this,"envVarRepo");s(this,"envVars");s(this,"state",R({type:"idle"}));s(this,"mode");s(this,"fileOpener");s(this,"openEnvFile",async()=>{var e;await((e=this.fileOpener)==null?void 0:e.openFile(".env"))});s(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:n,value:r}=e;if(r.trim()!==r)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,t])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:this.isLocalEditor?t:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:I,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:Q,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,this.fileOpener=r}static async create(e,t,n){const r=await e.get();return new w(e,r,t,n)}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 ve=S({__name:"View",props:{envVarRepository:{},mode:{},fileOpener:{},hideTitle:{type:Boolean}},setup(i){const e=i,{result:t,loading:n,refetch:r}=J(async()=>{const l=await w.create(e.envVarRepository,e.mode,e.fileOpener);return m(),l}),{startPolling:m,endPolling:j}=K({task:()=>{var l;return(l=t.value)==null?void 0:l.pollingFunction()},interval:2e3}),_={columns:[],rows:[]};return P(()=>{const l=f.subscribe("envVarCreated",()=>{r()}),d=f.subscribe("envVarEdited",()=>{r()});$(()=>{j(),f.unsubscribe(l),f.unsubscribe(d)})}),(l,d)=>{var k,V;return c(),B(M,null,[a(t)?(c(),h(H,{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()||_,"create-button-text":"Add Environment Variable",create:a(t).create,fields:a(t).creationFields||[],live:a(t).isLocalEditor},L({_:2},[(k=a(t))!=null&&k.isLocalEditor?{name:"secondary",fn:o(()=>{var u;return[v(a(N),{onClick:(u=a(t))==null?void 0:u.openEnvFile},{default:o(()=>[y("Open .env")]),_:1},8,["onClick"]),l.mode=="editor"?(c(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[y(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]}),key:"0"}:void 0,(V=a(t))!=null&&V.isLocalEditor?{name:"extra",fn:o(()=>[v(a(X),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[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:o(()=>[l.mode=="console"?(c(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[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)?(c(),h(a(q),{key:1,open:a(t).isUpdating,title:"Update value",onCancel:d[1]||(d[1]=u=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:d[2]||(d[2]=()=>{var u;return(u=a(t))==null?void 0:u.confirmUpdate()})},{default:o(()=>[a(t).state.value.type==="updating"?(c(),h(a(G),{key:0,layout:"vertical"},{default:o(()=>[v(a(Z),null,{default:o(()=>[v(a(z),null,{default:o(()=>[y(b(a(t).state.value.name),1)]),_:1}),v(a(W),{value:a(t).state.value.value,"onUpdate:value":d[0]||(d[0]=u=>a(t).state.value.value=u)},null,8,["value"])]),_:1})]),_:1})):p("",!0)]),_:1},8,["open"])):p("",!0)],64)}}});export{he as C,pe as E,ve as _};
|
|
2
|
-
//# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.483e52f9.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.d86c27e0.js";import{S as L}from"./Steps.b12e16c6.js";import{W as $}from"./PlayerConfigProvider.10f46997.js";import"./index.1e12c884.js";import"./colorHelpers.2a607581.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="c960fed3-e4c3-4309-a94c-9da4a948ba69",a._sentryDebugIdIdentifier="sentry-dbid-c960fed3-e4c3-4309-a94c-9da4a948ba69")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(a,{emit:t}){const d=a,l=B(null);return I(()=>{l.value&&d.action.setElement(l.value)}),(o,i)=>(n(),u(y(V),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",o.disabled?"disabled":""]),loading:o.loading,disabled:o.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[P(S(o.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(a){const t=q(),d=B([]);function l(e){return E[e]||F[e]||null}function o(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(o).filter(Boolean):[o(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(),(r,h)=>(n(),c("div",{key:h,class:"widget"},[(n(),u(x(r.component),{"user-props":r.userProps,value:r.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",O,[(n(!0),c(w,null,v(_(),r=>(n(),u(R,{key:r,"display-name":m(r).name,action:m(r)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const U=W(z,[["__scopeId","data-v-d3d01da6"]]);export{U as default};
|
|
2
|
-
//# sourceMappingURL=WidgetPreview.b01eed73.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N as c,c as l}from"./jwt-decode.esm.d86c27e0.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]="c3b75a2d-17d6-4adc-9755-238bbebbeb35",r._sentryDebugIdIdentifier="sentry-dbid-c3b75a2d-17d6-4adc-9755-238bbebbeb35")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),s=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(s));o();const u=l(()=>e.value.loading),a=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:u,result:a,error:d,refetch:o}};export{i as a};
|
|
2
|
-
//# sourceMappingURL=asyncComputed.59410422.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.d86c27e0.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]="31631e8a-c8ce-4356-a742-fcc1b757b19d",t._sentryDebugIdIdentifier="sentry-dbid-31631e8a-c8ce-4356-a742-fcc1b757b19d")}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.733c6549.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.d86c27e0.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]="a1f1064d-ff14-46d5-a432-cc7c48f4cac3",e._sentryDebugIdIdentifier="sentry-dbid-a1f1064d-ff14-46d5-a432-cc7c48f4cac3")}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.adbf692e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{X as s,dJ as i,dK as d}from"./jwt-decode.esm.d86c27e0.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]="90cbbde4-6946-4403-98a1-ec7584646e73",e._sentryDebugIdIdentifier="sentry-dbid-90cbbde4-6946-4403-98a1-ec7584646e73")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:m,TimePicker:f,QuarterPicker:o,RangePicker:a}=i(d),u=s(n,{WeekPicker:t,MonthPicker:r,YearPicker:m,RangePicker:a,TimePicker:f,QuarterPicker:o,install:e=>(e.component(n.name,n),e.component(a.name,a),e.component(r.name,r),e.component(t.name,t),e.component(o.name,o),e)});export{u as D,r as M,o as Q,a as R,t as W};
|
|
2
|
-
//# sourceMappingURL=dayjs.9e279491.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 as y,e as N,f as T,u as f,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 b,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.d86c27e0.js";import{r as he,g as fe,a as _e}from"./router.7071f838.js";import{u as me,s as ge}from"./workspaceStore.87f8dbc6.js";import{A as ve}from"./linters.9ba6d5f8.js";import{A as be}from"./constants.733c6549.js";import{d as P}from"./index.a2b9d34b.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.js";import"./asyncComputed.59410422.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]="ff798e76-bbf9-4ef0-96fd-a3d7ccfe4a45",o._sentryDebugIdIdentifier="sentry-dbid-ff798e76-bbf9-4ef0-96fd-a3d7ccfe4a45")}catch{}})();const ye={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(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:y(()=>[N("div",ye,[T(f($),{size:"large"}),T(f(B),{level:4},{default:y(()=>[A(" Connecting to server... ")]),_:1}),n.value?(I(),R(f(H),{key:0},{default:y(()=>[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(f(q),{theme:s,"page-header":{ghost:!1}},{default:y(()=>[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 be.CLOUD+"/api-key?"+new URLSearchParams(e)}}const j="h97k86ks",m=class{static boot(e,t){m.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"}),m.booted=!0)}static shutdown(){P.shutdown(),m.booted=!1}};let _=m;i(_,"booted",!1);const Pe={"console-url":"https://cloud.abstra.io"},ke=o=>{const e="VITE_"+U.toUpper(U.snakeCase(o)),t={VITE_SENTRY_RELEASE:"122a370a7e93d6a0a5ebd647a678c9732ef96057",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;_.boot(u,M)}else _.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:()=>b(()=>import("./Home.b12bb81a.js"),["assets/Home.b12bb81a.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/fetch.13b54f0f.js","assets/polling.0b08b681.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>b(()=>import("./NewEditor.6b2cb8e6.js"),["assets/NewEditor.6b2cb8e6.js","assets/asyncComputed.59410422.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/linters.9ba6d5f8.js","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/record.d087b37e.js","assets/PhPencilSimpleLine.vue.22e75a5a.js","assets/Card.5f504e7b.js","assets/router.7936fd78.js","assets/index.a2b9d34b.js","assets/metadata.18d0a278.js","assets/PhUserList.vue.abdd6da1.js","assets/PhWebhooksLogo.vue.00b65b2c.js","assets/LogsController.318117fd.js","assets/ant-design.4302db30.js","assets/string.360236ba.js","assets/PhCopy.vue.391b0ef7.js","assets/index.4ecba4f7.js","assets/build.656c5601.js","assets/tables.d580be9d.js","assets/repository.02efcdbd.js","assets/LoadingOutlined.b607eff2.js","assets/polling.0b08b681.js","assets/LogsController.fb0d96c2.css","assets/omniChatStore.16b8f156.js","assets/uuid.d6d43ef5.js","assets/PhCopySimple.vue.e887b43c.js","assets/omniChatStore.ec95fb81.css","assets/datetime.adbf692e.js","assets/OmniChat.097bec71.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js","assets/Logo.a34929e1.js","assets/Logo.b7d81119.css","assets/PhClockCounterClockwise.vue.0457e9b2.js","assets/index.0f357aec.js","assets/index.1551abd6.js","assets/OmniChat.7660057c.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js","assets/constants.733c6549.js","assets/PhBookBookmark.vue.681c5036.js","assets/PhChats.vue.d61c3615.js","assets/PhArrowSquareOut.vue.ee4af292.js","assets/PhRocket.vue.27c6f935.js","assets/PhSignOut.vue.61b63ec0.js","assets/CloseCircleOutlined.2815d641.js","assets/vue-flow-background.011d27ef.js","assets/SaveButton.cd025dae.js","assets/ExclamationCircleOutlined.9b25ffda.js","assets/SaveButton.932ac6b8.css","assets/ContentLayout.c7733a0e.js","assets/ContentLayout.cdae7d24.css","assets/fetch.13b54f0f.js","assets/repository.6fa74dff.js","assets/View.vue_vue_type_script_setup_true_lang.483e52f9.js","assets/CrudView.5a642b48.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js","assets/PhDotsThreeVertical.vue.f4b60771.js","assets/CrudView.c883bb05.css","assets/PhPencil.vue.20f1b3c4.js","assets/PlayerNavbar.f2f66852.js","assets/PlayerNavbar.77209eae.css","assets/PlayerConfigProvider.10f46997.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.c40ae513.js","assets/LoadingContainer.56fa997a.css","assets/files.f66880c3.js","assets/PhGear.vue.e2b120bb.js","assets/tasksController.b66c85ee.js","assets/toggleHighContrast.510bdb1d.js","assets/toggleHighContrast.30d77c87.css","assets/PhPencilSimple.vue.ec2125f5.js","assets/PhFolderPlus.vue.d5788203.js","assets/PhArrowCounterClockwise.vue.aaa06bc0.js","assets/FormRunner.1c6a88dd.js","assets/Login.vue_vue_type_script_setup_true_lang.7d56cca3.js","assets/CircularLoading.6f511e29.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.75d13f6c.css","assets/Steps.b12e16c6.js","assets/index.1e12c884.js","assets/Steps.2880920a.css","assets/Watermark.6076ef47.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.c06a7828.js","assets/router.7071f838.js","assets/NewEditor.d3300cf0.css"])},{path:"project-login",name:"projectLogin",component:()=>b(()=>import("./ProjectLogin.7660cd84.js"),["assets/ProjectLogin.7660cd84.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js","assets/Logo.a34929e1.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/BaseLayout.8bd18c5f.js","assets/BaseLayout.e1744dcc.css","assets/index.b3b62f71.js","assets/Breadcrumb.f312111a.js","assets/index.0f357aec.js","assets/index.4ecba4f7.js","assets/router.7071f838.js","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/linters.9ba6d5f8.js","assets/asyncComputed.59410422.js","assets/constants.733c6549.js","assets/index.a2b9d34b.js","assets/ProjectLogin.21a71354.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:":pathMatch(.*)*",name:"editorFallback",redirect:"/_editor/"}]},{path:"/:path(.*)*",name:"form",component:()=>b(()=>import("./App.f0468c7f.js"),["assets/App.f0468c7f.js","assets/App.vue_vue_type_style_index_0_lang.864018b5.js","assets/userStore.f2537ff3.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/PlayerConfigProvider.10f46997.js","assets/colorHelpers.2a607581.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.87f8dbc6.js","assets/url.b31d406a.js","assets/App.0c2736ee.css"]),children:Re}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),Ae=fe(L);L.beforeEach(async(o,e)=>{if(await me().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 _e(),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.7e30500a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as r,E as t,K as i,a as c,M as f,c as b,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.510bdb1d.js";import"./jwt-decode.esm.d86c27e0.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]="3129dcf0-dc06-4bfe-97bd-0378ce6c4c6f",e._sentryDebugIdIdentifier="sentry-dbid-3129dcf0-dc06-4bfe-97bd-0378ce6c4c6f")}catch{}})();export{r as CancellationTokenSource,t as Emitter,i as KeyCode,c as KeyMod,f as MarkerSeverity,b 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.4675b13a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.d86c27e0.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]="6a86d672-10d6-4673-93a2-2974e70f0098",e._sentryDebugIdIdentifier="sentry-dbid-6a86d672-10d6-4673-93a2-2974e70f0098")}catch{}})();const o=(...e)=>window.fetch(...e);export{o as l};
|
|
2
|
-
//# sourceMappingURL=fetch.13b54f0f.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.d86c27e0.js";import{a as k}from"./asyncComputed.59410422.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]="9ef2082a-e59f-4ce5-b0b3-130910802c49",n._sentryDebugIdIdentifier="sentry-dbid-9ef2082a-e59f-4ce5-b0b3-130910802c49")}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.9ba6d5f8.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{h as n}from"./router.7936fd78.js";import"./jwt-decode.esm.d86c27e0.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]="8e5306be-bedc-47f7-bb60-fb9cb55c509c",t._sentryDebugIdIdentifier="sentry-dbid-8e5306be-bedc-47f7-bb60-fb9cb55c509c")}catch{}})();class i{async create(e){return n.post(`organizations/${e.organizationId}/members`,{email:e.email,teams:e.teams})}async delete(e){return n.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return n.get(`organizations/${e}/members`)}async get(e,r){return n.get(`organizations/${e}/members/${r}`)}async update(e,r,a){return n.patch(`organizations/${e}/members/${r}`,a)}}export{i as M};
|
|
2
|
-
//# sourceMappingURL=member.3aca30ee.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var P=Object.defineProperty;var Z=(i,e,t)=>e in i?P(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var o=(i,e,t)=>(Z(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.7936fd78.js";import{d as L,am as I,c as m,o as y,a5 as _,a7 as D,h as R,e6 as U,e as v,r as u,a as T,b as H,g as j,ed as q,u as x,aV as J,_ as V,f as z,eH as G,i as Q,ae as W,q as X,N as $}from"./jwt-decode.esm.d86c27e0.js";import{P as K}from"./record.d087b37e.js";import{u as S}from"./uuid.d6d43ef5.js";import{I as Y}from"./PhCopySimple.vue.e887b43c.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]="e1c21fd9-a5d4-43ec-8a5b-54a7d18c5281",i._sentryDebugIdIdentifier="sentry-dbid-e1c21fd9-a5d4-43ec-8a5b-54a7d18c5281")}catch{}})();const ee=["width","height","fill","transform"],te={key:0},se=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),oe=[se],re={key:1},ie=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ae=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),ne=[ie,ae],le={key:2},ce=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),he=[ce],de={key:3},ue=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),ge=[ue],fe={key:4},pe=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),ye=[pe],ve={key:5},_e=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=[_e],we={name:"PhCheckCircle"},Se=L({...we,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=m(()=>{var n;return(n=e.weight)!=null?n:t}),h=m(()=>{var n;return(n=e.size)!=null?n:s}),d=m(()=>{var n;return(n=e.color)!=null?n:r}),f=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,g)=>(y(),_("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:f.value},n.$attrs),[D(n.$slots,"default"),l.value==="bold"?(y(),_("g",te,oe)):l.value==="duotone"?(y(),_("g",re,ne)):l.value==="fill"?(y(),_("g",le,he)):l.value==="light"?(y(),_("g",de,ge)):l.value==="regular"?(y(),_("g",fe,ye)):l.value==="thin"?(y(),_("g",ve,me)):R("",!0)],16,ee))}});class O{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class be extends O{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 Ce extends O{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class B{constructor(){o(this,"mode");o(this,"modes",[new Ce,new be]);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 N=300;class Ie{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},h=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!h.ok)throw new Error("Failed to send message");const d=(n=h.body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}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 Ae{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},d=(n=(await C.postRaw(`${this.baseUrl}/messages`,l)).body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}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 Te=L({__name:"CopyButton",props:{textToCopy:{}},setup(i){const e=i,t=u(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},r=m(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(y(),T(x(J),null,{title:H(()=>[j(q(r.value),1)]),default:H(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(y(),T(x(Se),{key:1,color:"#fff",size:"22"})):(y(),T(x(Y),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const xe=V(Te,[["__scopeId","data-v-9f87bac2"]]);class F{constructor(e,t,s){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_stageId",null);o(this,"_hasError",u(null));o(this,"_isLoadingHistory",u(!1));o(this,"_history",u([]));o(this,"_threadHistoryFetchInfo",u({limit:10,offset:0,done:!1}));o(this,"_recentlyAccessedThreads",u([]));o(this,"_environment");o(this,"codeForApproval",u(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${S()}`,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,"setStageId",e=>{this._stageId=e});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=z(xe,{textToCopy:t.textContent});G(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t)=>{var s,r,c,l;this.conversationId.value||await this.setupThread(),this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const h=S(),d=this.conversationId.value;if(!d)throw new Error("Conversation ID is not set");const f=[{type:"text",text:this._input.value}],n={currentEditorUrl:window.location.href,panesInfo:e||{}},g=this._repository.sendMessage(d,f,n,this.isIdle.bind(this),t);let p="",k=h,A="";for await(const w of g){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=w;if(typeof a=="string")p+=a,A+=a,this._logService.log({type:"ai-output",log:A},k);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}),((s=a.args)==null?void 0:s.file)&&((r=a.args)==null?void 0:r.replacements)){let b=a.args.replacements;typeof b=="string"&&(b=JSON.parse(b)),this.codeForApproval.value={file:a.args.file,replacements:b.map(M=>({oldContext:M.old_context,newContext:M.new_context}))}}else((c=a.args)==null?void 0:c.file)&&((l=a.args)==null?void 0:l.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}),k=S(),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(w=>(w.id===this.conversationId.value&&w.messages.unshift({role:"assistant",content:p,createdAt:new Date().toISOString()}),w)),this._input.value=""}catch(h){this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),console.error(h),Q(h)}finally{this._smartChatState.value="idle",this.renderCopyButtons()}});o(this,"abort",()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle"});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(`I have this error in my code:
|
|
4
|
-
${e.entries.map(s=>s.payload.text).join("")}
|
|
5
|
-
|
|
6
|
-
Can you help me understand what went wrong?
|
|
7
|
-
My current code is: ${t||"No code provided"}`),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=u(null),this._input=u(""),this._badgeState=u({type:"seen"}),this._smartChatState=u("idle"),this._environment=s}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",W({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}
|
|
8
|
-
${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-actions"&&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+`
|
|
9
|
-
`+e.log),Object.assign(s,e)):this.logs.push({...e,id:t||S()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=S();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Le=new K,Oe=X("omniChat",()=>{const i=u(!0),e=u(!1),t=E.create(),s=$(),r=$(),c=(g,p)=>{if(!r.value)if(g==="console"){if(!p)throw new Error("Project ID is required for console chat");s.value=new Ae(p),r.value=new F(s.value,t,{origin:g,projectId:p})}else s.value=new Ie,r.value=new F(s.value,t,{origin:g})},l=()=>{e.value=!0},h=()=>{e.value=!1},d=()=>{i.value=!0,l()},f=()=>{i.value=!1,h()};return{isOpen:i,isInputFocused:e,focusInput:l,blurInput:h,open:d,close:f,toggle:()=>{i.value?f():d()},controller:m(()=>r.value),repository:s,init:c}});export{Se as H,Ie as L,F as S,E as a,Le as o,Oe as u};
|
|
10
|
-
//# sourceMappingURL=omniChatStore.16b8f156.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 f,F as m,G as a,H as u,I as g,J as b,K as y}from"./jwt-decode.esm.d86c27e0.js";import{a as l,b as i}from"./router.7071f838.js";import{s as w}from"./workspaceStore.87f8dbc6.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.864018b5.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.js";import"./PlayerConfigProvider.10f46997.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="9f628f70-e08d-4ee2-850c-89b8c7930a12",t._sentryDebugIdIdentifier="sentry-dbid-9f628f70-e08d-4ee2-850c-89b8c7930a12")}catch{}})();class I{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await l(),s=n(),e=r({render:()=>u(h)});o.init(),c(e,i,t),I.init(),e.use(i),e.use(s),e.use(d),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",f),e.component("Message",m),a(e,g),a(e,b),a(e,y)})();
|
|
2
|
-
//# sourceMappingURL=player.7f570660.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.d86c27e0.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]="837d33ad-7fad-449f-9783-c84ea75b7db8",e._sentryDebugIdIdentifier="sentry-dbid-837d33ad-7fad-449f-9783-c84ea75b7db8")}catch{}})();const l=1e3,f=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{f as u};
|
|
2
|
-
//# sourceMappingURL=polling.0b08b681.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as h,e7 as m,eI as S,eJ as I,d as _,o as c,a as l,u,h as $}from"./jwt-decode.esm.d86c27e0.js";import{L as x}from"./LoadingOutlined.b607eff2.js";import{h as d}from"./router.7936fd78.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]="0984f8a3-4fee-4add-9cd1-70e7eeff2f13",r._sentryDebugIdIdentifier="sentry-dbid-0984f8a3-4fee-4add-9cd1-70e7eeff2f13")}catch{}})();var P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};const F=P;function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){k(r,s,t[s])})}return r}function k(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var b=function(e,t){var n=w({},e,t.attrs);return h(m,w({},n,{icon:S}),null)};b.displayName="CheckCircleFilled";b.inheritAttrs=!1;const E=b;function j(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){A(r,s,t[s])})}return r}function A(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var y=function(e,t){var n=j({},e,t.attrs);return h(m,j({},n,{icon:I}),null)};y.displayName="CloseCircleFilled";y.inheritAttrs=!1;const D=y;function v(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){M(r,s,t[s])})}return r}function M(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var C=function(e,t){var n=v({},e,t.attrs);return h(m,v({},n,{icon:F}),null)};C.displayName="MinusCircleFilled";C.inheritAttrs=!1;const L=C,B=_({__name:"ExecutionStatusIcon",props:{status:{}},setup(r){return(e,t)=>e.status==="finished"?(c(),l(u(E),{key:0,style:{color:"#33b891"}})):e.status==="failed"?(c(),l(u(D),{key:1,style:{color:"#fa675c"}})):e.status==="abandoned"||e.status==="lock-failed"?(c(),l(u(L),{key:2,style:{color:"#f69220"}})):e.status==="running"?(c(),l(u(x),{key:3})):$("",!0)}}),z=["running","lock-failed","failed","finished","abandoned"];class f{constructor(e){this.dto=e}static from(e){return new f(e)}get entries(){return this.dto.sort((e,t)=>e.sequence-t.sequence).filter(e=>e.event!=="form-message")}}class g{constructor(e){this.dto=e}static from(e){return new g(e)}get id(){return this.dto.id}get shortId(){return this.dto.id.slice(0,8)}get createdAt(){return new Date(this.dto.createdAt)}get updatedAt(){return new Date(this.dto.updatedAt)}get status(){return this.dto.status}get context(){return this.dto.context}get buildId(){var e;return(e=this.dto.buildId)!=null?e:""}get stageId(){return this.dto.stageId}get duration_seconds(){return this.status==="running"?"-":`${(this.updatedAt.getTime()-this.createdAt.getTime())/1e3} s`}get stageRunId(){return this.dto.stageRunId}get projectId(){return this.dto.projectId}}class V{async list({projectId:e,...t}){var p,a;const n={...t,offset:(p=t.offset)==null?void 0:p.toString(),limit:(a=t.limit)==null?void 0:a.toString()};Object.keys(n).forEach(o=>n[o]===void 0&&delete n[o]);const s=await d.get(`projects/${e}/executions`,n);return{executions:s.executions.map(o=>g.from(o)),totalCount:s.totalCount}}async fetchLogs(e,t){const n=await d.get(`projects/${e}/executions/${t}/logs`);return f.from(n)}async fetchThreadData(e,t){return(await d.get(`projects/${e}/executions/${t}/thread-data`)).response}async getExecutionTasks(e,t){return await d.get(`projects/${e}/executions/${t}/tasks`)}async fetchStages(){throw new Error("Method not implemented.")}}class G{async list(e){var o,O;const t={...e,offset:(o=e.offset)==null?void 0:o.toString(),limit:(O=e.limit)==null?void 0:O.toString()};Object.keys(t).forEach(i=>t[i]===void 0&&delete t[i]);const n=Object.fromEntries(Object.entries(t!=null?t:{}).filter(([,i])=>i!=null)),s=Object.keys(n).length>0?`?${new URLSearchParams(n).toString()}`:"",a=await(await fetch(`/_editor/api/executions${s}`)).json();return{executions:a.executions.map(i=>g.from(i)),totalCount:a.totalCount}}async fetchLogs(e,t){const s=await(await fetch(`/_editor/api/logs/${t}`)).json();return f.from(s)}async fetchThreadData(){return{}}async getExecutionTasks(e,t){return await(await fetch(`/_editor/api/executions/${t}/tasks`)).json()}async fetchStages(){return await(await fetch("/_editor/api/executions/stages")).json()}}export{E as C,G as L,V as R,B as _,z as e};
|
|
2
|
-
//# sourceMappingURL=repository.02efcdbd.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as c,t as d,v as t,x as m}from"./jwt-decode.esm.d86c27e0.js";import{a as u}from"./workspaceStore.87f8dbc6.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]="b3622676-7008-4789-a798-6ad5f82eee78",e._sentryDebugIdIdentifier="sentry-dbid-b3622676-7008-4789-a798-6ad5f82eee78")}catch{}})();const b=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"122a370a7e93d6a0a5ebd647a678c9732ef96057"}catch(e){return console.error("Failed to fetch Abstra version:",e),"122a370a7e93d6a0a5ebd647a678c9732ef96057"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback.445dd392.js"),["assets/OidcLoginCallback.445dd392.js","assets/workspaceStore.87f8dbc6.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback.485fb0b9.js"),["assets/OidcLogoutCallback.485fb0b9.js","assets/workspaceStore.87f8dbc6.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login.5f104bb1.js"),["assets/Login.5f104bb1.js","assets/Login.vue_vue_type_script_setup_true_lang.7d56cca3.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/CircularLoading.6f511e29.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.a34929e1.js","assets/Logo.b7d81119.css","assets/string.360236ba.js","assets/index.1551abd6.js","assets/Login.75d13f6c.css","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main.7030ea1d.js"),["assets/Main.7030ea1d.js","assets/PlayerNavbar.f2f66852.js","assets/userStore.f2537ff3.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.87f8dbc6.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/metadata.18d0a278.js","assets/PhUserList.vue.abdd6da1.js","assets/PhWebhooksLogo.vue.00b65b2c.js","assets/LoadingOutlined.b607eff2.js","assets/PhSignOut.vue.61b63ec0.js","assets/index.0f357aec.js","assets/PlayerNavbar.77209eae.css","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home.9531e545.js"),["assets/Home.9531e545.js","assets/metadata.18d0a278.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/PhUserList.vue.abdd6da1.js","assets/PhWebhooksLogo.vue.00b65b2c.js","assets/Watermark.6076ef47.js","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/constants.733c6549.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.ee4af292.js","assets/index.81a2ae08.js","assets/Card.5f504e7b.js","assets/LoadingOutlined.b607eff2.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error.dd899e38.js"),["assets/Error.dd899e38.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js","assets/Logo.a34929e1.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/constants.733c6549.js","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/Card.5f504e7b.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form.9eebd960.js"),["assets/Form.9eebd960.js","assets/userStore.f2537ff3.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/FormRunner.1c6a88dd.js","assets/Login.vue_vue_type_script_setup_true_lang.7d56cca3.js","assets/workspaceStore.87f8dbc6.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/CircularLoading.6f511e29.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.a34929e1.js","assets/Logo.b7d81119.css","assets/string.360236ba.js","assets/index.1551abd6.js","assets/Login.75d13f6c.css","assets/Steps.b12e16c6.js","assets/index.1e12c884.js","assets/Steps.2880920a.css","assets/Watermark.6076ef47.js","assets/constants.733c6549.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.c06a7828.js","assets/asyncComputed.59410422.js","assets/uuid.d6d43ef5.js","assets/Form.7493bc0a.css"]),meta:{hideLogin:!0}}]}],o=c({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:i,...s}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...s,redirect:i||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.7071f838.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L as d}from"./jwt-decode.esm.d86c27e0.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]="34fe71f8-4072-44ae-b18e-6125c200b903",e._sentryDebugIdIdentifier="sentry-dbid-34fe71f8-4072-44ae-b18e-6125c200b903")}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.360236ba.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var B=Object.defineProperty;var z=(o,t,e)=>t in o?B(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var p=(o,t,e)=>(z(o,typeof t!="symbol"?t+"":t,e),e);import{h as E}from"./router.7936fd78.js";import{r as P,c as G,el as V,ae as q,w as F}from"./jwt-decode.esm.d86c27e0.js";import"./linters.9ba6d5f8.js";import{A as C}from"./record.d087b37e.js";import{u as K}from"./polling.0b08b681.js";import{c as Q}from"./string.360236ba.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]="08299b79-267e-4b16-9714-358e09c02665",o._sentryDebugIdIdentifier="sentry-dbid-08299b79-267e-4b16-9714-358e09c02665")}catch{}})();class W{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,r,s){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:s})})).json()}async get(t){try{return await(await fetch(`/_editor/api/forms/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",s=`/_editor/api/forms/${t}`+r;await fetch(s,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const w=new W;class y{constructor(t){p(this,"record");this.record=C.create(w,t)}static async list(){return(await w.list()).map(e=>new y(e))}static async create(t,e,r,s){const i=await w.create(t,e,r,s);return new y(i)}static async get(t){const e=await w.get(t);return e?new y(e):null}get id(){return this.record.get("id")}get type(){return"form"}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get notificationTrigger(){return new Proxy(this.record.get("notification_trigger"),{set:(t,e,r)=>(this.record.set("notification_trigger",{...t,[e]:r}),!0)})}set notificationTrigger(t){this.record.set("notification_trigger",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}async delete(t){await w.delete(this.id,t)}async duplicate(){const t=await w.duplicate(this.id);return new y(t)}makeRunnerData(t){return{...t.makeRunnerData(),id:this.id,isLocal:!0,path:this.path,title:this.title,isInitial:this.isInitial,runtimeType:"form",autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,allowRestart:this.allowRestart,welcomeTitle:this.welcomeTitle,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText,restartButtonText:this.restartButtonText}}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new y(t)}}class X{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,r,s){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:s})})).json()}async get(t){try{return await(await fetch(`/_editor/api/hooks/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",s=`/_editor/api/hooks/${t}`+r;await fetch(s,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const r=new URLSearchParams(e.query),s=await fetch(`/_editor/api/hooks/${t}/run?${r.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:i,headers:d,body:u}=await s.json();return{status:i,headers:d,body:u}}}const f=new X;class S{constructor(t){p(this,"record");this.record=C.create(f,t)}static async list(){return(await f.list()).map(e=>new S(e))}static async create(t,e,r,s){const i=await f.create(t,e,r,s);return new S(i)}static async get(t){const e=await f.get(t);return e?new S(e):null}async delete(t){await f.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get type(){return"hook"}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async run(t){return f.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new S(t)}}class Y{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,r,s){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:s})})).json()}async get(t){try{return await(await fetch(`/_editor/api/jobs/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/jobs/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",s=`/_editor/api/jobs/${t}`+r;await fetch(s,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t){return(await fetch(`/_editor/api/jobs/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const m=new Y;class b{constructor(t){p(this,"record");p(this,"isInitial",!0);this.record=C.create(m,t)}static async list(){return(await m.list()).map(e=>new b(e))}static async create(t,e,r,s){const i=await m.create(t,e,r,s);return new b(i)}static async get(t){const e=await m.get(t);return e?new b(e):null}async delete(t){await m.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get schedule(){return this.record.get("schedule")}set schedule(t){this.record.set("schedule",t)}get type(){return"job"}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get id(){return this.record.get("id")}async run(){return m.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new b(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class Z{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,r,s){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:s})})).json()}async get(t){try{return await(await fetch(`/_editor/api/scripts/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/scripts/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",s=`/_editor/api/scripts/${t}`+r;await fetch(s,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){return(await fetch(`/_editor/api/scripts/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({task_id:e})})).ok}}const T=new Z;class I{constructor(t){p(this,"record");this.record=C.create(T,t)}static async list(){return(await T.list()).map(e=>new I(e))}static async create(t,e,r,s){const i=await T.create(t,e,r,s);return new I(i)}static async get(t){const e=await T.get(t);return e?new I(e):null}async delete(t){await T.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get type(){return"tasklet"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}async run(t){return T.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return!1}static from(t){return new I(t)}}class ct{async createTask(t,e,r){return fetch("/_editor/api/tasks",{method:"POST",body:JSON.stringify({name:t,payload:r,stage_id:e}),headers:{"Content-Type":"application/json"}}).then(s=>s.json())}async getAllTasks(t,e){const r={offset:t.currentIndex*t.pageSize,limit:t.pageSize,filter:{stage:e.stage,status:e.status,startDate:e.dateRange?e.dateRange[0]:void 0,endDate:e.dateRange?e.dateRange[1]:void 0}};return fetch("/_editor/api/tasks/list",{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then(s=>s.json())}async getStageTasks(t){return fetch(`/_editor/api/tasks/${t}`).then(e=>e.json())}async getSentStageTasks(t){return fetch(`/_editor/api/tasks/${t}/sent`).then(e=>e.json())}async updateTaskStatus(t,e){return fetch(`/_editor/api/tasks/${t}/status`,{method:"PUT",body:JSON.stringify({status:e}),headers:{"Content-Type":"application/json"}}).then(r=>r.json())}async clearAllTasks(){return fetch("/_editor/api/tasks/clear",{method:"DELETE"}).then(t=>t.json())}}class dt{constructor(t){p(this,"projectId");this.projectId=t}async createTask(t,e,r){return await E.post(`projects/${this.projectId}/tasks`,{name:t,stageId:e,payload:r})}async getAllTasks(t,e){const r={offset:(t.currentIndex*t.pageSize).toString(),limit:t.pageSize.toString(),stageId:e.stage,status:e.status,startDate:e.dateRange?e.dateRange[0]:void 0,endDate:e.dateRange?e.dateRange[1]:void 0};return Object.keys(r).forEach(i=>r[i]===void 0&&delete r[i]),await E.get(`projects/${this.projectId}/tasks`,r)}async getStageTasks(t){throw new Error("Method not implemented.")}async getSentStageTasks(t){throw new Error("Method not implemented.")}async updateTaskStatus(t,e){throw new Error("Method not implemented.")}async fetchStages(){throw new Error("Method not implemented.")}async fetchStatuses(){throw new Error("Method not implemented.")}async clearAllTasks(){throw new Error("Method not implemented.")}}function H({api:o,fetchTasks:t}){const e=P({state:"idle"}),r=()=>{e.value={state:"idle"}},s=()=>{e.value={state:"creating",name:"My task",payloadCode:`{
|
|
2
|
-
"key": "value"
|
|
3
|
-
}`}},i=async u=>{const c=e.value;if(c.state!=="creating")throw new Error("Payload is required to create a task");if(!d.value)return;const h=JSON.parse(c.payloadCode),k=await o.createTask(c.name,u,h);return await t(),r(),k},d=G(()=>{const u=e.value;if(u.state!=="creating")return!1;try{const c=JSON.parse(u.payloadCode);return V.exports.isObject(c)}catch{return!1}});return{createTask:i,creatingTaskState:e,cancelCreatingTask:r,startCreatingTask:s,isPayloadValid:d}}const v=["pink","orange","green","blue","purple","red","cyan","magenta","volcano","gold"],lt=({api:o,poll:t,stageId:e,stages:r})=>{const s=q({tasks:[],sentTasks:[],colorMap:new Map,pagination:{currentIndex:0,pageSize:10,totalCount:0},filters:{stage:void 0,status:void 0,dateRange:void 0},filterOptions:{stages:[],statuses:["pending","started","completed"].map(n=>({label:Q(n),value:n}))}}),i=[{name:"setToPending",label:"Set to pending",handler:()=>{s.tasks.filter(a=>a.checked).map(a=>a.id).forEach(a=>j(a))}},{name:"setToCompleted",label:"Set to completed",handler:()=>{s.tasks.filter(a=>a.checked).map(a=>a.id).forEach(a=>x(a))}},{name:"duplicate",label:"Duplicate",handler:()=>{s.tasks.filter(a=>a.checked).forEach(async a=>{await o.createTask(a.type,a.targetStageId,a.payload),c()})}}],d=P(["pending"]),u=n=>{const a=s.tasks.findIndex(g=>g.id===n.id);a!==-1?s.tasks[a]=n:s.tasks.unshift(n)},c=async()=>{const n=e?await o.getStageTasks(e):await o.getAllTasks(s.pagination,s.filters);s.tasks=n.tasks.map(a=>({key:a.id,id:a.id,type:a.type,status:a.status,targetStageId:a.targetStageId,targetStageTitle:a.targetStageTitle,targetStageType:a.targetStageType,sourceStageTitle:a.sourceStageTitle,sourceStageType:a.sourceStageType,created:{at:new Date(a.created.at).toString(),byExecutionId:a.created.byExecutionId,byStageId:a.created.byStageId},locked:a.locked?{at:new Date(a.locked.at).toString(),byExecutionId:a.locked.byExecutionId,byStageId:a.locked.byStageId}:null,completed:a.completed?{at:new Date(a.completed.at).toString(),byExecutionId:a.completed.byExecutionId,byStageId:a.completed.byStageId}:null,payload:a.payload,checked:!1})),s.pagination.totalCount=n.totalCount},h=async()=>{if(!e)return[];const n=await o.getSentStageTasks(e);s.sentTasks=n.tasks.map(a=>({key:a.id,id:a.id,type:a.type,status:a.status,targetStageId:a.targetStageId,targetStageTitle:a.targetStageTitle,targetStageType:a.targetStageType,sourceStageTitle:a.sourceStageTitle,sourceStageType:a.sourceStageType,created:{at:new Date(a.created.at).toString(),byExecutionId:a.created.byExecutionId,byStageId:a.created.byStageId},locked:a.locked?{at:new Date(a.locked.at).toString(),byExecutionId:a.locked.byExecutionId,byStageId:a.locked.byStageId}:null,completed:a.completed?{at:new Date(a.completed.at).toString(),byExecutionId:a.completed.byExecutionId,byStageId:a.completed.byStageId}:null,payload:a.payload}))},k=()=>{var g;let n=0;s.tasks.concat((g=s.sentTasks)!=null?g:[]).forEach(_=>{s.colorMap.has(_.type)||(s.colorMap.set(_.type,v[n]),n=(n+1)%v.length)})};F(s.filters,async()=>{await Promise.all([c(),h()]),k()});const O=async()=>{await Promise.all([c(),h()]),k()},{startPolling:D,endPolling:A}=K({task:O,interval:15e3}),$=async()=>{if(await Promise.all([c(),h()]),k(),r===null){const n=Promise.all([y.list(),S.list(),b.list(),I.list()]).then(([a,g,_,l])=>[...a,...g,..._,...l]);s.filterOptions.stages=(await n).map(a=>({label:a.title,value:a.id}))}else s.filterOptions.stages=r.map(n=>({label:n.stageTitle,value:n.id}));t&&D()},R=()=>{t&&A()},j=async n=>{await o.updateTaskStatus(n,"pending"),c()},x=async n=>{await o.updateTaskStatus(n,"completed"),c()},M=n=>{s.tasks=s.tasks.map(a=>(a.id===n&&(a.checked=!a.checked),a))},N=()=>{const n=[],a=s.tasks.filter(l=>l.checked);return a.length===0?[]:(n.push("duplicate"),a.every(l=>l.status==="pending")&&n.push("setToCompleted"),a.every(l=>l.status==="completed")&&n.push("setToPending"),i.filter(l=>n.includes(l.name)))},J=async()=>{await o.clearAllTasks(),c(),h()},U=()=>[{title:"Type",dataIndex:"type",key:"type",align:"center"},{title:"Payload",dataIndex:"payload",key:"payload",align:"center",width:"20%"},{title:"Status",dataIndex:"status",key:"status",align:"center",filterMode:"menu"},{title:"Stage",dataIndex:"targetStageTitle",key:"targetStageTitle",align:"center"},{title:"Created at",dataIndex:"createdAt",key:"createdAt",align:"center"},{title:"Completed at",dataIndex:"completedAt",key:"completedAt",align:"center"},{key:"actions",dataIndex:"actions",align:"center"}],L=H({api:o,fetchTasks:c});return{setup:$,tearDown:R,state:s,getColumns:U,collapseValue:d,setToPending:j,setToCompleted:x,fetchTasks:c,fetchSentTasks:h,checkTask:M,getPossibleActions:N,clearAllTasks:J,insertOrUpdate:u,...L}};export{y as F,S as H,b as J,ct as L,dt as R,I as S,lt as T};
|
|
4
|
-
//# sourceMappingURL=tasksController.b66c85ee.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.d86c27e0.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]="62745856-11f5-4eba-a1f5-4b4759fb7c7b",e._sentryDebugIdIdentifier="sentry-dbid-62745856-11f5-4eba-a1f5-4b4759fb7c7b")}catch{}})();const f=e=>{try{return new URL(e),!0}catch{return!1}},b=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([s,a])=>{t.searchParams.delete(s),n.set(s,a)}),`${t.origin}${t.pathname}?${n.toString()}`};export{f as i,b as m};
|
|
2
|
-
//# sourceMappingURL=url.b31d406a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{q as f,O as v,L as w,r as m,c as n,Q as p}from"./jwt-decode.esm.d86c27e0.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]="098dec23-de53-4325-9dde-cffd1c0f2114",t._sentryDebugIdIdentifier="sentry-dbid-098dec23-de53-4325-9dde-cffd1c0f2114")}catch{}})();const y=2*60*60,_=t=>{try{const e=p(t);if(!e.exp)throw Error("expired jwt");return{email:e.email,expiresInSeconds:e.exp*1e3}}catch{console.warn("Invalid JWT")}return null},g=f("user",()=>{const t=new v(w.string(),"auth:jwt"),e=m(null),a=()=>{e.value=null,t.remove()},o=r=>{t.set(r),e.value=r},u=()=>{e.value=t.get()},l=n(()=>e.value?{Authorization:`Bearer ${e.value}`}:{}),d=n(()=>e.value?["default",`base64url.bearer.authorization.${e.value}`]:[]),s=n(()=>e.value?_(e.value):null),c=n(()=>{var r;return(r=s.value)==null?void 0:r.email}),i=()=>s.value?s.value.expiresInSeconds-Date.now()>y:!1;return u(),{jwt:e,email:c,saveJWT:o,removeJWT:a,isJWTValid:i,authHeaders:l,wsAuthHeaders:d}});export{g as u};
|
|
2
|
-
//# sourceMappingURL=userStore.f2537ff3.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.d86c27e0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x=new Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="e51e7842-0e91-43ef-8a65-592465a80011",e._sentryDebugIdIdentifier="sentry-dbid-e51e7842-0e91-43ef-8a65-592465a80011")}catch{}})();const r=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const x=Math.random()*16|0;return(e=="x"?x:x&3|8).toString(16)});export{r as u};
|
|
2
|
-
//# sourceMappingURL=uuid.d6d43ef5.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|