abstra 3.23.3__py3-none-any.whl → 3.23.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/METADATA +1 -1
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/RECORD +187 -188
- abstra_internals/controllers/execution/consumer.py +27 -39
- abstra_internals/controllers/execution/execution.py +7 -4
- abstra_internals/controllers/execution/execution_client.py +2 -11
- abstra_internals/controllers/execution/execution_client_form.py +10 -11
- abstra_internals/controllers/execution/execution_client_hook.py +3 -9
- abstra_internals/controllers/execution/execution_stdio.py +3 -14
- abstra_internals/controllers/execution/execution_test.py +5 -9
- abstra_internals/controllers/execution/worker_process.py +8 -33
- abstra_internals/controllers/main.py +18 -26
- abstra_internals/entities/execution_context.py +1 -0
- abstra_internals/entities/execution_test.py +6 -3
- abstra_internals/interface/cli/editor.py +6 -3
- abstra_internals/interface/sdk/forms/deprecated/page_test.py +6 -8
- abstra_internals/interface/sdk/tables/api_test.py +1 -7
- abstra_internals/logs_watcher.py +13 -6
- abstra_internals/repositories/consumer.py +1 -3
- abstra_internals/repositories/factory.py +7 -6
- abstra_internals/repositories/producer.py +7 -41
- abstra_internals/repositories/project/project_test.py +1 -6
- abstra_internals/repositories/tasks.py +8 -4
- abstra_internals/server/blueprints/player.py +39 -24
- abstra_internals/server/guards/role_guard_test.py +1 -6
- abstra_internals/server/routes/forms.py +10 -3
- abstra_internals/server/routes/stdio.py +3 -3
- abstra_internals/stdio_patcher.py +4 -4
- abstra_internals/tasks_watcher.py +59 -0
- abstra_internals/utils/ai.py +4 -9
- abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.c714d609.js → AbstraButton.vue_vue_type_script_setup_true_lang.86a761e5.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.d02ffa6d.js +2 -0
- abstra_statics/dist/assets/ApiKeys.e132de0a.js +2 -0
- abstra_statics/dist/assets/App.9aa34c4e.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.9dc1f7e7.js +2 -0
- abstra_statics/dist/assets/BaseLayout.d41dae76.js +2 -0
- abstra_statics/dist/assets/Billing.04224d7b.js +2 -0
- abstra_statics/dist/assets/{Breadcrumb.1d42c80c.js → Breadcrumb.00a432b7.js} +2 -2
- abstra_statics/dist/assets/{Builds.4641dcf9.js → Builds.329c2faa.js} +2 -2
- abstra_statics/dist/assets/{Card.774e5d67.js → Card.d8993609.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.02fd7b7b.js → CircularLoading.e0819e0b.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.ae1e7621.js +2 -0
- abstra_statics/dist/assets/{ConnectorsView.746c7417.js → ConnectorsView.4c23ea88.js} +2 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.f2c53fd6.js +2 -0
- abstra_statics/dist/assets/{ContentLayout.4fc85c66.js → ContentLayout.9774740e.js} +2 -2
- abstra_statics/dist/assets/{CrudView.7f2cbde4.js → CrudView.01e6ed04.js} +2 -2
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js → DocsButton.vue_vue_type_script_setup_true_lang.3efd2188.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.45764526.js → EditorLogin.b9477432.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.e9452d34.js → EditorsView.ec2e0465.js} +2 -2
- abstra_statics/dist/assets/EnvVars.72e8a906.js +2 -0
- abstra_statics/dist/assets/Error.75789fcd.js +2 -0
- abstra_statics/dist/assets/ExclamationCircleOutlined.443f1727.js +2 -0
- abstra_statics/dist/assets/{Files.8bcd4d1f.js → Files.598e1924.js} +2 -2
- abstra_statics/dist/assets/Form.dcd328f9.js +2 -0
- abstra_statics/dist/assets/{FormRunner.f721431d.js → FormRunner.22c166b3.js} +2 -2
- abstra_statics/dist/assets/Home.29af870e.js +2 -0
- abstra_statics/dist/assets/Home.5a193adf.js +2 -0
- abstra_statics/dist/assets/{Live.2bbd1666.js → Live.47f1d55b.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.4d7a6e83.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.688afd1b.js +2 -0
- abstra_statics/dist/assets/Login.543da72d.js +2 -0
- abstra_statics/dist/assets/{Login.186f24a9.js → Login.d4ed4415.js} +2 -2
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.fab46c0c.js → Login.vue_vue_type_script_setup_true_lang.7a0b5cb9.js} +2 -2
- abstra_statics/dist/assets/Logo.a483cebb.js +2 -0
- abstra_statics/dist/assets/Logs.93696d9a.js +2 -0
- abstra_statics/dist/assets/LogsController.051e4c97.js +2 -0
- abstra_statics/dist/assets/Main.e6271958.js +2 -0
- abstra_statics/dist/assets/{MockForm.9b6a244c.js → MockForm.60f0a0c9.js} +2 -2
- abstra_statics/dist/assets/Navbar.6beb23a2.js +2 -0
- abstra_statics/dist/assets/{NewEditor.1d7ddf86.js → NewEditor.a3f0cf6f.js} +5 -5
- abstra_statics/dist/assets/OidcLoginCallback.5d621b1e.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.726fd77b.js +2 -0
- abstra_statics/dist/assets/{OmniChat.5e68be1c.js → OmniChat.65218812.js} +2 -2
- abstra_statics/dist/assets/{OnboardingView.8733d184.js → OnboardingView.7b28e3d9.js} +2 -2
- abstra_statics/dist/assets/{Organization.bcb76b94.js → Organization.4d764c53.js} +2 -2
- abstra_statics/dist/assets/{Organizations.3dbd99e1.js → Organizations.99154f7f.js} +2 -2
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.d273955f.js → PhArrowCounterClockwise.vue.731eb94b.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.0d20b8e9.js → PhArrowSquareOut.vue.da6ece6b.js} +2 -2
- abstra_statics/dist/assets/{PhBookBookmark.vue.8611e54f.js → PhBookBookmark.vue.129658c0.js} +2 -2
- abstra_statics/dist/assets/{PhChats.vue.3dd1c2d7.js → PhChats.vue.3eae87f1.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.853bd5ec.js → PhClockCounterClockwise.vue.83a88fd2.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.b1c2f21f.js → PhCopy.vue.889171d4.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.ffc7ec94.js → PhCopySimple.vue.fa1be768.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.b5e79047.js → PhCube.vue.c868f288.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.89b627bd.js → PhDotsThreeVertical.vue.82ed05fc.js} +2 -2
- abstra_statics/dist/assets/{PhDownloadSimple.vue.2c2eeb2c.js → PhDownloadSimple.vue.32b4f321.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.e199ba17.js → PhFolderPlus.vue.9b394b08.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.fbac4098.js → PhGear.vue.bd7172cf.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.1850e466.js → PhKey.vue.e1681937.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.c3c70f7d.js → PhPencil.vue.6abcb050.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.ee9d03fc.js → PhPencilSimple.vue.9dc4c516.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimpleLine.vue.6eedd1e6.js → PhPencilSimpleLine.vue.516b8dd0.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.56a9b767.js → PhRocket.vue.6310b8e2.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.ee548b4c.js → PhSignOut.vue.33352908.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.dc906cc7.js → PhSparkle.vue.aaea2035.js} +2 -2
- abstra_statics/dist/assets/{PhUserList.vue.6d0e7bc8.js → PhUserList.vue.66442c99.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.528ec19f.js → PhUsersThree.vue.dd3dd5e5.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.49b66d69.js → PhWebhooksLogo.vue.3159b8c2.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.ead35c7b.js → PlayerConfigProvider.608f994d.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.523eb145.js → PlayerNavbar.db2b0cc0.js} +2 -2
- abstra_statics/dist/assets/{Project.d667be48.js → Project.b5f0a540.js} +2 -2
- abstra_statics/dist/assets/ProjectLogin.ca80209f.js +2 -0
- abstra_statics/dist/assets/{ProjectSettings.78ebb6ae.js → ProjectSettings.c69dc60b.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.0a9b802f.js → ProjectsView.7ea6a476.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.7c95c711.js → SaveButton.45360af6.js} +2 -2
- abstra_statics/dist/assets/{Sidebar.88ff0297.js → Sidebar.5b02858f.js} +2 -2
- abstra_statics/dist/assets/Sql.f80e393a.js +5 -0
- abstra_statics/dist/assets/Steps.2a44bd5a.js +2 -0
- abstra_statics/dist/assets/{TableEditor.8166dbd3.js → TableEditor.9f5307b3.js} +2 -2
- abstra_statics/dist/assets/{Tables.0da330b6.js → Tables.c8410571.js} +2 -2
- abstra_statics/dist/assets/{TablesDiagram.67a07e98.js → TablesDiagram.174bf25c.js} +2 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.d32d5407.js +2 -0
- abstra_statics/dist/assets/{Tasks.d7e74b8f.js → Tasks.6bf6e3ab.js} +2 -2
- abstra_statics/dist/assets/{UploadOutlined.6515c426.js → UploadOutlined.17748ead.js} +2 -2
- abstra_statics/dist/assets/{View.2cf966b9.js → View.fc004ade.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.17304c45.js → View.vue_vue_type_script_setup_true_lang.b156d2b4.js} +2 -2
- abstra_statics/dist/assets/{Watermark.4b6da85c.js → Watermark.3f4c77a5.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.969d0862.js → WebEditor.1b4c1d6e.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.b3a57be6.js +2 -0
- abstra_statics/dist/assets/{ant-design.771baa34.js → ant-design.4dde64bb.js} +2 -2
- abstra_statics/dist/assets/apiKey.2481730b.js +2 -0
- abstra_statics/dist/assets/{asyncComputed.0f036eae.js → asyncComputed.24fa122c.js} +2 -2
- abstra_statics/dist/assets/{build.c819a477.js → build.5e49b52b.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.a41e45a3.js +2 -0
- abstra_statics/dist/assets/{console.072f10aa.js → console.d4555e1e.js} +2 -2
- abstra_statics/dist/assets/constants.4f491067.js +2 -0
- abstra_statics/dist/assets/{cssMode.b24669f0.js → cssMode.94fba5f4.js} +2 -2
- abstra_statics/dist/assets/datetime.215ab936.js +2 -0
- abstra_statics/dist/assets/dayjs.cad6407e.js +2 -0
- abstra_statics/dist/assets/editor.68f10cac.js +2 -0
- abstra_statics/dist/assets/editor.main.d5278805.js +2 -0
- abstra_statics/dist/assets/fetch.b229b6c0.js +2 -0
- abstra_statics/dist/assets/{files.ff551888.js → files.2d03f0a6.js} +2 -2
- abstra_statics/dist/assets/{folder.92a70293.js → folder.c0b92096.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.c3563cfb.js → freemarker2.a8ae0e5a.js} +2 -2
- abstra_statics/dist/assets/{handlebars.bedd8360.js → handlebars.3529fc9d.js} +3 -3
- abstra_statics/dist/assets/{html.3cfc37f8.js → html.193c548a.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.f9c29f9d.js → htmlMode.5669aea7.js} +2 -2
- abstra_statics/dist/assets/{index.138ad220.js → index.17c59820.js} +2 -2
- abstra_statics/dist/assets/{index.9028af84.js → index.17c9890b.js} +2 -2
- abstra_statics/dist/assets/{index.5429e60c.js → index.2f9d5f42.js} +2 -2
- abstra_statics/dist/assets/{index.dfc9f500.js → index.341d2d78.js} +2 -2
- abstra_statics/dist/assets/{index.e6b397aa.js → index.590aa576.js} +3 -3
- abstra_statics/dist/assets/{index.b69b3146.js → index.84a81069.js} +2 -2
- abstra_statics/dist/assets/index.9d0d77b2.js +2 -0
- abstra_statics/dist/assets/{index.dccc1696.js → index.c3ea2813.js} +2 -2
- abstra_statics/dist/assets/{index.26a34a52.js → index.ee7c5f13.js} +2 -2
- abstra_statics/dist/assets/{index.a9e83a57.js → index.fd173cc0.js} +2 -2
- abstra_statics/dist/assets/{javascript.a4a24e63.js → javascript.ff046b2c.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.4df0cb48.js → jsonMode.c051f145.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.b204fb7d.js → jwt-decode.esm.f18c394f.js} +7 -7
- abstra_statics/dist/assets/{linters.5b679742.js → linters.e4e7bac9.js} +2 -2
- abstra_statics/dist/assets/{liquid.6539d262.js → liquid.98fcb8a3.js} +3 -3
- abstra_statics/dist/assets/member.d0ead44d.js +2 -0
- abstra_statics/dist/assets/{metadata.e6e36ac2.js → metadata.218ef86b.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.0470e5b1.js → omniChatStore.405dd08d.js} +2 -2
- abstra_statics/dist/assets/{organization.04cff158.js → organization.c20116a5.js} +2 -2
- abstra_statics/dist/assets/player.30fb0733.js +2 -0
- abstra_statics/dist/assets/{plotly.min.e185d882.js → plotly.min.b26aecc2.js} +2 -2
- abstra_statics/dist/assets/polling.775bd07d.js +2 -0
- abstra_statics/dist/assets/{project.c198d794.js → project.d26f784f.js} +2 -2
- abstra_statics/dist/assets/{python.5c45007e.js → python.6f801519.js} +2 -2
- abstra_statics/dist/assets/{razor.dbd79c37.js → razor.80957baf.js} +2 -2
- abstra_statics/dist/assets/{record.316e025a.js → record.f0e74f25.js} +2 -2
- abstra_statics/dist/assets/redirect.47662fd9.js +2 -0
- abstra_statics/dist/assets/{repository.ae6e826f.js → repository.75210ebd.js} +2 -2
- abstra_statics/dist/assets/repository.d2158c5f.js +2 -0
- abstra_statics/dist/assets/{router.29d47df0.js → router.9924fce0.js} +3 -3
- abstra_statics/dist/assets/string.c4805024.js +2 -0
- abstra_statics/dist/assets/{tables.e80a0328.js → tables.4cd227ff.js} +2 -2
- abstra_statics/dist/assets/{tasksController.307be8dc.js → tasksController.f0830c77.js} +3 -3
- abstra_statics/dist/assets/{toggleHighContrast.4184537f.js → toggleHighContrast.d8b2c912.js} +7 -7
- abstra_statics/dist/assets/{tsMode.12c94eed.js → tsMode.7de6acfd.js} +2 -2
- abstra_statics/dist/assets/{typescript.e087b68e.js → typescript.78bce6b9.js} +2 -2
- abstra_statics/dist/assets/url.f54a173c.js +2 -0
- abstra_statics/dist/assets/userStore.1345e655.js +2 -0
- abstra_statics/dist/assets/uuid.2e8600ec.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.402b0a32.js → vue-flow-background.57038ee0.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.10d49c97.js → vue-quill.esm-bundler.130627ea.js} +2 -2
- abstra_statics/dist/assets/workspaceStore.29138ee5.js +2 -0
- abstra_statics/dist/assets/{xml.c4ef7130.js → xml.46fa5b06.js} +3 -3
- abstra_statics/dist/assets/{yaml.5eb27541.js → yaml.775c20d7.js} +2 -2
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +11 -11
- abstra_statics/dist/player.html +9 -9
- abstra_internals/utils/threading.py +0 -24
- abstra_internals/utils/websockets.py +0 -79
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js +0 -2
- abstra_statics/dist/assets/ApiKeys.94113392.js +0 -2
- abstra_statics/dist/assets/App.6c102d26.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.26121baf.js +0 -2
- abstra_statics/dist/assets/BaseLayout.670b8441.js +0 -2
- abstra_statics/dist/assets/Billing.80a50079.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.7ac8e1e8.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.b85f86d8.js +0 -2
- abstra_statics/dist/assets/EnvVars.ccc24231.js +0 -2
- abstra_statics/dist/assets/Error.1bf571a6.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.f71fa58b.js +0 -2
- abstra_statics/dist/assets/Form.288a7191.js +0 -2
- abstra_statics/dist/assets/Home.23f0cff8.js +0 -2
- abstra_statics/dist/assets/Home.5ce6aade.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.3ea9ec8d.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.11688830.js +0 -2
- abstra_statics/dist/assets/Login.2a4c7e48.js +0 -2
- abstra_statics/dist/assets/Logo.cc2d4a95.js +0 -2
- abstra_statics/dist/assets/Logs.f57284a4.js +0 -2
- abstra_statics/dist/assets/LogsController.353f0002.js +0 -2
- abstra_statics/dist/assets/Main.635e443c.js +0 -2
- abstra_statics/dist/assets/Navbar.dacca218.js +0 -2
- abstra_statics/dist/assets/OidcLoginCallback.0dff6320.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.1f077fbb.js +0 -2
- abstra_statics/dist/assets/ProjectLogin.ed25cb39.js +0 -2
- abstra_statics/dist/assets/Sql.cbcb65af.js +0 -5
- abstra_statics/dist/assets/Steps.4c7bc2b0.js +0 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.2d88acf3.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.6cc6a025.js +0 -2
- abstra_statics/dist/assets/apiKey.8e591cfc.js +0 -2
- abstra_statics/dist/assets/colorHelpers.c4e8851c.js +0 -2
- abstra_statics/dist/assets/constants.6f822a9d.js +0 -2
- abstra_statics/dist/assets/datetime.7d5f4744.js +0 -2
- abstra_statics/dist/assets/dayjs.19defe89.js +0 -2
- abstra_statics/dist/assets/editor.6fa2da52.js +0 -2
- abstra_statics/dist/assets/editor.main.91c25311.js +0 -2
- abstra_statics/dist/assets/fetch.41281c28.js +0 -2
- abstra_statics/dist/assets/index.e7bc0e19.js +0 -2
- abstra_statics/dist/assets/member.c5283d66.js +0 -2
- abstra_statics/dist/assets/player.c715ca22.js +0 -2
- abstra_statics/dist/assets/polling.5f85e241.js +0 -2
- abstra_statics/dist/assets/redirect.d1904049.js +0 -2
- abstra_statics/dist/assets/repository.babdc912.js +0 -2
- abstra_statics/dist/assets/string.4a80abd5.js +0 -2
- abstra_statics/dist/assets/url.371275cf.js +0 -2
- abstra_statics/dist/assets/userStore.26658284.js +0 -2
- abstra_statics/dist/assets/uuid.ffd92735.js +0 -2
- abstra_statics/dist/assets/workspaceStore.9caf566c.js +0 -2
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/WHEEL +0 -0
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/entry_points.txt +0 -0
- {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{d as O,ag as w,bT as I,f as c,aj as f,av as R,as as A,e4 as D,bn as P,bP as j,ab as X,ac as z,X as B,an as M,dX as E,aD as N,az as H,ce as L,bx as F}from"./jwt-decode.esm.
|
|
1
|
+
import{d as O,ag as w,bT as I,f as c,aj as f,av as R,as as A,e4 as D,bn as P,bP as j,ab as X,ac as z,X as B,an as M,dX as E,aD as N,az as H,ce as L,bx as F}from"./jwt-decode.esm.f18c394f.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]="01731e2d-52a1-4e45-a663-618a19cd1f2f",r._sentryDebugIdIdentifier="sentry-dbid-01731e2d-52a1-4e45-a663-618a19cd1f2f")}catch{}})();var U=globalThis&&globalThis.__rest||function(r,e){var a={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(a[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,n=Object.getOwnPropertySymbols(r);t<n.length;t++)e.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(r,n[t])&&(a[n[t]]=r[n[t]]);return a};const V=()=>({prefixCls:String,href:String,separator:R.any,dropdownProps:A(),overlay:R.any,onClick:D()}),K=O({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:V(),slots:Object,setup(r,e){let{slots:a,attrs:n,emit:t}=e;const{prefixCls:u}=w("breadcrumb",r),y=(d,h)=>{const b=I(a,r,"overlay");return b?c(j,f(f({},r.dropdownProps),{},{overlay:b,placement:"bottom"}),{default:()=>[c("span",{class:`${h}-overlay-link`},[d,c(P,null,null)])]}):d},_=d=>{t("click",d)};return()=>{var d;const h=(d=I(a,r,"separator"))!==null&&d!==void 0?d:"/",b=I(a,r),{class:l,style:s}=n,o=U(n,["class","style"]);let i;return r.href!==void 0?i=c("a",f({class:`${u.value}-link`,onClick:_},o),[b]):i=c("span",f({class:`${u.value}-link`,onClick:_},o),[b]),i=y(i,u.value),b!=null?c("li",{class:l,style:s},[i,h&&c("span",{class:`${u.value}-separator`},[h])]):null}}}),W=r=>{const{componentCls:e,iconCls:a}=r;return{[e]:B(B({},M(r)),{color:r.breadcrumbBaseColor,fontSize:r.breadcrumbFontSize,[a]:{fontSize:r.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:B({color:r.breadcrumbLinkColor,transition:`color ${r.motionDurationMid}`,padding:`0 ${r.paddingXXS}px`,borderRadius:r.borderRadiusSM,height:r.lineHeight*r.fontSize,display:"inline-block",marginInline:-r.marginXXS,"&:hover":{color:r.breadcrumbLinkColorHover,backgroundColor:r.colorBgTextHover}},E(r)),["li:last-child"]:{color:r.breadcrumbLastItemColor,[`& > ${e}-separator`]:{display:"none"}},[`${e}-separator`]:{marginInline:r.breadcrumbSeparatorMargin,color:r.breadcrumbSeparatorColor},[`${e}-link`]:{[`
|
|
2
2
|
> ${a} + span,
|
|
3
3
|
> ${a} + a
|
|
4
4
|
`]:{marginInlineStart:r.marginXXS}},[`${e}-overlay-link`]:{borderRadius:r.borderRadiusSM,height:r.lineHeight*r.fontSize,display:"inline-block",padding:`0 ${r.paddingXXS}px`,marginInline:-r.marginXXS,[`> ${a}`]:{marginInlineStart:r.marginXXS,fontSize:r.fontSizeIcon},"&:hover":{color:r.breadcrumbLinkColorHover,backgroundColor:r.colorBgTextHover,a:{color:r.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${r.componentCls}-rtl`]:{direction:"rtl"}})}},q=X("Breadcrumb",r=>{const e=z(r,{breadcrumbBaseColor:r.colorTextDescription,breadcrumbFontSize:r.fontSize,breadcrumbIconFontSize:r.fontSize,breadcrumbLinkColor:r.colorTextDescription,breadcrumbLinkColorHover:r.colorText,breadcrumbLastItemColor:r.colorText,breadcrumbSeparatorMargin:r.marginXS,breadcrumbSeparatorColor:r.colorTextDescription});return[W(e)]}),G=()=>({prefixCls:String,routes:{type:Array},params:R.any,separator:R.any,itemRender:{type:Function}});function J(r,e){if(!r.breadcrumbName)return null;const a=Object.keys(e).join("|");return r.breadcrumbName.replace(new RegExp(`:(${a})`,"g"),(t,u)=>e[u]||t)}function $(r){const{route:e,params:a,routes:n,paths:t}=r,u=n.indexOf(e)===n.length-1,y=J(e,a);return u?c("span",null,[y]):c("a",{href:`#/${t.join("/")}`},[y])}const Y=O({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:G(),slots:Object,setup(r,e){let{slots:a,attrs:n}=e;const{prefixCls:t,direction:u}=w("breadcrumb",r),[y,_]=q(t),d=(l,s)=>(l=(l||"").replace(/^\//,""),Object.keys(s).forEach(o=>{l=l.replace(`:${o}`,s[o])}),l),h=(l,s,o)=>{const i=[...l],m=d(s||"",o);return m&&i.push(m),i},b=l=>{let{routes:s=[],params:o={},separator:i,itemRender:m=$}=l;const S=[];return s.map(p=>{const C=d(p.path,o);C&&S.push(C);const g=[...S];let v=null;p.children&&p.children.length&&(v=c(F,{items:p.children.map(x=>({key:x.path||x.breadcrumbName,label:m({route:x,params:o,routes:s,paths:h(g,x.path,o)})}))},null));const T={separator:i};return v&&(T.overlay=v),c(K,f(f({},T),{},{key:C||p.breadcrumbName}),{default:()=>[m({route:p,params:o,routes:s,paths:g})]})})};return()=>{var l;let s;const{routes:o,params:i={}}=r,m=N(I(a,r)),S=(l=I(a,r,"separator"))!==null&&l!==void 0?l:"/",p=r.itemRender||a.itemRender||$;o&&o.length>0?s=b({routes:o,params:i,separator:S,itemRender:p}):m.length&&(s=m.map((g,v)=>(H(typeof g.type=="object"&&(g.type.__ANT_BREADCRUMB_ITEM||g.type.__ANT_BREADCRUMB_SEPARATOR)),L(g,{separator:S,key:v}))));const C={[t.value]:!0,[`${t.value}-rtl`]:u.value==="rtl",[`${n.class}`]:!!n.class,[_.value]:!0};return y(c("nav",f(f({},n),{},{class:C}),[c("ol",null,[s])]))}}});export{K as A,Y as B};
|
|
5
|
-
//# sourceMappingURL=Breadcrumb.
|
|
5
|
+
//# sourceMappingURL=Breadcrumb.00a432b7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{C as H}from"./CrudView.7f2cbde4.js";import{d as $,am as P,c as x,o as c,a5 as v,a7 as q,h as _,e6 as U,e as C,f as u,e7 as z,f1 as Q,e5 as W,a as f,b as i,u as r,bP as Y,bx as J,bw as X,da as k,g as y,ed as b,cx as K,eb as ee,k as te,j as re,r as ae,aR as le,aV as ne,cN as oe,d9 as ie,a6 as se,d4 as ue,S as ce,M as de,ee as pe,_ as fe}from"./jwt-decode.esm.b204fb7d.js";import{a as L}from"./asyncComputed.0f036eae.js";import{g as me}from"./datetime.7d5f4744.js";import{u as ge}from"./polling.5f85e241.js";import{G as ye}from"./PhArrowCounterClockwise.vue.d273955f.js";import{H as be}from"./PhCube.vue.b5e79047.js";import{G as he}from"./PhDownloadSimple.vue.2c2eeb2c.js";import{e as ve,d as _e,r as ke}from"./router.29d47df0.js";import{a as Ce,B as Ae}from"./build.c819a477.js";import{a as Oe}from"./project.c198d794.js";import"./tables.e80a0328.js";import{G as we}from"./PhClockCounterClockwise.vue.853bd5ec.js";import{F as xe,G as Se,I as Pe}from"./PhUserList.vue.6d0e7bc8.js";import{G as Ze}from"./PhWebhooksLogo.vue.49b66d69.js";import{A as Z}from"./index.e7bc0e19.js";import{E as Me}from"./ExclamationCircleOutlined.f71fa58b.js";import{C as je}from"./CloseCircleOutlined.7ac8e1e8.js";import{L as I}from"./LoadingOutlined.11688830.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js";import"./constants.6f822a9d.js";import"./url.371275cf.js";import"./PhDotsThreeVertical.vue.89b627bd.js";import"./index.26a34a52.js";import"./record.316e025a.js";import"./string.4a80abd5.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="184f8039-c297-4ba8-9a9d-f98f51154384",l._sentryDebugIdIdentifier="sentry-dbid-184f8039-c297-4ba8-9a9d-f98f51154384")}catch{}})();var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const $e=Ie;var ze={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};const De=ze,Be=["width","height","fill","transform"],Ve={key:0},Ne=C("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-16-84a16,16,0,1,1-16-16A16,16,0,0,1,112,128Zm64,0a16,16,0,1,1-16-16A16,16,0,0,1,176,128Z"},null,-1),Le=[Ne],Ee={key:1},Ge=C("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Te=C("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm56-88a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),Fe=[Ge,Te],Re={key:2},He=C("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"},null,-1),qe=[He],Ue={key:3},Qe=C("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm10-90a10,10,0,1,1-10-10A10,10,0,0,1,138,128Zm-44,0a10,10,0,1,1-10-10A10,10,0,0,1,94,128Zm88,0a10,10,0,1,1-10-10A10,10,0,0,1,182,128Z"},null,-1),We=[Qe],Ye={key:4},Je=C("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),Xe=[Je],Ke={key:5},et=C("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm8-92a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-44,0a8,8,0,1,1-8-8A8,8,0,0,1,92,128Zm88,0a8,8,0,1,1-8-8A8,8,0,0,1,180,128Z"},null,-1),tt=[et],rt={name:"PhDotsThreeCircle"},at=$({...rt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const e=l,a=P("weight","regular"),d=P("size","1em"),s=P("color","currentColor"),S=P("mirrored",!1),p=x(()=>{var m;return(m=e.weight)!=null?m:a}),w=x(()=>{var m;return(m=e.size)!=null?m:d}),h=x(()=>{var m;return(m=e.color)!=null?m:s}),A=x(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:S?"scale(-1, 1)":void 0);return(m,M)=>(c(),v("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:A.value},m.$attrs),[q(m.$slots,"default"),p.value==="bold"?(c(),v("g",Ve,Le)):p.value==="duotone"?(c(),v("g",Ee,Fe)):p.value==="fill"?(c(),v("g",Re,qe)):p.value==="light"?(c(),v("g",Ue,We)):p.value==="regular"?(c(),v("g",Ye,Xe)):p.value==="thin"?(c(),v("g",Ke,tt)):_("",!0)],16,Be))}});function E(l){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},d=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(a).filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable}))),d.forEach(function(s){lt(l,s,a[s])})}return l}function lt(l,e,a){return e in l?Object.defineProperty(l,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):l[e]=a,l}var D=function(e,a){var d=E({},e,a.attrs);return u(z,E({},d,{icon:Q}),null)};D.displayName="CheckCircleOutlined";D.inheritAttrs=!1;const nt=D;function G(l){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},d=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(a).filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable}))),d.forEach(function(s){ot(l,s,a[s])})}return l}function ot(l,e,a){return e in l?Object.defineProperty(l,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):l[e]=a,l}var B=function(e,a){var d=G({},e,a.attrs);return u(z,G({},d,{icon:$e}),null)};B.displayName="MinusCircleOutlined";B.inheritAttrs=!1;const it=B;function T(l){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},d=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(a).filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable}))),d.forEach(function(s){st(l,s,a[s])})}return l}function st(l,e,a){return e in l?Object.defineProperty(l,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):l[e]=a,l}var V=function(e,a){var d=T({},e,a.attrs);return u(z,T({},d,{icon:De}),null)};V.displayName="PauseCircleOutlined";V.inheritAttrs=!1;const ut=V,ct={style:{display:"flex","align-items":"center",gap:"5px"}},dt={key:1},pt=$({__name:"BuildInspector",props:{buildSpec:{}},setup(l){const e=l,a=W(),d=s=>{a.push({name:"logs",params:{projectId:e.buildSpec.projectId},query:s.logQuery})};return(s,S)=>s.buildSpec.runtimes.length>0?(c(),f(r(_e),{key:0,"item-layout":"horizontal","data-source":s.buildSpec.runtimes},{renderItem:i(({item:p})=>[u(r(ve),null,{actions:i(()=>[u(r(Y),null,{overlay:i(()=>[u(r(J),null,{default:i(()=>[u(r(X),{onClick:w=>d(p)},{default:i(()=>[C("div",ct,[u(r(we)),u(r(k),null,{default:i(()=>[y(" View Logs")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1024)]),default:i(()=>[u(r(at),{style:{cursor:"pointer"}})]),_:2},1024)]),default:i(()=>[p.type=="form"?(c(),f(r(Z),{key:0,size:"large"},{default:i(()=>[u(r(xe)),u(r(k),{strong:""},{default:i(()=>[y(b(p.title),1)]),_:2},1024),u(r(k),{type:"secondary",code:""},{default:i(()=>[y("/"+b(p.path),1)]),_:2},1024)]),_:2},1024)):_("",!0),p.type=="job"?(c(),f(r(Z),{key:1,size:"large"},{default:i(()=>[u(r(Se)),u(r(k),{strong:""},{default:i(()=>[y(b(p.title),1)]),_:2},1024),u(r(k),{type:"secondary",code:""},{default:i(()=>[y(b(p.schedule),1)]),_:2},1024)]),_:2},1024)):_("",!0),p.type=="hook"?(c(),f(r(Z),{key:2,size:"large"},{default:i(()=>[u(r(Ze)),u(r(k),{strong:""},{default:i(()=>[y(b(p.title),1)]),_:2},1024),u(r(k),{type:"secondary",code:""},{default:i(()=>[y("/_hooks/"+b(p.path),1)]),_:2},1024)]),_:2},1024)):_("",!0),p.type=="script"?(c(),f(r(Z),{key:3,size:"large"},{default:i(()=>[u(r(Pe)),u(r(k),{strong:""},{default:i(()=>[y(b(p.title),1)]),_:2},1024)]),_:2},1024)):_("",!0)]),_:2},1024)]),_:1},8,["data-source"])):(c(),v("div",dt,[u(r(K),{description:"No runtimes found. Make sure your project has forms, hooks or jobs before deploying it"})]))}}),ft=$({__name:"Builds",setup(l){const a=ee().params.projectId,{loading:d,result:s,refetch:S}=L(async()=>{const[t,o]=await Promise.all([Ce.list(a),Oe.getStatus(a)]);return{b:t.map(g=>({build:g,status:o.filter(O=>O.buildId==g.id).map(O=>O.status)})),status:o}}),{startPolling:p,endPolling:w}=ge({task:S,interval:1e4});te(()=>p()),re(()=>w());const h=ae(null),A=L(async()=>h.value?await Ae.get(h.value):null),m=()=>{var n;const t=(n=s.value)==null?void 0:n.b.find(g=>g.build.id===h.value);return`Version ${t==null?void 0:t.build.id.slice(0,8)} - ${t==null?void 0:t.build.createdAt.toLocaleString()}`},M=[{text:"Deploying",tagColor:"blue",check:t=>{var o,n;return(n=t.build.latest&&t.status.some(g=>g=="Running")&&((o=s.value)==null?void 0:o.status.some(g=>g.buildId!==t.build.id)))!=null?n:!1},loading:!0},{text:"Deactivating",tagColor:"orange",check:t=>t.build.status==="success"&&!t.build.latest&&t.status.some(o=>o=="Running"),loading:!0},{text:"Live",tagColor:"green",check:t=>t.build.latest&&t.status.some(o=>o=="Running")},{text:"Sleeping",tagColor:"cyan",check:t=>t.build.latest&&t.status.length===0},{text:"Failed",tagColor:"red",check:t=>t.build.latest&&t.status.some(o=>o=="Failed")},{text:"Inactive",tagColor:"default",check:t=>t.build.status==="success"},{text:"Aborted",tagColor:"default",check:t=>t.build.status==="aborted"||t.build.status==="aborted-by-user"},{text:"Failed",tagColor:"orange",check:t=>t.build.status==="failure"},{text:"Deploying",tagColor:"blue",check:t=>t.build.status==="in-progress",loading:!0},{text:"Uploading",tagColor:"yellow",check:t=>t.build.status==="pending"}];function F(t){var o,n,g,O,N;return{text:(n=(o=M.find(j=>j.check(t)))==null?void 0:o.text)!=null?n:"unknown",tagColor:(O=(g=M.find(j=>j.check(t)))==null?void 0:g.tagColor)!=null?O:"default",hover:(N=t.build.log)!=null?N:void 0}}const R=x(()=>{const t=[{title:"Id"},{title:"Date"},{title:"Abstra Version"},{title:"Status"},{title:"",align:"right"}];return s.value?{columns:t,rows:s.value.b.map(o=>{var n;return{key:o.build.id,cells:[{type:"text",text:o.build.id.slice(0,8)},{key:"date",type:"slot",payload:{date:me(o.build.createdAt,{weekday:void 0}),distance:pe(o.build.createdAt)}},{type:"text",text:(n=o.build.abstraVersion)!=null?n:"-"},{key:"status",type:"slot",payload:F(o)},{type:"actions",actions:[{icon:be,label:"Inspect version",onClick:async()=>{h.value=o.build.id,A.refetch()}},{icon:ye,label:"View application logs",onClick:()=>{ke.push({name:"logs",params:{projectId:a},query:{buildId:o.build.id}})}},{icon:he,label:"Download files",onClick:()=>o.build.download()}]}]}})}:{columns:t,rows:[]}});return(t,o)=>(c(),v(le,null,[u(H,{"entity-name":"build",loading:r(d),title:"Version History",description:"You can create a new version by publishing your project from the local editor.","empty-title":"No versions here yet",table:R.value,live:""},{date:i(({payload:n})=>[u(r(ne),null,{title:i(()=>[y(b(n.distance),1)]),default:i(()=>[y(b(n.date)+" ",1)]),_:2},1024)]),status:i(({payload:n})=>[u(r(oe),{open:n.hover?void 0:!1},{content:i(()=>[u(r(ie),{style:{width:"300px",overflow:"auto","font-family":"monospace"},content:n.hover,copyable:""},null,8,["content"])]),default:i(()=>[n.text!=="unknown"?(c(),f(r(ue),{key:0,color:n.tagColor,style:se({cursor:n.hover?"pointer":"default"})},{default:i(()=>[n.text==="Live"?(c(),f(r(nt),{key:0})):n.text==="Inactive"?(c(),f(r(it),{key:1})):n.text==="Failed"?(c(),f(r(Me),{key:2})):n.text==="Aborted"?(c(),f(r(je),{key:3})):n.text==="Sleeping"?(c(),f(r(ut),{key:4})):n.text==="Uploading"?(c(),f(r(I),{key:5})):n.text==="Deploying"?(c(),f(r(I),{key:6})):n.text==="Deactivating"?(c(),f(r(I),{key:7})):_("",!0),y(" "+b(n.text),1)]),_:2},1032,["color","style"])):_("",!0)]),_:2},1032,["open"])]),_:1},8,["loading","table"]),h.value?(c(),f(r(de),{key:0,footer:null,open:!!h.value,size:"large",width:"80%",title:m(),onCancel:o[0]||(o[0]=n=>h.value=null)},{default:i(()=>[!r(A).result.value||r(A).loading.value?(c(),f(r(ce),{key:0})):r(A).result.value?(c(),f(pt,{key:1,"build-spec":r(A).result.value},null,8,["build-spec"])):_("",!0)]),_:1},8,["open","title"])):_("",!0)],64))}});const Et=fe(ft,[["__scopeId","data-v-9615f578"]]);export{Et as default};
|
|
2
|
-
//# sourceMappingURL=Builds.
|
|
1
|
+
import{C as H}from"./CrudView.01e6ed04.js";import{d as $,am as P,c as x,o as c,a5 as v,a7 as q,h as _,e6 as U,e as C,f as u,e7 as z,f1 as Q,e5 as W,a as f,b as i,u as r,bP as Y,bx as J,bw as X,da as k,g as y,ed as b,cx as K,eb as ee,k as te,j as re,r as ae,aR as le,aV as ne,cN as oe,d9 as ie,a6 as se,d4 as ue,S as ce,M as de,ee as pe,_ as fe}from"./jwt-decode.esm.f18c394f.js";import{a as L}from"./asyncComputed.24fa122c.js";import{g as me}from"./datetime.215ab936.js";import{u as ge}from"./polling.775bd07d.js";import{G as ye}from"./PhArrowCounterClockwise.vue.731eb94b.js";import{H as be}from"./PhCube.vue.c868f288.js";import{G as he}from"./PhDownloadSimple.vue.32b4f321.js";import{e as ve,d as _e,r as ke}from"./router.9924fce0.js";import{a as Ce,B as Ae}from"./build.5e49b52b.js";import{a as Oe}from"./project.d26f784f.js";import"./tables.4cd227ff.js";import{G as we}from"./PhClockCounterClockwise.vue.83a88fd2.js";import{F as xe,G as Se,I as Pe}from"./PhUserList.vue.66442c99.js";import{G as Ze}from"./PhWebhooksLogo.vue.3159b8c2.js";import{A as Z}from"./index.9d0d77b2.js";import{E as Me}from"./ExclamationCircleOutlined.443f1727.js";import{C as je}from"./CloseCircleOutlined.ae1e7621.js";import{L as I}from"./LoadingOutlined.688afd1b.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.3efd2188.js";import"./constants.4f491067.js";import"./url.f54a173c.js";import"./PhDotsThreeVertical.vue.82ed05fc.js";import"./index.ee7c5f13.js";import"./record.f0e74f25.js";import"./string.c4805024.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="a8a45319-ec4e-474b-8825-15783b7d2dfd",l._sentryDebugIdIdentifier="sentry-dbid-a8a45319-ec4e-474b-8825-15783b7d2dfd")}catch{}})();var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const $e=Ie;var ze={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};const De=ze,Be=["width","height","fill","transform"],Ve={key:0},Ne=C("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-16-84a16,16,0,1,1-16-16A16,16,0,0,1,112,128Zm64,0a16,16,0,1,1-16-16A16,16,0,0,1,176,128Z"},null,-1),Le=[Ne],Ee={key:1},Ge=C("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),Te=C("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm56-88a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),Fe=[Ge,Te],Re={key:2},He=C("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"},null,-1),qe=[He],Ue={key:3},Qe=C("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm10-90a10,10,0,1,1-10-10A10,10,0,0,1,138,128Zm-44,0a10,10,0,1,1-10-10A10,10,0,0,1,94,128Zm88,0a10,10,0,1,1-10-10A10,10,0,0,1,182,128Z"},null,-1),We=[Qe],Ye={key:4},Je=C("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm44,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Zm-88,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Z"},null,-1),Xe=[Je],Ke={key:5},et=C("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm8-92a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-44,0a8,8,0,1,1-8-8A8,8,0,0,1,92,128Zm88,0a8,8,0,1,1-8-8A8,8,0,0,1,180,128Z"},null,-1),tt=[et],rt={name:"PhDotsThreeCircle"},at=$({...rt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(l){const e=l,a=P("weight","regular"),d=P("size","1em"),s=P("color","currentColor"),S=P("mirrored",!1),p=x(()=>{var m;return(m=e.weight)!=null?m:a}),w=x(()=>{var m;return(m=e.size)!=null?m:d}),h=x(()=>{var m;return(m=e.color)!=null?m:s}),A=x(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:S?"scale(-1, 1)":void 0);return(m,M)=>(c(),v("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:w.value,height:w.value,fill:h.value,transform:A.value},m.$attrs),[q(m.$slots,"default"),p.value==="bold"?(c(),v("g",Ve,Le)):p.value==="duotone"?(c(),v("g",Ee,Fe)):p.value==="fill"?(c(),v("g",Re,qe)):p.value==="light"?(c(),v("g",Ue,We)):p.value==="regular"?(c(),v("g",Ye,Xe)):p.value==="thin"?(c(),v("g",Ke,tt)):_("",!0)],16,Be))}});function E(l){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},d=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(a).filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable}))),d.forEach(function(s){lt(l,s,a[s])})}return l}function lt(l,e,a){return e in l?Object.defineProperty(l,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):l[e]=a,l}var D=function(e,a){var d=E({},e,a.attrs);return u(z,E({},d,{icon:Q}),null)};D.displayName="CheckCircleOutlined";D.inheritAttrs=!1;const nt=D;function G(l){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},d=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(a).filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable}))),d.forEach(function(s){ot(l,s,a[s])})}return l}function ot(l,e,a){return e in l?Object.defineProperty(l,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):l[e]=a,l}var B=function(e,a){var d=G({},e,a.attrs);return u(z,G({},d,{icon:$e}),null)};B.displayName="MinusCircleOutlined";B.inheritAttrs=!1;const it=B;function T(l){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?Object(arguments[e]):{},d=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(d=d.concat(Object.getOwnPropertySymbols(a).filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable}))),d.forEach(function(s){st(l,s,a[s])})}return l}function st(l,e,a){return e in l?Object.defineProperty(l,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):l[e]=a,l}var V=function(e,a){var d=T({},e,a.attrs);return u(z,T({},d,{icon:De}),null)};V.displayName="PauseCircleOutlined";V.inheritAttrs=!1;const ut=V,ct={style:{display:"flex","align-items":"center",gap:"5px"}},dt={key:1},pt=$({__name:"BuildInspector",props:{buildSpec:{}},setup(l){const e=l,a=W(),d=s=>{a.push({name:"logs",params:{projectId:e.buildSpec.projectId},query:s.logQuery})};return(s,S)=>s.buildSpec.runtimes.length>0?(c(),f(r(_e),{key:0,"item-layout":"horizontal","data-source":s.buildSpec.runtimes},{renderItem:i(({item:p})=>[u(r(ve),null,{actions:i(()=>[u(r(Y),null,{overlay:i(()=>[u(r(J),null,{default:i(()=>[u(r(X),{onClick:w=>d(p)},{default:i(()=>[C("div",ct,[u(r(we)),u(r(k),null,{default:i(()=>[y(" View Logs")]),_:1})])]),_:2},1032,["onClick"])]),_:2},1024)]),default:i(()=>[u(r(at),{style:{cursor:"pointer"}})]),_:2},1024)]),default:i(()=>[p.type=="form"?(c(),f(r(Z),{key:0,size:"large"},{default:i(()=>[u(r(xe)),u(r(k),{strong:""},{default:i(()=>[y(b(p.title),1)]),_:2},1024),u(r(k),{type:"secondary",code:""},{default:i(()=>[y("/"+b(p.path),1)]),_:2},1024)]),_:2},1024)):_("",!0),p.type=="job"?(c(),f(r(Z),{key:1,size:"large"},{default:i(()=>[u(r(Se)),u(r(k),{strong:""},{default:i(()=>[y(b(p.title),1)]),_:2},1024),u(r(k),{type:"secondary",code:""},{default:i(()=>[y(b(p.schedule),1)]),_:2},1024)]),_:2},1024)):_("",!0),p.type=="hook"?(c(),f(r(Z),{key:2,size:"large"},{default:i(()=>[u(r(Ze)),u(r(k),{strong:""},{default:i(()=>[y(b(p.title),1)]),_:2},1024),u(r(k),{type:"secondary",code:""},{default:i(()=>[y("/_hooks/"+b(p.path),1)]),_:2},1024)]),_:2},1024)):_("",!0),p.type=="script"?(c(),f(r(Z),{key:3,size:"large"},{default:i(()=>[u(r(Pe)),u(r(k),{strong:""},{default:i(()=>[y(b(p.title),1)]),_:2},1024)]),_:2},1024)):_("",!0)]),_:2},1024)]),_:1},8,["data-source"])):(c(),v("div",dt,[u(r(K),{description:"No runtimes found. Make sure your project has forms, hooks or jobs before deploying it"})]))}}),ft=$({__name:"Builds",setup(l){const a=ee().params.projectId,{loading:d,result:s,refetch:S}=L(async()=>{const[t,o]=await Promise.all([Ce.list(a),Oe.getStatus(a)]);return{b:t.map(g=>({build:g,status:o.filter(O=>O.buildId==g.id).map(O=>O.status)})),status:o}}),{startPolling:p,endPolling:w}=ge({task:S,interval:1e4});te(()=>p()),re(()=>w());const h=ae(null),A=L(async()=>h.value?await Ae.get(h.value):null),m=()=>{var n;const t=(n=s.value)==null?void 0:n.b.find(g=>g.build.id===h.value);return`Version ${t==null?void 0:t.build.id.slice(0,8)} - ${t==null?void 0:t.build.createdAt.toLocaleString()}`},M=[{text:"Deploying",tagColor:"blue",check:t=>{var o,n;return(n=t.build.latest&&t.status.some(g=>g=="Running")&&((o=s.value)==null?void 0:o.status.some(g=>g.buildId!==t.build.id)))!=null?n:!1},loading:!0},{text:"Deactivating",tagColor:"orange",check:t=>t.build.status==="success"&&!t.build.latest&&t.status.some(o=>o=="Running"),loading:!0},{text:"Live",tagColor:"green",check:t=>t.build.latest&&t.status.some(o=>o=="Running")},{text:"Sleeping",tagColor:"cyan",check:t=>t.build.latest&&t.status.length===0},{text:"Failed",tagColor:"red",check:t=>t.build.latest&&t.status.some(o=>o=="Failed")},{text:"Inactive",tagColor:"default",check:t=>t.build.status==="success"},{text:"Aborted",tagColor:"default",check:t=>t.build.status==="aborted"||t.build.status==="aborted-by-user"},{text:"Failed",tagColor:"orange",check:t=>t.build.status==="failure"},{text:"Deploying",tagColor:"blue",check:t=>t.build.status==="in-progress",loading:!0},{text:"Uploading",tagColor:"yellow",check:t=>t.build.status==="pending"}];function F(t){var o,n,g,O,N;return{text:(n=(o=M.find(j=>j.check(t)))==null?void 0:o.text)!=null?n:"unknown",tagColor:(O=(g=M.find(j=>j.check(t)))==null?void 0:g.tagColor)!=null?O:"default",hover:(N=t.build.log)!=null?N:void 0}}const R=x(()=>{const t=[{title:"Id"},{title:"Date"},{title:"Abstra Version"},{title:"Status"},{title:"",align:"right"}];return s.value?{columns:t,rows:s.value.b.map(o=>{var n;return{key:o.build.id,cells:[{type:"text",text:o.build.id.slice(0,8)},{key:"date",type:"slot",payload:{date:me(o.build.createdAt,{weekday:void 0}),distance:pe(o.build.createdAt)}},{type:"text",text:(n=o.build.abstraVersion)!=null?n:"-"},{key:"status",type:"slot",payload:F(o)},{type:"actions",actions:[{icon:be,label:"Inspect version",onClick:async()=>{h.value=o.build.id,A.refetch()}},{icon:ye,label:"View application logs",onClick:()=>{ke.push({name:"logs",params:{projectId:a},query:{buildId:o.build.id}})}},{icon:he,label:"Download files",onClick:()=>o.build.download()}]}]}})}:{columns:t,rows:[]}});return(t,o)=>(c(),v(le,null,[u(H,{"entity-name":"build",loading:r(d),title:"Version History",description:"You can create a new version by publishing your project from the local editor.","empty-title":"No versions here yet",table:R.value,live:""},{date:i(({payload:n})=>[u(r(ne),null,{title:i(()=>[y(b(n.distance),1)]),default:i(()=>[y(b(n.date)+" ",1)]),_:2},1024)]),status:i(({payload:n})=>[u(r(oe),{open:n.hover?void 0:!1},{content:i(()=>[u(r(ie),{style:{width:"300px",overflow:"auto","font-family":"monospace"},content:n.hover,copyable:""},null,8,["content"])]),default:i(()=>[n.text!=="unknown"?(c(),f(r(ue),{key:0,color:n.tagColor,style:se({cursor:n.hover?"pointer":"default"})},{default:i(()=>[n.text==="Live"?(c(),f(r(nt),{key:0})):n.text==="Inactive"?(c(),f(r(it),{key:1})):n.text==="Failed"?(c(),f(r(Me),{key:2})):n.text==="Aborted"?(c(),f(r(je),{key:3})):n.text==="Sleeping"?(c(),f(r(ut),{key:4})):n.text==="Uploading"?(c(),f(r(I),{key:5})):n.text==="Deploying"?(c(),f(r(I),{key:6})):n.text==="Deactivating"?(c(),f(r(I),{key:7})):_("",!0),y(" "+b(n.text),1)]),_:2},1032,["color","style"])):_("",!0)]),_:2},1032,["open"])]),_:1},8,["loading","table"]),h.value?(c(),f(r(de),{key:0,footer:null,open:!!h.value,size:"large",width:"80%",title:m(),onCancel:o[0]||(o[0]=n=>h.value=null)},{default:i(()=>[!r(A).result.value||r(A).loading.value?(c(),f(r(ce),{key:0})):r(A).result.value?(c(),f(pt,{key:1,"build-spec":r(A).result.value},null,8,["build-spec"])):_("",!0)]),_:1},8,["open","title"])):_("",!0)],64))}});const Et=fe(ft,[["__scopeId","data-v-9615f578"]]);export{Et as default};
|
|
2
|
+
//# sourceMappingURL=Builds.329c2faa.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dL as ut,dM as Tt,dN as Gt,dO as Kt,dP as Xt,dQ as jt,dR as Ft,dS as qt,N as q,aq as Je,a8 as Ae,d as k,r as ne,c as H,f as s,b7 as ae,ah as W,aK as We,X as r,ck as O,k as Ne,w as me,bB as Vt,dT as Yt,bx as Ut,bw as Zt,dU as Qt,av as re,aN as ee,a4 as Jt,am as ea,c1 as ta,bE as aa,ak as vt,aj as D,as as Le,dV as Re,aF as na,aP as oa,dW as pt,ab as et,ac as tt,an as at,ao as nt,dX as _t,ap as Me,aD as Pt,ai as ot,aL as ke,b6 as ia,aM as la,aA as ra,bY as sa,au as da,c8 as ze,ag as ye,b4 as ca,aW as bt,a$ as ua,dY as Ge,aT as va,dZ as Ee,a7 as pa,d_ as ft,dm as ba,d$ as fa}from"./jwt-decode.esm.b204fb7d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="787ef864-4795-4cfe-9cdf-8414bebcb94d",e._sentryDebugIdIdentifier="sentry-dbid-787ef864-4795-4cfe-9cdf-8414bebcb94d")}catch{}})();function ga(e,t,a,n){if(!ut(e))return e;t=Tt(t,e);for(var o=-1,l=t.length,i=l-1,c=e;c!=null&&++o<l;){var h=Gt(t[o]),f=a;if(h==="__proto__"||h==="constructor"||h==="prototype")return e;if(o!=i){var g=c[h];f=n?n(g,h,c):void 0,f===void 0&&(f=ut(g)?g:Kt(t[o+1])?[]:{})}Xt(c,h,f),c=c[h]}return e}function ha(e,t,a){for(var n=-1,o=t.length,l={};++n<o;){var i=t[n],c=jt(e,i);a(c,i)&&ga(l,Tt(i,e),c)}return l}function $a(e,t){return ha(e,t,function(a,n){return Ft(e,n)})}var ma=qt(function(e,t){return e==null?{}:$a(e,t)});const Bt=ma;function ya(e){const t=q(),a=q(!1);function n(){for(var o=arguments.length,l=new Array(o),i=0;i<o;i++)l[i]=arguments[i];a.value||(Ae.cancel(t.value),t.value=Ae(()=>{e(...l)}))}return Je(()=>{a.value=!0,Ae.cancel(t.value)}),n}function Sa(e){const t=q([]),a=q(typeof e=="function"?e():e),n=ya(()=>{let l=a.value;t.value.forEach(i=>{l=i(l)}),t.value=[],a.value=l});function o(l){t.value.push(l),n()}return[a,o]}const xa=k({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:n}=t;const o=ne();function l(h){var f;!((f=e.tab)===null||f===void 0)&&f.disabled||e.onClick(h)}a({domRef:o});function i(h){var f;h.preventDefault(),h.stopPropagation(),e.editable.onEdit("remove",{key:(f=e.tab)===null||f===void 0?void 0:f.key,event:h})}const c=H(()=>{var h;return e.editable&&e.closable!==!1&&!(!((h=e.tab)===null||h===void 0)&&h.disabled)});return()=>{var h;const{prefixCls:f,id:g,active:x,tab:{key:b,tab:d,disabled:u,closeIcon:$},renderWrapper:C,removeAriaLabel:S,editable:E,onFocus:L}=e,M=`${f}-tab`,p=s("div",{key:b,ref:o,class:W(M,{[`${M}-with-remove`]:c.value,[`${M}-active`]:x,[`${M}-disabled`]:u}),style:n.style,onClick:l},[s("div",{role:"tab","aria-selected":x,id:g&&`${g}-tab-${b}`,class:`${M}-btn`,"aria-controls":g&&`${g}-panel-${b}`,"aria-disabled":u,tabindex:u?null:0,onClick:y=>{y.stopPropagation(),l(y)},onKeydown:y=>{[ae.SPACE,ae.ENTER].includes(y.which)&&(y.preventDefault(),l(y))},onFocus:L},[typeof d=="function"?d():d]),c.value&&s("button",{type:"button","aria-label":S||"remove",tabindex:0,class:`${M}-remove`,onClick:y=>{y.stopPropagation(),i(y)}},[($==null?void 0:$())||((h=E.removeIcon)===null||h===void 0?void 0:h.call(E))||"\xD7"])]);return C?C(p):p}}}),gt={width:0,height:0,left:0,top:0};function Ca(e,t){const a=ne(new Map);return We(()=>{var n,o;const l=new Map,i=e.value,c=t.value.get((n=i[0])===null||n===void 0?void 0:n.key)||gt,h=c.left+c.width;for(let f=0;f<i.length;f+=1){const{key:g}=i[f];let x=t.value.get(g);x||(x=t.value.get((o=i[f-1])===null||o===void 0?void 0:o.key)||gt);const b=l.get(g)||r({},x);b.right=h-b.left-b.width,l.set(g,b)}a.value=new Map(l)}),a}const It=k({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:a,attrs:n}=t;const o=ne();return a({domRef:o}),()=>{const{prefixCls:l,editable:i,locale:c}=e;return!i||i.showAdd===!1?null:s("button",{ref:o,type:"button",class:`${l}-nav-add`,style:n.style,"aria-label":(c==null?void 0:c.addAriaLabel)||"Add tab",onClick:h=>{i.onEdit("add",{event:h})}},[i.addIcon?i.addIcon():"+"])}}}),wa={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:re.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ee()},Ta=k({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:wa,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:n}=t;const[o,l]=O(!1),[i,c]=O(null),h=d=>{const u=e.tabs.filter(S=>!S.disabled);let $=u.findIndex(S=>S.key===i.value)||0;const C=u.length;for(let S=0;S<C;S+=1){$=($+d+C)%C;const E=u[$];if(!E.disabled){c(E.key);return}}},f=d=>{const{which:u}=d;if(!o.value){[ae.DOWN,ae.SPACE,ae.ENTER].includes(u)&&(l(!0),d.preventDefault());return}switch(u){case ae.UP:h(-1),d.preventDefault();break;case ae.DOWN:h(1),d.preventDefault();break;case ae.ESC:l(!1);break;case ae.SPACE:case ae.ENTER:i.value!==null&&e.onTabClick(i.value,d);break}},g=H(()=>`${e.id}-more-popup`),x=H(()=>i.value!==null?`${g.value}-${i.value}`:null),b=(d,u)=>{d.preventDefault(),d.stopPropagation(),e.editable.onEdit("remove",{key:u,event:d})};return Ne(()=>{me(i,()=>{const d=document.getElementById(x.value);d&&d.scrollIntoView&&d.scrollIntoView(!1)},{flush:"post",immediate:!0})}),me(o,()=>{o.value||c(null)}),Vt({}),()=>{var d;const{prefixCls:u,id:$,tabs:C,locale:S,mobile:E,moreIcon:L=((d=n.moreIcon)===null||d===void 0?void 0:d.call(n))||s(Yt,null,null),moreTransitionName:M,editable:p,tabBarGutter:y,rtl:v,onTabClick:_,popupClassName:R}=e;if(!C.length)return null;const I=`${u}-dropdown`,N=S==null?void 0:S.dropdownAriaLabel,Q={[v?"marginRight":"marginLeft"]:y};C.length||(Q.visibility="hidden",Q.order=1);const te=W({[`${I}-rtl`]:v,[`${R}`]:!0}),oe=E?null:s(Qt,{prefixCls:I,trigger:["hover"],visible:o.value,transitionName:M,onVisibleChange:l,overlayClassName:te,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>s(Ut,{onClick:P=>{let{key:G,domEvent:w}=P;_(G,w),l(!1)},id:g.value,tabindex:-1,role:"listbox","aria-activedescendant":x.value,selectedKeys:[i.value],"aria-label":N!==void 0?N:"expanded dropdown"},{default:()=>[C.map(P=>{var G,w;const Y=p&&P.closable!==!1&&!P.disabled;return s(Zt,{key:P.key,id:`${g.value}-${P.key}`,role:"option","aria-controls":$&&`${$}-panel-${P.key}`,disabled:P.disabled},{default:()=>[s("span",null,[typeof P.tab=="function"?P.tab():P.tab]),Y&&s("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${I}-menu-item-remove`,onClick:U=>{U.stopPropagation(),b(U,P.key)}},[((G=P.closeIcon)===null||G===void 0?void 0:G.call(P))||((w=p.removeIcon)===null||w===void 0?void 0:w.call(p))||"\xD7"])]})})]}),default:()=>s("button",{type:"button",class:`${u}-nav-more`,style:Q,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":g.value,id:`${$}-more`,"aria-expanded":o.value,onKeydown:f},[L])});return s("div",{class:W(`${u}-nav-operations`,a.class),style:a.style},[oe,s(It,{prefixCls:u,locale:S,editable:p},null)])}}}),Rt=Symbol("tabsContextKey"),Et=e=>{Jt(Rt,e)},At=()=>ea(Rt,{tabs:ne([]),prefixCls:ne()});k({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:a}=t;return Et(ta(e)),()=>{var n;return(n=a.default)===null||n===void 0?void 0:n.call(a)}}});const _a=.1,ht=.01,Oe=20,$t=Math.pow(.995,Oe);function Pa(e,t){const[a,n]=O(),[o,l]=O(0),[i,c]=O(0),[h,f]=O(),g=ne();function x(p){const{screenX:y,screenY:v}=p.touches[0];n({x:y,y:v}),clearInterval(g.value)}function b(p){if(!a.value)return;p.preventDefault();const{screenX:y,screenY:v}=p.touches[0],_=y-a.value.x,R=v-a.value.y;t(_,R),n({x:y,y:v});const I=Date.now();c(I-o.value),l(I),f({x:_,y:R})}function d(){if(!a.value)return;const p=h.value;if(n(null),f(null),p){const y=p.x/i.value,v=p.y/i.value,_=Math.abs(y),R=Math.abs(v);if(Math.max(_,R)<_a)return;let I=y,N=v;g.value=setInterval(()=>{if(Math.abs(I)<ht&&Math.abs(N)<ht){clearInterval(g.value);return}I*=$t,N*=$t,t(I*Oe,N*Oe)},Oe)}}const u=ne();function $(p){const{deltaX:y,deltaY:v}=p;let _=0;const R=Math.abs(y),I=Math.abs(v);R===I?_=u.value==="x"?y:v:R>I?(_=y,u.value="x"):(_=v,u.value="y"),t(-_,-_)&&p.preventDefault()}const C=ne({onTouchStart:x,onTouchMove:b,onTouchEnd:d,onWheel:$});function S(p){C.value.onTouchStart(p)}function E(p){C.value.onTouchMove(p)}function L(p){C.value.onTouchEnd(p)}function M(p){C.value.onWheel(p)}Ne(()=>{var p,y;document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",L,{passive:!1}),(p=e.value)===null||p===void 0||p.addEventListener("touchstart",S,{passive:!1}),(y=e.value)===null||y===void 0||y.addEventListener("wheel",M,{passive:!1})}),Je(()=>{document.removeEventListener("touchmove",E),document.removeEventListener("touchend",L)})}function mt(e,t){const a=ne(e);function n(o){const l=typeof o=="function"?o(a.value):o;l!==a.value&&t(l,a.value),a.value=l}return[a,n]}const yt={width:0,height:0,left:0,top:0,right:0},Ba=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Le(),editable:Le(),moreIcon:re.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Le(),popupClassName:String,getPopupContainer:ee(),onTabClick:{type:Function},onTabScroll:{type:Function}}),St=k({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:Ba(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:n}=t;const{tabs:o,prefixCls:l}=At(),i=q(),c=q(),h=q(),f=q(),[g,x]=aa(),b=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[d,u]=mt(0,(T,m)=>{b.value&&e.onTabScroll&&e.onTabScroll({direction:T>m?"left":"right"})}),[$,C]=mt(0,(T,m)=>{!b.value&&e.onTabScroll&&e.onTabScroll({direction:T>m?"top":"bottom"})}),[S,E]=O(0),[L,M]=O(0),[p,y]=O(null),[v,_]=O(null),[R,I]=O(0),[N,Q]=O(0),[te,oe]=Sa(new Map),P=Ca(o,te),G=H(()=>`${l.value}-nav-operations-hidden`),w=q(0),Y=q(0);We(()=>{b.value?e.rtl?(w.value=0,Y.value=Math.max(0,S.value-p.value)):(w.value=Math.min(0,p.value-S.value),Y.value=0):(w.value=Math.min(0,v.value-L.value),Y.value=0)});const U=T=>T<w.value?w.value:T>Y.value?Y.value:T,se=q(),[K,de]=O(),ce=()=>{de(Date.now())},he=()=>{clearTimeout(se.value)},Se=(T,m)=>{T(B=>U(B+m))};Pa(i,(T,m)=>{if(b.value){if(p.value>=S.value)return!1;Se(u,T)}else{if(v.value>=L.value)return!1;Se(C,m)}return he(),ce(),!0}),me(K,()=>{he(),K.value&&(se.value=setTimeout(()=>{de(0)},100))});const ue=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const m=P.value.get(T)||{width:0,height:0,left:0,right:0,top:0};if(b.value){let B=d.value;e.rtl?m.right<d.value?B=m.right:m.right+m.width>d.value+p.value&&(B=m.right+m.width-p.value):m.left<-d.value?B=-m.left:m.left+m.width>-d.value+p.value&&(B=-(m.left+m.width-p.value)),C(0),u(U(B))}else{let B=$.value;m.top<-$.value?B=-m.top:m.top+m.height>-$.value+v.value&&(B=-(m.top+m.height-v.value)),u(0),C(U(B))}},ie=q(0),xe=q(0);We(()=>{let T,m,B,A,j,F;const $e=P.value;["top","bottom"].includes(e.tabPosition)?(T="width",A=p.value,j=S.value,F=R.value,m=e.rtl?"right":"left",B=Math.abs(d.value)):(T="height",A=v.value,j=S.value,F=N.value,m="top",B=-$.value);let Z=A;j+F>A&&j<A&&(Z=A-F);const le=o.value;if(!le.length)return[ie.value,xe.value]=[0,0];const be=le.length;let Ce=be;for(let X=0;X<be;X+=1){const J=$e.get(le[X].key)||yt;if(J[m]+J[T]>B+Z){Ce=X-1;break}}let z=0;for(let X=be-1;X>=0;X-=1)if(($e.get(le[X].key)||yt)[m]<B){z=X+1;break}return[ie.value,xe.value]=[z,Ce]});const ve=()=>{var T,m,B,A,j;const F=((T=i.value)===null||T===void 0?void 0:T.offsetWidth)||0,$e=((m=i.value)===null||m===void 0?void 0:m.offsetHeight)||0,Z=((B=f.value)===null||B===void 0?void 0:B.$el)||{},le=Z.offsetWidth||0,be=Z.offsetHeight||0;y(F),_($e),I(le),Q(be);const Ce=(((A=c.value)===null||A===void 0?void 0:A.offsetWidth)||0)-le,z=(((j=c.value)===null||j===void 0?void 0:j.offsetHeight)||0)-be;E(Ce),M(z),oe(()=>{const X=new Map;return o.value.forEach(J=>{let{key:we}=J;const fe=x.value.get(we),ge=(fe==null?void 0:fe.$el)||fe;ge&&X.set(we,{width:ge.offsetWidth,height:ge.offsetHeight,left:ge.offsetLeft,top:ge.offsetTop})}),X})},Pe=H(()=>[...o.value.slice(0,ie.value),...o.value.slice(xe.value+1)]),[Be,Ot]=O(),pe=H(()=>P.value.get(e.activeKey)),rt=q(),st=()=>{Ae.cancel(rt.value)};me([pe,b,()=>e.rtl],()=>{const T={};pe.value&&(b.value?(e.rtl?T.right=Re(pe.value.right):T.left=Re(pe.value.left),T.width=Re(pe.value.width)):(T.top=Re(pe.value.top),T.height=Re(pe.value.height))),st(),rt.value=Ae(()=>{Ot(T)})}),me([()=>e.activeKey,pe,P,b],()=>{ue()},{flush:"post"}),me([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{ve()},{flush:"post"});const Fe=T=>{let{position:m,prefixCls:B,extra:A}=T;if(!A)return null;const j=A==null?void 0:A({position:m});return j?s("div",{class:`${B}-extra-content`},[j]):null};return Je(()=>{he(),st()}),()=>{const{id:T,animated:m,activeKey:B,rtl:A,editable:j,locale:F,tabPosition:$e,tabBarGutter:Z,onTabClick:le}=e,{class:be,style:Ce}=a,z=l.value,X=!!Pe.value.length,J=`${z}-nav-wrap`;let we,fe,ge,dt;b.value?A?(fe=d.value>0,we=d.value+p.value<S.value):(we=d.value<0,fe=-d.value+p.value<S.value):(ge=$.value<0,dt=-$.value+v.value<L.value);const De={};$e==="top"||$e==="bottom"?De[A?"marginRight":"marginLeft"]=typeof Z=="number"?`${Z}px`:Z:De.marginTop=typeof Z=="number"?`${Z}px`:Z;const ct=o.value.map((qe,Wt)=>{const{key:Ie}=qe;return s(xa,{id:T,prefixCls:z,key:Ie,tab:qe,style:Wt===0?void 0:De,closable:qe.closable,editable:j,active:Ie===B,removeAriaLabel:F==null?void 0:F.removeAriaLabel,ref:g(Ie),onClick:Nt=>{le(Ie,Nt)},onFocus:()=>{ue(Ie),ce(),i.value&&(A||(i.value.scrollLeft=0),i.value.scrollTop=0)}},n)});return s("div",{role:"tablist",class:W(`${z}-nav`,be),style:Ce,onKeydown:()=>{ce()}},[s(Fe,{position:"left",prefixCls:z,extra:n.leftExtra},null),s(vt,{onResize:ve},{default:()=>[s("div",{class:W(J,{[`${J}-ping-left`]:we,[`${J}-ping-right`]:fe,[`${J}-ping-top`]:ge,[`${J}-ping-bottom`]:dt}),ref:i},[s(vt,{onResize:ve},{default:()=>[s("div",{ref:c,class:`${z}-nav-list`,style:{transform:`translate(${d.value}px, ${$.value}px)`,transition:K.value?"none":void 0}},[ct,s(It,{ref:f,prefixCls:z,locale:F,editable:j,style:r(r({},ct.length===0?void 0:De),{visibility:X?"hidden":null})},null),s("div",{class:W(`${z}-ink-bar`,{[`${z}-ink-bar-animated`]:m.inkBar}),style:Be.value},null)])]})])]}),s(Ta,D(D({},e),{},{removeAriaLabel:F==null?void 0:F.removeAriaLabel,ref:h,prefixCls:z,tabs:Pe.value,class:!X&&G.value}),Bt(n,["moreIcon"])),s(Fe,{position:"right",prefixCls:z,extra:n.rightExtra},null),s(Fe,{position:"right",prefixCls:z,extra:n.tabBarExtraContent},null)])}}}),Ia=k({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=At();return()=>{const{id:n,activeKey:o,animated:l,tabPosition:i,rtl:c,destroyInactiveTabPane:h}=e,f=l.tabPane,g=a.value,x=t.value.findIndex(b=>b.key===o);return s("div",{class:`${g}-content-holder`},[s("div",{class:[`${g}-content`,`${g}-content-${i}`,{[`${g}-content-animated`]:f}],style:x&&f?{[c?"marginRight":"marginLeft"]:`-${x}00%`}:null},[t.value.map(b=>na(b.node,{key:b.key,prefixCls:g,tabKey:b.key,id:n,animated:f,active:b.key===o,destroyInactiveTabPane:h}))])])}}});var Ra={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Ea=Ra;function xt(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(a).filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable}))),n.forEach(function(o){Aa(e,o,a[o])})}return e}function Aa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var it=function(t,a){var n=xt({},t,a.attrs);return s(oa,xt({},n,{icon:Ea}),null)};it.displayName="PlusOutlined";it.inheritAttrs=!1;const La=it,Ma=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[pt(e,"slide-up"),pt(e,"slide-down")]]},Ha=Ma,Da=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:n,tabsCardGutter:o,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:n,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ka=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:r(r({},at(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${n}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":r(r({},nt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},za=e=>{const{componentCls:t,margin:a,colorSplit:n}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
1
|
+
import{dL as ut,dM as Tt,dN as Gt,dO as Kt,dP as Xt,dQ as jt,dR as Ft,dS as qt,N as q,aq as Je,a8 as Ae,d as k,r as ne,c as H,f as s,b7 as ae,ah as W,aK as We,X as r,ck as O,k as Ne,w as me,bB as Vt,dT as Yt,bx as Ut,bw as Zt,dU as Qt,av as re,aN as ee,a4 as Jt,am as ea,c1 as ta,bE as aa,ak as vt,aj as D,as as Le,dV as Re,aF as na,aP as oa,dW as pt,ab as et,ac as tt,an as at,ao as nt,dX as _t,ap as Me,aD as Pt,ai as ot,aL as ke,b6 as ia,aM as la,aA as ra,bY as sa,au as da,c8 as ze,ag as ye,b4 as ca,aW as bt,a$ as ua,dY as Ge,aT as va,dZ as Ee,a7 as pa,d_ as ft,dm as ba,d$ as fa}from"./jwt-decode.esm.f18c394f.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]="eb3e7481-fe15-480f-8856-e9594952785d",e._sentryDebugIdIdentifier="sentry-dbid-eb3e7481-fe15-480f-8856-e9594952785d")}catch{}})();function ga(e,t,a,n){if(!ut(e))return e;t=Tt(t,e);for(var o=-1,l=t.length,i=l-1,c=e;c!=null&&++o<l;){var h=Gt(t[o]),f=a;if(h==="__proto__"||h==="constructor"||h==="prototype")return e;if(o!=i){var g=c[h];f=n?n(g,h,c):void 0,f===void 0&&(f=ut(g)?g:Kt(t[o+1])?[]:{})}Xt(c,h,f),c=c[h]}return e}function ha(e,t,a){for(var n=-1,o=t.length,l={};++n<o;){var i=t[n],c=jt(e,i);a(c,i)&&ga(l,Tt(i,e),c)}return l}function $a(e,t){return ha(e,t,function(a,n){return Ft(e,n)})}var ma=qt(function(e,t){return e==null?{}:$a(e,t)});const Bt=ma;function ya(e){const t=q(),a=q(!1);function n(){for(var o=arguments.length,l=new Array(o),i=0;i<o;i++)l[i]=arguments[i];a.value||(Ae.cancel(t.value),t.value=Ae(()=>{e(...l)}))}return Je(()=>{a.value=!0,Ae.cancel(t.value)}),n}function Sa(e){const t=q([]),a=q(typeof e=="function"?e():e),n=ya(()=>{let l=a.value;t.value.forEach(i=>{l=i(l)}),t.value=[],a.value=l});function o(l){t.value.push(l),n()}return[a,o]}const xa=k({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:a,attrs:n}=t;const o=ne();function l(h){var f;!((f=e.tab)===null||f===void 0)&&f.disabled||e.onClick(h)}a({domRef:o});function i(h){var f;h.preventDefault(),h.stopPropagation(),e.editable.onEdit("remove",{key:(f=e.tab)===null||f===void 0?void 0:f.key,event:h})}const c=H(()=>{var h;return e.editable&&e.closable!==!1&&!(!((h=e.tab)===null||h===void 0)&&h.disabled)});return()=>{var h;const{prefixCls:f,id:g,active:x,tab:{key:b,tab:d,disabled:u,closeIcon:$},renderWrapper:C,removeAriaLabel:S,editable:E,onFocus:L}=e,M=`${f}-tab`,p=s("div",{key:b,ref:o,class:W(M,{[`${M}-with-remove`]:c.value,[`${M}-active`]:x,[`${M}-disabled`]:u}),style:n.style,onClick:l},[s("div",{role:"tab","aria-selected":x,id:g&&`${g}-tab-${b}`,class:`${M}-btn`,"aria-controls":g&&`${g}-panel-${b}`,"aria-disabled":u,tabindex:u?null:0,onClick:y=>{y.stopPropagation(),l(y)},onKeydown:y=>{[ae.SPACE,ae.ENTER].includes(y.which)&&(y.preventDefault(),l(y))},onFocus:L},[typeof d=="function"?d():d]),c.value&&s("button",{type:"button","aria-label":S||"remove",tabindex:0,class:`${M}-remove`,onClick:y=>{y.stopPropagation(),i(y)}},[($==null?void 0:$())||((h=E.removeIcon)===null||h===void 0?void 0:h.call(E))||"\xD7"])]);return C?C(p):p}}}),gt={width:0,height:0,left:0,top:0};function Ca(e,t){const a=ne(new Map);return We(()=>{var n,o;const l=new Map,i=e.value,c=t.value.get((n=i[0])===null||n===void 0?void 0:n.key)||gt,h=c.left+c.width;for(let f=0;f<i.length;f+=1){const{key:g}=i[f];let x=t.value.get(g);x||(x=t.value.get((o=i[f-1])===null||o===void 0?void 0:o.key)||gt);const b=l.get(g)||r({},x);b.right=h-b.left-b.width,l.set(g,b)}a.value=new Map(l)}),a}const It=k({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:a,attrs:n}=t;const o=ne();return a({domRef:o}),()=>{const{prefixCls:l,editable:i,locale:c}=e;return!i||i.showAdd===!1?null:s("button",{ref:o,type:"button",class:`${l}-nav-add`,style:n.style,"aria-label":(c==null?void 0:c.addAriaLabel)||"Add tab",onClick:h=>{i.onEdit("add",{event:h})}},[i.addIcon?i.addIcon():"+"])}}}),wa={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:re.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ee()},Ta=k({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:wa,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:a,slots:n}=t;const[o,l]=O(!1),[i,c]=O(null),h=d=>{const u=e.tabs.filter(S=>!S.disabled);let $=u.findIndex(S=>S.key===i.value)||0;const C=u.length;for(let S=0;S<C;S+=1){$=($+d+C)%C;const E=u[$];if(!E.disabled){c(E.key);return}}},f=d=>{const{which:u}=d;if(!o.value){[ae.DOWN,ae.SPACE,ae.ENTER].includes(u)&&(l(!0),d.preventDefault());return}switch(u){case ae.UP:h(-1),d.preventDefault();break;case ae.DOWN:h(1),d.preventDefault();break;case ae.ESC:l(!1);break;case ae.SPACE:case ae.ENTER:i.value!==null&&e.onTabClick(i.value,d);break}},g=H(()=>`${e.id}-more-popup`),x=H(()=>i.value!==null?`${g.value}-${i.value}`:null),b=(d,u)=>{d.preventDefault(),d.stopPropagation(),e.editable.onEdit("remove",{key:u,event:d})};return Ne(()=>{me(i,()=>{const d=document.getElementById(x.value);d&&d.scrollIntoView&&d.scrollIntoView(!1)},{flush:"post",immediate:!0})}),me(o,()=>{o.value||c(null)}),Vt({}),()=>{var d;const{prefixCls:u,id:$,tabs:C,locale:S,mobile:E,moreIcon:L=((d=n.moreIcon)===null||d===void 0?void 0:d.call(n))||s(Yt,null,null),moreTransitionName:M,editable:p,tabBarGutter:y,rtl:v,onTabClick:_,popupClassName:R}=e;if(!C.length)return null;const I=`${u}-dropdown`,N=S==null?void 0:S.dropdownAriaLabel,Q={[v?"marginRight":"marginLeft"]:y};C.length||(Q.visibility="hidden",Q.order=1);const te=W({[`${I}-rtl`]:v,[`${R}`]:!0}),oe=E?null:s(Qt,{prefixCls:I,trigger:["hover"],visible:o.value,transitionName:M,onVisibleChange:l,overlayClassName:te,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>s(Ut,{onClick:P=>{let{key:G,domEvent:w}=P;_(G,w),l(!1)},id:g.value,tabindex:-1,role:"listbox","aria-activedescendant":x.value,selectedKeys:[i.value],"aria-label":N!==void 0?N:"expanded dropdown"},{default:()=>[C.map(P=>{var G,w;const Y=p&&P.closable!==!1&&!P.disabled;return s(Zt,{key:P.key,id:`${g.value}-${P.key}`,role:"option","aria-controls":$&&`${$}-panel-${P.key}`,disabled:P.disabled},{default:()=>[s("span",null,[typeof P.tab=="function"?P.tab():P.tab]),Y&&s("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${I}-menu-item-remove`,onClick:U=>{U.stopPropagation(),b(U,P.key)}},[((G=P.closeIcon)===null||G===void 0?void 0:G.call(P))||((w=p.removeIcon)===null||w===void 0?void 0:w.call(p))||"\xD7"])]})})]}),default:()=>s("button",{type:"button",class:`${u}-nav-more`,style:Q,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":g.value,id:`${$}-more`,"aria-expanded":o.value,onKeydown:f},[L])});return s("div",{class:W(`${u}-nav-operations`,a.class),style:a.style},[oe,s(It,{prefixCls:u,locale:S,editable:p},null)])}}}),Rt=Symbol("tabsContextKey"),Et=e=>{Jt(Rt,e)},At=()=>ea(Rt,{tabs:ne([]),prefixCls:ne()});k({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:a}=t;return Et(ta(e)),()=>{var n;return(n=a.default)===null||n===void 0?void 0:n.call(a)}}});const _a=.1,ht=.01,Oe=20,$t=Math.pow(.995,Oe);function Pa(e,t){const[a,n]=O(),[o,l]=O(0),[i,c]=O(0),[h,f]=O(),g=ne();function x(p){const{screenX:y,screenY:v}=p.touches[0];n({x:y,y:v}),clearInterval(g.value)}function b(p){if(!a.value)return;p.preventDefault();const{screenX:y,screenY:v}=p.touches[0],_=y-a.value.x,R=v-a.value.y;t(_,R),n({x:y,y:v});const I=Date.now();c(I-o.value),l(I),f({x:_,y:R})}function d(){if(!a.value)return;const p=h.value;if(n(null),f(null),p){const y=p.x/i.value,v=p.y/i.value,_=Math.abs(y),R=Math.abs(v);if(Math.max(_,R)<_a)return;let I=y,N=v;g.value=setInterval(()=>{if(Math.abs(I)<ht&&Math.abs(N)<ht){clearInterval(g.value);return}I*=$t,N*=$t,t(I*Oe,N*Oe)},Oe)}}const u=ne();function $(p){const{deltaX:y,deltaY:v}=p;let _=0;const R=Math.abs(y),I=Math.abs(v);R===I?_=u.value==="x"?y:v:R>I?(_=y,u.value="x"):(_=v,u.value="y"),t(-_,-_)&&p.preventDefault()}const C=ne({onTouchStart:x,onTouchMove:b,onTouchEnd:d,onWheel:$});function S(p){C.value.onTouchStart(p)}function E(p){C.value.onTouchMove(p)}function L(p){C.value.onTouchEnd(p)}function M(p){C.value.onWheel(p)}Ne(()=>{var p,y;document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",L,{passive:!1}),(p=e.value)===null||p===void 0||p.addEventListener("touchstart",S,{passive:!1}),(y=e.value)===null||y===void 0||y.addEventListener("wheel",M,{passive:!1})}),Je(()=>{document.removeEventListener("touchmove",E),document.removeEventListener("touchend",L)})}function mt(e,t){const a=ne(e);function n(o){const l=typeof o=="function"?o(a.value):o;l!==a.value&&t(l,a.value),a.value=l}return[a,n]}const yt={width:0,height:0,left:0,top:0,right:0},Ba=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Le(),editable:Le(),moreIcon:re.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Le(),popupClassName:String,getPopupContainer:ee(),onTabClick:{type:Function},onTabScroll:{type:Function}}),St=k({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:Ba(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:a,slots:n}=t;const{tabs:o,prefixCls:l}=At(),i=q(),c=q(),h=q(),f=q(),[g,x]=aa(),b=H(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[d,u]=mt(0,(T,m)=>{b.value&&e.onTabScroll&&e.onTabScroll({direction:T>m?"left":"right"})}),[$,C]=mt(0,(T,m)=>{!b.value&&e.onTabScroll&&e.onTabScroll({direction:T>m?"top":"bottom"})}),[S,E]=O(0),[L,M]=O(0),[p,y]=O(null),[v,_]=O(null),[R,I]=O(0),[N,Q]=O(0),[te,oe]=Sa(new Map),P=Ca(o,te),G=H(()=>`${l.value}-nav-operations-hidden`),w=q(0),Y=q(0);We(()=>{b.value?e.rtl?(w.value=0,Y.value=Math.max(0,S.value-p.value)):(w.value=Math.min(0,p.value-S.value),Y.value=0):(w.value=Math.min(0,v.value-L.value),Y.value=0)});const U=T=>T<w.value?w.value:T>Y.value?Y.value:T,se=q(),[K,de]=O(),ce=()=>{de(Date.now())},he=()=>{clearTimeout(se.value)},Se=(T,m)=>{T(B=>U(B+m))};Pa(i,(T,m)=>{if(b.value){if(p.value>=S.value)return!1;Se(u,T)}else{if(v.value>=L.value)return!1;Se(C,m)}return he(),ce(),!0}),me(K,()=>{he(),K.value&&(se.value=setTimeout(()=>{de(0)},100))});const ue=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const m=P.value.get(T)||{width:0,height:0,left:0,right:0,top:0};if(b.value){let B=d.value;e.rtl?m.right<d.value?B=m.right:m.right+m.width>d.value+p.value&&(B=m.right+m.width-p.value):m.left<-d.value?B=-m.left:m.left+m.width>-d.value+p.value&&(B=-(m.left+m.width-p.value)),C(0),u(U(B))}else{let B=$.value;m.top<-$.value?B=-m.top:m.top+m.height>-$.value+v.value&&(B=-(m.top+m.height-v.value)),u(0),C(U(B))}},ie=q(0),xe=q(0);We(()=>{let T,m,B,A,j,F;const $e=P.value;["top","bottom"].includes(e.tabPosition)?(T="width",A=p.value,j=S.value,F=R.value,m=e.rtl?"right":"left",B=Math.abs(d.value)):(T="height",A=v.value,j=S.value,F=N.value,m="top",B=-$.value);let Z=A;j+F>A&&j<A&&(Z=A-F);const le=o.value;if(!le.length)return[ie.value,xe.value]=[0,0];const be=le.length;let Ce=be;for(let X=0;X<be;X+=1){const J=$e.get(le[X].key)||yt;if(J[m]+J[T]>B+Z){Ce=X-1;break}}let z=0;for(let X=be-1;X>=0;X-=1)if(($e.get(le[X].key)||yt)[m]<B){z=X+1;break}return[ie.value,xe.value]=[z,Ce]});const ve=()=>{var T,m,B,A,j;const F=((T=i.value)===null||T===void 0?void 0:T.offsetWidth)||0,$e=((m=i.value)===null||m===void 0?void 0:m.offsetHeight)||0,Z=((B=f.value)===null||B===void 0?void 0:B.$el)||{},le=Z.offsetWidth||0,be=Z.offsetHeight||0;y(F),_($e),I(le),Q(be);const Ce=(((A=c.value)===null||A===void 0?void 0:A.offsetWidth)||0)-le,z=(((j=c.value)===null||j===void 0?void 0:j.offsetHeight)||0)-be;E(Ce),M(z),oe(()=>{const X=new Map;return o.value.forEach(J=>{let{key:we}=J;const fe=x.value.get(we),ge=(fe==null?void 0:fe.$el)||fe;ge&&X.set(we,{width:ge.offsetWidth,height:ge.offsetHeight,left:ge.offsetLeft,top:ge.offsetTop})}),X})},Pe=H(()=>[...o.value.slice(0,ie.value),...o.value.slice(xe.value+1)]),[Be,Ot]=O(),pe=H(()=>P.value.get(e.activeKey)),rt=q(),st=()=>{Ae.cancel(rt.value)};me([pe,b,()=>e.rtl],()=>{const T={};pe.value&&(b.value?(e.rtl?T.right=Re(pe.value.right):T.left=Re(pe.value.left),T.width=Re(pe.value.width)):(T.top=Re(pe.value.top),T.height=Re(pe.value.height))),st(),rt.value=Ae(()=>{Ot(T)})}),me([()=>e.activeKey,pe,P,b],()=>{ue()},{flush:"post"}),me([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{ve()},{flush:"post"});const Fe=T=>{let{position:m,prefixCls:B,extra:A}=T;if(!A)return null;const j=A==null?void 0:A({position:m});return j?s("div",{class:`${B}-extra-content`},[j]):null};return Je(()=>{he(),st()}),()=>{const{id:T,animated:m,activeKey:B,rtl:A,editable:j,locale:F,tabPosition:$e,tabBarGutter:Z,onTabClick:le}=e,{class:be,style:Ce}=a,z=l.value,X=!!Pe.value.length,J=`${z}-nav-wrap`;let we,fe,ge,dt;b.value?A?(fe=d.value>0,we=d.value+p.value<S.value):(we=d.value<0,fe=-d.value+p.value<S.value):(ge=$.value<0,dt=-$.value+v.value<L.value);const De={};$e==="top"||$e==="bottom"?De[A?"marginRight":"marginLeft"]=typeof Z=="number"?`${Z}px`:Z:De.marginTop=typeof Z=="number"?`${Z}px`:Z;const ct=o.value.map((qe,Wt)=>{const{key:Ie}=qe;return s(xa,{id:T,prefixCls:z,key:Ie,tab:qe,style:Wt===0?void 0:De,closable:qe.closable,editable:j,active:Ie===B,removeAriaLabel:F==null?void 0:F.removeAriaLabel,ref:g(Ie),onClick:Nt=>{le(Ie,Nt)},onFocus:()=>{ue(Ie),ce(),i.value&&(A||(i.value.scrollLeft=0),i.value.scrollTop=0)}},n)});return s("div",{role:"tablist",class:W(`${z}-nav`,be),style:Ce,onKeydown:()=>{ce()}},[s(Fe,{position:"left",prefixCls:z,extra:n.leftExtra},null),s(vt,{onResize:ve},{default:()=>[s("div",{class:W(J,{[`${J}-ping-left`]:we,[`${J}-ping-right`]:fe,[`${J}-ping-top`]:ge,[`${J}-ping-bottom`]:dt}),ref:i},[s(vt,{onResize:ve},{default:()=>[s("div",{ref:c,class:`${z}-nav-list`,style:{transform:`translate(${d.value}px, ${$.value}px)`,transition:K.value?"none":void 0}},[ct,s(It,{ref:f,prefixCls:z,locale:F,editable:j,style:r(r({},ct.length===0?void 0:De),{visibility:X?"hidden":null})},null),s("div",{class:W(`${z}-ink-bar`,{[`${z}-ink-bar-animated`]:m.inkBar}),style:Be.value},null)])]})])]}),s(Ta,D(D({},e),{},{removeAriaLabel:F==null?void 0:F.removeAriaLabel,ref:h,prefixCls:z,tabs:Pe.value,class:!X&&G.value}),Bt(n,["moreIcon"])),s(Fe,{position:"right",prefixCls:z,extra:n.rightExtra},null),s(Fe,{position:"right",prefixCls:z,extra:n.tabBarExtraContent},null)])}}}),Ia=k({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:a}=At();return()=>{const{id:n,activeKey:o,animated:l,tabPosition:i,rtl:c,destroyInactiveTabPane:h}=e,f=l.tabPane,g=a.value,x=t.value.findIndex(b=>b.key===o);return s("div",{class:`${g}-content-holder`},[s("div",{class:[`${g}-content`,`${g}-content-${i}`,{[`${g}-content-animated`]:f}],style:x&&f?{[c?"marginRight":"marginLeft"]:`-${x}00%`}:null},[t.value.map(b=>na(b.node,{key:b.key,prefixCls:g,tabKey:b.key,id:n,animated:f,active:b.key===o,destroyInactiveTabPane:h}))])])}}});var Ra={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Ea=Ra;function xt(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(a).filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable}))),n.forEach(function(o){Aa(e,o,a[o])})}return e}function Aa(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var it=function(t,a){var n=xt({},t,a.attrs);return s(oa,xt({},n,{icon:Ea}),null)};it.displayName="PlusOutlined";it.inheritAttrs=!1;const La=it,Ma=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[pt(e,"slide-up"),pt(e,"slide-down")]]},Ha=Ma,Da=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeadBackground:n,tabsCardGutter:o,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:n,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ka=e=>{const{componentCls:t,tabsHoverColor:a,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:r(r({},at(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${n}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":r(r({},nt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},za=e=>{const{componentCls:t,margin:a,colorSplit:n}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${a}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
2
2
|
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
3
3
|
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${a}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Oa=e=>{const{componentCls:t,padding:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${a}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${a}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${a}px ${e.paddingXXS*1.5}px`}}}}}},Wa=e=>{const{componentCls:t,tabsActiveColor:a,tabsHoverColor:n,iconCls:o,tabsHorizontalGutter:l}=e,i=`${t}-tab`;return{[i]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":r({"&:focus:not(:focus-visible), &:active":{color:a}},_t(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${i}-active ${i}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${i}-disabled ${i}-btn, &${i}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${i}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${i} + ${i}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${l}px`}}}},Na=e=>{const{componentCls:t,tabsHorizontalGutter:a,iconCls:n,tabsCardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ga=e=>{const{componentCls:t,tabsCardHorizontalPadding:a,tabsCardHeight:n,tabsCardGutter:o,tabsHoverColor:l,tabsActiveColor:i,colorSplit:c}=e;return{[t]:r(r(r(r({},at(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:r({minWidth:`${n}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${c}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:i}},_t(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),Wa(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%",["&-animated"]:{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Ka=et("Tabs",e=>{const t=e.controlHeightLG,a=tt(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[Oa(a),Na(a),za(a),ka(a),Da(a),Ga(a),Ha(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let Ct=0;const Lt=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ee(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:ke(),animated:ia([Boolean,Object]),renderTabBar:ee(),tabBarGutter:{type:Number},tabBarStyle:Le(),tabPosition:ke(),destroyInactiveTabPane:la(),hideAdd:Boolean,type:ke(),size:ke(),centered:Boolean,onEdit:ee(),onChange:ee(),onTabClick:ee(),onTabScroll:ee(),"onUpdate:activeKey":ee(),locale:Le(),onPrevClick:ee(),onNextClick:ee(),tabBarExtraContent:re.any});function Xa(e){return e.map(t=>{if(ra(t)){const a=r({},t.props||{});for(const[b,d]of Object.entries(a))delete a[b],a[sa(b)]=d;const n=t.children||{},o=t.key!==void 0?t.key:void 0,{tab:l=n.tab,disabled:i,forceRender:c,closable:h,animated:f,active:g,destroyInactiveTabPane:x}=a;return r(r({key:o},a),{node:t,closeIcon:n.closeIcon,tab:l,disabled:i===""||i,forceRender:c===""||c,closable:h===""||h,animated:f===""||f,active:g===""||g,destroyInactiveTabPane:x===""||x})}return null}).filter(t=>t)}const ja=k({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:r(r({},Me(Lt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:da()}),slots:Object,setup(e,t){let{attrs:a,slots:n}=t;ze(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),ze(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),ze(n.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:o,direction:l,size:i,rootPrefixCls:c,getPopupContainer:h}=ye("tabs",e),[f,g]=Ka(o),x=H(()=>l.value==="rtl"),b=H(()=>{const{animated:v,tabPosition:_}=e;return v===!1||["left","right"].includes(_)?{inkBar:!1,tabPane:!1}:v===!0?{inkBar:!0,tabPane:!0}:r({inkBar:!0,tabPane:!1},typeof v=="object"?v:{})}),[d,u]=O(!1);Ne(()=>{u(ca())});const[$,C]=bt(()=>{var v;return(v=e.tabs[0])===null||v===void 0?void 0:v.key},{value:H(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[S,E]=O(()=>e.tabs.findIndex(v=>v.key===$.value));We(()=>{var v;let _=e.tabs.findIndex(R=>R.key===$.value);_===-1&&(_=Math.max(0,Math.min(S.value,e.tabs.length-1)),C((v=e.tabs[_])===null||v===void 0?void 0:v.key)),E(_)});const[L,M]=bt(null,{value:H(()=>e.id)}),p=H(()=>d.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Ne(()=>{e.id||(M(`rc-tabs-${Ct}`),Ct+=1)});const y=(v,_)=>{var R,I;(R=e.onTabClick)===null||R===void 0||R.call(e,v,_);const N=v!==$.value;C(v),N&&((I=e.onChange)===null||I===void 0||I.call(e,v))};return Et({tabs:H(()=>e.tabs),prefixCls:o}),()=>{const{id:v,type:_,tabBarGutter:R,tabBarStyle:I,locale:N,destroyInactiveTabPane:Q,renderTabBar:te=n.renderTabBar,onTabScroll:oe,hideAdd:P,centered:G}=e,w={id:L.value,activeKey:$.value,animated:b.value,tabPosition:p.value,rtl:x.value,mobile:d.value};let Y;_==="editable-card"&&(Y={onEdit:(de,ce)=>{let{key:he,event:Se}=ce;var ue;(ue=e.onEdit)===null||ue===void 0||ue.call(e,de==="add"?Se:he,de)},removeIcon:()=>s(ua,null,null),addIcon:n.addIcon?n.addIcon:()=>s(La,null,null),showAdd:P!==!0});let U;const se=r(r({},w),{moreTransitionName:`${c.value}-slide-up`,editable:Y,locale:N,tabBarGutter:R,onTabClick:y,onTabScroll:oe,style:I,getPopupContainer:h.value,popupClassName:W(e.popupClassName,g.value)});te?U=te(r(r({},se),{DefaultTabBar:St})):U=s(St,se,Bt(n,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const K=o.value;return f(s("div",D(D({},a),{},{id:v,class:W(K,`${K}-${p.value}`,{[g.value]:!0,[`${K}-${i.value}`]:i.value,[`${K}-card`]:["card","editable-card"].includes(_),[`${K}-editable-card`]:_==="editable-card",[`${K}-centered`]:G,[`${K}-mobile`]:d.value,[`${K}-editable`]:_==="editable-card",[`${K}-rtl`]:x.value},a.class)}),[U,s(Ia,D(D({destroyInactiveTabPane:Q},w),{},{animated:b.value}),null)]))}}}),Te=k({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Me(Lt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:a,slots:n,emit:o}=t;const l=i=>{o("update:activeKey",i),o("change",i)};return()=>{var i;const c=Xa(Pt((i=n.default)===null||i===void 0?void 0:i.call(n)));return s(ja,D(D(D({},ot(e,["onUpdate:activeKey"])),a),{},{onChange:l,tabs:c}),n)}}}),Fa=()=>({tab:re.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),Qe=k({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:Fa(),slots:Object,setup(e,t){let{attrs:a,slots:n}=t;const o=ne(e.forceRender);me([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?o.value=!0:e.destroyInactiveTabPane&&(o.value=!1)},{immediate:!0});const l=H(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var i;const{prefixCls:c,forceRender:h,id:f,active:g,tabKey:x}=e;return s("div",{id:f&&`${f}-panel-${x}`,role:"tabpanel",tabindex:g?0:-1,"aria-labelledby":f&&`${f}-tab-${x}`,"aria-hidden":!g,style:[l.value,a.style],class:[`${c}-tabpane`,g&&`${c}-tabpane-active`,a.class]},[(g||o.value||h)&&((i=n.default)===null||i===void 0?void 0:i.call(n))])}}});Te.TabPane=Qe;Te.install=function(e){return e.component(Te.name,Te),e.component(Qe.name,Qe),e};const qa=e=>{const{antCls:t,componentCls:a,cardHeadHeight:n,cardPaddingBase:o,cardHeadTabsMarginBottom:l}=e;return r(r({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${o}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},Ge()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":r(r({display:"inline-block",flex:1},nt),{[`
|
|
4
4
|
> ${a}-typography,
|
|
@@ -17,4 +17,4 @@ import{dL as ut,dM as Tt,dN as Gt,dO as Kt,dP as Xt,dQ as jt,dR as Ft,dS as qt,N
|
|
|
17
17
|
${i},
|
|
18
18
|
${c}
|
|
19
19
|
`]:r({},dn(e))}}},He=et("Skeleton",e=>{const{componentCls:t}=e,a=tt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[bn(a)]},e=>{const{colorFillContent:t,colorFill:a}=e;return{color:t,colorGradientEnd:a}}),fn=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function Ze(e){return e&&typeof e=="object"?e:{}}function gn(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function hn(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function $n(e,t){const a={};return(!e||!t)&&(a.width="61%"),!e&&t?a.rows=3:a.rows=2,a}const mn=k({compatConfig:{MODE:3},name:"ASkeleton",props:Me(fn(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:a}=t;const{prefixCls:n,direction:o}=ye("skeleton",e),[l,i]=He(n);return()=>{var c;const{loading:h,avatar:f,title:g,paragraph:x,active:b,round:d}=e,u=n.value;if(h||e.loading===void 0){const $=!!f||f==="",C=!!g||g==="",S=!!x||x==="";let E;if($){const p=r(r({prefixCls:`${u}-avatar`},gn(C,S)),Ze(f));E=s("div",{class:`${u}-header`},[s(Xe,p,null)])}let L;if(C||S){let p;if(C){const v=r(r({prefixCls:`${u}-title`},hn($,S)),Ze(g));p=s(lt,v,null)}let y;if(S){const v=r(r({prefixCls:`${u}-paragraph`},$n($,C)),Ze(x));y=s(rn,v,null)}L=s("div",{class:`${u}-content`},[p,y])}const M=W(u,{[`${u}-with-avatar`]:$,[`${u}-active`]:b,[`${u}-rtl`]:o.value==="rtl",[`${u}-round`]:d,[i.value]:!0});return l(s("div",{class:M},[E,L]))}return(c=a.default)===null||c===void 0?void 0:c.call(a)}}}),V=mn,yn=()=>r(r({},Ke()),{size:String,block:Boolean}),Sn=k({compatConfig:{MODE:3},name:"ASkeletonButton",props:Me(yn(),{size:"default"}),setup(e){const{prefixCls:t}=ye("skeleton",e),[a,n]=He(t),o=H(()=>W(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},n.value));return()=>a(s("div",{class:o.value},[s(Xe,D(D({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),Ht=Sn,xn=k({compatConfig:{MODE:3},name:"ASkeletonInput",props:r(r({},ot(Ke(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=ye("skeleton",e),[a,n]=He(t),o=H(()=>W(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},n.value));return()=>a(s("div",{class:o.value},[s(Xe,D(D({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),Dt=xn,Cn="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",wn=k({compatConfig:{MODE:3},name:"ASkeletonImage",props:ot(Ke(),["size","shape","active"]),setup(e){const{prefixCls:t}=ye("skeleton",e),[a,n]=He(t),o=H(()=>W(t.value,`${t.value}-element`,n.value));return()=>a(s("div",{class:o.value},[s("div",{class:`${t.value}-image`},[s("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[s("path",{d:Cn,class:`${t.value}-image-path`},null)])])]))}}),kt=wn,Tn=()=>r(r({},Ke()),{shape:String}),_n=k({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:Me(Tn(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=ye("skeleton",e),[a,n]=He(t),o=H(()=>W(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},n.value));return()=>a(s("div",{class:o.value},[s(Xe,D(D({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),zt=_n;V.Button=Ht;V.Avatar=zt;V.Input=Dt;V.Image=kt;V.Title=lt;V.install=function(e){return e.component(V.name,V),e.component(V.Button.name,Ht),e.component(V.Avatar.name,zt),e.component(V.Input.name,Dt),e.component(V.Image.name,kt),e.component(V.Title.name,lt),e};const{TabPane:Pn}=Te,Bn=()=>({prefixCls:String,title:re.any,extra:re.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:re.any,tabList:{type:Array},tabBarExtraContent:re.any,activeTabKey:String,defaultActiveTabKey:String,cover:re.any,onTabChange:{type:Function}}),In=k({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:Bn(),slots:Object,setup(e,t){let{slots:a,attrs:n}=t;const{prefixCls:o,direction:l,size:i}=ye("card",e),[c,h]=tn(o),f=b=>b.map((u,$)=>ft(u)&&!ba(u)||!ft(u)?s("li",{style:{width:`${100/b.length}%`},key:`action-${$}`},[s("span",null,[u])]):null),g=b=>{var d;(d=e.onTabChange)===null||d===void 0||d.call(e,b)},x=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d;return b.forEach(u=>{u&&fa(u.type)&&u.type.__ANT_CARD_GRID&&(d=!0)}),d};return()=>{var b,d,u,$,C,S;const{headStyle:E={},bodyStyle:L={},loading:M,bordered:p=!0,type:y,tabList:v,hoverable:_,activeTabKey:R,defaultActiveTabKey:I,tabBarExtraContent:N=Ee((b=a.tabBarExtraContent)===null||b===void 0?void 0:b.call(a)),title:Q=Ee((d=a.title)===null||d===void 0?void 0:d.call(a)),extra:te=Ee((u=a.extra)===null||u===void 0?void 0:u.call(a)),actions:oe=Ee(($=a.actions)===null||$===void 0?void 0:$.call(a)),cover:P=Ee((C=a.cover)===null||C===void 0?void 0:C.call(a))}=e,G=Pt((S=a.default)===null||S===void 0?void 0:S.call(a)),w=o.value,Y={[`${w}`]:!0,[h.value]:!0,[`${w}-loading`]:M,[`${w}-bordered`]:p,[`${w}-hoverable`]:!!_,[`${w}-contain-grid`]:x(G),[`${w}-contain-tabs`]:v&&v.length,[`${w}-${i.value}`]:i.value,[`${w}-type-${y}`]:!!y,[`${w}-rtl`]:l.value==="rtl"},U=s(V,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[G]}),se=R!==void 0,K={size:"large",[se?"activeKey":"defaultActiveKey"]:se?R:I,onChange:g,class:`${w}-head-tabs`};let de;const ce=v&&v.length?s(Te,K,{default:()=>[v.map(ie=>{const{tab:xe,slots:ve}=ie,Pe=ve==null?void 0:ve.tab;ze(!ve,"Card","tabList slots is deprecated, Please use `customTab` instead.");let Be=xe!==void 0?xe:a[Pe]?a[Pe](ie):null;return Be=pa(a,"customTab",ie,()=>[Be]),s(Pn,{tab:Be,key:ie.key,disabled:ie.disabled},null)})],rightExtra:N?()=>N:null}):null;(Q||te||ce)&&(de=s("div",{class:`${w}-head`,style:E},[s("div",{class:`${w}-head-wrapper`},[Q&&s("div",{class:`${w}-head-title`},[Q]),te&&s("div",{class:`${w}-extra`},[te])]),ce]));const he=P?s("div",{class:`${w}-cover`},[P]):null,Se=s("div",{class:`${w}-body`,style:L},[M?U:G]),ue=oe&&oe.length?s("ul",{class:`${w}-actions`},[f(oe)]):null;return c(s("div",D(D({ref:"cardContainerRef"},n),{},{class:[Y,n.class]}),[de,he,G&&G.length?Se:null,ue]))}}}),En=In;export{Qe as A,En as C,V as S,Te as T,Ht as a,zt as b,Dt as c,kt as d,lt as e};
|
|
20
|
-
//# sourceMappingURL=Card.
|
|
20
|
+
//# sourceMappingURL=Card.d8993609.js.map
|