abstra 3.23.12__py3-none-any.whl → 3.24.1__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/cli.py +16 -5
- {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/METADATA +1 -1
- {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/RECORD +200 -190
- abstra_internals/cloud_api/__init__.py +17 -8
- abstra_internals/consts/filepaths.py +1 -1
- abstra_internals/contracts_generated.py +616 -596
- abstra_internals/controllers/ai.py +89 -1
- abstra_internals/controllers/git.py +307 -0
- abstra_internals/controllers/main.py +10 -6
- abstra_internals/environment.py +6 -0
- abstra_internals/interface/cli/deploy.py +1 -1
- abstra_internals/interface/cli/editor.py +2 -2
- abstra_internals/interface/sdk/ai.py +1 -0
- abstra_internals/repositories/git/__init__.py +25 -0
- abstra_internals/repositories/git/git_test.py +362 -0
- abstra_internals/repositories/git/native.py +578 -0
- abstra_internals/repositories/git/types.py +273 -0
- abstra_internals/repositories/linter/rules/env_in_bundle.py +5 -5
- abstra_internals/repositories/linter/rules/env_in_bundle_test.py +6 -6
- abstra_internals/repositories/linter/rules/venv_in_bundle.py +9 -16
- abstra_internals/server/blueprints/editor.py +4 -0
- abstra_internals/server/routes/git.py +190 -0
- abstra_internals/server/routes/workspace.py +1 -1
- abstra_internals/services/file_watcher.py +32 -13
- abstra_internals/services/fs.py +4 -4
- abstra_internals/services/fs_test.py +4 -6
- abstra_internals/templates/__init__.py +0 -11
- abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.441fcdfd.js → AbstraButton.vue_vue_type_script_setup_true_lang.aefce2d3.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.28bc9fc9.js +2 -0
- abstra_statics/dist/assets/ApiKeys.3c1e70dc.js +2 -0
- abstra_statics/dist/assets/App.9d8bd2aa.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.a64c7cee.js +2 -0
- abstra_statics/dist/assets/{BaseLayout.c63dfc2d.js → BaseLayout.72a6c8f2.js} +2 -2
- abstra_statics/dist/assets/{Billing.461db3ef.js → Billing.6b07f282.js} +2 -2
- abstra_statics/dist/assets/{Breadcrumb.27110ec4.js → Breadcrumb.5c786c09.js} +2 -2
- abstra_statics/dist/assets/{Builds.4eecd717.js → Builds.d8c5c61b.js} +2 -2
- abstra_statics/dist/assets/{Card.1d1a9fb7.js → Card.fc77085c.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.fc66331b.js → CircularLoading.998b223a.js} +2 -2
- abstra_statics/dist/assets/{CloseCircleOutlined.0110bbe2.js → CloseCircleOutlined.9ff269cc.js} +2 -2
- abstra_statics/dist/assets/{ConnectorsView.82e74ae4.css → ConnectorsView.33c5380f.css} +1 -1
- abstra_statics/dist/assets/ConnectorsView.e670738b.js +2 -0
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.3ca66327.js +2 -0
- abstra_statics/dist/assets/ContentLayout.0db8d7fb.js +2 -0
- abstra_statics/dist/assets/{CrudView.c16e2f81.js → CrudView.cc6aeaf0.js} +2 -2
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.689d8ce7.js +2 -0
- abstra_statics/dist/assets/{EditorLogin.00a3b3d9.js → EditorLogin.691452b4.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.f7b2843c.js → EditorsView.fcdf0186.js} +2 -2
- abstra_statics/dist/assets/EnvVars.5519b4ce.js +2 -0
- abstra_statics/dist/assets/Error.11fd1f21.js +2 -0
- abstra_statics/dist/assets/ExclamationCircleOutlined.d0aa47da.js +2 -0
- abstra_statics/dist/assets/Files.6ea18d46.js +2 -0
- abstra_statics/dist/assets/{Form.8077681f.js → Form.09de384c.js} +2 -2
- abstra_statics/dist/assets/{FormRunner.055e2c45.js → FormRunner.15be6fa0.js} +2 -2
- abstra_statics/dist/assets/{Home.0ef22910.js → Home.782c5702.js} +2 -2
- abstra_statics/dist/assets/Home.7c495aa9.js +2 -0
- abstra_statics/dist/assets/{Live.e1261458.js → Live.48c10605.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.82ac3d44.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.66639b08.js +2 -0
- abstra_statics/dist/assets/Login.4a05f5c5.js +2 -0
- abstra_statics/dist/assets/{Login.041361ea.js → Login.4e852955.js} +2 -2
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.c2eb444c.js → Login.vue_vue_type_script_setup_true_lang.5161f328.js} +2 -2
- abstra_statics/dist/assets/Logo.65e0b37c.js +2 -0
- abstra_statics/dist/assets/{Logs.f76cde12.js → Logs.7d1acf32.js} +2 -2
- abstra_statics/dist/assets/{LogsController.addd81bf.js → LogsController.0eb2eb30.js} +2 -2
- abstra_statics/dist/assets/Main.0313f4fc.js +2 -0
- abstra_statics/dist/assets/{MockForm.c9441864.js → MockForm.0b819a52.js} +2 -2
- abstra_statics/dist/assets/Navbar.ef64aa09.js +2 -0
- abstra_statics/dist/assets/NewEditor.b9c410fe.css +1 -0
- abstra_statics/dist/assets/NewEditor.c928dbe9.js +8 -0
- abstra_statics/dist/assets/OidcLoginCallback.42a7c4f9.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.35931a68.js +2 -0
- abstra_statics/dist/assets/OmniChat.73d9f6bb.js +6 -0
- abstra_statics/dist/assets/OmniChat.a21fec40.css +1 -0
- abstra_statics/dist/assets/{OnboardingView.fbc4b6fe.js → OnboardingView.25042384.js} +2 -2
- abstra_statics/dist/assets/{Organization.bc495099.js → Organization.66f64939.js} +2 -2
- abstra_statics/dist/assets/Organizations.47868beb.js +2 -0
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.156bcd89.js → PhArrowCounterClockwise.vue.78877a50.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.d0c95a06.js → PhArrowSquareOut.vue.2ddfc219.js} +2 -2
- abstra_statics/dist/assets/{PhBookBookmark.vue.42e49494.js → PhBookBookmark.vue.41108214.js} +2 -2
- abstra_statics/dist/assets/{PhChats.vue.54d692e4.js → PhChats.vue.71e5cb89.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.d47d66ba.js → PhClockCounterClockwise.vue.854c3cb5.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.a0d9b0ec.js → PhCopy.vue.d116ddfb.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.43c74ebe.js → PhCopySimple.vue.5d0f839d.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.498c014d.js → PhCube.vue.abf4a034.js} +2 -2
- abstra_statics/dist/assets/PhDatabase.vue.a94d95f6.js +2 -0
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.0ea03d82.js → PhDotsThreeVertical.vue.5e8ae2a9.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.c92aeaff.js → PhDownloadSimple.vue.e88f64f1.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.0c210f8d.js → PhFolderPlus.vue.21d377a3.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.86c3014a.js → PhGear.vue.363dd83c.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.72ce23d3.js → PhKey.vue.23f3a465.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.80ed4b2e.js → PhPencil.vue.feb383e2.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.0046d784.js → PhPencilSimple.vue.ec0eebb4.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.f3302a7e.js → PhRocket.vue.261a42b2.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.c9150da4.js → PhSignOut.vue.d1d6498f.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.84ea95fc.js → PhSparkle.vue.b6712d34.js} +2 -2
- abstra_statics/dist/assets/{PhUserList.vue.bce47902.js → PhUserList.vue.e0b8c21b.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.0a84dfa4.js → PhUsersThree.vue.8889f957.js} +2 -2
- abstra_statics/dist/assets/PhWarningCircle.vue.2087be7d.js +2 -0
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.a704632d.js → PhWebhooksLogo.vue.d164db1e.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.26b585a1.js → PlayerConfigProvider.28e29025.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.0fa6f760.js → PlayerNavbar.aaad1dfd.js} +2 -2
- abstra_statics/dist/assets/Project.2de506d7.js +2 -0
- abstra_statics/dist/assets/{ProjectLogin.934271a6.js → ProjectLogin.22c8b093.js} +2 -2
- abstra_statics/dist/assets/{ProjectSettings.2bf7e6c8.js → ProjectSettings.d065c292.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.ed31b921.js → ProjectsView.cbd118ac.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.fdf70b31.js → SaveButton.428227de.js} +2 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.6d724b05.js +2 -0
- abstra_statics/dist/assets/{Sidebar.e69f49bd.css → Sidebar.29baeab0.css} +1 -1
- abstra_statics/dist/assets/{Sidebar.781afa0a.js → Sidebar.41173d8e.js} +2 -2
- abstra_statics/dist/assets/Sql.90e6e2ba.css +1 -0
- abstra_statics/dist/assets/Sql.c070dd2c.js +5 -0
- abstra_statics/dist/assets/Steps.dd51a108.js +2 -0
- abstra_statics/dist/assets/TableCard.529112b9.css +1 -0
- abstra_statics/dist/assets/TableCard.c9a1cf41.js +2 -0
- abstra_statics/dist/assets/TableEditor.1bc47a95.js +2 -0
- abstra_statics/dist/assets/TableEditor.5853a363.css +1 -0
- abstra_statics/dist/assets/Tables.eff119eb.js +2 -0
- abstra_statics/dist/assets/TablesDiagram.a588e7ff.css +1 -0
- abstra_statics/dist/assets/TablesDiagram.d633acaf.js +15 -0
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.cf7e34c5.js +2 -0
- abstra_statics/dist/assets/{Tasks.ee450480.js → Tasks.c311b05f.js} +2 -2
- abstra_statics/dist/assets/{UploadOutlined.e3072945.js → UploadOutlined.9aa845de.js} +2 -2
- abstra_statics/dist/assets/View.dd7ba25a.js +2 -0
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.ee5d447b.js → View.vue_vue_type_script_setup_true_lang.e6563207.js} +2 -2
- abstra_statics/dist/assets/{Watermark.891eee9f.js → Watermark.9c9358e3.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.7409cd48.js → WebEditor.83f2a960.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.7c6a231c.js +2 -0
- abstra_statics/dist/assets/ant-design.42419021.js +2 -0
- abstra_statics/dist/assets/apiKey.403049eb.js +2 -0
- abstra_statics/dist/assets/asyncComputed.47aec2b5.js +2 -0
- abstra_statics/dist/assets/{build.8fa1a961.js → build.45b511b6.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.50ced1e9.js +2 -0
- abstra_statics/dist/assets/console.f0f09e6f.js +17 -0
- abstra_statics/dist/assets/constants.d569f33d.js +2 -0
- abstra_statics/dist/assets/{contracts.generated.c4057ed0.js → contracts.generated.aefe8d0a.js} +2 -2
- abstra_statics/dist/assets/{cssMode.4c65b876.js → cssMode.23271d4a.js} +2 -2
- abstra_statics/dist/assets/{datetime.e5660676.js → datetime.82608dfb.js} +2 -2
- abstra_statics/dist/assets/dayjs.7f71c60a.js +2 -0
- abstra_statics/dist/assets/editor.02184ced.js +2 -0
- abstra_statics/dist/assets/editor.main.0f931e87.js +2 -0
- abstra_statics/dist/assets/fetch.1b3d01a0.js +2 -0
- abstra_statics/dist/assets/files.8b58ee7e.js +2 -0
- abstra_statics/dist/assets/folder.13d3acac.js +2 -0
- abstra_statics/dist/assets/{freemarker2.1d872d48.js → freemarker2.f79b510b.js} +2 -2
- abstra_statics/dist/assets/{handlebars.41fc6db8.js → handlebars.07d5febe.js} +2 -2
- abstra_statics/dist/assets/{html.967e3c6d.js → html.7d6a59b4.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.d38ab72a.js → htmlMode.7779ff94.js} +2 -2
- abstra_statics/dist/assets/{index.8e871bae.js → index.482df04a.js} +2 -2
- abstra_statics/dist/assets/{index.4b93c8ad.js → index.581e2edd.js} +2 -2
- abstra_statics/dist/assets/index.966ac1b9.js +2 -0
- abstra_statics/dist/assets/{index.9021ba5d.js → index.c7a996a6.js} +2 -2
- abstra_statics/dist/assets/{index.03d222dd.js → index.c8a56795.js} +2 -2
- abstra_statics/dist/assets/{index.5f3f38ed.js → index.d31da2c3.js} +2 -2
- abstra_statics/dist/assets/{index.51dbb698.js → index.d53182ed.js} +2 -2
- abstra_statics/dist/assets/{index.b762f5e8.js → index.e71a5f84.js} +2 -2
- abstra_statics/dist/assets/{javascript.0935bea2.js → javascript.4c528c2c.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.2860b71c.js → jsonMode.d6441e9d.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.7f2ef0df.js → jwt-decode.esm.54a1ea22.js} +8 -8
- abstra_statics/dist/assets/linters.a0f2aa84.js +2 -0
- abstra_statics/dist/assets/{liquid.1bae5f6b.js → liquid.0c441ad2.js} +2 -2
- abstra_statics/dist/assets/member.2260c37e.js +2 -0
- abstra_statics/dist/assets/{metadata.39f9b9ba.js → metadata.0098e20c.js} +2 -2
- abstra_statics/dist/assets/omniChatStore.dd7a1c46.js +8 -0
- abstra_statics/dist/assets/{organization.a877b653.js → organization.668d1b58.js} +2 -2
- abstra_statics/dist/assets/player.4ab4aed5.js +2 -0
- abstra_statics/dist/assets/{plotly.min.d3f75723.js → plotly.min.2a87d7e2.js} +2 -2
- abstra_statics/dist/assets/polling.b5a32c22.js +2 -0
- abstra_statics/dist/assets/{project.d22a89ee.js → project.1b8374f4.js} +2 -2
- abstra_statics/dist/assets/{python.4c1a1300.js → python.7ac27a56.js} +3 -3
- abstra_statics/dist/assets/{razor.ba8bdb33.js → razor.860a0279.js} +2 -2
- abstra_statics/dist/assets/{record.4ffc477c.js → record.e83a2eb2.js} +2 -2
- abstra_statics/dist/assets/{redirect.ce3c0f65.js → redirect.586749f4.js} +2 -2
- abstra_statics/dist/assets/{repository.360feb8f.js → repository.3a331f0f.js} +2 -2
- abstra_statics/dist/assets/{repository.ab3036a9.js → repository.66c7567c.js} +2 -2
- abstra_statics/dist/assets/router.06ee2b9d.js +2 -0
- abstra_statics/dist/assets/router.4dfadf5d.js +18 -0
- abstra_statics/dist/assets/string.61e11a30.js +2 -0
- abstra_statics/dist/assets/{tables.be1c51f8.js → tables.1bcb1140.js} +2 -2
- abstra_statics/dist/assets/{tasksController.bf12e264.js → tasksController.f3adf725.js} +2 -2
- abstra_statics/dist/assets/{toggleHighContrast.c4e1b24d.js → toggleHighContrast.9535bf54.js} +7 -7
- abstra_statics/dist/assets/{tsMode.da264aae.js → tsMode.c0f9fe1a.js} +2 -2
- abstra_statics/dist/assets/{typescript.db5d7517.js → typescript.310eae6d.js} +3 -3
- abstra_statics/dist/assets/url.f5664225.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.42573b00.js → useCodebaseEvents.276cc8f0.js} +2 -2
- abstra_statics/dist/assets/useTables.18fc3efd.js +2 -0
- abstra_statics/dist/assets/userStore.6ab1e5ac.js +2 -0
- abstra_statics/dist/assets/uuid.5b8ba8af.js +2 -0
- abstra_statics/dist/assets/vue-flow-background.af096866.js +2 -0
- abstra_statics/dist/assets/vue-flow-core.6cb99d32.js +22 -0
- abstra_statics/dist/assets/{vue-quill.esm-bundler.37119951.js → vue-quill.esm-bundler.e3d34d0e.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.50ef2df1.js → workspaceStore.fac1e9a9.js} +2 -2
- abstra_statics/dist/assets/{xml.94b88503.js → xml.04864db4.js} +3 -3
- abstra_statics/dist/assets/{yaml.73b7d5ce.js → yaml.f30375fe.js} +3 -3
- abstra_statics/dist/console.html +14 -15
- abstra_statics/dist/editor.html +13 -13
- abstra_statics/dist/player.html +9 -9
- tests/e2e/test_crud_files.py +1 -0
- abstra_internals/templates/abstraignore +0 -8
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.3f03a3ef.js +0 -2
- abstra_statics/dist/assets/ApiKeys.cb561e62.js +0 -2
- abstra_statics/dist/assets/App.dc82115f.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.3640ec1c.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.b428e487.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.506f28c6.js +0 -2
- abstra_statics/dist/assets/ContentLayout.228d2328.js +0 -2
- abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.61381525.js +0 -2
- abstra_statics/dist/assets/EnvVars.242b97c2.js +0 -2
- abstra_statics/dist/assets/Error.466dbb94.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.6d10f60b.js +0 -2
- abstra_statics/dist/assets/Files.104385dd.js +0 -2
- abstra_statics/dist/assets/Home.80c7e349.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.6e2b63e4.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.cd84d9c9.js +0 -2
- abstra_statics/dist/assets/Login.409f4a11.js +0 -2
- abstra_statics/dist/assets/Logo.2de02c4a.js +0 -2
- abstra_statics/dist/assets/Main.4370ed68.js +0 -2
- abstra_statics/dist/assets/Navbar.07ba9452.js +0 -2
- abstra_statics/dist/assets/NewEditor.769f4459.js +0 -8
- abstra_statics/dist/assets/NewEditor.d6e41a05.css +0 -1
- abstra_statics/dist/assets/OidcLoginCallback.a89857fe.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.d151c695.js +0 -2
- abstra_statics/dist/assets/OmniChat.0f64dfec.css +0 -1
- abstra_statics/dist/assets/OmniChat.d015bfa8.js +0 -6
- abstra_statics/dist/assets/Organizations.b630803f.js +0 -2
- abstra_statics/dist/assets/PhPencilSimpleLine.vue.34633dfa.js +0 -2
- abstra_statics/dist/assets/Project.c03610d3.js +0 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.3bbea426.js +0 -2
- abstra_statics/dist/assets/Sql.3cdc910a.css +0 -1
- abstra_statics/dist/assets/Sql.b6aa38ca.js +0 -5
- abstra_statics/dist/assets/Steps.7c7e4a4a.js +0 -2
- abstra_statics/dist/assets/TableEditor.1e680eaf.css +0 -1
- abstra_statics/dist/assets/TableEditor.dc1b4a2d.js +0 -2
- abstra_statics/dist/assets/Tables.de30953b.js +0 -2
- abstra_statics/dist/assets/TablesDiagram.1ec45dd9.css +0 -1
- abstra_statics/dist/assets/TablesDiagram.97d6a43f.js +0 -15
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.63aa07d0.js +0 -2
- abstra_statics/dist/assets/View.617ad8d8.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.99f14714.js +0 -2
- abstra_statics/dist/assets/ant-design.4952c8fb.js +0 -2
- abstra_statics/dist/assets/apiKey.864dc66b.js +0 -2
- abstra_statics/dist/assets/asyncComputed.25309626.js +0 -2
- abstra_statics/dist/assets/colorHelpers.71d6d61d.js +0 -2
- abstra_statics/dist/assets/console.3d4702c3.js +0 -25
- abstra_statics/dist/assets/constants.56e8988f.js +0 -2
- abstra_statics/dist/assets/dayjs.c54f8edb.js +0 -2
- abstra_statics/dist/assets/editor.6d0baf6f.js +0 -2
- abstra_statics/dist/assets/editor.main.65812c73.js +0 -2
- abstra_statics/dist/assets/fetch.5136a62d.js +0 -2
- abstra_statics/dist/assets/folder.d7d65e5b.js +0 -2
- abstra_statics/dist/assets/index.23283fbb.js +0 -2
- abstra_statics/dist/assets/index.58e29274.js +0 -2
- abstra_statics/dist/assets/linters.640d6098.js +0 -2
- abstra_statics/dist/assets/member.b7ac8000.js +0 -2
- abstra_statics/dist/assets/omniChatStore.3431c026.js +0 -8
- abstra_statics/dist/assets/player.30593e18.js +0 -2
- abstra_statics/dist/assets/polling.d1c934c7.js +0 -2
- abstra_statics/dist/assets/router.7f571832.js +0 -2
- abstra_statics/dist/assets/router.8fd5b2ad.js +0 -10
- abstra_statics/dist/assets/string.2ed1cde3.js +0 -2
- abstra_statics/dist/assets/url.8583a595.js +0 -2
- abstra_statics/dist/assets/userStore.73b89fbb.js +0 -2
- abstra_statics/dist/assets/uuid.dadede91.js +0 -2
- abstra_statics/dist/assets/vue-flow-background.d2772d9a.js +0 -22
- {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/WHEEL +0 -0
- {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/entry_points.txt +0 -0
- {abstra-3.23.12.dist-info → abstra-3.24.1.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var ue=Object.defineProperty;var de=(v,e,t)=>e in v?ue(v,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):v[e]=t;var N=(v,e,t)=>(de(v,typeof e!="symbol"?e+"":e,t),t);import{_ as pe}from"./DocsButton.vue_vue_type_script_setup_true_lang.61381525.js";import{_ as W}from"./AbstraButton.vue_vue_type_script_setup_true_lang.441fcdfd.js";import{d as P,am as x,c as T,o as s,a5 as y,a7 as le,h as I,e6 as se,e as A,r as K,M as D,w as ae,a as C,b as l,ec as R,u as a,cz as he,bJ as q,cR as ge,aR as M,cP as ve,g as k,ed as E,cv as ye,bM as fe,aB as me,cE as Ce,db as ke,f as i,da as Z,cy as be,de as V,d9 as B,cW as we,d4 as _e,ea as He,_ as ie,eb as Ve,L as te,cH as G,A as O,bP as Ae,bx as $e,bw as oe,eG as Ie,er as Se,es as Te}from"./jwt-decode.esm.7f2ef0df.js";import{G as Ue}from"./PhDotsThreeVertical.vue.0ea03d82.js";import{h as L,l as Me}from"./router.8fd5b2ad.js";import{U as je}from"./UploadOutlined.e3072945.js";import{_ as Ne}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3f03a3ef.js";import{L as Ze}from"./Logo.2de02c4a.js";import{G as Fe}from"./PhWebhooksLogo.vue.a704632d.js";import{A as ce}from"./index.03d222dd.js";import{C as re}from"./Card.1d1a9fb7.js";import{A as Ee}from"./index.23283fbb.js";import"./constants.56e8988f.js";import"./index.9021ba5d.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[e]="91c17712-ab01-4fda-94e3-931cf8bbe9e9",v._sentryDebugIdIdentifier="sentry-dbid-91c17712-ab01-4fda-94e3-931cf8bbe9e9")}catch{}})();const Le=["width","height","fill","transform"],xe={key:0},ze=A("path",{d:"M216.49,184.49l-32,32a12,12,0,0,1-17-17L179,188H48a12,12,0,0,1,0-24H179l-11.52-11.51a12,12,0,0,1,17-17l32,32A12,12,0,0,1,216.49,184.49Zm-145-64a12,12,0,0,0,17-17L77,92H208a12,12,0,0,0,0-24H77L88.49,56.49a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17Z"},null,-1),Ke=[ze],Pe={key:1},Re=A("path",{d:"M208,80v96H48V80Z",opacity:"0.2"},null,-1),Be=A("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"},null,-1),De=[Re,Be],qe={key:2},Ge=A("path",{d:"M42.34,85.66a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,88,48V72H208a8,8,0,0,1,0,16H88v24a8,8,0,0,1-13.66,5.66Zm171.32,84.68-32-32A8,8,0,0,0,168,144v24H48a8,8,0,0,0,0,16H168v24a8,8,0,0,0,13.66,5.66l32-32A8,8,0,0,0,213.66,170.34Z"},null,-1),Oe=[Ge],Je={key:3},We=A("path",{d:"M212.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48-8.48L193.51,182H48a6,6,0,0,1,0-12H193.51l-21.75-21.76a6,6,0,0,1,8.48-8.48ZM75.76,116.24a6,6,0,0,0,8.48-8.48L62.49,86H208a6,6,0,0,0,0-12H62.49L84.24,52.24a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48Z"},null,-1),Ye=[We],Qe={key:4},Xe=A("path",{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"},null,-1),en=[Xe],nn={key:5},an=A("path",{d:"M210.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66-5.66L198.34,180H48a4,4,0,0,1,0-8H198.34l-25.17-25.17a4,4,0,0,1,5.66-5.66ZM77.17,114.83a4,4,0,0,0,5.66-5.66L57.66,84H208a4,4,0,0,0,0-8H57.66L82.83,50.83a4,4,0,0,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66Z"},null,-1),tn=[an],on={name:"PhArrowsLeftRight"},ln=P({...on,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(v){const e=v,t=x("weight","regular"),n=x("size","1em"),r=x("color","currentColor"),f=x("mirrored",!1),c=T(()=>{var g;return(g=e.weight)!=null?g:t}),b=T(()=>{var g;return(g=e.size)!=null?g:n}),S=T(()=>{var g;return(g=e.color)!=null?g:r}),U=T(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:f?"scale(-1, 1)":void 0);return(g,d)=>(s(),y("svg",se({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:S.value,transform:U.value},g.$attrs),[le(g.$slots,"default"),c.value==="bold"?(s(),y("g",xe,Ke)):c.value==="duotone"?(s(),y("g",Pe,De)):c.value==="fill"?(s(),y("g",qe,Oe)):c.value==="light"?(s(),y("g",Je,Ye)):c.value==="regular"?(s(),y("g",Qe,en)):c.value==="thin"?(s(),y("g",nn,tn)):I("",!0)],16,Le))}}),sn=["width","height","fill","transform"],cn={key:0},rn=A("path",{d:"M224,64H180V56a28,28,0,0,0-28-28H104A28,28,0,0,0,76,56v8H32A20,20,0,0,0,12,84V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V84A20,20,0,0,0,224,64ZM100,56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v8H100ZM220,88v32H196v-4a12,12,0,0,0-24,0v4H84v-4a12,12,0,0,0-24,0v4H36V88ZM36,188V144H60v4a12,12,0,0,0,24,0v-4h88v4a12,12,0,0,0,24,0v-4h24v44Z"},null,-1),un=[rn],dn={key:1},pn=A("path",{d:"M232,120v72a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V120Z",opacity:"0.2"},null,-1),hn=A("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64ZM96,56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM32,80H224v32H192v-8a8,8,0,0,0-16,0v8H80v-8a8,8,0,0,0-16,0v8H32ZM224,192H32V128H64v8a8,8,0,0,0,16,0v-8h96v8a8,8,0,0,0,16,0v-8h32v64Z"},null,-1),gn=[pn,hn],vn={key:2},yn=A("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80v28a4,4,0,0,0,4,4H64V96.27A8.17,8.17,0,0,1,71.47,88,8,8,0,0,1,80,96v16h96V96.27A8.17,8.17,0,0,1,183.47,88,8,8,0,0,1,192,96v16h44a4,4,0,0,0,4-4V80A16,16,0,0,0,224,64Zm-64,0H96V56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm80,68v60a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V132a4,4,0,0,1,4-4H64v16a8,8,0,0,0,8.53,8A8.17,8.17,0,0,0,80,143.73V128h96v16a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V128h44A4,4,0,0,1,240,132Z"},null,-1),fn=[yn],mn={key:3},Cn=A("path",{d:"M224,66H174V56a22,22,0,0,0-22-22H104A22,22,0,0,0,82,56V66H32A14,14,0,0,0,18,80V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V80A14,14,0,0,0,224,66ZM94,56a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V66H94ZM32,78H224a2,2,0,0,1,2,2v34H190V104a6,6,0,0,0-12,0v10H78V104a6,6,0,0,0-12,0v10H30V80A2,2,0,0,1,32,78ZM224,194H32a2,2,0,0,1-2-2V126H66v10a6,6,0,0,0,12,0V126H178v10a6,6,0,0,0,12,0V126h36v66A2,2,0,0,1,224,194Z"},null,-1),kn=[Cn],bn={key:4},wn=A("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64ZM96,56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM224,80v32H192v-8a8,8,0,0,0-16,0v8H80v-8a8,8,0,0,0-16,0v8H32V80Zm0,112H32V128H64v8a8,8,0,0,0,16,0v-8h96v8a8,8,0,0,0,16,0v-8h32v64Z"},null,-1),_n=[wn],Hn={key:5},Vn=A("path",{d:"M224,68H172V56a20,20,0,0,0-20-20H104A20,20,0,0,0,84,56V68H32A12,12,0,0,0,20,80V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V80A12,12,0,0,0,224,68ZM92,56a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V68H92ZM32,76H224a4,4,0,0,1,4,4v36H188V104a4,4,0,0,0-8,0v12H76V104a4,4,0,0,0-8,0v12H28V80A4,4,0,0,1,32,76ZM224,196H32a4,4,0,0,1-4-4V124H68v12a4,4,0,0,0,8,0V124H180v12a4,4,0,0,0,8,0V124h40v68A4,4,0,0,1,224,196Z"},null,-1),An=[Vn],$n={name:"PhToolbox"},In=P({...$n,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(v){const e=v,t=x("weight","regular"),n=x("size","1em"),r=x("color","currentColor"),f=x("mirrored",!1),c=T(()=>{var g;return(g=e.weight)!=null?g:t}),b=T(()=>{var g;return(g=e.size)!=null?g:n}),S=T(()=>{var g;return(g=e.color)!=null?g:r}),U=T(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:f?"scale(-1, 1)":void 0);return(g,d)=>(s(),y("svg",se({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:b.value,height:b.value,fill:S.value,transform:U.value},g.$attrs),[le(g.$slots,"default"),c.value==="bold"?(s(),y("g",cn,un)):c.value==="duotone"?(s(),y("g",dn,gn)):c.value==="fill"?(s(),y("g",vn,fn)):c.value==="light"?(s(),y("g",mn,kn)):c.value==="regular"?(s(),y("g",bn,_n)):c.value==="thin"?(s(),y("g",Hn,An)):I("",!0)],16,sn))}});class Sn{async generateEcdsaKey(e){const{projectId:t,connectionName:n,connectorType:r}=e;return L.post(`projects/${t}/connectors/${r}/connections/${n}/ecdsa-key`,{})}async createEcdsaConnection(e){const{projectId:t,connectionName:n,connectorType:r,publicKey:f,privateKey:c,accessId:b}=e;return L.post(`projects/${t}/connectors/${r}/connections/${n}/create-ecdsa`,{publicKey:f,privateKey:c,accessId:b})}async getLoginUrl(e,t,n,r,f){return L.get(`projects/${e}/connectors/${n}/connections/${t}/login-url`,{scopeIds:r.join(","),...f})}async listConnectors(e){return L.get(`projects/${e}/connectors`)}async createTokenConnection(e){const{projectId:t,connectionName:n,connectorType:r,tokens:f}=e,c={type:"tokens",tokens:f};return L.post(`projects/${t}/connectors/${r}/connections/${n}`,c)}async listConnections(e){return L.get(`projects/${e}/connections`)}async deleteConnection(e){const{projectId:t,connectionName:n,connectorType:r}=e;return L.delete(`projects/${t}/connectors/${r}/connections/${n}`)}async renameConnection(e){const{projectId:t,connectionName:n,connectorType:r,newConnectionName:f}=e;return L.patch(`projects/${t}/connectors/${r}/connections/${n}`,{newConnectionName:f})}}class Tn{constructor(e,t){N(this,"state");N(this,"hasChanges",T(()=>!!this.state.value.editingConnection&&this.state.value.editingConnection.name!==this.state.value.editingConnection.newName));N(this,"handleDeletionClick",async e=>{D.confirm({title:"Delete connection",content:"Are you sure you want to delete this connection?",onOk:()=>this.handleDeleteConnection(e)})});N(this,"handleDeleteConnection",async e=>{await this.api.deleteConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType}),this.state.value.editingConnection=null,await this.refetchConnections()});N(this,"handleAddConnectionSubmit",async()=>{var f,c,b,S;const e=(f=this.state.value.addingConnection)==null?void 0:f.connector.metadata.key,t=(c=this.state.value.addingConnection)==null?void 0:c.selectedScopeIds,n=(S=(b=this.state.value.addingConnection)==null?void 0:b.tokenValues)!=null?S:{};if(!e||!t)throw new Error("No connector or scope selected");const{url:r}=await this.getLoginUrl(e,this.getUniqueName(e),t,n);window.location.href=r});N(this,"handleAddTokenConnectionSubmit",async()=>{const e=this.state.value.addingConnection;if(!e)throw new Error("No connection is being added");const t=e.connector.metadata.key,n=this.getUniqueName(t);await this.api.createTokenConnection({projectId:this.projectId,connectionName:n,connectorType:t,tokens:e.tokenValues}),this.state.value.addingConnection=null,await this.refetchConnections()});N(this,"handleAddEcdsaConnectionSubmit",async(e,t)=>{const n=this.state.value.addingConnection;if(!n||!e||!t)throw new Error("No connection is being added, public key or project ID is missing");if(!n.connectionName||!n.ecdsaKeys)throw new Error("Keys or connection name not found");await this.api.createEcdsaConnection({projectId:this.projectId,connectionName:n.connectionName,connectorType:n.connector.metadata.key,publicKey:n.ecdsaKeys.publicKey,privateKey:n.ecdsaKeys.privateKey,accessId:t}),this.state.value.addingConnection=null,await this.refetchConnections()});N(this,"renameConnection",async()=>{const{editingConnection:e}=this.state.value;if(!e)throw new Error("No connection is being edited");const t=async()=>{await this.api.renameConnection({projectId:this.projectId,connectionName:e.name,connectorType:e.connectorType,newConnectionName:e.newName}),await this.refetchConnections(),this.state.value.editingConnection=null};D.confirm({title:"Rename connection",content:"Are you sure you want to rename this connection? This will break any existing references to the old name.",onOk:t})});N(this,"showAddConfirmationModal",e=>{this.state.value.addingConnection={selectedScopeIds:e.auth.type==="oauth2"?e.auth.scopes.map(t=>t.key):[],connector:e,tokenValues:{}}});N(this,"handleScopeToggle",(e,t)=>{t?this.state.value.addingConnection.selectedScopeIds.push(e):this.state.value.addingConnection.selectedScopeIds=this.state.value.addingConnection.selectedScopeIds.filter(n=>n!==e)});this.projectId=e,this.api=t,this.state=K({connectors:[],connections:[],addingConnection:null,editingConnection:null})}async fetchConnectors(){this.state.value.connectors=await this.api.listConnectors(this.projectId)}async fetchInitialState(){await this.fetchConnectors(),await this.refetchConnections()}async refetchConnections(){const e=await this.api.listConnections(this.projectId);this.state.value.connections=e.map(t=>{const n=this.state.value.connectors.find(r=>r.metadata.key===t.connectionType);return n?{name:t.name,connectorTitle:n.metadata.label,connectorType:t.connectionType,icon:n.metadata.logoUrl}:null}).filter(t=>t!==null)}handleEditConnectionClick(e){this.state.value.editingConnection={...e,newName:e.name}}async getLoginUrl(e,t,n,r){return this.api.getLoginUrl(this.projectId,t,e,n,r)}slugify(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-")}getUniqueName(e){const t=this.state.value.connections.filter(n=>n.connectorType===e).length;return t===0?e:`${e}-${t}`}async generateEcdsaKey(){const e=this.state.value.addingConnection;if(!e)throw new Error("No connection is being added");const t=e.connector.metadata.key,n=this.getUniqueName(t),r=await this.api.generateEcdsaKey({projectId:this.projectId,connectionName:n,connectorType:t});return this.state.value.addingConnection&&(this.state.value.addingConnection.connectionName=n,this.state.value.addingConnection.ecdsaKeys=r),r.publicKey}}function Un(v){return new Promise((e,t)=>{const n=new FileReader;n.onload=()=>{const f=n.result.split(",")[1];e(f)},n.onerror=()=>t(n.error),n.readAsDataURL(v)})}const Mn={key:6,style:{"margin-top":"16px"}},J=P({__name:"AuthFormFields",props:{tokens:{},tokenValues:{},uploadedFiles:{default:()=>({})}},emits:["update:tokenValues","update:uploadedFiles","tokenChange"],setup(v,{emit:e}){const t=v,n=K(t.uploadedFiles||{});function r(u){const h=c.value[u];return h?h.split(",").map(o=>o.trim()):[]}function f(u,h){Array.isArray(h)?b(u,h.join(",")):console.error("Expected array for checkbox/select value")}const c=K({...t.tokenValues});ae(()=>t.tokenValues,u=>{c.value={...u}},{deep:!0}),ae(()=>t.uploadedFiles,u=>{n.value=u||{}},{deep:!0});function b(u,h){c.value[u]=h;const o={...c.value};e("update:tokenValues",o),e("tokenChange")}function S(u){var o,H;const h=[];return u.key&&h.push({required:!0,message:`${u.label||u.key} is required`}),(o=u.input)!=null&&o.minSize&&h.push({min:u.input.minSize,message:`Minimum length is ${u.input.minSize}`}),(H=u.input)!=null&&H.maxSize&&h.push({max:u.input.maxSize,message:`Maximum length is ${u.input.maxSize}`}),h}async function U(u,h){try{const o=await Un(u),H={...n.value,[h]:{file:u,base64:o}};n.value=H,e("update:uploadedFiles",H),c.value[h]=o;const p={...c.value};e("update:tokenValues",p),e("tokenChange")}catch(o){console.error("Error converting file to base64:",o)}return!1}function g(u){const h={...n.value};delete h[u],n.value=h,e("update:uploadedFiles",h),c.value[u]="";const o={...c.value};e("update:tokenValues",o),e("tokenChange")}function d(u){const h=n.value[u];return h?[{uid:u,name:h.file.name,status:"done",size:h.file.size}]:[]}return(u,h)=>(s(),C(a(be),{model:c.value,layout:"vertical"},{default:l(()=>[(s(!0),y(M,null,R(u.tokens,o=>(s(),C(a(he),{key:o.key,label:o.label,name:o.key,rules:S(o)},{default:l(()=>{var H,p,_,j,m,$,z,F,Y,Q,X,ee,ne;return[((H=o.input)==null?void 0:H.type)==="small-string"?(s(),C(a(q),{key:0,value:c.value[o.key],"onUpdate:value":w=>c.value[o.key]=w,placeholder:o.description,maxlength:(p=o.input)==null?void 0:p.maxSize,minlength:(_=o.input)==null?void 0:_.minSize,type:"password",onInput:()=>b(o.key,c.value[o.key]||"")},null,8,["value","onUpdate:value","placeholder","maxlength","minlength","onInput"])):((j=o.input)==null?void 0:j.type)==="radiobox"?(s(),C(a(ge),{key:1,value:c.value[o.key],"onUpdate:value":w=>c.value[o.key]=w,onChange:()=>b(o.key,c.value[o.key]||"")},{default:l(()=>[(s(!0),y(M,null,R(o.input.options,w=>(s(),C(a(ve),{key:w.value,value:w.value},{default:l(()=>[k(E(w.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","onChange"])):((m=o.input)==null?void 0:m.type)==="checkbox"?(s(),y(M,{key:2},[((F=(z=($=o.input)==null?void 0:$.options)==null?void 0:z.length)!=null?F:0)<=10?(s(),C(a(ye),{key:0,value:r(o.key),onChange:w=>f(o.key,w)},{default:l(()=>[(s(!0),y(M,null,R(o.input.options,w=>(s(),C(a(fe),{key:w.value,value:w.value},{default:l(()=>[k(E(w.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onChange"])):(s(),C(a(me),{key:1,mode:"multiple",style:{width:"100%"},value:r(o.key),options:(Y=o.input.options)!=null?Y:[],onChange:w=>f(o.key,w)},null,8,["value","options","onChange"]))],64)):((Q=o.input)==null?void 0:Q.type)==="large-text"?(s(),C(a(Ce),{key:3,value:c.value[o.key],"onUpdate:value":w=>c.value[o.key]=w,placeholder:o.description,maxlength:(X=o.input)==null?void 0:X.maxSize,minlength:(ee=o.input)==null?void 0:ee.minSize,rows:4,onInput:()=>b(o.key,c.value[o.key]||"")},null,8,["value","onUpdate:value","placeholder","maxlength","minlength","onInput"])):((ne=o.input)==null?void 0:ne.type)==="file"?(s(),C(a(ke),{key:4,"file-list":d(o.key),"before-upload":w=>U(w,o.key),"max-count":1,"show-upload-list":!0,onRemove:()=>g(o.key)},{default:l(()=>[i(W,null,{default:l(()=>[i(a(je)),k(" Upload File ")]),_:1})]),_:2},1032,["file-list","before-upload","onRemove"])):(s(),C(a(q),{key:5,value:c.value[o.key],"onUpdate:value":w=>c.value[o.key]=w,placeholder:o.description,type:"password",onInput:()=>b(o.key,c.value[o.key]||"")},null,8,["value","onUpdate:value","placeholder","onInput"])),o.instructions?(s(),y("div",Mn,[i(a(Z),{type:"secondary",style:{"white-space":"pre-line","font-size":"14px"}},{default:l(()=>[k(E(o.instructions),1)]),_:2},1024)])):I("",!0),o.description&&!o.instructions?(s(),C(a(Z),{key:7,type:"secondary",style:{display:"block","font-size":"12px","margin-top":"8px"}},{default:l(()=>[k(E(o.description),1)]),_:2},1024)):I("",!0)]}),_:2},1032,["label","name","rules"]))),128))]),_:1},8,["model"]))}}),jn=P({__name:"ConnectionHeader",props:{connectorLogoUrl:{},connectorLabel:{}},setup(v){return(e,t)=>(s(),C(a(V),{justify:"center",align:"center",gap:20,style:{"margin-bottom":"24px",padding:"20px 0"}},{default:l(()=>[i(Ne,{"hide-text":"",size:"large"}),i(a(ln),{size:24}),i(Ze,{"image-url":e.connectorLogoUrl,"brand-name":e.connectorLabel,size:"medium","hide-text":""},null,8,["image-url","brand-name"])]),_:1}))}}),Nn=P({__name:"ConnectionModal",props:{addingConnection:{},ecdsaPublicKey:{},ecdsaKeyLoading:{type:Boolean},uploadedFiles:{},loading:{type:Boolean}},emits:["cancel","submit","scope-toggle","generate-ecdsa-key","update:token-values","update:uploaded-files","token-change"],setup(v,{emit:e}){const t=v,n=T(()=>{var u,h,o;switch((u=t.addingConnection)==null?void 0:u.connector.auth.type){case"oauth2":return"Authorize";case"tokens":return"Create Connection";case"ecdsa":{if(!t.ecdsaPublicKey)return"OK";const H=((h=t.addingConnection)==null?void 0:h.connector.auth.params)||[],p=((o=t.addingConnection)==null?void 0:o.tokenValues)||{};return H.every(j=>p[j.key]&&p[j.key].trim().length>0)?"Create Connection":"Create Connection (Required fields missing)"}default:return"OK"}});function r(){e("cancel")}function f(){e("submit")}function c(d,u){e("scope-toggle",d,u)}function b(){e("generate-ecdsa-key")}function S(d){e("update:token-values",d)}function U(d){e("update:uploaded-files",d)}function g(){e("token-change")}return(d,u)=>{var h;return s(),C(a(D),{open:!!d.addingConnection,title:`Add ${(h=d.addingConnection)==null?void 0:h.connector.metadata.label} Connection`,"ok-text":n.value,"ok-button-props":{disabled:n.value.includes("Required")},"confirm-loading":d.loading,"wrap-class-name":"full-modal",onCancel:r,onOk:f},{default:l(()=>[d.addingConnection?(s(),y(M,{key:0},[i(jn,{"connector-logo-url":d.addingConnection.connector.metadata.logoUrl,"connector-label":d.addingConnection.connector.metadata.label},null,8,["connector-logo-url","connector-label"]),d.addingConnection.connector.auth.type==="oauth2"?(s(),y(M,{key:0},[i(a(B),null,{default:l(()=>[k(" Please select the scopes you want to authorize for this connection. You can change these later by deleting and re-adding the connection. ")]),_:1}),i(a(V),{vertical:"",gap:"10",style:{margin:"30px 0px"}},{default:l(()=>{var o;return[(s(!0),y(M,null,R(d.addingConnection.connector.auth.scopes,H=>(s(),C(a(V),{key:H.key,justify:"space-between",align:"center"},{default:l(()=>[i(a(V),{vertical:""},{default:l(()=>[i(a(Z),null,{default:l(()=>[k(E(H.description),1)]),_:2},1024),i(a(Z),{type:"secondary"},{default:l(()=>[k(E(H.key),1)]),_:2},1024)]),_:2},1024),i(a(we),{checked:d.addingConnection.selectedScopeIds.includes(H.key),onChange:p=>c(H.key,p)},null,8,["checked","onChange"])]),_:2},1024))),128)),(o=d.addingConnection.connector.auth.params)!=null&&o.length?(s(),C(J,{key:0,tokens:d.addingConnection.connector.auth.params,"token-values":d.addingConnection.tokenValues,"uploaded-files":d.uploadedFiles,"onUpdate:tokenValues":S,"onUpdate:uploadedFiles":U,onTokenChange:g},null,8,["tokens","token-values","uploaded-files"])):I("",!0)]}),_:1})],64)):I("",!0),d.addingConnection.connector.auth.type==="tokens"?(s(),y(M,{key:1},[i(a(B),null,{default:l(()=>[k(" Please provide the required tokens/credentials for this connection. ")]),_:1}),i(J,{tokens:d.addingConnection.connector.auth.tokens,"token-values":d.addingConnection.tokenValues,"uploaded-files":d.uploadedFiles,"onUpdate:tokenValues":S,"onUpdate:uploadedFiles":U,onTokenChange:g},null,8,["tokens","token-values","uploaded-files"])],64)):I("",!0),d.addingConnection.connector.auth.type==="ecdsa"?(s(),y(M,{key:2},[d.ecdsaPublicKey?(s(),C(a(V),{key:1,vertical:"",gap:"16"},{default:l(()=>[i(a(Z),{strong:""},{default:l(()=>[k("Chaves geradas! Agora siga os pr\xF3ximos passos:")]),_:1}),i(a(Z),{strong:""},{default:l(()=>[k("1. Copie sua chave p\xFAblica:")]),_:1}),i(a(q),{value:d.ecdsaPublicKey,readonly:"",copyable:"",code:""},null,8,["value"]),i(J,{tokens:d.addingConnection.connector.auth.params,"token-values":d.addingConnection.tokenValues,"uploaded-files":d.uploadedFiles,"onUpdate:tokenValues":S,"onUpdate:uploadedFiles":U,onTokenChange:g},null,8,["tokens","token-values","uploaded-files"])]),_:1})):(s(),y(M,{key:0},[i(a(B),null,{default:l(()=>[k(" Primeiro vamos gerar um par de chaves ECDSA para estabelecer a conex\xE3o segura. ")]),_:1}),i(a(V),{vertical:"",gap:"16"},{default:l(()=>[i(W,{loading:d.ecdsaKeyLoading,onClick:b},{default:l(()=>[k(" Gerar chaves ECDSA ")]),_:1},8,["loading"])]),_:1})],64))],64)):I("",!0)],64)):I("",!0)]),_:1},8,["open","title","ok-text","ok-button-props","confirm-loading"])}}}),Zn=P({__name:"ConnectorCard",props:{title:{},logoUrl:{},description:{},unavailable:{type:Boolean},connector:{}},setup(v){const e=v,t=T(()=>{var r;return((r=e.connector)==null?void 0:r.triggers)&&e.connector.triggers.length>0}),n=T(()=>{var r;return((r=e.connector)==null?void 0:r.actions)&&e.connector.actions.length>0});return(r,f)=>(s(),C(a(re),{class:He({"connector-card":!0,unavailable:r.unavailable})},{default:l(()=>[i(a(V),{style:{width:"100%"},vertical:"",gap:12},{default:l(()=>[i(a(V),{justify:"space-between"},{default:l(()=>[i(a(ce),{src:r.logoUrl,shape:"square",size:"large"},null,8,["src"]),i(a(V),{gap:8},{default:l(()=>[t.value?(s(),C(a(Fe),{key:0,size:16})):I("",!0),n.value?(s(),C(a(In),{key:1,size:16})):I("",!0),r.unavailable?(s(),C(a(_e),{key:2,style:{height:"fit-content"}},{default:l(()=>[k("Talk to us")]),_:1})):I("",!0)]),_:1})]),_:1}),i(a(V),{vertical:""},{default:l(()=>[i(a(Z),{strong:""},{default:l(()=>[k(E(r.title),1)]),_:1}),i(a(Z),{type:"secondary"},{default:l(()=>[k(E(r.description),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["class"]))}});const Fn=ie(Zn,[["__scopeId","data-v-f5866f99"]]),En=v=>(Se("data-v-1b384acc"),v=v(),Te(),v),Ln=En(()=>A("div",{style:{"flex-grow":"1"}},null,-1)),xn={class:"connectors-grid"},zn=P({__name:"ConnectorsView",setup(v){const t=Ve().params.projectId,n=new Tn(t,new Sn),r=K(null),f=K(!1),c=K({}),b=K(!1),S=T(()=>[...n.state.value.connectors.filter(p=>p.auth.type==="oauth2"),...n.state.value.connectors.filter(p=>p.auth.type==="tokens"),...n.state.value.connectors.filter(p=>p.auth.type==="ecdsa"),...n.state.value.connectors.filter(p=>p.auth.type==="manual")]),U=T(()=>n.state.value.connections.filter(p=>p&&p.name&&p.connectorTitle&&p.connectorType));n.fetchInitialState();function g(p){n.state.value.addingConnection&&(n.state.value.addingConnection.tokenValues=p)}function d(p){c.value=p}function u(){r.value=null,f.value=!1,c.value={}}async function h(){f.value=!0;try{const _=(await n.generateEcdsaKey()).replace("-----BEGIN PUBLIC KEY-----","").replace("-----END PUBLIC KEY-----","").replace(/\s/g,"");r.value=_}finally{f.value=!1}}async function o(){var _,j,m;const p=(_=n.state.value.addingConnection)==null?void 0:_.connector.auth.type;b.value=!0;try{switch(p){case"oauth2":return await n.handleAddConnectionSubmit();case"tokens":return await n.handleAddTokenConnectionSubmit();case"ecdsa":{const $=((j=n.state.value.addingConnection)==null?void 0:j.tokenValues)||{};let z="";((m=n.state.value.addingConnection)==null?void 0:m.connector.metadata.key)==="starkbank"&&(z=$.projectId||"");const F=await n.handleAddEcdsaConnectionSubmit(r.value,z);return u(),F}default:break}}catch($){const z=F=>{try{return JSON.parse(F),!0}catch{return!1}};if($ instanceof Error&&z($.message)){const F=te.object({error:te.string()}).safeParse(JSON.parse($.message));if(F.success){G.error(F.data.error);return}else{G.error(`Failed to create connector: ${$ instanceof Error?$.message:"Unknown error"}`);return}}else G.error("Failed to create connector")}finally{b.value=!1}}function H(p){p.auth.type==="manual"?Me.showNewMessage(Ie.translate("i18n_connectors_ask_for_access",null,p.metadata.label)):n.showAddConfirmationModal(p)}return(p,_)=>{var j;return s(),y(M,null,[i(a(Ee),{direction:"vertical",style:{width:"100%","margin-bottom":"30px"}},{default:l(()=>[i(a(V),{align:"center",justify:"space-between"},{default:l(()=>[i(a(O),null,{default:l(()=>[k("Connectors")]),_:1})]),_:1}),i(a(B),null,{default:l(()=>[k(" Add and manage external integrations to your project. "),i(pe)]),_:1}),U.value.length?(s(),C(a(V),{key:0,vertical:""},{default:l(()=>[i(a(O),{level:2},{default:l(()=>[k("Installed")]),_:1}),i(a(V),{vertical:"",gap:10},{default:l(()=>[(s(!0),y(M,null,R(U.value,m=>(s(),C(a(re),{key:m.name},{default:l(()=>[i(a(V),{align:"center",gap:20},{default:l(()=>[i(a(ce),{src:m.icon,height:"40px",shape:"square"},null,8,["src"]),i(a(Z),{strong:""},{default:l(()=>[k(E(m.connectorTitle),1)]),_:2},1024),Ln,i(a(Z),{content:m.name,copyable:"",code:""},null,8,["content"]),i(a(Ae),null,{overlay:l(()=>[i(a($e),null,{default:l(()=>[i(a(oe),{onClick:$=>a(n).handleEditConnectionClick(m)},{default:l(()=>[k(" Rename ")]),_:2},1032,["onClick"]),i(a(oe),{danger:"",onClick:$=>a(n).handleDeletionClick(m)},{default:l(()=>[k(" Delete ")]),_:2},1032,["onClick"])]),_:2},1024)]),default:l(()=>[i(a(Ue))]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})):I("",!0),i(a(V),{vertical:""},{default:l(()=>[U.value.length?(s(),C(a(O),{key:0,level:2},{default:l(()=>[k("Available")]),_:1})):I("",!0),A("div",xn,[(s(!0),y(M,null,R(S.value,m=>(s(),C(Fn,{key:m.metadata.key,title:m.metadata.label,"logo-url":m.metadata.logoUrl,description:m.metadata.description,unavailable:m.auth.type==="manual",connector:m,onClick:$=>H(m)},null,8,["title","logo-url","description","unavailable","connector","onClick"]))),128))])]),_:1})]),_:1}),i(a(D),{open:!!a(n).state.value.editingConnection,title:`${(j=a(n).state.value.editingConnection)==null?void 0:j.connectorTitle} Connection`,onCancel:_[2]||(_[2]=m=>a(n).state.value.editingConnection=null)},{footer:l(()=>[i(a(V),{justify:"end"},{default:l(()=>[i(W,{disabled:!a(n).hasChanges.value,onClick:_[1]||(_[1]=m=>a(n).renameConnection())},{default:l(()=>[k(" Save ")]),_:1},8,["disabled"])]),_:1})]),default:l(()=>[a(n).state.value.editingConnection?(s(),C(a(q),{key:0,value:a(n).state.value.editingConnection.newName,"onUpdate:value":_[0]||(_[0]=m=>a(n).state.value.editingConnection.newName=m)},null,8,["value"])):I("",!0)]),_:1},8,["open","title"]),i(Nn,{"adding-connection":a(n).state.value.addingConnection,"ecdsa-public-key":r.value,"ecdsa-key-loading":f.value,"uploaded-files":c.value,loading:b.value,onCancel:_[3]||(_[3]=()=>{a(n).state.value.addingConnection=null,u()}),onSubmit:o,onScopeToggle:_[4]||(_[4]=(m,$)=>a(n).handleScopeToggle(m,$)),onGenerateEcdsaKey:h,"onUpdate:tokenValues":g,"onUpdate:uploadedFiles":d},null,8,["adding-connection","ecdsa-public-key","ecdsa-key-loading","uploaded-files","loading"])],64)}}});const aa=ie(zn,[["__scopeId","data-v-1b384acc"]]);export{aa as default};
|
|
2
|
-
//# sourceMappingURL=ConnectorsView.b428e487.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as a}from"./OmniChat.d015bfa8.js";import{u as s}from"./omniChatStore.3431c026.js";import{d as c,eb as i,u as t,o as d,a as l,h as u}from"./jwt-decode.esm.7f2ef0df.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]="b3441ae5-a3ce-4818-aecf-9deab7504afd",e._sentryDebugIdIdentifier="sentry-dbid-b3441ae5-a3ce-4818-aecf-9deab7504afd")}catch{}})();const b=c({__name:"ConsoleOmniChat",setup(e){const n=i().params.projectId,o=s();return o.init("console",n),(f,p)=>t(o).controller&&t(o).repository?(d(),l(a,{key:0,"ai-chat-repository":t(o).repository,controller:t(o).controller,environment:{origin:"console",projectId:t(n)}},null,8,["ai-chat-repository","controller","environment"])):u("",!0)}});export{b as _};
|
|
2
|
-
//# sourceMappingURL=ConsoleOmniChat.vue_vue_type_script_setup_true_lang.506f28c6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as o,o as d,a5 as s,e as l,a7 as r,ea as t,_ as f}from"./jwt-decode.esm.7f2ef0df.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="601aac89-28c8-47b6-bfa8-4b65a61f016a",a._sentryDebugIdIdentifier="sentry-dbid-601aac89-28c8-47b6-bfa8-4b65a61f016a")}catch{}})();const c=o({__name:"ContentLayout",props:{fullWidth:{type:Boolean},noPadding:{type:Boolean}},setup(a){return(e,n)=>(d(),s("div",{class:t(["content-layout",{"no-padding":e.noPadding}])},[l("div",{class:t(["centered-layout",{"full-width":e.fullWidth}])},[r(e.$slots,"default",{},void 0,!0)],2)],2))}});const u=f(c,[["__scopeId","data-v-fb4d67f9"]]);export{u as C};
|
|
2
|
-
//# sourceMappingURL=ContentLayout.228d2328.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as i}from"./constants.56e8988f.js";import{f,e7 as d,d as b,o as c,a as p,b as l,u as o,a7 as m,a5 as g,g as h,aR as y,bR as O}from"./jwt-decode.esm.7f2ef0df.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]="d95f3744-b56e-4e51-ae38-39fc2ea712aa",t._sentryDebugIdIdentifier="sentry-dbid-d95f3744-b56e-4e51-ae38-39fc2ea712aa")}catch{}})();var v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};const _=v;function u(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){k(t,r,n[r])})}return t}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(e,n){var a=u({},e,n.attrs);return f(d,u({},a,{icon:_}),null)};s.displayName="BookOutlined";s.inheritAttrs=!1;const B=s,I=b({__name:"DocsButton",props:{path:{}},setup(t){return(e,n)=>(c(),p(o(O),{class:"docs-button",href:o(i)(e.path),target:"_blank",type:"text",size:"small"},{icon:l(()=>[f(o(B))]),default:l(()=>[e.$slots.default?m(e.$slots,"default",{key:0}):(c(),g(y,{key:1},[h("Docs")],64))]),_:3},8,["href"]))}});export{I as _};
|
|
2
|
-
//# sourceMappingURL=DocsButton.vue_vue_type_script_setup_true_lang.61381525.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as n,C as p}from"./View.vue_vue_type_script_setup_true_lang.ee5d447b.js";import{d as i,eb as s,a as m,u as c,o as d}from"./jwt-decode.esm.7f2ef0df.js";import"./router.8fd5b2ad.js";import"./index.9021ba5d.js";import"./fetch.5136a62d.js";import"./record.4ffc477c.js";import"./SaveButton.fdf70b31.js";import"./ExclamationCircleOutlined.6d10f60b.js";import"./CrudView.c16e2f81.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.61381525.js";import"./constants.56e8988f.js";import"./url.8583a595.js";import"./PhDotsThreeVertical.vue.0ea03d82.js";import"./index.23283fbb.js";import"./asyncComputed.25309626.js";import"./omniChatStore.3431c026.js";import"./uuid.dadede91.js";import"./PhCopySimple.vue.43c74ebe.js";import"./PhPencil.vue.80ed4b2e.js";import"./useCodebaseEvents.42573b00.js";import"./contracts.generated.c4057ed0.js";import"./index.51dbb698.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="f36e1c1d-3277-48d8-9584-6de884c2cf1c",o._sentryDebugIdIdentifier="sentry-dbid-f36e1c1d-3277-48d8-9584-6de884c2cf1c")}catch{}})();const A=i({__name:"EnvVars",setup(o){const e=s().params.projectId,t=new p(e);return(a,f)=>(d(),m(n,{"env-var-repository":c(t),mode:"console"},null,8,["env-var-repository"]))}});export{A as default};
|
|
2
|
-
//# sourceMappingURL=EnvVars.242b97c2.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as k}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3f03a3ef.js";import{A as v}from"./constants.56e8988f.js";import{d as A,eb as x,e5 as I,c as h,a5 as T,f as d,b as a,u as e,a as f,h as p,o as i,g as s,ed as l,A as B,T as m,bR as C,e as E,d8 as N,eG as o,_ as D}from"./jwt-decode.esm.7f2ef0df.js";import{u as R}from"./workspaceStore.50ef2df1.js";import{C as S}from"./Card.1d1a9fb7.js";import"./Logo.2de02c4a.js";import"./userStore.73b89fbb.js";import"./url.8583a595.js";import"./colorHelpers.71d6d61d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new L().stack;c&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[c]="9959933e-8164-4890-8bbf-5d323ba64f0b",r._sentryDebugIdIdentifier="sentry-dbid-9959933e-8164-4890-8bbf-5d323ba64f0b")}catch{}})();const V={class:"inner-content"},G={class:"card-content"},H=A({__name:"Error",setup(r){const c=x(),b=I(),u=R(),g=h(()=>{var t,_,y;return(y=(t=u.state.workspace)==null?void 0:t.name)!=null?y:(_=u.state.workspace)==null?void 0:_.brandName}),n=h(()=>{const{status:t}=c.params;switch(t){case"404":return{status:t,title:o.translate("i18n_page_not_found"),message:o.translate("i18n_page_not_found_message"),showAd:!1};case"403":return{status:t,title:o.translate("i18n_access_denied"),message:o.translate("i18n_access_denied_message"),action:"Go back to home",showAd:!0};default:return{status:"500",title:o.translate("i18n_internal_error"),message:o.translate("i18n_internal_error_message"),showAd:!1}}}),w=()=>{b.push({name:"playerHome"})};return(t,_)=>(i(),T("div",V,[d(e(B),null,{default:a(()=>[s(l(n.value.title),1)]),_:1}),d(e(m),{class:"message"},{default:a(()=>[s(l(n.value.message),1)]),_:1}),n.value.action?(i(),f(e(C),{key:0,type:"link",onClick:w},{default:a(()=>[s(l(n.value.action),1)]),_:1})):p("",!0),n.value.showAd?(i(),f(e(S),{key:1,bordered:!1,class:"card"},{default:a(()=>[E("div",G,[d(k,{style:{"margin-bottom":"10px"}}),d(e(m),null,{default:a(()=>[s("This page is part of "+l(g.value?`the ${g.value}`:"a")+" workflow, built with Abstra.",1)]),_:1}),e(u).state.workspace?(i(),f(e(m),{key:0},{default:a(()=>[s("Automate your own processes by getting started "),d(e(N),{href:e(v).HOMEPAGE},{default:a(()=>[s("here")]),_:1},8,["href"]),s(".")]),_:1})):p("",!0)])]),_:1})):p("",!0)]))}});const L=D(H,[["__scopeId","data-v-522ad0d4"]]);export{L as default};
|
|
2
|
-
//# sourceMappingURL=Error.466dbb94.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f,e7 as l,eZ as o}from"./jwt-decode.esm.7f2ef0df.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]="fac05fcd-03f5-4130-8635-03b9fcac6f1a",e._sentryDebugIdIdentifier="sentry-dbid-fac05fcd-03f5-4130-8635-03b9fcac6f1a")}catch{}})();function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){u(e,a,n[a])})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(t,n){var r=i({},t,n.attrs);return f(l,i({},r,{icon:o}),null)};c.displayName="ExclamationCircleOutlined";c.inheritAttrs=!1;const s=c;export{s as E};
|
|
2
|
-
//# sourceMappingURL=ExclamationCircleOutlined.6d10f60b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as ge}from"./DocsButton.vue_vue_type_script_setup_true_lang.61381525.js";import{f as c,e7 as T,f3 as ye,d as re,r as I,ae as V,w as L,c as S,o as p,a5 as k,e as w,b as u,u as o,aR as be,ec as _e,a as g,ed as z,de as $,g as C,ct as Y,h as j,cD as we,bM as Z,ef as Oe,ej as Ce,cx as Pe,bO as Ie,bJ as je,M as Se,D as x,_ as le,eb as ze,A as $e,d9 as xe}from"./jwt-decode.esm.7f2ef0df.js";import{h as O,e as Fe,d as ke,p as Ae}from"./router.8fd5b2ad.js";import{a as De}from"./asyncComputed.25309626.js";import{f as K}from"./string.2ed1cde3.js";import{a as Ue,I as He,_ as Me}from"./ScrollArea.vue_vue_type_script_setup_true_lang.3bbea426.js";import{a as Ve,G as Le}from"./PhFolderPlus.vue.0c210f8d.js";import{_ as F}from"./AbstraButton.vue_vue_type_script_setup_true_lang.441fcdfd.js";import{B as Te,A as ee}from"./Breadcrumb.27110ec4.js";import{U as Ee}from"./UploadOutlined.e3072945.js";import"./tables.be1c51f8.js";import{C as Re}from"./Card.1d1a9fb7.js";import"./constants.56e8988f.js";import"./index.9021ba5d.js";import"./record.4ffc477c.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="d1b4b59d-2bba-463a-abd8-5f64a47b87c9",s._sentryDebugIdIdentifier="sentry-dbid-d1b4b59d-2bba-463a-abd8-5f64a47b87c9")}catch{}})();var Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"};const Ne=Be;var Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"};const qe=Ge;function te(s){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),i.forEach(function(l){Je(s,l,n[l])})}return s}function Je(s,e,n){return e in s?Object.defineProperty(s,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[e]=n,s}var E=function(e,n){var i=te({},e,n.attrs);return c(T,te({},i,{icon:ye}),null)};E.displayName="DeleteOutlined";E.inheritAttrs=!1;const Qe=E;function ae(s){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),i.forEach(function(l){We(s,l,n[l])})}return s}function We(s,e,n){return e in s?Object.defineProperty(s,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[e]=n,s}var R=function(e,n){var i=ae({},e,n.attrs);return c(T,ae({},i,{icon:Ne}),null)};R.displayName="FolderAddOutlined";R.inheritAttrs=!1;const Xe=R;function ne(s){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),i.forEach(function(l){Ye(s,l,n[l])})}return s}function Ye(s,e,n){return e in s?Object.defineProperty(s,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[e]=n,s}var B=function(e,n){var i=ne({},e,n.attrs);return c(T,ne({},i,{icon:qe}),null)};B.displayName="HomeOutlined";B.inheritAttrs=!1;const Ze=B;class N{constructor(e){this.projectId=e}static fromProjectId(e){return new N(e)}async list(e,n,i,l){const m=new URLSearchParams;m.set("limit",e.toString()),m.set("offset",n.toString()),i&&i.trim()&&m.set("search",i.trim()),l&&l.trim()&&m.set("path",l.trim());const A=m.toString(),d=`projects/${this.projectId}/files?${A}`,f=await O.get(d);return{items:f.items,totalCount:f.totalCount}}async upload(e,n){const i={"Content-Type":"multipart/form-data"},l=new File([n||new Uint8Array],Ue(e));return O.post(`projects/${this.projectId}/files/upload?path=${encodeURIComponent(e)}`,l,i)}async download(e){return O.getBlob(`projects/${this.projectId}/files/download?path=${encodeURIComponent(e)}`)}async delete(e){return O.delete(`projects/${this.projectId}/files?path=${encodeURIComponent(e)}`)}async move(e,n){return O.patch(`projects/${this.projectId}/files?path=${encodeURIComponent(e)}&newPath=${encodeURIComponent(n)}`,{})}async createFolder(e){return O.post(`projects/${this.projectId}/files/create-folder`,{path:e})}}const Ke={class:"files-navigator"},et={class:"header-container",style:{"margin-bottom":"8px"}},tt=["onClick"],at={class:"list-header"},nt=["onClick"],rt={class:"file-name"},lt={key:2,class:"file-size"},ot=re({__name:"FilesNavigator",props:{filesModel:{}},setup(s){const e=s,n=I(!1),i=I(""),l=I(new Set),m=I(!1),A=a=>{if(!y.searchTerm.trim())return x("span",a);const t=K(y.searchTerm,a);return t?x("span",a.split("").map((r,h)=>t.includes(h)?x("span",{class:"char-match"},r):r)):x("span",a)},d=V({currentIndex:1,pageSize:20,totalCount:0}),f=V({currentPath:"",breadcrumbs:[]}),y=V({searchTerm:"",isSearching:!1}),{loading:D,result:P,refetch:_}=De(async()=>{const a=await e.filesModel.list(d.pageSize,(d.currentIndex-1)*d.pageSize,y.searchTerm||void 0,f.currentPath||void 0);return d.totalCount=a.totalCount,a});L([()=>d.currentIndex,()=>d.pageSize],()=>{_()}),L(()=>y.searchTerm,()=>{console.log("Search term changed:",y.searchTerm),d.currentIndex=1,_()}),L(()=>f.currentPath,()=>{_()});const U=S(()=>P.value?P.value.items:[]);async function oe(a,t){const r=a.join("/");await e.filesModel.upload(r,t),await _()}async function G(a){a.forEach(async t=>{const r=await e.filesModel.download(t),h=URL.createObjectURL(r),b=document.createElement("a");b.href=h,b.download=t.split("/").pop()||"download",document.body.appendChild(b),b.click(),document.body.removeChild(b),URL.revokeObjectURL(h)})}function H(a){f.currentPath=a,f.breadcrumbs=a?a.split("/").filter(t=>t.length>0):[],d.currentIndex=1,_()}async function se(a){for(const t of a)await e.filesModel.delete(t.path);l.value.clear(),await _()}const ie=a=>a.type==="directory"?"":a.type==="file"?a.sizeHuman:"",v=S(()=>U.value?y.searchTerm.trim()?U.value.filter(a=>K(y.searchTerm,a.name)):U.value:[]),ce=S(()=>v.value?v.value.filter(a=>l.value.has(a.path)):[]);function ue(a){a.type==="directory"?(l.value.clear(),m.value=!1,H(a.path)):G([a.path])}const q=I(!1);function de(a){if(a&&a.type==="file")return;const t=document.createElement("input");t.type="file",t.onchange=async()=>{var b,Q,W;const r=(b=t.files)==null?void 0:b[0],h=await(r==null?void 0:r.arrayBuffer());if(!!r)try{q.value=!0;const X=(Q=a==null?void 0:a.path.split("/").filter(M=>M.length>0))!=null?Q:f.currentPath?f.currentPath.split("/").filter(M=>M.length>0):[];await oe([...X,(W=r.name)!=null?W:"Untitled file"],h?new Uint8Array(h):void 0),await _()}catch{Ae("Failed to upload file","File already exists")}finally{q.value=!1}},t.click()}const fe=S(()=>`Search files in ${f.currentPath?`/${f.currentPath}`:"/"}`);function pe(a){const t=a.path;l.value.has(t)?l.value.delete(t):l.value.add(t),he()}function me(){var a;m.value?l.value.clear():(a=v.value)==null||a.forEach(t=>{l.value.add(t.path)}),m.value=!m.value}function he(){var r;const a=((r=v.value)==null?void 0:r.length)||0,t=l.value.size;m.value=a>0&&t===a}function ve(){i.value="",n.value=!0}async function J(){if(i.value.trim()){const a=f.currentPath,t=i.value,r=a?`${a}/${t}`:t;await e.filesModel.createFolder(r),await _(),n.value=!1,i.value=""}}return(a,t)=>(p(),k("div",Ke,[w("div",et,[c(o($),{justify:"space-between",align:"center",gap:"small"},{default:u(()=>[c(o(Te),null,{default:u(()=>[c(o(ee),null,{default:u(()=>[w("a",{onClick:t[0]||(t[0]=r=>H(""))},[c(o(Ze))])]),_:1}),(p(!0),k(be,null,_e(f.breadcrumbs,(r,h)=>(p(),g(o(ee),{key:h},{default:u(()=>[w("a",{onClick:b=>H(f.breadcrumbs.slice(0,h+1).join("/"))},z(r),9,tt)]),_:2},1024))),128))]),_:1}),c(o($),{gap:"small"},{default:u(()=>[o(D)?j("",!0):(p(),g(o(Y),{key:0},{default:u(()=>[c(F,{size:"small",onClick:t[1]||(t[1]=()=>de())},{default:u(()=>[c(o(Ee)),C(" Upload File ")]),_:1}),c(F,{size:"small",onClick:t[2]||(t[2]=()=>ve())},{default:u(()=>[c(o(Xe)),C(" New Folder ")]),_:1})]),_:1})),l.value.size>0?(p(),g(o(Y),{key:1},{default:u(()=>[c(F,{size:"small",onClick:t[3]||(t[3]=()=>G(Array.from(l.value)))},{default:u(()=>[c(o(Ve),{size:"18"}),C(" Download ("+z(l.value.size)+") ",1)]),_:1}),c(F,{size:"small",danger:"",onClick:t[4]||(t[4]=()=>se(ce.value))},{default:u(()=>[c(o(Qe)),C(" Delete ("+z(l.value.size)+") ",1)]),_:1})]),_:1})):j("",!0)]),_:1})]),_:1})]),c(Me,{class:"scroll-area","outer-style":{flexGrow:"1"}},{default:u(()=>[w("div",at,[c(o($),{justify:"space-between",align:"center",gap:"small",style:{"margin-bottom":"8px"}},{default:u(()=>[c(o(we),{value:y.searchTerm,"onUpdate:value":t[5]||(t[5]=r=>y.searchTerm=r),loading:o(D),placeholder:fe.value,style:{"max-width":"300px"},size:"small"},null,8,["value","loading","placeholder"]),v.value&&v.value.length>0?(p(),g(o(Z),{key:0,checked:m.value,indeterminate:l.value.size>0&&l.value.size<v.value.length,class:"select-all-checkbox",onChange:me},null,8,["checked","indeterminate"])):j("",!0)]),_:1})]),v.value&&v.value.length>0?(p(),g(o(ke),{key:0,class:"files-list","data-source":v.value},{renderItem:u(({item:r})=>[c(o(Fe),{class:"compact-list-item"},{default:u(()=>[c(o($),{align:"center",justify:"space-between",style:{width:"100%"}},{default:u(()=>[w("div",{style:{display:"flex","align-items":"center",gap:"8px",flex:"1",cursor:"pointer","min-width":"0"},onClick:h=>ue(r)},[r.type==="directory"?(p(),g(o(Le),{key:0,size:"18px"})):(p(),g(o(He),{key:1,size:"18px"})),w("span",rt,[(p(),g(Oe(A(r.name))))]),r.type==="file"?(p(),k("span",lt,z(ie(r)),1)):j("",!0)],8,nt),c(o(Z),{checked:l.value.has(r.path),onChange:()=>pe(r),onClick:t[6]||(t[6]=Ce(()=>{},["stop"]))},null,8,["checked","onChange"])]),_:2},1024)]),_:2},1024)]),_:1},8,["data-source"])):(p(),g(o(Pe),{key:1,description:o(D)?"Loading...":"No files"},null,8,["description"]))]),_:1}),o(P)&&o(P).totalCount>d.pageSize?(p(),g(o(Ie),{key:0,current:d.currentIndex,"onUpdate:current":t[7]||(t[7]=r=>d.currentIndex=r),"page-size":d.pageSize,"onUpdate:pageSize":t[8]||(t[8]=r=>d.pageSize=r),total:o(P).totalCount,"show-total":r=>`${r} items`,"show-size-changer":"","page-size-options":["10","20","50","100"],style:{"margin-top":"20px","text-align":"center"}},null,8,["current","page-size","total","show-total"])):j("",!0),c(o(Se),{open:n.value,"onUpdate:open":t[10]||(t[10]=r=>n.value=r),title:"Create Folder",onOk:J,onCancel:t[11]||(t[11]=r=>n.value=!1)},{default:u(()=>[c(o(je),{value:i.value,"onUpdate:value":t[9]||(t[9]=r=>i.value=r),placeholder:"Enter folder name",onPressEnter:J},null,8,["value"])]),_:1},8,["open"])]))}});const st=le(ot,[["__scopeId","data-v-2be8fa34"]]),it={class:"files-container"},ct=re({__name:"Files",setup(s){const n=ze().params.projectId,i=N.fromProjectId(n);return(l,m)=>(p(),k("div",it,[c(o($e),null,{default:u(()=>[C("Files")]),_:1}),c(o(xe),null,{default:u(()=>[C(" Manage files located in your project's persistent directory "),c(ge,{path:"tools/files"})]),_:1}),c(o(Re),{class:"files-card"},{default:u(()=>[c(st,{"files-model":o(i)},null,8,["files-model"])]),_:1})]))}});const It=le(ct,[["__scopeId","data-v-d42eb84d"]]);export{It as default};
|
|
2
|
-
//# sourceMappingURL=Files.104385dd.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as h}from"./metadata.39f9b9ba.js";import{W as k}from"./Watermark.891eee9f.js";import{F as b}from"./PhArrowSquareOut.vue.d0c95a06.js";import{d as v,e5 as w,c as x,r as C,u as e,a5 as m,f as p,b as r,h as D,o as t,a as n,g as f,T as y,aR as I,ec as z,de as _,ef as T,ed as F,ea as B,_ as H}from"./jwt-decode.esm.7f2ef0df.js";import{u as L}from"./workspaceStore.50ef2df1.js";import"./index.4b93c8ad.js";import{L as N}from"./LoadingOutlined.cd84d9c9.js";import{C as S}from"./Card.1d1a9fb7.js";import"./PhUserList.vue.bce47902.js";import"./PhWebhooksLogo.vue.a704632d.js";import"./constants.56e8988f.js";import"./userStore.73b89fbb.js";import"./url.8583a595.js";import"./colorHelpers.71d6d61d.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="dcfeb4e0-5480-47ab-ab05-8a6603cd7294",o._sentryDebugIdIdentifier="sentry-dbid-dcfeb4e0-5480-47ab-ab05-8a6603cd7294")}catch{}})();const V={key:0,class:"home-container"},W=v({__name:"Home",setup(o){const i=w(),l=L(),u=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(d=>d.id!=="home"))||[]}),c=C(null),g=async(s,d)=>{c.value=d,await i.push({path:`/${s}`}),c.value=null};return(s,d)=>e(l).state.workspace?(t(),m("div",V,[p(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[u.value.length===0?(t(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[f(" There are no forms available for you. ")]),_:1})):(t(!0),m(I,{key:1},z(u.value,a=>(t(),n(e(S),{key:a.id,class:B(["form-card",{loading:c.value===a.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(a.path,a.id)},{default:r(()=>[p(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(t(),n(T(e(h)(a.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),p(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[f(F(a.name),1)]),_:2},1024),c.value!==a.id?(t(),n(e(b),{key:0,size:"20"})):(t(),n(e(N),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),p(k,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):D("",!0)}});const Y=H(W,[["__scopeId","data-v-060376d1"]]);export{Y as default};
|
|
2
|
-
//# sourceMappingURL=Home.80c7e349.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as o,o as s,a5 as a,f as d,u as _,S as c,_ as r}from"./jwt-decode.esm.7f2ef0df.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]="40f6f7c0-e148-4f48-bc3b-b029ec4f6bd5",e._sentryDebugIdIdentifier="sentry-dbid-40f6f7c0-e148-4f48-bc3b-b029ec4f6bd5")}catch{}})();const f={class:"centered"},i=o({__name:"LoadingContainer",setup(e){return(n,t)=>(s(),a("div",f,[d(_(c))]))}});const p=r(i,[["__scopeId","data-v-52e6209a"]]);export{p as L};
|
|
2
|
-
//# sourceMappingURL=LoadingContainer.6e2b63e4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as d,e7 as o,eX as u}from"./jwt-decode.esm.7f2ef0df.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]="774a3e78-f587-4a9d-88f1-477fe87e22fd",e._sentryDebugIdIdentifier="sentry-dbid-774a3e78-f587-4a9d-88f1-477fe87e22fd")}catch{}})();function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){l(e,a,n[a])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(t,n){var r=i({},t,n.attrs);return d(o,i({},r,{icon:u}),null)};f.displayName="LoadingOutlined";f.inheritAttrs=!1;const s=f;export{s as L};
|
|
2
|
-
//# sourceMappingURL=LoadingOutlined.cd84d9c9.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as f}from"./Login.vue_vue_type_script_setup_true_lang.c2eb444c.js";import{d as l,e5 as m,eb as b,a5 as g,f as y,u as n,o as w,_ as k}from"./jwt-decode.esm.7f2ef0df.js";import{u as h}from"./workspaceStore.50ef2df1.js";import"./CircularLoading.fc66331b.js";import"./Logo.2de02c4a.js";import"./string.2ed1cde3.js";import"./index.51dbb698.js";import"./userStore.73b89fbb.js";import"./url.8583a595.js";import"./colorHelpers.71d6d61d.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]="77203dba-fafb-4611-94fd-d7206d953146",e._sentryDebugIdIdentifier="sentry-dbid-77203dba-fafb-4611-94fd-d7206d953146")}catch{}})();const v={class:"runner"},I=l({__name:"Login",setup(e){const o=m(),t=b(),r=h(),_=async()=>{const{redirect:a,...s}=t.query;if(a){await o.push({path:a,query:s,params:t.params});return}o.push({name:"playerHome",query:s})};return(a,s)=>{var d,c,p,u,i;return w(),g("div",v,[y(f,{"logo-url":(c=(d=n(r).state.workspace)==null?void 0:d.logoUrl)!=null?c:void 0,"brand-name":(p=n(r).state.workspace)==null?void 0:p.brandName,locale:(i=(u=n(r).state.workspace)==null?void 0:u.language)!=null?i:"en",onDone:_},null,8,["logo-url","brand-name","locale"])])}}});const H=k(I,[["__scopeId","data-v-12c690e1"]]);export{H as default};
|
|
2
|
-
//# sourceMappingURL=Login.409f4a11.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as i,ey as c,c as r,o,a5 as t,h as d,ea as f,ed as _,_ as p}from"./jwt-decode.esm.7f2ef0df.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]="03524abd-838e-4d32-bad9-47f546fc06bf",e._sentryDebugIdIdentifier="sentry-dbid-03524abd-838e-4d32-bad9-47f546fc06bf")}catch{}})();const u={class:"logo"},g=["src","alt"],m=i({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const s=e;c(a=>({"4521d904":n.value}));const n=r(()=>s.size==="small"?"24px":s.size==="large"?"80px":"50px"),l=r(()=>`${s.brandName} Logo`);return(a,b)=>(o(),t("div",u,[a.imageUrl?(o(),t("img",{key:0,class:"logo-img",src:a.imageUrl,alt:l.value},null,8,g)):d("",!0),a.hideText?d("",!0):(o(),t("span",{key:1,class:f(a.size)},_(a.brandName),3))]))}});const h=p(m,[["__scopeId","data-v-8f34aac0"]]);export{h as L};
|
|
2
|
-
//# sourceMappingURL=Logo.2de02c4a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P as f}from"./PlayerNavbar.0fa6f760.js";import{d as g,e5 as h,eb as c,r as y,c as b,i as k,a5 as v,u as a,a as w,h as L,e as C,f as I,o as i,_ as N}from"./jwt-decode.esm.7f2ef0df.js";import{u as V}from"./workspaceStore.50ef2df1.js";import"./userStore.73b89fbb.js";import"./metadata.39f9b9ba.js";import"./PhUserList.vue.bce47902.js";import"./PhWebhooksLogo.vue.a704632d.js";import"./LoadingOutlined.cd84d9c9.js";import"./PhSignOut.vue.c9150da4.js";import"./index.03d222dd.js";import"./url.8583a595.js";import"./colorHelpers.71d6d61d.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]="20ce644c-461f-4c02-ae3d-84dbb4588e98",o._sentryDebugIdIdentifier="sentry-dbid-20ce644c-461f-4c02-ae3d-84dbb4588e98")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(o){const e=h(),t=V(),d=c().path,n=y(null),u=async({path:r,id:s})=>{n.value=s,await e.push({path:`/${r}`}),n.value=null},l=()=>{e.push({name:"playerLogin"})},p=()=>{e.push({name:"playerLogin"})},_=b(()=>!!c().meta.hideLogin);return(r,s)=>{const m=k("RouterView");return i(),v("div",x,[a(t).state.workspace?(i(),w(f,{key:0,"current-path":a(d),"hide-login":_.value,"runner-data":a(t).state.workspace,loading:n.value,onNavigate:u,onLoginClick:p,onLogoutClick:l},null,8,["current-path","hide-login","runner-data","loading"])):L("",!0),C("section",B,[I(m)])])}}});const G=N(D,[["__scopeId","data-v-f095bece"]]);export{G as default};
|
|
2
|
-
//# sourceMappingURL=Main.4370ed68.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as m}from"./AbstraButton.vue_vue_type_script_setup_true_lang.441fcdfd.js";import{A as C}from"./constants.56e8988f.js";import{d as x,e5 as S,i as B,u as e,o,a as d,S as w,a5 as A,f as a,b as t,g as s,e as f,da as N,ed as _,bR as g,cN as R,em as I,ec as L,e$ as D,aR as $,h as k,_ as G}from"./jwt-decode.esm.7f2ef0df.js";import{a as T}from"./asyncComputed.25309626.js";import{G as V}from"./PhChats.vue.54d692e4.js";import{F as z}from"./PhSignOut.vue.c9150da4.js";import{j as h,l as j}from"./router.8fd5b2ad.js";import{A as E}from"./index.23283fbb.js";import{A as F}from"./index.03d222dd.js";import{u as O}from"./omniChatStore.3431c026.js";import{G as P}from"./PhBookBookmark.vue.42e49494.js";import{G as U}from"./PhSparkle.vue.84ea95fc.js";import{A as q}from"./index.8e871bae.js";import{B as H,A as M}from"./Breadcrumb.27110ec4.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[n]="bab15dbd-e773-47b8-acf5-ffad9bd4dc76",r._sentryDebugIdIdentifier="sentry-dbid-bab15dbd-e773-47b8-acf5-ffad9bd4dc76")}catch{}})();const J={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},K={style:{display:"flex","flex-direction":"column",gap:"10px"}},Q={style:{display:"flex",gap:"5px"}},W=x({__name:"LoginBlock",setup(r){function n(b){const y=b.split("@")[0];return I.exports.kebabCase(y).toUpperCase().split("-").slice(0,2).map(u=>u[0]).join("")}const i=S(),{result:l,loading:p,refetch:c}=T(async()=>h.getAuthor());async function v(){await h.logout(),j.shutdown(),c(),i.push({name:"login"})}return(b,y)=>{const u=B("RouterLink");return e(p)?(o(),d(e(w),{key:0})):e(l)?(o(),A("div",J,[a(m,{class:"intercom-launcher",target:"_blank",type:"link",size:"small"},{default:t(()=>[a(e(V)),s(" Support ")]),_:1}),a(e(R),{placement:"bottomRight"},{content:t(()=>[f("div",K,[a(e(N),{size:"small",type:"secondary"},{default:t(()=>[s(_(e(l).claims.email),1)]),_:1}),a(e(g),{type:"text",onClick:v},{default:t(()=>[f("div",Q,[a(e(z),{size:"20"}),s(" Logout ")])]),_:1})])]),default:t(()=>[a(e(E),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(F),{shape:"square"},{default:t(()=>[s(_(n(e(l).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(o(),d(e(g),{key:2},{default:t(()=>[a(u,{to:"/login"},{default:t(()=>[s("Login")]),_:1})]),_:1}))}}}),X={class:"extra"},Y=x({__name:"Navbar",props:{breadcrumb:{},showAiSparkles:{type:Boolean}},setup(r){const n=O();return(i,l)=>(o(),d(e(q),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[i.breadcrumb?(o(),d(e(H),{key:0},{default:t(()=>[(o(!0),A($,null,L(i.breadcrumb,(p,c)=>(o(),d(e(M),{key:c},{default:t(()=>[a(e(D),{to:p.path},{default:t(()=>[s(_(p.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):k("",!0)]),extra:t(()=>[f("div",X,[i.showAiSparkles?(o(),d(m,{key:0,type:"link",onClick:l[0]||(l[0]=p=>e(n).toggle())},{default:t(()=>[a(e(U)),s(" AI Assistant ")]),_:1})):k("",!0),a(m,{href:e(C).DOCS,target:"_blank",type:"link"},{default:t(()=>[a(e(P)),s(" Docs ")]),_:1},8,["href"]),a(W)])]),_:1}))}});const me=G(Y,[["__scopeId","data-v-9083334a"]]);export{me as N};
|
|
2
|
-
//# sourceMappingURL=Navbar.07ba9452.js.map
|