abstra 3.24.3__py3-none-any.whl → 3.24.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/ai.py +2 -0
- {abstra-3.24.3.dist-info → abstra-3.24.4.dist-info}/METADATA +1 -1
- {abstra-3.24.3.dist-info → abstra-3.24.4.dist-info}/RECORD +190 -187
- abstra_internals/contracts_generated.py +3737 -2560
- abstra_internals/controllers/workflows.py +42 -0
- abstra_internals/interface/sdk/ai.py +69 -0
- abstra_internals/repositories/git/native.py +90 -3
- abstra_internals/repositories/git/types.py +10 -0
- abstra_internals/repositories/linter/rules/env_in_bundle.py +2 -0
- abstra_internals/repositories/project/json_migrations/__init__.py +2 -0
- abstra_internals/repositories/project/json_migrations/migration_016.py +17 -0
- abstra_internals/repositories/project/json_migrations/migration_016_test.py +141 -0
- abstra_internals/repositories/project/project.py +62 -17
- abstra_internals/repositories/project/project_test.py +279 -0
- abstra_internals/services/fs.py +311 -32
- abstra_internals/services/fs_test.py +28 -5
- abstra_internals/utils/file.py +7 -3
- abstra_internals/utils/fs_cache.py +173 -0
- abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.13670ae7.js → AbstraButton.vue_vue_type_script_setup_true_lang.779f608b.js} +2 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.9c4020b5.js +2 -0
- abstra_statics/dist/assets/{ApiKeys.9b0b18b5.js → ApiKeys.fbd3ff63.js} +2 -2
- abstra_statics/dist/assets/App.cdc99dd8.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.c5b57972.js +2 -0
- abstra_statics/dist/assets/BaseLayout.c2cb2f91.js +2 -0
- abstra_statics/dist/assets/Billing.f53186a3.js +2 -0
- abstra_statics/dist/assets/{Breadcrumb.e54636d6.js → Breadcrumb.1a138bb1.js} +2 -2
- abstra_statics/dist/assets/{Builds.c7363e1b.js → Builds.f3c7442c.js} +2 -2
- abstra_statics/dist/assets/{Card.4a8a30bb.js → Card.0899e9af.js} +2 -2
- abstra_statics/dist/assets/{CircularLoading.d81a4cac.js → CircularLoading.9f9e733d.js} +2 -2
- abstra_statics/dist/assets/{CloseCircleOutlined.39b5ab06.js → CloseCircleOutlined.36d9f25b.js} +2 -2
- abstra_statics/dist/assets/{ConnectorsView.d4b67e2e.js → ConnectorsView.9d99a93b.js} +2 -2
- abstra_statics/dist/assets/{ConsoleOmniChat.vue_vue_type_script_setup_true_lang.5360224e.js → ConsoleOmniChat.vue_vue_type_script_setup_true_lang.7061772f.js} +2 -2
- abstra_statics/dist/assets/{ContentLayout.10f24838.js → ContentLayout.da1fff81.js} +2 -2
- abstra_statics/dist/assets/CrudView.5b250a71.js +2 -0
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.108b18e1.js → DocsButton.vue_vue_type_script_setup_true_lang.88300c0e.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.2f00deb7.js → EditorLogin.440d3dc5.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.eb87a2d8.js → EditorsView.c81d5c0a.js} +2 -2
- abstra_statics/dist/assets/EnvVars.688f662d.js +2 -0
- abstra_statics/dist/assets/{Error.98b8036c.js → Error.8fd45945.js} +2 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.ea15dcd1.js +2 -0
- abstra_statics/dist/assets/{Files.9fc8199a.js → Files.2ef1fd75.js} +2 -2
- abstra_statics/dist/assets/Form.4047a0fe.js +2 -0
- abstra_statics/dist/assets/Form.7d1b0423.css +1 -0
- abstra_statics/dist/assets/FormRunner.8d0c448a.js +2 -0
- abstra_statics/dist/assets/Home.586b0b6c.js +2 -0
- abstra_statics/dist/assets/{Home.191a6dce.js → Home.c4610516.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.12120ff7.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.3c83d190.js +2 -0
- abstra_statics/dist/assets/{Login.edfbdaea.js → Login.2d19f80c.js} +2 -2
- abstra_statics/dist/assets/Login.de9c56a5.js +2 -0
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.02acef81.js → Login.vue_vue_type_script_setup_true_lang.8d4054f1.js} +2 -2
- abstra_statics/dist/assets/Logo.3f68eae2.js +2 -0
- abstra_statics/dist/assets/{Logs.4c6c0b3a.js → Logs.1f1770c9.js} +2 -2
- abstra_statics/dist/assets/{LogsController.a58ca42a.js → LogsController.e88bddfb.js} +2 -2
- abstra_statics/dist/assets/Main.a79ded11.js +2 -0
- abstra_statics/dist/assets/MockForm.025d99f9.css +1 -0
- abstra_statics/dist/assets/{MockForm.091aa4ce.js → MockForm.aa5ad3bb.js} +2 -2
- abstra_statics/dist/assets/Navbar.2529c5ae.js +2 -0
- abstra_statics/dist/assets/NewEditor.2603174c.js +8 -0
- abstra_statics/dist/assets/{NewEditor.f2d1c0c3.css → NewEditor.5ebf7c09.css} +1 -1
- abstra_statics/dist/assets/OidcLoginCallback.7ed0c484.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.7303c2ab.js +2 -0
- abstra_statics/dist/assets/{OmniChat.c78c1e51.js → OmniChat.3d03d97a.js} +2 -2
- abstra_statics/dist/assets/{OnboardingView.687780ed.js → OnboardingView.4b747af0.js} +2 -2
- abstra_statics/dist/assets/Organization.aab680aa.js +2 -0
- abstra_statics/dist/assets/{Organizations.fc123489.js → Organizations.2340795a.js} +2 -2
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.6ab1b899.js → PhArrowCounterClockwise.vue.d9dd0137.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.1cebb708.js → PhArrowSquareOut.vue.93df49c1.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.dae2e135.js → PhClockCounterClockwise.vue.f1f419a1.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.71703533.js → PhCopy.vue.e59eaa52.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.369eb629.js → PhCopySimple.vue.11467aaf.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.f8549a9b.js → PhCube.vue.e29a6bae.js} +2 -2
- abstra_statics/dist/assets/PhDatabase.vue.e22926ed.js +2 -0
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.9d76c4de.js → PhDotsThreeVertical.vue.fff5caa8.js} +2 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.e11671c2.js +2 -0
- abstra_statics/dist/assets/{PhFileArrowUp.vue.406b22e3.js → PhFileArrowUp.vue.9f743e50.js} +2 -2
- abstra_statics/dist/assets/{PhFilePlus.vue.b180df90.js → PhFilePlus.vue.b2e51e09.js} +2 -2
- abstra_statics/dist/assets/{PhFolderPlus.vue.b18fd061.js → PhFolderPlus.vue.8742ea4d.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.bed38929.js → PhGear.vue.1c3eb148.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.6ef5fdd3.js → PhKey.vue.8702106e.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.0fc0fcc0.js → PhPencil.vue.74eafe52.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.0707effd.js → PhPencilSimple.vue.87355169.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.761192f5.js → PhRocket.vue.d4a6ad6a.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.8d8dfd96.js → PhSignOut.vue.83e5f761.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.18ed0427.js → PhSparkle.vue.d2009d46.js} +2 -2
- abstra_statics/dist/assets/{PhTranslate.vue.00a17a08.js → PhTranslate.vue.bec980b1.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.d69f0723.js → PhUsersThree.vue.dd23f9fb.js} +2 -2
- abstra_statics/dist/assets/{PhWarningCircle.vue.20bfeba7.js → PhWarningCircle.vue.27414f28.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.58a98824.js → PhWebhooksLogo.vue.ff084558.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.ad360920.js → PlayerConfigProvider.ca40f824.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.97e8dee9.js → PlayerNavbar.393e1a48.js} +2 -2
- abstra_statics/dist/assets/{Project.6c4642b5.js → Project.72b53439.js} +2 -2
- abstra_statics/dist/assets/{ProjectLogin.f92a038d.js → ProjectLogin.26c92806.js} +2 -2
- abstra_statics/dist/assets/{ProjectSettings.582746dc.js → ProjectSettings.70e7668b.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.a6b3674b.js → ProjectsView.83667357.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.c3ad6e9b.js → SaveButton.56d96f71.js} +2 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.a29d9bc5.js +2 -0
- abstra_statics/dist/assets/{Sidebar.69f9369e.js → Sidebar.fd8a9f17.js} +2 -2
- abstra_statics/dist/assets/{Sql.cdefe5b9.js → Sql.92e57cd8.js} +4 -4
- abstra_statics/dist/assets/Steps.8d0493a8.js +2 -0
- abstra_statics/dist/assets/{TableCard.5462c89d.js → TableCard.75d256c8.js} +2 -2
- abstra_statics/dist/assets/{TableEditor.fcfa13de.js → TableEditor.de62b5ae.js} +2 -2
- abstra_statics/dist/assets/{Tables.4ee84a7c.js → Tables.f33c00ab.js} +2 -2
- abstra_statics/dist/assets/{TablesDiagram.b1d1579e.js → TablesDiagram.621aac9c.js} +3 -3
- abstra_statics/dist/assets/{TablesTabs.vue_vue_type_script_setup_true_lang.3e5206e0.js → TablesTabs.vue_vue_type_script_setup_true_lang.db87820d.js} +2 -2
- abstra_statics/dist/assets/{Tasks.fd2605bd.js → Tasks.e7e8affd.js} +2 -2
- abstra_statics/dist/assets/{UploadOutlined.64837788.js → UploadOutlined.76665096.js} +2 -2
- abstra_statics/dist/assets/{View.b144c5e3.js → View.2d181255.js} +2 -2
- abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.c79117ce.js → View.vue_vue_type_script_setup_true_lang.c02bf815.js} +2 -2
- abstra_statics/dist/assets/{Watermark.c0756030.js → Watermark.34db0ee5.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.774989ad.js → WebEditor.615c5ed3.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.d7362a8d.js +2 -0
- abstra_statics/dist/assets/WorkflowViewer.0a209003.css +1 -0
- abstra_statics/dist/assets/WorkflowViewer.e89c0824.js +2 -0
- abstra_statics/dist/assets/ant-design.24becb3a.js +2 -0
- abstra_statics/dist/assets/{apiKey.ee792d72.js → apiKey.846016a7.js} +2 -2
- abstra_statics/dist/assets/asyncComputed.78dd1715.js +2 -0
- abstra_statics/dist/assets/{build.6e7d77b3.js → build.8774fc90.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.d8c19ea3.js +2 -0
- abstra_statics/dist/assets/{console.38bda98e.js → console.984bbe98.js} +2 -2
- abstra_statics/dist/assets/constants.3b7395d7.js +2 -0
- abstra_statics/dist/assets/contracts.generated.31740563.js +2 -0
- abstra_statics/dist/assets/{cssMode.408206bf.js → cssMode.f4a00eca.js} +2 -2
- abstra_statics/dist/assets/datetime.01b86df2.js +2 -0
- abstra_statics/dist/assets/dayjs.26942e0e.js +2 -0
- abstra_statics/dist/assets/editor.a6369f16.js +2 -0
- abstra_statics/dist/assets/editor.main.a0763b31.js +2 -0
- abstra_statics/dist/assets/fetch.33e85d9b.js +2 -0
- abstra_statics/dist/assets/{files.1c1692f5.js → files.c547743b.js} +2 -2
- abstra_statics/dist/assets/{folder.1b74b12c.js → folder.57131245.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.e62e067c.js → freemarker2.7a4cfae0.js} +2 -2
- abstra_statics/dist/assets/{handlebars.604fc901.js → handlebars.db4a27de.js} +2 -2
- abstra_statics/dist/assets/{html.c02f177e.js → html.f4b3970c.js} +2 -2
- abstra_statics/dist/assets/{htmlMode.64078e03.js → htmlMode.631923d5.js} +2 -2
- abstra_statics/dist/assets/index.0a1e5d8b.js +2 -0
- abstra_statics/dist/assets/{index.015caad7.js → index.12c03275.js} +2 -2
- abstra_statics/dist/assets/{index.b91afb03.js → index.2141f0e8.js} +2 -2
- abstra_statics/dist/assets/{index.82590a75.js → index.2f74579e.js} +2 -2
- abstra_statics/dist/assets/{index.bec0ecd0.js → index.30fbc3f5.js} +2 -2
- abstra_statics/dist/assets/{index.a12eba98.js → index.6f45b384.js} +5 -5
- abstra_statics/dist/assets/{index.2ec95eae.js → index.7f04c017.js} +2 -2
- abstra_statics/dist/assets/{index.82842143.js → index.8e10d0e4.js} +2 -2
- abstra_statics/dist/assets/{index.b72cb2b3.js → index.fb17f22c.js} +2 -2
- abstra_statics/dist/assets/{javascript.57026f87.js → javascript.b2197abc.js} +3 -3
- abstra_statics/dist/assets/{jsonMode.9b45b375.js → jsonMode.8f2810a6.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.c5760184.css → jwt-decode.cfe2994b.css} +1 -1
- abstra_statics/dist/assets/{jwt-decode.esm.3348bca5.js → jwt-decode.esm.5ee65524.js} +88 -54
- abstra_statics/dist/assets/{linters.903f3240.js → linters.7d520e27.js} +2 -2
- abstra_statics/dist/assets/{liquid.233d5164.js → liquid.d3e68b2e.js} +3 -3
- abstra_statics/dist/assets/{member.d878cf3f.js → member.0ebe904c.js} +2 -2
- abstra_statics/dist/assets/{metadata.9f7495db.js → metadata.db332d21.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.40ad0b1b.js → omniChatStore.cf2158f0.js} +2 -2
- abstra_statics/dist/assets/{organization.8f08e075.js → organization.23b0aa74.js} +2 -2
- abstra_statics/dist/assets/{os.8ffdbf05.js → os.e0510e90.js} +2 -2
- abstra_statics/dist/assets/player.78bcc85c.js +2 -0
- abstra_statics/dist/assets/{plotly.min.da87d61b.js → plotly.min.f771780a.js} +2 -2
- abstra_statics/dist/assets/polling.5339a00f.js +2 -0
- abstra_statics/dist/assets/{project.2483de10.js → project.afe4bf99.js} +2 -2
- abstra_statics/dist/assets/{python.1bdbd404.js → python.d8c220ed.js} +3 -3
- abstra_statics/dist/assets/{razor.be821b87.js → razor.97fa5198.js} +3 -3
- abstra_statics/dist/assets/{record.a108da5a.js → record.dd367e66.js} +2 -2
- abstra_statics/dist/assets/redirect.970a0b6b.js +2 -0
- abstra_statics/dist/assets/{repository.48119e01.js → repository.214607cb.js} +2 -2
- abstra_statics/dist/assets/{repository.353e892d.js → repository.c874615c.js} +2 -2
- abstra_statics/dist/assets/{repository.677ca13c.js → repository.d889eafa.js} +2 -2
- abstra_statics/dist/assets/{router.c6e27700.js → router.9781de48.js} +5 -5
- abstra_statics/dist/assets/router.e3b4de3c.js +2 -0
- abstra_statics/dist/assets/{string.998fa621.js → string.0d721ad6.js} +2 -2
- abstra_statics/dist/assets/{tables.9701f90c.js → tables.45712b3f.js} +2 -2
- abstra_statics/dist/assets/tasksController.538cacf5.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.23d5a1ab.js → toggleHighContrast.daf44fef.js} +7 -7
- abstra_statics/dist/assets/{tsMode.4558d65a.js → tsMode.b785363f.js} +2 -2
- abstra_statics/dist/assets/{typescript.4445d2fa.js → typescript.8bb42736.js} +3 -3
- abstra_statics/dist/assets/url.804625c6.js +2 -0
- abstra_statics/dist/assets/{useCodebaseEvents.6ebbc5a2.js → useCodebaseEvents.e9e5d343.js} +2 -2
- abstra_statics/dist/assets/useTables.2441f2b4.js +2 -0
- abstra_statics/dist/assets/userStore.9eb65729.js +2 -0
- abstra_statics/dist/assets/uuid.bc394306.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.f1022925.js → vue-flow-background.a4e5e1cd.js} +2 -2
- abstra_statics/dist/assets/{vue-flow-core.0de753a6.js → vue-flow-core.bc9175da.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.8f4ad2b3.js → vue-quill.esm-bundler.12c58800.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.5d3f2aec.js → workspaceStore.18d1ed9a.js} +2 -2
- abstra_statics/dist/assets/{xml.8a25758b.js → xml.1dacd023.js} +3 -3
- abstra_statics/dist/assets/{yaml.e466330b.js → yaml.e841ac1c.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +14 -14
- abstra_statics/dist/player.html +10 -10
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.1035457c.js +0 -2
- abstra_statics/dist/assets/App.9ab9cabb.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.6713c9c9.js +0 -2
- abstra_statics/dist/assets/BaseLayout.28c01b5b.js +0 -2
- abstra_statics/dist/assets/Billing.f9062d88.js +0 -2
- abstra_statics/dist/assets/CrudView.57e8b29a.js +0 -2
- abstra_statics/dist/assets/EnvVars.883a4a57.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.2441b96e.js +0 -2
- abstra_statics/dist/assets/Form.5d562f15.js +0 -2
- abstra_statics/dist/assets/Form.7493bc0a.css +0 -1
- abstra_statics/dist/assets/FormRunner.2b1b3c45.js +0 -2
- abstra_statics/dist/assets/Home.8502aa41.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.ac03ea28.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.4c40acc4.js +0 -2
- abstra_statics/dist/assets/Login.8bd6a07a.js +0 -2
- abstra_statics/dist/assets/Logo.fc8ace6c.js +0 -2
- abstra_statics/dist/assets/Main.e6b2d2d5.js +0 -2
- abstra_statics/dist/assets/MockForm.e410c2c1.css +0 -1
- abstra_statics/dist/assets/Navbar.24019fd6.js +0 -2
- abstra_statics/dist/assets/NewEditor.2b6f4ed3.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.987cebba.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.6c00d878.js +0 -2
- abstra_statics/dist/assets/Organization.0ac1bf79.js +0 -2
- abstra_statics/dist/assets/PhDatabase.vue.0d3246d7.js +0 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.21156b6d.js +0 -2
- abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.62178939.js +0 -2
- abstra_statics/dist/assets/Steps.82252fc0.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.4fd6afc0.js +0 -2
- abstra_statics/dist/assets/WorkflowViewer.2666936e.js +0 -2
- abstra_statics/dist/assets/WorkflowViewer.3b6aee8e.css +0 -1
- abstra_statics/dist/assets/ant-design.b3eefa58.js +0 -2
- abstra_statics/dist/assets/asyncComputed.c73d027a.js +0 -2
- abstra_statics/dist/assets/colorHelpers.5ee17d14.js +0 -2
- abstra_statics/dist/assets/constants.be8ad36c.js +0 -2
- abstra_statics/dist/assets/contracts.generated.f01de5a3.js +0 -2
- abstra_statics/dist/assets/datetime.a6d58ce1.js +0 -2
- abstra_statics/dist/assets/dayjs.703ebc20.js +0 -2
- abstra_statics/dist/assets/editor.a77b56bd.js +0 -2
- abstra_statics/dist/assets/editor.main.a1ebf0ab.js +0 -2
- abstra_statics/dist/assets/fetch.cd29ef4c.js +0 -2
- abstra_statics/dist/assets/index.5197afb2.js +0 -2
- abstra_statics/dist/assets/player.7112583e.js +0 -2
- abstra_statics/dist/assets/polling.f547718c.js +0 -2
- abstra_statics/dist/assets/redirect.eedb2bf6.js +0 -2
- abstra_statics/dist/assets/router.c7abfb0c.js +0 -2
- abstra_statics/dist/assets/tasksController.5db769f7.js +0 -4
- abstra_statics/dist/assets/url.5d02a63f.js +0 -2
- abstra_statics/dist/assets/useTables.4d5edd80.js +0 -2
- abstra_statics/dist/assets/userStore.34b8f1eb.js +0 -2
- abstra_statics/dist/assets/uuid.6980e2bb.js +0 -2
- {abstra-3.24.3.dist-info → abstra-3.24.4.dist-info}/WHEEL +0 -0
- {abstra-3.24.3.dist-info → abstra-3.24.4.dist-info}/entry_points.txt +0 -0
- {abstra-3.24.3.dist-info → abstra-3.24.4.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{B as O,a as M,g as L,r as Y}from"./router.c6e27700.js";import{_ as Q}from"./DocsButton.vue_vue_type_script_setup_true_lang.108b18e1.js";import{i as G}from"./url.5d02a63f.js";import{G as J}from"./PhDotsThreeVertical.vue.9d76c4de.js";import{d as z,i as D,al as W,r as N,a as r,b as a,u as n,cQ as q,o as s,f as d,ac as A,ej as T,cE as H,bQ as X,cJ as Z,aI as K,aY as B,cY as ee,g as y,t as f,h as _,cD as te,M as le,c as ae,j as ne,dj as U,A as se,ae as x,de as F,bY as oe,d0 as ue,ad as re,df as C,d9 as j,bW as ie,bE as pe,bD as ce,cS as E,e as de,el as P,S as ye,_ as fe}from"./jwt-decode.esm.3348bca5.js";import{A as R}from"./index.5197afb2.js";(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[m]="187727e1-3cf1-440d-8d8d-d542746b7994",g._sentryDebugIdIdentifier="sentry-dbid-187727e1-3cf1-440d-8d8d-d542746b7994")}catch{}})();const me=z({__name:"CreationModal",props:{entityName:{},fields:{},create:{type:Function}},setup(g,{expose:m}){const b=g,I=D.translate("i18n_creationmodal_title",null,{entityName:b.entityName}),c=W({inputValue:{}}),w=N(!1),k=()=>w.value=!0,V=()=>{w.value=!1,c.inputValue={}},S=async()=>{try{await b.create(c.inputValue),V()}catch(p){p instanceof Error&&q.error({message:D.translate("i18n_creationmodal_failed_to_create"),description:p.message})}},t=(p,u)=>{const e=p.target.value,l=b.fields.find(o=>o.key===u);l!=null&&l.format?c.inputValue[u]=l.format(e):c.inputValue[u]=e},v=(p,u)=>{const e=p.target.value,l=b.fields.find(o=>o.key===u);l!=null&&l.blur?c.inputValue[u]=l.blur(e):c.inputValue[u]=e};return m({open:k,close:V}),(p,u)=>(s(),r(n(le),{open:w.value,title:n(I),onCancel:V,onOk:S},{default:a(()=>[d(n(te),{layout:"vertical"},{default:a(()=>[(s(!0),A(B,null,T(p.fields,e=>{var l;return s(),r(n(H),{key:e.key,label:e.label,help:(l=e.hint)==null?void 0:l.call(e,c.inputValue[e.key]),tooltip:e.tooltip},{default:a(()=>{var o,h,$;return[!e.type||e.type==="text"||e.type==="password"?(s(),r(n(X),{key:0,value:c.inputValue[e.key],"onUpdate:value":i=>c.inputValue[e.key]=i,placeholder:(o=e.placeholder)!=null?o:"",type:(h=e.type)!=null?h:"text",onInput:i=>t(i,e.key),onBlur:i=>v(i,e.key)},null,8,["value","onUpdate:value","placeholder","type","onInput","onBlur"])):e.type==="multiline-text"?(s(),r(n(Z),{key:1,value:c.inputValue[e.key],"onUpdate:value":i=>c.inputValue[e.key]=i,placeholder:($=e.placeholder)!=null?$:"",onInput:i=>t(i,e.key),onBlur:i=>v(i,e.key)},null,8,["value","onUpdate:value","placeholder","onInput","onBlur"])):e.type==="select"?(s(),r(n(K),{key:2,value:c.inputValue[e.key],"onUpdate:value":i=>c.inputValue[e.key]=i,mode:e.mode},{default:a(()=>[(s(!0),A(B,null,T(e.options,i=>(s(),r(n(ee),{key:typeof i=="string"?i:i.value,value:typeof i=="string"?i:i.value},{default:a(()=>[y(f(typeof i=="string"?i:i.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value","mode"])):_("",!0)]}),_:2},1032,["label","help","tooltip"])}),128))]),_:1})]),_:1},8,["open","title"]))}}),ve={class:"action-warning"},_e=z({__name:"CrudView",props:{table:{},loading:{type:Boolean},title:{},emptyTitle:{},entityName:{},description:{},create:{type:Function},createButtonText:{},docsPath:{},live:{type:Boolean},fields:{}},setup(g){const m=g,b=N(null),I=(t,v)=>{var u;const p=(u=m.table.rows[0])==null?void 0:u.cells[v].type;if(!(p==="actions"||p==="slot"))return(e,l)=>c(e,l,v)},c=(t,v,p)=>{const u=t.cells[p],e=v.cells[p];return u.type==="text"&&e.type==="text"||u.type==="tag"&&e.type==="tag"?u.text.localeCompare(e.text):u.type==="tags"&&e.type==="tags"?u.tags[0].text.localeCompare(e.tags[0].text):u.type==="secret"&&e.type==="secret"||u.type==="link"&&e.type==="link"?u.text.localeCompare(e.text):(u.type==="actions"&&e.type==="actions",0)},w=async()=>{var t;m.fields?(t=b.value)==null||t.open():m.create&&await m.create({})},k=N(!1);async function V(t,v){if(!k.value){k.value=!0;try{"onClick"in t?await t.onClick({key:v.key}):"link"in t&&(typeof t.link=="string"&&G(t.link)?open(t.link,"_blank"):Y.push(t.link))}finally{k.value=!1}}}const S=ae(()=>({"--columnCount":`${m.table.columns.length}`}));return(t,v)=>{const p=ne("RouterLink");return s(),A(B,null,[d(n(R),{direction:"vertical",class:"crud-view"},{default:a(()=>{var u;return[d(n(U),{align:"center",justify:"space-between"},{default:a(()=>[t.title?(s(),r(n(se),{key:0},{default:a(()=>[y(f(t.title),1)]),_:1})):_("",!0),x(t.$slots,"more",{},void 0,!0)]),_:3}),t.description?(s(),r(n(F),{key:0},{default:a(()=>[y(f(t.description)+" ",1),x(t.$slots,"description",{},void 0,!0),t.docsPath?(s(),r(Q,{key:0,path:t.docsPath},null,8,["path"])):_("",!0)]),_:3})):_("",!0),d(n(U),{gap:"middle"},{default:a(()=>[t.createButtonText?(s(),r(n(oe),{key:0,type:"primary",onClick:w},{default:a(()=>[y(f(t.createButtonText),1)]),_:1})):_("",!0),x(t.$slots,"secondary",{},void 0,!0)]),_:3}),x(t.$slots,"extra",{},void 0,!0),d(n(ue),{"filter-dropdown":!0,size:"small",style:re(S.value),"data-source":t.table.rows,loading:k.value||t.loading&&!t.live,height:400,columns:(u=t.table.columns)==null?void 0:u.map((e,l)=>{var o;return{...e,key:l,filtered:!0,align:(o=e.align)!=null?o:"center",sorter:I(e,l)}})},{emptyText:a(()=>[y(f(t.emptyTitle),1)]),headerCell:a(e=>[y(f(e.title),1)]),bodyCell:a(({column:{key:e},record:l})=>[l.cells[e].type==="slot"?x(t.$slots,l.cells[e].key,{key:0,payload:l.cells[e].payload},void 0,!0):(s(),r(n(E),{key:1,open:l.cells[e].hover?void 0:!1},{content:a(()=>[d(n(F),{style:{width:"300px",overflow:"auto","font-family":"monospace"},copyable:"",content:l.cells[e].hover},null,8,["content"])]),default:a(()=>[l.cells[e].type==="text"?(s(),r(n(C),{key:0,secondary:l.cells[e].secondary,code:l.cells[e].code},{default:a(()=>[d(n(O),{dot:l.cells[e].contentType==="warning",color:"#faad14"},{default:a(()=>[y(f(l.cells[e].text),1)]),_:2},1032,["dot"])]),_:2},1032,["secondary","code"])):l.cells[e].type==="secret"?(s(),r(n(C),{key:1,copyable:{text:l.cells[e].text}},{default:a(()=>[y(" ******** ")]),_:2},1032,["copyable"])):l.cells[e].type==="tag"?(s(),r(n(j),{key:2,color:l.cells[e].tagColor},{default:a(()=>[y(f(l.cells[e].text),1)]),_:2},1032,["color"])):l.cells[e].type==="tags"?(s(),r(n(R),{key:3},{default:a(()=>[(s(!0),A(B,null,T(l.cells[e].tags,(o,h)=>(s(),r(n(j),{key:h,color:o.color},{default:a(()=>[y(f(o.text),1)]),_:2},1032,["color"]))),128))]),_:2},1024)):l.cells[e].type==="link"?(s(),r(p,{key:4,to:l.cells[e].to},{default:a(()=>[y(f(l.cells[e].text),1)]),_:2},1032,["to"])):l.cells[e].type==="actions"?(s(),r(n(ie),{key:5},{overlay:a(()=>[d(n(pe),{disabled:k.value},{default:a(()=>[(s(!0),A(B,null,T(l.cells[e].actions.filter(o=>!o.hide),(o,h)=>(s(),r(n(ce),{key:h,danger:o.dangerous,onClick:$=>V(o,l)},{default:a(()=>[o.popoverMessage?(s(),r(n(E),{key:0,placement:"left"},{content:a(()=>[de("div",ve,[d(n(C),null,{default:a(()=>[y(f(o.popoverMessage),1)]),_:2},1024)])]),default:a(()=>[d(n(C),{disabled:o.disabled,class:"action-item"},{default:a(()=>[o.icon?(s(),r(P(o.icon),{key:0})):_("",!0),y(" "+f(o.label),1)]),_:2},1032,["disabled"])]),_:2},1024)):(s(),r(n(C),{key:1,disabled:o.disabled,class:"action-item"},{default:a(()=>[o.icon?(s(),r(P(o.icon),{key:0})):_("",!0),y(" "+f(o.label),1)]),_:2},1032,["disabled"]))]),_:2},1032,["danger","onClick"]))),128))]),_:2},1032,["disabled"])]),default:a(()=>[d(n(J),{style:{cursor:"pointer"},size:"25px"})]),_:2},1024)):_("",!0)]),_:2},1032,["open"]))]),footer:a(()=>[t.live?(s(),r(n(L),{key:0,justify:"end",gutter:10},{default:a(()=>[d(n(M),{style:{display:"flex","align-items":"center"}},{default:a(()=>[d(n(ye),{size:"small",style:{display:"flex","align-items":"center"}})]),_:1}),d(n(M),null,{default:a(()=>[d(n(C),null,{default:a(()=>[y(f(n(D).translate("i18n_crudview_auto_updating")),1)]),_:1})]),_:1})]),_:1})):_("",!0)]),_:3},8,["style","data-source","loading","columns"])]}),_:3}),t.fields&&t.create?(s(),r(me,{key:0,ref_key:"modalRef",ref:b,fields:t.fields,"entity-name":t.entityName,create:t.create},null,8,["fields","entity-name","create"])):_("",!0)],64)}}});const Ve=fe(_e,[["__scopeId","data-v-21fb039e"]]);export{Ve as C};
|
|
2
|
-
//# sourceMappingURL=CrudView.57e8b29a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as i,C as n}from"./View.vue_vue_type_script_setup_true_lang.c79117ce.js";import{d as p,ei as s,a,u as m,o as d}from"./jwt-decode.esm.3348bca5.js";import"./router.c6e27700.js";import"./index.015caad7.js";import"./fetch.cd29ef4c.js";import"./record.a108da5a.js";import"./SaveButton.c3ad6e9b.js";import"./ExclamationCircleOutlined.2441b96e.js";import"./CrudView.57e8b29a.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.108b18e1.js";import"./constants.be8ad36c.js";import"./url.5d02a63f.js";import"./PhDotsThreeVertical.vue.9d76c4de.js";import"./index.5197afb2.js";import"./asyncComputed.c73d027a.js";import"./omniChatStore.40ad0b1b.js";import"./uuid.6980e2bb.js";import"./PhCopySimple.vue.369eb629.js";import"./PhPencil.vue.0fc0fcc0.js";import"./useCodebaseEvents.6ebbc5a2.js";import"./contracts.generated.f01de5a3.js";import"./index.bec0ecd0.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="2f01b6a8-1efd-416d-abc1-5098ff554c8b",o._sentryDebugIdIdentifier="sentry-dbid-2f01b6a8-1efd-416d-abc1-5098ff554c8b")}catch{}})();const A=p({__name:"EnvVars",setup(o){const t=s().params.projectId,e=new n(t);return(f,c)=>(d(),a(i,{"env-var-repository":m(e),mode:"console"},null,8,["env-var-repository"]))}});export{A as default};
|
|
2
|
-
//# sourceMappingURL=EnvVars.883a4a57.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as c,ee as f,f4 as o}from"./jwt-decode.esm.3348bca5.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]="8570a20e-0001-443c-a4aa-0bff45d9eab4",e._sentryDebugIdIdentifier="sentry-dbid-8570a20e-0001-443c-a4aa-0bff45d9eab4")}catch{}})();function l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){u(e,a,n[a])})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=function(t,n){var r=l({},t,n.attrs);return c(f,l({},r,{icon:o}),null)};i.displayName="ExclamationCircleOutlined";i.inheritAttrs=!1;const s=i;export{s as E};
|
|
2
|
-
//# sourceMappingURL=ExclamationCircleOutlined.2441b96e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as E}from"./userStore.34b8f1eb.js";import{b as C,c as R,d as b}from"./FormRunner.2b1b3c45.js";import{d as k,ei as S,ec as U,al as F,r as A,w as I,c as L,aR as W,U as V,R as x,u as o,ac as B,f as K,a as M,h as N,o as y,_ as T}from"./jwt-decode.esm.3348bca5.js";import{r as q}from"./redirect.eedb2bf6.js";import{a as G}from"./asyncComputed.c73d027a.js";import{u as h}from"./uuid.6980e2bb.js";import{L as P}from"./CircularLoading.d81a4cac.js";import{f as j}from"./workspaceStore.5d3f2aec.js";import"./Login.vue_vue_type_script_setup_true_lang.02acef81.js";import"./Logo.fc8ace6c.js";import"./string.998fa621.js";import"./index.bec0ecd0.js";import"./Steps.82252fc0.js";import"./index.82842143.js";import"./Watermark.c0756030.js";import"./constants.be8ad36c.js";import"./url.5d02a63f.js";import"./colorHelpers.5ee17d14.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[a]="a237f6f9-e977-4415-9d29-f9980a449e15",u._sentryDebugIdIdentifier="sentry-dbid-a237f6f9-e977-4415-9d29-f9980a449e15")}catch{}})();const z={key:0,class:"loading"},H=k({__name:"Form",setup(u){const a=S(),c=U(),f=F({playerKey:h()}),g=E(),i=A(null);I(a,()=>{a.name==="form"&&w()});const{loading:d,result:t,error:p,refetch:w}=G(async()=>{f.playerKey=h();const r=a.path.slice(1),e=await j(r);if(!e){c.push({name:"error",params:{status:"404"}});return}const n=new R({formRunnerData:e,logService:null,connectionManager:new b(e.id,"player",a.query),onRedirect:_,onFormStart:()=>{},onFormEnd:()=>{},onStackTraceUpdate:null,onStateUpdate:l=>i.value=l}),s=n.getState();return i.value=s.formState,{runnerData:e,controller:n}}),D=L(()=>{const r=!d,e=!!p,n=!t||i.value===null;return r&&(e||n)});W(()=>{var r,e,n,s,l;D.value&&c.push({name:"error",params:{status:"500"}}),!!((r=t.value)!=null&&r.runnerData)&&(e=t.value)!=null&&e.runnerData&&(document.title=(l=(n=t.value)==null?void 0:n.runnerData.welcomeTitle)!=null?l:(s=t.value)==null?void 0:s.runnerData.title)});function _(r,e){window.removeEventListener("beforeunload",m),q("player",c,r,e)}V(async()=>{window.addEventListener("beforeunload",m)}),x(()=>{window.removeEventListener("beforeunload",m)});const m=r=>{var e;if((e=t.value)!=null&&e.controller.handleCloseAttempt())return r.preventDefault(),""};return(r,e)=>{var n,s,l,v;return o(d)?(y(),B("div",z,[K(P)])):o(t)&&o(t).runnerData&&i.value&&!o(p)&&!o(d)?(y(),M(C,{key:f.playerKey,"form-runner-data":o(t).runnerData,"form-state":i.value,"is-preview":!1,"user-email":o(g).email,onRedirect:_,onActionClicked:(n=o(t))==null?void 0:n.controller.handleActionClick,onUpdateWidgetErrors:(s=o(t))==null?void 0:s.controller.updateWidgetFrontendErrors,onUpdateWidgetValue:(l=o(t))==null?void 0:l.controller.updateWidgetValue,onAuthComplete:(v=o(t))==null?void 0:v.controller.handleAuthComplete},null,8,["form-runner-data","form-state","user-email","onActionClicked","onUpdateWidgetErrors","onUpdateWidgetValue","onAuthComplete"])):N("",!0)}}});const de=T(H,[["__scopeId","data-v-972fe12c"]]);export{de as default};
|
|
2
|
-
//# sourceMappingURL=Form.5d562f15.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-972fe12c]:root{--abstra-main-color-dark: #343b46}.loading[data-v-972fe12c]{position:absolute;top:0;left:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var se=Object.defineProperty;var ie=(a,e,t)=>e in a?se(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var r=(a,e,t)=>(ie(a,typeof e!="symbol"?e+"":e,t),t);import{u as useUserStore}from"./userStore.34b8f1eb.js";import{d as defineComponent,at as inject,c as computed,o as openBlock,ac as createElementBlock,ae as renderSlot,h as createCommentVNode,ed as mergeProps,e as createBaseVNode,en as lodash,i as i18nProvider,a as createBlock,el as resolveDynamicComponent,_ as _export_sfc,b as withCtx,u as unref,g as createTextVNode,t as toDisplayString,r as ref,w as watch,f as createVNode,eh as normalizeClass,eZ as StartWidget,e_ as EndWidget,e$ as ErrorWidget,aY as Fragment,ej as renderList,f0 as StyleProvider,eM as withKeys,bY as Button}from"./jwt-decode.esm.3348bca5.js";import{_ as _sfc_main$3}from"./Login.vue_vue_type_script_setup_true_lang.02acef81.js";import{u as useWorkspaceStore}from"./workspaceStore.5d3f2aec.js";import{L as LoadingIndicator}from"./CircularLoading.d81a4cac.js";import{S as Steps}from"./Steps.82252fc0.js";import{W as Watermark}from"./Watermark.c0756030.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="d7160bae-5e9d-4796-b8d3-be3223c99198",a._sentryDebugIdIdentifier="sentry-dbid-d7160bae-5e9d-4796-b8d3-be3223c99198")}catch{}})();const Z=["width","height","fill","transform"],g={key:0},m=createBaseVNode("path",{d:"M112,36a12,12,0,0,0-12,12V60H24A20,20,0,0,0,4,80v96a20,20,0,0,0,20,20h76v12a12,12,0,0,0,24,0V48A12,12,0,0,0,112,36ZM28,172V84h72v88ZM252,80v96a20,20,0,0,1-20,20H152a12,12,0,0,1,0-24h76V84H152a12,12,0,0,1,0-24h80A20,20,0,0,1,252,80ZM88,112a12,12,0,0,1-12,12v20a12,12,0,0,1-24,0V124a12,12,0,0,1,0-24H76A12,12,0,0,1,88,112Z"},null,-1),y=[m],f={key:1},w=createBaseVNode("path",{d:"M240,80v96a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H232A8,8,0,0,1,240,80Z",opacity:"0.2"},null,-1),k=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),x=[w,k],S={key:2},z=createBaseVNode("path",{d:"M248,80v96a16,16,0,0,1-16,16H140a4,4,0,0,1-4-4V68a4,4,0,0,1,4-4h92A16,16,0,0,1,248,80ZM120,48V208a8,8,0,0,1-16,0V192H24A16,16,0,0,1,8,176V80A16,16,0,0,1,24,64h80V48a8,8,0,0,1,16,0ZM88,112a8,8,0,0,0-8-8H48a8,8,0,0,0,0,16h8v24a8,8,0,0,0,16,0V120h8A8,8,0,0,0,88,112Z"},null,-1),C=[z],B={key:3},b=createBaseVNode("path",{d:"M112,42a6,6,0,0,0-6,6V66H24A14,14,0,0,0,10,80v96a14,14,0,0,0,14,14h82v18a6,6,0,0,0,12,0V48A6,6,0,0,0,112,42ZM24,178a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h82V178ZM246,80v96a14,14,0,0,1-14,14H144a6,6,0,0,1,0-12h88a2,2,0,0,0,2-2V80a2,2,0,0,0-2-2H144a6,6,0,0,1,0-12h88A14,14,0,0,1,246,80ZM86,112a6,6,0,0,1-6,6H70v26a6,6,0,0,1-12,0V118H48a6,6,0,0,1,0-12H80A6,6,0,0,1,86,112Z"},null,-1),N=[b],E={key:4},P=createBaseVNode("path",{d:"M112,40a8,8,0,0,0-8,8V64H24A16,16,0,0,0,8,80v96a16,16,0,0,0,16,16h80v16a8,8,0,0,0,16,0V48A8,8,0,0,0,112,40ZM24,176V80h80v96ZM248,80v96a16,16,0,0,1-16,16H144a8,8,0,0,1,0-16h88V80H144a8,8,0,0,1,0-16h88A16,16,0,0,1,248,80ZM88,112a8,8,0,0,1-8,8H72v24a8,8,0,0,1-16,0V120H48a8,8,0,0,1,0-16H80A8,8,0,0,1,88,112Z"},null,-1),W=[P],$={key:5},j=createBaseVNode("path",{d:"M112,44a4,4,0,0,0-4,4V68H24A12,12,0,0,0,12,80v96a12,12,0,0,0,12,12h84v20a4,4,0,0,0,8,0V48A4,4,0,0,0,112,44ZM24,180a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h84V180ZM244,80v96a12,12,0,0,1-12,12H144a4,4,0,0,1,0-8h88a4,4,0,0,0,4-4V80a4,4,0,0,0-4-4H144a4,4,0,0,1,0-8h88A12,12,0,0,1,244,80ZM84,112a4,4,0,0,1-4,4H68v28a4,4,0,0,1-8,0V116H48a4,4,0,0,1,0-8H80A4,4,0,0,1,84,112Z"},null,-1),T=[j],q={name:"PhTextbox"},G=defineComponent({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(a){const e=a,t=inject("weight","regular"),n=inject("size","1em"),s=inject("color","currentColor"),i=inject("mirrored",!1),u=computed(()=>{var d;return(d=e.weight)!=null?d:t}),v=computed(()=>{var d;return(d=e.size)!=null?d:n}),_=computed(()=>{var d;return(d=e.color)!=null?d:s}),p=computed(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:i?"scale(-1, 1)":void 0);return(d,F)=>(openBlock(),createElementBlock("svg",mergeProps({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:_.value,transform:p.value},d.$attrs),[renderSlot(d.$slots,"default"),u.value==="bold"?(openBlock(),createElementBlock("g",g,y)):u.value==="duotone"?(openBlock(),createElementBlock("g",f,x)):u.value==="fill"?(openBlock(),createElementBlock("g",S,C)):u.value==="light"?(openBlock(),createElementBlock("g",B,N)):u.value==="regular"?(openBlock(),createElementBlock("g",E,W)):u.value==="thin"?(openBlock(),createElementBlock("g",$,T)):createCommentVNode("",!0)],16,Z))}}),WS_CLOSING_STATES=[WebSocket.CLOSING,WebSocket.CLOSED],WS_CUSTOM_CLOSING_REASONS={FRONTEND_FORM_RESTART:4e3};class FormConnectionManager{constructor(e,t,n){r(this,"ws",null);r(this,"heartbeatInterval");r(this,"onOpen",null);r(this,"onMessage",null);r(this,"onClose",null);this.formId=e,this.environment=t,this.userQueryParams=n}get url(){const e=location.protocol==="https:"?"wss:":"ws:",t=this.environment=="editor"?"_editor/api/forms/socket":"_socket",n=new URLSearchParams({id:this.formId,...this.userQueryParams});return`${e}//${location.host}/${t}?${n}`}handleOpen(e){if(!this.onOpen)throw new Error("onOpen is not set");this.onOpen(),e()}handleClose(e){(e.code===1006||!e.wasClean)&&clearInterval(this.heartbeatInterval),this.onClose&&this.onClose(e)}handleMessage(e){if(!this.onMessage)throw new Error("onMessage is not set");const t=JSON.parse(e.data);this.onMessage(t)}sendHeartbeat(){!this.ws||this.ws.readyState!==this.ws.OPEN||this.send({type:"execution:heartbeat"})}async waitForConnection(e=5e3){const t=Date.now();for(;;){if(Date.now()-t>e)throw new Error("WebSocket connection timeout");if(!this.ws)throw new Error("WebSocket connection lost");if(this.ws.readyState===WebSocket.OPEN)return;if(this.ws.readyState===WebSocket.CLOSED||this.ws.readyState===WebSocket.CLOSING)throw new Error("WebSocket connection failed");await new Promise(n=>setTimeout(n,100))}}async send(e){if(!this.ws)throw new Error(`[FormRunnerController] failed sending msg ${e.type}: websocket is not connected`);if(WS_CLOSING_STATES.includes(this.ws.readyState)&&await this.newConnection(),this.ws.readyState===WebSocket.CONNECTING&&await this.waitForConnection(),this.ws&&this.ws.readyState===WebSocket.OPEN)this.ws.send(JSON.stringify(e));else throw new Error(`[FormRunnerController] failed sending msg ${e.type}: websocket is not in open state`)}async close(e){this.ws&&this.ws.close(WS_CUSTOM_CLOSING_REASONS[e],e)}async newConnection(e=3,t){if(e!=0)return new Promise(n=>{clearInterval(this.heartbeatInterval),this.ws=new WebSocket(this.url,t),this.ws.onopen=()=>this.handleOpen(n),this.ws.onclose=s=>this.handleClose(s),this.ws.onmessage=s=>this.handleMessage(s),this.heartbeatInterval=setInterval(()=>this.sendHeartbeat(),2e3)}).catch(()=>{this.newConnection(e-1)})}isEditorConnection(){return this.environment==="editor"}}function isInputWidget(a){return"key"in a&&"value"in a&&"errors"in a}const executeCode=($context,code)=>{let evaluatedCode;try{evaluatedCode=eval(code)}catch(a){throw console.error(`[Error: execute_js]: ${a.message}, context: ${$context}`),a}return isSerializable(evaluatedCode)?evaluatedCode:null};async function executeJs(a){return{type:"execute-js:response",value:await executeCode(a.context,a.code)}}const isSerializable=a=>{try{return JSON.stringify(a),!0}catch{return!1}},FORM_END_STATES=["default-end","page-end","error"],FORM_RUNNING_STATES=["authenticating","page","loading"];class FormRunnerController{constructor({formRunnerData:e,logService:t,connectionManager:n,onFormStart:s,onFormEnd:i,onRedirect:u,onStateUpdate:v,onStackTraceUpdate:_}){r(this,"connectionManager");r(this,"logService");r(this,"formRunnerData");r(this,"formState");r(this,"touchedWidgets",{});r(this,"messageSeq",0);r(this,"executionId",null);r(this,"onFormStart");r(this,"onFormEnd");r(this,"onRedirect");r(this,"onStackTraceUpdate");r(this,"onStateUpdate");r(this,"userStore");r(this,"responseHistory",[]);r(this,"lastResponseHistory",[]);r(this,"handlers",{"execution:started":[e=>this.handleExecutionStartedMessage(e)],"execution:ended":[e=>this.handleExecutionEndedMessage(e)],"form:render":[e=>this.handleRenderMessage(e)],"form:mount-page":[e=>this.handleMountPageMessage(e)],"form:update-page":[e=>this.handleUpdatePageMessage(e)],"auth:require-info":[e=>this.handleAuthRequireInfoMessage(e)],"auth:invalid-jwt":[e=>this.handleAuthInvalidJWTMessage(e)],"auth:valid-jwt":[e=>this.handleAuthValidTokenMessage(e)],"redirect:request":[e=>this.handleRedirectRequestMessage(e)],"execute-js:request":[e=>this.handleExecuteJSRequestMessage(e)]});r(this,"start",async()=>{this.setFormState({type:"loading"}),await this.connectionManager.newConnection(3,this.userStore.wsAuthHeaders)});r(this,"resetForm",async()=>{var e;(e=this.logService)==null||e.log({type:"stdout",log:"[Form reloaded]"}),await this.connectionManager.close("FRONTEND_FORM_RESTART"),this.resetState()});r(this,"reconnect",async()=>{this.resetState(),await this.start()});r(this,"resetState",()=>{this.messageSeq=0,this.setFormState({type:"waiting",actions:[this.getStartAction()]})});r(this,"debouncedFinishPageLoading",lodash.exports.debounce(()=>{if(this.formState.type!=="page")throw new Error("Can't start loading while not in render-page state");this.setFormState({...this.formState,actions:this.formState.actions.map(e=>({...e,loading:!1}))})},500));r(this,"getStartAction",()=>this.actionFromMessage({key:"start",label:this.formRunnerData.startButtonText||i18nProvider.translateIfFound("i18n_start_action",this.formRunnerData.language)}));r(this,"getEndStateActions",()=>{const e=this.formRunnerData.restartButtonText||i18nProvider.translateIfFound("i18n_restart_action",this.formRunnerData.language);return this.formRunnerData.allowRestart?[this.actionFromMessage({key:"i18n_restart_action",label:e})]:[]});r(this,"getState",()=>({formState:this.formState}));r(this,"handleConnectionOpen",()=>{this.connectionManager.send({type:"execution:start"})});r(this,"widgetFromMessage",(e,t)=>{if(isInputWidget(e)){"value"in e&&e.value&&(this.touchedWidgets[e.key]=!0);const n=e.errors.map(s=>i18nProvider.translateIfFound(s,this.formRunnerData.language,e));return{...e,input:!0,_pythonErrors:n,errors:n}}return{...e,input:!1,_pythonErrors:[],errors:[],key:e.type+t}});r(this,"actionFromMessage",({key:e,label:t})=>({key:e,label:i18nProvider.translateIfFound(t,this.formRunnerData.language,this.formRunnerData),disabled:!1,loading:!1}));r(this,"getAutofillVisibilty",e=>this.lastResponseHistory.length===0?!1:this.lastResponseHistory[0].some(t=>e.find(n=>n.key===t.key&&n.type===t.type&&"value"in n)));r(this,"handleAutofillClick",()=>{!this.lastResponseHistory[0]||this.formState.type==="page"&&(this.lastResponseHistory[0].forEach(t=>{!("widgets"in this.formState&&this.formState.widgets.find(s=>s.key===t.key&&s.type===t.type))||"value"in t&&this.updateWidgetValue(t.key,t.value)}),this.setFormState({...this.formState,showAutofill:!1}))});r(this,"handleAuthComplete",e=>{e&&this.formState.type==="authenticating"&&this.sendAuthSavedJWT(e)});r(this,"handleMessageReceived",e=>{const t=this.handlers[e.type];if(!t)throw new Error(`No handler for message type ${e.type}`);if(t.forEach(n=>n(e)),e.debug&&this.onStackTraceUpdate){const n=e.type==="execution:ended";this.onStackTraceUpdate(e.debug.stack,n)}});r(this,"handleActionClick",async e=>{if(this.formState.type==="waiting")return this.start();if(this.formState.type==="page"){const t=e.key==="i18n_back_action";return this.hasErrors()&&!t?void 0:(this.setFormState({...this.formState,actions:this.formState.actions.map(n=>n.label===e.label?{...n,loading:!0}:n)}),this.lastResponseHistory.shift(),this.responseHistory.push(this.formState.widgets),this.sendFormNavigation(this.getWidgetValues(),e))}if(this.formState.type==="default-end"||this.formState.type==="page-end"){await this.resetForm(),await this.start();return}});r(this,"updateWidgetValue",(e,t)=>{if(this.formState.type!=="page")return;const n=this.formState.widgets.find(i=>"key"in i&&i.key===e);if(!n||!isInputWidget(n))return;this.touchedWidgets[e]=!0;const s=this.formState.widgets.map(i=>i.key===e?{...i,value:t}:i);this.setFormState({...this.formState,widgets:s}),this.sendInput(this.getWidgetValues(),this.getSecrets())});r(this,"updateWidgetFrontendErrors",(e,t)=>{if(this.formState.type!=="page"||!this.formState.widgets.find(i=>i.key===e))return;const s=this.formState.widgets.map(i=>i.key===e?{...i,errors:i._pythonErrors.concat(t.map(u=>i18nProvider.translateIfFound(u,this.formRunnerData.language,i)))}:i);this.setFormState({...this.formState,widgets:s})});if(this.formRunnerData=e,this.logService=t,this.connectionManager=n,this.onFormStart=s,this.onFormEnd=i,this.onRedirect=u,this.onStateUpdate=v,this.onStackTraceUpdate=_,this.userStore=useUserStore(),this.connectionManager.onOpen=()=>this.handleConnectionOpen(),this.connectionManager.onMessage=p=>this.handleMessageReceived(p),this.connectionManager.onClose=p=>this.handleConnectionClose(p),this.formRunnerData.autoStart&&!this.connectionManager.isEditorConnection()){this.formState={type:"loading"},this.start();return}this.formState={type:"waiting",actions:[this.getStartAction()]}}get publicLogService(){return this.logService}fullWidthFromMessage(e){return e.some(t=>"fullWidth"in t&&t.fullWidth)}async handleExecutionStartedMessage(e){this.executionId=e.executionId,this.onFormStart()}handleRenderMessage(e){if(e.seq!==this.messageSeq)return;const t=e.widgets.map(this.widgetFromMessage);if(e.endPage){this.setFormState({...this.formState,type:"page-end",actions:this.getEndStateActions(),widgets:t,fullWidth:this.fullWidthFromMessage(e.widgets),stepsInfo:e.stepsInfo,refreshKey:e.stepsInfo.current.toString(),showAutofill:this.getAutofillVisibilty(t)});return}let n=[{key:"back",label:"i18n_back_action"},{key:"next",label:"i18n_next_action"}];e.actions&&(n=e.actions),this.setFormState({type:"page",widgets:t,actions:n.map(this.actionFromMessage),fullWidth:this.fullWidthFromMessage(e.widgets),stepsInfo:e.stepsInfo,refreshKey:e.stepsInfo.current.toString(),showAutofill:this.getAutofillVisibilty(t)})}async handleExecuteJSRequestMessage(e){const t=await executeJs(e);this.connectionManager.send(t)}async handleAuthRequireInfoMessage(e){const{jwt:t,isJWTValid:n}=this.userStore;if(t&&n()&&!e.refresh){this.sendAuthSavedJWT(t);return}this.setFormState({type:"authenticating"})}async handleAuthInvalidJWTMessage(e){this.setFormState({type:"authenticating"})}async handleAuthValidTokenMessage(e){}async handleRedirectRequestMessage(e){this.onRedirect(e.url,e.queryParams)}handleMountPageMessage(e){var n,s;const t=e.widgets.map(this.widgetFromMessage);if(e.endProgram){this.setFormState({type:"page-end",actions:this.getEndStateActions(),widgets:t,fullWidth:this.fullWidthFromMessage(e.widgets),stepsInfo:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t),legacy:!0});return}this.setFormState({type:"page",widgets:t,actions:(s=(n=e.actions)==null?void 0:n.map(i=>this.actionFromMessage({key:i,label:i})))!=null?s:[],fullWidth:this.fullWidthFromMessage(e.widgets),stepsInfo:e.steps,refreshKey:Date.now().toString(),showAutofill:this.getAutofillVisibilty(t),legacy:!0})}async handleUpdatePageMessage(e){if(e.seq===this.messageSeq){if(this.formState.type!=="page")throw new Error("Received form:update-page message while not in render-page state");this.setFormState({...this.formState,error:{message:e.validation.message,status:e.validation.status},widgets:e.widgets.map(this.widgetFromMessage),actions:this.formState.actions.map(t=>({...t,disabled:this.shouldDisableAction(t,e)}))}),this.debouncedFinishPageLoading()}}shouldDisableAction(e,t){if(e.key==="i18n_back_action"||this.formState.type!=="page")return!1;const s=t.widgets.map(this.widgetFromMessage).some(u=>u.errors.length>0),i=t.validation.status===!1||Boolean(t.validation.message);return s||i}async handleExecutionEndedMessage(e){var t;this.lastResponseHistory=[...this.responseHistory],this.responseHistory=[],!FORM_END_STATES.includes(this.formState.type)&&(e.exitStatus==="SUCCESS"&&(this.setFormState({type:"default-end",actions:this.getEndStateActions()}),(t=this.logService)==null||t.log({type:"stdout",log:"[Form run finished]"})),e.exitStatus==="EXCEPTION"&&this.setFormState({type:"error",message:e.exception,executionId:this.executionId}),this.onFormEnd())}sendFormNavigation(e,t,n){this.connectionManager.send({type:"form:navigation",payload:e,secrets:n,action:t==null?void 0:t.key,seq:++this.messageSeq})}sendInput(e,t){this.connectionManager.send({type:"form:input",payload:e,secrets:t,seq:++this.messageSeq})}sendAuthSavedJWT(e){this.connectionManager.send({type:"auth:saved-jwt",jwt:e})}handleCloseAttempt(){return FORM_END_STATES.includes(this.formState.type)||this.formState.type==="waiting"?!1:(this.connectionManager.send({type:"debug:close-attempt"}),!0)}handleConnectionClose(e){e.code!==WS_CUSTOM_CLOSING_REASONS.FRONTEND_FORM_RESTART&&FORM_RUNNING_STATES.includes(this.formState.type)&&this.reconnect()}setFormState(e){this.formState=Object.freeze(e),this.onStateUpdate(e)}getSecrets(){return this.formState.type!=="page"?[]:this.formState.widgets.filter(e=>"secret"in e).reduce((e,t)=>"key"in t&&"secret"in t?[...e,{key:t.key,secret:t.secret}]:e,[])}setWidgetValidationFunction(e,t){if(this.formState.type!=="page")return;const n=this.formState.widgets.find(s=>"key"in s&&s.key===e);!n||!isInputWidget(n)||(n.validationFunction=t)}hasErrors(){var e;return this.formState.type!=="page"?!1:((e=this.formState.error)==null?void 0:e.status)===!1||this.formState.widgets.some(t=>t.errors.length>0)}getWidgetValue(e){if(this.formState.type!=="page")return null;const t=this.formState.widgets.find(n=>"key"in n&&n.key===e);if(!t||!isInputWidget(t))return null}getWidgetValues(){return this.formState.type!=="page"?{}:this.formState.widgets.reduce((e,t)=>("value"in t&&(this.touchedWidgets[t.key]||this.formState.legacy)&&(e[t.key]=t.value),e),{})}}const _hoisted_1$1={class:"outline-button"},_sfc_main$2=defineComponent({__name:"OutlineButton",props:{icon:{},noShadow:{type:Boolean},status:{}},setup(a){return(e,t)=>(openBlock(),createElementBlock("button",_hoisted_1$1,[e.icon?(openBlock(),createBlock(resolveDynamicComponent(e.icon),{key:0,class:"icon",color:"#fff"})):createCommentVNode("",!0),renderSlot(e.$slots,"default",{},void 0,!0)]))}}),OutlineButton_vue_vue_type_style_index_0_scoped_2d3b9e41_lang="",OutlineButton=_export_sfc(_sfc_main$2,[["__scopeId","data-v-2d3b9e41"]]),_sfc_main$1=defineComponent({__name:"FormAutoFill",emits:["click"],setup(a,{emit:e}){return(t,n)=>(openBlock(),createBlock(OutlineButton,{icon:unref(G),class:"form-auto-fill-btn",onClick:n[0]||(n[0]=s=>e("click"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(i18nProvider).translate("i18n_form_auto_fill_repeat_last_answer")),1)]),_:1},8,["icon"]))}}),FormAutoFill_vue_vue_type_style_index_0_scoped_8885e98e_lang="",FormAutoFill=_export_sfc(_sfc_main$1,[["__scopeId","data-v-8885e98e"]]),_hoisted_1={class:"center"},_hoisted_2={key:0,class:"loading-wrapper"},_hoisted_3={class:"form-wrapper"},_hoisted_4=["id"],_hoisted_5={key:4,class:"span-error"},_hoisted_6={key:0,class:"buttons"},_sfc_main=defineComponent({__name:"FormRunner",props:{formRunnerData:{},formState:{},isPreview:{type:Boolean},disabled:{type:Boolean}},emits:["action-clicked","auto-fill-clicked","update-widget-value","update-widget-errors","auth-complete"],setup(a,{emit:e}){const t=a,n=useWorkspaceStore(),s=computed(()=>{var o;return((o=n.state.workspace)==null?void 0:o.logoUrl)||""}),i=ref(null),u=ref({}),v=computed(()=>!t.formState||t.formState.type==="loading"),_=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="authenticating"}),p=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="waiting"}),d=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="default-end"}),F=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="error"}),V=computed(()=>{var o;return t.isPreview&&((o=t.formState)==null?void 0:o.type)==="page"&&t.formState.showAutofill}),D=computed(()=>{var o,l;return((o=t.formState)==null?void 0:o.type)==="page"&&"stepsInfo"in t.formState&&!((l=t.formState.stepsInfo)!=null&&l.disabled)}),H=computed(()=>{var o;if(((o=t.formState)==null?void 0:o.type)==="page"&&"stepsInfo"in t.formState)return t.formState.stepsInfo}),O=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="error"&&"executionId"in t.formState?t.formState.executionId:null}),A=computed(()=>{var o;return((o=t.formState)==null?void 0:o.type)==="page"&&t.formState.error&&t.formState.error.status===!1}),U=computed(()=>!t.formState||!("widgets"in t.formState)?[]:t.formState.widgets),L=computed(()=>!t.formState||!("actions"in t.formState)?[]:t.formState.actions),K=computed(()=>t.formState&&"actions"in t.formState),J=computed(()=>!A.value||!("error"in t.formState)||!t.formState.error?"":t.formState.error.message||i18nProvider.translateIfFound("i18n_generic_validation_error",t.formRunnerData.language)),Q=computed(()=>({"full-width":X()})),Y=()=>{!i.value||(i.value.scrollTop=0)},X=()=>{var o,l;return((o=t.formState)==null?void 0:o.type)==="page"?t.formState.fullWidth:((l=t.formState)==null?void 0:l.type)==="page-end"?t.formState.fullWidth&&t.formState.widgets.length>0:!1},ee=(o,l)=>"key"in o?o.key:o.type+l,te=o=>{const l="refreshKey"in t.formState?t.formState.refreshKey:0;return"key"in o?o.key+"_"+l:o.type+"_"+l},oe=o=>isInputWidget(o)&&o.value,ne=(o,l)=>{"key"in o&&(u.value[o.key]=l)},re=o=>({"next-button__disabled":o.disabled||o.loading}),ae=o=>o.disabled||o.loading;return watch(()=>t.formState,(o,l)=>{o.type==="page"&&(l==null?void 0:l.type)==="page"&&o.refreshKey!==l.refreshKey&&Y()}),(o,l)=>{var R,I;return openBlock(),createElementBlock("div",_hoisted_1,[V.value?(openBlock(),createBlock(FormAutoFill,{key:0,class:"auto-fill-btn",form:o.formRunnerData,style:{"z-index":1},onClick:l[0]||(l[0]=c=>e("auto-fill-clicked"))},null,8,["form"])):createCommentVNode("",!0),D.value?(openBlock(),createBlock(Steps,{key:1,"steps-info":H.value,"is-preview":o.isPreview},null,8,["steps-info","is-preview"])):createCommentVNode("",!0),createBaseVNode("main",{ref_key:"scrollableContainer",ref:i,class:normalizeClass([{disabled:o.disabled}]),style:{padding:"50px 0px","box-sizing":"border-box"}},[v.value?(openBlock(),createElementBlock("div",_hoisted_2,[createVNode(LoadingIndicator)])):_.value?(openBlock(),createBlock(_sfc_main$3,{key:1,locale:o.formRunnerData.language,"logo-url":(R=s.value)!=null?R:void 0,"brand-name":(I=o.formRunnerData.brandName)!=null?I:void 0,onDone:l[1]||(l[1]=c=>e("auth-complete",c))},null,8,["locale","logo-url","brand-name"])):(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["form",Q.value])},[createBaseVNode("div",_hoisted_3,[p.value?(openBlock(),createBlock(StartWidget,{key:0,form:o.formRunnerData},null,8,["form"])):d.value?(openBlock(),createBlock(EndWidget,{key:1,"end-message":o.formRunnerData.endMessage,locale:o.formRunnerData.language},null,8,["end-message","locale"])):F.value?(openBlock(),createBlock(ErrorWidget,{key:2,"error-message":o.formRunnerData.errorMessage,"execution-id":O.value,locale:o.formRunnerData.language},null,8,["error-message","execution-id","locale"])):(openBlock(!0),createElementBlock(Fragment,{key:3},renderList(U.value,(c,M)=>(openBlock(),createElementBlock("div",{id:c.type+M,key:ee(c,M),class:"widget"},[(openBlock(),createBlock(resolveDynamicComponent(c.type),{ref_for:!0,ref:h=>ne(c,h),key:te(c),value:oe(c),errors:c.errors,"user-props":c,legacy:o.formState.legacy,locale:o.formRunnerData.language,"onUpdate:value":h=>e("update-widget-value",c.key,h),"onUpdate:errors":h=>e("update-widget-errors",c.key,h)},null,40,["value","errors","user-props","legacy","locale","onUpdate:value","onUpdate:errors"])),(openBlock(!0),createElementBlock(Fragment,null,renderList(c.errors,h=>(openBlock(),createElementBlock("span",{key:h,class:"span-error"},toDisplayString(h),1))),128))],8,_hoisted_4))),128)),A.value?(openBlock(),createElementBlock("span",_hoisted_5,toDisplayString(J.value),1)):createCommentVNode("",!0)]),K.value?(openBlock(),createElementBlock("div",_hoisted_6,[createVNode(unref(StyleProvider),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(L.value,c=>(openBlock(),createBlock(unref(Button),{key:c.key,class:normalizeClass(["next-button",re(c)]),loading:c.loading,disabled:ae(c),onClick:M=>e("action-clicked",c),onKeydown:withKeys(M=>e("action-clicked",c),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(c.label),1)]),_:2},1032,["class","loading","disabled","onClick","onKeydown"]))),128))]),_:1})])):createCommentVNode("",!0)],2))],2),createVNode(Watermark,{"page-id":o.formRunnerData.id,locale:o.formRunnerData.language},null,8,["page-id","locale"])])}}}),FormRunner_vue_vue_type_style_index_0_scoped_4266401f_lang="",FormRunner=_export_sfc(_sfc_main,[["__scopeId","data-v-4266401f"]]);export{FORM_END_STATES as F,FORM_RUNNING_STATES as a,FormRunner as b,FormRunnerController as c,FormConnectionManager as d};
|
|
2
|
-
//# sourceMappingURL=FormRunner.2b1b3c45.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as u,d as m,ec as h,U as b,R as y,j as w,a as g,o as v,_ as I}from"./jwt-decode.esm.3348bca5.js";import{l as d}from"./fetch.cd29ef4c.js";import{u as R}from"./polling.f547718c.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="56343d2e-fb2a-4cee-833b-7bd0776b324b",t._sentryDebugIdIdentifier="sentry-dbid-56343d2e-fb2a-4cee-833b-7bd0776b324b")}catch{}})();const _=4,C=t=>{const n=t.router,r=u(""),s=u(Array(_).fill(!0));let a=0;const l=async()=>{try{const e=new AbortController,o=setTimeout(()=>e.abort(),1e3),f=await d("/_healthcheck",{method:"GET",signal:e.signal,headers:{"Content-Type":"application/json","Cache-Control":"no-cache"}});clearTimeout(o),s.value[a]=f.status===200}catch{s.value[a]=!1}if(a=(a+1)%_,s.value.every(e=>!e)&&r.value){const e=n.currentRoute.value.path,o=new URLSearchParams;o.set("redirect",e),window.location.href=r.value+"?"+o.toString()}},{startPolling:c,endPolling:p}=R({task:l,interval:2e3}),i=async()=>{const e=await d("/_editor/api/web-editor/",{method:"GET"});if(!e.ok){setTimeout(()=>{i()},1e3);return}const o=await e.json();o.waitingRoomUrl&&(r.value=o.waitingRoomUrl,c())};return{setup:i,cleanUp:p}},H=m({__name:"Home",setup(t){const n=h(),{setup:r,cleanUp:s}=C({router:n});return b(()=>{r()}),y(()=>{s()}),(a,l)=>{const c=w("RouterView");return v(),g(c,{class:"router"})}}});const E=I(H,[["__scopeId","data-v-3737a9c1"]]);export{E as default};
|
|
2
|
-
//# sourceMappingURL=Home.8502aa41.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as o,o as a,ac as s,f as d,u as _,S as r,_ as c}from"./jwt-decode.esm.3348bca5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8b8bb924-239a-4163-99e2-2e44579d6b89",e._sentryDebugIdIdentifier="sentry-dbid-8b8bb924-239a-4163-99e2-2e44579d6b89")}catch{}})();const i={class:"centered"},f=o({__name:"LoadingContainer",setup(e){return(n,t)=>(a(),s("div",i,[d(_(r))]))}});const p=c(f,[["__scopeId","data-v-52e6209a"]]);export{p as L};
|
|
2
|
-
//# sourceMappingURL=LoadingContainer.ac03ea28.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as o,ee as c,f1 as f}from"./jwt-decode.esm.3348bca5.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]="2637c8c2-1c6f-424a-abce-963b9d547b50",e._sentryDebugIdIdentifier="sentry-dbid-2637c8c2-1c6f-424a-abce-963b9d547b50")}catch{}})();function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),r.forEach(function(a){u(e,a,n[a])})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=function(t,n){var r=d({},t,n.attrs);return o(c,d({},r,{icon:f}),null)};i.displayName="LoadingOutlined";i.inheritAttrs=!1;const b=i;export{b as L};
|
|
2
|
-
//# sourceMappingURL=LoadingOutlined.4c40acc4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as l}from"./Login.vue_vue_type_script_setup_true_lang.02acef81.js";import{d as m,ec as f,ei as g,ac as y,f as b,u as n,o as w,_ as k}from"./jwt-decode.esm.3348bca5.js";import{u as h}from"./workspaceStore.5d3f2aec.js";import"./CircularLoading.d81a4cac.js";import"./Logo.fc8ace6c.js";import"./string.998fa621.js";import"./index.bec0ecd0.js";import"./userStore.34b8f1eb.js";import"./url.5d02a63f.js";import"./colorHelpers.5ee17d14.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6fcac4a5-00d3-43a0-9ac4-3254eac36ad2",e._sentryDebugIdIdentifier="sentry-dbid-6fcac4a5-00d3-43a0-9ac4-3254eac36ad2")}catch{}})();const v={class:"runner"},I=m({__name:"Login",setup(e){const o=f(),a=g(),t=h(),_=async()=>{const{redirect:r,...s}=a.query;if(r){await o.push({path:r,query:s,params:a.params});return}o.push({name:"playerHome",query:s})};return(r,s)=>{var c,d,p,u,i;return w(),y("div",v,[b(l,{"logo-url":(d=(c=n(t).state.workspace)==null?void 0:c.logoUrl)!=null?d:void 0,"brand-name":(p=n(t).state.workspace)==null?void 0:p.brandName,locale:(i=(u=n(t).state.workspace)==null?void 0:u.language)!=null?i:"en",onDone:_},null,8,["logo-url","brand-name","locale"])])}}});const H=k(I,[["__scopeId","data-v-12c690e1"]]);export{H as default};
|
|
2
|
-
//# sourceMappingURL=Login.8bd6a07a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as c,eF as i,c as r,o,ac as t,h as d,eh as _,t as p,_ as u}from"./jwt-decode.esm.3348bca5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7d4af39d-5a64-41a7-bc60-48b3c96e4eb4",e._sentryDebugIdIdentifier="sentry-dbid-7d4af39d-5a64-41a7-bc60-48b3c96e4eb4")}catch{}})();const g={class:"logo"},f=["src","alt"],m=c({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const s=e;i(a=>({"4521d904":n.value}));const n=r(()=>s.size==="small"?"24px":s.size==="large"?"80px":"50px"),l=r(()=>`${s.brandName} Logo`);return(a,b)=>(o(),t("div",g,[a.imageUrl?(o(),t("img",{key:0,class:"logo-img",src:a.imageUrl,alt:l.value},null,8,f)):d("",!0),a.hideText?d("",!0):(o(),t("span",{key:1,class:_(a.size)},p(a.brandName),3))]))}});const h=u(m,[["__scopeId","data-v-8f34aac0"]]);export{h as L};
|
|
2
|
-
//# sourceMappingURL=Logo.fc8ace6c.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P as f}from"./PlayerNavbar.97e8dee9.js";import{d as g,ec as h,ei as c,r as b,c as y,j as k,ac as v,u as n,a as w,h as L,e as C,f as I,o as i,_ as N}from"./jwt-decode.esm.3348bca5.js";import{u as V}from"./workspaceStore.5d3f2aec.js";import"./userStore.34b8f1eb.js";import"./metadata.9f7495db.js";import"./PhWebhooksLogo.vue.58a98824.js";import"./LoadingOutlined.4c40acc4.js";import"./PhSignOut.vue.8d8dfd96.js";import"./index.b91afb03.js";import"./url.5d02a63f.js";import"./colorHelpers.5ee17d14.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="a244370a-dfb2-4c6c-87b3-acdab9889d5a",a._sentryDebugIdIdentifier="sentry-dbid-a244370a-dfb2-4c6c-87b3-acdab9889d5a")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(a){const e=h(),o=V(),d=c().path,t=b(null),u=async({path:s,id:r})=>{t.value=r,await e.push({path:`/${s}`}),t.value=null},l=()=>{e.push({name:"playerLogin"})},p=()=>{e.push({name:"playerLogin"})},_=y(()=>!!c().meta.hideLogin);return(s,r)=>{const m=k("RouterView");return i(),v("div",x,[n(o).state.workspace?(i(),w(f,{key:0,"current-path":n(d),"hide-login":_.value,"runner-data":n(o).state.workspace,loading:t.value,onNavigate:u,onLoginClick:p,onLogoutClick:l},null,8,["current-path","hide-login","runner-data","loading"])):L("",!0),C("section",B,[I(m)])])}}});const F=N(D,[["__scopeId","data-v-f095bece"]]);export{F as default};
|
|
2
|
-
//# sourceMappingURL=Main.e6b2d2d5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-e6d0b794]:root{--abstra-main-color-dark: #343b46}.loading[data-v-e6d0b794]{position:absolute;top:0;left:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as y}from"./AbstraButton.vue_vue_type_script_setup_true_lang.13670ae7.js";import{A as D}from"./constants.be8ad36c.js";import{d as C,ec as N,j as L,u as e,o as n,a as r,S as R,ac as k,f as a,b as t,g as o,t as s,i as d,e as f,df as $,bW as z,bE as F,aY as S,ej as w,bD as G,eu as T,bY as b,cS as V,en as j,f6 as E,h as v,_ as M}from"./jwt-decode.esm.3348bca5.js";import{a as P}from"./asyncComputed.c73d027a.js";import{G as O,F as U,a as Y}from"./PhTranslate.vue.00a17a08.js";import{F as q}from"./PhSignOut.vue.8d8dfd96.js";import{l as A,o as H}from"./router.c6e27700.js";import{A as W}from"./index.5197afb2.js";import{A as J}from"./index.b91afb03.js";import{u as K}from"./omniChatStore.40ad0b1b.js";import{G as Q}from"./PhSparkle.vue.18ed0427.js";import{A as X}from"./index.82590a75.js";import{B as Z,A as ee}from"./Breadcrumb.e54636d6.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[i]="b3bd3cbe-860b-49c3-9443-fc9cf56c93f1",l._sentryDebugIdIdentifier="sentry-dbid-b3bd3cbe-860b-49c3-9443-fc9cf56c93f1")}catch{}})();const te={key:1,style:{display:"flex","align-items":"center",gap:"16px"}},ae={style:{display:"flex","flex-direction":"column",gap:"10px"}},oe={style:{display:"flex",gap:"5px"}},se={style:{display:"flex",gap:"5px"}},ne=C({__name:"LoginBlock",setup(l){function i(p){const h=p.split("@")[0];return j.exports.kebabCase(h).toUpperCase().split("-").slice(0,2).map(g=>g[0]).join("")}const c=N(),{result:u,loading:_,refetch:m}=P(async()=>A.getAuthor());async function B(){await A.logout(),H.shutdown(),m(),c.push({name:"login"})}function I(p){localStorage.setItem("locale",String(p.key)),window.location.reload()}return(p,h)=>{const g=L("RouterLink");return e(_)?(n(),r(e(R),{key:0})):e(u)?(n(),k("div",te,[a(y,{class:"intercom-launcher",target:"_blank",type:"link",size:"small"},{default:t(()=>[a(e(O)),o(" "+s(e(d).translate("i18n_loginblock_support")),1)]),_:1}),a(e(V),{placement:"bottomRight"},{content:t(()=>[f("div",ae,[a(e($),{size:"small",type:"secondary"},{default:t(()=>[o(s(e(u).claims.email),1)]),_:1}),a(e(z),{trigger:["click"]},{overlay:t(()=>[a(e(F),{onClick:I},{default:t(()=>[(n(!0),k(S,null,w(e(T),x=>(n(),r(e(G),{key:x.key},{default:t(()=>[o(s(x.value),1)]),_:2},1024))),128))]),_:1})]),default:t(()=>[a(e(b),{type:"text"},{default:t(()=>[f("div",oe,[a(e(U),{size:"20"}),o(" "+s(e(d).translate("i18n_loginblock_language")),1)])]),_:1})]),_:1}),a(e(b),{type:"text",onClick:B},{default:t(()=>[f("div",se,[a(e(q),{size:"20"}),o(" "+s(e(d).translate("i18n_loginblock_logout")),1)])]),_:1})])]),default:t(()=>[a(e(W),{align:"center",style:{cursor:"pointer"}},{default:t(()=>[a(e(J),{shape:"square"},{default:t(()=>[o(s(i(e(u).claims.email)),1)]),_:1})]),_:1})]),_:1})])):(n(),r(e(b),{key:2},{default:t(()=>[a(g,{to:"/login"},{default:t(()=>[o(s(e(d).translate("i18n_loginblock_login")),1)]),_:1})]),_:1}))}}}),re={class:"extra"},le=C({__name:"Navbar",props:{breadcrumb:{},showAiSparkles:{type:Boolean}},setup(l){const i=K();return(c,u)=>(n(),r(e(X),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{subTitle:t(()=>[c.breadcrumb?(n(),r(e(Z),{key:0},{default:t(()=>[(n(!0),k(S,null,w(c.breadcrumb,(_,m)=>(n(),r(e(ee),{key:m},{default:t(()=>[a(e(E),{to:_.path},{default:t(()=>[o(s(_.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):v("",!0)]),extra:t(()=>[f("div",re,[c.showAiSparkles?(n(),r(y,{key:0,type:"link",onClick:u[0]||(u[0]=_=>e(i).toggle())},{default:t(()=>[a(e(Q)),o(" "+s(e(d).translate("i18n_consolenavbar_ai_assistant")),1)]),_:1})):v("",!0),a(y,{href:e(D).DOCS,target:"_blank",type:"link"},{default:t(()=>[a(e(Y)),o(" "+s(e(d).translate("i18n_consolenavbar_docs")),1)]),_:1},8,["href"]),a(ne)])]),_:1}))}});const xe=M(le,[["__scopeId","data-v-a3489e41"]]);export{xe as N};
|
|
2
|
-
//# sourceMappingURL=Navbar.24019fd6.js.map
|